Commit a8bd99a
authored
Improve @metamask/delegation-abis tree-shakability (#131)
* Split ABIs and bytecode, enabling tree-shaking per contract; does _not_ update generated files
- remove bytecodes from default export @metamask/delegation-abis
- add new export @metamask/delegation-abis/bytecode
- shuffle src files into src/abis, src/bytecode and src/artifacts
- updates scripts/format-abis.js to ESM
- disable bundling in tsup to avoid large chunks
- adds plugin to rewrite relative import file extensions
* Update generated files
* Update deploySmartAccountsEnvironment to use new abi imports
* Update all references to @metamask/delegation-abis that now import only the abis to match new interface
* Remove redundant NarrowAbiToFunction utility type
* Update e2e test suite to use new interface1 parent 11a7b92 commit a8bd99a
File tree
444 files changed
+14341
-14188
lines changed- packages
- delegation-abis
- scripts
- src
- abis
- artifacts
- Address.sol
- AllowedCalldataEnforcer.sol
- AllowedMethodsEnforcer.sol
- AllowedTargetsEnforcer.sol
- ArgsEqualityCheckEnforcer.sol
- Base64.sol
- Base64URL.sol
- BitMaps.sol
- BlockNumberEnforcer.sol
- CaveatEnforcer.sol
- Context.sol
- Create2.sol
- DeleGatorCore.sol
- DelegationManager.sol
- DelegationMetaSwapAdapter.sol
- DeployedEnforcer.sol
- ECDSA.sol
- EIP712.sol
- EIP7702DeleGatorCore.sol
- EIP7702StatelessDeleGator.sol
- ERC1155BalanceChangeEnforcer.sol
- ERC1271Lib.sol
- ERC165.sol
- ERC1967Proxy.sol
- ERC1967Utils.sol
- ERC20BalanceChangeEnforcer.sol
- ERC20PeriodTransferEnforcer.sol
- ERC20StreamingEnforcer.sol
- ERC20TransferAmountEnforcer.sol
- ERC721BalanceChangeEnforcer.sol
- ERC721TransferEnforcer.sol
- EncoderLib.sol
- EntryPoint.sol
- ExactCalldataBatchEnforcer.sol
- ExactCalldataEnforcer.sol
- ExactExecutionBatchEnforcer.sol
- ExactExecutionEnforcer.sol
- Exec.sol
- ExecutionHelper.sol
- ExecutionLib.sol
- HybridDeleGator.sol
- IAccount.sol
- IAccountExecute.sol
- IAggregator.sol
- IBeacon.sol
- ICaveatEnforcer.sol
- IDeleGatorCore.sol
- IDelegationManager.sol
- IERC1155.sol
- IERC1155Receiver.sol
- IERC1271.sol
- IERC1363.sol
- IERC165.sol
- IERC173.sol
- IERC20.sol
- IERC5267.sol
- IERC721.sol
- IERC721Receiver.sol
- IERC7579Account.sol
- IERC7821.sol
- IEntryPoint.sol
- IMetaSwap.sol
- INonceManager.sol
- IPaymaster.sol
- IStakeManager.sol
- IdEnforcer.sol
- Initializable.sol
- LimitedCallsEnforcer.sol
- LogicalOrWrapperEnforcer.sol
- Math.sol
- MessageHashUtils.sol
- MockCaveatEnforcer.sol
- MockFailureCaveatEnforcer.sol
- ModeLib.sol
- MultiSigDeleGator.sol
- MultiTokenPeriodEnforcer.sol
- NativeBalanceChangeEnforcer.sol
- NativeTokenPaymentEnforcer.sol
- NativeTokenPeriodTransferEnforcer.sol
- NativeTokenStreamingEnforcer.sol
- NativeTokenTransferAmountEnforcer.sol
- NonceEnforcer.sol
- NonceManager.sol
- Ownable.sol
- Ownable2Step.sol
- OwnershipTransferEnforcer.sol
- P256SCLVerifierLib.sol
- P256VerifierLib.sol
- Panic.sol
- Pausable.sol
- Proxy.sol
- RedeemerEnforcer.sol
- ReentrancyGuard.sol
- SCLWrapperLib.sol
- SafeCast.sol
- SafeERC20.sol
- SenderCreator.sol
- ShortStrings.sol
- SignedMath.sol
- SimpleFactory.sol
- SpecificActionERC20TransferBatchEnforcer.sol
- StakeManager.sol
- StorageSlot.sol
- Strings.sol
- TimestampEnforcer.sol
- UUPSUpgradeable.sol
- UserOperationLib.sol
- ValueLteEnforcer.sol
- WebAuthn.sol
- build-info
- draft-IERC1822.sol
- libSCL_RIP7212.sol
- bytecode
- formatted
- delegator-e2e/test
- caveats
- utils
- smart-accounts-kit
- src
- DelegationFramework
- DeleGatorCore/methods
- DelegationManager/methods
- ERC20PeriodTransferEnforcer/methods
- ERC20StreamingEnforcer/methods
- ERC20TransferAmountEnforcer/methods
- EntryPoint/methods
- HybridDeleGator/methods
- IdEnforcer/methods
- LimitedCallsEnforcer/methods
- MultiSigDeleGator/methods
- MultiTokenPeriodEnforcer/methods
- NativeTokenPeriodTransferEnforcer/methods
- NativeTokenStreamingEnforcer/methods
- NativeTokenTransferAmountEnforcer/methods
- NonceEnforcer/methods
- Ownable2Step/methods
- Pausable/methods
- SimpleFactory/methods
- SpecificActionERC20TransferBatchEnforcer/methods
- actions
- contracts
- test
- actions
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
444 files changed
+14341
-14188
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
40 | 50 | | |
41 | 51 | | |
42 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | | - | |
10 | | - | |
11 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
12 | 16 | | |
13 | 17 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
21 | 35 | | |
22 | | - | |
| 36 | + | |
| 37 | + | |
23 | 38 | | |
24 | 39 | | |
25 | 40 | | |
26 | 41 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
32 | 50 | | |
33 | | - | |
34 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
35 | 56 | | |
36 | 57 | | |
37 | 58 | | |
38 | 59 | | |
39 | | - | |
| 60 | + | |
40 | 61 | | |
41 | 62 | | |
42 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
43 | 67 | | |
44 | 68 | | |
45 | 69 | | |
46 | | - | |
| 70 | + | |
| 71 | + | |
47 | 72 | | |
48 | 73 | | |
49 | 74 | | |
50 | 75 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
56 | 83 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
64 | 102 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
69 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
70 | 114 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
83 | 123 | | |
84 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
85 | 129 | | |
86 | 130 | | |
87 | 131 | | |
88 | | - | |
| 132 | + | |
| 133 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
0 commit comments