@sentio/sdk 1.30.3 → 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/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 +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/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 +8 -2
- package/src/gen/chainquery/protos/chainquery.ts +18 -1
- package/src/gen/processor/protos/processor.ts +88 -1
- package/src/service.ts +71 -44
- package/src/testing/test-processor-server.ts +71 -5
|
@@ -0,0 +1,364 @@
|
|
|
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.ERC721__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: "owner",
|
|
16
|
+
type: "address",
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
indexed: true,
|
|
20
|
+
internalType: "address",
|
|
21
|
+
name: "approved",
|
|
22
|
+
type: "address",
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
indexed: true,
|
|
26
|
+
internalType: "uint256",
|
|
27
|
+
name: "tokenId",
|
|
28
|
+
type: "uint256",
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
name: "Approval",
|
|
32
|
+
type: "event",
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
anonymous: false,
|
|
36
|
+
inputs: [
|
|
37
|
+
{
|
|
38
|
+
indexed: true,
|
|
39
|
+
internalType: "address",
|
|
40
|
+
name: "owner",
|
|
41
|
+
type: "address",
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
indexed: true,
|
|
45
|
+
internalType: "address",
|
|
46
|
+
name: "operator",
|
|
47
|
+
type: "address",
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
indexed: false,
|
|
51
|
+
internalType: "bool",
|
|
52
|
+
name: "approved",
|
|
53
|
+
type: "bool",
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
name: "ApprovalForAll",
|
|
57
|
+
type: "event",
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
anonymous: false,
|
|
61
|
+
inputs: [
|
|
62
|
+
{
|
|
63
|
+
indexed: true,
|
|
64
|
+
internalType: "address",
|
|
65
|
+
name: "from",
|
|
66
|
+
type: "address",
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
indexed: true,
|
|
70
|
+
internalType: "address",
|
|
71
|
+
name: "to",
|
|
72
|
+
type: "address",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
indexed: true,
|
|
76
|
+
internalType: "uint256",
|
|
77
|
+
name: "tokenId",
|
|
78
|
+
type: "uint256",
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
name: "Transfer",
|
|
82
|
+
type: "event",
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
inputs: [
|
|
86
|
+
{
|
|
87
|
+
internalType: "address",
|
|
88
|
+
name: "to",
|
|
89
|
+
type: "address",
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
internalType: "uint256",
|
|
93
|
+
name: "tokenId",
|
|
94
|
+
type: "uint256",
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
name: "approve",
|
|
98
|
+
outputs: [],
|
|
99
|
+
stateMutability: "nonpayable",
|
|
100
|
+
type: "function",
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
constant: true,
|
|
104
|
+
inputs: [],
|
|
105
|
+
name: "totalSupply",
|
|
106
|
+
outputs: [
|
|
107
|
+
{
|
|
108
|
+
name: "",
|
|
109
|
+
type: "uint256",
|
|
110
|
+
},
|
|
111
|
+
],
|
|
112
|
+
payable: false,
|
|
113
|
+
stateMutability: "view",
|
|
114
|
+
type: "function",
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
inputs: [
|
|
118
|
+
{
|
|
119
|
+
internalType: "address",
|
|
120
|
+
name: "owner",
|
|
121
|
+
type: "address",
|
|
122
|
+
},
|
|
123
|
+
],
|
|
124
|
+
name: "balanceOf",
|
|
125
|
+
outputs: [
|
|
126
|
+
{
|
|
127
|
+
internalType: "uint256",
|
|
128
|
+
name: "balance",
|
|
129
|
+
type: "uint256",
|
|
130
|
+
},
|
|
131
|
+
],
|
|
132
|
+
stateMutability: "view",
|
|
133
|
+
type: "function",
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
inputs: [
|
|
137
|
+
{
|
|
138
|
+
internalType: "uint256",
|
|
139
|
+
name: "tokenId",
|
|
140
|
+
type: "uint256",
|
|
141
|
+
},
|
|
142
|
+
],
|
|
143
|
+
name: "getApproved",
|
|
144
|
+
outputs: [
|
|
145
|
+
{
|
|
146
|
+
internalType: "address",
|
|
147
|
+
name: "operator",
|
|
148
|
+
type: "address",
|
|
149
|
+
},
|
|
150
|
+
],
|
|
151
|
+
stateMutability: "view",
|
|
152
|
+
type: "function",
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
inputs: [
|
|
156
|
+
{
|
|
157
|
+
internalType: "address",
|
|
158
|
+
name: "owner",
|
|
159
|
+
type: "address",
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
internalType: "address",
|
|
163
|
+
name: "operator",
|
|
164
|
+
type: "address",
|
|
165
|
+
},
|
|
166
|
+
],
|
|
167
|
+
name: "isApprovedForAll",
|
|
168
|
+
outputs: [
|
|
169
|
+
{
|
|
170
|
+
internalType: "bool",
|
|
171
|
+
name: "",
|
|
172
|
+
type: "bool",
|
|
173
|
+
},
|
|
174
|
+
],
|
|
175
|
+
stateMutability: "view",
|
|
176
|
+
type: "function",
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
inputs: [],
|
|
180
|
+
name: "name",
|
|
181
|
+
outputs: [
|
|
182
|
+
{
|
|
183
|
+
internalType: "string",
|
|
184
|
+
name: "",
|
|
185
|
+
type: "string",
|
|
186
|
+
},
|
|
187
|
+
],
|
|
188
|
+
stateMutability: "view",
|
|
189
|
+
type: "function",
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
inputs: [
|
|
193
|
+
{
|
|
194
|
+
internalType: "uint256",
|
|
195
|
+
name: "tokenId",
|
|
196
|
+
type: "uint256",
|
|
197
|
+
},
|
|
198
|
+
],
|
|
199
|
+
name: "ownerOf",
|
|
200
|
+
outputs: [
|
|
201
|
+
{
|
|
202
|
+
internalType: "address",
|
|
203
|
+
name: "owner",
|
|
204
|
+
type: "address",
|
|
205
|
+
},
|
|
206
|
+
],
|
|
207
|
+
stateMutability: "view",
|
|
208
|
+
type: "function",
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
inputs: [
|
|
212
|
+
{
|
|
213
|
+
internalType: "address",
|
|
214
|
+
name: "from",
|
|
215
|
+
type: "address",
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
internalType: "address",
|
|
219
|
+
name: "to",
|
|
220
|
+
type: "address",
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
internalType: "uint256",
|
|
224
|
+
name: "tokenId",
|
|
225
|
+
type: "uint256",
|
|
226
|
+
},
|
|
227
|
+
],
|
|
228
|
+
name: "safeTransferFrom",
|
|
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: "tokenId",
|
|
248
|
+
type: "uint256",
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
internalType: "bytes",
|
|
252
|
+
name: "data",
|
|
253
|
+
type: "bytes",
|
|
254
|
+
},
|
|
255
|
+
],
|
|
256
|
+
name: "safeTransferFrom",
|
|
257
|
+
outputs: [],
|
|
258
|
+
stateMutability: "nonpayable",
|
|
259
|
+
type: "function",
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
inputs: [
|
|
263
|
+
{
|
|
264
|
+
internalType: "address",
|
|
265
|
+
name: "operator",
|
|
266
|
+
type: "address",
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
internalType: "bool",
|
|
270
|
+
name: "_approved",
|
|
271
|
+
type: "bool",
|
|
272
|
+
},
|
|
273
|
+
],
|
|
274
|
+
name: "setApprovalForAll",
|
|
275
|
+
outputs: [],
|
|
276
|
+
stateMutability: "nonpayable",
|
|
277
|
+
type: "function",
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
inputs: [
|
|
281
|
+
{
|
|
282
|
+
internalType: "bytes4",
|
|
283
|
+
name: "interfaceId",
|
|
284
|
+
type: "bytes4",
|
|
285
|
+
},
|
|
286
|
+
],
|
|
287
|
+
name: "supportsInterface",
|
|
288
|
+
outputs: [
|
|
289
|
+
{
|
|
290
|
+
internalType: "bool",
|
|
291
|
+
name: "",
|
|
292
|
+
type: "bool",
|
|
293
|
+
},
|
|
294
|
+
],
|
|
295
|
+
stateMutability: "view",
|
|
296
|
+
type: "function",
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
inputs: [],
|
|
300
|
+
name: "symbol",
|
|
301
|
+
outputs: [
|
|
302
|
+
{
|
|
303
|
+
internalType: "string",
|
|
304
|
+
name: "",
|
|
305
|
+
type: "string",
|
|
306
|
+
},
|
|
307
|
+
],
|
|
308
|
+
stateMutability: "view",
|
|
309
|
+
type: "function",
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
inputs: [
|
|
313
|
+
{
|
|
314
|
+
internalType: "uint256",
|
|
315
|
+
name: "tokenId",
|
|
316
|
+
type: "uint256",
|
|
317
|
+
},
|
|
318
|
+
],
|
|
319
|
+
name: "tokenURI",
|
|
320
|
+
outputs: [
|
|
321
|
+
{
|
|
322
|
+
internalType: "string",
|
|
323
|
+
name: "",
|
|
324
|
+
type: "string",
|
|
325
|
+
},
|
|
326
|
+
],
|
|
327
|
+
stateMutability: "view",
|
|
328
|
+
type: "function",
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
inputs: [
|
|
332
|
+
{
|
|
333
|
+
internalType: "address",
|
|
334
|
+
name: "from",
|
|
335
|
+
type: "address",
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
internalType: "address",
|
|
339
|
+
name: "to",
|
|
340
|
+
type: "address",
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
internalType: "uint256",
|
|
344
|
+
name: "tokenId",
|
|
345
|
+
type: "uint256",
|
|
346
|
+
},
|
|
347
|
+
],
|
|
348
|
+
name: "transferFrom",
|
|
349
|
+
outputs: [],
|
|
350
|
+
stateMutability: "nonpayable",
|
|
351
|
+
type: "function",
|
|
352
|
+
},
|
|
353
|
+
];
|
|
354
|
+
class ERC721__factory {
|
|
355
|
+
static abi = _abi;
|
|
356
|
+
static createInterface() {
|
|
357
|
+
return new ethers_1.utils.Interface(_abi);
|
|
358
|
+
}
|
|
359
|
+
static connect(address, signerOrProvider) {
|
|
360
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
exports.ERC721__factory = ERC721__factory;
|
|
364
|
+
//# sourceMappingURL=ERC721__factory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ERC721__factory.js","sourceRoot":"","sources":["../../../../src/builtin/internal/factories/ERC721__factory.ts"],"names":[],"mappings":";AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;;;AAEpB,mCAAiD;AAIjD,MAAM,IAAI,GAAG;IACX;QACE,SAAS,EAAE,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D;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,UAAU;QAChB,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;IACD;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,IAAI;gBACV,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE,EAAE;QACX,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,UAAU;KACjB;CACF,CAAC;AAEF,MAAa,eAAe;IAC1B,MAAM,CAAU,GAAG,GAAG,IAAI,CAAC;IAC3B,MAAM,CAAC,eAAe;QACpB,OAAO,IAAI,cAAK,CAAC,SAAS,CAAC,IAAI,CAAoB,CAAC;IACtD,CAAC;IACD,MAAM,CAAC,OAAO,CAAC,OAAe,EAAE,gBAAmC;QACjE,OAAO,IAAI,iBAAQ,CAAC,OAAO,EAAE,IAAI,EAAE,gBAAgB,CAAW,CAAC;IACjE,CAAC;;AAPH,0CAQC","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 { ERC721, ERC721Interface } from \"../ERC721\";\n\nconst _abi = [\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: \"address\",\n name: \"owner\",\n type: \"address\",\n },\n {\n indexed: true,\n internalType: \"address\",\n name: \"approved\",\n type: \"address\",\n },\n {\n indexed: true,\n internalType: \"uint256\",\n name: \"tokenId\",\n type: \"uint256\",\n },\n ],\n name: \"Approval\",\n type: \"event\",\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: \"address\",\n name: \"owner\",\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: \"from\",\n type: \"address\",\n },\n {\n indexed: true,\n internalType: \"address\",\n name: \"to\",\n type: \"address\",\n },\n {\n indexed: true,\n internalType: \"uint256\",\n name: \"tokenId\",\n type: \"uint256\",\n },\n ],\n name: \"Transfer\",\n type: \"event\",\n },\n {\n inputs: [\n {\n internalType: \"address\",\n name: \"to\",\n type: \"address\",\n },\n {\n internalType: \"uint256\",\n name: \"tokenId\",\n type: \"uint256\",\n },\n ],\n name: \"approve\",\n outputs: [],\n stateMutability: \"nonpayable\",\n type: \"function\",\n },\n {\n constant: true,\n inputs: [],\n name: \"totalSupply\",\n outputs: [\n {\n name: \"\",\n type: \"uint256\",\n },\n ],\n payable: false,\n stateMutability: \"view\",\n type: \"function\",\n },\n {\n inputs: [\n {\n internalType: \"address\",\n name: \"owner\",\n type: \"address\",\n },\n ],\n name: \"balanceOf\",\n outputs: [\n {\n internalType: \"uint256\",\n name: \"balance\",\n type: \"uint256\",\n },\n ],\n stateMutability: \"view\",\n type: \"function\",\n },\n {\n inputs: [\n {\n internalType: \"uint256\",\n name: \"tokenId\",\n type: \"uint256\",\n },\n ],\n name: \"getApproved\",\n outputs: [\n {\n internalType: \"address\",\n name: \"operator\",\n type: \"address\",\n },\n ],\n stateMutability: \"view\",\n type: \"function\",\n },\n {\n inputs: [\n {\n internalType: \"address\",\n name: \"owner\",\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 name: \"name\",\n outputs: [\n {\n internalType: \"string\",\n name: \"\",\n type: \"string\",\n },\n ],\n stateMutability: \"view\",\n type: \"function\",\n },\n {\n inputs: [\n {\n internalType: \"uint256\",\n name: \"tokenId\",\n type: \"uint256\",\n },\n ],\n name: \"ownerOf\",\n outputs: [\n {\n internalType: \"address\",\n name: \"owner\",\n type: \"address\",\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: \"tokenId\",\n type: \"uint256\",\n },\n ],\n name: \"safeTransferFrom\",\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: \"tokenId\",\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 name: \"symbol\",\n outputs: [\n {\n internalType: \"string\",\n name: \"\",\n type: \"string\",\n },\n ],\n stateMutability: \"view\",\n type: \"function\",\n },\n {\n inputs: [\n {\n internalType: \"uint256\",\n name: \"tokenId\",\n type: \"uint256\",\n },\n ],\n name: \"tokenURI\",\n outputs: [\n {\n internalType: \"string\",\n name: \"\",\n type: \"string\",\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: \"tokenId\",\n type: \"uint256\",\n },\n ],\n name: \"transferFrom\",\n outputs: [],\n stateMutability: \"nonpayable\",\n type: \"function\",\n },\n];\n\nexport class ERC721__factory {\n static readonly abi = _abi;\n static createInterface(): ERC721Interface {\n return new utils.Interface(_abi) as ERC721Interface;\n }\n static connect(address: string, signerOrProvider: Signer | Provider): ERC721 {\n return new Contract(address, _abi, signerOrProvider) as ERC721;\n }\n}\n"]}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { EACAggregatorProxy__factory } from "./EACAggregatorProxy__factory";
|
|
2
|
+
export { ERC1155__factory } from "./ERC1155__factory";
|
|
2
3
|
export { ERC20__factory } from "./ERC20__factory";
|
|
3
4
|
export { ERC20Bytes__factory } from "./ERC20Bytes__factory";
|
|
5
|
+
export { ERC721__factory } from "./ERC721__factory";
|
|
4
6
|
export { WETH9__factory } from "./WETH9__factory";
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WETH9__factory = exports.ERC20Bytes__factory = exports.ERC20__factory = exports.EACAggregatorProxy__factory = void 0;
|
|
3
|
+
exports.WETH9__factory = exports.ERC721__factory = exports.ERC20Bytes__factory = exports.ERC20__factory = exports.ERC1155__factory = exports.EACAggregatorProxy__factory = void 0;
|
|
4
4
|
/* Autogenerated file. Do not edit manually. */
|
|
5
5
|
/* tslint:disable */
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
var EACAggregatorProxy__factory_1 = require("./EACAggregatorProxy__factory");
|
|
8
8
|
Object.defineProperty(exports, "EACAggregatorProxy__factory", { enumerable: true, get: function () { return EACAggregatorProxy__factory_1.EACAggregatorProxy__factory; } });
|
|
9
|
+
var ERC1155__factory_1 = require("./ERC1155__factory");
|
|
10
|
+
Object.defineProperty(exports, "ERC1155__factory", { enumerable: true, get: function () { return ERC1155__factory_1.ERC1155__factory; } });
|
|
9
11
|
var ERC20__factory_1 = require("./ERC20__factory");
|
|
10
12
|
Object.defineProperty(exports, "ERC20__factory", { enumerable: true, get: function () { return ERC20__factory_1.ERC20__factory; } });
|
|
11
13
|
var ERC20Bytes__factory_1 = require("./ERC20Bytes__factory");
|
|
12
14
|
Object.defineProperty(exports, "ERC20Bytes__factory", { enumerable: true, get: function () { return ERC20Bytes__factory_1.ERC20Bytes__factory; } });
|
|
15
|
+
var ERC721__factory_1 = require("./ERC721__factory");
|
|
16
|
+
Object.defineProperty(exports, "ERC721__factory", { enumerable: true, get: function () { return ERC721__factory_1.ERC721__factory; } });
|
|
13
17
|
var WETH9__factory_1 = require("./WETH9__factory");
|
|
14
18
|
Object.defineProperty(exports, "WETH9__factory", { enumerable: true, get: function () { return WETH9__factory_1.WETH9__factory; } });
|
|
15
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/builtin/internal/factories/index.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;AACpB,6EAA4E;AAAnE,0IAAA,2BAA2B,OAAA;AACpC,mDAAkD;AAAzC,gHAAA,cAAc,OAAA;AACvB,6DAA4D;AAAnD,0HAAA,mBAAmB,OAAA;AAC5B,mDAAkD;AAAzC,gHAAA,cAAc,OAAA","sourcesContent":["/* Autogenerated file. Do not edit manually. */\n/* tslint:disable */\n/* eslint-disable */\nexport { EACAggregatorProxy__factory } from \"./EACAggregatorProxy__factory\";\nexport { ERC20__factory } from \"./ERC20__factory\";\nexport { ERC20Bytes__factory } from \"./ERC20Bytes__factory\";\nexport { WETH9__factory } from \"./WETH9__factory\";\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/builtin/internal/factories/index.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;AACpB,6EAA4E;AAAnE,0IAAA,2BAA2B,OAAA;AACpC,uDAAsD;AAA7C,oHAAA,gBAAgB,OAAA;AACzB,mDAAkD;AAAzC,gHAAA,cAAc,OAAA;AACvB,6DAA4D;AAAnD,0HAAA,mBAAmB,OAAA;AAC5B,qDAAoD;AAA3C,kHAAA,eAAe,OAAA;AACxB,mDAAkD;AAAzC,gHAAA,cAAc,OAAA","sourcesContent":["/* Autogenerated file. Do not edit manually. */\n/* tslint:disable */\n/* eslint-disable */\nexport { EACAggregatorProxy__factory } from \"./EACAggregatorProxy__factory\";\nexport { ERC1155__factory } from \"./ERC1155__factory\";\nexport { ERC20__factory } from \"./ERC20__factory\";\nexport { ERC20Bytes__factory } from \"./ERC20Bytes__factory\";\nexport { ERC721__factory } from \"./ERC721__factory\";\nexport { WETH9__factory } from \"./WETH9__factory\";\n"]}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
export type { EACAggregatorProxy } from "./EACAggregatorProxy";
|
|
2
|
+
export type { ERC1155 } from "./ERC1155";
|
|
2
3
|
export type { ERC20 } from "./ERC20";
|
|
3
4
|
export type { ERC20Bytes } from "./ERC20Bytes";
|
|
5
|
+
export type { ERC721 } from "./ERC721";
|
|
4
6
|
export type { WETH9 } from "./WETH9";
|
|
5
7
|
export * as factories from "./factories";
|
|
6
8
|
export { EACAggregatorProxy__factory } from "./factories/EACAggregatorProxy__factory";
|
|
9
|
+
export { ERC1155__factory } from "./factories/ERC1155__factory";
|
|
7
10
|
export { ERC20__factory } from "./factories/ERC20__factory";
|
|
8
11
|
export { ERC20Bytes__factory } from "./factories/ERC20Bytes__factory";
|
|
12
|
+
export { ERC721__factory } from "./factories/ERC721__factory";
|
|
9
13
|
export { WETH9__factory } from "./factories/WETH9__factory";
|
|
@@ -23,14 +23,18 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.WETH9__factory = exports.ERC20Bytes__factory = exports.ERC20__factory = exports.EACAggregatorProxy__factory = exports.factories = void 0;
|
|
26
|
+
exports.WETH9__factory = exports.ERC721__factory = exports.ERC20Bytes__factory = exports.ERC20__factory = exports.ERC1155__factory = exports.EACAggregatorProxy__factory = exports.factories = void 0;
|
|
27
27
|
exports.factories = __importStar(require("./factories"));
|
|
28
28
|
var EACAggregatorProxy__factory_1 = require("./factories/EACAggregatorProxy__factory");
|
|
29
29
|
Object.defineProperty(exports, "EACAggregatorProxy__factory", { enumerable: true, get: function () { return EACAggregatorProxy__factory_1.EACAggregatorProxy__factory; } });
|
|
30
|
+
var ERC1155__factory_1 = require("./factories/ERC1155__factory");
|
|
31
|
+
Object.defineProperty(exports, "ERC1155__factory", { enumerable: true, get: function () { return ERC1155__factory_1.ERC1155__factory; } });
|
|
30
32
|
var ERC20__factory_1 = require("./factories/ERC20__factory");
|
|
31
33
|
Object.defineProperty(exports, "ERC20__factory", { enumerable: true, get: function () { return ERC20__factory_1.ERC20__factory; } });
|
|
32
34
|
var ERC20Bytes__factory_1 = require("./factories/ERC20Bytes__factory");
|
|
33
35
|
Object.defineProperty(exports, "ERC20Bytes__factory", { enumerable: true, get: function () { return ERC20Bytes__factory_1.ERC20Bytes__factory; } });
|
|
36
|
+
var ERC721__factory_1 = require("./factories/ERC721__factory");
|
|
37
|
+
Object.defineProperty(exports, "ERC721__factory", { enumerable: true, get: function () { return ERC721__factory_1.ERC721__factory; } });
|
|
34
38
|
var WETH9__factory_1 = require("./factories/WETH9__factory");
|
|
35
39
|
Object.defineProperty(exports, "WETH9__factory", { enumerable: true, get: function () { return WETH9__factory_1.WETH9__factory; } });
|
|
36
40
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/builtin/internal/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/builtin/internal/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AASA,yDAAyC;AACzC,uFAAsF;AAA7E,0IAAA,2BAA2B,OAAA;AACpC,iEAAgE;AAAvD,oHAAA,gBAAgB,OAAA;AACzB,6DAA4D;AAAnD,gHAAA,cAAc,OAAA;AACvB,uEAAsE;AAA7D,0HAAA,mBAAmB,OAAA;AAC5B,+DAA8D;AAArD,kHAAA,eAAe,OAAA;AACxB,6DAA4D;AAAnD,gHAAA,cAAc,OAAA","sourcesContent":["/* Autogenerated file. Do not edit manually. */\n/* tslint:disable */\n/* eslint-disable */\nexport type { EACAggregatorProxy } from \"./EACAggregatorProxy\";\nexport type { ERC1155 } from \"./ERC1155\";\nexport type { ERC20 } from \"./ERC20\";\nexport type { ERC20Bytes } from \"./ERC20Bytes\";\nexport type { ERC721 } from \"./ERC721\";\nexport type { WETH9 } from \"./WETH9\";\nexport * as factories from \"./factories\";\nexport { EACAggregatorProxy__factory } from \"./factories/EACAggregatorProxy__factory\";\nexport { ERC1155__factory } from \"./factories/ERC1155__factory\";\nexport { ERC20__factory } from \"./factories/ERC20__factory\";\nexport { ERC20Bytes__factory } from \"./factories/ERC20Bytes__factory\";\nexport { ERC721__factory } from \"./factories/ERC721__factory\";\nexport { WETH9__factory } from \"./factories/WETH9__factory\";\n"]}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { ListStateStorage } from '../state/state-storage';
|
|
2
|
+
import { AccountBindOptions } from './bind-options';
|
|
3
|
+
import { TransferEvent as ERC20TransferEvent } from '../builtin/internal/ERC20';
|
|
4
|
+
import { TransferEvent as ERC721TransferEvent } from '../builtin/internal/ERC721';
|
|
5
|
+
import { AccountContext } from './context';
|
|
6
|
+
import { PromiseOrVoid } from '../promise-or-void';
|
|
7
|
+
import { Event } from '@ethersproject/contracts';
|
|
8
|
+
import { AddressOrTypeEventFilter, EventsHandler } from './base-processor';
|
|
9
|
+
export declare class AccountProcessorState extends ListStateStorage<AccountProcessor> {
|
|
10
|
+
static INSTANCE: AccountProcessorState;
|
|
11
|
+
}
|
|
12
|
+
export declare class AccountProcessor {
|
|
13
|
+
config: AccountBindOptions;
|
|
14
|
+
eventHandlers: EventsHandler[];
|
|
15
|
+
static bind(config: AccountBindOptions): AccountProcessor;
|
|
16
|
+
protected constructor(config: AccountBindOptions);
|
|
17
|
+
getChainId(): number;
|
|
18
|
+
/**
|
|
19
|
+
* Register custom handler function to process erc20 transfer event to this account
|
|
20
|
+
* @param handler custom handler function
|
|
21
|
+
* @param tokensAddresses all the erc20 token address to watch
|
|
22
|
+
*/
|
|
23
|
+
onERC20TransferIn(handler: (event: ERC20TransferEvent, ctx: AccountContext) => PromiseOrVoid, tokensAddresses?: string[]): this;
|
|
24
|
+
/**
|
|
25
|
+
* Register custom handler function to process erc20 transfer event from this account
|
|
26
|
+
* @param handler custom handler function
|
|
27
|
+
* @param tokensAddresses all the erc20 token address to watch
|
|
28
|
+
*/
|
|
29
|
+
onERC20TransferOut(handler: (event: ERC20TransferEvent, ctx: AccountContext) => PromiseOrVoid, tokensAddresses?: string[]): this;
|
|
30
|
+
/**
|
|
31
|
+
* Register custom handler function to process erc20 mint for this account
|
|
32
|
+
* @param handler custom handler function
|
|
33
|
+
* @param tokensAddresses all the erc20 token address to watch
|
|
34
|
+
*/
|
|
35
|
+
onERC20Minted(handler: (event: ERC20TransferEvent, ctx: AccountContext) => PromiseOrVoid, tokensAddresses?: string[]): this;
|
|
36
|
+
private onERC20;
|
|
37
|
+
/**
|
|
38
|
+
* Register custom handler function to process ERC721 transfer event to this account
|
|
39
|
+
* @param handler custom handler function
|
|
40
|
+
* @param collections all the ERC721 token address to watch, if not provided then watch all ERC721
|
|
41
|
+
*/
|
|
42
|
+
onERC721TransferIn(handler: (event: ERC721TransferEvent, ctx: AccountContext) => PromiseOrVoid, collections: string[]): this;
|
|
43
|
+
/**
|
|
44
|
+
* Register custom handler function to process ERC721 transfer event from this account
|
|
45
|
+
* @param handler custom handler function
|
|
46
|
+
* @param collections all the ERC721 token address to watch, if not provided then watch all ERC721
|
|
47
|
+
*/
|
|
48
|
+
onERC721TransferOut(handler: (event: ERC721TransferEvent, ctx: AccountContext) => PromiseOrVoid, collections: string[]): this;
|
|
49
|
+
/**
|
|
50
|
+
* Register custom handler function to process ERC721 mint for this account
|
|
51
|
+
* @param handler custom handler function
|
|
52
|
+
* @param collections all the ERC721 token address to watch, if not provided then watch all ERC721
|
|
53
|
+
*/
|
|
54
|
+
onERC721Minted(handler: (event: ERC721TransferEvent, ctx: AccountContext) => PromiseOrVoid, collections?: string[]): this;
|
|
55
|
+
private onERC721;
|
|
56
|
+
private onERC;
|
|
57
|
+
protected onEvent(handler: (event: Event, ctx: AccountContext) => PromiseOrVoid, filter: AddressOrTypeEventFilter | AddressOrTypeEventFilter[]): this;
|
|
58
|
+
}
|