@account-kit/smart-contracts 4.7.0 → 4.8.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/dist/esm/src/ma-v2/abis/accountFactoryAbi.d.ts +492 -0
- package/dist/esm/src/ma-v2/abis/accountFactoryAbi.js +639 -0
- package/dist/esm/src/ma-v2/abis/accountFactoryAbi.js.map +1 -0
- package/dist/esm/src/ma-v2/abis/modularAccountAbi.d.ts +954 -0
- package/dist/esm/src/ma-v2/abis/modularAccountAbi.js +1242 -0
- package/dist/esm/src/ma-v2/abis/modularAccountAbi.js.map +1 -0
- package/dist/esm/src/ma-v2/abis/semiModularAccountBytecodeAbi.d.ts +991 -0
- package/dist/esm/src/ma-v2/abis/semiModularAccountBytecodeAbi.js +1289 -0
- package/dist/esm/src/ma-v2/abis/semiModularAccountBytecodeAbi.js.map +1 -0
- package/dist/esm/src/ma-v2/abis/semiModularAccountStorageAbi.d.ts +1001 -0
- package/dist/esm/src/ma-v2/abis/semiModularAccountStorageAbi.js +1302 -0
- package/dist/esm/src/ma-v2/abis/semiModularAccountStorageAbi.js.map +1 -0
- package/dist/esm/src/ma-v2/account/nativeSMASigner.d.ts +238 -0
- package/dist/esm/src/ma-v2/account/nativeSMASigner.js +88 -0
- package/dist/esm/src/ma-v2/account/nativeSMASigner.js.map +1 -0
- package/dist/esm/src/ma-v2/account/semiModularAccountV2.d.ts +41 -0
- package/dist/esm/src/ma-v2/account/semiModularAccountV2.js +148 -0
- package/dist/esm/src/ma-v2/account/semiModularAccountV2.js.map +1 -0
- package/dist/esm/src/ma-v2/actions/common/types.d.ts +31 -0
- package/dist/esm/src/ma-v2/actions/common/types.js +6 -0
- package/dist/esm/src/ma-v2/actions/common/types.js.map +1 -0
- package/dist/esm/src/ma-v2/actions/common/utils.d.ts +76 -0
- package/dist/esm/src/ma-v2/actions/common/utils.js +100 -0
- package/dist/esm/src/ma-v2/actions/common/utils.js.map +1 -0
- package/dist/esm/src/ma-v2/actions/install-validation/installValidation.d.ts +71 -0
- package/dist/esm/src/ma-v2/actions/install-validation/installValidation.js +109 -0
- package/dist/esm/src/ma-v2/actions/install-validation/installValidation.js.map +1 -0
- package/dist/esm/src/ma-v2/client/client.d.ts +6 -0
- package/dist/esm/src/ma-v2/client/client.js +40 -0
- package/dist/esm/src/ma-v2/client/client.js.map +1 -0
- package/dist/esm/src/ma-v2/index.d.ts +26 -0
- package/dist/esm/src/ma-v2/index.js +24 -0
- package/dist/esm/src/ma-v2/index.js.map +1 -0
- package/dist/esm/src/ma-v2/modules/allowlist-module/abis/allowlistModuleAbi.d.ts +556 -0
- package/dist/esm/src/ma-v2/modules/allowlist-module/abis/allowlistModuleAbi.js +716 -0
- package/dist/esm/src/ma-v2/modules/allowlist-module/abis/allowlistModuleAbi.js.map +1 -0
- package/dist/esm/src/ma-v2/modules/allowlist-module/module.d.ts +579 -0
- package/dist/esm/src/ma-v2/modules/allowlist-module/module.js +56 -0
- package/dist/esm/src/ma-v2/modules/allowlist-module/module.js.map +1 -0
- package/dist/esm/src/ma-v2/modules/native-token-limit-module/abis/nativeTokenLimitModuleAbi.d.ts +312 -0
- package/dist/esm/src/ma-v2/modules/native-token-limit-module/abis/nativeTokenLimitModuleAbi.js +404 -0
- package/dist/esm/src/ma-v2/modules/native-token-limit-module/abis/nativeTokenLimitModuleAbi.js.map +1 -0
- package/dist/esm/src/ma-v2/modules/native-token-limit-module/module.d.ts +322 -0
- package/dist/esm/src/ma-v2/modules/native-token-limit-module/module.js +14 -0
- package/dist/esm/src/ma-v2/modules/native-token-limit-module/module.js.map +1 -0
- package/dist/esm/src/ma-v2/modules/paymaster-guard-module/abis/paymasterGuardModuleAbi.d.ts +186 -0
- package/dist/esm/src/ma-v2/modules/paymaster-guard-module/abis/paymasterGuardModuleAbi.js +242 -0
- package/dist/esm/src/ma-v2/modules/paymaster-guard-module/abis/paymasterGuardModuleAbi.js.map +1 -0
- package/dist/esm/src/ma-v2/modules/paymaster-guard-module/module.d.ts +196 -0
- package/dist/esm/src/ma-v2/modules/paymaster-guard-module/module.js +25 -0
- package/dist/esm/src/ma-v2/modules/paymaster-guard-module/module.js.map +1 -0
- package/dist/esm/src/ma-v2/modules/single-signer-validation/abis/singleSignerValidationModuleAbi.d.ts +45 -0
- package/dist/esm/src/ma-v2/modules/single-signer-validation/abis/singleSignerValidationModuleAbi.js +331 -0
- package/dist/esm/src/ma-v2/modules/single-signer-validation/abis/singleSignerValidationModuleAbi.js.map +1 -0
- package/dist/esm/src/ma-v2/modules/single-signer-validation/module.d.ts +10 -0
- package/dist/esm/src/ma-v2/modules/single-signer-validation/module.js +16 -0
- package/dist/esm/src/ma-v2/modules/single-signer-validation/module.js.map +1 -0
- package/dist/esm/src/ma-v2/modules/single-signer-validation/signer.d.ts +239 -0
- package/dist/esm/src/ma-v2/modules/single-signer-validation/signer.js +93 -0
- package/dist/esm/src/ma-v2/modules/single-signer-validation/signer.js.map +1 -0
- package/dist/esm/src/ma-v2/modules/time-range-module/abis/timeRangeModuleAbi.d.ts +229 -0
- package/dist/esm/src/ma-v2/modules/time-range-module/abis/timeRangeModuleAbi.js +296 -0
- package/dist/esm/src/ma-v2/modules/time-range-module/abis/timeRangeModuleAbi.js.map +1 -0
- package/dist/esm/src/ma-v2/modules/time-range-module/module.d.ts +245 -0
- package/dist/esm/src/ma-v2/modules/time-range-module/module.js +42 -0
- package/dist/esm/src/ma-v2/modules/time-range-module/module.js.map +1 -0
- package/dist/esm/src/ma-v2/modules/utils.d.ts +91 -0
- package/dist/esm/src/ma-v2/modules/utils.js +188 -0
- package/dist/esm/src/ma-v2/modules/utils.js.map +1 -0
- package/dist/esm/src/ma-v2/modules/webauthn-validation/abis/webauthnValidationAbi.d.ts +287 -0
- package/dist/esm/src/ma-v2/modules/webauthn-validation/abis/webauthnValidationAbi.js +374 -0
- package/dist/esm/src/ma-v2/modules/webauthn-validation/abis/webauthnValidationAbi.js.map +1 -0
- package/dist/esm/src/ma-v2/utils.d.ts +16 -0
- package/dist/esm/src/ma-v2/utils.js +105 -0
- package/dist/esm/src/ma-v2/utils.js.map +1 -0
- package/dist/types/src/ma-v2/abis/accountFactoryAbi.d.ts +493 -0
- package/dist/types/src/ma-v2/abis/accountFactoryAbi.d.ts.map +1 -0
- package/dist/types/src/ma-v2/abis/modularAccountAbi.d.ts +955 -0
- package/dist/types/src/ma-v2/abis/modularAccountAbi.d.ts.map +1 -0
- package/dist/types/src/ma-v2/abis/semiModularAccountBytecodeAbi.d.ts +992 -0
- package/dist/types/src/ma-v2/abis/semiModularAccountBytecodeAbi.d.ts.map +1 -0
- package/dist/types/src/ma-v2/abis/semiModularAccountStorageAbi.d.ts +1002 -0
- package/dist/types/src/ma-v2/abis/semiModularAccountStorageAbi.d.ts.map +1 -0
- package/dist/types/src/ma-v2/account/nativeSMASigner.d.ts +239 -0
- package/dist/types/src/ma-v2/account/nativeSMASigner.d.ts.map +1 -0
- package/dist/types/src/ma-v2/account/semiModularAccountV2.d.ts +42 -0
- package/dist/types/src/ma-v2/account/semiModularAccountV2.d.ts.map +1 -0
- package/dist/types/src/ma-v2/actions/common/types.d.ts +32 -0
- package/dist/types/src/ma-v2/actions/common/types.d.ts.map +1 -0
- package/dist/types/src/ma-v2/actions/common/utils.d.ts +77 -0
- package/dist/types/src/ma-v2/actions/common/utils.d.ts.map +1 -0
- package/dist/types/src/ma-v2/actions/install-validation/installValidation.d.ts +72 -0
- package/dist/types/src/ma-v2/actions/install-validation/installValidation.d.ts.map +1 -0
- package/dist/types/src/ma-v2/client/client.d.ts +7 -0
- package/dist/types/src/ma-v2/client/client.d.ts.map +1 -0
- package/dist/types/src/ma-v2/index.d.ts +27 -0
- package/dist/types/src/ma-v2/index.d.ts.map +1 -0
- package/dist/types/src/ma-v2/modules/allowlist-module/abis/allowlistModuleAbi.d.ts +557 -0
- package/dist/types/src/ma-v2/modules/allowlist-module/abis/allowlistModuleAbi.d.ts.map +1 -0
- package/dist/types/src/ma-v2/modules/allowlist-module/module.d.ts +580 -0
- package/dist/types/src/ma-v2/modules/allowlist-module/module.d.ts.map +1 -0
- package/dist/types/src/ma-v2/modules/native-token-limit-module/abis/nativeTokenLimitModuleAbi.d.ts +313 -0
- package/dist/types/src/ma-v2/modules/native-token-limit-module/abis/nativeTokenLimitModuleAbi.d.ts.map +1 -0
- package/dist/types/src/ma-v2/modules/native-token-limit-module/module.d.ts +323 -0
- package/dist/types/src/ma-v2/modules/native-token-limit-module/module.d.ts.map +1 -0
- package/dist/types/src/ma-v2/modules/paymaster-guard-module/abis/paymasterGuardModuleAbi.d.ts +187 -0
- package/dist/types/src/ma-v2/modules/paymaster-guard-module/abis/paymasterGuardModuleAbi.d.ts.map +1 -0
- package/dist/types/src/ma-v2/modules/paymaster-guard-module/module.d.ts +197 -0
- package/dist/types/src/ma-v2/modules/paymaster-guard-module/module.d.ts.map +1 -0
- package/dist/types/src/ma-v2/modules/single-signer-validation/abis/singleSignerValidationModuleAbi.d.ts +46 -0
- package/dist/types/src/ma-v2/modules/single-signer-validation/abis/singleSignerValidationModuleAbi.d.ts.map +1 -0
- package/dist/types/src/ma-v2/modules/single-signer-validation/module.d.ts +11 -0
- package/dist/types/src/ma-v2/modules/single-signer-validation/module.d.ts.map +1 -0
- package/dist/types/src/ma-v2/modules/single-signer-validation/signer.d.ts +240 -0
- package/dist/types/src/ma-v2/modules/single-signer-validation/signer.d.ts.map +1 -0
- package/dist/types/src/ma-v2/modules/time-range-module/abis/timeRangeModuleAbi.d.ts +230 -0
- package/dist/types/src/ma-v2/modules/time-range-module/abis/timeRangeModuleAbi.d.ts.map +1 -0
- package/dist/types/src/ma-v2/modules/time-range-module/module.d.ts +246 -0
- package/dist/types/src/ma-v2/modules/time-range-module/module.d.ts.map +1 -0
- package/dist/types/src/ma-v2/modules/utils.d.ts +92 -0
- package/dist/types/src/ma-v2/modules/utils.d.ts.map +1 -0
- package/dist/types/src/ma-v2/modules/webauthn-validation/abis/webauthnValidationAbi.d.ts +288 -0
- package/dist/types/src/ma-v2/modules/webauthn-validation/abis/webauthnValidationAbi.d.ts.map +1 -0
- package/dist/types/src/ma-v2/utils.d.ts +17 -0
- package/dist/types/src/ma-v2/utils.d.ts.map +1 -0
- package/package.json +10 -5
- package/src/ma-v2/abis/accountFactoryAbi.ts +638 -0
- package/src/ma-v2/abis/modularAccountAbi.ts +1241 -0
- package/src/ma-v2/abis/semiModularAccountBytecodeAbi.ts +1288 -0
- package/src/ma-v2/abis/semiModularAccountStorageAbi.ts +1301 -0
- package/src/ma-v2/account/nativeSMASigner.ts +121 -0
- package/src/ma-v2/account/semiModularAccountV2.ts +289 -0
- package/src/ma-v2/actions/common/types.ts +37 -0
- package/src/ma-v2/actions/common/utils.ts +103 -0
- package/src/ma-v2/actions/install-validation/installValidation.ts +213 -0
- package/src/ma-v2/client/client.ts +74 -0
- package/src/ma-v2/index.ts +47 -0
- package/src/ma-v2/modules/allowlist-module/abis/allowlistModuleAbi.ts +715 -0
- package/src/ma-v2/modules/allowlist-module/module.ts +87 -0
- package/src/ma-v2/modules/native-token-limit-module/abis/nativeTokenLimitModuleAbi.ts +403 -0
- package/src/ma-v2/modules/native-token-limit-module/module.ts +21 -0
- package/src/ma-v2/modules/paymaster-guard-module/abis/paymasterGuardModuleAbi.ts +241 -0
- package/src/ma-v2/modules/paymaster-guard-module/module.ts +35 -0
- package/src/ma-v2/modules/single-signer-validation/abis/singleSignerValidationModuleAbi.ts +330 -0
- package/src/ma-v2/modules/single-signer-validation/module.ts +24 -0
- package/src/ma-v2/modules/single-signer-validation/signer.ts +127 -0
- package/src/ma-v2/modules/time-range-module/abis/timeRangeModuleAbi.ts +295 -0
- package/src/ma-v2/modules/time-range-module/module.ts +63 -0
- package/src/ma-v2/modules/utils.ts +213 -0
- package/src/ma-v2/modules/webauthn-validation/abis/webauthnValidationAbi.ts +373 -0
- package/src/ma-v2/utils.ts +138 -0
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
export const paymasterGuardModuleAbi = [
|
|
2
|
+
{
|
|
3
|
+
type: "function",
|
|
4
|
+
name: "moduleId",
|
|
5
|
+
inputs: [],
|
|
6
|
+
outputs: [
|
|
7
|
+
{
|
|
8
|
+
name: "",
|
|
9
|
+
type: "string",
|
|
10
|
+
internalType: "string",
|
|
11
|
+
},
|
|
12
|
+
],
|
|
13
|
+
stateMutability: "pure",
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
type: "function",
|
|
17
|
+
name: "onInstall",
|
|
18
|
+
inputs: [
|
|
19
|
+
{
|
|
20
|
+
name: "data",
|
|
21
|
+
type: "bytes",
|
|
22
|
+
internalType: "bytes",
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
outputs: [],
|
|
26
|
+
stateMutability: "nonpayable",
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
type: "function",
|
|
30
|
+
name: "onUninstall",
|
|
31
|
+
inputs: [
|
|
32
|
+
{
|
|
33
|
+
name: "data",
|
|
34
|
+
type: "bytes",
|
|
35
|
+
internalType: "bytes",
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
outputs: [],
|
|
39
|
+
stateMutability: "nonpayable",
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
type: "function",
|
|
43
|
+
name: "paymasters",
|
|
44
|
+
inputs: [
|
|
45
|
+
{
|
|
46
|
+
name: "entityId",
|
|
47
|
+
type: "uint32",
|
|
48
|
+
internalType: "uint32",
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: "account",
|
|
52
|
+
type: "address",
|
|
53
|
+
internalType: "address",
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
outputs: [
|
|
57
|
+
{
|
|
58
|
+
name: "paymaster",
|
|
59
|
+
type: "address",
|
|
60
|
+
internalType: "address",
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
stateMutability: "view",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
type: "function",
|
|
67
|
+
name: "preRuntimeValidationHook",
|
|
68
|
+
inputs: [
|
|
69
|
+
{
|
|
70
|
+
name: "",
|
|
71
|
+
type: "uint32",
|
|
72
|
+
internalType: "uint32",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
name: "",
|
|
76
|
+
type: "address",
|
|
77
|
+
internalType: "address",
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: "",
|
|
81
|
+
type: "uint256",
|
|
82
|
+
internalType: "uint256",
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: "",
|
|
86
|
+
type: "bytes",
|
|
87
|
+
internalType: "bytes",
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: "",
|
|
91
|
+
type: "bytes",
|
|
92
|
+
internalType: "bytes",
|
|
93
|
+
},
|
|
94
|
+
],
|
|
95
|
+
outputs: [],
|
|
96
|
+
stateMutability: "view",
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
type: "function",
|
|
100
|
+
name: "preSignatureValidationHook",
|
|
101
|
+
inputs: [
|
|
102
|
+
{
|
|
103
|
+
name: "",
|
|
104
|
+
type: "uint32",
|
|
105
|
+
internalType: "uint32",
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
name: "",
|
|
109
|
+
type: "address",
|
|
110
|
+
internalType: "address",
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
name: "",
|
|
114
|
+
type: "bytes32",
|
|
115
|
+
internalType: "bytes32",
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
name: "",
|
|
119
|
+
type: "bytes",
|
|
120
|
+
internalType: "bytes",
|
|
121
|
+
},
|
|
122
|
+
],
|
|
123
|
+
outputs: [],
|
|
124
|
+
stateMutability: "pure",
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
type: "function",
|
|
128
|
+
name: "preUserOpValidationHook",
|
|
129
|
+
inputs: [
|
|
130
|
+
{
|
|
131
|
+
name: "entityId",
|
|
132
|
+
type: "uint32",
|
|
133
|
+
internalType: "uint32",
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
name: "userOp",
|
|
137
|
+
type: "tuple",
|
|
138
|
+
internalType: "struct PackedUserOperation",
|
|
139
|
+
components: [
|
|
140
|
+
{
|
|
141
|
+
name: "sender",
|
|
142
|
+
type: "address",
|
|
143
|
+
internalType: "address",
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
name: "nonce",
|
|
147
|
+
type: "uint256",
|
|
148
|
+
internalType: "uint256",
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
name: "initCode",
|
|
152
|
+
type: "bytes",
|
|
153
|
+
internalType: "bytes",
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
name: "callData",
|
|
157
|
+
type: "bytes",
|
|
158
|
+
internalType: "bytes",
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
name: "accountGasLimits",
|
|
162
|
+
type: "bytes32",
|
|
163
|
+
internalType: "bytes32",
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
name: "preVerificationGas",
|
|
167
|
+
type: "uint256",
|
|
168
|
+
internalType: "uint256",
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
name: "gasFees",
|
|
172
|
+
type: "bytes32",
|
|
173
|
+
internalType: "bytes32",
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
name: "paymasterAndData",
|
|
177
|
+
type: "bytes",
|
|
178
|
+
internalType: "bytes",
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
name: "signature",
|
|
182
|
+
type: "bytes",
|
|
183
|
+
internalType: "bytes",
|
|
184
|
+
},
|
|
185
|
+
],
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
name: "",
|
|
189
|
+
type: "bytes32",
|
|
190
|
+
internalType: "bytes32",
|
|
191
|
+
},
|
|
192
|
+
],
|
|
193
|
+
outputs: [
|
|
194
|
+
{
|
|
195
|
+
name: "",
|
|
196
|
+
type: "uint256",
|
|
197
|
+
internalType: "uint256",
|
|
198
|
+
},
|
|
199
|
+
],
|
|
200
|
+
stateMutability: "view",
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
type: "function",
|
|
204
|
+
name: "supportsInterface",
|
|
205
|
+
inputs: [
|
|
206
|
+
{
|
|
207
|
+
name: "interfaceId",
|
|
208
|
+
type: "bytes4",
|
|
209
|
+
internalType: "bytes4",
|
|
210
|
+
},
|
|
211
|
+
],
|
|
212
|
+
outputs: [
|
|
213
|
+
{
|
|
214
|
+
name: "",
|
|
215
|
+
type: "bool",
|
|
216
|
+
internalType: "bool",
|
|
217
|
+
},
|
|
218
|
+
],
|
|
219
|
+
stateMutability: "view",
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
type: "error",
|
|
223
|
+
name: "BadPaymasterSpecified",
|
|
224
|
+
inputs: [],
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
type: "error",
|
|
228
|
+
name: "InvalidPaymaster",
|
|
229
|
+
inputs: [],
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
type: "error",
|
|
233
|
+
name: "NotImplemented",
|
|
234
|
+
inputs: [],
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
type: "error",
|
|
238
|
+
name: "UnexpectedDataPassed",
|
|
239
|
+
inputs: [],
|
|
240
|
+
},
|
|
241
|
+
];
|
|
242
|
+
//# sourceMappingURL=paymasterGuardModuleAbi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paymasterGuardModuleAbi.js","sourceRoot":"","sources":["../../../../../../../src/ma-v2/modules/paymaster-guard-module/abis/paymasterGuardModuleAbi.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,UAAU;QAChB,MAAM,EAAE,EAAE;QACV,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,YAAY,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E,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,sBAAsB;QAC5B,MAAM,EAAE,EAAE;KACX;CACO,CAAC","sourcesContent":["export const paymasterGuardModuleAbi = [\n {\n type: \"function\",\n name: \"moduleId\",\n inputs: [],\n outputs: [\n {\n name: \"\",\n type: \"string\",\n internalType: \"string\",\n },\n ],\n stateMutability: \"pure\",\n },\n {\n type: \"function\",\n name: \"onInstall\",\n inputs: [\n {\n name: \"data\",\n type: \"bytes\",\n internalType: \"bytes\",\n },\n ],\n outputs: [],\n stateMutability: \"nonpayable\",\n },\n {\n type: \"function\",\n name: \"onUninstall\",\n inputs: [\n {\n name: \"data\",\n type: \"bytes\",\n internalType: \"bytes\",\n },\n ],\n outputs: [],\n stateMutability: \"nonpayable\",\n },\n {\n type: \"function\",\n name: \"paymasters\",\n inputs: [\n {\n name: \"entityId\",\n type: \"uint32\",\n internalType: \"uint32\",\n },\n {\n name: \"account\",\n type: \"address\",\n internalType: \"address\",\n },\n ],\n outputs: [\n {\n name: \"paymaster\",\n type: \"address\",\n internalType: \"address\",\n },\n ],\n stateMutability: \"view\",\n },\n {\n type: \"function\",\n name: \"preRuntimeValidationHook\",\n inputs: [\n {\n name: \"\",\n type: \"uint32\",\n internalType: \"uint32\",\n },\n {\n name: \"\",\n type: \"address\",\n internalType: \"address\",\n },\n {\n name: \"\",\n type: \"uint256\",\n internalType: \"uint256\",\n },\n {\n name: \"\",\n type: \"bytes\",\n internalType: \"bytes\",\n },\n {\n name: \"\",\n type: \"bytes\",\n internalType: \"bytes\",\n },\n ],\n outputs: [],\n stateMutability: \"view\",\n },\n {\n type: \"function\",\n name: \"preSignatureValidationHook\",\n inputs: [\n {\n name: \"\",\n type: \"uint32\",\n internalType: \"uint32\",\n },\n {\n name: \"\",\n type: \"address\",\n internalType: \"address\",\n },\n {\n name: \"\",\n type: \"bytes32\",\n internalType: \"bytes32\",\n },\n {\n name: \"\",\n type: \"bytes\",\n internalType: \"bytes\",\n },\n ],\n outputs: [],\n stateMutability: \"pure\",\n },\n {\n type: \"function\",\n name: \"preUserOpValidationHook\",\n inputs: [\n {\n name: \"entityId\",\n type: \"uint32\",\n internalType: \"uint32\",\n },\n {\n name: \"userOp\",\n type: \"tuple\",\n internalType: \"struct PackedUserOperation\",\n components: [\n {\n name: \"sender\",\n type: \"address\",\n internalType: \"address\",\n },\n {\n name: \"nonce\",\n type: \"uint256\",\n internalType: \"uint256\",\n },\n {\n name: \"initCode\",\n type: \"bytes\",\n internalType: \"bytes\",\n },\n {\n name: \"callData\",\n type: \"bytes\",\n internalType: \"bytes\",\n },\n {\n name: \"accountGasLimits\",\n type: \"bytes32\",\n internalType: \"bytes32\",\n },\n {\n name: \"preVerificationGas\",\n type: \"uint256\",\n internalType: \"uint256\",\n },\n {\n name: \"gasFees\",\n type: \"bytes32\",\n internalType: \"bytes32\",\n },\n {\n name: \"paymasterAndData\",\n type: \"bytes\",\n internalType: \"bytes\",\n },\n {\n name: \"signature\",\n type: \"bytes\",\n internalType: \"bytes\",\n },\n ],\n },\n {\n name: \"\",\n type: \"bytes32\",\n internalType: \"bytes32\",\n },\n ],\n outputs: [\n {\n name: \"\",\n type: \"uint256\",\n internalType: \"uint256\",\n },\n ],\n stateMutability: \"view\",\n },\n {\n type: \"function\",\n name: \"supportsInterface\",\n inputs: [\n {\n name: \"interfaceId\",\n type: \"bytes4\",\n internalType: \"bytes4\",\n },\n ],\n outputs: [\n {\n name: \"\",\n type: \"bool\",\n internalType: \"bool\",\n },\n ],\n stateMutability: \"view\",\n },\n {\n type: \"error\",\n name: \"BadPaymasterSpecified\",\n inputs: [],\n },\n {\n type: \"error\",\n name: \"InvalidPaymaster\",\n inputs: [],\n },\n {\n type: \"error\",\n name: \"NotImplemented\",\n inputs: [],\n },\n {\n type: \"error\",\n name: \"UnexpectedDataPassed\",\n inputs: [],\n },\n] as const;\n"]}
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { type Address, type Hex } from "viem";
|
|
2
|
+
export declare const PaymasterGuardModule: {
|
|
3
|
+
abi: readonly [{
|
|
4
|
+
readonly type: "function";
|
|
5
|
+
readonly name: "moduleId";
|
|
6
|
+
readonly inputs: readonly [];
|
|
7
|
+
readonly outputs: readonly [{
|
|
8
|
+
readonly name: "";
|
|
9
|
+
readonly type: "string";
|
|
10
|
+
readonly internalType: "string";
|
|
11
|
+
}];
|
|
12
|
+
readonly stateMutability: "pure";
|
|
13
|
+
}, {
|
|
14
|
+
readonly type: "function";
|
|
15
|
+
readonly name: "onInstall";
|
|
16
|
+
readonly inputs: readonly [{
|
|
17
|
+
readonly name: "data";
|
|
18
|
+
readonly type: "bytes";
|
|
19
|
+
readonly internalType: "bytes";
|
|
20
|
+
}];
|
|
21
|
+
readonly outputs: readonly [];
|
|
22
|
+
readonly stateMutability: "nonpayable";
|
|
23
|
+
}, {
|
|
24
|
+
readonly type: "function";
|
|
25
|
+
readonly name: "onUninstall";
|
|
26
|
+
readonly inputs: readonly [{
|
|
27
|
+
readonly name: "data";
|
|
28
|
+
readonly type: "bytes";
|
|
29
|
+
readonly internalType: "bytes";
|
|
30
|
+
}];
|
|
31
|
+
readonly outputs: readonly [];
|
|
32
|
+
readonly stateMutability: "nonpayable";
|
|
33
|
+
}, {
|
|
34
|
+
readonly type: "function";
|
|
35
|
+
readonly name: "paymasters";
|
|
36
|
+
readonly inputs: readonly [{
|
|
37
|
+
readonly name: "entityId";
|
|
38
|
+
readonly type: "uint32";
|
|
39
|
+
readonly internalType: "uint32";
|
|
40
|
+
}, {
|
|
41
|
+
readonly name: "account";
|
|
42
|
+
readonly type: "address";
|
|
43
|
+
readonly internalType: "address";
|
|
44
|
+
}];
|
|
45
|
+
readonly outputs: readonly [{
|
|
46
|
+
readonly name: "paymaster";
|
|
47
|
+
readonly type: "address";
|
|
48
|
+
readonly internalType: "address";
|
|
49
|
+
}];
|
|
50
|
+
readonly stateMutability: "view";
|
|
51
|
+
}, {
|
|
52
|
+
readonly type: "function";
|
|
53
|
+
readonly name: "preRuntimeValidationHook";
|
|
54
|
+
readonly inputs: readonly [{
|
|
55
|
+
readonly name: "";
|
|
56
|
+
readonly type: "uint32";
|
|
57
|
+
readonly internalType: "uint32";
|
|
58
|
+
}, {
|
|
59
|
+
readonly name: "";
|
|
60
|
+
readonly type: "address";
|
|
61
|
+
readonly internalType: "address";
|
|
62
|
+
}, {
|
|
63
|
+
readonly name: "";
|
|
64
|
+
readonly type: "uint256";
|
|
65
|
+
readonly internalType: "uint256";
|
|
66
|
+
}, {
|
|
67
|
+
readonly name: "";
|
|
68
|
+
readonly type: "bytes";
|
|
69
|
+
readonly internalType: "bytes";
|
|
70
|
+
}, {
|
|
71
|
+
readonly name: "";
|
|
72
|
+
readonly type: "bytes";
|
|
73
|
+
readonly internalType: "bytes";
|
|
74
|
+
}];
|
|
75
|
+
readonly outputs: readonly [];
|
|
76
|
+
readonly stateMutability: "view";
|
|
77
|
+
}, {
|
|
78
|
+
readonly type: "function";
|
|
79
|
+
readonly name: "preSignatureValidationHook";
|
|
80
|
+
readonly inputs: readonly [{
|
|
81
|
+
readonly name: "";
|
|
82
|
+
readonly type: "uint32";
|
|
83
|
+
readonly internalType: "uint32";
|
|
84
|
+
}, {
|
|
85
|
+
readonly name: "";
|
|
86
|
+
readonly type: "address";
|
|
87
|
+
readonly internalType: "address";
|
|
88
|
+
}, {
|
|
89
|
+
readonly name: "";
|
|
90
|
+
readonly type: "bytes32";
|
|
91
|
+
readonly internalType: "bytes32";
|
|
92
|
+
}, {
|
|
93
|
+
readonly name: "";
|
|
94
|
+
readonly type: "bytes";
|
|
95
|
+
readonly internalType: "bytes";
|
|
96
|
+
}];
|
|
97
|
+
readonly outputs: readonly [];
|
|
98
|
+
readonly stateMutability: "pure";
|
|
99
|
+
}, {
|
|
100
|
+
readonly type: "function";
|
|
101
|
+
readonly name: "preUserOpValidationHook";
|
|
102
|
+
readonly inputs: readonly [{
|
|
103
|
+
readonly name: "entityId";
|
|
104
|
+
readonly type: "uint32";
|
|
105
|
+
readonly internalType: "uint32";
|
|
106
|
+
}, {
|
|
107
|
+
readonly name: "userOp";
|
|
108
|
+
readonly type: "tuple";
|
|
109
|
+
readonly internalType: "struct PackedUserOperation";
|
|
110
|
+
readonly components: readonly [{
|
|
111
|
+
readonly name: "sender";
|
|
112
|
+
readonly type: "address";
|
|
113
|
+
readonly internalType: "address";
|
|
114
|
+
}, {
|
|
115
|
+
readonly name: "nonce";
|
|
116
|
+
readonly type: "uint256";
|
|
117
|
+
readonly internalType: "uint256";
|
|
118
|
+
}, {
|
|
119
|
+
readonly name: "initCode";
|
|
120
|
+
readonly type: "bytes";
|
|
121
|
+
readonly internalType: "bytes";
|
|
122
|
+
}, {
|
|
123
|
+
readonly name: "callData";
|
|
124
|
+
readonly type: "bytes";
|
|
125
|
+
readonly internalType: "bytes";
|
|
126
|
+
}, {
|
|
127
|
+
readonly name: "accountGasLimits";
|
|
128
|
+
readonly type: "bytes32";
|
|
129
|
+
readonly internalType: "bytes32";
|
|
130
|
+
}, {
|
|
131
|
+
readonly name: "preVerificationGas";
|
|
132
|
+
readonly type: "uint256";
|
|
133
|
+
readonly internalType: "uint256";
|
|
134
|
+
}, {
|
|
135
|
+
readonly name: "gasFees";
|
|
136
|
+
readonly type: "bytes32";
|
|
137
|
+
readonly internalType: "bytes32";
|
|
138
|
+
}, {
|
|
139
|
+
readonly name: "paymasterAndData";
|
|
140
|
+
readonly type: "bytes";
|
|
141
|
+
readonly internalType: "bytes";
|
|
142
|
+
}, {
|
|
143
|
+
readonly name: "signature";
|
|
144
|
+
readonly type: "bytes";
|
|
145
|
+
readonly internalType: "bytes";
|
|
146
|
+
}];
|
|
147
|
+
}, {
|
|
148
|
+
readonly name: "";
|
|
149
|
+
readonly type: "bytes32";
|
|
150
|
+
readonly internalType: "bytes32";
|
|
151
|
+
}];
|
|
152
|
+
readonly outputs: readonly [{
|
|
153
|
+
readonly name: "";
|
|
154
|
+
readonly type: "uint256";
|
|
155
|
+
readonly internalType: "uint256";
|
|
156
|
+
}];
|
|
157
|
+
readonly stateMutability: "view";
|
|
158
|
+
}, {
|
|
159
|
+
readonly type: "function";
|
|
160
|
+
readonly name: "supportsInterface";
|
|
161
|
+
readonly inputs: readonly [{
|
|
162
|
+
readonly name: "interfaceId";
|
|
163
|
+
readonly type: "bytes4";
|
|
164
|
+
readonly internalType: "bytes4";
|
|
165
|
+
}];
|
|
166
|
+
readonly outputs: readonly [{
|
|
167
|
+
readonly name: "";
|
|
168
|
+
readonly type: "bool";
|
|
169
|
+
readonly internalType: "bool";
|
|
170
|
+
}];
|
|
171
|
+
readonly stateMutability: "view";
|
|
172
|
+
}, {
|
|
173
|
+
readonly type: "error";
|
|
174
|
+
readonly name: "BadPaymasterSpecified";
|
|
175
|
+
readonly inputs: readonly [];
|
|
176
|
+
}, {
|
|
177
|
+
readonly type: "error";
|
|
178
|
+
readonly name: "InvalidPaymaster";
|
|
179
|
+
readonly inputs: readonly [];
|
|
180
|
+
}, {
|
|
181
|
+
readonly type: "error";
|
|
182
|
+
readonly name: "NotImplemented";
|
|
183
|
+
readonly inputs: readonly [];
|
|
184
|
+
}, {
|
|
185
|
+
readonly type: "error";
|
|
186
|
+
readonly name: "UnexpectedDataPassed";
|
|
187
|
+
readonly inputs: readonly [];
|
|
188
|
+
}];
|
|
189
|
+
encodeOnInstallData: (args: {
|
|
190
|
+
entityId: number;
|
|
191
|
+
paymaster: Address;
|
|
192
|
+
}) => Hex;
|
|
193
|
+
encodeOnUninstallData: (args: {
|
|
194
|
+
entityId: number;
|
|
195
|
+
}) => Hex;
|
|
196
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { encodeAbiParameters } from "viem";
|
|
2
|
+
import { paymasterGuardModuleAbi } from "./abis/paymasterGuardModuleAbi.js";
|
|
3
|
+
export const PaymasterGuardModule = {
|
|
4
|
+
abi: paymasterGuardModuleAbi,
|
|
5
|
+
encodeOnInstallData: (args) => {
|
|
6
|
+
const { entityId, paymaster } = args;
|
|
7
|
+
return encodeAbiParameters([
|
|
8
|
+
{
|
|
9
|
+
type: "uint32",
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
type: "address",
|
|
13
|
+
},
|
|
14
|
+
], [entityId, paymaster]);
|
|
15
|
+
},
|
|
16
|
+
encodeOnUninstallData: (args) => {
|
|
17
|
+
const { entityId } = args;
|
|
18
|
+
return encodeAbiParameters([
|
|
19
|
+
{
|
|
20
|
+
type: "uint32",
|
|
21
|
+
},
|
|
22
|
+
], [entityId]);
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.js","sourceRoot":"","sources":["../../../../../../src/ma-v2/modules/paymaster-guard-module/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAA0B,MAAM,MAAM,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAE5E,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,GAAG,EAAE,uBAAuB;IAC5B,mBAAmB,EAAE,CAAC,IAGrB,EAAO,EAAE;QACR,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;QACrC,OAAO,mBAAmB,CACxB;YACE;gBACE,IAAI,EAAE,QAAQ;aACf;YACD;gBACE,IAAI,EAAE,SAAS;aAChB;SACF,EACD,CAAC,QAAQ,EAAE,SAAS,CAAC,CACtB,CAAC;IACJ,CAAC;IACD,qBAAqB,EAAE,CAAC,IAA0B,EAAO,EAAE;QACzD,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC;QAE1B,OAAO,mBAAmB,CACxB;YACE;gBACE,IAAI,EAAE,QAAQ;aACf;SACF,EACD,CAAC,QAAQ,CAAC,CACX,CAAC;IACJ,CAAC;CACF,CAAC","sourcesContent":["import { encodeAbiParameters, type Address, type Hex } from \"viem\";\nimport { paymasterGuardModuleAbi } from \"./abis/paymasterGuardModuleAbi.js\";\n\nexport const PaymasterGuardModule = {\n abi: paymasterGuardModuleAbi,\n encodeOnInstallData: (args: {\n entityId: number;\n paymaster: Address;\n }): Hex => {\n const { entityId, paymaster } = args;\n return encodeAbiParameters(\n [\n {\n type: \"uint32\",\n },\n {\n type: \"address\",\n },\n ],\n [entityId, paymaster]\n );\n },\n encodeOnUninstallData: (args: { entityId: number }): Hex => {\n const { entityId } = args;\n\n return encodeAbiParameters(\n [\n {\n type: \"uint32\",\n },\n ],\n [entityId]\n );\n },\n};\n"]}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export declare const singleSignerValidationModuleAbi: ({
|
|
2
|
+
type: string;
|
|
3
|
+
name: string;
|
|
4
|
+
inputs: ({
|
|
5
|
+
name: string;
|
|
6
|
+
type: string;
|
|
7
|
+
internalType: string;
|
|
8
|
+
components?: undefined;
|
|
9
|
+
} | {
|
|
10
|
+
name: string;
|
|
11
|
+
type: string;
|
|
12
|
+
internalType: string;
|
|
13
|
+
components: {
|
|
14
|
+
name: string;
|
|
15
|
+
type: string;
|
|
16
|
+
internalType: string;
|
|
17
|
+
}[];
|
|
18
|
+
})[];
|
|
19
|
+
outputs: {
|
|
20
|
+
name: string;
|
|
21
|
+
type: string;
|
|
22
|
+
internalType: string;
|
|
23
|
+
}[];
|
|
24
|
+
stateMutability: string;
|
|
25
|
+
anonymous?: undefined;
|
|
26
|
+
} | {
|
|
27
|
+
type: string;
|
|
28
|
+
name: string;
|
|
29
|
+
inputs: {
|
|
30
|
+
name: string;
|
|
31
|
+
type: string;
|
|
32
|
+
indexed: boolean;
|
|
33
|
+
internalType: string;
|
|
34
|
+
}[];
|
|
35
|
+
anonymous: boolean;
|
|
36
|
+
outputs?: undefined;
|
|
37
|
+
stateMutability?: undefined;
|
|
38
|
+
} | {
|
|
39
|
+
type: string;
|
|
40
|
+
name: string;
|
|
41
|
+
inputs: never[];
|
|
42
|
+
outputs?: undefined;
|
|
43
|
+
stateMutability?: undefined;
|
|
44
|
+
anonymous?: undefined;
|
|
45
|
+
})[];
|