@metamask/smart-accounts-kit 1.6.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +76 -64
- package/dist/actions/index.cjs +4 -4
- package/dist/actions/index.d.cts +3 -3
- package/dist/actions/index.d.ts +3 -3
- package/dist/actions/index.mjs +3 -3
- package/dist/{caveats-gqMBZKkI.d.cts → caveats-BEKgygS8.d.cts} +1 -1
- package/dist/{caveats-B2OssjV4.d.ts → caveats-DPuxVdYU.d.ts} +1 -1
- package/dist/{chunk-JKVSTPEC.cjs → chunk-32RDDE5N.cjs} +13 -13
- package/dist/{chunk-JKVSTPEC.cjs.map → chunk-32RDDE5N.cjs.map} +1 -1
- package/dist/{chunk-TNGQTVSY.mjs → chunk-3KWKQ7PV.mjs} +2 -2
- package/dist/{chunk-TNGQTVSY.mjs.map → chunk-3KWKQ7PV.mjs.map} +1 -1
- package/dist/{chunk-EPU4O7FY.cjs → chunk-4GOGI2TA.cjs} +106 -106
- package/dist/{chunk-EPU4O7FY.cjs.map → chunk-4GOGI2TA.cjs.map} +1 -1
- package/dist/{chunk-2ZOWIAP3.cjs → chunk-6TSLFRJC.cjs} +62 -62
- package/dist/{chunk-2ZOWIAP3.cjs.map → chunk-6TSLFRJC.cjs.map} +1 -1
- package/dist/{chunk-YVU66KSH.mjs → chunk-EMPAUTIV.mjs} +2 -2
- package/dist/{chunk-W6HPAK4M.cjs → chunk-GHGCGV3C.cjs} +2 -2
- package/dist/{chunk-W6HPAK4M.cjs.map → chunk-GHGCGV3C.cjs.map} +1 -1
- package/dist/{chunk-L3EZCIY6.mjs → chunk-IERUQUKJ.mjs} +4 -4
- package/dist/{chunk-DCI2AN4N.cjs → chunk-KIXYMA7J.cjs} +15 -15
- package/dist/{chunk-DCI2AN4N.cjs.map → chunk-KIXYMA7J.cjs.map} +1 -1
- package/dist/{chunk-UJQ3JN3U.mjs → chunk-T6SWQZRX.mjs} +3 -3
- package/dist/{chunk-AZYTTGON.mjs → chunk-XUBMIW33.mjs} +3 -3
- package/dist/{chunk-K7GTZGKJ.mjs → chunk-YCNLPEPH.mjs} +2 -2
- package/dist/{chunk-PQPAEHJZ.cjs → chunk-YPUEM6YV.cjs} +12 -12
- package/dist/{chunk-PQPAEHJZ.cjs.map → chunk-YPUEM6YV.cjs.map} +1 -1
- package/dist/contracts/index.cjs +5 -5
- package/dist/contracts/index.d.cts +4 -4
- package/dist/contracts/index.d.ts +4 -4
- package/dist/contracts/index.mjs +4 -4
- package/dist/{decodeRevertReason-CmmCpmZ_.d.cts → decodeRevertReason-CSOClzsa.d.cts} +3 -3
- package/dist/{decodeRevertReason-dOTpJx2h.d.ts → decodeRevertReason-WjHVQ_Sz.d.ts} +3 -3
- package/dist/experimental/index.cjs +66 -38
- package/dist/experimental/index.cjs.map +1 -1
- package/dist/experimental/index.d.cts +4 -2
- package/dist/experimental/index.d.ts +4 -2
- package/dist/experimental/index.mjs +50 -22
- package/dist/experimental/index.mjs.map +1 -1
- package/dist/{index-B1Cmezvh.d.cts → index-BHm75OFP.d.cts} +1 -1
- package/dist/{index-BkgdU4LI.d.ts → index-BNHYZ9iU.d.ts} +2 -2
- package/dist/{index-DUJmm8Wz.d.ts → index-CgGKjHSr.d.ts} +2 -2
- package/dist/{index-Dv4jPzhe.d.cts → index-CsjbdUp_.d.cts} +2 -2
- package/dist/{index-LqiEgBjV.d.ts → index-DWvEgBtg.d.ts} +1 -1
- package/dist/{index-X7Qn3JTg.d.cts → index-DYJjOeTn.d.cts} +2 -2
- package/dist/index.cjs +19 -19
- package/dist/index.d.cts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.mjs +6 -6
- package/dist/{resolveCaveats-A9xC29l8.d.ts → resolveCaveats-aQPEogPk.d.cts} +2 -2
- package/dist/{resolveCaveats-A9xC29l8.d.cts → resolveCaveats-aQPEogPk.d.ts} +2 -2
- package/dist/utils/index.cjs +4 -4
- package/dist/utils/index.d.cts +5 -5
- package/dist/utils/index.d.ts +5 -5
- package/dist/utils/index.mjs +3 -3
- package/package.json +8 -8
- /package/dist/{chunk-YVU66KSH.mjs.map → chunk-EMPAUTIV.mjs.map} +0 -0
- /package/dist/{chunk-L3EZCIY6.mjs.map → chunk-IERUQUKJ.mjs.map} +0 -0
- /package/dist/{chunk-UJQ3JN3U.mjs.map → chunk-T6SWQZRX.mjs.map} +0 -0
- /package/dist/{chunk-AZYTTGON.mjs.map → chunk-XUBMIW33.mjs.map} +0 -0
- /package/dist/{chunk-K7GTZGKJ.mjs.map → chunk-YCNLPEPH.mjs.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -7,169 +7,181 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.7.0]
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Constants `METAMASK_FACILITATOR_ADDRESSES`, `METAMASK_FACILITATOR_ADDRESSES_DEV` added to @metamask/smart-accounts-kit/experimental ([#255](https://github.com/MetaMask/smart-accounts-kit/pull/255))
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- Experimental `createx402DelegationProvider` now resolves redeemers as the intersection of `facilitatorAddresses` and `redeemer.addresses` ([#256](https://github.com/MetaMask/smart-accounts-kit/pull/256))
|
|
19
|
+
- Bumped @metamask/7715-permission-types from `^0.7.1` to `^1.0.0` ([#273](https://github.com/MetaMask/smart-accounts-kit/pull/273), [#276](https://github.com/MetaMask/smart-accounts-kit/pull/276), [#281](https://github.com/MetaMask/smart-accounts-kit/pull/281))
|
|
20
|
+
|
|
10
21
|
## [1.6.0]
|
|
11
22
|
|
|
12
23
|
### Added
|
|
13
24
|
|
|
14
|
-
- Experimental `createx402DelegationProvider` added to @metamask/smart-accounts-kit/experimental ([#248](https://github.com/
|
|
15
|
-
- New `generateSalt` function added to @metamask/smart-accounts-kit/utils ([#248](https://github.com/
|
|
16
|
-
- ERC-7715 `token-approval-revocation` permission type ([#226](https://github.com/
|
|
17
|
-
- `CaveatBuilder` for `ApprovalRevocationEnforcer`, deployment address added to `SmartAccountsEnvironment` ([#226](https://github.com/
|
|
18
|
-
- Helper for decoding revert reasons from delegated execution errors while preserving the original error output ([#245](https://github.com/
|
|
25
|
+
- Experimental `createx402DelegationProvider` added to @metamask/smart-accounts-kit/experimental ([#248](https://github.com/MetaMask/smart-accounts-kit/pull/248), [#251](https://github.com/MetaMask/smart-accounts-kit/pull/251))
|
|
26
|
+
- New `generateSalt` function added to @metamask/smart-accounts-kit/utils ([#248](https://github.com/MetaMask/smart-accounts-kit/pull/248))
|
|
27
|
+
- ERC-7715 `token-approval-revocation` permission type ([#226](https://github.com/MetaMask/smart-accounts-kit/pull/226), [#237](https://github.com/MetaMask/smart-accounts-kit/pull/237))
|
|
28
|
+
- `CaveatBuilder` for `ApprovalRevocationEnforcer`, deployment address added to `SmartAccountsEnvironment` ([#226](https://github.com/MetaMask/smart-accounts-kit/pull/226), [#237](https://github.com/MetaMask/smart-accounts-kit/pull/237))
|
|
29
|
+
- Helper for decoding revert reasons from delegated execution errors while preserving the original error output ([#245](https://github.com/MetaMask/smart-accounts-kit/pull/245))
|
|
19
30
|
|
|
20
31
|
### Changed
|
|
21
32
|
|
|
22
|
-
- Bumped @metamask/delegation-abis from `^1.0.0` to `^1.1.0` ([#234](https://github.com/
|
|
23
|
-
- Bumped @metamask/delegation-core from `^2.1.0` to `^2.2.1` ([#234](https://github.com/
|
|
24
|
-
- Bumped @metamask/delegation-deployments from `^1.3.0` to `^1.4.0` ([#234](https://github.com/
|
|
25
|
-
- Bumped @metamask/7715-permission-types from `^0.6.0` to `^0.7.1` ([#234](https://github.com/
|
|
33
|
+
- Bumped @metamask/delegation-abis from `^1.0.0` to `^1.1.0` ([#234](https://github.com/MetaMask/smart-accounts-kit/pull/234))
|
|
34
|
+
- Bumped @metamask/delegation-core from `^2.1.0` to `^2.2.1` ([#234](https://github.com/MetaMask/smart-accounts-kit/pull/234), [#240](https://github.com/MetaMask/smart-accounts-kit/pull/240))
|
|
35
|
+
- Bumped @metamask/delegation-deployments from `^1.3.0` to `^1.4.0` ([#234](https://github.com/MetaMask/smart-accounts-kit/pull/234))
|
|
36
|
+
- Bumped @metamask/7715-permission-types from `^0.6.0` to `^0.7.1` ([#234](https://github.com/MetaMask/smart-accounts-kit/pull/234), [#240](https://github.com/MetaMask/smart-accounts-kit/pull/240))
|
|
26
37
|
|
|
27
38
|
### Deprecated
|
|
28
39
|
|
|
29
|
-
- Deprecated `erc20-token-revocation` in favor of `token-approval-revocation` ([#226](https://github.com/
|
|
40
|
+
- Deprecated `erc20-token-revocation` in favor of `token-approval-revocation` ([#226](https://github.com/MetaMask/smart-accounts-kit/pull/226))
|
|
30
41
|
|
|
31
42
|
## [1.5.0]
|
|
32
43
|
|
|
33
44
|
### Added
|
|
34
45
|
|
|
35
|
-
- Add utils and wallet actions for redelegating a `permissionContext`: ([#217](https://github.com/
|
|
46
|
+
- Add utils and wallet actions for redelegating a `permissionContext`: ([#217](https://github.com/MetaMask/smart-accounts-kit/pull/217), [#229](https://github.com/MetaMask/smart-accounts-kit/pull/229))
|
|
36
47
|
|
|
37
48
|
### Changed
|
|
38
49
|
|
|
39
|
-
- Bumped @metamask/delegation-core from ^2.0.0 to ^2.1.0 ([#231](https://github.com/
|
|
50
|
+
- Bumped @metamask/delegation-core from ^2.0.0 to ^2.1.0 ([#231](https://github.com/MetaMask/smart-accounts-kit/pull/231))
|
|
40
51
|
|
|
41
52
|
## [1.4.0]
|
|
42
53
|
|
|
43
54
|
### Added
|
|
44
55
|
|
|
45
|
-
- Add optional `payee` execution rule to `PermissionRequestParameter` for allowance-type permissions ([#219](https://github.com/
|
|
46
|
-
- Add new erc-7715 simple allowance types: ([#214](https://github.com/
|
|
56
|
+
- Add optional `payee` execution rule to `PermissionRequestParameter` for allowance-type permissions ([#219](https://github.com/MetaMask/smart-accounts-kit/pull/219))
|
|
57
|
+
- Add new erc-7715 simple allowance types: ([#214](https://github.com/MetaMask/smart-accounts-kit/pull/214))
|
|
47
58
|
|
|
48
59
|
## [1.3.0]
|
|
49
60
|
|
|
50
61
|
### Added
|
|
51
62
|
|
|
52
|
-
- feat: add redeemer rule ([#212](https://github.com/
|
|
63
|
+
- feat: add redeemer rule ([#212](https://github.com/MetaMask/smart-accounts-kit/pull/212))
|
|
53
64
|
- Optional `redeemer` on `PermissionRequestParameter` maps to a `redeemer` execution rule; granted permission responses checksum-normalize redeemer addresses in `rules`.
|
|
54
65
|
|
|
55
66
|
## [1.2.0]
|
|
56
67
|
|
|
57
68
|
### Added
|
|
58
69
|
|
|
59
|
-
- `decodeCaveat` util function ([#191](https://github.com/
|
|
60
|
-
- Chain deployment for Katana mainnet and Katana Bokuto ([#203](https://github.com/
|
|
61
|
-
- Anonymous usage statistics to help improve the SDK ([#185](https://github.com/
|
|
70
|
+
- `decodeCaveat` util function ([#191](https://github.com/MetaMask/smart-accounts-kit/pull/191))
|
|
71
|
+
- Chain deployment for Katana mainnet and Katana Bokuto ([#203](https://github.com/MetaMask/smart-accounts-kit/pull/203))
|
|
72
|
+
- Anonymous usage statistics to help improve the SDK ([#185](https://github.com/MetaMask/smart-accounts-kit/pull/185))
|
|
62
73
|
- Opt out by setting environment variables `CI` or `DO_NOT_TRACK`, or `navigator.doNotTrack` or `window.doNotTrack` to either '1', 'true', or 'yes'
|
|
63
74
|
|
|
64
75
|
## [1.1.0]
|
|
65
76
|
|
|
66
77
|
### Added
|
|
67
78
|
|
|
68
|
-
- A `nonceKeyManager` can now be specified when calling `toMetaMaskSmartAccount` ([#199](https://github.com/
|
|
79
|
+
- A `nonceKeyManager` can now be specified when calling `toMetaMaskSmartAccount` ([#199](https://github.com/MetaMask/smart-accounts-kit/pull/199))
|
|
69
80
|
|
|
70
81
|
### Fixed
|
|
71
82
|
|
|
72
|
-
- Nonce is always generated with nonce key `0n`, ignoring any specified nonce key value ([#199](https://github.com/
|
|
83
|
+
- Nonce is always generated with nonce key `0n`, ignoring any specified nonce key value ([#199](https://github.com/MetaMask/smart-accounts-kit/pull/199))
|
|
73
84
|
|
|
74
85
|
## [1.0.0]
|
|
75
86
|
|
|
76
87
|
### Changed
|
|
77
88
|
|
|
78
|
-
- Migrate from `webauthn-p256` to `0x` p256 module ([#193](https://github.com/
|
|
79
|
-
- `signer` param is now optional in `toMetaMaskSmartAccount` ([#178](https://github.com/
|
|
89
|
+
- Migrate from `webauthn-p256` to `0x` p256 module ([#193](https://github.com/MetaMask/smart-accounts-kit/pull/193))
|
|
90
|
+
- `signer` param is now optional in `toMetaMaskSmartAccount` ([#178](https://github.com/MetaMask/smart-accounts-kit/pull/178))
|
|
80
91
|
|
|
81
92
|
## [0.4.0-beta.2]
|
|
82
93
|
|
|
83
94
|
### Added
|
|
84
95
|
|
|
85
|
-
- Add `encodeDelegation` and `decodeDelegation` utilities for encoding and decoding single delegations. ([#153](https://github.com/
|
|
86
|
-
- Add DelegationManager validation for EIP-7710 actions ([#150](https://github.com/
|
|
87
|
-
- Support for Tempo Mainnet and Tempo Moderato Testnet ([#177](https://github.com/
|
|
96
|
+
- Add `encodeDelegation` and `decodeDelegation` utilities for encoding and decoding single delegations. ([#153](https://github.com/MetaMask/smart-accounts-kit/pull/153))
|
|
97
|
+
- Add DelegationManager validation for EIP-7710 actions ([#150](https://github.com/MetaMask/smart-accounts-kit/pull/150))
|
|
98
|
+
- Support for Tempo Mainnet and Tempo Moderato Testnet ([#177](https://github.com/MetaMask/smart-accounts-kit/pull/177))
|
|
88
99
|
|
|
89
100
|
### Changed
|
|
90
101
|
|
|
91
|
-
- Introduce `PermissionContext` to represent a delegation chain (ABI-encoded `Hex` or decoded `Delegation[]`). ([#140](https://github.com/
|
|
102
|
+
- Introduce `PermissionContext` to represent a delegation chain (ABI-encoded `Hex` or decoded `Delegation[]`). ([#140](https://github.com/MetaMask/smart-accounts-kit/pull/140))
|
|
92
103
|
- **Breaking**: Replace usages of raw `Hex` _or_ `Delegation[]` with `PermissionContext`, and rename `permissionsContext` to `permissionContext` (note the singular "permission") where applicable:
|
|
93
104
|
- `SendTransactionWithDelegation`: `permissionsContext: Hex` → `permissionContext: PermissionContext`
|
|
94
105
|
- `SendUserOperationWithDelegation`: within `calls: DelegatedCall`, `permissionsContext: Hex` → `permissionContext: PermissionContext`
|
|
95
106
|
- `redeemDelegations`: parameter `Delegation[]` → `PermissionContext`
|
|
96
107
|
- `encodeDelegations` and `decodeDelegations` now accept `PermissionContext` (if the input is already the expected type, the input is returned)
|
|
97
108
|
- `encode`, `execute`, and `simulate` functions for `DelegationManager.redeemDelegations` from `@metamask/smart-accounts-kit/contracts`: parameter `delegations: Delegation[]` → `delegations: PermissionContext`
|
|
98
|
-
- **Breaking**: ERC-7715 actions now return developer-friendly types: `chainId` as number, token amounts as `bigint`. ([#172](https://github.com/
|
|
99
|
-
- **Breaking**: Rename `getDelegationHashOffchain` to `hashDelegation` for improved clarity. ([#162](https://github.com/
|
|
100
|
-
- **Breaking**: EIP-7715 permission requests nest `isAdjustmentAllowed` inside each permission object per specification. ([#159](https://github.com/
|
|
101
|
-
- **Breaking**: `sendUserOperationWithDelegation` now accepts `dependencies` instead of deprecated `accountMetadata`. ([#157](https://github.com/
|
|
102
|
-
- **Breaking**: Validate that the provided `DelegationManager` address matches the known contract address for the chain in EIP-7710 actions. ([#156](https://github.com/
|
|
103
|
-
- **Breaking**: Default `delegation.salt` and `caveat.args` to `0x00` instead of invalid `0x`. ([#138](https://github.com/
|
|
104
|
-
- Allow scope type to be specified either as `ScopeType` enum, or string literal. ([#133](https://github.com/
|
|
105
|
-
- Allow caveat type to be specified either as `CaveatType` enum, or string literal. ([#179](https://github.com/
|
|
109
|
+
- **Breaking**: ERC-7715 actions now return developer-friendly types: `chainId` as number, token amounts as `bigint`. ([#172](https://github.com/MetaMask/smart-accounts-kit/pull/172))
|
|
110
|
+
- **Breaking**: Rename `getDelegationHashOffchain` to `hashDelegation` for improved clarity. ([#162](https://github.com/MetaMask/smart-accounts-kit/pull/162))
|
|
111
|
+
- **Breaking**: EIP-7715 permission requests nest `isAdjustmentAllowed` inside each permission object per specification. ([#159](https://github.com/MetaMask/smart-accounts-kit/pull/159))
|
|
112
|
+
- **Breaking**: `sendUserOperationWithDelegation` now accepts `dependencies` instead of deprecated `accountMetadata`. ([#157](https://github.com/MetaMask/smart-accounts-kit/pull/157))
|
|
113
|
+
- **Breaking**: Validate that the provided `DelegationManager` address matches the known contract address for the chain in EIP-7710 actions. ([#156](https://github.com/MetaMask/smart-accounts-kit/pull/156))
|
|
114
|
+
- **Breaking**: Default `delegation.salt` and `caveat.args` to `0x00` instead of invalid `0x`. ([#138](https://github.com/MetaMask/smart-accounts-kit/pull/138))
|
|
115
|
+
- Allow scope type to be specified either as `ScopeType` enum, or string literal. ([#133](https://github.com/MetaMask/smart-accounts-kit/pull/133))
|
|
116
|
+
- Allow caveat type to be specified either as `CaveatType` enum, or string literal. ([#179](https://github.com/MetaMask/smart-accounts-kit/pull/179))
|
|
106
117
|
|
|
107
118
|
### Removed
|
|
108
119
|
|
|
109
|
-
- **Breaking**: `encodePermissionContexts` and `decodePermissionContexts` utilities; use `encodeDelegations` and `decodeDelegations` directly. ([#148](https://github.com/
|
|
110
|
-
- **Breaking**: `redeemDelegations` helper and `Redemption` type; use `redeemDelegations` encoding / execution utilities directly. ([#160](https://github.com/
|
|
120
|
+
- **Breaking**: `encodePermissionContexts` and `decodePermissionContexts` utilities; use `encodeDelegations` and `decodeDelegations` directly. ([#148](https://github.com/MetaMask/smart-accounts-kit/pull/148))
|
|
121
|
+
- **Breaking**: `redeemDelegations` helper and `Redemption` type; use `redeemDelegations` encoding / execution utilities directly. ([#160](https://github.com/MetaMask/smart-accounts-kit/pull/160))
|
|
111
122
|
|
|
112
123
|
### Fixed
|
|
113
124
|
|
|
114
|
-
- Fix delegation storage to throw a proper `Error` instance so stack traces are correct across environments. ([#171](https://github.com/
|
|
115
|
-
- Fix `signDelegation` to correctly await the signer and return the signed signature. ([#168](https://github.com/
|
|
125
|
+
- Fix delegation storage to throw a proper `Error` instance so stack traces are correct across environments. ([#171](https://github.com/MetaMask/smart-accounts-kit/pull/171))
|
|
126
|
+
- Fix `signDelegation` to correctly await the signer and return the signed signature. ([#168](https://github.com/MetaMask/smart-accounts-kit/pull/168))
|
|
116
127
|
|
|
117
128
|
## [0.4.0-beta.1]
|
|
118
129
|
|
|
119
130
|
### Added
|
|
120
131
|
|
|
121
|
-
- Exports 2 new types: `PermissionRequestParameter` and `Erc7715Client` ([#134](https://github.com/
|
|
132
|
+
- Exports 2 new types: `PermissionRequestParameter` and `Erc7715Client` ([#134](https://github.com/MetaMask/smart-accounts-kit/pull/134))
|
|
122
133
|
|
|
123
134
|
### Fixed
|
|
124
135
|
|
|
125
|
-
- Improve @metamask/delegation-abis tree-shakability ([#131](https://github.com/
|
|
136
|
+
- Improve @metamask/delegation-abis tree-shakability ([#131](https://github.com/MetaMask/smart-accounts-kit/pull/131))
|
|
126
137
|
|
|
127
138
|
## [0.4.0-beta.0]
|
|
128
139
|
|
|
129
140
|
### Added
|
|
130
141
|
|
|
131
|
-
- feat: add discoverability methods ([#127](https://github.com/
|
|
142
|
+
- feat: add discoverability methods ([#127](https://github.com/MetaMask/smart-accounts-kit/pull/127))
|
|
132
143
|
|
|
133
144
|
### Fixed
|
|
134
145
|
|
|
135
|
-
- **Breaking** Implement erc-7715 type scheme revisions across packages ([#128](https://github.com/
|
|
136
|
-
- Resolve yarn peer dependency warnings ([#123](https://github.com/
|
|
137
|
-
- Allow expiry to be omitted when requesting 7715 permissions ([#122](https://github.com/
|
|
146
|
+
- **Breaking** Implement erc-7715 type scheme revisions across packages ([#128](https://github.com/MetaMask/smart-accounts-kit/pull/128))
|
|
147
|
+
- Resolve yarn peer dependency warnings ([#123](https://github.com/MetaMask/smart-accounts-kit/pull/123))
|
|
148
|
+
- Allow expiry to be omitted when requesting 7715 permissions ([#122](https://github.com/MetaMask/smart-accounts-kit/pull/122))
|
|
138
149
|
|
|
139
150
|
## [0.3.0]
|
|
140
151
|
|
|
141
152
|
### Fixed
|
|
142
153
|
|
|
143
|
-
- **Breaking** `function-call` scope no longer allows native token value, unless explicitly configured ([#118](https://github.com/
|
|
144
|
-
- Add `typesVersions` to `package.json` so that subpath exports can be resolved for packages using `moduleResolution: node` ([#112](https://github.com/
|
|
154
|
+
- **Breaking** `function-call` scope no longer allows native token value, unless explicitly configured ([#118](https://github.com/MetaMask/smart-accounts-kit/pull/118))
|
|
155
|
+
- Add `typesVersions` to `package.json` so that subpath exports can be resolved for packages using `moduleResolution: node` ([#112](https://github.com/MetaMask/smart-accounts-kit/pull/112))
|
|
145
156
|
|
|
146
157
|
## [0.2.0]
|
|
147
158
|
|
|
148
159
|
### Added
|
|
149
160
|
|
|
150
|
-
- New permission type `erc20-token-revocation` to ERC-7715 actions ([#110](https://github.com/
|
|
161
|
+
- New permission type `erc20-token-revocation` to ERC-7715 actions ([#110](https://github.com/MetaMask/smart-accounts-kit/pull/110))
|
|
151
162
|
|
|
152
163
|
### Fixed
|
|
153
164
|
|
|
154
|
-
- Throw meaningful errors in validation of ERC-7715 request parameters ([#107](https://github.com/
|
|
165
|
+
- Throw meaningful errors in validation of ERC-7715 request parameters ([#107](https://github.com/MetaMask/smart-accounts-kit/pull/107), [#103](https://github.com/MetaMask/smart-accounts-kit/pull/103))
|
|
155
166
|
|
|
156
167
|
## [0.1.0]
|
|
157
168
|
|
|
158
169
|
### Changed
|
|
159
170
|
|
|
160
|
-
- Promote readable permissions actions (`requestExecutionPermissions`, `sendTransactionWithDelegation`, and `sendUserOperationWithDelegation`) from experimental ([#91](https://github.com/
|
|
161
|
-
|
|
162
|
-
[Unreleased]: https://github.com/
|
|
163
|
-
[1.
|
|
164
|
-
[1.
|
|
165
|
-
[1.
|
|
166
|
-
[1.
|
|
167
|
-
[1.
|
|
168
|
-
[1.
|
|
169
|
-
[1.
|
|
170
|
-
[0.
|
|
171
|
-
[0.4.0-beta.
|
|
172
|
-
[0.4.0-beta.
|
|
173
|
-
[0.
|
|
174
|
-
[0.
|
|
175
|
-
[0.
|
|
171
|
+
- Promote readable permissions actions (`requestExecutionPermissions`, `sendTransactionWithDelegation`, and `sendUserOperationWithDelegation`) from experimental ([#91](https://github.com/MetaMask/smart-accounts-kit/pull/91))
|
|
172
|
+
|
|
173
|
+
[Unreleased]: https://github.com/MetaMask/smart-accounts-kit/compare/@metamask/smart-accounts-kit@1.7.0...HEAD
|
|
174
|
+
[1.7.0]: https://github.com/MetaMask/smart-accounts-kit/compare/@metamask/smart-accounts-kit@1.6.0...@metamask/smart-accounts-kit@1.7.0
|
|
175
|
+
[1.6.0]: https://github.com/MetaMask/smart-accounts-kit/compare/@metamask/smart-accounts-kit@1.5.0...@metamask/smart-accounts-kit@1.6.0
|
|
176
|
+
[1.5.0]: https://github.com/MetaMask/smart-accounts-kit/compare/@metamask/smart-accounts-kit@1.4.0...@metamask/smart-accounts-kit@1.5.0
|
|
177
|
+
[1.4.0]: https://github.com/MetaMask/smart-accounts-kit/compare/@metamask/smart-accounts-kit@1.3.0...@metamask/smart-accounts-kit@1.4.0
|
|
178
|
+
[1.3.0]: https://github.com/MetaMask/smart-accounts-kit/compare/@metamask/smart-accounts-kit@1.2.0...@metamask/smart-accounts-kit@1.3.0
|
|
179
|
+
[1.2.0]: https://github.com/MetaMask/smart-accounts-kit/compare/@metamask/smart-accounts-kit@1.1.0...@metamask/smart-accounts-kit@1.2.0
|
|
180
|
+
[1.1.0]: https://github.com/MetaMask/smart-accounts-kit/compare/@metamask/smart-accounts-kit@1.0.0...@metamask/smart-accounts-kit@1.1.0
|
|
181
|
+
[1.0.0]: https://github.com/MetaMask/smart-accounts-kit/compare/@metamask/smart-accounts-kit@0.4.0-beta.2...@metamask/smart-accounts-kit@1.0.0
|
|
182
|
+
[0.4.0-beta.2]: https://github.com/MetaMask/smart-accounts-kit/compare/@metamask/smart-accounts-kit@0.4.0-beta.1...@metamask/smart-accounts-kit@0.4.0-beta.2
|
|
183
|
+
[0.4.0-beta.1]: https://github.com/MetaMask/smart-accounts-kit/compare/@metamask/smart-accounts-kit@0.4.0-beta.0...@metamask/smart-accounts-kit@0.4.0-beta.1
|
|
184
|
+
[0.4.0-beta.0]: https://github.com/MetaMask/smart-accounts-kit/compare/@metamask/smart-accounts-kit@0.3.0...@metamask/smart-accounts-kit@0.4.0-beta.0
|
|
185
|
+
[0.3.0]: https://github.com/MetaMask/smart-accounts-kit/compare/@metamask/smart-accounts-kit@0.2.0...@metamask/smart-accounts-kit@0.3.0
|
|
186
|
+
[0.2.0]: https://github.com/MetaMask/smart-accounts-kit/compare/@metamask/smart-accounts-kit@0.1.0...@metamask/smart-accounts-kit@0.2.0
|
|
187
|
+
[0.1.0]: https://github.com/MetaMask/smart-accounts-kit/releases/tag/@metamask/smart-accounts-kit@0.1.0
|
package/dist/actions/index.cjs
CHANGED
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
22
|
-
require('../chunk-
|
|
21
|
+
var _chunk6TSLFRJCcjs = require('../chunk-6TSLFRJC.cjs');
|
|
22
|
+
require('../chunk-YPUEM6YV.cjs');
|
|
23
23
|
require('../chunk-2OS36DVV.cjs');
|
|
24
|
-
require('../chunk-
|
|
24
|
+
require('../chunk-GHGCGV3C.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
@@ -42,5 +42,5 @@ require('../chunk-W6HPAK4M.cjs');
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
exports.caveatEnforcerActions =
|
|
45
|
+
exports.caveatEnforcerActions = _chunk6TSLFRJCcjs.caveatEnforcerActions; exports.erc7710BundlerActions = _chunk6TSLFRJCcjs.erc7710BundlerActions; exports.erc7710WalletActions = _chunk6TSLFRJCcjs.erc7710WalletActions; exports.erc7715ProviderActions = _chunk6TSLFRJCcjs.erc7715ProviderActions; exports.getErc20PeriodTransferEnforcerAvailableAmount = _chunk6TSLFRJCcjs.getErc20PeriodTransferEnforcerAvailableAmount; exports.getErc20StreamingEnforcerAvailableAmount = _chunk6TSLFRJCcjs.getErc20StreamingEnforcerAvailableAmount; exports.getGrantedExecutionPermissions = _chunk6TSLFRJCcjs.erc7715GetGrantedExecutionPermissionsAction; exports.getMultiTokenPeriodEnforcerAvailableAmount = _chunk6TSLFRJCcjs.getMultiTokenPeriodEnforcerAvailableAmount; exports.getNativeTokenPeriodTransferEnforcerAvailableAmount = _chunk6TSLFRJCcjs.getNativeTokenPeriodTransferEnforcerAvailableAmount; exports.getNativeTokenStreamingEnforcerAvailableAmount = _chunk6TSLFRJCcjs.getNativeTokenStreamingEnforcerAvailableAmount; exports.getSupportedExecutionPermissions = _chunk6TSLFRJCcjs.erc7715GetSupportedExecutionPermissionsAction; exports.isValid7702Implementation = _chunk6TSLFRJCcjs.isValid7702Implementation; exports.redelegatePermissionContextAction = _chunk6TSLFRJCcjs.redelegatePermissionContextAction; exports.redelegatePermissionContextOpenAction = _chunk6TSLFRJCcjs.redelegatePermissionContextOpenAction; exports.requestExecutionPermissions = _chunk6TSLFRJCcjs.erc7715RequestExecutionPermissionsAction; exports.signDelegation = _chunk6TSLFRJCcjs.signDelegation; exports.signDelegationActions = _chunk6TSLFRJCcjs.signDelegationActions; exports.signUserOperation = _chunk6TSLFRJCcjs.signUserOperation; exports.signUserOperationActions = _chunk6TSLFRJCcjs.signUserOperationActions;
|
|
46
46
|
//# sourceMappingURL=index.cjs.map
|
package/dist/actions/index.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { C as CaveatEnforcerParams, D as DelegatedCall, E as Erc20TokenAllowancePermission, a as Erc20TokenPeriodicPermission, b as Erc20TokenRevocationPermission, d as Erc20TokenStreamPermission, e as Erc7710WalletClient, f as Erc7715Client, G as GetGrantedExecutionPermissionsResult, g as GetSupportedExecutionPermissionsResult, M as MetaMaskExtensionClient, h as MetaMaskExtensionSchema, N as NativeTokenAllowancePermission, j as NativeTokenPeriodicPermission, k as NativeTokenStreamPermission, P as PeriodTransferResult, l as PermissionRequestParameter, m as PermissionTypes, R as RedelegatePermissionContextOpenParameters, n as RedelegatePermissionContextParameters, o as RedelegatePermissionContextReturnType, p as RequestExecutionPermissionsParameters, q as RequestExecutionPermissionsReturnType, r as RpcGetGrantedExecutionPermissionsResult, s as RpcGetSupportedExecutionPermissionsResult, t as RpcSupportedPermissionInfo, S as SignDelegationParameters, u as SignDelegationReturnType, v as SignUserOperationParameters, w as SignUserOperationReturnType, x as StreamingResult, y as SupportedPermissionInfo, T as TokenApprovalRevocationPermission, c as caveatEnforcerActions, z as erc7710BundlerActions, A as erc7710WalletActions, B as erc7715ProviderActions, F as getErc20PeriodTransferEnforcerAvailableAmount, H as getErc20StreamingEnforcerAvailableAmount, I as getGrantedExecutionPermissions, J as getMultiTokenPeriodEnforcerAvailableAmount, K as getNativeTokenPeriodTransferEnforcerAvailableAmount, L as getNativeTokenStreamingEnforcerAvailableAmount, O as getSupportedExecutionPermissions, Q as isValid7702Implementation, U as redelegatePermissionContextAction, V as redelegatePermissionContextOpenAction, W as requestExecutionPermissions, X as signDelegation, Y as signDelegationActions, Z as signUserOperation, _ as signUserOperationActions } from '../index-
|
|
1
|
+
export { C as CaveatEnforcerParams, D as DelegatedCall, E as Erc20TokenAllowancePermission, a as Erc20TokenPeriodicPermission, b as Erc20TokenRevocationPermission, d as Erc20TokenStreamPermission, e as Erc7710WalletClient, f as Erc7715Client, G as GetGrantedExecutionPermissionsResult, g as GetSupportedExecutionPermissionsResult, M as MetaMaskExtensionClient, h as MetaMaskExtensionSchema, N as NativeTokenAllowancePermission, j as NativeTokenPeriodicPermission, k as NativeTokenStreamPermission, P as PeriodTransferResult, l as PermissionRequestParameter, m as PermissionTypes, R as RedelegatePermissionContextOpenParameters, n as RedelegatePermissionContextParameters, o as RedelegatePermissionContextReturnType, p as RequestExecutionPermissionsParameters, q as RequestExecutionPermissionsReturnType, r as RpcGetGrantedExecutionPermissionsResult, s as RpcGetSupportedExecutionPermissionsResult, t as RpcSupportedPermissionInfo, S as SignDelegationParameters, u as SignDelegationReturnType, v as SignUserOperationParameters, w as SignUserOperationReturnType, x as StreamingResult, y as SupportedPermissionInfo, T as TokenApprovalRevocationPermission, c as caveatEnforcerActions, z as erc7710BundlerActions, A as erc7710WalletActions, B as erc7715ProviderActions, F as getErc20PeriodTransferEnforcerAvailableAmount, H as getErc20StreamingEnforcerAvailableAmount, I as getGrantedExecutionPermissions, J as getMultiTokenPeriodEnforcerAvailableAmount, K as getNativeTokenPeriodTransferEnforcerAvailableAmount, L as getNativeTokenStreamingEnforcerAvailableAmount, O as getSupportedExecutionPermissions, Q as isValid7702Implementation, U as redelegatePermissionContextAction, V as redelegatePermissionContextOpenAction, W as requestExecutionPermissions, X as signDelegation, Y as signDelegationActions, Z as signUserOperation, _ as signUserOperationActions } from '../index-DYJjOeTn.cjs';
|
|
2
2
|
import 'viem';
|
|
3
3
|
export { Rule } from '@metamask/7715-permission-types';
|
|
4
|
-
import '../resolveCaveats-
|
|
4
|
+
import '../resolveCaveats-aQPEogPk.cjs';
|
|
5
5
|
import '@metamask/delegation-abis';
|
|
6
6
|
import 'viem/account-abstraction';
|
|
7
7
|
import 'viem/chains';
|
|
8
8
|
import '@metamask/delegation-core';
|
|
9
|
-
import '../index-
|
|
9
|
+
import '../index-BHm75OFP.cjs';
|
|
10
10
|
import '../userOp-DKgjzz7B.cjs';
|
package/dist/actions/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { C as CaveatEnforcerParams, D as DelegatedCall, E as Erc20TokenAllowancePermission, a as Erc20TokenPeriodicPermission, b as Erc20TokenRevocationPermission, d as Erc20TokenStreamPermission, e as Erc7710WalletClient, f as Erc7715Client, G as GetGrantedExecutionPermissionsResult, g as GetSupportedExecutionPermissionsResult, M as MetaMaskExtensionClient, h as MetaMaskExtensionSchema, N as NativeTokenAllowancePermission, j as NativeTokenPeriodicPermission, k as NativeTokenStreamPermission, P as PeriodTransferResult, l as PermissionRequestParameter, m as PermissionTypes, R as RedelegatePermissionContextOpenParameters, n as RedelegatePermissionContextParameters, o as RedelegatePermissionContextReturnType, p as RequestExecutionPermissionsParameters, q as RequestExecutionPermissionsReturnType, r as RpcGetGrantedExecutionPermissionsResult, s as RpcGetSupportedExecutionPermissionsResult, t as RpcSupportedPermissionInfo, S as SignDelegationParameters, u as SignDelegationReturnType, v as SignUserOperationParameters, w as SignUserOperationReturnType, x as StreamingResult, y as SupportedPermissionInfo, T as TokenApprovalRevocationPermission, c as caveatEnforcerActions, z as erc7710BundlerActions, A as erc7710WalletActions, B as erc7715ProviderActions, F as getErc20PeriodTransferEnforcerAvailableAmount, H as getErc20StreamingEnforcerAvailableAmount, I as getGrantedExecutionPermissions, J as getMultiTokenPeriodEnforcerAvailableAmount, K as getNativeTokenPeriodTransferEnforcerAvailableAmount, L as getNativeTokenStreamingEnforcerAvailableAmount, O as getSupportedExecutionPermissions, Q as isValid7702Implementation, U as redelegatePermissionContextAction, V as redelegatePermissionContextOpenAction, W as requestExecutionPermissions, X as signDelegation, Y as signDelegationActions, Z as signUserOperation, _ as signUserOperationActions } from '../index-
|
|
1
|
+
export { C as CaveatEnforcerParams, D as DelegatedCall, E as Erc20TokenAllowancePermission, a as Erc20TokenPeriodicPermission, b as Erc20TokenRevocationPermission, d as Erc20TokenStreamPermission, e as Erc7710WalletClient, f as Erc7715Client, G as GetGrantedExecutionPermissionsResult, g as GetSupportedExecutionPermissionsResult, M as MetaMaskExtensionClient, h as MetaMaskExtensionSchema, N as NativeTokenAllowancePermission, j as NativeTokenPeriodicPermission, k as NativeTokenStreamPermission, P as PeriodTransferResult, l as PermissionRequestParameter, m as PermissionTypes, R as RedelegatePermissionContextOpenParameters, n as RedelegatePermissionContextParameters, o as RedelegatePermissionContextReturnType, p as RequestExecutionPermissionsParameters, q as RequestExecutionPermissionsReturnType, r as RpcGetGrantedExecutionPermissionsResult, s as RpcGetSupportedExecutionPermissionsResult, t as RpcSupportedPermissionInfo, S as SignDelegationParameters, u as SignDelegationReturnType, v as SignUserOperationParameters, w as SignUserOperationReturnType, x as StreamingResult, y as SupportedPermissionInfo, T as TokenApprovalRevocationPermission, c as caveatEnforcerActions, z as erc7710BundlerActions, A as erc7710WalletActions, B as erc7715ProviderActions, F as getErc20PeriodTransferEnforcerAvailableAmount, H as getErc20StreamingEnforcerAvailableAmount, I as getGrantedExecutionPermissions, J as getMultiTokenPeriodEnforcerAvailableAmount, K as getNativeTokenPeriodTransferEnforcerAvailableAmount, L as getNativeTokenStreamingEnforcerAvailableAmount, O as getSupportedExecutionPermissions, Q as isValid7702Implementation, U as redelegatePermissionContextAction, V as redelegatePermissionContextOpenAction, W as requestExecutionPermissions, X as signDelegation, Y as signDelegationActions, Z as signUserOperation, _ as signUserOperationActions } from '../index-CgGKjHSr.js';
|
|
2
2
|
import 'viem';
|
|
3
3
|
export { Rule } from '@metamask/7715-permission-types';
|
|
4
|
-
import '../resolveCaveats-
|
|
4
|
+
import '../resolveCaveats-aQPEogPk.js';
|
|
5
5
|
import '@metamask/delegation-abis';
|
|
6
6
|
import 'viem/account-abstraction';
|
|
7
7
|
import 'viem/chains';
|
|
8
8
|
import '@metamask/delegation-core';
|
|
9
|
-
import '../index-
|
|
9
|
+
import '../index-DWvEgBtg.js';
|
|
10
10
|
import '../userOp-DKgjzz7B.js';
|
package/dist/actions/index.mjs
CHANGED
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
signDelegationActions,
|
|
19
19
|
signUserOperation,
|
|
20
20
|
signUserOperationActions
|
|
21
|
-
} from "../chunk-
|
|
22
|
-
import "../chunk-
|
|
21
|
+
} from "../chunk-XUBMIW33.mjs";
|
|
22
|
+
import "../chunk-YCNLPEPH.mjs";
|
|
23
23
|
import "../chunk-GMGJRC3D.mjs";
|
|
24
|
-
import "../chunk-
|
|
24
|
+
import "../chunk-3KWKQ7PV.mjs";
|
|
25
25
|
export {
|
|
26
26
|
caveatEnforcerActions,
|
|
27
27
|
erc7710BundlerActions,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WalletClient, PublicClient, Chain, Hex } from 'viem';
|
|
2
|
-
import { S as SmartAccountsEnvironment,
|
|
2
|
+
import { S as SmartAccountsEnvironment, b as Caveat, z as CoreCaveatConfiguration } from './resolveCaveats-aQPEogPk.cjs';
|
|
3
3
|
|
|
4
4
|
type SupportedVersion = '1.0.0' | '1.1.0' | '1.2.0' | '1.3.0';
|
|
5
5
|
declare const PREFERRED_VERSION: SupportedVersion;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WalletClient, PublicClient, Chain, Hex } from 'viem';
|
|
2
|
-
import { S as SmartAccountsEnvironment,
|
|
2
|
+
import { S as SmartAccountsEnvironment, b as Caveat, z as CoreCaveatConfiguration } from './resolveCaveats-aQPEogPk.js';
|
|
3
3
|
|
|
4
4
|
type SupportedVersion = '1.0.0' | '1.1.0' | '1.2.0' | '1.3.0';
|
|
5
5
|
declare const PREFERRED_VERSION: SupportedVersion;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkGHGCGV3Ccjs = require('./chunk-GHGCGV3C.cjs');
|
|
6
6
|
|
|
7
7
|
// src/DelegationFramework/utils.ts
|
|
8
8
|
var _delegationabis = require('@metamask/delegation-abis'); var delegationAbis = _interopRequireWildcard(_delegationabis);
|
|
@@ -12,7 +12,7 @@ var _actions = require('viem/actions');
|
|
|
12
12
|
|
|
13
13
|
// src/DelegationFramework/DeleGatorCore/read.ts
|
|
14
14
|
var read_exports = {};
|
|
15
|
-
|
|
15
|
+
_chunkGHGCGV3Ccjs.__export.call(void 0, read_exports, {
|
|
16
16
|
getDelegationManager: () => read,
|
|
17
17
|
getDeposit: () => read2,
|
|
18
18
|
getEntryPoint: () => read3,
|
|
@@ -377,7 +377,7 @@ var encode2 = ({
|
|
|
377
377
|
|
|
378
378
|
// src/DelegationFramework/HybridDeleGator/encode.ts
|
|
379
379
|
var encode_exports = {};
|
|
380
|
-
|
|
380
|
+
_chunkGHGCGV3Ccjs.__export.call(void 0, encode_exports, {
|
|
381
381
|
addKey: () => encode3,
|
|
382
382
|
initializeHybridDeleGator: () => encode2,
|
|
383
383
|
reinitializeHybridDeleGator: () => encode4,
|
|
@@ -544,7 +544,7 @@ var encode7 = ({ owners, threshold }) => {
|
|
|
544
544
|
|
|
545
545
|
// src/DelegationFramework/MultiSigDeleGator/encode.ts
|
|
546
546
|
var encode_exports2 = {};
|
|
547
|
-
|
|
547
|
+
_chunkGHGCGV3Ccjs.__export.call(void 0, encode_exports2, {
|
|
548
548
|
addSigner: () => encode8,
|
|
549
549
|
initializeMultiSigDeleGator: () => encode7,
|
|
550
550
|
reinitializeMultiSigDeleGator: () => encode9,
|
|
@@ -757,7 +757,7 @@ var execute = async ({
|
|
|
757
757
|
|
|
758
758
|
// src/DelegationFramework/SimpleFactory/encode.ts
|
|
759
759
|
var encode_exports3 = {};
|
|
760
|
-
|
|
760
|
+
_chunkGHGCGV3Ccjs.__export.call(void 0, encode_exports3, {
|
|
761
761
|
create2Deploy: () => encode14
|
|
762
762
|
});
|
|
763
763
|
|
|
@@ -811,7 +811,7 @@ var simulate15 = async ({
|
|
|
811
811
|
address: contractAddress,
|
|
812
812
|
abi: _delegationabis.DeleGatorCore,
|
|
813
813
|
functionName: "execute",
|
|
814
|
-
args: [mode,
|
|
814
|
+
args: [mode, _chunkGHGCGV3Ccjs.encodeExecutionCalldata.call(void 0, executions)]
|
|
815
815
|
});
|
|
816
816
|
};
|
|
817
817
|
var execute3 = async ({
|
|
@@ -835,13 +835,13 @@ var encode16 = ({
|
|
|
835
835
|
return _viem.encodeFunctionData.call(void 0, {
|
|
836
836
|
abi: _delegationabis.DeleGatorCore,
|
|
837
837
|
functionName: "execute",
|
|
838
|
-
args: [mode,
|
|
838
|
+
args: [mode, _chunkGHGCGV3Ccjs.encodeExecutionCalldata.call(void 0, executions)]
|
|
839
839
|
});
|
|
840
840
|
};
|
|
841
841
|
|
|
842
842
|
// src/DelegationFramework/DeleGatorCore/encode.ts
|
|
843
843
|
var encode_exports4 = {};
|
|
844
|
-
|
|
844
|
+
_chunkGHGCGV3Ccjs.__export.call(void 0, encode_exports4, {
|
|
845
845
|
disableDelegation: () => encode17,
|
|
846
846
|
enableDelegation: () => encode18,
|
|
847
847
|
execute: () => encode15,
|
|
@@ -859,7 +859,7 @@ var simulate16 = async ({
|
|
|
859
859
|
delegationManagerAddress,
|
|
860
860
|
delegation
|
|
861
861
|
}) => {
|
|
862
|
-
const delegationStruct =
|
|
862
|
+
const delegationStruct = _chunkGHGCGV3Ccjs.toDelegationStruct.call(void 0, delegation);
|
|
863
863
|
return _actions.simulateContract.call(void 0, client, {
|
|
864
864
|
address: delegationManagerAddress,
|
|
865
865
|
abi: _delegationabis.DeleGatorCore,
|
|
@@ -880,7 +880,7 @@ var execute4 = async ({
|
|
|
880
880
|
return _actions.writeContract.call(void 0, client, request);
|
|
881
881
|
};
|
|
882
882
|
var encode17 = ({ delegation }) => {
|
|
883
|
-
const delegationStruct =
|
|
883
|
+
const delegationStruct = _chunkGHGCGV3Ccjs.toDelegationStruct.call(void 0, delegation);
|
|
884
884
|
return _viem.encodeFunctionData.call(void 0, {
|
|
885
885
|
abi: _delegationabis.DeleGatorCore,
|
|
886
886
|
functionName: "disableDelegation",
|
|
@@ -897,7 +897,7 @@ var simulate17 = async ({
|
|
|
897
897
|
delegationManagerAddress,
|
|
898
898
|
delegation
|
|
899
899
|
}) => {
|
|
900
|
-
const delegationStruct =
|
|
900
|
+
const delegationStruct = _chunkGHGCGV3Ccjs.toDelegationStruct.call(void 0, delegation);
|
|
901
901
|
return _actions.simulateContract.call(void 0, client, {
|
|
902
902
|
address: delegationManagerAddress,
|
|
903
903
|
abi: _delegationabis.DeleGatorCore,
|
|
@@ -918,7 +918,7 @@ var execute5 = async ({
|
|
|
918
918
|
return _actions.writeContract.call(void 0, client, request);
|
|
919
919
|
};
|
|
920
920
|
var encode18 = ({ delegation }) => {
|
|
921
|
-
const delegationStruct =
|
|
921
|
+
const delegationStruct = _chunkGHGCGV3Ccjs.toDelegationStruct.call(void 0, delegation);
|
|
922
922
|
return _viem.encodeFunctionData.call(void 0, {
|
|
923
923
|
abi: _delegationabis.DeleGatorCore,
|
|
924
924
|
functionName: "enableDelegation",
|
|
@@ -1009,4 +1009,4 @@ var encode19 = ({
|
|
|
1009
1009
|
|
|
1010
1010
|
|
|
1011
1011
|
exports.simulate = simulate2; exports.simulate2 = simulate; exports.encode = encode2; exports.simulate3 = simulate3; exports.simulate4 = simulate4; exports.simulate5 = simulate5; exports.encode_exports = encode_exports; exports.simulate6 = simulate7; exports.simulate7 = simulate6; exports.encode2 = encode7; exports.simulate8 = simulate8; exports.simulate9 = simulate9; exports.simulate10 = simulate10; exports.simulate11 = simulate11; exports.simulate12 = simulate12; exports.encode_exports2 = encode_exports2; exports.simulate13 = simulate13; exports.encode3 = encode14; exports.execute = execute; exports.encode_exports3 = encode_exports3; exports.read_exports = read_exports; exports.isContractDeployed = isContractDeployed; exports.isImplementationExpected = isImplementationExpected; exports.encodeProxyCreationCode = encodeProxyCreationCode; exports.simulate14 = simulate16; exports.execute2 = execute4; exports.simulate15 = simulate17; exports.execute3 = execute5; exports.simulate16 = simulate14; exports.execute4 = execute2; exports.encode4 = encode15; exports.simulate17 = simulate15; exports.execute5 = execute3; exports.encode5 = encode16; exports.simulate18 = simulate18; exports.execute6 = execute6; exports.encode_exports4 = encode_exports4; exports.decodeRevertReason = decodeRevertReason; exports.decodeRevertData = decodeRevertData;
|
|
1012
|
-
//# sourceMappingURL=chunk-
|
|
1012
|
+
//# sourceMappingURL=chunk-32RDDE5N.cjs.map
|