@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
|
@@ -1,49 +1,50 @@
|
|
|
1
|
-
|
|
1
|
+
//An ERC 721 token contract with batchMint support, to make it compatible with Sequence Sales contracts (../sale/erc721Sale.ts)
|
|
2
|
+
export const ERC721_ITEMS_ABI = [
|
|
2
3
|
{ type: 'constructor', inputs: [], stateMutability: 'nonpayable' },
|
|
3
4
|
{
|
|
4
5
|
type: 'function',
|
|
5
6
|
name: 'DEFAULT_ADMIN_ROLE',
|
|
6
7
|
inputs: [],
|
|
7
8
|
outputs: [{ name: '', type: 'bytes32', internalType: 'bytes32' }],
|
|
8
|
-
stateMutability: 'view'
|
|
9
|
+
stateMutability: 'view',
|
|
9
10
|
},
|
|
10
11
|
{
|
|
11
12
|
type: 'function',
|
|
12
13
|
name: 'approve',
|
|
13
14
|
inputs: [
|
|
14
15
|
{ name: 'to', type: 'address', internalType: 'address' },
|
|
15
|
-
{ name: 'tokenId', type: 'uint256', internalType: 'uint256' }
|
|
16
|
+
{ name: 'tokenId', type: 'uint256', internalType: 'uint256' },
|
|
16
17
|
],
|
|
17
18
|
outputs: [],
|
|
18
|
-
stateMutability: 'payable'
|
|
19
|
+
stateMutability: 'payable',
|
|
19
20
|
},
|
|
20
21
|
{
|
|
21
22
|
type: 'function',
|
|
22
23
|
name: 'balanceOf',
|
|
23
24
|
inputs: [{ name: 'owner', type: 'address', internalType: 'address' }],
|
|
24
25
|
outputs: [{ name: '', type: 'uint256', internalType: 'uint256' }],
|
|
25
|
-
stateMutability: 'view'
|
|
26
|
+
stateMutability: 'view',
|
|
26
27
|
},
|
|
27
28
|
{
|
|
28
29
|
type: 'function',
|
|
29
30
|
name: 'batchBurn',
|
|
30
31
|
inputs: [{ name: 'tokenIds', type: 'uint256[]', internalType: 'uint256[]' }],
|
|
31
32
|
outputs: [],
|
|
32
|
-
stateMutability: 'nonpayable'
|
|
33
|
+
stateMutability: 'nonpayable',
|
|
33
34
|
},
|
|
34
35
|
{
|
|
35
36
|
type: 'function',
|
|
36
37
|
name: 'burn',
|
|
37
38
|
inputs: [{ name: 'tokenId', type: 'uint256', internalType: 'uint256' }],
|
|
38
39
|
outputs: [],
|
|
39
|
-
stateMutability: 'nonpayable'
|
|
40
|
+
stateMutability: 'nonpayable',
|
|
40
41
|
},
|
|
41
42
|
{
|
|
42
43
|
type: 'function',
|
|
43
44
|
name: 'contractURI',
|
|
44
45
|
inputs: [],
|
|
45
46
|
outputs: [{ name: '', type: 'string', internalType: 'string' }],
|
|
46
|
-
stateMutability: 'view'
|
|
47
|
+
stateMutability: 'view',
|
|
47
48
|
},
|
|
48
49
|
{
|
|
49
50
|
type: 'function',
|
|
@@ -58,11 +59,11 @@ export const ERC721_SALE_ITEMS_ABI = [
|
|
|
58
59
|
{ name: 'addr', type: 'address', internalType: 'address' },
|
|
59
60
|
{ name: 'startTimestamp', type: 'uint64', internalType: 'uint64' },
|
|
60
61
|
{ name: 'burned', type: 'bool', internalType: 'bool' },
|
|
61
|
-
{ name: 'extraData', type: 'uint24', internalType: 'uint24' }
|
|
62
|
-
]
|
|
63
|
-
}
|
|
62
|
+
{ name: 'extraData', type: 'uint24', internalType: 'uint24' },
|
|
63
|
+
],
|
|
64
|
+
},
|
|
64
65
|
],
|
|
65
|
-
stateMutability: 'view'
|
|
66
|
+
stateMutability: 'view',
|
|
66
67
|
},
|
|
67
68
|
{
|
|
68
69
|
type: 'function',
|
|
@@ -77,62 +78,62 @@ export const ERC721_SALE_ITEMS_ABI = [
|
|
|
77
78
|
{ name: 'addr', type: 'address', internalType: 'address' },
|
|
78
79
|
{ name: 'startTimestamp', type: 'uint64', internalType: 'uint64' },
|
|
79
80
|
{ name: 'burned', type: 'bool', internalType: 'bool' },
|
|
80
|
-
{ name: 'extraData', type: 'uint24', internalType: 'uint24' }
|
|
81
|
-
]
|
|
82
|
-
}
|
|
81
|
+
{ name: 'extraData', type: 'uint24', internalType: 'uint24' },
|
|
82
|
+
],
|
|
83
|
+
},
|
|
83
84
|
],
|
|
84
|
-
stateMutability: 'view'
|
|
85
|
+
stateMutability: 'view',
|
|
85
86
|
},
|
|
86
87
|
{
|
|
87
88
|
type: 'function',
|
|
88
89
|
name: 'getApproved',
|
|
89
90
|
inputs: [{ name: 'tokenId', type: 'uint256', internalType: 'uint256' }],
|
|
90
91
|
outputs: [{ name: '', type: 'address', internalType: 'address' }],
|
|
91
|
-
stateMutability: 'view'
|
|
92
|
+
stateMutability: 'view',
|
|
92
93
|
},
|
|
93
94
|
{
|
|
94
95
|
type: 'function',
|
|
95
96
|
name: 'getRoleAdmin',
|
|
96
97
|
inputs: [{ name: 'role', type: 'bytes32', internalType: 'bytes32' }],
|
|
97
98
|
outputs: [{ name: '', type: 'bytes32', internalType: 'bytes32' }],
|
|
98
|
-
stateMutability: 'view'
|
|
99
|
+
stateMutability: 'view',
|
|
99
100
|
},
|
|
100
101
|
{
|
|
101
102
|
type: 'function',
|
|
102
103
|
name: 'getRoleMember',
|
|
103
104
|
inputs: [
|
|
104
105
|
{ name: 'role', type: 'bytes32', internalType: 'bytes32' },
|
|
105
|
-
{ name: 'index', type: 'uint256', internalType: 'uint256' }
|
|
106
|
+
{ name: 'index', type: 'uint256', internalType: 'uint256' },
|
|
106
107
|
],
|
|
107
108
|
outputs: [{ name: '', type: 'address', internalType: 'address' }],
|
|
108
|
-
stateMutability: 'view'
|
|
109
|
+
stateMutability: 'view',
|
|
109
110
|
},
|
|
110
111
|
{
|
|
111
112
|
type: 'function',
|
|
112
113
|
name: 'getRoleMemberCount',
|
|
113
114
|
inputs: [{ name: 'role', type: 'bytes32', internalType: 'bytes32' }],
|
|
114
115
|
outputs: [{ name: '', type: 'uint256', internalType: 'uint256' }],
|
|
115
|
-
stateMutability: 'view'
|
|
116
|
+
stateMutability: 'view',
|
|
116
117
|
},
|
|
117
118
|
{
|
|
118
119
|
type: 'function',
|
|
119
120
|
name: 'grantRole',
|
|
120
121
|
inputs: [
|
|
121
122
|
{ name: 'role', type: 'bytes32', internalType: 'bytes32' },
|
|
122
|
-
{ name: 'account', type: 'address', internalType: 'address' }
|
|
123
|
+
{ name: 'account', type: 'address', internalType: 'address' },
|
|
123
124
|
],
|
|
124
125
|
outputs: [],
|
|
125
|
-
stateMutability: 'nonpayable'
|
|
126
|
+
stateMutability: 'nonpayable',
|
|
126
127
|
},
|
|
127
128
|
{
|
|
128
129
|
type: 'function',
|
|
129
130
|
name: 'hasRole',
|
|
130
131
|
inputs: [
|
|
131
132
|
{ name: 'role', type: 'bytes32', internalType: 'bytes32' },
|
|
132
|
-
{ name: 'account', type: 'address', internalType: 'address' }
|
|
133
|
+
{ name: 'account', type: 'address', internalType: 'address' },
|
|
133
134
|
],
|
|
134
135
|
outputs: [{ name: '', type: 'bool', internalType: 'bool' }],
|
|
135
|
-
stateMutability: 'view'
|
|
136
|
+
stateMutability: 'view',
|
|
136
137
|
},
|
|
137
138
|
{
|
|
138
139
|
type: 'function',
|
|
@@ -144,77 +145,77 @@ export const ERC721_SALE_ITEMS_ABI = [
|
|
|
144
145
|
{ name: 'tokenBaseURI', type: 'string', internalType: 'string' },
|
|
145
146
|
{ name: 'tokenContractURI', type: 'string', internalType: 'string' },
|
|
146
147
|
{ name: 'royaltyReceiver', type: 'address', internalType: 'address' },
|
|
147
|
-
{ name: 'royaltyFeeNumerator', type: 'uint96', internalType: 'uint96' }
|
|
148
|
+
{ name: 'royaltyFeeNumerator', type: 'uint96', internalType: 'uint96' },
|
|
148
149
|
],
|
|
149
150
|
outputs: [],
|
|
150
|
-
stateMutability: 'nonpayable'
|
|
151
|
+
stateMutability: 'nonpayable',
|
|
151
152
|
},
|
|
152
153
|
{
|
|
153
154
|
type: 'function',
|
|
154
155
|
name: 'isApprovedForAll',
|
|
155
156
|
inputs: [
|
|
156
157
|
{ name: 'owner', type: 'address', internalType: 'address' },
|
|
157
|
-
{ name: 'operator', type: 'address', internalType: 'address' }
|
|
158
|
+
{ name: 'operator', type: 'address', internalType: 'address' },
|
|
158
159
|
],
|
|
159
160
|
outputs: [{ name: '', type: 'bool', internalType: 'bool' }],
|
|
160
|
-
stateMutability: 'view'
|
|
161
|
+
stateMutability: 'view',
|
|
161
162
|
},
|
|
162
163
|
{
|
|
163
164
|
type: 'function',
|
|
164
165
|
name: 'mint',
|
|
165
166
|
inputs: [
|
|
166
167
|
{ name: 'to', type: 'address', internalType: 'address' },
|
|
167
|
-
{ name: 'amount', type: 'uint256', internalType: 'uint256' }
|
|
168
|
+
{ name: 'amount', type: 'uint256', internalType: 'uint256' },
|
|
168
169
|
],
|
|
169
170
|
outputs: [],
|
|
170
|
-
stateMutability: 'nonpayable'
|
|
171
|
+
stateMutability: 'nonpayable',
|
|
171
172
|
},
|
|
172
173
|
{
|
|
173
174
|
type: 'function',
|
|
174
175
|
name: 'name',
|
|
175
176
|
inputs: [],
|
|
176
177
|
outputs: [{ name: '', type: 'string', internalType: 'string' }],
|
|
177
|
-
stateMutability: 'view'
|
|
178
|
+
stateMutability: 'view',
|
|
178
179
|
},
|
|
179
180
|
{
|
|
180
181
|
type: 'function',
|
|
181
182
|
name: 'ownerOf',
|
|
182
183
|
inputs: [{ name: 'tokenId', type: 'uint256', internalType: 'uint256' }],
|
|
183
184
|
outputs: [{ name: '', type: 'address', internalType: 'address' }],
|
|
184
|
-
stateMutability: 'view'
|
|
185
|
+
stateMutability: 'view',
|
|
185
186
|
},
|
|
186
187
|
{
|
|
187
188
|
type: 'function',
|
|
188
189
|
name: 'renounceRole',
|
|
189
190
|
inputs: [
|
|
190
191
|
{ name: 'role', type: 'bytes32', internalType: 'bytes32' },
|
|
191
|
-
{ name: 'account', type: 'address', internalType: 'address' }
|
|
192
|
+
{ name: 'account', type: 'address', internalType: 'address' },
|
|
192
193
|
],
|
|
193
194
|
outputs: [],
|
|
194
|
-
stateMutability: 'nonpayable'
|
|
195
|
+
stateMutability: 'nonpayable',
|
|
195
196
|
},
|
|
196
197
|
{
|
|
197
198
|
type: 'function',
|
|
198
199
|
name: 'revokeRole',
|
|
199
200
|
inputs: [
|
|
200
201
|
{ name: 'role', type: 'bytes32', internalType: 'bytes32' },
|
|
201
|
-
{ name: 'account', type: 'address', internalType: 'address' }
|
|
202
|
+
{ name: 'account', type: 'address', internalType: 'address' },
|
|
202
203
|
],
|
|
203
204
|
outputs: [],
|
|
204
|
-
stateMutability: 'nonpayable'
|
|
205
|
+
stateMutability: 'nonpayable',
|
|
205
206
|
},
|
|
206
207
|
{
|
|
207
208
|
type: 'function',
|
|
208
209
|
name: 'royaltyInfo',
|
|
209
210
|
inputs: [
|
|
210
211
|
{ name: 'tokenId', type: 'uint256', internalType: 'uint256' },
|
|
211
|
-
{ name: 'salePrice', type: 'uint256', internalType: 'uint256' }
|
|
212
|
+
{ name: 'salePrice', type: 'uint256', internalType: 'uint256' },
|
|
212
213
|
],
|
|
213
214
|
outputs: [
|
|
214
215
|
{ name: '', type: 'address', internalType: 'address' },
|
|
215
|
-
{ name: '', type: 'uint256', internalType: 'uint256' }
|
|
216
|
+
{ name: '', type: 'uint256', internalType: 'uint256' },
|
|
216
217
|
],
|
|
217
|
-
stateMutability: 'view'
|
|
218
|
+
stateMutability: 'view',
|
|
218
219
|
},
|
|
219
220
|
{
|
|
220
221
|
type: 'function',
|
|
@@ -222,10 +223,10 @@ export const ERC721_SALE_ITEMS_ABI = [
|
|
|
222
223
|
inputs: [
|
|
223
224
|
{ name: 'from', type: 'address', internalType: 'address' },
|
|
224
225
|
{ name: 'to', type: 'address', internalType: 'address' },
|
|
225
|
-
{ name: 'tokenId', type: 'uint256', internalType: 'uint256' }
|
|
226
|
+
{ name: 'tokenId', type: 'uint256', internalType: 'uint256' },
|
|
226
227
|
],
|
|
227
228
|
outputs: [],
|
|
228
|
-
stateMutability: 'payable'
|
|
229
|
+
stateMutability: 'payable',
|
|
229
230
|
},
|
|
230
231
|
{
|
|
231
232
|
type: 'function',
|
|
@@ -234,54 +235,54 @@ export const ERC721_SALE_ITEMS_ABI = [
|
|
|
234
235
|
{ name: 'from', type: 'address', internalType: 'address' },
|
|
235
236
|
{ name: 'to', type: 'address', internalType: 'address' },
|
|
236
237
|
{ name: 'tokenId', type: 'uint256', internalType: 'uint256' },
|
|
237
|
-
{ name: '_data', type: 'bytes', internalType: 'bytes' }
|
|
238
|
+
{ name: '_data', type: 'bytes', internalType: 'bytes' },
|
|
238
239
|
],
|
|
239
240
|
outputs: [],
|
|
240
|
-
stateMutability: 'payable'
|
|
241
|
+
stateMutability: 'payable',
|
|
241
242
|
},
|
|
242
243
|
{
|
|
243
244
|
type: 'function',
|
|
244
245
|
name: 'setApprovalForAll',
|
|
245
246
|
inputs: [
|
|
246
247
|
{ name: 'operator', type: 'address', internalType: 'address' },
|
|
247
|
-
{ name: 'approved', type: 'bool', internalType: 'bool' }
|
|
248
|
+
{ name: 'approved', type: 'bool', internalType: 'bool' },
|
|
248
249
|
],
|
|
249
250
|
outputs: [],
|
|
250
|
-
stateMutability: 'nonpayable'
|
|
251
|
+
stateMutability: 'nonpayable',
|
|
251
252
|
},
|
|
252
253
|
{
|
|
253
254
|
type: 'function',
|
|
254
255
|
name: 'setBaseMetadataURI',
|
|
255
256
|
inputs: [{ name: 'tokenBaseURI', type: 'string', internalType: 'string' }],
|
|
256
257
|
outputs: [],
|
|
257
|
-
stateMutability: 'nonpayable'
|
|
258
|
+
stateMutability: 'nonpayable',
|
|
258
259
|
},
|
|
259
260
|
{
|
|
260
261
|
type: 'function',
|
|
261
262
|
name: 'setContractURI',
|
|
262
263
|
inputs: [{ name: 'tokenContractURI', type: 'string', internalType: 'string' }],
|
|
263
264
|
outputs: [],
|
|
264
|
-
stateMutability: 'nonpayable'
|
|
265
|
+
stateMutability: 'nonpayable',
|
|
265
266
|
},
|
|
266
267
|
{
|
|
267
268
|
type: 'function',
|
|
268
269
|
name: 'setDefaultRoyalty',
|
|
269
270
|
inputs: [
|
|
270
271
|
{ name: 'receiver', type: 'address', internalType: 'address' },
|
|
271
|
-
{ name: 'feeNumerator', type: 'uint96', internalType: 'uint96' }
|
|
272
|
+
{ name: 'feeNumerator', type: 'uint96', internalType: 'uint96' },
|
|
272
273
|
],
|
|
273
274
|
outputs: [],
|
|
274
|
-
stateMutability: 'nonpayable'
|
|
275
|
+
stateMutability: 'nonpayable',
|
|
275
276
|
},
|
|
276
277
|
{
|
|
277
278
|
type: 'function',
|
|
278
279
|
name: 'setNameAndSymbol',
|
|
279
280
|
inputs: [
|
|
280
281
|
{ name: 'tokenName', type: 'string', internalType: 'string' },
|
|
281
|
-
{ name: 'tokenSymbol', type: 'string', internalType: 'string' }
|
|
282
|
+
{ name: 'tokenSymbol', type: 'string', internalType: 'string' },
|
|
282
283
|
],
|
|
283
284
|
outputs: [],
|
|
284
|
-
stateMutability: 'nonpayable'
|
|
285
|
+
stateMutability: 'nonpayable',
|
|
285
286
|
},
|
|
286
287
|
{
|
|
287
288
|
type: 'function',
|
|
@@ -289,38 +290,38 @@ export const ERC721_SALE_ITEMS_ABI = [
|
|
|
289
290
|
inputs: [
|
|
290
291
|
{ name: 'tokenId', type: 'uint256', internalType: 'uint256' },
|
|
291
292
|
{ name: 'receiver', type: 'address', internalType: 'address' },
|
|
292
|
-
{ name: 'feeNumerator', type: 'uint96', internalType: 'uint96' }
|
|
293
|
+
{ name: 'feeNumerator', type: 'uint96', internalType: 'uint96' },
|
|
293
294
|
],
|
|
294
295
|
outputs: [],
|
|
295
|
-
stateMutability: 'nonpayable'
|
|
296
|
+
stateMutability: 'nonpayable',
|
|
296
297
|
},
|
|
297
298
|
{
|
|
298
299
|
type: 'function',
|
|
299
300
|
name: 'supportsInterface',
|
|
300
301
|
inputs: [{ name: 'interfaceId', type: 'bytes4', internalType: 'bytes4' }],
|
|
301
302
|
outputs: [{ name: '', type: 'bool', internalType: 'bool' }],
|
|
302
|
-
stateMutability: 'view'
|
|
303
|
+
stateMutability: 'view',
|
|
303
304
|
},
|
|
304
305
|
{
|
|
305
306
|
type: 'function',
|
|
306
307
|
name: 'symbol',
|
|
307
308
|
inputs: [],
|
|
308
309
|
outputs: [{ name: '', type: 'string', internalType: 'string' }],
|
|
309
|
-
stateMutability: 'view'
|
|
310
|
+
stateMutability: 'view',
|
|
310
311
|
},
|
|
311
312
|
{
|
|
312
313
|
type: 'function',
|
|
313
314
|
name: 'tokenURI',
|
|
314
315
|
inputs: [{ name: 'tokenId', type: 'uint256', internalType: 'uint256' }],
|
|
315
316
|
outputs: [{ name: '', type: 'string', internalType: 'string' }],
|
|
316
|
-
stateMutability: 'view'
|
|
317
|
+
stateMutability: 'view',
|
|
317
318
|
},
|
|
318
319
|
{
|
|
319
320
|
type: 'function',
|
|
320
321
|
name: 'tokensOfOwner',
|
|
321
322
|
inputs: [{ name: 'owner', type: 'address', internalType: 'address' }],
|
|
322
323
|
outputs: [{ name: '', type: 'uint256[]', internalType: 'uint256[]' }],
|
|
323
|
-
stateMutability: 'view'
|
|
324
|
+
stateMutability: 'view',
|
|
324
325
|
},
|
|
325
326
|
{
|
|
326
327
|
type: 'function',
|
|
@@ -328,17 +329,17 @@ export const ERC721_SALE_ITEMS_ABI = [
|
|
|
328
329
|
inputs: [
|
|
329
330
|
{ name: 'owner', type: 'address', internalType: 'address' },
|
|
330
331
|
{ name: 'start', type: 'uint256', internalType: 'uint256' },
|
|
331
|
-
{ name: 'stop', type: 'uint256', internalType: 'uint256' }
|
|
332
|
+
{ name: 'stop', type: 'uint256', internalType: 'uint256' },
|
|
332
333
|
],
|
|
333
334
|
outputs: [{ name: '', type: 'uint256[]', internalType: 'uint256[]' }],
|
|
334
|
-
stateMutability: 'view'
|
|
335
|
+
stateMutability: 'view',
|
|
335
336
|
},
|
|
336
337
|
{
|
|
337
338
|
type: 'function',
|
|
338
339
|
name: 'totalSupply',
|
|
339
340
|
inputs: [],
|
|
340
341
|
outputs: [{ name: '', type: 'uint256', internalType: 'uint256' }],
|
|
341
|
-
stateMutability: 'view'
|
|
342
|
+
stateMutability: 'view',
|
|
342
343
|
},
|
|
343
344
|
{
|
|
344
345
|
type: 'function',
|
|
@@ -346,10 +347,10 @@ export const ERC721_SALE_ITEMS_ABI = [
|
|
|
346
347
|
inputs: [
|
|
347
348
|
{ name: 'from', type: 'address', internalType: 'address' },
|
|
348
349
|
{ name: 'to', type: 'address', internalType: 'address' },
|
|
349
|
-
{ name: 'tokenId', type: 'uint256', internalType: 'uint256' }
|
|
350
|
+
{ name: 'tokenId', type: 'uint256', internalType: 'uint256' },
|
|
350
351
|
],
|
|
351
352
|
outputs: [],
|
|
352
|
-
stateMutability: 'payable'
|
|
353
|
+
stateMutability: 'payable',
|
|
353
354
|
},
|
|
354
355
|
{
|
|
355
356
|
type: 'event',
|
|
@@ -357,9 +358,9 @@ export const ERC721_SALE_ITEMS_ABI = [
|
|
|
357
358
|
inputs: [
|
|
358
359
|
{ name: 'owner', type: 'address', indexed: true, internalType: 'address' },
|
|
359
360
|
{ name: 'approved', type: 'address', indexed: true, internalType: 'address' },
|
|
360
|
-
{ name: 'tokenId', type: 'uint256', indexed: true, internalType: 'uint256' }
|
|
361
|
+
{ name: 'tokenId', type: 'uint256', indexed: true, internalType: 'uint256' },
|
|
361
362
|
],
|
|
362
|
-
anonymous: false
|
|
363
|
+
anonymous: false,
|
|
363
364
|
},
|
|
364
365
|
{
|
|
365
366
|
type: 'event',
|
|
@@ -367,9 +368,9 @@ export const ERC721_SALE_ITEMS_ABI = [
|
|
|
367
368
|
inputs: [
|
|
368
369
|
{ name: 'owner', type: 'address', indexed: true, internalType: 'address' },
|
|
369
370
|
{ name: 'operator', type: 'address', indexed: true, internalType: 'address' },
|
|
370
|
-
{ name: 'approved', type: 'bool', indexed: false, internalType: 'bool' }
|
|
371
|
+
{ name: 'approved', type: 'bool', indexed: false, internalType: 'bool' },
|
|
371
372
|
],
|
|
372
|
-
anonymous: false
|
|
373
|
+
anonymous: false,
|
|
373
374
|
},
|
|
374
375
|
{
|
|
375
376
|
type: 'event',
|
|
@@ -378,9 +379,9 @@ export const ERC721_SALE_ITEMS_ABI = [
|
|
|
378
379
|
{ name: 'fromTokenId', type: 'uint256', indexed: true, internalType: 'uint256' },
|
|
379
380
|
{ name: 'toTokenId', type: 'uint256', indexed: false, internalType: 'uint256' },
|
|
380
381
|
{ name: 'from', type: 'address', indexed: true, internalType: 'address' },
|
|
381
|
-
{ name: 'to', type: 'address', indexed: true, internalType: 'address' }
|
|
382
|
+
{ name: 'to', type: 'address', indexed: true, internalType: 'address' },
|
|
382
383
|
],
|
|
383
|
-
anonymous: false
|
|
384
|
+
anonymous: false,
|
|
384
385
|
},
|
|
385
386
|
{
|
|
386
387
|
type: 'event',
|
|
@@ -388,9 +389,9 @@ export const ERC721_SALE_ITEMS_ABI = [
|
|
|
388
389
|
inputs: [
|
|
389
390
|
{ name: 'role', type: 'bytes32', indexed: true, internalType: 'bytes32' },
|
|
390
391
|
{ name: 'previousAdminRole', type: 'bytes32', indexed: true, internalType: 'bytes32' },
|
|
391
|
-
{ name: 'newAdminRole', type: 'bytes32', indexed: true, internalType: 'bytes32' }
|
|
392
|
+
{ name: 'newAdminRole', type: 'bytes32', indexed: true, internalType: 'bytes32' },
|
|
392
393
|
],
|
|
393
|
-
anonymous: false
|
|
394
|
+
anonymous: false,
|
|
394
395
|
},
|
|
395
396
|
{
|
|
396
397
|
type: 'event',
|
|
@@ -398,9 +399,9 @@ export const ERC721_SALE_ITEMS_ABI = [
|
|
|
398
399
|
inputs: [
|
|
399
400
|
{ name: 'role', type: 'bytes32', indexed: true, internalType: 'bytes32' },
|
|
400
401
|
{ name: 'account', type: 'address', indexed: true, internalType: 'address' },
|
|
401
|
-
{ name: 'sender', type: 'address', indexed: true, internalType: 'address' }
|
|
402
|
+
{ name: 'sender', type: 'address', indexed: true, internalType: 'address' },
|
|
402
403
|
],
|
|
403
|
-
anonymous: false
|
|
404
|
+
anonymous: false,
|
|
404
405
|
},
|
|
405
406
|
{
|
|
406
407
|
type: 'event',
|
|
@@ -408,9 +409,9 @@ export const ERC721_SALE_ITEMS_ABI = [
|
|
|
408
409
|
inputs: [
|
|
409
410
|
{ name: 'role', type: 'bytes32', indexed: true, internalType: 'bytes32' },
|
|
410
411
|
{ name: 'account', type: 'address', indexed: true, internalType: 'address' },
|
|
411
|
-
{ name: 'sender', type: 'address', indexed: true, internalType: 'address' }
|
|
412
|
+
{ name: 'sender', type: 'address', indexed: true, internalType: 'address' },
|
|
412
413
|
],
|
|
413
|
-
anonymous: false
|
|
414
|
+
anonymous: false,
|
|
414
415
|
},
|
|
415
416
|
{
|
|
416
417
|
type: 'event',
|
|
@@ -418,9 +419,9 @@ export const ERC721_SALE_ITEMS_ABI = [
|
|
|
418
419
|
inputs: [
|
|
419
420
|
{ name: 'from', type: 'address', indexed: true, internalType: 'address' },
|
|
420
421
|
{ name: 'to', type: 'address', indexed: true, internalType: 'address' },
|
|
421
|
-
{ name: 'tokenId', type: 'uint256', indexed: true, internalType: 'uint256' }
|
|
422
|
+
{ name: 'tokenId', type: 'uint256', indexed: true, internalType: 'uint256' },
|
|
422
423
|
],
|
|
423
|
-
anonymous: false
|
|
424
|
+
anonymous: false,
|
|
424
425
|
},
|
|
425
426
|
{ type: 'error', name: 'ApprovalCallerNotOwnerNorApproved', inputs: [] },
|
|
426
427
|
{ type: 'error', name: 'ApprovalQueryForNonexistentToken', inputs: [] },
|
|
@@ -436,5 +437,5 @@ export const ERC721_SALE_ITEMS_ABI = [
|
|
|
436
437
|
{ type: 'error', name: 'TransferFromIncorrectOwner', inputs: [] },
|
|
437
438
|
{ type: 'error', name: 'TransferToNonERC721ReceiverImplementer', inputs: [] },
|
|
438
439
|
{ type: 'error', name: 'TransferToZeroAddress', inputs: [] },
|
|
439
|
-
{ type: 'error', name: 'URIQueryForNonexistentToken', inputs: [] }
|
|
440
|
+
{ type: 'error', name: 'URIQueryForNonexistentToken', inputs: [] },
|
|
440
441
|
] as const
|
package/src/wallet/erc1271.ts
CHANGED
|
@@ -5,22 +5,22 @@ export const abi = [
|
|
|
5
5
|
constant: true,
|
|
6
6
|
inputs: [
|
|
7
7
|
{
|
|
8
|
-
type: 'bytes32'
|
|
8
|
+
type: 'bytes32',
|
|
9
9
|
},
|
|
10
10
|
{
|
|
11
|
-
type: 'bytes'
|
|
12
|
-
}
|
|
11
|
+
type: 'bytes',
|
|
12
|
+
},
|
|
13
13
|
],
|
|
14
14
|
outputs: [
|
|
15
15
|
{
|
|
16
|
-
type: 'bytes4'
|
|
17
|
-
}
|
|
16
|
+
type: 'bytes4',
|
|
17
|
+
},
|
|
18
18
|
],
|
|
19
19
|
payable: false,
|
|
20
|
-
stateMutability: 'view'
|
|
21
|
-
}
|
|
20
|
+
stateMutability: 'view',
|
|
21
|
+
},
|
|
22
22
|
] as const
|
|
23
23
|
|
|
24
24
|
export const returns = {
|
|
25
|
-
isValidSignatureBytes32: '0x1626ba7e'
|
|
25
|
+
isValidSignatureBytes32: '0x1626ba7e',
|
|
26
26
|
}
|
package/src/wallet/erc5719.ts
CHANGED
|
@@ -3,17 +3,17 @@ export const abi = [
|
|
|
3
3
|
inputs: [
|
|
4
4
|
{
|
|
5
5
|
internalType: 'bytes32',
|
|
6
|
-
type: 'bytes32'
|
|
7
|
-
}
|
|
6
|
+
type: 'bytes32',
|
|
7
|
+
},
|
|
8
8
|
],
|
|
9
9
|
name: 'getAlternativeSignature',
|
|
10
10
|
outputs: [
|
|
11
11
|
{
|
|
12
12
|
internalType: 'string',
|
|
13
|
-
type: 'string'
|
|
14
|
-
}
|
|
13
|
+
type: 'string',
|
|
14
|
+
},
|
|
15
15
|
],
|
|
16
16
|
stateMutability: 'view',
|
|
17
|
-
type: 'function'
|
|
18
|
-
}
|
|
17
|
+
type: 'function',
|
|
18
|
+
},
|
|
19
19
|
] as const
|
package/src/wallet/erc6492.ts
CHANGED
|
@@ -5,12 +5,12 @@ export const abi = [
|
|
|
5
5
|
inputs: [
|
|
6
6
|
{ internalType: 'address', name: '_signer', type: 'address' },
|
|
7
7
|
{ internalType: 'bytes32', name: '_hash', type: 'bytes32' },
|
|
8
|
-
{ internalType: 'bytes', name: '_signature', type: 'bytes' }
|
|
8
|
+
{ internalType: 'bytes', name: '_signature', type: 'bytes' },
|
|
9
9
|
],
|
|
10
10
|
name: 'isValidSig',
|
|
11
11
|
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
|
|
12
12
|
stateMutability: 'nonpayable',
|
|
13
|
-
type: 'function'
|
|
13
|
+
type: 'function',
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
inputs: [
|
|
@@ -18,44 +18,44 @@ export const abi = [
|
|
|
18
18
|
{ internalType: 'bytes32', name: '_hash', type: 'bytes32' },
|
|
19
19
|
{ internalType: 'bytes', name: '_signature', type: 'bytes' },
|
|
20
20
|
{ internalType: 'bool', name: 'allowSideEffects', type: 'bool' },
|
|
21
|
-
{ internalType: 'bool', name: 'deployAlreadyDeployed', type: 'bool' }
|
|
21
|
+
{ internalType: 'bool', name: 'deployAlreadyDeployed', type: 'bool' },
|
|
22
22
|
],
|
|
23
23
|
name: 'isValidSigImpl',
|
|
24
24
|
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
|
|
25
25
|
stateMutability: 'nonpayable',
|
|
26
|
-
type: 'function'
|
|
26
|
+
type: 'function',
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
inputs: [
|
|
30
30
|
{ internalType: 'address', name: '_signer', type: 'address' },
|
|
31
31
|
{ internalType: 'bytes32', name: '_hash', type: 'bytes32' },
|
|
32
|
-
{ internalType: 'bytes', name: '_signature', type: 'bytes' }
|
|
32
|
+
{ internalType: 'bytes', name: '_signature', type: 'bytes' },
|
|
33
33
|
],
|
|
34
34
|
name: 'isValidSigNoThrow',
|
|
35
35
|
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
|
|
36
36
|
stateMutability: 'nonpayable',
|
|
37
|
-
type: 'function'
|
|
37
|
+
type: 'function',
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
inputs: [
|
|
41
41
|
{ internalType: 'address', name: '_signer', type: 'address' },
|
|
42
42
|
{ internalType: 'bytes32', name: '_hash', type: 'bytes32' },
|
|
43
|
-
{ internalType: 'bytes', name: '_signature', type: 'bytes' }
|
|
43
|
+
{ internalType: 'bytes', name: '_signature', type: 'bytes' },
|
|
44
44
|
],
|
|
45
45
|
name: 'isValidSigWithSideEffects',
|
|
46
46
|
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
|
|
47
47
|
stateMutability: 'nonpayable',
|
|
48
|
-
type: 'function'
|
|
48
|
+
type: 'function',
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
inputs: [
|
|
52
52
|
{ internalType: 'address', name: '_signer', type: 'address' },
|
|
53
53
|
{ internalType: 'bytes32', name: '_hash', type: 'bytes32' },
|
|
54
|
-
{ internalType: 'bytes', name: '_signature', type: 'bytes' }
|
|
54
|
+
{ internalType: 'bytes', name: '_signature', type: 'bytes' },
|
|
55
55
|
],
|
|
56
56
|
name: 'isValidSigWithSideEffectsNoThrow',
|
|
57
57
|
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
|
|
58
58
|
stateMutability: 'nonpayable',
|
|
59
|
-
type: 'function'
|
|
60
|
-
}
|
|
59
|
+
type: 'function',
|
|
60
|
+
},
|
|
61
61
|
] as const
|
package/src/wallet/factory.ts
CHANGED
|
@@ -5,14 +5,14 @@ export const abi = [
|
|
|
5
5
|
constant: false,
|
|
6
6
|
inputs: [
|
|
7
7
|
{
|
|
8
|
-
type: 'address'
|
|
8
|
+
type: 'address',
|
|
9
9
|
},
|
|
10
10
|
{
|
|
11
|
-
type: 'bytes32'
|
|
12
|
-
}
|
|
11
|
+
type: 'bytes32',
|
|
12
|
+
},
|
|
13
13
|
],
|
|
14
14
|
outputs: [],
|
|
15
15
|
payable: true,
|
|
16
|
-
stateMutability: 'payable'
|
|
17
|
-
}
|
|
16
|
+
stateMutability: 'payable',
|
|
17
|
+
},
|
|
18
18
|
] as const
|
package/src/wallet/index.ts
CHANGED
|
@@ -4,12 +4,12 @@ export const abi = [
|
|
|
4
4
|
{
|
|
5
5
|
internalType: 'address',
|
|
6
6
|
name: '',
|
|
7
|
-
type: 'address'
|
|
8
|
-
}
|
|
7
|
+
type: 'address',
|
|
8
|
+
},
|
|
9
9
|
],
|
|
10
10
|
name: 'requireFreshSigner',
|
|
11
11
|
outputs: [],
|
|
12
12
|
stateMutability: 'nonpayable',
|
|
13
|
-
type: 'function'
|
|
14
|
-
}
|
|
13
|
+
type: 'function',
|
|
14
|
+
},
|
|
15
15
|
] as const
|