@inco/shield-js 0.0.0-bootstrap.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/LICENSE +201 -0
- package/README.md +359 -0
- package/dist/binary.d.ts +3 -0
- package/dist/binary.js +16 -0
- package/dist/contracts/abi.d.ts +6800 -0
- package/dist/contracts/abi.js +8836 -0
- package/dist/contracts/index.d.ts +2 -0
- package/dist/contracts/index.js +2 -0
- package/dist/contracts/utils.d.ts +25 -0
- package/dist/contracts/utils.js +28 -0
- package/dist/errors.d.ts +125 -0
- package/dist/errors.js +91 -0
- package/dist/generated/inco/shield/v2/conductor_connect.d.ts +137 -0
- package/dist/generated/inco/shield/v2/conductor_connect.js +141 -0
- package/dist/generated/inco/shield/v2/deposit_pb.d.ts +103 -0
- package/dist/generated/inco/shield/v2/deposit_pb.js +141 -0
- package/dist/generated/inco/shield/v2/drafting_pb.d.ts +279 -0
- package/dist/generated/inco/shield/v2/drafting_pb.js +372 -0
- package/dist/generated/inco/shield/v2/permission_pb.d.ts +443 -0
- package/dist/generated/inco/shield/v2/permission_pb.js +639 -0
- package/dist/generated/inco/shield/v2/query_pb.d.ts +103 -0
- package/dist/generated/inco/shield/v2/query_pb.js +141 -0
- package/dist/generated/inco/shield/v2/types_pb.d.ts +166 -0
- package/dist/generated/inco/shield/v2/types_pb.js +261 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +19 -0
- package/dist/shield/client.d.ts +72 -0
- package/dist/shield/client.js +136 -0
- package/dist/shield/convert.d.ts +18 -0
- package/dist/shield/convert.js +152 -0
- package/dist/shield/encryption.d.ts +86 -0
- package/dist/shield/encryption.js +180 -0
- package/dist/shield/envelope.d.ts +14 -0
- package/dist/shield/envelope.js +29 -0
- package/dist/shield/index.d.ts +13 -0
- package/dist/shield/index.js +11 -0
- package/dist/shield/intent.d.ts +977 -0
- package/dist/shield/intent.js +188 -0
- package/dist/shield/rpc.d.ts +72 -0
- package/dist/shield/rpc.js +423 -0
- package/dist/shield/shield.eip712.gen.d.ts +396 -0
- package/dist/shield/shield.eip712.gen.js +318 -0
- package/dist/shield/types.d.ts +119 -0
- package/dist/shield/types.js +4 -0
- package/dist/shield/userop/gas-estimation.d.ts +36 -0
- package/dist/shield/userop/gas-estimation.js +284 -0
- package/dist/shield/userop/index.d.ts +1 -0
- package/dist/shield/userop/index.js +1 -0
- package/dist/shield/userop/token-exchange.d.ts +54 -0
- package/dist/shield/userop/token-exchange.js +165 -0
- package/dist/shield/userop/types.d.ts +91 -0
- package/dist/shield/userop/types.js +4 -0
- package/dist/shield/userop/userOp.d.ts +26 -0
- package/dist/shield/userop/userOp.js +98 -0
- package/dist/shield/utils/chain.d.ts +2 -0
- package/dist/shield/utils/chain.js +8 -0
- package/dist/uniswap-adapter/config.d.ts +34 -0
- package/dist/uniswap-adapter/config.js +45 -0
- package/dist/uniswap-adapter/find-pools.d.ts +91 -0
- package/dist/uniswap-adapter/find-pools.js +108 -0
- package/dist/uniswap-adapter/index.d.ts +10 -0
- package/dist/uniswap-adapter/index.js +13 -0
- package/dist/uniswap-adapter/swap.d.ts +344 -0
- package/dist/uniswap-adapter/swap.js +309 -0
- package/package.json +72 -0
|
@@ -0,0 +1,977 @@
|
|
|
1
|
+
import { type Address, type Hex, type PublicClient } from 'viem';
|
|
2
|
+
import { IntentKind } from '../generated/inco/shield/v2/drafting_pb.js';
|
|
3
|
+
import type { DefiInteractionIntent, DefiInteractionIntentOp, DelegatedDefiInteractionIntent, DelegatedTransferIntent, DelegatedWithdrawalIntent, Gas, IndividualRevocationIntent, IndividualRevocationIntentOp, PermissionAttestation, TransferIntent, TransferIntentOp, UserWideRevocationIntent, UserWideRevocationIntentOp, WithdrawalIntent, WithdrawalIntentOp } from './shield.eip712.gen.js';
|
|
4
|
+
import type { ShieldConfig, ShieldSigner } from './types.js';
|
|
5
|
+
/**
|
|
6
|
+
* Fee inputs the caller supplies: the asset to pay fees in and the EIP-1559
|
|
7
|
+
* ceilings. All gas *limits* and the `maxAmount` cap are derived by
|
|
8
|
+
* {@link createIntent} (bundler estimate + Chainlink rate), so they are omitted.
|
|
9
|
+
*/
|
|
10
|
+
export type UserGasParams = Omit<Gas, 'callGasLimit' | 'verificationGasLimit' | 'preVerificationGas' | 'paymasterVerificationGasLimit' | 'paymasterPostOpGasLimit' | 'maxAmount'>;
|
|
11
|
+
/**
|
|
12
|
+
* For all kinds of intent, mapping from the function name to the op and intent types.
|
|
13
|
+
*
|
|
14
|
+
* Important: the key of the object must be the same as the function name of the intent.
|
|
15
|
+
*/
|
|
16
|
+
type IntentMapping = {
|
|
17
|
+
[IntentKind.TRANSFER]: {
|
|
18
|
+
op: TransferIntentOp;
|
|
19
|
+
intent: TransferIntent;
|
|
20
|
+
};
|
|
21
|
+
[IntentKind.WITHDRAW]: {
|
|
22
|
+
op: WithdrawalIntentOp;
|
|
23
|
+
intent: WithdrawalIntent;
|
|
24
|
+
};
|
|
25
|
+
[IntentKind.DEFI_INTERACTION]: {
|
|
26
|
+
op: DefiInteractionIntentOp;
|
|
27
|
+
intent: DefiInteractionIntent;
|
|
28
|
+
};
|
|
29
|
+
[IntentKind.INDIVIDUAL_REVOCATION]: {
|
|
30
|
+
op: IndividualRevocationIntentOp;
|
|
31
|
+
intent: IndividualRevocationIntent;
|
|
32
|
+
};
|
|
33
|
+
[IntentKind.USER_WIDE_REVOCATION]: {
|
|
34
|
+
op: UserWideRevocationIntentOp;
|
|
35
|
+
intent: UserWideRevocationIntent;
|
|
36
|
+
};
|
|
37
|
+
[IntentKind.DELEGATED_TRANSFER]: {
|
|
38
|
+
op: TransferIntentOp;
|
|
39
|
+
intent: DelegatedTransferIntent;
|
|
40
|
+
};
|
|
41
|
+
[IntentKind.DELEGATED_WITHDRAW]: {
|
|
42
|
+
op: WithdrawalIntentOp;
|
|
43
|
+
intent: DelegatedWithdrawalIntent;
|
|
44
|
+
};
|
|
45
|
+
[IntentKind.DELEGATED_DEFI_INTERACTION]: {
|
|
46
|
+
op: DefiInteractionIntentOp;
|
|
47
|
+
intent: DelegatedDefiInteractionIntent;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
export type IntentOp = {
|
|
51
|
+
[K in keyof IntentMapping]: {
|
|
52
|
+
readonly kind: K;
|
|
53
|
+
readonly op: IntentMapping[K]['op'];
|
|
54
|
+
};
|
|
55
|
+
}[keyof IntentMapping];
|
|
56
|
+
export declare function createTransferIntent(transferIntentOp: TransferIntentOp, salt: Hex, signer: ShieldSigner, shieldConfig: ShieldConfig, publicClient: PublicClient, gas: UserGasParams, bundlerUrl: string): Promise<TransferIntent>;
|
|
57
|
+
export declare function createWithdrawIntent(withdrawalIntentOp: WithdrawalIntentOp, salt: Hex, signer: ShieldSigner, shieldConfig: ShieldConfig, publicClient: PublicClient, gas: UserGasParams, bundlerUrl: string): Promise<WithdrawalIntent>;
|
|
58
|
+
export declare function createDefiInteractionIntent(defiInteractionIntentOp: DefiInteractionIntentOp, salt: Hex, signer: ShieldSigner, shieldConfig: ShieldConfig, publicClient: PublicClient, gas: UserGasParams, bundlerUrl: string): Promise<DefiInteractionIntent>;
|
|
59
|
+
export declare function createIndividualRevocationIntent(individualRevocationIntentOp: IndividualRevocationIntentOp, salt: Hex, signer: ShieldSigner, shieldConfig: ShieldConfig, publicClient: PublicClient, gas: UserGasParams, bundlerUrl: string): Promise<IndividualRevocationIntent>;
|
|
60
|
+
export declare function createUserWideRevocationIntent(userWideRevocationIntentOp: UserWideRevocationIntentOp, salt: Hex, signer: ShieldSigner, shieldConfig: ShieldConfig, publicClient: PublicClient, gas: UserGasParams, bundlerUrl: string): Promise<UserWideRevocationIntent>;
|
|
61
|
+
export declare function createDelegatedTransferIntent(transferIntentOp: TransferIntentOp, salt: Hex, spender: Address, attestation: PermissionAttestation, signer: ShieldSigner, shieldConfig: ShieldConfig, publicClient: PublicClient, gas: UserGasParams, bundlerUrl: string): Promise<DelegatedTransferIntent>;
|
|
62
|
+
export declare function createDelegatedWithdrawIntent(withdrawalIntentOp: WithdrawalIntentOp, salt: Hex, spender: Address, attestation: PermissionAttestation, signer: ShieldSigner, shieldConfig: ShieldConfig, publicClient: PublicClient, gas: UserGasParams, bundlerUrl: string): Promise<DelegatedWithdrawalIntent>;
|
|
63
|
+
export declare function createDelegatedDefiInteractionIntent(defiInteractionIntentOp: DefiInteractionIntentOp, salt: Hex, spender: Address, attestation: PermissionAttestation, signer: ShieldSigner, shieldConfig: ShieldConfig, publicClient: PublicClient, gas: UserGasParams, bundlerUrl: string): Promise<DelegatedDefiInteractionIntent>;
|
|
64
|
+
/**
|
|
65
|
+
* Mapping from the intent kind to the abi item.
|
|
66
|
+
*/
|
|
67
|
+
export declare const intentAbi: {
|
|
68
|
+
0: {
|
|
69
|
+
readonly name: "";
|
|
70
|
+
readonly internalType: "struct TransferIntent";
|
|
71
|
+
readonly type: "tuple";
|
|
72
|
+
readonly components: readonly [{
|
|
73
|
+
readonly name: "op";
|
|
74
|
+
readonly internalType: "struct TransferIntentOp";
|
|
75
|
+
readonly type: "tuple";
|
|
76
|
+
readonly components: readonly [{
|
|
77
|
+
readonly name: "receiver";
|
|
78
|
+
readonly internalType: "address";
|
|
79
|
+
readonly type: "address";
|
|
80
|
+
}, {
|
|
81
|
+
readonly name: "assetId";
|
|
82
|
+
readonly internalType: "bytes32";
|
|
83
|
+
readonly type: "bytes32";
|
|
84
|
+
}, {
|
|
85
|
+
readonly name: "amount";
|
|
86
|
+
readonly internalType: "uint256";
|
|
87
|
+
readonly type: "uint256";
|
|
88
|
+
}, {
|
|
89
|
+
readonly name: "memo";
|
|
90
|
+
readonly internalType: "bytes";
|
|
91
|
+
readonly type: "bytes";
|
|
92
|
+
}];
|
|
93
|
+
}, {
|
|
94
|
+
readonly name: "signer";
|
|
95
|
+
readonly internalType: "address";
|
|
96
|
+
readonly type: "address";
|
|
97
|
+
}, {
|
|
98
|
+
readonly name: "gas";
|
|
99
|
+
readonly internalType: "struct Gas";
|
|
100
|
+
readonly type: "tuple";
|
|
101
|
+
readonly components: readonly [{
|
|
102
|
+
readonly name: "assetId";
|
|
103
|
+
readonly internalType: "bytes32";
|
|
104
|
+
readonly type: "bytes32";
|
|
105
|
+
}, {
|
|
106
|
+
readonly name: "maxAmount";
|
|
107
|
+
readonly internalType: "uint256";
|
|
108
|
+
readonly type: "uint256";
|
|
109
|
+
}, {
|
|
110
|
+
readonly name: "callGasLimit";
|
|
111
|
+
readonly internalType: "uint256";
|
|
112
|
+
readonly type: "uint256";
|
|
113
|
+
}, {
|
|
114
|
+
readonly name: "verificationGasLimit";
|
|
115
|
+
readonly internalType: "uint256";
|
|
116
|
+
readonly type: "uint256";
|
|
117
|
+
}, {
|
|
118
|
+
readonly name: "preVerificationGas";
|
|
119
|
+
readonly internalType: "uint256";
|
|
120
|
+
readonly type: "uint256";
|
|
121
|
+
}, {
|
|
122
|
+
readonly name: "paymasterVerificationGasLimit";
|
|
123
|
+
readonly internalType: "uint256";
|
|
124
|
+
readonly type: "uint256";
|
|
125
|
+
}, {
|
|
126
|
+
readonly name: "paymasterPostOpGasLimit";
|
|
127
|
+
readonly internalType: "uint256";
|
|
128
|
+
readonly type: "uint256";
|
|
129
|
+
}, {
|
|
130
|
+
readonly name: "maxFeePerGas";
|
|
131
|
+
readonly internalType: "uint256";
|
|
132
|
+
readonly type: "uint256";
|
|
133
|
+
}, {
|
|
134
|
+
readonly name: "maxPriorityFeePerGas";
|
|
135
|
+
readonly internalType: "uint256";
|
|
136
|
+
readonly type: "uint256";
|
|
137
|
+
}];
|
|
138
|
+
}, {
|
|
139
|
+
readonly name: "salt";
|
|
140
|
+
readonly internalType: "bytes32";
|
|
141
|
+
readonly type: "bytes32";
|
|
142
|
+
}];
|
|
143
|
+
};
|
|
144
|
+
1: {
|
|
145
|
+
readonly name: "";
|
|
146
|
+
readonly internalType: "struct WithdrawalIntent";
|
|
147
|
+
readonly type: "tuple";
|
|
148
|
+
readonly components: readonly [{
|
|
149
|
+
readonly name: "op";
|
|
150
|
+
readonly internalType: "struct WithdrawalIntentOp";
|
|
151
|
+
readonly type: "tuple";
|
|
152
|
+
readonly components: readonly [{
|
|
153
|
+
readonly name: "core";
|
|
154
|
+
readonly internalType: "struct WithdrawalCoreIntentOp";
|
|
155
|
+
readonly type: "tuple";
|
|
156
|
+
readonly components: readonly [{
|
|
157
|
+
readonly name: "to";
|
|
158
|
+
readonly internalType: "address";
|
|
159
|
+
readonly type: "address";
|
|
160
|
+
}, {
|
|
161
|
+
readonly name: "assetId";
|
|
162
|
+
readonly internalType: "bytes32";
|
|
163
|
+
readonly type: "bytes32";
|
|
164
|
+
}, {
|
|
165
|
+
readonly name: "amount";
|
|
166
|
+
readonly internalType: "uint256";
|
|
167
|
+
readonly type: "uint256";
|
|
168
|
+
}, {
|
|
169
|
+
readonly name: "assetMovement";
|
|
170
|
+
readonly internalType: "struct AssetMovement";
|
|
171
|
+
readonly type: "tuple";
|
|
172
|
+
readonly components: readonly [{
|
|
173
|
+
readonly name: "assetAdapter";
|
|
174
|
+
readonly internalType: "contract IAssetAdapter";
|
|
175
|
+
readonly type: "address";
|
|
176
|
+
}, {
|
|
177
|
+
readonly name: "assetIdentificationArgs";
|
|
178
|
+
readonly internalType: "bytes";
|
|
179
|
+
readonly type: "bytes";
|
|
180
|
+
}, {
|
|
181
|
+
readonly name: "movementArgs";
|
|
182
|
+
readonly internalType: "bytes";
|
|
183
|
+
readonly type: "bytes";
|
|
184
|
+
}];
|
|
185
|
+
}];
|
|
186
|
+
}, {
|
|
187
|
+
readonly name: "memo";
|
|
188
|
+
readonly internalType: "bytes";
|
|
189
|
+
readonly type: "bytes";
|
|
190
|
+
}];
|
|
191
|
+
}, {
|
|
192
|
+
readonly name: "signer";
|
|
193
|
+
readonly internalType: "address";
|
|
194
|
+
readonly type: "address";
|
|
195
|
+
}, {
|
|
196
|
+
readonly name: "gas";
|
|
197
|
+
readonly internalType: "struct Gas";
|
|
198
|
+
readonly type: "tuple";
|
|
199
|
+
readonly components: readonly [{
|
|
200
|
+
readonly name: "assetId";
|
|
201
|
+
readonly internalType: "bytes32";
|
|
202
|
+
readonly type: "bytes32";
|
|
203
|
+
}, {
|
|
204
|
+
readonly name: "maxAmount";
|
|
205
|
+
readonly internalType: "uint256";
|
|
206
|
+
readonly type: "uint256";
|
|
207
|
+
}, {
|
|
208
|
+
readonly name: "callGasLimit";
|
|
209
|
+
readonly internalType: "uint256";
|
|
210
|
+
readonly type: "uint256";
|
|
211
|
+
}, {
|
|
212
|
+
readonly name: "verificationGasLimit";
|
|
213
|
+
readonly internalType: "uint256";
|
|
214
|
+
readonly type: "uint256";
|
|
215
|
+
}, {
|
|
216
|
+
readonly name: "preVerificationGas";
|
|
217
|
+
readonly internalType: "uint256";
|
|
218
|
+
readonly type: "uint256";
|
|
219
|
+
}, {
|
|
220
|
+
readonly name: "paymasterVerificationGasLimit";
|
|
221
|
+
readonly internalType: "uint256";
|
|
222
|
+
readonly type: "uint256";
|
|
223
|
+
}, {
|
|
224
|
+
readonly name: "paymasterPostOpGasLimit";
|
|
225
|
+
readonly internalType: "uint256";
|
|
226
|
+
readonly type: "uint256";
|
|
227
|
+
}, {
|
|
228
|
+
readonly name: "maxFeePerGas";
|
|
229
|
+
readonly internalType: "uint256";
|
|
230
|
+
readonly type: "uint256";
|
|
231
|
+
}, {
|
|
232
|
+
readonly name: "maxPriorityFeePerGas";
|
|
233
|
+
readonly internalType: "uint256";
|
|
234
|
+
readonly type: "uint256";
|
|
235
|
+
}];
|
|
236
|
+
}, {
|
|
237
|
+
readonly name: "salt";
|
|
238
|
+
readonly internalType: "bytes32";
|
|
239
|
+
readonly type: "bytes32";
|
|
240
|
+
}];
|
|
241
|
+
};
|
|
242
|
+
2: {
|
|
243
|
+
readonly name: "";
|
|
244
|
+
readonly internalType: "struct DefiInteractionIntent";
|
|
245
|
+
readonly type: "tuple";
|
|
246
|
+
readonly components: readonly [{
|
|
247
|
+
readonly name: "op";
|
|
248
|
+
readonly internalType: "struct DefiInteractionIntentOp";
|
|
249
|
+
readonly type: "tuple";
|
|
250
|
+
readonly components: readonly [{
|
|
251
|
+
readonly name: "withdrawal";
|
|
252
|
+
readonly internalType: "struct WithdrawalCoreIntentOp";
|
|
253
|
+
readonly type: "tuple";
|
|
254
|
+
readonly components: readonly [{
|
|
255
|
+
readonly name: "to";
|
|
256
|
+
readonly internalType: "address";
|
|
257
|
+
readonly type: "address";
|
|
258
|
+
}, {
|
|
259
|
+
readonly name: "assetId";
|
|
260
|
+
readonly internalType: "bytes32";
|
|
261
|
+
readonly type: "bytes32";
|
|
262
|
+
}, {
|
|
263
|
+
readonly name: "amount";
|
|
264
|
+
readonly internalType: "uint256";
|
|
265
|
+
readonly type: "uint256";
|
|
266
|
+
}, {
|
|
267
|
+
readonly name: "assetMovement";
|
|
268
|
+
readonly internalType: "struct AssetMovement";
|
|
269
|
+
readonly type: "tuple";
|
|
270
|
+
readonly components: readonly [{
|
|
271
|
+
readonly name: "assetAdapter";
|
|
272
|
+
readonly internalType: "contract IAssetAdapter";
|
|
273
|
+
readonly type: "address";
|
|
274
|
+
}, {
|
|
275
|
+
readonly name: "assetIdentificationArgs";
|
|
276
|
+
readonly internalType: "bytes";
|
|
277
|
+
readonly type: "bytes";
|
|
278
|
+
}, {
|
|
279
|
+
readonly name: "movementArgs";
|
|
280
|
+
readonly internalType: "bytes";
|
|
281
|
+
readonly type: "bytes";
|
|
282
|
+
}];
|
|
283
|
+
}];
|
|
284
|
+
}, {
|
|
285
|
+
readonly name: "defiAdapter";
|
|
286
|
+
readonly internalType: "contract IDefiAdapter";
|
|
287
|
+
readonly type: "address";
|
|
288
|
+
}, {
|
|
289
|
+
readonly name: "adapterArgs";
|
|
290
|
+
readonly internalType: "bytes";
|
|
291
|
+
readonly type: "bytes";
|
|
292
|
+
}, {
|
|
293
|
+
readonly name: "memo";
|
|
294
|
+
readonly internalType: "bytes";
|
|
295
|
+
readonly type: "bytes";
|
|
296
|
+
}];
|
|
297
|
+
}, {
|
|
298
|
+
readonly name: "signer";
|
|
299
|
+
readonly internalType: "address";
|
|
300
|
+
readonly type: "address";
|
|
301
|
+
}, {
|
|
302
|
+
readonly name: "gas";
|
|
303
|
+
readonly internalType: "struct Gas";
|
|
304
|
+
readonly type: "tuple";
|
|
305
|
+
readonly components: readonly [{
|
|
306
|
+
readonly name: "assetId";
|
|
307
|
+
readonly internalType: "bytes32";
|
|
308
|
+
readonly type: "bytes32";
|
|
309
|
+
}, {
|
|
310
|
+
readonly name: "maxAmount";
|
|
311
|
+
readonly internalType: "uint256";
|
|
312
|
+
readonly type: "uint256";
|
|
313
|
+
}, {
|
|
314
|
+
readonly name: "callGasLimit";
|
|
315
|
+
readonly internalType: "uint256";
|
|
316
|
+
readonly type: "uint256";
|
|
317
|
+
}, {
|
|
318
|
+
readonly name: "verificationGasLimit";
|
|
319
|
+
readonly internalType: "uint256";
|
|
320
|
+
readonly type: "uint256";
|
|
321
|
+
}, {
|
|
322
|
+
readonly name: "preVerificationGas";
|
|
323
|
+
readonly internalType: "uint256";
|
|
324
|
+
readonly type: "uint256";
|
|
325
|
+
}, {
|
|
326
|
+
readonly name: "paymasterVerificationGasLimit";
|
|
327
|
+
readonly internalType: "uint256";
|
|
328
|
+
readonly type: "uint256";
|
|
329
|
+
}, {
|
|
330
|
+
readonly name: "paymasterPostOpGasLimit";
|
|
331
|
+
readonly internalType: "uint256";
|
|
332
|
+
readonly type: "uint256";
|
|
333
|
+
}, {
|
|
334
|
+
readonly name: "maxFeePerGas";
|
|
335
|
+
readonly internalType: "uint256";
|
|
336
|
+
readonly type: "uint256";
|
|
337
|
+
}, {
|
|
338
|
+
readonly name: "maxPriorityFeePerGas";
|
|
339
|
+
readonly internalType: "uint256";
|
|
340
|
+
readonly type: "uint256";
|
|
341
|
+
}];
|
|
342
|
+
}, {
|
|
343
|
+
readonly name: "salt";
|
|
344
|
+
readonly internalType: "bytes32";
|
|
345
|
+
readonly type: "bytes32";
|
|
346
|
+
}];
|
|
347
|
+
};
|
|
348
|
+
3: {
|
|
349
|
+
readonly name: "";
|
|
350
|
+
readonly internalType: "struct IndividualRevocationIntent";
|
|
351
|
+
readonly type: "tuple";
|
|
352
|
+
readonly components: readonly [{
|
|
353
|
+
readonly name: "op";
|
|
354
|
+
readonly internalType: "struct IndividualRevocationIntentOp";
|
|
355
|
+
readonly type: "tuple";
|
|
356
|
+
readonly components: readonly [{
|
|
357
|
+
readonly name: "permissionId";
|
|
358
|
+
readonly internalType: "bytes32";
|
|
359
|
+
readonly type: "bytes32";
|
|
360
|
+
}];
|
|
361
|
+
}, {
|
|
362
|
+
readonly name: "signer";
|
|
363
|
+
readonly internalType: "address";
|
|
364
|
+
readonly type: "address";
|
|
365
|
+
}, {
|
|
366
|
+
readonly name: "gas";
|
|
367
|
+
readonly internalType: "struct Gas";
|
|
368
|
+
readonly type: "tuple";
|
|
369
|
+
readonly components: readonly [{
|
|
370
|
+
readonly name: "assetId";
|
|
371
|
+
readonly internalType: "bytes32";
|
|
372
|
+
readonly type: "bytes32";
|
|
373
|
+
}, {
|
|
374
|
+
readonly name: "maxAmount";
|
|
375
|
+
readonly internalType: "uint256";
|
|
376
|
+
readonly type: "uint256";
|
|
377
|
+
}, {
|
|
378
|
+
readonly name: "callGasLimit";
|
|
379
|
+
readonly internalType: "uint256";
|
|
380
|
+
readonly type: "uint256";
|
|
381
|
+
}, {
|
|
382
|
+
readonly name: "verificationGasLimit";
|
|
383
|
+
readonly internalType: "uint256";
|
|
384
|
+
readonly type: "uint256";
|
|
385
|
+
}, {
|
|
386
|
+
readonly name: "preVerificationGas";
|
|
387
|
+
readonly internalType: "uint256";
|
|
388
|
+
readonly type: "uint256";
|
|
389
|
+
}, {
|
|
390
|
+
readonly name: "paymasterVerificationGasLimit";
|
|
391
|
+
readonly internalType: "uint256";
|
|
392
|
+
readonly type: "uint256";
|
|
393
|
+
}, {
|
|
394
|
+
readonly name: "paymasterPostOpGasLimit";
|
|
395
|
+
readonly internalType: "uint256";
|
|
396
|
+
readonly type: "uint256";
|
|
397
|
+
}, {
|
|
398
|
+
readonly name: "maxFeePerGas";
|
|
399
|
+
readonly internalType: "uint256";
|
|
400
|
+
readonly type: "uint256";
|
|
401
|
+
}, {
|
|
402
|
+
readonly name: "maxPriorityFeePerGas";
|
|
403
|
+
readonly internalType: "uint256";
|
|
404
|
+
readonly type: "uint256";
|
|
405
|
+
}];
|
|
406
|
+
}, {
|
|
407
|
+
readonly name: "salt";
|
|
408
|
+
readonly internalType: "bytes32";
|
|
409
|
+
readonly type: "bytes32";
|
|
410
|
+
}];
|
|
411
|
+
};
|
|
412
|
+
4: {
|
|
413
|
+
readonly name: "";
|
|
414
|
+
readonly internalType: "struct UserWideRevocationIntent";
|
|
415
|
+
readonly type: "tuple";
|
|
416
|
+
readonly components: readonly [{
|
|
417
|
+
readonly name: "op";
|
|
418
|
+
readonly internalType: "struct UserWideRevocationIntentOp";
|
|
419
|
+
readonly type: "tuple";
|
|
420
|
+
readonly components: readonly [{
|
|
421
|
+
readonly name: "empty";
|
|
422
|
+
readonly internalType: "bytes";
|
|
423
|
+
readonly type: "bytes";
|
|
424
|
+
}];
|
|
425
|
+
}, {
|
|
426
|
+
readonly name: "signer";
|
|
427
|
+
readonly internalType: "address";
|
|
428
|
+
readonly type: "address";
|
|
429
|
+
}, {
|
|
430
|
+
readonly name: "gas";
|
|
431
|
+
readonly internalType: "struct Gas";
|
|
432
|
+
readonly type: "tuple";
|
|
433
|
+
readonly components: readonly [{
|
|
434
|
+
readonly name: "assetId";
|
|
435
|
+
readonly internalType: "bytes32";
|
|
436
|
+
readonly type: "bytes32";
|
|
437
|
+
}, {
|
|
438
|
+
readonly name: "maxAmount";
|
|
439
|
+
readonly internalType: "uint256";
|
|
440
|
+
readonly type: "uint256";
|
|
441
|
+
}, {
|
|
442
|
+
readonly name: "callGasLimit";
|
|
443
|
+
readonly internalType: "uint256";
|
|
444
|
+
readonly type: "uint256";
|
|
445
|
+
}, {
|
|
446
|
+
readonly name: "verificationGasLimit";
|
|
447
|
+
readonly internalType: "uint256";
|
|
448
|
+
readonly type: "uint256";
|
|
449
|
+
}, {
|
|
450
|
+
readonly name: "preVerificationGas";
|
|
451
|
+
readonly internalType: "uint256";
|
|
452
|
+
readonly type: "uint256";
|
|
453
|
+
}, {
|
|
454
|
+
readonly name: "paymasterVerificationGasLimit";
|
|
455
|
+
readonly internalType: "uint256";
|
|
456
|
+
readonly type: "uint256";
|
|
457
|
+
}, {
|
|
458
|
+
readonly name: "paymasterPostOpGasLimit";
|
|
459
|
+
readonly internalType: "uint256";
|
|
460
|
+
readonly type: "uint256";
|
|
461
|
+
}, {
|
|
462
|
+
readonly name: "maxFeePerGas";
|
|
463
|
+
readonly internalType: "uint256";
|
|
464
|
+
readonly type: "uint256";
|
|
465
|
+
}, {
|
|
466
|
+
readonly name: "maxPriorityFeePerGas";
|
|
467
|
+
readonly internalType: "uint256";
|
|
468
|
+
readonly type: "uint256";
|
|
469
|
+
}];
|
|
470
|
+
}, {
|
|
471
|
+
readonly name: "salt";
|
|
472
|
+
readonly internalType: "bytes32";
|
|
473
|
+
readonly type: "bytes32";
|
|
474
|
+
}];
|
|
475
|
+
};
|
|
476
|
+
5: {
|
|
477
|
+
readonly name: "";
|
|
478
|
+
readonly internalType: "struct DelegatedTransferIntent";
|
|
479
|
+
readonly type: "tuple";
|
|
480
|
+
readonly components: readonly [{
|
|
481
|
+
readonly name: "intent";
|
|
482
|
+
readonly internalType: "struct TransferIntent";
|
|
483
|
+
readonly type: "tuple";
|
|
484
|
+
readonly components: readonly [{
|
|
485
|
+
readonly name: "op";
|
|
486
|
+
readonly internalType: "struct TransferIntentOp";
|
|
487
|
+
readonly type: "tuple";
|
|
488
|
+
readonly components: readonly [{
|
|
489
|
+
readonly name: "receiver";
|
|
490
|
+
readonly internalType: "address";
|
|
491
|
+
readonly type: "address";
|
|
492
|
+
}, {
|
|
493
|
+
readonly name: "assetId";
|
|
494
|
+
readonly internalType: "bytes32";
|
|
495
|
+
readonly type: "bytes32";
|
|
496
|
+
}, {
|
|
497
|
+
readonly name: "amount";
|
|
498
|
+
readonly internalType: "uint256";
|
|
499
|
+
readonly type: "uint256";
|
|
500
|
+
}, {
|
|
501
|
+
readonly name: "memo";
|
|
502
|
+
readonly internalType: "bytes";
|
|
503
|
+
readonly type: "bytes";
|
|
504
|
+
}];
|
|
505
|
+
}, {
|
|
506
|
+
readonly name: "signer";
|
|
507
|
+
readonly internalType: "address";
|
|
508
|
+
readonly type: "address";
|
|
509
|
+
}, {
|
|
510
|
+
readonly name: "gas";
|
|
511
|
+
readonly internalType: "struct Gas";
|
|
512
|
+
readonly type: "tuple";
|
|
513
|
+
readonly components: readonly [{
|
|
514
|
+
readonly name: "assetId";
|
|
515
|
+
readonly internalType: "bytes32";
|
|
516
|
+
readonly type: "bytes32";
|
|
517
|
+
}, {
|
|
518
|
+
readonly name: "maxAmount";
|
|
519
|
+
readonly internalType: "uint256";
|
|
520
|
+
readonly type: "uint256";
|
|
521
|
+
}, {
|
|
522
|
+
readonly name: "callGasLimit";
|
|
523
|
+
readonly internalType: "uint256";
|
|
524
|
+
readonly type: "uint256";
|
|
525
|
+
}, {
|
|
526
|
+
readonly name: "verificationGasLimit";
|
|
527
|
+
readonly internalType: "uint256";
|
|
528
|
+
readonly type: "uint256";
|
|
529
|
+
}, {
|
|
530
|
+
readonly name: "preVerificationGas";
|
|
531
|
+
readonly internalType: "uint256";
|
|
532
|
+
readonly type: "uint256";
|
|
533
|
+
}, {
|
|
534
|
+
readonly name: "paymasterVerificationGasLimit";
|
|
535
|
+
readonly internalType: "uint256";
|
|
536
|
+
readonly type: "uint256";
|
|
537
|
+
}, {
|
|
538
|
+
readonly name: "paymasterPostOpGasLimit";
|
|
539
|
+
readonly internalType: "uint256";
|
|
540
|
+
readonly type: "uint256";
|
|
541
|
+
}, {
|
|
542
|
+
readonly name: "maxFeePerGas";
|
|
543
|
+
readonly internalType: "uint256";
|
|
544
|
+
readonly type: "uint256";
|
|
545
|
+
}, {
|
|
546
|
+
readonly name: "maxPriorityFeePerGas";
|
|
547
|
+
readonly internalType: "uint256";
|
|
548
|
+
readonly type: "uint256";
|
|
549
|
+
}];
|
|
550
|
+
}, {
|
|
551
|
+
readonly name: "salt";
|
|
552
|
+
readonly internalType: "bytes32";
|
|
553
|
+
readonly type: "bytes32";
|
|
554
|
+
}];
|
|
555
|
+
}, {
|
|
556
|
+
readonly name: "spender";
|
|
557
|
+
readonly internalType: "address";
|
|
558
|
+
readonly type: "address";
|
|
559
|
+
}, {
|
|
560
|
+
readonly name: "attestation";
|
|
561
|
+
readonly internalType: "struct PermissionAttestation";
|
|
562
|
+
readonly type: "tuple";
|
|
563
|
+
readonly components: readonly [{
|
|
564
|
+
readonly name: "payload";
|
|
565
|
+
readonly internalType: "struct PermissionAttestationPayload";
|
|
566
|
+
readonly type: "tuple";
|
|
567
|
+
readonly components: readonly [{
|
|
568
|
+
readonly name: "permissionId";
|
|
569
|
+
readonly internalType: "bytes32";
|
|
570
|
+
readonly type: "bytes32";
|
|
571
|
+
}, {
|
|
572
|
+
readonly name: "permission";
|
|
573
|
+
readonly internalType: "struct Permission";
|
|
574
|
+
readonly type: "tuple";
|
|
575
|
+
readonly components: readonly [{
|
|
576
|
+
readonly name: "owner";
|
|
577
|
+
readonly internalType: "address";
|
|
578
|
+
readonly type: "address";
|
|
579
|
+
}, {
|
|
580
|
+
readonly name: "spender";
|
|
581
|
+
readonly internalType: "address";
|
|
582
|
+
readonly type: "address";
|
|
583
|
+
}, {
|
|
584
|
+
readonly name: "assetId";
|
|
585
|
+
readonly internalType: "bytes32";
|
|
586
|
+
readonly type: "bytes32";
|
|
587
|
+
}, {
|
|
588
|
+
readonly name: "allowance";
|
|
589
|
+
readonly internalType: "uint256";
|
|
590
|
+
readonly type: "uint256";
|
|
591
|
+
}, {
|
|
592
|
+
readonly name: "start";
|
|
593
|
+
readonly internalType: "uint256";
|
|
594
|
+
readonly type: "uint256";
|
|
595
|
+
}, {
|
|
596
|
+
readonly name: "end";
|
|
597
|
+
readonly internalType: "uint256";
|
|
598
|
+
readonly type: "uint256";
|
|
599
|
+
}, {
|
|
600
|
+
readonly name: "period";
|
|
601
|
+
readonly internalType: "uint256";
|
|
602
|
+
readonly type: "uint256";
|
|
603
|
+
}, {
|
|
604
|
+
readonly name: "agreementHash";
|
|
605
|
+
readonly internalType: "bytes32";
|
|
606
|
+
readonly type: "bytes32";
|
|
607
|
+
}, {
|
|
608
|
+
readonly name: "salt";
|
|
609
|
+
readonly internalType: "bytes32";
|
|
610
|
+
readonly type: "bytes32";
|
|
611
|
+
}];
|
|
612
|
+
}, {
|
|
613
|
+
readonly name: "draftingHandle";
|
|
614
|
+
readonly internalType: "bytes32";
|
|
615
|
+
readonly type: "bytes32";
|
|
616
|
+
}];
|
|
617
|
+
}, {
|
|
618
|
+
readonly name: "signature";
|
|
619
|
+
readonly internalType: "bytes";
|
|
620
|
+
readonly type: "bytes";
|
|
621
|
+
}];
|
|
622
|
+
}];
|
|
623
|
+
};
|
|
624
|
+
6: {
|
|
625
|
+
readonly name: "";
|
|
626
|
+
readonly internalType: "struct DelegatedWithdrawalIntent";
|
|
627
|
+
readonly type: "tuple";
|
|
628
|
+
readonly components: readonly [{
|
|
629
|
+
readonly name: "intent";
|
|
630
|
+
readonly internalType: "struct WithdrawalIntent";
|
|
631
|
+
readonly type: "tuple";
|
|
632
|
+
readonly components: readonly [{
|
|
633
|
+
readonly name: "op";
|
|
634
|
+
readonly internalType: "struct WithdrawalIntentOp";
|
|
635
|
+
readonly type: "tuple";
|
|
636
|
+
readonly components: readonly [{
|
|
637
|
+
readonly name: "core";
|
|
638
|
+
readonly internalType: "struct WithdrawalCoreIntentOp";
|
|
639
|
+
readonly type: "tuple";
|
|
640
|
+
readonly components: readonly [{
|
|
641
|
+
readonly name: "to";
|
|
642
|
+
readonly internalType: "address";
|
|
643
|
+
readonly type: "address";
|
|
644
|
+
}, {
|
|
645
|
+
readonly name: "assetId";
|
|
646
|
+
readonly internalType: "bytes32";
|
|
647
|
+
readonly type: "bytes32";
|
|
648
|
+
}, {
|
|
649
|
+
readonly name: "amount";
|
|
650
|
+
readonly internalType: "uint256";
|
|
651
|
+
readonly type: "uint256";
|
|
652
|
+
}, {
|
|
653
|
+
readonly name: "assetMovement";
|
|
654
|
+
readonly internalType: "struct AssetMovement";
|
|
655
|
+
readonly type: "tuple";
|
|
656
|
+
readonly components: readonly [{
|
|
657
|
+
readonly name: "assetAdapter";
|
|
658
|
+
readonly internalType: "contract IAssetAdapter";
|
|
659
|
+
readonly type: "address";
|
|
660
|
+
}, {
|
|
661
|
+
readonly name: "assetIdentificationArgs";
|
|
662
|
+
readonly internalType: "bytes";
|
|
663
|
+
readonly type: "bytes";
|
|
664
|
+
}, {
|
|
665
|
+
readonly name: "movementArgs";
|
|
666
|
+
readonly internalType: "bytes";
|
|
667
|
+
readonly type: "bytes";
|
|
668
|
+
}];
|
|
669
|
+
}];
|
|
670
|
+
}, {
|
|
671
|
+
readonly name: "memo";
|
|
672
|
+
readonly internalType: "bytes";
|
|
673
|
+
readonly type: "bytes";
|
|
674
|
+
}];
|
|
675
|
+
}, {
|
|
676
|
+
readonly name: "signer";
|
|
677
|
+
readonly internalType: "address";
|
|
678
|
+
readonly type: "address";
|
|
679
|
+
}, {
|
|
680
|
+
readonly name: "gas";
|
|
681
|
+
readonly internalType: "struct Gas";
|
|
682
|
+
readonly type: "tuple";
|
|
683
|
+
readonly components: readonly [{
|
|
684
|
+
readonly name: "assetId";
|
|
685
|
+
readonly internalType: "bytes32";
|
|
686
|
+
readonly type: "bytes32";
|
|
687
|
+
}, {
|
|
688
|
+
readonly name: "maxAmount";
|
|
689
|
+
readonly internalType: "uint256";
|
|
690
|
+
readonly type: "uint256";
|
|
691
|
+
}, {
|
|
692
|
+
readonly name: "callGasLimit";
|
|
693
|
+
readonly internalType: "uint256";
|
|
694
|
+
readonly type: "uint256";
|
|
695
|
+
}, {
|
|
696
|
+
readonly name: "verificationGasLimit";
|
|
697
|
+
readonly internalType: "uint256";
|
|
698
|
+
readonly type: "uint256";
|
|
699
|
+
}, {
|
|
700
|
+
readonly name: "preVerificationGas";
|
|
701
|
+
readonly internalType: "uint256";
|
|
702
|
+
readonly type: "uint256";
|
|
703
|
+
}, {
|
|
704
|
+
readonly name: "paymasterVerificationGasLimit";
|
|
705
|
+
readonly internalType: "uint256";
|
|
706
|
+
readonly type: "uint256";
|
|
707
|
+
}, {
|
|
708
|
+
readonly name: "paymasterPostOpGasLimit";
|
|
709
|
+
readonly internalType: "uint256";
|
|
710
|
+
readonly type: "uint256";
|
|
711
|
+
}, {
|
|
712
|
+
readonly name: "maxFeePerGas";
|
|
713
|
+
readonly internalType: "uint256";
|
|
714
|
+
readonly type: "uint256";
|
|
715
|
+
}, {
|
|
716
|
+
readonly name: "maxPriorityFeePerGas";
|
|
717
|
+
readonly internalType: "uint256";
|
|
718
|
+
readonly type: "uint256";
|
|
719
|
+
}];
|
|
720
|
+
}, {
|
|
721
|
+
readonly name: "salt";
|
|
722
|
+
readonly internalType: "bytes32";
|
|
723
|
+
readonly type: "bytes32";
|
|
724
|
+
}];
|
|
725
|
+
}, {
|
|
726
|
+
readonly name: "spender";
|
|
727
|
+
readonly internalType: "address";
|
|
728
|
+
readonly type: "address";
|
|
729
|
+
}, {
|
|
730
|
+
readonly name: "attestation";
|
|
731
|
+
readonly internalType: "struct PermissionAttestation";
|
|
732
|
+
readonly type: "tuple";
|
|
733
|
+
readonly components: readonly [{
|
|
734
|
+
readonly name: "payload";
|
|
735
|
+
readonly internalType: "struct PermissionAttestationPayload";
|
|
736
|
+
readonly type: "tuple";
|
|
737
|
+
readonly components: readonly [{
|
|
738
|
+
readonly name: "permissionId";
|
|
739
|
+
readonly internalType: "bytes32";
|
|
740
|
+
readonly type: "bytes32";
|
|
741
|
+
}, {
|
|
742
|
+
readonly name: "permission";
|
|
743
|
+
readonly internalType: "struct Permission";
|
|
744
|
+
readonly type: "tuple";
|
|
745
|
+
readonly components: readonly [{
|
|
746
|
+
readonly name: "owner";
|
|
747
|
+
readonly internalType: "address";
|
|
748
|
+
readonly type: "address";
|
|
749
|
+
}, {
|
|
750
|
+
readonly name: "spender";
|
|
751
|
+
readonly internalType: "address";
|
|
752
|
+
readonly type: "address";
|
|
753
|
+
}, {
|
|
754
|
+
readonly name: "assetId";
|
|
755
|
+
readonly internalType: "bytes32";
|
|
756
|
+
readonly type: "bytes32";
|
|
757
|
+
}, {
|
|
758
|
+
readonly name: "allowance";
|
|
759
|
+
readonly internalType: "uint256";
|
|
760
|
+
readonly type: "uint256";
|
|
761
|
+
}, {
|
|
762
|
+
readonly name: "start";
|
|
763
|
+
readonly internalType: "uint256";
|
|
764
|
+
readonly type: "uint256";
|
|
765
|
+
}, {
|
|
766
|
+
readonly name: "end";
|
|
767
|
+
readonly internalType: "uint256";
|
|
768
|
+
readonly type: "uint256";
|
|
769
|
+
}, {
|
|
770
|
+
readonly name: "period";
|
|
771
|
+
readonly internalType: "uint256";
|
|
772
|
+
readonly type: "uint256";
|
|
773
|
+
}, {
|
|
774
|
+
readonly name: "agreementHash";
|
|
775
|
+
readonly internalType: "bytes32";
|
|
776
|
+
readonly type: "bytes32";
|
|
777
|
+
}, {
|
|
778
|
+
readonly name: "salt";
|
|
779
|
+
readonly internalType: "bytes32";
|
|
780
|
+
readonly type: "bytes32";
|
|
781
|
+
}];
|
|
782
|
+
}, {
|
|
783
|
+
readonly name: "draftingHandle";
|
|
784
|
+
readonly internalType: "bytes32";
|
|
785
|
+
readonly type: "bytes32";
|
|
786
|
+
}];
|
|
787
|
+
}, {
|
|
788
|
+
readonly name: "signature";
|
|
789
|
+
readonly internalType: "bytes";
|
|
790
|
+
readonly type: "bytes";
|
|
791
|
+
}];
|
|
792
|
+
}];
|
|
793
|
+
};
|
|
794
|
+
7: {
|
|
795
|
+
readonly name: "";
|
|
796
|
+
readonly internalType: "struct DelegatedDefiInteractionIntent";
|
|
797
|
+
readonly type: "tuple";
|
|
798
|
+
readonly components: readonly [{
|
|
799
|
+
readonly name: "intent";
|
|
800
|
+
readonly internalType: "struct DefiInteractionIntent";
|
|
801
|
+
readonly type: "tuple";
|
|
802
|
+
readonly components: readonly [{
|
|
803
|
+
readonly name: "op";
|
|
804
|
+
readonly internalType: "struct DefiInteractionIntentOp";
|
|
805
|
+
readonly type: "tuple";
|
|
806
|
+
readonly components: readonly [{
|
|
807
|
+
readonly name: "withdrawal";
|
|
808
|
+
readonly internalType: "struct WithdrawalCoreIntentOp";
|
|
809
|
+
readonly type: "tuple";
|
|
810
|
+
readonly components: readonly [{
|
|
811
|
+
readonly name: "to";
|
|
812
|
+
readonly internalType: "address";
|
|
813
|
+
readonly type: "address";
|
|
814
|
+
}, {
|
|
815
|
+
readonly name: "assetId";
|
|
816
|
+
readonly internalType: "bytes32";
|
|
817
|
+
readonly type: "bytes32";
|
|
818
|
+
}, {
|
|
819
|
+
readonly name: "amount";
|
|
820
|
+
readonly internalType: "uint256";
|
|
821
|
+
readonly type: "uint256";
|
|
822
|
+
}, {
|
|
823
|
+
readonly name: "assetMovement";
|
|
824
|
+
readonly internalType: "struct AssetMovement";
|
|
825
|
+
readonly type: "tuple";
|
|
826
|
+
readonly components: readonly [{
|
|
827
|
+
readonly name: "assetAdapter";
|
|
828
|
+
readonly internalType: "contract IAssetAdapter";
|
|
829
|
+
readonly type: "address";
|
|
830
|
+
}, {
|
|
831
|
+
readonly name: "assetIdentificationArgs";
|
|
832
|
+
readonly internalType: "bytes";
|
|
833
|
+
readonly type: "bytes";
|
|
834
|
+
}, {
|
|
835
|
+
readonly name: "movementArgs";
|
|
836
|
+
readonly internalType: "bytes";
|
|
837
|
+
readonly type: "bytes";
|
|
838
|
+
}];
|
|
839
|
+
}];
|
|
840
|
+
}, {
|
|
841
|
+
readonly name: "defiAdapter";
|
|
842
|
+
readonly internalType: "contract IDefiAdapter";
|
|
843
|
+
readonly type: "address";
|
|
844
|
+
}, {
|
|
845
|
+
readonly name: "adapterArgs";
|
|
846
|
+
readonly internalType: "bytes";
|
|
847
|
+
readonly type: "bytes";
|
|
848
|
+
}, {
|
|
849
|
+
readonly name: "memo";
|
|
850
|
+
readonly internalType: "bytes";
|
|
851
|
+
readonly type: "bytes";
|
|
852
|
+
}];
|
|
853
|
+
}, {
|
|
854
|
+
readonly name: "signer";
|
|
855
|
+
readonly internalType: "address";
|
|
856
|
+
readonly type: "address";
|
|
857
|
+
}, {
|
|
858
|
+
readonly name: "gas";
|
|
859
|
+
readonly internalType: "struct Gas";
|
|
860
|
+
readonly type: "tuple";
|
|
861
|
+
readonly components: readonly [{
|
|
862
|
+
readonly name: "assetId";
|
|
863
|
+
readonly internalType: "bytes32";
|
|
864
|
+
readonly type: "bytes32";
|
|
865
|
+
}, {
|
|
866
|
+
readonly name: "maxAmount";
|
|
867
|
+
readonly internalType: "uint256";
|
|
868
|
+
readonly type: "uint256";
|
|
869
|
+
}, {
|
|
870
|
+
readonly name: "callGasLimit";
|
|
871
|
+
readonly internalType: "uint256";
|
|
872
|
+
readonly type: "uint256";
|
|
873
|
+
}, {
|
|
874
|
+
readonly name: "verificationGasLimit";
|
|
875
|
+
readonly internalType: "uint256";
|
|
876
|
+
readonly type: "uint256";
|
|
877
|
+
}, {
|
|
878
|
+
readonly name: "preVerificationGas";
|
|
879
|
+
readonly internalType: "uint256";
|
|
880
|
+
readonly type: "uint256";
|
|
881
|
+
}, {
|
|
882
|
+
readonly name: "paymasterVerificationGasLimit";
|
|
883
|
+
readonly internalType: "uint256";
|
|
884
|
+
readonly type: "uint256";
|
|
885
|
+
}, {
|
|
886
|
+
readonly name: "paymasterPostOpGasLimit";
|
|
887
|
+
readonly internalType: "uint256";
|
|
888
|
+
readonly type: "uint256";
|
|
889
|
+
}, {
|
|
890
|
+
readonly name: "maxFeePerGas";
|
|
891
|
+
readonly internalType: "uint256";
|
|
892
|
+
readonly type: "uint256";
|
|
893
|
+
}, {
|
|
894
|
+
readonly name: "maxPriorityFeePerGas";
|
|
895
|
+
readonly internalType: "uint256";
|
|
896
|
+
readonly type: "uint256";
|
|
897
|
+
}];
|
|
898
|
+
}, {
|
|
899
|
+
readonly name: "salt";
|
|
900
|
+
readonly internalType: "bytes32";
|
|
901
|
+
readonly type: "bytes32";
|
|
902
|
+
}];
|
|
903
|
+
}, {
|
|
904
|
+
readonly name: "spender";
|
|
905
|
+
readonly internalType: "address";
|
|
906
|
+
readonly type: "address";
|
|
907
|
+
}, {
|
|
908
|
+
readonly name: "attestation";
|
|
909
|
+
readonly internalType: "struct PermissionAttestation";
|
|
910
|
+
readonly type: "tuple";
|
|
911
|
+
readonly components: readonly [{
|
|
912
|
+
readonly name: "payload";
|
|
913
|
+
readonly internalType: "struct PermissionAttestationPayload";
|
|
914
|
+
readonly type: "tuple";
|
|
915
|
+
readonly components: readonly [{
|
|
916
|
+
readonly name: "permissionId";
|
|
917
|
+
readonly internalType: "bytes32";
|
|
918
|
+
readonly type: "bytes32";
|
|
919
|
+
}, {
|
|
920
|
+
readonly name: "permission";
|
|
921
|
+
readonly internalType: "struct Permission";
|
|
922
|
+
readonly type: "tuple";
|
|
923
|
+
readonly components: readonly [{
|
|
924
|
+
readonly name: "owner";
|
|
925
|
+
readonly internalType: "address";
|
|
926
|
+
readonly type: "address";
|
|
927
|
+
}, {
|
|
928
|
+
readonly name: "spender";
|
|
929
|
+
readonly internalType: "address";
|
|
930
|
+
readonly type: "address";
|
|
931
|
+
}, {
|
|
932
|
+
readonly name: "assetId";
|
|
933
|
+
readonly internalType: "bytes32";
|
|
934
|
+
readonly type: "bytes32";
|
|
935
|
+
}, {
|
|
936
|
+
readonly name: "allowance";
|
|
937
|
+
readonly internalType: "uint256";
|
|
938
|
+
readonly type: "uint256";
|
|
939
|
+
}, {
|
|
940
|
+
readonly name: "start";
|
|
941
|
+
readonly internalType: "uint256";
|
|
942
|
+
readonly type: "uint256";
|
|
943
|
+
}, {
|
|
944
|
+
readonly name: "end";
|
|
945
|
+
readonly internalType: "uint256";
|
|
946
|
+
readonly type: "uint256";
|
|
947
|
+
}, {
|
|
948
|
+
readonly name: "period";
|
|
949
|
+
readonly internalType: "uint256";
|
|
950
|
+
readonly type: "uint256";
|
|
951
|
+
}, {
|
|
952
|
+
readonly name: "agreementHash";
|
|
953
|
+
readonly internalType: "bytes32";
|
|
954
|
+
readonly type: "bytes32";
|
|
955
|
+
}, {
|
|
956
|
+
readonly name: "salt";
|
|
957
|
+
readonly internalType: "bytes32";
|
|
958
|
+
readonly type: "bytes32";
|
|
959
|
+
}];
|
|
960
|
+
}, {
|
|
961
|
+
readonly name: "draftingHandle";
|
|
962
|
+
readonly internalType: "bytes32";
|
|
963
|
+
readonly type: "bytes32";
|
|
964
|
+
}];
|
|
965
|
+
}, {
|
|
966
|
+
readonly name: "signature";
|
|
967
|
+
readonly internalType: "bytes";
|
|
968
|
+
readonly type: "bytes";
|
|
969
|
+
}];
|
|
970
|
+
}];
|
|
971
|
+
};
|
|
972
|
+
};
|
|
973
|
+
/**
|
|
974
|
+
* ABI-encode an intent.
|
|
975
|
+
*/
|
|
976
|
+
export declare function encodeIntent<K extends IntentKind>(kind: K, intent: IntentMapping[K]['intent']): Hex;
|
|
977
|
+
export {};
|