@0xsequence/abi 2.3.8 → 2.3.10

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.
Files changed (40) hide show
  1. package/dist/0xsequence-abi.cjs.dev.js +3639 -0
  2. package/dist/0xsequence-abi.cjs.prod.js +3639 -0
  3. package/dist/0xsequence-abi.esm.js +3622 -1
  4. package/dist/declarations/src/index.d.ts +18 -0
  5. package/dist/declarations/src/sale/erc1155Sale.d.ts +467 -0
  6. package/dist/declarations/src/sale/erc721Sale.d.ts +467 -0
  7. package/dist/declarations/src/saleItems/erc1155SaleItems.d.ts +672 -0
  8. package/dist/declarations/src/saleItems/erc721SaleItems.d.ts +794 -0
  9. package/dist/declarations/src/tokens/erc1155.d.ts +324 -0
  10. package/dist/declarations/src/tokens/erc20.d.ts +239 -0
  11. package/dist/declarations/src/tokens/erc6909.d.ts +308 -0
  12. package/dist/declarations/src/tokens/erc721.d.ts +335 -0
  13. package/dist/declarations/src/wallet/erc1271.d.ts +15 -13
  14. package/dist/declarations/src/wallet/erc5719.d.ts +13 -13
  15. package/dist/declarations/src/wallet/erc6492.d.ts +135 -25
  16. package/dist/declarations/src/wallet/factory.d.ts +13 -11
  17. package/dist/declarations/src/wallet/index.d.ts +3 -0
  18. package/dist/declarations/src/wallet/libs/requireFreshSigners.d.ts +11 -11
  19. package/dist/declarations/src/wallet/mainModule.d.ts +117 -51
  20. package/dist/declarations/src/wallet/mainModuleUpgradable.d.ts +21 -21
  21. package/dist/declarations/src/wallet/sequenceUtils.d.ts +393 -80
  22. package/package.json +1 -1
  23. package/src/index.ts +22 -0
  24. package/src/sale/erc1155Sale.ts +352 -0
  25. package/src/sale/erc721Sale.ts +352 -0
  26. package/src/saleItems/erc1155SaleItems.ts +377 -0
  27. package/src/saleItems/erc721SaleItems.ts +440 -0
  28. package/src/tokens/erc1155.ts +422 -3
  29. package/src/tokens/erc20.ts +316 -3
  30. package/src/tokens/erc6909.ts +404 -0
  31. package/src/tokens/erc721.ts +441 -3
  32. package/src/wallet/erc1271.ts +1 -1
  33. package/src/wallet/erc5719.ts +1 -1
  34. package/src/wallet/erc6492.ts +1 -1
  35. package/src/wallet/factory.ts +1 -1
  36. package/src/wallet/index.ts +3 -0
  37. package/src/wallet/libs/requireFreshSigners.ts +1 -1
  38. package/src/wallet/mainModule.ts +1 -1
  39. package/src/wallet/mainModuleUpgradable.ts +1 -1
  40. package/src/wallet/sequenceUtils.ts +1 -1
@@ -1,80 +1,393 @@
1
- export declare const abi: ({
2
- inputs: {
3
- internalType: string;
4
- name: string;
5
- type: string;
6
- }[];
7
- stateMutability: string;
8
- type: string;
9
- anonymous?: undefined;
10
- name?: undefined;
11
- outputs?: undefined;
12
- } | {
13
- anonymous: boolean;
14
- inputs: {
15
- indexed: boolean;
16
- internalType: string;
17
- name: string;
18
- type: string;
19
- }[];
20
- name: string;
21
- type: string;
22
- stateMutability?: undefined;
23
- outputs?: undefined;
24
- } | {
25
- inputs: {
26
- internalType: string;
27
- name: string;
28
- type: string;
29
- }[];
30
- name: string;
31
- outputs: {
32
- internalType: string;
33
- name: string;
34
- type: string;
35
- }[];
36
- stateMutability: string;
37
- type: string;
38
- anonymous?: undefined;
39
- } | {
40
- inputs: {
41
- components: {
42
- internalType: string;
43
- name: string;
44
- type: string;
45
- }[];
46
- internalType: string;
47
- name: string;
48
- type: string;
49
- }[];
50
- name: string;
51
- outputs: {
52
- internalType: string;
53
- name: string;
54
- type: string;
55
- }[];
56
- stateMutability: string;
57
- type: string;
58
- anonymous?: undefined;
59
- } | {
60
- inputs: ({
61
- internalType: string;
62
- name: string;
63
- type: string;
64
- components?: undefined;
65
- } | {
66
- components: {
67
- internalType: string;
68
- name: string;
69
- type: string;
70
- }[];
71
- internalType: string;
72
- name: string;
73
- type: string;
74
- })[];
75
- name: string;
76
- outputs: never[];
77
- stateMutability: string;
78
- type: string;
79
- anonymous?: undefined;
80
- })[];
1
+ export declare const abi: readonly [{
2
+ readonly inputs: readonly [{
3
+ readonly internalType: "address";
4
+ readonly name: "_factory";
5
+ readonly type: "address";
6
+ }, {
7
+ readonly internalType: "address";
8
+ readonly name: "_mainModule";
9
+ readonly type: "address";
10
+ }];
11
+ readonly stateMutability: "nonpayable";
12
+ readonly type: "constructor";
13
+ }, {
14
+ readonly anonymous: false;
15
+ readonly inputs: readonly [{
16
+ readonly indexed: true;
17
+ readonly internalType: "address";
18
+ readonly name: "_wallet";
19
+ readonly type: "address";
20
+ }, {
21
+ readonly indexed: true;
22
+ readonly internalType: "bytes32";
23
+ readonly name: "_imageHash";
24
+ readonly type: "bytes32";
25
+ }, {
26
+ readonly indexed: false;
27
+ readonly internalType: "uint256";
28
+ readonly name: "_threshold";
29
+ readonly type: "uint256";
30
+ }, {
31
+ readonly indexed: false;
32
+ readonly internalType: "bytes";
33
+ readonly name: "_signers";
34
+ readonly type: "bytes";
35
+ }];
36
+ readonly name: "RequiredConfig";
37
+ readonly type: "event";
38
+ }, {
39
+ readonly anonymous: false;
40
+ readonly inputs: readonly [{
41
+ readonly indexed: true;
42
+ readonly internalType: "address";
43
+ readonly name: "_wallet";
44
+ readonly type: "address";
45
+ }, {
46
+ readonly indexed: true;
47
+ readonly internalType: "address";
48
+ readonly name: "_signer";
49
+ readonly type: "address";
50
+ }];
51
+ readonly name: "RequiredSigner";
52
+ readonly type: "event";
53
+ }, {
54
+ readonly inputs: readonly [{
55
+ readonly internalType: "address";
56
+ readonly name: "_addr";
57
+ readonly type: "address";
58
+ }];
59
+ readonly name: "callBalanceOf";
60
+ readonly outputs: readonly [{
61
+ readonly internalType: "uint256";
62
+ readonly name: "";
63
+ readonly type: "uint256";
64
+ }];
65
+ readonly stateMutability: "view";
66
+ readonly type: "function";
67
+ }, {
68
+ readonly inputs: readonly [];
69
+ readonly name: "callBlockNumber";
70
+ readonly outputs: readonly [{
71
+ readonly internalType: "uint256";
72
+ readonly name: "";
73
+ readonly type: "uint256";
74
+ }];
75
+ readonly stateMutability: "view";
76
+ readonly type: "function";
77
+ }, {
78
+ readonly inputs: readonly [{
79
+ readonly internalType: "uint256";
80
+ readonly name: "_i";
81
+ readonly type: "uint256";
82
+ }];
83
+ readonly name: "callBlockhash";
84
+ readonly outputs: readonly [{
85
+ readonly internalType: "bytes32";
86
+ readonly name: "";
87
+ readonly type: "bytes32";
88
+ }];
89
+ readonly stateMutability: "view";
90
+ readonly type: "function";
91
+ }, {
92
+ readonly inputs: readonly [];
93
+ readonly name: "callChainId";
94
+ readonly outputs: readonly [{
95
+ readonly internalType: "uint256";
96
+ readonly name: "id";
97
+ readonly type: "uint256";
98
+ }];
99
+ readonly stateMutability: "pure";
100
+ readonly type: "function";
101
+ }, {
102
+ readonly inputs: readonly [{
103
+ readonly internalType: "address";
104
+ readonly name: "_addr";
105
+ readonly type: "address";
106
+ }];
107
+ readonly name: "callCode";
108
+ readonly outputs: readonly [{
109
+ readonly internalType: "bytes";
110
+ readonly name: "code";
111
+ readonly type: "bytes";
112
+ }];
113
+ readonly stateMutability: "view";
114
+ readonly type: "function";
115
+ }, {
116
+ readonly inputs: readonly [{
117
+ readonly internalType: "address";
118
+ readonly name: "_addr";
119
+ readonly type: "address";
120
+ }];
121
+ readonly name: "callCodeHash";
122
+ readonly outputs: readonly [{
123
+ readonly internalType: "bytes32";
124
+ readonly name: "codeHash";
125
+ readonly type: "bytes32";
126
+ }];
127
+ readonly stateMutability: "view";
128
+ readonly type: "function";
129
+ }, {
130
+ readonly inputs: readonly [{
131
+ readonly internalType: "address";
132
+ readonly name: "_addr";
133
+ readonly type: "address";
134
+ }];
135
+ readonly name: "callCodeSize";
136
+ readonly outputs: readonly [{
137
+ readonly internalType: "uint256";
138
+ readonly name: "size";
139
+ readonly type: "uint256";
140
+ }];
141
+ readonly stateMutability: "view";
142
+ readonly type: "function";
143
+ }, {
144
+ readonly inputs: readonly [];
145
+ readonly name: "callCoinbase";
146
+ readonly outputs: readonly [{
147
+ readonly internalType: "address";
148
+ readonly name: "";
149
+ readonly type: "address";
150
+ }];
151
+ readonly stateMutability: "view";
152
+ readonly type: "function";
153
+ }, {
154
+ readonly inputs: readonly [];
155
+ readonly name: "callDifficulty";
156
+ readonly outputs: readonly [{
157
+ readonly internalType: "uint256";
158
+ readonly name: "";
159
+ readonly type: "uint256";
160
+ }];
161
+ readonly stateMutability: "view";
162
+ readonly type: "function";
163
+ }, {
164
+ readonly inputs: readonly [];
165
+ readonly name: "callGasLeft";
166
+ readonly outputs: readonly [{
167
+ readonly internalType: "uint256";
168
+ readonly name: "";
169
+ readonly type: "uint256";
170
+ }];
171
+ readonly stateMutability: "view";
172
+ readonly type: "function";
173
+ }, {
174
+ readonly inputs: readonly [];
175
+ readonly name: "callGasLimit";
176
+ readonly outputs: readonly [{
177
+ readonly internalType: "uint256";
178
+ readonly name: "";
179
+ readonly type: "uint256";
180
+ }];
181
+ readonly stateMutability: "view";
182
+ readonly type: "function";
183
+ }, {
184
+ readonly inputs: readonly [];
185
+ readonly name: "callGasPrice";
186
+ readonly outputs: readonly [{
187
+ readonly internalType: "uint256";
188
+ readonly name: "";
189
+ readonly type: "uint256";
190
+ }];
191
+ readonly stateMutability: "view";
192
+ readonly type: "function";
193
+ }, {
194
+ readonly inputs: readonly [];
195
+ readonly name: "callOrigin";
196
+ readonly outputs: readonly [{
197
+ readonly internalType: "address";
198
+ readonly name: "";
199
+ readonly type: "address";
200
+ }];
201
+ readonly stateMutability: "view";
202
+ readonly type: "function";
203
+ }, {
204
+ readonly inputs: readonly [];
205
+ readonly name: "callTimestamp";
206
+ readonly outputs: readonly [{
207
+ readonly internalType: "uint256";
208
+ readonly name: "";
209
+ readonly type: "uint256";
210
+ }];
211
+ readonly stateMutability: "view";
212
+ readonly type: "function";
213
+ }, {
214
+ readonly inputs: readonly [{
215
+ readonly internalType: "address";
216
+ readonly name: "";
217
+ readonly type: "address";
218
+ }];
219
+ readonly name: "knownImageHashes";
220
+ readonly outputs: readonly [{
221
+ readonly internalType: "bytes32";
222
+ readonly name: "";
223
+ readonly type: "bytes32";
224
+ }];
225
+ readonly stateMutability: "view";
226
+ readonly type: "function";
227
+ }, {
228
+ readonly inputs: readonly [{
229
+ readonly internalType: "bytes32";
230
+ readonly name: "";
231
+ readonly type: "bytes32";
232
+ }];
233
+ readonly name: "lastImageHashUpdate";
234
+ readonly outputs: readonly [{
235
+ readonly internalType: "uint256";
236
+ readonly name: "";
237
+ readonly type: "uint256";
238
+ }];
239
+ readonly stateMutability: "view";
240
+ readonly type: "function";
241
+ }, {
242
+ readonly inputs: readonly [{
243
+ readonly internalType: "address";
244
+ readonly name: "";
245
+ readonly type: "address";
246
+ }];
247
+ readonly name: "lastSignerUpdate";
248
+ readonly outputs: readonly [{
249
+ readonly internalType: "uint256";
250
+ readonly name: "";
251
+ readonly type: "uint256";
252
+ }];
253
+ readonly stateMutability: "view";
254
+ readonly type: "function";
255
+ }, {
256
+ readonly inputs: readonly [{
257
+ readonly internalType: "address";
258
+ readonly name: "";
259
+ readonly type: "address";
260
+ }];
261
+ readonly name: "lastWalletUpdate";
262
+ readonly outputs: readonly [{
263
+ readonly internalType: "uint256";
264
+ readonly name: "";
265
+ readonly type: "uint256";
266
+ }];
267
+ readonly stateMutability: "view";
268
+ readonly type: "function";
269
+ }, {
270
+ readonly inputs: readonly [{
271
+ readonly components: readonly [{
272
+ readonly internalType: "bool";
273
+ readonly name: "delegateCall";
274
+ readonly type: "bool";
275
+ }, {
276
+ readonly internalType: "bool";
277
+ readonly name: "revertOnError";
278
+ readonly type: "bool";
279
+ }, {
280
+ readonly internalType: "uint256";
281
+ readonly name: "gasLimit";
282
+ readonly type: "uint256";
283
+ }, {
284
+ readonly internalType: "address";
285
+ readonly name: "target";
286
+ readonly type: "address";
287
+ }, {
288
+ readonly internalType: "uint256";
289
+ readonly name: "value";
290
+ readonly type: "uint256";
291
+ }, {
292
+ readonly internalType: "bytes";
293
+ readonly name: "data";
294
+ readonly type: "bytes";
295
+ }];
296
+ readonly internalType: "struct IModuleCalls.Transaction[]";
297
+ readonly name: "_txs";
298
+ readonly type: "tuple[]";
299
+ }];
300
+ readonly name: "multiCall";
301
+ readonly outputs: readonly [{
302
+ readonly internalType: "bool[]";
303
+ readonly name: "_successes";
304
+ readonly type: "bool[]";
305
+ }, {
306
+ readonly internalType: "bytes[]";
307
+ readonly name: "_results";
308
+ readonly type: "bytes[]";
309
+ }];
310
+ readonly stateMutability: "payable";
311
+ readonly type: "function";
312
+ }, {
313
+ readonly inputs: readonly [{
314
+ readonly internalType: "address";
315
+ readonly name: "_wallet";
316
+ readonly type: "address";
317
+ }, {
318
+ readonly internalType: "uint256";
319
+ readonly name: "_threshold";
320
+ readonly type: "uint256";
321
+ }, {
322
+ readonly components: readonly [{
323
+ readonly internalType: "uint256";
324
+ readonly name: "weight";
325
+ readonly type: "uint256";
326
+ }, {
327
+ readonly internalType: "address";
328
+ readonly name: "signer";
329
+ readonly type: "address";
330
+ }];
331
+ readonly internalType: "struct RequireUtils.Member[]";
332
+ readonly name: "_members";
333
+ readonly type: "tuple[]";
334
+ }, {
335
+ readonly internalType: "bool";
336
+ readonly name: "_index";
337
+ readonly type: "bool";
338
+ }];
339
+ readonly name: "publishConfig";
340
+ readonly outputs: readonly [];
341
+ readonly stateMutability: "nonpayable";
342
+ readonly type: "function";
343
+ }, {
344
+ readonly inputs: readonly [{
345
+ readonly internalType: "address";
346
+ readonly name: "_wallet";
347
+ readonly type: "address";
348
+ }, {
349
+ readonly internalType: "bytes32";
350
+ readonly name: "_hash";
351
+ readonly type: "bytes32";
352
+ }, {
353
+ readonly internalType: "uint256";
354
+ readonly name: "_sizeMembers";
355
+ readonly type: "uint256";
356
+ }, {
357
+ readonly internalType: "bytes";
358
+ readonly name: "_signature";
359
+ readonly type: "bytes";
360
+ }, {
361
+ readonly internalType: "bool";
362
+ readonly name: "_index";
363
+ readonly type: "bool";
364
+ }];
365
+ readonly name: "publishInitialSigners";
366
+ readonly outputs: readonly [];
367
+ readonly stateMutability: "nonpayable";
368
+ readonly type: "function";
369
+ }, {
370
+ readonly inputs: readonly [{
371
+ readonly internalType: "address";
372
+ readonly name: "_wallet";
373
+ readonly type: "address";
374
+ }, {
375
+ readonly internalType: "uint256";
376
+ readonly name: "_nonce";
377
+ readonly type: "uint256";
378
+ }];
379
+ readonly name: "requireMinNonce";
380
+ readonly outputs: readonly [];
381
+ readonly stateMutability: "view";
382
+ readonly type: "function";
383
+ }, {
384
+ readonly inputs: readonly [{
385
+ readonly internalType: "uint256";
386
+ readonly name: "_expiration";
387
+ readonly type: "uint256";
388
+ }];
389
+ readonly name: "requireNonExpired";
390
+ readonly outputs: readonly [];
391
+ readonly stateMutability: "view";
392
+ readonly type: "function";
393
+ }];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xsequence/abi",
3
- "version": "2.3.8",
3
+ "version": "2.3.10",
4
4
  "description": "abi sub-package for Sequence",
5
5
  "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/abi",
6
6
  "source": "src/index.ts",
package/src/index.ts CHANGED
@@ -1 +1,23 @@
1
+ export { abi as erc5719Abi } from './wallet/erc5719'
2
+ export { abi as erc1271Abi } from './wallet/erc1271'
3
+ export { abi as erc6492Abi } from './wallet/erc6492'
4
+ export { abi as factoryAbi } from './wallet/factory'
5
+ export { abi as mainModuleAbi } from './wallet/mainModule'
6
+ export { abi as mainModuleUpgradableAbi } from './wallet/mainModuleUpgradable'
7
+ export { abi as moduleHooksAbi } from './wallet/moduleHooks'
8
+ export { abi as sequenceUtilsAbi } from './wallet/sequenceUtils'
9
+ export { abi as requireFreshSignerAbi } from './wallet/libs/requireFreshSigners'
10
+ export { abi as walletProxyHookAbi } from './wallet/walletProxyHook'
11
+
1
12
  export { walletContracts } from './wallet'
13
+
14
+ export { ERC1155_ABI } from './tokens/erc1155'
15
+ export { ERC20_ABI } from './tokens/erc20'
16
+ export { ERC6909_ABI } from './tokens/erc6909'
17
+ export { ERC721_ABI } from './tokens/erc721'
18
+
19
+ export { ERC1155_SALE_ABI } from './sale/erc1155Sale'
20
+ export { ERC721_SALE_ABI } from './sale/erc721Sale'
21
+
22
+ export { ERC1155_SALE_ITEMS_ABI } from './saleItems/erc1155SaleItems'
23
+ export { ERC721_SALE_ITEMS_ABI } from './saleItems/erc721SaleItems'