@inco/shield-js 0.0.0-bootstrap.0 → 0.2.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/README.md +52 -308
- package/dist/contracts/abi.d.ts +2000 -4513
- package/dist/contracts/abi.js +2400 -5651
- package/dist/contracts/index.d.ts +2 -2
- package/dist/contracts/index.js +2 -2
- package/dist/contracts/utils.d.ts +5 -24
- package/dist/contracts/utils.js +13 -24
- package/dist/errors.d.ts +16 -47
- package/dist/errors.js +6 -53
- package/dist/generated/inco/shield/v2/conductor_pb.d.ts +77 -0
- package/dist/generated/inco/shield/v2/conductor_pb.js +6 -0
- package/dist/generated/inco/shield/v2/deposit_pb.d.ts +12 -103
- package/dist/generated/inco/shield/v2/deposit_pb.js +4 -141
- package/dist/generated/inco/shield/v2/drafting_pb.d.ts +45 -269
- package/dist/generated/inco/shield/v2/drafting_pb.js +8 -361
- package/dist/generated/inco/shield/v2/types_pb.d.ts +47 -166
- package/dist/generated/inco/shield/v2/types_pb.js +12 -261
- package/dist/index.d.ts +1 -7
- package/dist/index.js +1 -14
- package/dist/shield/abi.d.ts +5 -0
- package/dist/shield/abi.js +28 -0
- package/dist/shield/client.d.ts +27 -51
- package/dist/shield/client.js +73 -65
- package/dist/shield/convert.d.ts +2 -14
- package/dist/shield/convert.js +39 -115
- package/dist/shield/encryption.d.ts +0 -67
- package/dist/shield/encryption.js +0 -67
- package/dist/shield/envelope.d.ts +10 -11
- package/dist/shield/envelope.js +15 -14
- package/dist/shield/fee.d.ts +24 -0
- package/dist/shield/fee.js +151 -0
- package/dist/shield/index.d.ts +9 -3
- package/dist/shield/index.js +7 -2
- package/dist/shield/intent.d.ts +20 -933
- package/dist/shield/intent.js +92 -112
- package/dist/shield/permission-status.d.ts +9 -0
- package/dist/shield/permission-status.js +8 -0
- package/dist/shield/rpc.d.ts +50 -49
- package/dist/shield/rpc.js +207 -354
- package/dist/shield/shield.eip712.gen.d.ts +1096 -43
- package/dist/shield/shield.eip712.gen.js +572 -62
- package/dist/shield/types.d.ts +7 -102
- package/dist/shield/types.js +1 -4
- package/dist/shield/userop/gas-estimation.d.ts +8 -23
- package/dist/shield/userop/gas-estimation.js +100 -137
- package/dist/shield/userop/paymaster.d.ts +15 -0
- package/dist/shield/userop/paymaster.js +17 -0
- package/dist/shield/userop/token-exchange.d.ts +5 -52
- package/dist/shield/userop/token-exchange.js +41 -149
- package/dist/shield/userop/types.d.ts +3 -28
- package/dist/shield/userop/types.js +0 -3
- package/dist/shield/userop/userOp.d.ts +0 -19
- package/dist/shield/userop/userOp.js +4 -22
- package/dist/shield/utils/chain.d.ts +1 -0
- package/dist/shield/utils/chain.js +3 -0
- package/dist/shield/validate-withdrawal-split.d.ts +13 -0
- package/dist/shield/validate-withdrawal-split.js +93 -0
- package/package.json +18 -27
- package/dist/generated/inco/shield/v2/conductor_connect.d.ts +0 -137
- package/dist/generated/inco/shield/v2/conductor_connect.js +0 -141
- package/dist/generated/inco/shield/v2/permission_pb.d.ts +0 -443
- package/dist/generated/inco/shield/v2/permission_pb.js +0 -639
- package/dist/generated/inco/shield/v2/query_pb.d.ts +0 -103
- package/dist/generated/inco/shield/v2/query_pb.js +0 -141
- package/dist/shield/userop/index.d.ts +0 -1
- package/dist/shield/userop/index.js +0 -1
- package/dist/uniswap-adapter/config.d.ts +0 -34
- package/dist/uniswap-adapter/config.js +0 -45
- package/dist/uniswap-adapter/find-pools.d.ts +0 -91
- package/dist/uniswap-adapter/find-pools.js +0 -108
- package/dist/uniswap-adapter/index.d.ts +0 -10
- package/dist/uniswap-adapter/index.js +0 -13
- package/dist/uniswap-adapter/swap.d.ts +0 -344
- package/dist/uniswap-adapter/swap.js +0 -309
package/dist/shield/intent.d.ts
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { type Address, type Hex, type PublicClient } from 'viem';
|
|
2
2
|
import { IntentKind } from '../generated/inco/shield/v2/drafting_pb.js';
|
|
3
|
-
import type { DefiInteractionIntent, DefiInteractionIntentOp, DelegatedDefiInteractionIntent, DelegatedTransferIntent, DelegatedWithdrawalIntent,
|
|
4
|
-
import type {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export type
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
*/
|
|
3
|
+
import type { DefiInteractionIntent, DefiInteractionIntentOp, DelegatedDefiInteractionIntent, DelegatedTransferIntent, DelegatedWithdrawalIntent, IndividualRevocationIntent, IndividualRevocationIntentOp, TransferIntent, TransferIntentOp, UserWideRevocationIntent, UserWideRevocationIntentOp, WithdrawalIntent, WithdrawalIntentOp } from './shield.eip712.gen.js';
|
|
4
|
+
import type { ResolvedSigner, ShieldConfig } from './types.js';
|
|
5
|
+
export type UserGasParams = {
|
|
6
|
+
feeToken?: Address;
|
|
7
|
+
maxFeePerGas: bigint;
|
|
8
|
+
maxPriorityFeePerGas: bigint;
|
|
9
|
+
};
|
|
10
|
+
export type PaymasterContext = {
|
|
11
|
+
paymaster: Address;
|
|
12
|
+
adapter: Address;
|
|
13
|
+
};
|
|
14
|
+
export declare function isNativeSettlement(gasAssetId: Hex): boolean;
|
|
16
15
|
type IntentMapping = {
|
|
17
16
|
[IntentKind.TRANSFER]: {
|
|
18
17
|
op: TransferIntentOp;
|
|
@@ -53,925 +52,13 @@ export type IntentOp = {
|
|
|
53
52
|
readonly op: IntentMapping[K]['op'];
|
|
54
53
|
};
|
|
55
54
|
}[keyof IntentMapping];
|
|
56
|
-
export declare function createTransferIntent(transferIntentOp: TransferIntentOp, salt: Hex, signer:
|
|
57
|
-
export declare function createWithdrawIntent(withdrawalIntentOp: WithdrawalIntentOp, salt: Hex, signer:
|
|
58
|
-
export declare function createDefiInteractionIntent(defiInteractionIntentOp: DefiInteractionIntentOp, salt: Hex, signer:
|
|
59
|
-
export declare function createIndividualRevocationIntent(individualRevocationIntentOp: IndividualRevocationIntentOp, salt: Hex, signer:
|
|
60
|
-
export declare function createUserWideRevocationIntent(userWideRevocationIntentOp: UserWideRevocationIntentOp, salt: Hex, signer:
|
|
61
|
-
export declare function createDelegatedTransferIntent(transferIntentOp: TransferIntentOp, salt: Hex, spender: Address,
|
|
62
|
-
export declare function createDelegatedWithdrawIntent(withdrawalIntentOp: WithdrawalIntentOp, salt: Hex, spender: Address,
|
|
63
|
-
export declare function createDelegatedDefiInteractionIntent(defiInteractionIntentOp: DefiInteractionIntentOp, salt: Hex, spender: Address,
|
|
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
|
-
*/
|
|
55
|
+
export declare function createTransferIntent(transferIntentOp: TransferIntentOp, salt: Hex, signer: ResolvedSigner, shieldConfig: ShieldConfig, publicClient: PublicClient, gas: UserGasParams, paymasterContext: PaymasterContext): Promise<TransferIntent>;
|
|
56
|
+
export declare function createWithdrawIntent(withdrawalIntentOp: WithdrawalIntentOp, salt: Hex, signer: ResolvedSigner, shieldConfig: ShieldConfig, publicClient: PublicClient, gas: UserGasParams, paymasterContext: PaymasterContext): Promise<WithdrawalIntent>;
|
|
57
|
+
export declare function createDefiInteractionIntent(defiInteractionIntentOp: DefiInteractionIntentOp, salt: Hex, signer: ResolvedSigner, shieldConfig: ShieldConfig, publicClient: PublicClient, gas: UserGasParams, paymasterContext: PaymasterContext): Promise<DefiInteractionIntent>;
|
|
58
|
+
export declare function createIndividualRevocationIntent(individualRevocationIntentOp: IndividualRevocationIntentOp, salt: Hex, signer: ResolvedSigner, shieldConfig: ShieldConfig, publicClient: PublicClient, gas: UserGasParams, paymasterContext: PaymasterContext): Promise<IndividualRevocationIntent>;
|
|
59
|
+
export declare function createUserWideRevocationIntent(userWideRevocationIntentOp: UserWideRevocationIntentOp, salt: Hex, signer: ResolvedSigner, shieldConfig: ShieldConfig, publicClient: PublicClient, gas: UserGasParams, paymasterContext: PaymasterContext): Promise<UserWideRevocationIntent>;
|
|
60
|
+
export declare function createDelegatedTransferIntent(transferIntentOp: TransferIntentOp, salt: Hex, spender: Address, permissionId: Hex, signer: ResolvedSigner, shieldConfig: ShieldConfig, publicClient: PublicClient, gas: UserGasParams, paymasterContext: PaymasterContext): Promise<DelegatedTransferIntent>;
|
|
61
|
+
export declare function createDelegatedWithdrawIntent(withdrawalIntentOp: WithdrawalIntentOp, salt: Hex, spender: Address, permissionId: Hex, signer: ResolvedSigner, shieldConfig: ShieldConfig, publicClient: PublicClient, gas: UserGasParams, paymasterContext: PaymasterContext): Promise<DelegatedWithdrawalIntent>;
|
|
62
|
+
export declare function createDelegatedDefiInteractionIntent(defiInteractionIntentOp: DefiInteractionIntentOp, salt: Hex, spender: Address, permissionId: Hex, signer: ResolvedSigner, shieldConfig: ShieldConfig, publicClient: PublicClient, gas: UserGasParams, paymasterContext: PaymasterContext): Promise<DelegatedDefiInteractionIntent>;
|
|
976
63
|
export declare function encodeIntent<K extends IntentKind>(kind: K, intent: IntentMapping[K]['intent']): Hex;
|
|
977
64
|
export {};
|