@0xsequence/abi 2.3.35 → 3.0.0-beta.2
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/.turbo/turbo-build.log +5 -0
- package/CHANGELOG.md +2097 -0
- package/LICENSE +0 -17
- package/README.md +1 -2
- package/dist/index.d.ts +20 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +41 -0
- package/dist/{declarations/src/sale → sale}/erc1155Sale.d.ts +1 -0
- package/dist/sale/erc1155Sale.d.ts.map +1 -0
- package/dist/sale/erc1155Sale.js +355 -0
- package/dist/{declarations/src/sale → sale}/erc721Sale.d.ts +1 -0
- package/dist/sale/erc721Sale.d.ts.map +1 -0
- package/dist/sale/erc721Sale.js +355 -0
- package/dist/{declarations/src/tokens → tokens}/erc1155.d.ts +1 -0
- package/dist/tokens/erc1155.d.ts.map +1 -0
- package/dist/tokens/erc1155.js +425 -0
- package/dist/{declarations/src/saleItems/erc1155SaleItems.d.ts → tokens/erc1155Items.d.ts} +2 -1
- package/dist/tokens/erc1155Items.d.ts.map +1 -0
- package/dist/tokens/erc1155Items.js +381 -0
- package/dist/{declarations/src/tokens → tokens}/erc20.d.ts +1 -0
- package/dist/tokens/erc20.d.ts.map +1 -0
- package/dist/tokens/erc20.js +319 -0
- package/dist/{declarations/src/tokens → tokens}/erc6909.d.ts +1 -0
- package/dist/tokens/erc6909.d.ts.map +1 -0
- package/dist/tokens/erc6909.js +407 -0
- package/dist/{declarations/src/tokens → tokens}/erc721.d.ts +1 -0
- package/dist/tokens/erc721.d.ts.map +1 -0
- package/dist/tokens/erc721.js +444 -0
- package/dist/{declarations/src/saleItems/erc721SaleItems.d.ts → tokens/erc721Items.d.ts} +2 -1
- package/dist/tokens/erc721Items.d.ts.map +1 -0
- package/dist/tokens/erc721Items.js +444 -0
- package/dist/{declarations/src/wallet → wallet}/erc1271.d.ts +1 -0
- package/dist/wallet/erc1271.d.ts.map +1 -0
- package/dist/wallet/erc1271.js +28 -0
- package/dist/{declarations/src/wallet → wallet}/erc5719.d.ts +1 -0
- package/dist/wallet/erc5719.d.ts.map +1 -0
- package/dist/wallet/erc5719.js +22 -0
- package/dist/{declarations/src/wallet → wallet}/erc6492.d.ts +1 -0
- package/dist/wallet/erc6492.d.ts.map +1 -0
- package/dist/wallet/erc6492.js +64 -0
- package/dist/{declarations/src/wallet → wallet}/factory.d.ts +1 -0
- package/dist/wallet/factory.d.ts.map +1 -0
- package/dist/wallet/factory.js +21 -0
- package/dist/{declarations/src/wallet → wallet}/index.d.ts +11 -10
- package/dist/wallet/index.d.ts.map +1 -0
- package/dist/wallet/index.js +61 -0
- package/dist/{declarations/src/wallet → wallet}/libs/requireFreshSigners.d.ts +1 -0
- package/dist/wallet/libs/requireFreshSigners.d.ts.map +1 -0
- package/dist/wallet/libs/requireFreshSigners.js +18 -0
- package/dist/{declarations/src/wallet → wallet}/mainModule.d.ts +1 -0
- package/dist/wallet/mainModule.d.ts.map +1 -0
- package/dist/wallet/mainModule.js +161 -0
- package/dist/{declarations/src/wallet → wallet}/mainModuleUpgradable.d.ts +1 -0
- package/dist/wallet/mainModuleUpgradable.d.ts.map +1 -0
- package/dist/wallet/mainModuleUpgradable.js +31 -0
- package/dist/{declarations/src/wallet → wallet}/moduleHooks.d.ts +1 -0
- package/dist/wallet/moduleHooks.d.ts.map +1 -0
- package/dist/wallet/moduleHooks.js +251 -0
- package/dist/{declarations/src/wallet → wallet}/sequenceUtils.d.ts +1 -0
- package/dist/wallet/sequenceUtils.d.ts.map +1 -0
- package/dist/wallet/sequenceUtils.js +519 -0
- package/dist/{declarations/src/wallet → wallet}/walletProxyHook.d.ts +1 -0
- package/dist/wallet/walletProxyHook.d.ts.map +1 -0
- package/dist/wallet/walletProxyHook.js +12 -0
- package/package.json +19 -13
- package/src/index.ts +2 -3
- package/src/sale/erc1155Sale.ts +67 -67
- package/src/sale/erc721Sale.ts +67 -67
- package/src/tokens/erc1155.ts +97 -97
- package/src/{saleItems/erc1155SaleItems.ts → tokens/erc1155Items.ts} +69 -68
- package/src/tokens/erc20.ts +76 -76
- package/src/tokens/erc6909.ts +95 -95
- package/src/tokens/erc721.ts +105 -105
- package/src/{saleItems/erc721SaleItems.ts → tokens/erc721Items.ts} +79 -78
- package/src/wallet/erc1271.ts +8 -8
- package/src/wallet/erc5719.ts +6 -6
- package/src/wallet/erc6492.ts +11 -11
- package/src/wallet/factory.ts +5 -5
- package/src/wallet/index.ts +1 -1
- package/src/wallet/libs/requireFreshSigners.ts +4 -4
- package/src/wallet/mainModule.ts +41 -41
- package/src/wallet/mainModuleUpgradable.ts +7 -7
- package/src/wallet/moduleHooks.ts +60 -60
- package/src/wallet/sequenceUtils.ts +123 -123
- package/src/wallet/walletProxyHook.ts +2 -2
- package/tsconfig.json +10 -0
- package/dist/0xsequence-abi.cjs.d.ts +0 -2
- package/dist/0xsequence-abi.cjs.dev.js +0 -4638
- package/dist/0xsequence-abi.cjs.js +0 -7
- package/dist/0xsequence-abi.cjs.prod.js +0 -4638
- package/dist/0xsequence-abi.esm.js +0 -4616
- package/dist/declarations/src/index.d.ts +0 -19
package/src/tokens/erc20.ts
CHANGED
|
@@ -3,93 +3,93 @@ export const ERC20_ABI = [
|
|
|
3
3
|
{
|
|
4
4
|
inputs: [],
|
|
5
5
|
stateMutability: 'nonpayable',
|
|
6
|
-
type: 'constructor'
|
|
6
|
+
type: 'constructor',
|
|
7
7
|
},
|
|
8
8
|
{
|
|
9
9
|
inputs: [
|
|
10
10
|
{
|
|
11
11
|
internalType: 'address',
|
|
12
12
|
name: 'spender',
|
|
13
|
-
type: 'address'
|
|
13
|
+
type: 'address',
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
internalType: 'uint256',
|
|
17
17
|
name: 'allowance',
|
|
18
|
-
type: 'uint256'
|
|
18
|
+
type: 'uint256',
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
internalType: 'uint256',
|
|
22
22
|
name: 'needed',
|
|
23
|
-
type: 'uint256'
|
|
24
|
-
}
|
|
23
|
+
type: 'uint256',
|
|
24
|
+
},
|
|
25
25
|
],
|
|
26
26
|
name: 'ERC20InsufficientAllowance',
|
|
27
|
-
type: 'error'
|
|
27
|
+
type: 'error',
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
inputs: [
|
|
31
31
|
{
|
|
32
32
|
internalType: 'address',
|
|
33
33
|
name: 'sender',
|
|
34
|
-
type: 'address'
|
|
34
|
+
type: 'address',
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
internalType: 'uint256',
|
|
38
38
|
name: 'balance',
|
|
39
|
-
type: 'uint256'
|
|
39
|
+
type: 'uint256',
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
internalType: 'uint256',
|
|
43
43
|
name: 'needed',
|
|
44
|
-
type: 'uint256'
|
|
45
|
-
}
|
|
44
|
+
type: 'uint256',
|
|
45
|
+
},
|
|
46
46
|
],
|
|
47
47
|
name: 'ERC20InsufficientBalance',
|
|
48
|
-
type: 'error'
|
|
48
|
+
type: 'error',
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
inputs: [
|
|
52
52
|
{
|
|
53
53
|
internalType: 'address',
|
|
54
54
|
name: 'approver',
|
|
55
|
-
type: 'address'
|
|
56
|
-
}
|
|
55
|
+
type: 'address',
|
|
56
|
+
},
|
|
57
57
|
],
|
|
58
58
|
name: 'ERC20InvalidApprover',
|
|
59
|
-
type: 'error'
|
|
59
|
+
type: 'error',
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
62
|
inputs: [
|
|
63
63
|
{
|
|
64
64
|
internalType: 'address',
|
|
65
65
|
name: 'receiver',
|
|
66
|
-
type: 'address'
|
|
67
|
-
}
|
|
66
|
+
type: 'address',
|
|
67
|
+
},
|
|
68
68
|
],
|
|
69
69
|
name: 'ERC20InvalidReceiver',
|
|
70
|
-
type: 'error'
|
|
70
|
+
type: 'error',
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
73
|
inputs: [
|
|
74
74
|
{
|
|
75
75
|
internalType: 'address',
|
|
76
76
|
name: 'sender',
|
|
77
|
-
type: 'address'
|
|
78
|
-
}
|
|
77
|
+
type: 'address',
|
|
78
|
+
},
|
|
79
79
|
],
|
|
80
80
|
name: 'ERC20InvalidSender',
|
|
81
|
-
type: 'error'
|
|
81
|
+
type: 'error',
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
84
|
inputs: [
|
|
85
85
|
{
|
|
86
86
|
internalType: 'address',
|
|
87
87
|
name: 'spender',
|
|
88
|
-
type: 'address'
|
|
89
|
-
}
|
|
88
|
+
type: 'address',
|
|
89
|
+
},
|
|
90
90
|
],
|
|
91
91
|
name: 'ERC20InvalidSpender',
|
|
92
|
-
type: 'error'
|
|
92
|
+
type: 'error',
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
95
|
anonymous: false,
|
|
@@ -98,23 +98,23 @@ export const ERC20_ABI = [
|
|
|
98
98
|
indexed: true,
|
|
99
99
|
internalType: 'address',
|
|
100
100
|
name: 'owner',
|
|
101
|
-
type: 'address'
|
|
101
|
+
type: 'address',
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
104
|
indexed: true,
|
|
105
105
|
internalType: 'address',
|
|
106
106
|
name: 'spender',
|
|
107
|
-
type: 'address'
|
|
107
|
+
type: 'address',
|
|
108
108
|
},
|
|
109
109
|
{
|
|
110
110
|
indexed: false,
|
|
111
111
|
internalType: 'uint256',
|
|
112
112
|
name: 'value',
|
|
113
|
-
type: 'uint256'
|
|
114
|
-
}
|
|
113
|
+
type: 'uint256',
|
|
114
|
+
},
|
|
115
115
|
],
|
|
116
116
|
name: 'Approval',
|
|
117
|
-
type: 'event'
|
|
117
|
+
type: 'event',
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
120
|
anonymous: false,
|
|
@@ -123,90 +123,90 @@ export const ERC20_ABI = [
|
|
|
123
123
|
indexed: true,
|
|
124
124
|
internalType: 'address',
|
|
125
125
|
name: 'from',
|
|
126
|
-
type: 'address'
|
|
126
|
+
type: 'address',
|
|
127
127
|
},
|
|
128
128
|
{
|
|
129
129
|
indexed: true,
|
|
130
130
|
internalType: 'address',
|
|
131
131
|
name: 'to',
|
|
132
|
-
type: 'address'
|
|
132
|
+
type: 'address',
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
135
|
indexed: false,
|
|
136
136
|
internalType: 'uint256',
|
|
137
137
|
name: 'value',
|
|
138
|
-
type: 'uint256'
|
|
139
|
-
}
|
|
138
|
+
type: 'uint256',
|
|
139
|
+
},
|
|
140
140
|
],
|
|
141
141
|
name: 'Transfer',
|
|
142
|
-
type: 'event'
|
|
142
|
+
type: 'event',
|
|
143
143
|
},
|
|
144
144
|
{
|
|
145
145
|
inputs: [
|
|
146
146
|
{
|
|
147
147
|
internalType: 'address',
|
|
148
148
|
name: 'owner',
|
|
149
|
-
type: 'address'
|
|
149
|
+
type: 'address',
|
|
150
150
|
},
|
|
151
151
|
{
|
|
152
152
|
internalType: 'address',
|
|
153
153
|
name: 'spender',
|
|
154
|
-
type: 'address'
|
|
155
|
-
}
|
|
154
|
+
type: 'address',
|
|
155
|
+
},
|
|
156
156
|
],
|
|
157
157
|
name: 'allowance',
|
|
158
158
|
outputs: [
|
|
159
159
|
{
|
|
160
160
|
internalType: 'uint256',
|
|
161
161
|
name: '',
|
|
162
|
-
type: 'uint256'
|
|
163
|
-
}
|
|
162
|
+
type: 'uint256',
|
|
163
|
+
},
|
|
164
164
|
],
|
|
165
165
|
stateMutability: 'view',
|
|
166
|
-
type: 'function'
|
|
166
|
+
type: 'function',
|
|
167
167
|
},
|
|
168
168
|
{
|
|
169
169
|
inputs: [
|
|
170
170
|
{
|
|
171
171
|
internalType: 'address',
|
|
172
172
|
name: 'spender',
|
|
173
|
-
type: 'address'
|
|
173
|
+
type: 'address',
|
|
174
174
|
},
|
|
175
175
|
{
|
|
176
176
|
internalType: 'uint256',
|
|
177
177
|
name: 'value',
|
|
178
|
-
type: 'uint256'
|
|
179
|
-
}
|
|
178
|
+
type: 'uint256',
|
|
179
|
+
},
|
|
180
180
|
],
|
|
181
181
|
name: 'approve',
|
|
182
182
|
outputs: [
|
|
183
183
|
{
|
|
184
184
|
internalType: 'bool',
|
|
185
185
|
name: '',
|
|
186
|
-
type: 'bool'
|
|
187
|
-
}
|
|
186
|
+
type: 'bool',
|
|
187
|
+
},
|
|
188
188
|
],
|
|
189
189
|
stateMutability: 'nonpayable',
|
|
190
|
-
type: 'function'
|
|
190
|
+
type: 'function',
|
|
191
191
|
},
|
|
192
192
|
{
|
|
193
193
|
inputs: [
|
|
194
194
|
{
|
|
195
195
|
internalType: 'address',
|
|
196
196
|
name: 'account',
|
|
197
|
-
type: 'address'
|
|
198
|
-
}
|
|
197
|
+
type: 'address',
|
|
198
|
+
},
|
|
199
199
|
],
|
|
200
200
|
name: 'balanceOf',
|
|
201
201
|
outputs: [
|
|
202
202
|
{
|
|
203
203
|
internalType: 'uint256',
|
|
204
204
|
name: '',
|
|
205
|
-
type: 'uint256'
|
|
206
|
-
}
|
|
205
|
+
type: 'uint256',
|
|
206
|
+
},
|
|
207
207
|
],
|
|
208
208
|
stateMutability: 'view',
|
|
209
|
-
type: 'function'
|
|
209
|
+
type: 'function',
|
|
210
210
|
},
|
|
211
211
|
{
|
|
212
212
|
inputs: [],
|
|
@@ -215,11 +215,11 @@ export const ERC20_ABI = [
|
|
|
215
215
|
{
|
|
216
216
|
internalType: 'uint8',
|
|
217
217
|
name: '',
|
|
218
|
-
type: 'uint8'
|
|
219
|
-
}
|
|
218
|
+
type: 'uint8',
|
|
219
|
+
},
|
|
220
220
|
],
|
|
221
221
|
stateMutability: 'view',
|
|
222
|
-
type: 'function'
|
|
222
|
+
type: 'function',
|
|
223
223
|
},
|
|
224
224
|
{
|
|
225
225
|
inputs: [],
|
|
@@ -228,11 +228,11 @@ export const ERC20_ABI = [
|
|
|
228
228
|
{
|
|
229
229
|
internalType: 'string',
|
|
230
230
|
name: '',
|
|
231
|
-
type: 'string'
|
|
232
|
-
}
|
|
231
|
+
type: 'string',
|
|
232
|
+
},
|
|
233
233
|
],
|
|
234
234
|
stateMutability: 'view',
|
|
235
|
-
type: 'function'
|
|
235
|
+
type: 'function',
|
|
236
236
|
},
|
|
237
237
|
{
|
|
238
238
|
inputs: [],
|
|
@@ -241,11 +241,11 @@ export const ERC20_ABI = [
|
|
|
241
241
|
{
|
|
242
242
|
internalType: 'string',
|
|
243
243
|
name: '',
|
|
244
|
-
type: 'string'
|
|
245
|
-
}
|
|
244
|
+
type: 'string',
|
|
245
|
+
},
|
|
246
246
|
],
|
|
247
247
|
stateMutability: 'view',
|
|
248
|
-
type: 'function'
|
|
248
|
+
type: 'function',
|
|
249
249
|
},
|
|
250
250
|
{
|
|
251
251
|
inputs: [],
|
|
@@ -254,63 +254,63 @@ export const ERC20_ABI = [
|
|
|
254
254
|
{
|
|
255
255
|
internalType: 'uint256',
|
|
256
256
|
name: '',
|
|
257
|
-
type: 'uint256'
|
|
258
|
-
}
|
|
257
|
+
type: 'uint256',
|
|
258
|
+
},
|
|
259
259
|
],
|
|
260
260
|
stateMutability: 'view',
|
|
261
|
-
type: 'function'
|
|
261
|
+
type: 'function',
|
|
262
262
|
},
|
|
263
263
|
{
|
|
264
264
|
inputs: [
|
|
265
265
|
{
|
|
266
266
|
internalType: 'address',
|
|
267
267
|
name: 'to',
|
|
268
|
-
type: 'address'
|
|
268
|
+
type: 'address',
|
|
269
269
|
},
|
|
270
270
|
{
|
|
271
271
|
internalType: 'uint256',
|
|
272
272
|
name: 'value',
|
|
273
|
-
type: 'uint256'
|
|
274
|
-
}
|
|
273
|
+
type: 'uint256',
|
|
274
|
+
},
|
|
275
275
|
],
|
|
276
276
|
name: 'transfer',
|
|
277
277
|
outputs: [
|
|
278
278
|
{
|
|
279
279
|
internalType: 'bool',
|
|
280
280
|
name: '',
|
|
281
|
-
type: 'bool'
|
|
282
|
-
}
|
|
281
|
+
type: 'bool',
|
|
282
|
+
},
|
|
283
283
|
],
|
|
284
284
|
stateMutability: 'nonpayable',
|
|
285
|
-
type: 'function'
|
|
285
|
+
type: 'function',
|
|
286
286
|
},
|
|
287
287
|
{
|
|
288
288
|
inputs: [
|
|
289
289
|
{
|
|
290
290
|
internalType: 'address',
|
|
291
291
|
name: 'from',
|
|
292
|
-
type: 'address'
|
|
292
|
+
type: 'address',
|
|
293
293
|
},
|
|
294
294
|
{
|
|
295
295
|
internalType: 'address',
|
|
296
296
|
name: 'to',
|
|
297
|
-
type: 'address'
|
|
297
|
+
type: 'address',
|
|
298
298
|
},
|
|
299
299
|
{
|
|
300
300
|
internalType: 'uint256',
|
|
301
301
|
name: 'value',
|
|
302
|
-
type: 'uint256'
|
|
303
|
-
}
|
|
302
|
+
type: 'uint256',
|
|
303
|
+
},
|
|
304
304
|
],
|
|
305
305
|
name: 'transferFrom',
|
|
306
306
|
outputs: [
|
|
307
307
|
{
|
|
308
308
|
internalType: 'bool',
|
|
309
309
|
name: '',
|
|
310
|
-
type: 'bool'
|
|
311
|
-
}
|
|
310
|
+
type: 'bool',
|
|
311
|
+
},
|
|
312
312
|
],
|
|
313
313
|
stateMutability: 'nonpayable',
|
|
314
|
-
type: 'function'
|
|
315
|
-
}
|
|
314
|
+
type: 'function',
|
|
315
|
+
},
|
|
316
316
|
] as const
|