@sentio/sdk 1.30.3 → 1.31.1
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/lib/builtin/erc1155/index.d.ts +2 -0
- package/lib/builtin/erc1155/index.js +22 -0
- package/lib/builtin/erc1155/index.js.map +1 -0
- package/lib/builtin/erc1155/test-utils.d.ts +6 -0
- package/lib/builtin/erc1155/test-utils.js +57 -0
- package/lib/builtin/erc1155/test-utils.js.map +1 -0
- package/lib/builtin/erc721/index.d.ts +2 -0
- package/lib/builtin/erc721/index.js +22 -0
- package/lib/builtin/erc721/index.js.map +1 -0
- package/lib/builtin/erc721/test-utils.d.ts +5 -0
- package/lib/builtin/erc721/test-utils.js +46 -0
- package/lib/builtin/erc721/test-utils.js.map +1 -0
- package/lib/builtin/internal/ERC1155.d.ts +199 -0
- package/lib/builtin/internal/ERC1155.js +3 -0
- package/lib/builtin/internal/ERC1155.js.map +1 -0
- package/lib/builtin/internal/ERC721.d.ts +252 -0
- package/lib/builtin/internal/ERC721.js +3 -0
- package/lib/builtin/internal/ERC721.js.map +1 -0
- package/lib/builtin/internal/erc1155_processor.d.ts +134 -0
- package/lib/builtin/internal/erc1155_processor.js +337 -0
- package/lib/builtin/internal/erc1155_processor.js.map +1 -0
- package/lib/builtin/internal/erc721_processor.d.ts +169 -0
- package/lib/builtin/internal/erc721_processor.js +479 -0
- package/lib/builtin/internal/erc721_processor.js.map +1 -0
- package/lib/builtin/internal/factories/ERC1155__factory.d.ts +35 -0
- package/lib/builtin/internal/factories/ERC1155__factory.js +332 -0
- package/lib/builtin/internal/factories/ERC1155__factory.js.map +1 -0
- package/lib/builtin/internal/factories/ERC721__factory.d.ts +51 -0
- package/lib/builtin/internal/factories/ERC721__factory.js +364 -0
- package/lib/builtin/internal/factories/ERC721__factory.js.map +1 -0
- package/lib/builtin/internal/factories/index.d.ts +2 -0
- package/lib/builtin/internal/factories/index.js +5 -1
- package/lib/builtin/internal/factories/index.js.map +1 -1
- package/lib/builtin/internal/index.d.ts +4 -0
- package/lib/builtin/internal/index.js +5 -1
- package/lib/builtin/internal/index.js.map +1 -1
- package/lib/core/account-processor.d.ts +58 -0
- package/lib/core/account-processor.js +147 -0
- package/lib/core/account-processor.js.map +1 -0
- package/lib/core/base-processor.d.ts +5 -2
- package/lib/core/base-processor.js.map +1 -1
- package/lib/core/bind-options.d.ts +5 -0
- package/lib/core/bind-options.js +7 -1
- package/lib/core/bind-options.js.map +1 -1
- package/lib/core/context.d.ts +7 -1
- package/lib/core/context.js +30 -18
- package/lib/core/context.js.map +1 -1
- package/lib/core/meter.js +9 -0
- package/lib/core/meter.js.map +1 -1
- package/lib/gen/chainquery/protos/chainquery.d.ts +1 -0
- package/lib/gen/chainquery/protos/chainquery.js +17 -1
- package/lib/gen/chainquery/protos/chainquery.js.map +1 -1
- package/lib/gen/processor/protos/processor.d.ts +12 -1
- package/lib/gen/processor/protos/processor.js +108 -13
- package/lib/gen/processor/protos/processor.js.map +1 -1
- package/lib/service.d.ts +1 -0
- package/lib/service.js +67 -42
- package/lib/service.js.map +1 -1
- package/lib/testing/test-processor-server.d.ts +6 -2
- package/lib/testing/test-processor-server.js +66 -5
- package/lib/testing/test-processor-server.js.map +1 -1
- package/package.json +1 -1
- package/src/abis/ERC1155.json +314 -0
- package/src/abis/ERC721.json +346 -0
- package/src/builtin/erc1155/index.ts +6 -0
- package/src/builtin/erc1155/test-utils.ts +89 -0
- package/src/builtin/erc721/index.ts +6 -0
- package/src/builtin/erc721/test-utils.ts +71 -0
- package/src/builtin/internal/ERC1155.ts +529 -0
- package/src/builtin/internal/ERC721.ts +639 -0
- package/src/builtin/internal/erc1155_processor.ts +580 -0
- package/src/builtin/internal/erc721_processor.ts +768 -0
- package/src/builtin/internal/factories/ERC1155__factory.ts +335 -0
- package/src/builtin/internal/factories/ERC721__factory.ts +364 -0
- package/src/builtin/internal/factories/index.ts +2 -0
- package/src/builtin/internal/index.ts +4 -0
- package/src/core/account-processor.ts +217 -0
- package/src/core/base-processor.ts +6 -2
- package/src/core/bind-options.ts +6 -0
- package/src/core/context.ts +42 -27
- package/src/core/meter.ts +11 -2
- package/src/gen/chainquery/protos/chainquery.ts +18 -1
- package/src/gen/processor/protos/processor.ts +113 -12
- package/src/service.ts +71 -44
- package/src/testing/test-processor-server.ts +71 -5
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Contract, Signer, utils } from "ethers";
|
|
6
|
+
import type { Provider } from "@ethersproject/providers";
|
|
7
|
+
import type { ERC1155, ERC1155Interface } from "../ERC1155";
|
|
8
|
+
|
|
9
|
+
const _abi = [
|
|
10
|
+
{
|
|
11
|
+
anonymous: false,
|
|
12
|
+
inputs: [
|
|
13
|
+
{
|
|
14
|
+
indexed: true,
|
|
15
|
+
internalType: "address",
|
|
16
|
+
name: "account",
|
|
17
|
+
type: "address",
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
indexed: true,
|
|
21
|
+
internalType: "address",
|
|
22
|
+
name: "operator",
|
|
23
|
+
type: "address",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
indexed: false,
|
|
27
|
+
internalType: "bool",
|
|
28
|
+
name: "approved",
|
|
29
|
+
type: "bool",
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
name: "ApprovalForAll",
|
|
33
|
+
type: "event",
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
anonymous: false,
|
|
37
|
+
inputs: [
|
|
38
|
+
{
|
|
39
|
+
indexed: true,
|
|
40
|
+
internalType: "address",
|
|
41
|
+
name: "operator",
|
|
42
|
+
type: "address",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
indexed: true,
|
|
46
|
+
internalType: "address",
|
|
47
|
+
name: "from",
|
|
48
|
+
type: "address",
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
indexed: true,
|
|
52
|
+
internalType: "address",
|
|
53
|
+
name: "to",
|
|
54
|
+
type: "address",
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
indexed: false,
|
|
58
|
+
internalType: "uint256[]",
|
|
59
|
+
name: "ids",
|
|
60
|
+
type: "uint256[]",
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
indexed: false,
|
|
64
|
+
internalType: "uint256[]",
|
|
65
|
+
name: "values",
|
|
66
|
+
type: "uint256[]",
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
name: "TransferBatch",
|
|
70
|
+
type: "event",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
anonymous: false,
|
|
74
|
+
inputs: [
|
|
75
|
+
{
|
|
76
|
+
indexed: true,
|
|
77
|
+
internalType: "address",
|
|
78
|
+
name: "operator",
|
|
79
|
+
type: "address",
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
indexed: true,
|
|
83
|
+
internalType: "address",
|
|
84
|
+
name: "from",
|
|
85
|
+
type: "address",
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
indexed: true,
|
|
89
|
+
internalType: "address",
|
|
90
|
+
name: "to",
|
|
91
|
+
type: "address",
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
indexed: false,
|
|
95
|
+
internalType: "uint256",
|
|
96
|
+
name: "id",
|
|
97
|
+
type: "uint256",
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
indexed: false,
|
|
101
|
+
internalType: "uint256",
|
|
102
|
+
name: "value",
|
|
103
|
+
type: "uint256",
|
|
104
|
+
},
|
|
105
|
+
],
|
|
106
|
+
name: "TransferSingle",
|
|
107
|
+
type: "event",
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
anonymous: false,
|
|
111
|
+
inputs: [
|
|
112
|
+
{
|
|
113
|
+
indexed: false,
|
|
114
|
+
internalType: "string",
|
|
115
|
+
name: "value",
|
|
116
|
+
type: "string",
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
indexed: true,
|
|
120
|
+
internalType: "uint256",
|
|
121
|
+
name: "id",
|
|
122
|
+
type: "uint256",
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
name: "URI",
|
|
126
|
+
type: "event",
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
inputs: [
|
|
130
|
+
{
|
|
131
|
+
internalType: "address",
|
|
132
|
+
name: "account",
|
|
133
|
+
type: "address",
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
internalType: "uint256",
|
|
137
|
+
name: "id",
|
|
138
|
+
type: "uint256",
|
|
139
|
+
},
|
|
140
|
+
],
|
|
141
|
+
name: "balanceOf",
|
|
142
|
+
outputs: [
|
|
143
|
+
{
|
|
144
|
+
internalType: "uint256",
|
|
145
|
+
name: "",
|
|
146
|
+
type: "uint256",
|
|
147
|
+
},
|
|
148
|
+
],
|
|
149
|
+
stateMutability: "view",
|
|
150
|
+
type: "function",
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
inputs: [
|
|
154
|
+
{
|
|
155
|
+
internalType: "address[]",
|
|
156
|
+
name: "accounts",
|
|
157
|
+
type: "address[]",
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
internalType: "uint256[]",
|
|
161
|
+
name: "ids",
|
|
162
|
+
type: "uint256[]",
|
|
163
|
+
},
|
|
164
|
+
],
|
|
165
|
+
name: "balanceOfBatch",
|
|
166
|
+
outputs: [
|
|
167
|
+
{
|
|
168
|
+
internalType: "uint256[]",
|
|
169
|
+
name: "",
|
|
170
|
+
type: "uint256[]",
|
|
171
|
+
},
|
|
172
|
+
],
|
|
173
|
+
stateMutability: "view",
|
|
174
|
+
type: "function",
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
inputs: [
|
|
178
|
+
{
|
|
179
|
+
internalType: "address",
|
|
180
|
+
name: "account",
|
|
181
|
+
type: "address",
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
internalType: "address",
|
|
185
|
+
name: "operator",
|
|
186
|
+
type: "address",
|
|
187
|
+
},
|
|
188
|
+
],
|
|
189
|
+
name: "isApprovedForAll",
|
|
190
|
+
outputs: [
|
|
191
|
+
{
|
|
192
|
+
internalType: "bool",
|
|
193
|
+
name: "",
|
|
194
|
+
type: "bool",
|
|
195
|
+
},
|
|
196
|
+
],
|
|
197
|
+
stateMutability: "view",
|
|
198
|
+
type: "function",
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
inputs: [
|
|
202
|
+
{
|
|
203
|
+
internalType: "address",
|
|
204
|
+
name: "from",
|
|
205
|
+
type: "address",
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
internalType: "address",
|
|
209
|
+
name: "to",
|
|
210
|
+
type: "address",
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
internalType: "uint256[]",
|
|
214
|
+
name: "ids",
|
|
215
|
+
type: "uint256[]",
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
internalType: "uint256[]",
|
|
219
|
+
name: "amounts",
|
|
220
|
+
type: "uint256[]",
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
internalType: "bytes",
|
|
224
|
+
name: "data",
|
|
225
|
+
type: "bytes",
|
|
226
|
+
},
|
|
227
|
+
],
|
|
228
|
+
name: "safeBatchTransferFrom",
|
|
229
|
+
outputs: [],
|
|
230
|
+
stateMutability: "nonpayable",
|
|
231
|
+
type: "function",
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
inputs: [
|
|
235
|
+
{
|
|
236
|
+
internalType: "address",
|
|
237
|
+
name: "from",
|
|
238
|
+
type: "address",
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
internalType: "address",
|
|
242
|
+
name: "to",
|
|
243
|
+
type: "address",
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
internalType: "uint256",
|
|
247
|
+
name: "id",
|
|
248
|
+
type: "uint256",
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
internalType: "uint256",
|
|
252
|
+
name: "amount",
|
|
253
|
+
type: "uint256",
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
internalType: "bytes",
|
|
257
|
+
name: "data",
|
|
258
|
+
type: "bytes",
|
|
259
|
+
},
|
|
260
|
+
],
|
|
261
|
+
name: "safeTransferFrom",
|
|
262
|
+
outputs: [],
|
|
263
|
+
stateMutability: "nonpayable",
|
|
264
|
+
type: "function",
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
inputs: [
|
|
268
|
+
{
|
|
269
|
+
internalType: "address",
|
|
270
|
+
name: "operator",
|
|
271
|
+
type: "address",
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
internalType: "bool",
|
|
275
|
+
name: "approved",
|
|
276
|
+
type: "bool",
|
|
277
|
+
},
|
|
278
|
+
],
|
|
279
|
+
name: "setApprovalForAll",
|
|
280
|
+
outputs: [],
|
|
281
|
+
stateMutability: "nonpayable",
|
|
282
|
+
type: "function",
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
inputs: [
|
|
286
|
+
{
|
|
287
|
+
internalType: "bytes4",
|
|
288
|
+
name: "interfaceId",
|
|
289
|
+
type: "bytes4",
|
|
290
|
+
},
|
|
291
|
+
],
|
|
292
|
+
name: "supportsInterface",
|
|
293
|
+
outputs: [
|
|
294
|
+
{
|
|
295
|
+
internalType: "bool",
|
|
296
|
+
name: "",
|
|
297
|
+
type: "bool",
|
|
298
|
+
},
|
|
299
|
+
],
|
|
300
|
+
stateMutability: "view",
|
|
301
|
+
type: "function",
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
inputs: [
|
|
305
|
+
{
|
|
306
|
+
internalType: "uint256",
|
|
307
|
+
name: "id",
|
|
308
|
+
type: "uint256",
|
|
309
|
+
},
|
|
310
|
+
],
|
|
311
|
+
name: "uri",
|
|
312
|
+
outputs: [
|
|
313
|
+
{
|
|
314
|
+
internalType: "string",
|
|
315
|
+
name: "",
|
|
316
|
+
type: "string",
|
|
317
|
+
},
|
|
318
|
+
],
|
|
319
|
+
stateMutability: "view",
|
|
320
|
+
type: "function",
|
|
321
|
+
},
|
|
322
|
+
];
|
|
323
|
+
|
|
324
|
+
export class ERC1155__factory {
|
|
325
|
+
static readonly abi = _abi;
|
|
326
|
+
static createInterface(): ERC1155Interface {
|
|
327
|
+
return new utils.Interface(_abi) as ERC1155Interface;
|
|
328
|
+
}
|
|
329
|
+
static connect(
|
|
330
|
+
address: string,
|
|
331
|
+
signerOrProvider: Signer | Provider
|
|
332
|
+
): ERC1155 {
|
|
333
|
+
return new Contract(address, _abi, signerOrProvider) as ERC1155;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Contract, Signer, utils } from "ethers";
|
|
6
|
+
import type { Provider } from "@ethersproject/providers";
|
|
7
|
+
import type { ERC721, ERC721Interface } from "../ERC721";
|
|
8
|
+
|
|
9
|
+
const _abi = [
|
|
10
|
+
{
|
|
11
|
+
anonymous: false,
|
|
12
|
+
inputs: [
|
|
13
|
+
{
|
|
14
|
+
indexed: true,
|
|
15
|
+
internalType: "address",
|
|
16
|
+
name: "owner",
|
|
17
|
+
type: "address",
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
indexed: true,
|
|
21
|
+
internalType: "address",
|
|
22
|
+
name: "approved",
|
|
23
|
+
type: "address",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
indexed: true,
|
|
27
|
+
internalType: "uint256",
|
|
28
|
+
name: "tokenId",
|
|
29
|
+
type: "uint256",
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
name: "Approval",
|
|
33
|
+
type: "event",
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
anonymous: false,
|
|
37
|
+
inputs: [
|
|
38
|
+
{
|
|
39
|
+
indexed: true,
|
|
40
|
+
internalType: "address",
|
|
41
|
+
name: "owner",
|
|
42
|
+
type: "address",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
indexed: true,
|
|
46
|
+
internalType: "address",
|
|
47
|
+
name: "operator",
|
|
48
|
+
type: "address",
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
indexed: false,
|
|
52
|
+
internalType: "bool",
|
|
53
|
+
name: "approved",
|
|
54
|
+
type: "bool",
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
name: "ApprovalForAll",
|
|
58
|
+
type: "event",
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
anonymous: false,
|
|
62
|
+
inputs: [
|
|
63
|
+
{
|
|
64
|
+
indexed: true,
|
|
65
|
+
internalType: "address",
|
|
66
|
+
name: "from",
|
|
67
|
+
type: "address",
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
indexed: true,
|
|
71
|
+
internalType: "address",
|
|
72
|
+
name: "to",
|
|
73
|
+
type: "address",
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
indexed: true,
|
|
77
|
+
internalType: "uint256",
|
|
78
|
+
name: "tokenId",
|
|
79
|
+
type: "uint256",
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
|
+
name: "Transfer",
|
|
83
|
+
type: "event",
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
inputs: [
|
|
87
|
+
{
|
|
88
|
+
internalType: "address",
|
|
89
|
+
name: "to",
|
|
90
|
+
type: "address",
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
internalType: "uint256",
|
|
94
|
+
name: "tokenId",
|
|
95
|
+
type: "uint256",
|
|
96
|
+
},
|
|
97
|
+
],
|
|
98
|
+
name: "approve",
|
|
99
|
+
outputs: [],
|
|
100
|
+
stateMutability: "nonpayable",
|
|
101
|
+
type: "function",
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
constant: true,
|
|
105
|
+
inputs: [],
|
|
106
|
+
name: "totalSupply",
|
|
107
|
+
outputs: [
|
|
108
|
+
{
|
|
109
|
+
name: "",
|
|
110
|
+
type: "uint256",
|
|
111
|
+
},
|
|
112
|
+
],
|
|
113
|
+
payable: false,
|
|
114
|
+
stateMutability: "view",
|
|
115
|
+
type: "function",
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
inputs: [
|
|
119
|
+
{
|
|
120
|
+
internalType: "address",
|
|
121
|
+
name: "owner",
|
|
122
|
+
type: "address",
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
name: "balanceOf",
|
|
126
|
+
outputs: [
|
|
127
|
+
{
|
|
128
|
+
internalType: "uint256",
|
|
129
|
+
name: "balance",
|
|
130
|
+
type: "uint256",
|
|
131
|
+
},
|
|
132
|
+
],
|
|
133
|
+
stateMutability: "view",
|
|
134
|
+
type: "function",
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
inputs: [
|
|
138
|
+
{
|
|
139
|
+
internalType: "uint256",
|
|
140
|
+
name: "tokenId",
|
|
141
|
+
type: "uint256",
|
|
142
|
+
},
|
|
143
|
+
],
|
|
144
|
+
name: "getApproved",
|
|
145
|
+
outputs: [
|
|
146
|
+
{
|
|
147
|
+
internalType: "address",
|
|
148
|
+
name: "operator",
|
|
149
|
+
type: "address",
|
|
150
|
+
},
|
|
151
|
+
],
|
|
152
|
+
stateMutability: "view",
|
|
153
|
+
type: "function",
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
inputs: [
|
|
157
|
+
{
|
|
158
|
+
internalType: "address",
|
|
159
|
+
name: "owner",
|
|
160
|
+
type: "address",
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
internalType: "address",
|
|
164
|
+
name: "operator",
|
|
165
|
+
type: "address",
|
|
166
|
+
},
|
|
167
|
+
],
|
|
168
|
+
name: "isApprovedForAll",
|
|
169
|
+
outputs: [
|
|
170
|
+
{
|
|
171
|
+
internalType: "bool",
|
|
172
|
+
name: "",
|
|
173
|
+
type: "bool",
|
|
174
|
+
},
|
|
175
|
+
],
|
|
176
|
+
stateMutability: "view",
|
|
177
|
+
type: "function",
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
inputs: [],
|
|
181
|
+
name: "name",
|
|
182
|
+
outputs: [
|
|
183
|
+
{
|
|
184
|
+
internalType: "string",
|
|
185
|
+
name: "",
|
|
186
|
+
type: "string",
|
|
187
|
+
},
|
|
188
|
+
],
|
|
189
|
+
stateMutability: "view",
|
|
190
|
+
type: "function",
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
inputs: [
|
|
194
|
+
{
|
|
195
|
+
internalType: "uint256",
|
|
196
|
+
name: "tokenId",
|
|
197
|
+
type: "uint256",
|
|
198
|
+
},
|
|
199
|
+
],
|
|
200
|
+
name: "ownerOf",
|
|
201
|
+
outputs: [
|
|
202
|
+
{
|
|
203
|
+
internalType: "address",
|
|
204
|
+
name: "owner",
|
|
205
|
+
type: "address",
|
|
206
|
+
},
|
|
207
|
+
],
|
|
208
|
+
stateMutability: "view",
|
|
209
|
+
type: "function",
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
inputs: [
|
|
213
|
+
{
|
|
214
|
+
internalType: "address",
|
|
215
|
+
name: "from",
|
|
216
|
+
type: "address",
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
internalType: "address",
|
|
220
|
+
name: "to",
|
|
221
|
+
type: "address",
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
internalType: "uint256",
|
|
225
|
+
name: "tokenId",
|
|
226
|
+
type: "uint256",
|
|
227
|
+
},
|
|
228
|
+
],
|
|
229
|
+
name: "safeTransferFrom",
|
|
230
|
+
outputs: [],
|
|
231
|
+
stateMutability: "nonpayable",
|
|
232
|
+
type: "function",
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
inputs: [
|
|
236
|
+
{
|
|
237
|
+
internalType: "address",
|
|
238
|
+
name: "from",
|
|
239
|
+
type: "address",
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
internalType: "address",
|
|
243
|
+
name: "to",
|
|
244
|
+
type: "address",
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
internalType: "uint256",
|
|
248
|
+
name: "tokenId",
|
|
249
|
+
type: "uint256",
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
internalType: "bytes",
|
|
253
|
+
name: "data",
|
|
254
|
+
type: "bytes",
|
|
255
|
+
},
|
|
256
|
+
],
|
|
257
|
+
name: "safeTransferFrom",
|
|
258
|
+
outputs: [],
|
|
259
|
+
stateMutability: "nonpayable",
|
|
260
|
+
type: "function",
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
inputs: [
|
|
264
|
+
{
|
|
265
|
+
internalType: "address",
|
|
266
|
+
name: "operator",
|
|
267
|
+
type: "address",
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
internalType: "bool",
|
|
271
|
+
name: "_approved",
|
|
272
|
+
type: "bool",
|
|
273
|
+
},
|
|
274
|
+
],
|
|
275
|
+
name: "setApprovalForAll",
|
|
276
|
+
outputs: [],
|
|
277
|
+
stateMutability: "nonpayable",
|
|
278
|
+
type: "function",
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
inputs: [
|
|
282
|
+
{
|
|
283
|
+
internalType: "bytes4",
|
|
284
|
+
name: "interfaceId",
|
|
285
|
+
type: "bytes4",
|
|
286
|
+
},
|
|
287
|
+
],
|
|
288
|
+
name: "supportsInterface",
|
|
289
|
+
outputs: [
|
|
290
|
+
{
|
|
291
|
+
internalType: "bool",
|
|
292
|
+
name: "",
|
|
293
|
+
type: "bool",
|
|
294
|
+
},
|
|
295
|
+
],
|
|
296
|
+
stateMutability: "view",
|
|
297
|
+
type: "function",
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
inputs: [],
|
|
301
|
+
name: "symbol",
|
|
302
|
+
outputs: [
|
|
303
|
+
{
|
|
304
|
+
internalType: "string",
|
|
305
|
+
name: "",
|
|
306
|
+
type: "string",
|
|
307
|
+
},
|
|
308
|
+
],
|
|
309
|
+
stateMutability: "view",
|
|
310
|
+
type: "function",
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
inputs: [
|
|
314
|
+
{
|
|
315
|
+
internalType: "uint256",
|
|
316
|
+
name: "tokenId",
|
|
317
|
+
type: "uint256",
|
|
318
|
+
},
|
|
319
|
+
],
|
|
320
|
+
name: "tokenURI",
|
|
321
|
+
outputs: [
|
|
322
|
+
{
|
|
323
|
+
internalType: "string",
|
|
324
|
+
name: "",
|
|
325
|
+
type: "string",
|
|
326
|
+
},
|
|
327
|
+
],
|
|
328
|
+
stateMutability: "view",
|
|
329
|
+
type: "function",
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
inputs: [
|
|
333
|
+
{
|
|
334
|
+
internalType: "address",
|
|
335
|
+
name: "from",
|
|
336
|
+
type: "address",
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
internalType: "address",
|
|
340
|
+
name: "to",
|
|
341
|
+
type: "address",
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
internalType: "uint256",
|
|
345
|
+
name: "tokenId",
|
|
346
|
+
type: "uint256",
|
|
347
|
+
},
|
|
348
|
+
],
|
|
349
|
+
name: "transferFrom",
|
|
350
|
+
outputs: [],
|
|
351
|
+
stateMutability: "nonpayable",
|
|
352
|
+
type: "function",
|
|
353
|
+
},
|
|
354
|
+
];
|
|
355
|
+
|
|
356
|
+
export class ERC721__factory {
|
|
357
|
+
static readonly abi = _abi;
|
|
358
|
+
static createInterface(): ERC721Interface {
|
|
359
|
+
return new utils.Interface(_abi) as ERC721Interface;
|
|
360
|
+
}
|
|
361
|
+
static connect(address: string, signerOrProvider: Signer | Provider): ERC721 {
|
|
362
|
+
return new Contract(address, _abi, signerOrProvider) as ERC721;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
export { EACAggregatorProxy__factory } from "./EACAggregatorProxy__factory";
|
|
5
|
+
export { ERC1155__factory } from "./ERC1155__factory";
|
|
5
6
|
export { ERC20__factory } from "./ERC20__factory";
|
|
6
7
|
export { ERC20Bytes__factory } from "./ERC20Bytes__factory";
|
|
8
|
+
export { ERC721__factory } from "./ERC721__factory";
|
|
7
9
|
export { WETH9__factory } from "./WETH9__factory";
|
|
@@ -2,11 +2,15 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
export type { EACAggregatorProxy } from "./EACAggregatorProxy";
|
|
5
|
+
export type { ERC1155 } from "./ERC1155";
|
|
5
6
|
export type { ERC20 } from "./ERC20";
|
|
6
7
|
export type { ERC20Bytes } from "./ERC20Bytes";
|
|
8
|
+
export type { ERC721 } from "./ERC721";
|
|
7
9
|
export type { WETH9 } from "./WETH9";
|
|
8
10
|
export * as factories from "./factories";
|
|
9
11
|
export { EACAggregatorProxy__factory } from "./factories/EACAggregatorProxy__factory";
|
|
12
|
+
export { ERC1155__factory } from "./factories/ERC1155__factory";
|
|
10
13
|
export { ERC20__factory } from "./factories/ERC20__factory";
|
|
11
14
|
export { ERC20Bytes__factory } from "./factories/ERC20Bytes__factory";
|
|
15
|
+
export { ERC721__factory } from "./factories/ERC721__factory";
|
|
12
16
|
export { WETH9__factory } from "./factories/WETH9__factory";
|