@sentio/sdk 1.30.2 → 1.31.0
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/aptos/aptos-processor.d.ts +9 -2
- package/lib/aptos/aptos-processor.js +12 -3
- package/lib/aptos/aptos-processor.js.map +1 -1
- 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/event-tracker.d.ts +5 -1
- package/lib/core/event-tracker.js +8 -5
- package/lib/core/event-tracker.js.map +1 -1
- package/lib/core/meter.js +6 -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 +11 -0
- package/lib/gen/processor/protos/processor.js +84 -3
- package/lib/gen/processor/protos/processor.js.map +1 -1
- package/lib/index.d.ts +0 -1
- package/lib/index.js +2 -3
- package/lib/index.js.map +1 -1
- package/lib/service.d.ts +1 -0
- package/lib/service.js +72 -45
- package/lib/service.js.map +1 -1
- package/lib/state/processor-state.d.ts +1 -5
- package/lib/state/processor-state.js +1 -3
- package/lib/state/processor-state.js.map +1 -1
- package/lib/state/state-storage.d.ts +5 -0
- package/lib/state/state-storage.js +15 -1
- package/lib/state/state-storage.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/lib/utils/price.js +11 -4
- package/lib/utils/price.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/aptos/aptos-processor.ts +15 -6
- 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/event-tracker.ts +8 -5
- package/src/core/meter.ts +9 -3
- package/src/gen/chainquery/protos/chainquery.ts +18 -1
- package/src/gen/processor/protos/processor.ts +88 -1
- package/src/index.ts +1 -1
- package/src/service.ts +80 -49
- package/src/state/processor-state.ts +1 -6
- package/src/state/state-storage.ts +16 -0
- package/src/testing/test-processor-server.ts +71 -5
- package/src/utils/price.ts +12 -4
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Autogenerated file. Do not edit manually. */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ERC1155__factory = void 0;
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
|
+
{
|
|
10
|
+
anonymous: false,
|
|
11
|
+
inputs: [
|
|
12
|
+
{
|
|
13
|
+
indexed: true,
|
|
14
|
+
internalType: "address",
|
|
15
|
+
name: "account",
|
|
16
|
+
type: "address",
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
indexed: true,
|
|
20
|
+
internalType: "address",
|
|
21
|
+
name: "operator",
|
|
22
|
+
type: "address",
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
indexed: false,
|
|
26
|
+
internalType: "bool",
|
|
27
|
+
name: "approved",
|
|
28
|
+
type: "bool",
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
name: "ApprovalForAll",
|
|
32
|
+
type: "event",
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
anonymous: false,
|
|
36
|
+
inputs: [
|
|
37
|
+
{
|
|
38
|
+
indexed: true,
|
|
39
|
+
internalType: "address",
|
|
40
|
+
name: "operator",
|
|
41
|
+
type: "address",
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
indexed: true,
|
|
45
|
+
internalType: "address",
|
|
46
|
+
name: "from",
|
|
47
|
+
type: "address",
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
indexed: true,
|
|
51
|
+
internalType: "address",
|
|
52
|
+
name: "to",
|
|
53
|
+
type: "address",
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
indexed: false,
|
|
57
|
+
internalType: "uint256[]",
|
|
58
|
+
name: "ids",
|
|
59
|
+
type: "uint256[]",
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
indexed: false,
|
|
63
|
+
internalType: "uint256[]",
|
|
64
|
+
name: "values",
|
|
65
|
+
type: "uint256[]",
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
name: "TransferBatch",
|
|
69
|
+
type: "event",
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
anonymous: false,
|
|
73
|
+
inputs: [
|
|
74
|
+
{
|
|
75
|
+
indexed: true,
|
|
76
|
+
internalType: "address",
|
|
77
|
+
name: "operator",
|
|
78
|
+
type: "address",
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
indexed: true,
|
|
82
|
+
internalType: "address",
|
|
83
|
+
name: "from",
|
|
84
|
+
type: "address",
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
indexed: true,
|
|
88
|
+
internalType: "address",
|
|
89
|
+
name: "to",
|
|
90
|
+
type: "address",
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
indexed: false,
|
|
94
|
+
internalType: "uint256",
|
|
95
|
+
name: "id",
|
|
96
|
+
type: "uint256",
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
indexed: false,
|
|
100
|
+
internalType: "uint256",
|
|
101
|
+
name: "value",
|
|
102
|
+
type: "uint256",
|
|
103
|
+
},
|
|
104
|
+
],
|
|
105
|
+
name: "TransferSingle",
|
|
106
|
+
type: "event",
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
anonymous: false,
|
|
110
|
+
inputs: [
|
|
111
|
+
{
|
|
112
|
+
indexed: false,
|
|
113
|
+
internalType: "string",
|
|
114
|
+
name: "value",
|
|
115
|
+
type: "string",
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
indexed: true,
|
|
119
|
+
internalType: "uint256",
|
|
120
|
+
name: "id",
|
|
121
|
+
type: "uint256",
|
|
122
|
+
},
|
|
123
|
+
],
|
|
124
|
+
name: "URI",
|
|
125
|
+
type: "event",
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
inputs: [
|
|
129
|
+
{
|
|
130
|
+
internalType: "address",
|
|
131
|
+
name: "account",
|
|
132
|
+
type: "address",
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
internalType: "uint256",
|
|
136
|
+
name: "id",
|
|
137
|
+
type: "uint256",
|
|
138
|
+
},
|
|
139
|
+
],
|
|
140
|
+
name: "balanceOf",
|
|
141
|
+
outputs: [
|
|
142
|
+
{
|
|
143
|
+
internalType: "uint256",
|
|
144
|
+
name: "",
|
|
145
|
+
type: "uint256",
|
|
146
|
+
},
|
|
147
|
+
],
|
|
148
|
+
stateMutability: "view",
|
|
149
|
+
type: "function",
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
inputs: [
|
|
153
|
+
{
|
|
154
|
+
internalType: "address[]",
|
|
155
|
+
name: "accounts",
|
|
156
|
+
type: "address[]",
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
internalType: "uint256[]",
|
|
160
|
+
name: "ids",
|
|
161
|
+
type: "uint256[]",
|
|
162
|
+
},
|
|
163
|
+
],
|
|
164
|
+
name: "balanceOfBatch",
|
|
165
|
+
outputs: [
|
|
166
|
+
{
|
|
167
|
+
internalType: "uint256[]",
|
|
168
|
+
name: "",
|
|
169
|
+
type: "uint256[]",
|
|
170
|
+
},
|
|
171
|
+
],
|
|
172
|
+
stateMutability: "view",
|
|
173
|
+
type: "function",
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
inputs: [
|
|
177
|
+
{
|
|
178
|
+
internalType: "address",
|
|
179
|
+
name: "account",
|
|
180
|
+
type: "address",
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
internalType: "address",
|
|
184
|
+
name: "operator",
|
|
185
|
+
type: "address",
|
|
186
|
+
},
|
|
187
|
+
],
|
|
188
|
+
name: "isApprovedForAll",
|
|
189
|
+
outputs: [
|
|
190
|
+
{
|
|
191
|
+
internalType: "bool",
|
|
192
|
+
name: "",
|
|
193
|
+
type: "bool",
|
|
194
|
+
},
|
|
195
|
+
],
|
|
196
|
+
stateMutability: "view",
|
|
197
|
+
type: "function",
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
inputs: [
|
|
201
|
+
{
|
|
202
|
+
internalType: "address",
|
|
203
|
+
name: "from",
|
|
204
|
+
type: "address",
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
internalType: "address",
|
|
208
|
+
name: "to",
|
|
209
|
+
type: "address",
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
internalType: "uint256[]",
|
|
213
|
+
name: "ids",
|
|
214
|
+
type: "uint256[]",
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
internalType: "uint256[]",
|
|
218
|
+
name: "amounts",
|
|
219
|
+
type: "uint256[]",
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
internalType: "bytes",
|
|
223
|
+
name: "data",
|
|
224
|
+
type: "bytes",
|
|
225
|
+
},
|
|
226
|
+
],
|
|
227
|
+
name: "safeBatchTransferFrom",
|
|
228
|
+
outputs: [],
|
|
229
|
+
stateMutability: "nonpayable",
|
|
230
|
+
type: "function",
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
inputs: [
|
|
234
|
+
{
|
|
235
|
+
internalType: "address",
|
|
236
|
+
name: "from",
|
|
237
|
+
type: "address",
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
internalType: "address",
|
|
241
|
+
name: "to",
|
|
242
|
+
type: "address",
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
internalType: "uint256",
|
|
246
|
+
name: "id",
|
|
247
|
+
type: "uint256",
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
internalType: "uint256",
|
|
251
|
+
name: "amount",
|
|
252
|
+
type: "uint256",
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
internalType: "bytes",
|
|
256
|
+
name: "data",
|
|
257
|
+
type: "bytes",
|
|
258
|
+
},
|
|
259
|
+
],
|
|
260
|
+
name: "safeTransferFrom",
|
|
261
|
+
outputs: [],
|
|
262
|
+
stateMutability: "nonpayable",
|
|
263
|
+
type: "function",
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
inputs: [
|
|
267
|
+
{
|
|
268
|
+
internalType: "address",
|
|
269
|
+
name: "operator",
|
|
270
|
+
type: "address",
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
internalType: "bool",
|
|
274
|
+
name: "approved",
|
|
275
|
+
type: "bool",
|
|
276
|
+
},
|
|
277
|
+
],
|
|
278
|
+
name: "setApprovalForAll",
|
|
279
|
+
outputs: [],
|
|
280
|
+
stateMutability: "nonpayable",
|
|
281
|
+
type: "function",
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
inputs: [
|
|
285
|
+
{
|
|
286
|
+
internalType: "bytes4",
|
|
287
|
+
name: "interfaceId",
|
|
288
|
+
type: "bytes4",
|
|
289
|
+
},
|
|
290
|
+
],
|
|
291
|
+
name: "supportsInterface",
|
|
292
|
+
outputs: [
|
|
293
|
+
{
|
|
294
|
+
internalType: "bool",
|
|
295
|
+
name: "",
|
|
296
|
+
type: "bool",
|
|
297
|
+
},
|
|
298
|
+
],
|
|
299
|
+
stateMutability: "view",
|
|
300
|
+
type: "function",
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
inputs: [
|
|
304
|
+
{
|
|
305
|
+
internalType: "uint256",
|
|
306
|
+
name: "id",
|
|
307
|
+
type: "uint256",
|
|
308
|
+
},
|
|
309
|
+
],
|
|
310
|
+
name: "uri",
|
|
311
|
+
outputs: [
|
|
312
|
+
{
|
|
313
|
+
internalType: "string",
|
|
314
|
+
name: "",
|
|
315
|
+
type: "string",
|
|
316
|
+
},
|
|
317
|
+
],
|
|
318
|
+
stateMutability: "view",
|
|
319
|
+
type: "function",
|
|
320
|
+
},
|
|
321
|
+
];
|
|
322
|
+
class ERC1155__factory {
|
|
323
|
+
static abi = _abi;
|
|
324
|
+
static createInterface() {
|
|
325
|
+
return new ethers_1.utils.Interface(_abi);
|
|
326
|
+
}
|
|
327
|
+
static connect(address, signerOrProvider) {
|
|
328
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
exports.ERC1155__factory = ERC1155__factory;
|
|
332
|
+
//# sourceMappingURL=ERC1155__factory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ERC1155__factory.js","sourceRoot":"","sources":["../../../../src/builtin/internal/factories/ERC1155__factory.ts"],"names":[],"mappings":";AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;;;AAEpB,mCAAiD;AAIjD,MAAM,IAAI,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AAY,EAAE,SAAS;gBACvB,IAAI,EAAE,IAAI;gBACV,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,KAAK;QACX,OAAO,EAAE;YACP;gBACE,YAAY,EAAE,QAAQ;gBACtB,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,QAAQ;aACf;SACF;QACD,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;CACF,CAAC;AAEF,MAAa,gBAAgB;IAC3B,MAAM,CAAU,GAAG,GAAG,IAAI,CAAC;IAC3B,MAAM,CAAC,eAAe;QACpB,OAAO,IAAI,cAAK,CAAC,SAAS,CAAC,IAAI,CAAqB,CAAC;IACvD,CAAC;IACD,MAAM,CAAC,OAAO,CACZ,OAAe,EACf,gBAAmC;QAEnC,OAAO,IAAI,iBAAQ,CAAC,OAAO,EAAE,IAAI,EAAE,gBAAgB,CAAY,CAAC;IAClE,CAAC;;AAVH,4CAWC","sourcesContent":["/* Autogenerated file. Do not edit manually. */\n/* tslint:disable */\n/* eslint-disable */\n\nimport { Contract, Signer, utils } from \"ethers\";\nimport type { Provider } from \"@ethersproject/providers\";\nimport type { ERC1155, ERC1155Interface } from \"../ERC1155\";\n\nconst _abi = [\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: \"address\",\n name: \"account\",\n type: \"address\",\n },\n {\n indexed: true,\n internalType: \"address\",\n name: \"operator\",\n type: \"address\",\n },\n {\n indexed: false,\n internalType: \"bool\",\n name: \"approved\",\n type: \"bool\",\n },\n ],\n name: \"ApprovalForAll\",\n type: \"event\",\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: \"address\",\n name: \"operator\",\n type: \"address\",\n },\n {\n indexed: true,\n internalType: \"address\",\n name: \"from\",\n type: \"address\",\n },\n {\n indexed: true,\n internalType: \"address\",\n name: \"to\",\n type: \"address\",\n },\n {\n indexed: false,\n internalType: \"uint256[]\",\n name: \"ids\",\n type: \"uint256[]\",\n },\n {\n indexed: false,\n internalType: \"uint256[]\",\n name: \"values\",\n type: \"uint256[]\",\n },\n ],\n name: \"TransferBatch\",\n type: \"event\",\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: \"address\",\n name: \"operator\",\n type: \"address\",\n },\n {\n indexed: true,\n internalType: \"address\",\n name: \"from\",\n type: \"address\",\n },\n {\n indexed: true,\n internalType: \"address\",\n name: \"to\",\n type: \"address\",\n },\n {\n indexed: false,\n internalType: \"uint256\",\n name: \"id\",\n type: \"uint256\",\n },\n {\n indexed: false,\n internalType: \"uint256\",\n name: \"value\",\n type: \"uint256\",\n },\n ],\n name: \"TransferSingle\",\n type: \"event\",\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: false,\n internalType: \"string\",\n name: \"value\",\n type: \"string\",\n },\n {\n indexed: true,\n internalType: \"uint256\",\n name: \"id\",\n type: \"uint256\",\n },\n ],\n name: \"URI\",\n type: \"event\",\n },\n {\n inputs: [\n {\n internalType: \"address\",\n name: \"account\",\n type: \"address\",\n },\n {\n internalType: \"uint256\",\n name: \"id\",\n type: \"uint256\",\n },\n ],\n name: \"balanceOf\",\n outputs: [\n {\n internalType: \"uint256\",\n name: \"\",\n type: \"uint256\",\n },\n ],\n stateMutability: \"view\",\n type: \"function\",\n },\n {\n inputs: [\n {\n internalType: \"address[]\",\n name: \"accounts\",\n type: \"address[]\",\n },\n {\n internalType: \"uint256[]\",\n name: \"ids\",\n type: \"uint256[]\",\n },\n ],\n name: \"balanceOfBatch\",\n outputs: [\n {\n internalType: \"uint256[]\",\n name: \"\",\n type: \"uint256[]\",\n },\n ],\n stateMutability: \"view\",\n type: \"function\",\n },\n {\n inputs: [\n {\n internalType: \"address\",\n name: \"account\",\n type: \"address\",\n },\n {\n internalType: \"address\",\n name: \"operator\",\n type: \"address\",\n },\n ],\n name: \"isApprovedForAll\",\n outputs: [\n {\n internalType: \"bool\",\n name: \"\",\n type: \"bool\",\n },\n ],\n stateMutability: \"view\",\n type: \"function\",\n },\n {\n inputs: [\n {\n internalType: \"address\",\n name: \"from\",\n type: \"address\",\n },\n {\n internalType: \"address\",\n name: \"to\",\n type: \"address\",\n },\n {\n internalType: \"uint256[]\",\n name: \"ids\",\n type: \"uint256[]\",\n },\n {\n internalType: \"uint256[]\",\n name: \"amounts\",\n type: \"uint256[]\",\n },\n {\n internalType: \"bytes\",\n name: \"data\",\n type: \"bytes\",\n },\n ],\n name: \"safeBatchTransferFrom\",\n outputs: [],\n stateMutability: \"nonpayable\",\n type: \"function\",\n },\n {\n inputs: [\n {\n internalType: \"address\",\n name: \"from\",\n type: \"address\",\n },\n {\n internalType: \"address\",\n name: \"to\",\n type: \"address\",\n },\n {\n internalType: \"uint256\",\n name: \"id\",\n type: \"uint256\",\n },\n {\n internalType: \"uint256\",\n name: \"amount\",\n type: \"uint256\",\n },\n {\n internalType: \"bytes\",\n name: \"data\",\n type: \"bytes\",\n },\n ],\n name: \"safeTransferFrom\",\n outputs: [],\n stateMutability: \"nonpayable\",\n type: \"function\",\n },\n {\n inputs: [\n {\n internalType: \"address\",\n name: \"operator\",\n type: \"address\",\n },\n {\n internalType: \"bool\",\n name: \"approved\",\n type: \"bool\",\n },\n ],\n name: \"setApprovalForAll\",\n outputs: [],\n stateMutability: \"nonpayable\",\n type: \"function\",\n },\n {\n inputs: [\n {\n internalType: \"bytes4\",\n name: \"interfaceId\",\n type: \"bytes4\",\n },\n ],\n name: \"supportsInterface\",\n outputs: [\n {\n internalType: \"bool\",\n name: \"\",\n type: \"bool\",\n },\n ],\n stateMutability: \"view\",\n type: \"function\",\n },\n {\n inputs: [\n {\n internalType: \"uint256\",\n name: \"id\",\n type: \"uint256\",\n },\n ],\n name: \"uri\",\n outputs: [\n {\n internalType: \"string\",\n name: \"\",\n type: \"string\",\n },\n ],\n stateMutability: \"view\",\n type: \"function\",\n },\n];\n\nexport class ERC1155__factory {\n static readonly abi = _abi;\n static createInterface(): ERC1155Interface {\n return new utils.Interface(_abi) as ERC1155Interface;\n }\n static connect(\n address: string,\n signerOrProvider: Signer | Provider\n ): ERC1155 {\n return new Contract(address, _abi, signerOrProvider) as ERC1155;\n }\n}\n"]}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import type { Provider } from "@ethersproject/providers";
|
|
3
|
+
import type { ERC721, ERC721Interface } from "../ERC721";
|
|
4
|
+
export declare class ERC721__factory {
|
|
5
|
+
static readonly abi: ({
|
|
6
|
+
anonymous: boolean;
|
|
7
|
+
inputs: {
|
|
8
|
+
indexed: boolean;
|
|
9
|
+
internalType: string;
|
|
10
|
+
name: string;
|
|
11
|
+
type: string;
|
|
12
|
+
}[];
|
|
13
|
+
name: string;
|
|
14
|
+
type: string;
|
|
15
|
+
constant?: undefined;
|
|
16
|
+
outputs?: undefined;
|
|
17
|
+
payable?: undefined;
|
|
18
|
+
stateMutability?: undefined;
|
|
19
|
+
} | {
|
|
20
|
+
constant: boolean;
|
|
21
|
+
inputs: never[];
|
|
22
|
+
name: string;
|
|
23
|
+
outputs: {
|
|
24
|
+
name: string;
|
|
25
|
+
type: string;
|
|
26
|
+
}[];
|
|
27
|
+
payable: boolean;
|
|
28
|
+
stateMutability: string;
|
|
29
|
+
type: string;
|
|
30
|
+
anonymous?: undefined;
|
|
31
|
+
} | {
|
|
32
|
+
inputs: {
|
|
33
|
+
internalType: string;
|
|
34
|
+
name: string;
|
|
35
|
+
type: string;
|
|
36
|
+
}[];
|
|
37
|
+
name: string;
|
|
38
|
+
outputs: {
|
|
39
|
+
internalType: string;
|
|
40
|
+
name: string;
|
|
41
|
+
type: string;
|
|
42
|
+
}[];
|
|
43
|
+
stateMutability: string;
|
|
44
|
+
type: string;
|
|
45
|
+
anonymous?: undefined;
|
|
46
|
+
constant?: undefined;
|
|
47
|
+
payable?: undefined;
|
|
48
|
+
})[];
|
|
49
|
+
static createInterface(): ERC721Interface;
|
|
50
|
+
static connect(address: string, signerOrProvider: Signer | Provider): ERC721;
|
|
51
|
+
}
|