Skip to content

Commit 161b3c3

Browse files
yann300Aniket-Engg
authored andcommitted
update label
1 parent fa24446 commit 161b3c3

File tree

12 files changed

+40
-35
lines changed

12 files changed

+40
-35
lines changed

apps/remix-ide/src/app/plugins/templates-selection/templates.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ export const templates = (intl, plugin) => {
55
items: [
66
{ value: "remixDefault", tagList: ["Solidity"], displayName: intl.formatMessage({ id: 'filePanel.basic' }), description: 'The default project' },
77
{ value: "blank", displayName: intl.formatMessage({ id: 'filePanel.blank' }), IsArtefact: true, description: 'A blank project' },
8-
{ value: "simpleEip7702", displayName: 'Simple EIP 7702', IsArtefact: true, description: 'Pectra upgrade allowing externally owned accounts (EOAs) to run contract code.' },
9-
{ value: "accountAbstraction", displayName: 'Account Abstraction', IsArtefact: true, description: 'Github repo for ERC-4337 and EIP-7702.' },
10-
{ value: "fullyFledgeEIP7702", displayName: 'Fully Fledge EIP7702 example', IsArtefact: true, description: 'A fully fledge template using EIP7702.' }
8+
{ value: "simpleEip7702", displayName: 'Simple EIP-7702', IsArtefact: true, description: 'Pectra upgrade allowing externally owned accounts (EOAs) to run contract code' },
9+
{ value: "introToEIP7702", displayName: 'Intro to EIP-7702', IsArtefact: true, description: 'A contract for demoing EIP-7702' },
10+
{ value: "accountAbstraction", displayName: 'Account Abstraction', IsArtefact: true, description: 'A repo about ERC-4337 and EIP-7702' }
1111
]
1212
},
1313
{

libs/remix-ui/workspace/src/lib/utils/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const TEMPLATE_NAMES = {
1919
'uniswapV4Template': 'Uniswap v4 Template',
2020
'uniswapV4HookBookMultiSigSwapHook': 'Uniswap V4 HookBook MultiSigSwapHook',
2121
'accountAbstraction': 'Account Abstraction Template',
22-
'fullyFledgeEIP7702': 'EIP7702 Fully Fledge Template',
22+
'introToEIP7702': 'Intro to EIP-7702',
2323
}
2424

2525
export const TEMPLATE_METADATA: Record<string, TemplateType> = {

libs/remix-ws-templates/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export { default as remixDefault } from './templates/remixDefault'
22
export { default as simpleEip7702 } from './templates/simpleEip7702'
3-
export { default as fullyFledgeEIP7702 } from './templates/fullyFledgeEIP7702'
3+
export { default as introToEIP7702 } from './templates/introToEIP7702'
44
export { default as blank } from './templates/blank'
55
export { default as ozerc20 } from './templates/ozerc20'
66
export { default as ozerc721 } from './templates/ozerc721'

libs/remix-ws-templates/src/templates/fullyFledgeEIP7702/README.md

Lines changed: 0 additions & 30 deletions
This file was deleted.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# EIP 7702
2+
3+
This Workspace template presents one of the updates that shipped with the Pectra upgrade - occuring in May 2025.
4+
5+
### Basics
6+
7+
In the Ethereum blockchain there are two different types of accounts:
8+
- Externally Owned Account (EOA): which require a private key and could initiate transactions.
9+
- Smart Contract Account: which represents code deployed in the blockchain.
10+
11+
These two concepts are separated. Until now EOAs could not have code associated to them.
12+
But with the Pectra upgrade, EOAs can now host and directly run code.
13+
14+
For more information please see [this page](https://eip7702.io)
15+
16+
### Demo of a batched transaction
17+
18+
In this demo, we'll deploy a contract and assign it to an EOA. Then we'll run a script that will deploy a token and another contract. The script will also prepare the data to batch a transaction so that it will contain the approval for the transfer and as well as the transfer.
19+
20+
This section explains how to run this project. Let's first assign a piece of code to an EOA:
21+
22+
- Compile MyToken.sol, Example7702.sol, and Spender.sol using Solidity version 0.8.28.
23+
- In Deploy & Run, in the CONTRACT select box, choose Simple7702Account and deploy it to the Remix VM (Prague) network.
24+
- Copy the deployed contract's address.
25+
- Click the Authorize Delegation button and paste the contract's address into the modal.
26+
- In Deploy and Run, check the new "deployed". It has the same address as the EOA that was assigned to SIMPLE7702ACCOUNT.
27+
- Run the script `run-eip7702.ts`.
28+
- In the terminal, copy the logged data from console.log(executeBatch)
29+
- Back in Deploy & Run, find the DELEGATED SIMPLE7702ACCOUNT and open it up to see its functions.
30+
- In the executeBatch function , paste the data and then run the transaction.
31+
- Go to the the deployed token's balanceOf function. Input the first and then the second account to check that each address' balance has been updated.
32+
- This is possible because of the 7702 connection between the contract and the first EOA address.
33+
34+
35+

0 commit comments

Comments
 (0)