@agoric/orchestration 0.1.1-dev-a06b4b8.0.a06b4b8 → 0.1.1-dev-b5701cc.0.b5701cc
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/package.json +16 -16
- package/src/utils/permit2/signatureTransfer.d.ts +5 -0
- package/src/utils/permit2/signatureTransfer.d.ts.map +1 -1
- package/src/utils/permit2/signatureTransfer.ts +5 -0
- package/src/utils/permit2/signatureTransferHelpers.d.ts +274 -1
- package/src/utils/permit2/signatureTransferHelpers.d.ts.map +1 -1
- package/src/utils/permit2/signatureTransferHelpers.ts +124 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/orchestration",
|
|
3
|
-
"version": "0.1.1-dev-
|
|
3
|
+
"version": "0.1.1-dev-b5701cc.0.b5701cc",
|
|
4
4
|
"description": "Chain abstraction for Agoric's orchestration clients",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -35,19 +35,19 @@
|
|
|
35
35
|
},
|
|
36
36
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@agoric/async-flow": "0.1.1-dev-
|
|
39
|
-
"@agoric/cosmic-proto": "0.4.1-dev-
|
|
40
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
41
|
-
"@agoric/internal": "0.3.3-dev-
|
|
42
|
-
"@agoric/network": "0.1.1-dev-
|
|
43
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
44
|
-
"@agoric/store": "0.9.3-dev-
|
|
45
|
-
"@agoric/time": "0.3.3-dev-
|
|
46
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
47
|
-
"@agoric/vats": "0.15.2-dev-
|
|
48
|
-
"@agoric/vow": "0.1.1-dev-
|
|
49
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
50
|
-
"@agoric/zone": "0.2.3-dev-
|
|
38
|
+
"@agoric/async-flow": "0.1.1-dev-b5701cc.0.b5701cc",
|
|
39
|
+
"@agoric/cosmic-proto": "0.4.1-dev-b5701cc.0.b5701cc",
|
|
40
|
+
"@agoric/ertp": "0.16.3-dev-b5701cc.0.b5701cc",
|
|
41
|
+
"@agoric/internal": "0.3.3-dev-b5701cc.0.b5701cc",
|
|
42
|
+
"@agoric/network": "0.1.1-dev-b5701cc.0.b5701cc",
|
|
43
|
+
"@agoric/notifier": "0.6.3-dev-b5701cc.0.b5701cc",
|
|
44
|
+
"@agoric/store": "0.9.3-dev-b5701cc.0.b5701cc",
|
|
45
|
+
"@agoric/time": "0.3.3-dev-b5701cc.0.b5701cc",
|
|
46
|
+
"@agoric/vat-data": "0.5.3-dev-b5701cc.0.b5701cc",
|
|
47
|
+
"@agoric/vats": "0.15.2-dev-b5701cc.0.b5701cc",
|
|
48
|
+
"@agoric/vow": "0.1.1-dev-b5701cc.0.b5701cc",
|
|
49
|
+
"@agoric/zoe": "0.26.3-dev-b5701cc.0.b5701cc",
|
|
50
|
+
"@agoric/zone": "0.2.3-dev-b5701cc.0.b5701cc",
|
|
51
51
|
"@cosmjs/encoding": "^0.36.0",
|
|
52
52
|
"@endo/base64": "^1.0.12",
|
|
53
53
|
"@endo/errors": "^1.2.13",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"bs58": "^6.0.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
63
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-b5701cc.0.b5701cc",
|
|
64
64
|
"@chain-registry/client": "^1.53.194",
|
|
65
65
|
"@cosmjs/amino": "^0.36.0",
|
|
66
66
|
"@cosmjs/proto-signing": "^0.36.0",
|
|
@@ -106,5 +106,5 @@
|
|
|
106
106
|
"typeCoverage": {
|
|
107
107
|
"atLeast": 97.46
|
|
108
108
|
},
|
|
109
|
-
"gitHead": "
|
|
109
|
+
"gitHead": "b5701cce70cc42c0e230240bc6ca7ad7b20a24a5"
|
|
110
110
|
}
|
|
@@ -20,6 +20,11 @@ interface WitnessDefinition<T extends TypedData = TypedData, TD extends TypedDat
|
|
|
20
20
|
export interface Witness<T extends TypedData = TypedData, TD extends TypedDataParameter<string, Extract<keyof T, string>> = TypedDataParameter<'witness', Extract<keyof T, string>>> extends WitnessDefinition<T, TD> {
|
|
21
21
|
witness: TypedDataToPrimitiveTypes<T>[TD['type']];
|
|
22
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* Helper to help caller check that the `data` matches the inferred witness types
|
|
25
|
+
*
|
|
26
|
+
* @see {@link https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-4.html#the-noinfer-utility-type}
|
|
27
|
+
*/
|
|
23
28
|
export declare function makeWitness<T extends TypedData, TD extends TypedDataParameter<string, Extract<keyof T, string>>>(data: NoInfer<TypedDataToPrimitiveTypes<T>[TD['type']]>, types: T, typeParam: TD): Witness<T, TD>;
|
|
24
29
|
export type TokenPermissions = {
|
|
25
30
|
token: Address;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signatureTransfer.d.ts","sourceRoot":"","sources":["signatureTransfer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AACzD,OAAO,KAAK,EACV,OAAO,EACP,SAAS,EACT,mBAAmB,EAEpB,MAAM,MAAM,CAAC;AACd,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAKxD,UAAU,iBAAiB,CACzB,CAAC,SAAS,SAAS,GAAG,SAAS,EAC/B,EAAE,SAAS,kBAAkB,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,GAC7D,kBAAkB,CAAC,SAAS,EAAE,OAAO,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC;IAEzD,YAAY,EAAE,EAA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EAAE,MAAM,CAAC,CAAC,EAEzD,MAAM,EAAE,uBAAuB,EAC/B,cAAc,EAAE,OAAO,EACvB,OAAO,EAAE,MAAM,GAAG,MAAM,EACxB,OAAO,EAAE,OAAO,CAAC,CAAC,EAAE,EAAE,CAAC,GACtB,mBAAmB,CACpB,UAAU,CAAC,OAAO,mCAAmC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAC7D,gCAAgC,EAChC,gCAAgC,CACjC,CAoBA"}
|
|
@@ -40,6 +40,11 @@ export interface Witness<
|
|
|
40
40
|
witness: TypedDataToPrimitiveTypes<T>[TD['type']];
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
+
/**
|
|
44
|
+
* Helper to help caller check that the `data` matches the inferred witness types
|
|
45
|
+
*
|
|
46
|
+
* @see {@link https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-4.html#the-noinfer-utility-type}
|
|
47
|
+
*/
|
|
43
48
|
export function makeWitness<
|
|
44
49
|
T extends TypedData,
|
|
45
50
|
TD extends TypedDataParameter<string, Extract<keyof T, string>>,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* This is original code that was adapted for permit2-sdk, unlike @see ./permit2SignatureTransfer.ts
|
|
5
5
|
*/
|
|
6
|
-
import type { TypedData } from '
|
|
6
|
+
import type { AbiParameterToPrimitiveType, TypedData } from 'abitype';
|
|
7
7
|
import type { TypedDataParameter } from '../abitype.ts';
|
|
8
8
|
import { PermitBatchTransferFromTypeParams, PermitTransferFromTypeParams } from './signatureTransfer.ts';
|
|
9
9
|
export declare const makeWitnessTypeStringExtractor: ({ encodeType, }: {
|
|
@@ -18,4 +18,277 @@ export declare const extractWitnessFieldFromTypes: <T extends Readonly<TypedData
|
|
|
18
18
|
PermitWitnessTransferFrom: readonly [...typeof PermitTransferFromTypeParams, T];
|
|
19
19
|
}) => T;
|
|
20
20
|
export declare const isPermit2MessageType: (type: string) => type is "PermitWitnessTransferFrom" | "PermitBatchWitnessTransferFrom";
|
|
21
|
+
export declare const TokenPermissionsComponents: [{
|
|
22
|
+
readonly name: "token";
|
|
23
|
+
readonly type: "address";
|
|
24
|
+
}, {
|
|
25
|
+
readonly name: "amount";
|
|
26
|
+
readonly type: "uint256";
|
|
27
|
+
}];
|
|
28
|
+
export declare const TokenPermissionsInternalTypeName: "struct ISignatureTransfer.TokenPermissions";
|
|
29
|
+
export declare const PermitTransferFromComponents: [{
|
|
30
|
+
readonly name: "permitted";
|
|
31
|
+
readonly type: "tuple";
|
|
32
|
+
readonly internalType: "struct ISignatureTransfer.TokenPermissions";
|
|
33
|
+
readonly components: [{
|
|
34
|
+
readonly name: "token";
|
|
35
|
+
readonly type: "address";
|
|
36
|
+
}, {
|
|
37
|
+
readonly name: "amount";
|
|
38
|
+
readonly type: "uint256";
|
|
39
|
+
}];
|
|
40
|
+
}, {
|
|
41
|
+
readonly name: "nonce";
|
|
42
|
+
readonly type: "uint256";
|
|
43
|
+
}, {
|
|
44
|
+
readonly name: "deadline";
|
|
45
|
+
readonly type: "uint256";
|
|
46
|
+
}];
|
|
47
|
+
export declare const PermitTransferFromInternalTypeName: "struct ISignatureTransfer.PermitTransferFrom";
|
|
48
|
+
export type PermitTransferFromStruct = AbiParameterToPrimitiveType<{
|
|
49
|
+
type: 'tuple';
|
|
50
|
+
internalType: typeof PermitTransferFromInternalTypeName;
|
|
51
|
+
components: typeof PermitTransferFromComponents;
|
|
52
|
+
}>;
|
|
53
|
+
export declare const PermitBatchTransferFromComponents: [{
|
|
54
|
+
readonly name: "permitted";
|
|
55
|
+
readonly type: "tuple[]";
|
|
56
|
+
readonly internalType: "struct ISignatureTransfer.TokenPermissions[]";
|
|
57
|
+
readonly components: [{
|
|
58
|
+
readonly name: "token";
|
|
59
|
+
readonly type: "address";
|
|
60
|
+
}, {
|
|
61
|
+
readonly name: "amount";
|
|
62
|
+
readonly type: "uint256";
|
|
63
|
+
}];
|
|
64
|
+
}, {
|
|
65
|
+
readonly name: "nonce";
|
|
66
|
+
readonly type: "uint256";
|
|
67
|
+
}, {
|
|
68
|
+
readonly name: "deadline";
|
|
69
|
+
readonly type: "uint256";
|
|
70
|
+
}];
|
|
71
|
+
export declare const PermitBatchTransferFromInternalTypeName: "struct ISignatureTransfer.PermitBatchTransferFrom";
|
|
72
|
+
export type PermitBatchTransferFromStruct = AbiParameterToPrimitiveType<{
|
|
73
|
+
type: 'tuple';
|
|
74
|
+
internalType: typeof PermitBatchTransferFromInternalTypeName;
|
|
75
|
+
components: typeof PermitBatchTransferFromComponents;
|
|
76
|
+
}>;
|
|
77
|
+
export declare const SignatureTransferDetailsComponents: [{
|
|
78
|
+
readonly name: "to";
|
|
79
|
+
readonly type: "address";
|
|
80
|
+
}, {
|
|
81
|
+
readonly name: "requestedAmount";
|
|
82
|
+
readonly type: "uint256";
|
|
83
|
+
}];
|
|
84
|
+
export declare const SignatureTransferDetailsInternalTypeName: "struct ISignatureTransfer.SignatureTransferDetails";
|
|
85
|
+
export type SignatureTransferDetailsStruct = AbiParameterToPrimitiveType<{
|
|
86
|
+
type: 'tuple';
|
|
87
|
+
internalType: typeof SignatureTransferDetailsInternalTypeName;
|
|
88
|
+
components: typeof SignatureTransferDetailsComponents;
|
|
89
|
+
}>;
|
|
90
|
+
export declare const PermitWitnessTransferFromInputComponents: [{
|
|
91
|
+
readonly name: "permit";
|
|
92
|
+
readonly type: "tuple";
|
|
93
|
+
readonly internalType: "struct ISignatureTransfer.PermitTransferFrom";
|
|
94
|
+
readonly components: [{
|
|
95
|
+
readonly name: "permitted";
|
|
96
|
+
readonly type: "tuple";
|
|
97
|
+
readonly internalType: "struct ISignatureTransfer.TokenPermissions";
|
|
98
|
+
readonly components: [{
|
|
99
|
+
readonly name: "token";
|
|
100
|
+
readonly type: "address";
|
|
101
|
+
}, {
|
|
102
|
+
readonly name: "amount";
|
|
103
|
+
readonly type: "uint256";
|
|
104
|
+
}];
|
|
105
|
+
}, {
|
|
106
|
+
readonly name: "nonce";
|
|
107
|
+
readonly type: "uint256";
|
|
108
|
+
}, {
|
|
109
|
+
readonly name: "deadline";
|
|
110
|
+
readonly type: "uint256";
|
|
111
|
+
}];
|
|
112
|
+
}, {
|
|
113
|
+
readonly name: "transferDetails";
|
|
114
|
+
readonly type: "tuple";
|
|
115
|
+
readonly internalType: "struct ISignatureTransfer.SignatureTransferDetails";
|
|
116
|
+
readonly components: [{
|
|
117
|
+
readonly name: "to";
|
|
118
|
+
readonly type: "address";
|
|
119
|
+
}, {
|
|
120
|
+
readonly name: "requestedAmount";
|
|
121
|
+
readonly type: "uint256";
|
|
122
|
+
}];
|
|
123
|
+
}, {
|
|
124
|
+
readonly name: "owner";
|
|
125
|
+
readonly type: "address";
|
|
126
|
+
}, {
|
|
127
|
+
readonly name: "witness";
|
|
128
|
+
readonly type: "bytes32";
|
|
129
|
+
}, {
|
|
130
|
+
readonly name: "witnessTypeString";
|
|
131
|
+
readonly type: "string";
|
|
132
|
+
}, {
|
|
133
|
+
readonly name: "signature";
|
|
134
|
+
readonly type: "bytes";
|
|
135
|
+
}];
|
|
136
|
+
export type PermitWitnessTransferFromPayload = AbiParameterToPrimitiveType<{
|
|
137
|
+
type: 'tuple';
|
|
138
|
+
components: typeof PermitWitnessTransferFromInputComponents;
|
|
139
|
+
}>;
|
|
140
|
+
export declare const BatchPermitWitnessTransferFromInputComponents: [{
|
|
141
|
+
readonly name: "permit";
|
|
142
|
+
readonly type: "tuple";
|
|
143
|
+
readonly internalType: "struct ISignatureTransfer.PermitBatchTransferFrom";
|
|
144
|
+
readonly components: [{
|
|
145
|
+
readonly name: "permitted";
|
|
146
|
+
readonly type: "tuple[]";
|
|
147
|
+
readonly internalType: "struct ISignatureTransfer.TokenPermissions[]";
|
|
148
|
+
readonly components: [{
|
|
149
|
+
readonly name: "token";
|
|
150
|
+
readonly type: "address";
|
|
151
|
+
}, {
|
|
152
|
+
readonly name: "amount";
|
|
153
|
+
readonly type: "uint256";
|
|
154
|
+
}];
|
|
155
|
+
}, {
|
|
156
|
+
readonly name: "nonce";
|
|
157
|
+
readonly type: "uint256";
|
|
158
|
+
}, {
|
|
159
|
+
readonly name: "deadline";
|
|
160
|
+
readonly type: "uint256";
|
|
161
|
+
}];
|
|
162
|
+
}, {
|
|
163
|
+
readonly name: "transferDetails";
|
|
164
|
+
readonly type: "tuple[]";
|
|
165
|
+
readonly internalType: "struct ISignatureTransfer.SignatureTransferDetails[]";
|
|
166
|
+
readonly components: [{
|
|
167
|
+
readonly name: "to";
|
|
168
|
+
readonly type: "address";
|
|
169
|
+
}, {
|
|
170
|
+
readonly name: "requestedAmount";
|
|
171
|
+
readonly type: "uint256";
|
|
172
|
+
}];
|
|
173
|
+
}, {
|
|
174
|
+
readonly name: "owner";
|
|
175
|
+
readonly type: "address";
|
|
176
|
+
}, {
|
|
177
|
+
readonly name: "witness";
|
|
178
|
+
readonly type: "bytes32";
|
|
179
|
+
}, {
|
|
180
|
+
readonly name: "witnessTypeString";
|
|
181
|
+
readonly type: "string";
|
|
182
|
+
}, {
|
|
183
|
+
readonly name: "signature";
|
|
184
|
+
readonly type: "bytes";
|
|
185
|
+
}];
|
|
186
|
+
export type BatchPermitWitnessTransferFromPayload = AbiParameterToPrimitiveType<{
|
|
187
|
+
type: 'tuple';
|
|
188
|
+
components: typeof BatchPermitWitnessTransferFromInputComponents;
|
|
189
|
+
}>;
|
|
190
|
+
export declare const PermitWitnessTransferFromFunctionABIType: {
|
|
191
|
+
readonly name: "permitWitnessTransferFrom";
|
|
192
|
+
readonly inputs: [{
|
|
193
|
+
readonly name: "permit";
|
|
194
|
+
readonly type: "tuple";
|
|
195
|
+
readonly internalType: "struct ISignatureTransfer.PermitTransferFrom";
|
|
196
|
+
readonly components: [{
|
|
197
|
+
readonly name: "permitted";
|
|
198
|
+
readonly type: "tuple";
|
|
199
|
+
readonly internalType: "struct ISignatureTransfer.TokenPermissions";
|
|
200
|
+
readonly components: [{
|
|
201
|
+
readonly name: "token";
|
|
202
|
+
readonly type: "address";
|
|
203
|
+
}, {
|
|
204
|
+
readonly name: "amount";
|
|
205
|
+
readonly type: "uint256";
|
|
206
|
+
}];
|
|
207
|
+
}, {
|
|
208
|
+
readonly name: "nonce";
|
|
209
|
+
readonly type: "uint256";
|
|
210
|
+
}, {
|
|
211
|
+
readonly name: "deadline";
|
|
212
|
+
readonly type: "uint256";
|
|
213
|
+
}];
|
|
214
|
+
}, {
|
|
215
|
+
readonly name: "transferDetails";
|
|
216
|
+
readonly type: "tuple";
|
|
217
|
+
readonly internalType: "struct ISignatureTransfer.SignatureTransferDetails";
|
|
218
|
+
readonly components: [{
|
|
219
|
+
readonly name: "to";
|
|
220
|
+
readonly type: "address";
|
|
221
|
+
}, {
|
|
222
|
+
readonly name: "requestedAmount";
|
|
223
|
+
readonly type: "uint256";
|
|
224
|
+
}];
|
|
225
|
+
}, {
|
|
226
|
+
readonly name: "owner";
|
|
227
|
+
readonly type: "address";
|
|
228
|
+
}, {
|
|
229
|
+
readonly name: "witness";
|
|
230
|
+
readonly type: "bytes32";
|
|
231
|
+
}, {
|
|
232
|
+
readonly name: "witnessTypeString";
|
|
233
|
+
readonly type: "string";
|
|
234
|
+
}, {
|
|
235
|
+
readonly name: "signature";
|
|
236
|
+
readonly type: "bytes";
|
|
237
|
+
}];
|
|
238
|
+
readonly outputs: readonly [];
|
|
239
|
+
readonly stateMutability: "nonpayable";
|
|
240
|
+
readonly type: "function";
|
|
241
|
+
};
|
|
242
|
+
export declare const BatchPermitWitnessTransferFunctionABIType: {
|
|
243
|
+
readonly name: "permitWitnessTransferFrom";
|
|
244
|
+
readonly inputs: [{
|
|
245
|
+
readonly name: "permit";
|
|
246
|
+
readonly type: "tuple";
|
|
247
|
+
readonly internalType: "struct ISignatureTransfer.PermitBatchTransferFrom";
|
|
248
|
+
readonly components: [{
|
|
249
|
+
readonly name: "permitted";
|
|
250
|
+
readonly type: "tuple[]";
|
|
251
|
+
readonly internalType: "struct ISignatureTransfer.TokenPermissions[]";
|
|
252
|
+
readonly components: [{
|
|
253
|
+
readonly name: "token";
|
|
254
|
+
readonly type: "address";
|
|
255
|
+
}, {
|
|
256
|
+
readonly name: "amount";
|
|
257
|
+
readonly type: "uint256";
|
|
258
|
+
}];
|
|
259
|
+
}, {
|
|
260
|
+
readonly name: "nonce";
|
|
261
|
+
readonly type: "uint256";
|
|
262
|
+
}, {
|
|
263
|
+
readonly name: "deadline";
|
|
264
|
+
readonly type: "uint256";
|
|
265
|
+
}];
|
|
266
|
+
}, {
|
|
267
|
+
readonly name: "transferDetails";
|
|
268
|
+
readonly type: "tuple[]";
|
|
269
|
+
readonly internalType: "struct ISignatureTransfer.SignatureTransferDetails[]";
|
|
270
|
+
readonly components: [{
|
|
271
|
+
readonly name: "to";
|
|
272
|
+
readonly type: "address";
|
|
273
|
+
}, {
|
|
274
|
+
readonly name: "requestedAmount";
|
|
275
|
+
readonly type: "uint256";
|
|
276
|
+
}];
|
|
277
|
+
}, {
|
|
278
|
+
readonly name: "owner";
|
|
279
|
+
readonly type: "address";
|
|
280
|
+
}, {
|
|
281
|
+
readonly name: "witness";
|
|
282
|
+
readonly type: "bytes32";
|
|
283
|
+
}, {
|
|
284
|
+
readonly name: "witnessTypeString";
|
|
285
|
+
readonly type: "string";
|
|
286
|
+
}, {
|
|
287
|
+
readonly name: "signature";
|
|
288
|
+
readonly type: "bytes";
|
|
289
|
+
}];
|
|
290
|
+
readonly outputs: readonly [];
|
|
291
|
+
readonly stateMutability: "nonpayable";
|
|
292
|
+
readonly type: "function";
|
|
293
|
+
};
|
|
21
294
|
//# sourceMappingURL=signatureTransferHelpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signatureTransferHelpers.d.ts","sourceRoot":"","sources":["signatureTransferHelpers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"signatureTransferHelpers.d.ts","sourceRoot":"","sources":["signatureTransferHelpers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,O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+
AbiFunction,
|
|
9
|
+
AbiParameter,
|
|
10
|
+
AbiParameterToPrimitiveType,
|
|
11
|
+
TypedData,
|
|
12
|
+
} from 'abitype';
|
|
8
13
|
import type { TypedDataParameter } from '../abitype.ts';
|
|
9
14
|
import {
|
|
10
15
|
PermitBatchTransferFromTypeParams,
|
|
@@ -137,3 +142,121 @@ export const isPermit2MessageType = (type: string) => {
|
|
|
137
142
|
type === 'PermitWitnessTransferFrom'
|
|
138
143
|
);
|
|
139
144
|
};
|
|
145
|
+
|
|
146
|
+
export const TokenPermissionsComponents = [
|
|
147
|
+
{ name: 'token', type: 'address' },
|
|
148
|
+
{ name: 'amount', type: 'uint256' },
|
|
149
|
+
] as const satisfies AbiParameter[];
|
|
150
|
+
export const TokenPermissionsInternalTypeName =
|
|
151
|
+
'struct ISignatureTransfer.TokenPermissions' as const;
|
|
152
|
+
|
|
153
|
+
export const PermitTransferFromComponents = [
|
|
154
|
+
{
|
|
155
|
+
name: 'permitted',
|
|
156
|
+
type: 'tuple',
|
|
157
|
+
internalType: TokenPermissionsInternalTypeName,
|
|
158
|
+
components: TokenPermissionsComponents,
|
|
159
|
+
},
|
|
160
|
+
{ name: 'nonce', type: 'uint256' },
|
|
161
|
+
{ name: 'deadline', type: 'uint256' },
|
|
162
|
+
] as const satisfies AbiParameter[];
|
|
163
|
+
export const PermitTransferFromInternalTypeName =
|
|
164
|
+
'struct ISignatureTransfer.PermitTransferFrom' as const;
|
|
165
|
+
export type PermitTransferFromStruct = AbiParameterToPrimitiveType<{
|
|
166
|
+
type: 'tuple';
|
|
167
|
+
internalType: typeof PermitTransferFromInternalTypeName;
|
|
168
|
+
components: typeof PermitTransferFromComponents;
|
|
169
|
+
}>;
|
|
170
|
+
|
|
171
|
+
export const PermitBatchTransferFromComponents = [
|
|
172
|
+
{
|
|
173
|
+
name: 'permitted',
|
|
174
|
+
type: 'tuple[]',
|
|
175
|
+
internalType: `${TokenPermissionsInternalTypeName}[]`,
|
|
176
|
+
components: TokenPermissionsComponents,
|
|
177
|
+
},
|
|
178
|
+
{ name: 'nonce', type: 'uint256' },
|
|
179
|
+
{ name: 'deadline', type: 'uint256' },
|
|
180
|
+
] as const satisfies AbiParameter[];
|
|
181
|
+
export const PermitBatchTransferFromInternalTypeName =
|
|
182
|
+
'struct ISignatureTransfer.PermitBatchTransferFrom' as const;
|
|
183
|
+
export type PermitBatchTransferFromStruct = AbiParameterToPrimitiveType<{
|
|
184
|
+
type: 'tuple';
|
|
185
|
+
internalType: typeof PermitBatchTransferFromInternalTypeName;
|
|
186
|
+
components: typeof PermitBatchTransferFromComponents;
|
|
187
|
+
}>;
|
|
188
|
+
|
|
189
|
+
export const SignatureTransferDetailsComponents = [
|
|
190
|
+
{ name: 'to', type: 'address' },
|
|
191
|
+
{ name: 'requestedAmount', type: 'uint256' },
|
|
192
|
+
] as const satisfies AbiParameter[];
|
|
193
|
+
export const SignatureTransferDetailsInternalTypeName =
|
|
194
|
+
'struct ISignatureTransfer.SignatureTransferDetails' as const;
|
|
195
|
+
export type SignatureTransferDetailsStruct = AbiParameterToPrimitiveType<{
|
|
196
|
+
type: 'tuple';
|
|
197
|
+
internalType: typeof SignatureTransferDetailsInternalTypeName;
|
|
198
|
+
components: typeof SignatureTransferDetailsComponents;
|
|
199
|
+
}>;
|
|
200
|
+
|
|
201
|
+
export const PermitWitnessTransferFromInputComponents = [
|
|
202
|
+
{
|
|
203
|
+
name: 'permit',
|
|
204
|
+
type: 'tuple',
|
|
205
|
+
internalType: PermitTransferFromInternalTypeName,
|
|
206
|
+
components: PermitTransferFromComponents,
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
name: 'transferDetails',
|
|
210
|
+
type: 'tuple',
|
|
211
|
+
internalType: SignatureTransferDetailsInternalTypeName,
|
|
212
|
+
components: SignatureTransferDetailsComponents,
|
|
213
|
+
},
|
|
214
|
+
{ name: 'owner', type: 'address' },
|
|
215
|
+
{ name: 'witness', type: 'bytes32' },
|
|
216
|
+
{ name: 'witnessTypeString', type: 'string' },
|
|
217
|
+
{ name: 'signature', type: 'bytes' },
|
|
218
|
+
] as const satisfies AbiParameter[];
|
|
219
|
+
export type PermitWitnessTransferFromPayload = AbiParameterToPrimitiveType<{
|
|
220
|
+
type: 'tuple';
|
|
221
|
+
components: typeof PermitWitnessTransferFromInputComponents;
|
|
222
|
+
}>;
|
|
223
|
+
|
|
224
|
+
export const BatchPermitWitnessTransferFromInputComponents = [
|
|
225
|
+
{
|
|
226
|
+
name: 'permit',
|
|
227
|
+
type: 'tuple',
|
|
228
|
+
internalType: PermitBatchTransferFromInternalTypeName,
|
|
229
|
+
components: PermitBatchTransferFromComponents,
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
name: 'transferDetails',
|
|
233
|
+
type: 'tuple[]',
|
|
234
|
+
internalType: `${SignatureTransferDetailsInternalTypeName}[]`,
|
|
235
|
+
components: SignatureTransferDetailsComponents,
|
|
236
|
+
},
|
|
237
|
+
{ name: 'owner', type: 'address' },
|
|
238
|
+
{ name: 'witness', type: 'bytes32' },
|
|
239
|
+
{ name: 'witnessTypeString', type: 'string' },
|
|
240
|
+
{ name: 'signature', type: 'bytes' },
|
|
241
|
+
] as const satisfies AbiParameter[];
|
|
242
|
+
export type BatchPermitWitnessTransferFromPayload =
|
|
243
|
+
AbiParameterToPrimitiveType<{
|
|
244
|
+
type: 'tuple';
|
|
245
|
+
components: typeof BatchPermitWitnessTransferFromInputComponents;
|
|
246
|
+
}>;
|
|
247
|
+
|
|
248
|
+
export const PermitWitnessTransferFromFunctionABIType = {
|
|
249
|
+
name: 'permitWitnessTransferFrom',
|
|
250
|
+
inputs: PermitWitnessTransferFromInputComponents,
|
|
251
|
+
outputs: [],
|
|
252
|
+
stateMutability: 'nonpayable',
|
|
253
|
+
type: 'function',
|
|
254
|
+
} as const satisfies AbiFunction;
|
|
255
|
+
|
|
256
|
+
export const BatchPermitWitnessTransferFunctionABIType = {
|
|
257
|
+
name: 'permitWitnessTransferFrom',
|
|
258
|
+
inputs: BatchPermitWitnessTransferFromInputComponents,
|
|
259
|
+
outputs: [],
|
|
260
|
+
stateMutability: 'nonpayable',
|
|
261
|
+
type: 'function',
|
|
262
|
+
} as const satisfies AbiFunction;
|