Skip to content

Commit

Permalink
experementing wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mmv08 committed May 14, 2024
1 parent 30298a2 commit d0724ae
Show file tree
Hide file tree
Showing 16 changed files with 6,322 additions and 4,915 deletions.
28 changes: 14 additions & 14 deletions examples/4337-gas-metering/alchemy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Safe Deployment with Alchemy Paymaster (Own Sponsorship)

```
npm run alchemy:account
pnpm run alchemy:account
> @safe-global/4337-gas-metering@1.0.0 alchemy:account
> tsx ./alchemy/alchemy.ts account
Expand Down Expand Up @@ -45,7 +45,7 @@ Gas Used (Transaction): 417074
## Safe Deployment + Native Transfer with Alchemy Paymaster (Own Sponsorship)

```
npm run alchemy:native-transfer
pnpm run alchemy:native-transfer
> @safe-global/4337-gas-metering@1.0.0 alchemy:native-transfer
> tsx ./alchemy/alchemy.ts native-transfer
Expand Down Expand Up @@ -87,7 +87,7 @@ Gas Used (Transaction): 424505
## Native Transfer with Alchemy Paymaster (Own Sponsorship)

```
npm run alchemy:native-transfer
pnpm run alchemy:native-transfer
> @safe-global/4337-gas-metering@1.0.0 alchemy:native-transfer
> tsx ./alchemy/alchemy.ts native-transfer
Expand Down Expand Up @@ -129,7 +129,7 @@ Gas Used (Transaction): 107057
## Safe Deployment + ERC20 Transaction with Alchemy Paymaster (Own Sponsorship)

```
npm run alchemy:erc20
pnpm run alchemy:erc20
> @safe-global/4337-gas-metering@1.0.0 alchemy:erc20
> tsx ./alchemy/alchemy.ts erc20
Expand Down Expand Up @@ -177,7 +177,7 @@ Gas Used (Transaction): 427599
## ERC20 Transaction with Alchemy Paymaster (Own Sponsorship)

```
npm run alchemy:erc20
pnpm run alchemy:erc20
> @safe-global/4337-gas-metering@1.0.0 alchemy:erc20
> tsx ./alchemy/alchemy.ts erc20
Expand Down Expand Up @@ -225,7 +225,7 @@ Gas Used (Transaction): 110174
## Safe Deployment + ERC721 Transaction with Alchemy Paymaster (Own Sponsorship)

```
npm run alchemy:erc721
pnpm run alchemy:erc721
> @safe-global/4337-gas-metering@1.0.0 alchemy:erc721
> tsx ./alchemy/alchemy.ts erc721
Expand Down Expand Up @@ -267,7 +267,7 @@ Gas Used (Transaction): 456870
## ERC721 Transaction with Alchemy Paymaster (Own Sponsorship)

```
npm run alchemy:erc721
pnpm run alchemy:erc721
> @safe-global/4337-gas-metering@1.0.0 alchemy:erc721
> tsx ./alchemy/alchemy.ts erc721
Expand Down Expand Up @@ -309,7 +309,7 @@ Gas Used (Transaction): 139420
## Safe Deployment with Alchemy Paymaster (Gas Policy)

```
npm run alchemy:account:paymaster
pnpm run alchemy:account:paymaster
> @safe-global/4337-gas-metering@1.0.0 alchemy:account:paymaster
> tsx ./alchemy/alchemy.ts account paymaster=true
Expand Down Expand Up @@ -345,7 +345,7 @@ Gas Used (Transaction): 411372
## Safe Deployment + Native Transfer with Alchemy Paymaster (Gas Policy)

```
npm run alchemy:native-transfer:paymaster
pnpm run alchemy:native-transfer:paymaster
> @safe-global/4337-gas-metering@1.0.0 alchemy:native-transfer:paymaster
> tsx ./alchemy/alchemy.ts native-transfer paymaster=true
Expand Down Expand Up @@ -381,7 +381,7 @@ Gas Used (Transaction): 418779
## Native Transfer with Alchemy Paymaster (Gas Policy)

```
npm run alchemy:native-transfer:paymaster
pnpm run alchemy:native-transfer:paymaster
> @safe-global/4337-gas-metering@1.0.0 alchemy:native-transfer:paymaster
> tsx ./alchemy/alchemy.ts native-transfer paymaster=true
Expand Down Expand Up @@ -417,7 +417,7 @@ Gas Used (Transaction): 130202
## Safe Deployment + ERC20 Transaction with Alchemy Paymaster (Gas Policy)

```
npm run alchemy:erc20:paymaster
pnpm run alchemy:erc20:paymaster
> @safe-global/4337-gas-metering@1.0.0 alchemy:erc20:paymaster
> tsx ./alchemy/alchemy.ts erc20 paymaster=true
Expand Down Expand Up @@ -459,7 +459,7 @@ Gas Used (Transaction): 421926
## ERC20 Transaction with Alchemy Paymaster (Gas Policy)

```
npm run alchemy:erc20:paymaster
pnpm run alchemy:erc20:paymaster
> @safe-global/4337-gas-metering@1.0.0 alchemy:erc20:paymaster
> tsx ./alchemy/alchemy.ts erc20 paymaster=true
Expand Down Expand Up @@ -501,7 +501,7 @@ Gas Used (Transaction): 133394
## Safe Deployment + ERC721 Transaction with Alchemy Paymaster (Gas Policy)

```
npm run alchemy:erc721:paymaster
pnpm run alchemy:erc721:paymaster
> @safe-global/4337-gas-metering@1.0.0 alchemy:erc721:paymaster
> tsx ./alchemy/alchemy.ts erc721 paymaster=true
Expand Down Expand Up @@ -537,7 +537,7 @@ Gas Used (Transaction): 451200
## ERC721 Transaction with Alchemy Paymaster (Gas Policy)

```
npm run alchemy:erc721:paymaster
pnpm run alchemy:erc721:paymaster
> @safe-global/4337-gas-metering@1.0.0 alchemy:erc721:paymaster
> tsx ./alchemy/alchemy.ts erc721 paymaster=true
Expand Down
14 changes: 7 additions & 7 deletions examples/4337-gas-metering/gelato/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Safe Deployment with Gelato

```
npm run gelato:account:1balance
pnpm run gelato:account:1balance
> @safe-global/4337-gas-metering@1.0.0 gelato:account:1balance
> tsx ./gelato/gelato.ts account
Expand Down Expand Up @@ -35,7 +35,7 @@ Gas Used: 302679
## Safe Deployment + Native Transfer with Gelato

```
npm run gelato:native-transfer:1balance
pnpm run gelato:native-transfer:1balance
> @safe-global/4337-gas-metering@1.0.0 gelato:native-transfer:1balance
> tsx ./gelato/gelato.ts native-transfer
Expand Down Expand Up @@ -71,7 +71,7 @@ Gas Used: 313228
## Native Transfer with Gelato

```
npm run gelato:native-transfer:1balance
pnpm run gelato:native-transfer:1balance
> @safe-global/4337-gas-metering@1.0.0 gelato:native-transfer:1balance
> tsx ./gelato/gelato.ts native-transfer
Expand Down Expand Up @@ -115,7 +115,7 @@ Gas Used: 83930
## Safe Deployment + ERC20 Transaction with Gelato

```
npm run gelato:erc20:1balance
pnpm run gelato:erc20:1balance
> @safe-global/4337-gas-metering@1.0.0 gelato:erc20:1balance
> tsx ./gelato/gelato.ts erc20
Expand Down Expand Up @@ -153,7 +153,7 @@ Gas Used: 315961
## ERC20 Transaction with Gelato

```
npm run gelato:erc20:1balance
pnpm run gelato:erc20:1balance
> @safe-global/4337-gas-metering@1.0.0 gelato:erc20:1balance
> tsx ./gelato/gelato.ts erc20
Expand Down Expand Up @@ -199,7 +199,7 @@ Gas Used: 86852
## Safe Deployment + ERC721 Transaction with Gelato

```
npm run gelato:erc721:1balance
pnpm run gelato:erc721:1balance
> @safe-global/4337-gas-metering@1.0.0 gelato:erc721:1balance
> tsx ./gelato/gelato.ts erc721
Expand Down Expand Up @@ -231,7 +231,7 @@ Gas Used: 345284
## ERC721 Transaction with Gelato

```
npm run gelato:erc721:1balance
pnpm run gelato:erc721:1balance
> @safe-global/4337-gas-metering@1.0.0 gelato:erc721:1balance
> tsx ./gelato/gelato.ts erc721
Expand Down
28 changes: 14 additions & 14 deletions examples/4337-gas-metering/pimlico/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Safe Deployment with Pimlico Paymaster (Own Sponsorship)

```
npm run pimlico:account
pnpm run pimlico:account
> @safe-global/4337-gas-metering@1.0.0 pimlico:account
> tsx ./pimlico/pimlico.ts account
Expand Down Expand Up @@ -41,7 +41,7 @@ Gas Used (Transaction): 506573
## Safe Deployment + Native Transfer with Pimlico Paymaster (Own Sponsorship)

```
npm run pimlico:native-transfer
pnpm run pimlico:native-transfer
> @safe-global/4337-gas-metering@1.0.0 pimlico:native-transfer
> tsx ./pimlico/pimlico.ts native-transfer
Expand Down Expand Up @@ -79,7 +79,7 @@ Gas Used (Transaction): 511055
## Native Transfer with Pimlico Paymaster (Own Sponsorship)

```
npm run pimlico:native-transfer
pnpm run pimlico:native-transfer
> @safe-global/4337-gas-metering@1.0.0 pimlico:native-transfer
> tsx ./pimlico/pimlico.ts native-transfer
Expand Down Expand Up @@ -117,7 +117,7 @@ Gas Used (Transaction): 199262
## Safe Deployment + ERC20 Transaction with Pimlico Paymaster (Own Sponsorship)

```
npm run pimlico:erc20
pnpm run pimlico:erc20
> @safe-global/4337-gas-metering@1.0.0 pimlico:erc20
> tsx ./pimlico/pimlico.ts erc20
Expand Down Expand Up @@ -161,7 +161,7 @@ Gas Used (Transaction): 514156
## ERC20 Transaction with Pimlico Paymaster (Own Sponsorship)

```
npm run pimlico:erc20
pnpm run pimlico:erc20
> @safe-global/4337-gas-metering@1.0.0 pimlico:erc20
> tsx ./pimlico/pimlico.ts erc20
Expand Down Expand Up @@ -205,7 +205,7 @@ Gas Used (Transaction): 202387
## Safe Deployment + ERC721 Transaction with Pimlico Paymaster (Own Sponsorship)

```
npm run pimlico:erc721
pnpm run pimlico:erc721
> @safe-global/4337-gas-metering@1.0.0 pimlico:erc721
> tsx ./pimlico/pimlico.ts erc721
Expand Down Expand Up @@ -243,7 +243,7 @@ Gas Used (Transaction): 543411
## ERC721 Transaction with Pimlico Paymaster (Own Sponsorship)

```
npm run pimlico:erc721
pnpm run pimlico:erc721
> @safe-global/4337-gas-metering@1.0.0 pimlico:erc721
> tsx ./pimlico/pimlico.ts erc721
Expand Down Expand Up @@ -281,7 +281,7 @@ Gas Used (Transaction): 231619
## Safe Deployment with Pimlico Paymaster (Gas Policy)

```
npm run pimlico:account:paymaster
pnpm run pimlico:account:paymaster
> @safe-global/4337-gas-metering@1.0.0 pimlico:account:paymaster
> tsx ./pimlico/pimlico.ts account paymaster=true
Expand Down Expand Up @@ -313,7 +313,7 @@ Gas Used (Transaction): 448172
## Safe Deployment + Native Transfer with Pimlico Paymaster (Gas Policy)

```
npm run pimlico:native-transfer:paymaster
pnpm run pimlico:native-transfer:paymaster
> @safe-global/4337-gas-metering@1.0.0 pimlico:native-transfer:paymaster
> tsx ./pimlico/pimlico.ts native-transfer paymaster=true
Expand Down Expand Up @@ -345,7 +345,7 @@ Gas Used (Transaction): 455615
## Native Transfer with Pimlico Paymaster (Gas Policy)

```
npm run pimlico:native-transfer:paymaster
pnpm run pimlico:native-transfer:paymaster
> @safe-global/4337-gas-metering@1.0.0 pimlico:native-transfer:paymaster
> tsx ./pimlico/pimlico.ts native-transfer paymaster=true
Expand Down Expand Up @@ -377,7 +377,7 @@ Gas Used (Transaction): 123064
## Safe Deployment + ERC20 Transaction with Pimlico Paymaster (Gas Policy)

```
npm run pimlico:erc20:paymaster
pnpm run pimlico:erc20:paymaster
> @safe-global/4337-gas-metering@1.0.0 pimlico:erc20:paymaster
> tsx ./pimlico/pimlico.ts erc20 paymaster=true
Expand Down Expand Up @@ -415,7 +415,7 @@ Gas Used (Transaction): 459014
## ERC20 Transaction with Pimlico Paymaster (Gas Policy)

```
npm run pimlico:erc20:paymaster
pnpm run pimlico:erc20:paymaster
> @safe-global/4337-gas-metering@1.0.0 pimlico:erc20:paymaster
> tsx ./pimlico/pimlico.ts erc20 paymaster=true
Expand Down Expand Up @@ -453,7 +453,7 @@ Gas Used (Transaction): 126461
## Safe Deployment + ERC721 Transaction with Pimlico Paymaster (Gas Policy)

```
npm run pimlico:erc721:paymaster
pnpm run pimlico:erc721:paymaster
> @safe-global/4337-gas-metering@1.0.0 pimlico:erc721:paymaster
> tsx ./pimlico/pimlico.ts erc721 paymaster=true
Expand Down Expand Up @@ -485,7 +485,7 @@ Gas Used (Transaction): 488186
## ERC721 Transaction with Pimlico Paymaster (Gas Policy)

```
npm run pimlico:erc721:paymaster
pnpm run pimlico:erc721:paymaster
> @safe-global/4337-gas-metering@1.0.0 pimlico:erc721:paymaster
> tsx ./pimlico/pimlico.ts erc721 paymaster=true
Expand Down
2 changes: 1 addition & 1 deletion examples/4337-passkeys-singleton-signer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Helpful links:
### Run the app in development mode

```bash
npm run dev -w examples/4337-passkeys-singleton-signer
pnpm run dev -w examples/4337-passkeys-singleton-signer
```

## Config adjustments
Expand Down
2 changes: 1 addition & 1 deletion examples/4337-passkeys-singleton-signer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dev": "vite",
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"lint:fix": "npm run lint -- --fix",
"lint:fix": "pnpm run lint -- --fix",
"preview": "vite preview"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/4337-passkeys/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Helpful links:
### Run the app in development mode

```bash
npm run dev -w examples/4337-passkeys
pnpm run dev -w examples/4337-passkeys
```

## Config adjustments
Expand Down
2 changes: 1 addition & 1 deletion examples/4337-passkeys/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dev": "vite",
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"lint:fix": "npm run lint -- --fix",
"lint:fix": "pnpm run lint -- --fix",
"preview": "vite preview"
},
"dependencies": {
Expand Down
8 changes: 4 additions & 4 deletions modules/4337/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,13 @@ End-to-end tests with the reference bundler implementation are also provided. Th
Note: Geth is used as the RPC because the reference bundler implementation relies on Geth-specific tracing APIs.

```bash
npm run test:e2e
pnpm run test:e2e
```

### Run Hardhat Integration and End-to-end Tests:

```bash
npm run test:all
pnpm run test:all
```

### Deployments
Expand All @@ -179,13 +179,13 @@ Preparation:
- Set `INFURA_KEY` in `.env`

```bash
npm run deploy-all <network>
pnpm run deploy-all <network>
```

This will perform the following steps

```bash
npm run build
pnpm run build
npx hardhat --network <network> deploy
npx hardhat --network <network> etherscan-verify
npx hardhat --network <network> local-verify
Expand Down
Loading

0 comments on commit d0724ae

Please sign in to comment.