@sentio/sdk 2.40.0-rc.17 → 2.40.0-rc.19
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/eth/account-processor.d.ts +21 -7
- package/lib/eth/account-processor.d.ts.map +1 -1
- package/lib/eth/account-processor.js +2 -2
- package/lib/eth/account-processor.js.map +1 -1
- package/lib/eth/base-processor-template.d.ts +24 -8
- package/lib/eth/base-processor-template.d.ts.map +1 -1
- package/lib/eth/base-processor-template.js.map +1 -1
- package/lib/eth/base-processor.d.ts +30 -10
- package/lib/eth/base-processor.d.ts.map +1 -1
- package/lib/eth/base-processor.js +6 -6
- package/lib/eth/base-processor.js.map +1 -1
- package/lib/eth/builtin/internal/eacaggregatorproxy-processor.d.ts +24 -8
- package/lib/eth/builtin/internal/eacaggregatorproxy-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/eacaggregatorproxy-processor.js +23 -23
- package/lib/eth/builtin/internal/eacaggregatorproxy-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc1155-processor.d.ts +24 -8
- package/lib/eth/builtin/internal/erc1155-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/erc1155-processor.js +8 -8
- package/lib/eth/builtin/internal/erc1155-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc20-processor.d.ts +18 -6
- package/lib/eth/builtin/internal/erc20-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/erc20-processor.js +18 -18
- package/lib/eth/builtin/internal/erc20-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc20bytes-processor.d.ts +12 -4
- package/lib/eth/builtin/internal/erc20bytes-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/erc20bytes-processor.js +9 -9
- package/lib/eth/builtin/internal/erc20bytes-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc721-processor.d.ts +18 -6
- package/lib/eth/builtin/internal/erc721-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/erc721-processor.js +14 -14
- package/lib/eth/builtin/internal/erc721-processor.js.map +1 -1
- package/lib/eth/builtin/internal/weth9-processor.d.ts +24 -8
- package/lib/eth/builtin/internal/weth9-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/weth9-processor.js +11 -11
- package/lib/eth/builtin/internal/weth9-processor.js.map +1 -1
- package/lib/eth/codegen/event-handler.js +1 -1
- package/lib/eth/codegen/function-calls.js +1 -1
- package/lib/eth/codegen/function-calls.js.map +1 -1
- package/lib/eth/eth-plugin.d.ts +27 -9
- package/lib/eth/eth-plugin.d.ts.map +1 -1
- package/lib/eth/eth-plugin.js +13 -13
- package/lib/eth/eth-plugin.js.map +1 -1
- package/package.json +3 -3
- package/src/eth/account-processor.ts +28 -12
- package/src/eth/base-processor-template.ts +16 -8
- package/src/eth/base-processor.ts +25 -16
- package/src/eth/builtin/internal/eacaggregatorproxy-processor.ts +39 -31
- package/src/eth/builtin/internal/erc1155-processor.ts +24 -16
- package/src/eth/builtin/internal/erc20-processor.ts +42 -24
- package/src/eth/builtin/internal/erc20bytes-processor.ts +29 -13
- package/src/eth/builtin/internal/erc721-processor.ts +26 -20
- package/src/eth/builtin/internal/weth9-processor.ts +27 -19
- package/src/eth/codegen/event-handler.ts +1 -1
- package/src/eth/codegen/function-calls.ts +1 -1
- package/src/eth/eth-plugin.ts +27 -22
@@ -200,7 +200,13 @@ export class ERC20ContractView extends ContractView<ERC20> {
|
|
200
200
|
const result = iface.decodeFunctionResult("allowance", ret).toArray();
|
201
201
|
return result.length == 1 ? result[0] : result;
|
202
202
|
}
|
203
|
-
console.
|
203
|
+
console.debug(
|
204
|
+
"missing eth call key:",
|
205
|
+
"allowance",
|
206
|
+
owner,
|
207
|
+
spender,
|
208
|
+
key
|
209
|
+
);
|
204
210
|
}
|
205
211
|
return await this.contract.getFunction("allowance(address,address)")(
|
206
212
|
owner,
|
@@ -236,7 +242,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
|
|
236
242
|
const result = iface.decodeFunctionResult("balanceOf", ret).toArray();
|
237
243
|
return result.length == 1 ? result[0] : result;
|
238
244
|
}
|
239
|
-
console.
|
245
|
+
console.debug("missing eth call key:", "balanceOf", account, key);
|
240
246
|
}
|
241
247
|
return await this.contract.getFunction("balanceOf(address)")(
|
242
248
|
account,
|
@@ -270,7 +276,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
|
|
270
276
|
const result = iface.decodeFunctionResult("decimals", ret).toArray();
|
271
277
|
return result.length == 1 ? result[0] : result;
|
272
278
|
}
|
273
|
-
console.
|
279
|
+
console.debug("missing eth call key:", "decimals", key);
|
274
280
|
}
|
275
281
|
return await this.contract.getFunction("decimals()")(overrides || {});
|
276
282
|
} catch (e) {
|
@@ -301,7 +307,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
|
|
301
307
|
const result = iface.decodeFunctionResult("locker", ret).toArray();
|
302
308
|
return result.length == 1 ? result[0] : result;
|
303
309
|
}
|
304
|
-
console.
|
310
|
+
console.debug("missing eth call key:", "locker", key);
|
305
311
|
}
|
306
312
|
return await this.contract.getFunction("locker()")(overrides || {});
|
307
313
|
} catch (e) {
|
@@ -330,7 +336,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
|
|
330
336
|
const result = iface.decodeFunctionResult("name", ret).toArray();
|
331
337
|
return result.length == 1 ? result[0] : result;
|
332
338
|
}
|
333
|
-
console.
|
339
|
+
console.debug("missing eth call key:", "name", key);
|
334
340
|
}
|
335
341
|
return await this.contract.getFunction("name()")(overrides || {});
|
336
342
|
} catch (e) {
|
@@ -361,7 +367,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
|
|
361
367
|
const result = iface.decodeFunctionResult("owner", ret).toArray();
|
362
368
|
return result.length == 1 ? result[0] : result;
|
363
369
|
}
|
364
|
-
console.
|
370
|
+
console.debug("missing eth call key:", "owner", key);
|
365
371
|
}
|
366
372
|
return await this.contract.getFunction("owner()")(overrides || {});
|
367
373
|
} catch (e) {
|
@@ -392,7 +398,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
|
|
392
398
|
const result = iface.decodeFunctionResult("symbol", ret).toArray();
|
393
399
|
return result.length == 1 ? result[0] : result;
|
394
400
|
}
|
395
|
-
console.
|
401
|
+
console.debug("missing eth call key:", "symbol", key);
|
396
402
|
}
|
397
403
|
return await this.contract.getFunction("symbol()")(overrides || {});
|
398
404
|
} catch (e) {
|
@@ -425,7 +431,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
|
|
425
431
|
.toArray();
|
426
432
|
return result.length == 1 ? result[0] : result;
|
427
433
|
}
|
428
|
-
console.
|
434
|
+
console.debug("missing eth call key:", "totalSupply", key);
|
429
435
|
}
|
430
436
|
return await this.contract.getFunction("totalSupply()")(overrides || {});
|
431
437
|
} catch (e) {
|
@@ -464,7 +470,13 @@ export class ERC20ContractView extends ContractView<ERC20> {
|
|
464
470
|
const result = iface.decodeFunctionResult("approve", ret).toArray();
|
465
471
|
return result.length == 1 ? result[0] : result;
|
466
472
|
}
|
467
|
-
console.
|
473
|
+
console.debug(
|
474
|
+
"missing eth call key:",
|
475
|
+
"approve",
|
476
|
+
spender,
|
477
|
+
amount,
|
478
|
+
key
|
479
|
+
);
|
468
480
|
}
|
469
481
|
return await this.contract
|
470
482
|
.getFunction("approve(address,uint256)")
|
@@ -497,7 +509,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
|
|
497
509
|
const result = iface.decodeFunctionResult("burn", ret).toArray();
|
498
510
|
return result.length == 1 ? result[0] : result;
|
499
511
|
}
|
500
|
-
console.
|
512
|
+
console.debug("missing eth call key:", "burn", amount, key);
|
501
513
|
}
|
502
514
|
return await this.contract
|
503
515
|
.getFunction("burn(uint256)")
|
@@ -536,7 +548,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
|
|
536
548
|
.toArray();
|
537
549
|
return result.length == 1 ? result[0] : result;
|
538
550
|
}
|
539
|
-
console.
|
551
|
+
console.debug(
|
540
552
|
"missing eth call key:",
|
541
553
|
"burnFrom",
|
542
554
|
account,
|
@@ -581,7 +593,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
|
|
581
593
|
.toArray();
|
582
594
|
return result.length == 1 ? result[0] : result;
|
583
595
|
}
|
584
|
-
console.
|
596
|
+
console.debug(
|
585
597
|
"missing eth call key:",
|
586
598
|
"decreaseAllowance",
|
587
599
|
spender,
|
@@ -626,7 +638,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
|
|
626
638
|
.toArray();
|
627
639
|
return result.length == 1 ? result[0] : result;
|
628
640
|
}
|
629
|
-
console.
|
641
|
+
console.debug(
|
630
642
|
"missing eth call key:",
|
631
643
|
"increaseAllowance",
|
632
644
|
spender,
|
@@ -666,7 +678,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
|
|
666
678
|
.toArray();
|
667
679
|
return result.length == 1 ? result[0] : result;
|
668
680
|
}
|
669
|
-
console.
|
681
|
+
console.debug("missing eth call key:", "renounceOwnership", key);
|
670
682
|
}
|
671
683
|
return await this.contract
|
672
684
|
.getFunction("renounceOwnership()")
|
@@ -701,7 +713,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
|
|
701
713
|
.toArray();
|
702
714
|
return result.length == 1 ? result[0] : result;
|
703
715
|
}
|
704
|
-
console.
|
716
|
+
console.debug("missing eth call key:", "setLocker", _locker, key);
|
705
717
|
}
|
706
718
|
return await this.contract
|
707
719
|
.getFunction("setLocker(address)")
|
@@ -740,7 +752,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
|
|
740
752
|
.toArray();
|
741
753
|
return result.length == 1 ? result[0] : result;
|
742
754
|
}
|
743
|
-
console.
|
755
|
+
console.debug(
|
744
756
|
"missing eth call key:",
|
745
757
|
"transfer",
|
746
758
|
recipient,
|
@@ -787,7 +799,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
|
|
787
799
|
.toArray();
|
788
800
|
return result.length == 1 ? result[0] : result;
|
789
801
|
}
|
790
|
-
console.
|
802
|
+
console.debug(
|
791
803
|
"missing eth call key:",
|
792
804
|
"transferFrom",
|
793
805
|
sender,
|
@@ -831,7 +843,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
|
|
831
843
|
.toArray();
|
832
844
|
return result.length == 1 ? result[0] : result;
|
833
845
|
}
|
834
|
-
console.
|
846
|
+
console.debug(
|
835
847
|
"missing eth call key:",
|
836
848
|
"transferOwnership",
|
837
849
|
newOwner,
|
@@ -1828,7 +1840,8 @@ export class ERC20Processor extends BaseProcessor<
|
|
1828
1840
|
fetchConfig?: Partial<EthFetchConfig>,
|
1829
1841
|
preprocessHandler?: (
|
1830
1842
|
event: ApprovalEvent,
|
1831
|
-
ctx: ERC20Context
|
1843
|
+
ctx: ERC20Context,
|
1844
|
+
preprocessStore: { [k: string]: any }
|
1832
1845
|
) => Promise<PreprocessResult>
|
1833
1846
|
): this {
|
1834
1847
|
if (!filter) {
|
@@ -1849,7 +1862,8 @@ export class ERC20Processor extends BaseProcessor<
|
|
1849
1862
|
fetchConfig?: Partial<EthFetchConfig>,
|
1850
1863
|
preprocessHandler?: (
|
1851
1864
|
event: OwnershipTransferredEvent,
|
1852
|
-
ctx: ERC20Context
|
1865
|
+
ctx: ERC20Context,
|
1866
|
+
preprocessStore: { [k: string]: any }
|
1853
1867
|
) => Promise<PreprocessResult>
|
1854
1868
|
): this {
|
1855
1869
|
if (!filter) {
|
@@ -1866,7 +1880,8 @@ export class ERC20Processor extends BaseProcessor<
|
|
1866
1880
|
fetchConfig?: Partial<EthFetchConfig>,
|
1867
1881
|
preprocessHandler?: (
|
1868
1882
|
event: TransferEvent,
|
1869
|
-
ctx: ERC20Context
|
1883
|
+
ctx: ERC20Context,
|
1884
|
+
preprocessStore: { [k: string]: any }
|
1870
1885
|
) => Promise<PreprocessResult>
|
1871
1886
|
): this {
|
1872
1887
|
if (!filter) {
|
@@ -2241,7 +2256,8 @@ export class ERC20ProcessorTemplate extends BaseProcessorTemplate<
|
|
2241
2256
|
fetchConfig?: Partial<EthFetchConfig>,
|
2242
2257
|
preprocessHandler?: (
|
2243
2258
|
event: ApprovalEvent,
|
2244
|
-
ctx: ERC20Context
|
2259
|
+
ctx: ERC20Context,
|
2260
|
+
preprocessStore: { [k: string]: any }
|
2245
2261
|
) => Promise<PreprocessResult>
|
2246
2262
|
): this {
|
2247
2263
|
if (!filter) {
|
@@ -2262,7 +2278,8 @@ export class ERC20ProcessorTemplate extends BaseProcessorTemplate<
|
|
2262
2278
|
fetchConfig?: Partial<EthFetchConfig>,
|
2263
2279
|
preprocessHandler?: (
|
2264
2280
|
event: OwnershipTransferredEvent,
|
2265
|
-
ctx: ERC20Context
|
2281
|
+
ctx: ERC20Context,
|
2282
|
+
preprocessStore: { [k: string]: any }
|
2266
2283
|
) => Promise<PreprocessResult>
|
2267
2284
|
): this {
|
2268
2285
|
if (!filter) {
|
@@ -2279,7 +2296,8 @@ export class ERC20ProcessorTemplate extends BaseProcessorTemplate<
|
|
2279
2296
|
fetchConfig?: Partial<EthFetchConfig>,
|
2280
2297
|
preprocessHandler?: (
|
2281
2298
|
event: TransferEvent,
|
2282
|
-
ctx: ERC20Context
|
2299
|
+
ctx: ERC20Context,
|
2300
|
+
preprocessStore: { [k: string]: any }
|
2283
2301
|
) => Promise<PreprocessResult>
|
2284
2302
|
): this {
|
2285
2303
|
if (!filter) {
|
@@ -125,7 +125,7 @@ export class ERC20BytesContractView extends ContractView<ERC20Bytes> {
|
|
125
125
|
const result = iface.decodeFunctionResult("name", ret).toArray();
|
126
126
|
return result.length == 1 ? result[0] : result;
|
127
127
|
}
|
128
|
-
console.
|
128
|
+
console.debug("missing eth call key:", "name", key);
|
129
129
|
}
|
130
130
|
return await this.contract.getFunction("name()")(overrides || {});
|
131
131
|
} catch (e) {
|
@@ -158,7 +158,7 @@ export class ERC20BytesContractView extends ContractView<ERC20Bytes> {
|
|
158
158
|
.toArray();
|
159
159
|
return result.length == 1 ? result[0] : result;
|
160
160
|
}
|
161
|
-
console.
|
161
|
+
console.debug("missing eth call key:", "totalSupply", key);
|
162
162
|
}
|
163
163
|
return await this.contract.getFunction("totalSupply()")(overrides || {});
|
164
164
|
} catch (e) {
|
@@ -189,7 +189,7 @@ export class ERC20BytesContractView extends ContractView<ERC20Bytes> {
|
|
189
189
|
const result = iface.decodeFunctionResult("decimals", ret).toArray();
|
190
190
|
return result.length == 1 ? result[0] : result;
|
191
191
|
}
|
192
|
-
console.
|
192
|
+
console.debug("missing eth call key:", "decimals", key);
|
193
193
|
}
|
194
194
|
return await this.contract.getFunction("decimals()")(overrides || {});
|
195
195
|
} catch (e) {
|
@@ -221,7 +221,7 @@ export class ERC20BytesContractView extends ContractView<ERC20Bytes> {
|
|
221
221
|
const result = iface.decodeFunctionResult("balanceOf", ret).toArray();
|
222
222
|
return result.length == 1 ? result[0] : result;
|
223
223
|
}
|
224
|
-
console.
|
224
|
+
console.debug("missing eth call key:", "balanceOf", who, key);
|
225
225
|
}
|
226
226
|
return await this.contract.getFunction("balanceOf(address)")(
|
227
227
|
who,
|
@@ -255,7 +255,7 @@ export class ERC20BytesContractView extends ContractView<ERC20Bytes> {
|
|
255
255
|
const result = iface.decodeFunctionResult("symbol", ret).toArray();
|
256
256
|
return result.length == 1 ? result[0] : result;
|
257
257
|
}
|
258
|
-
console.
|
258
|
+
console.debug("missing eth call key:", "symbol", key);
|
259
259
|
}
|
260
260
|
return await this.contract.getFunction("symbol()")(overrides || {});
|
261
261
|
} catch (e) {
|
@@ -291,7 +291,13 @@ export class ERC20BytesContractView extends ContractView<ERC20Bytes> {
|
|
291
291
|
const result = iface.decodeFunctionResult("allowance", ret).toArray();
|
292
292
|
return result.length == 1 ? result[0] : result;
|
293
293
|
}
|
294
|
-
console.
|
294
|
+
console.debug(
|
295
|
+
"missing eth call key:",
|
296
|
+
"allowance",
|
297
|
+
owner,
|
298
|
+
spender,
|
299
|
+
key
|
300
|
+
);
|
295
301
|
}
|
296
302
|
return await this.contract.getFunction("allowance(address,address)")(
|
297
303
|
owner,
|
@@ -334,7 +340,13 @@ export class ERC20BytesContractView extends ContractView<ERC20Bytes> {
|
|
334
340
|
const result = iface.decodeFunctionResult("approve", ret).toArray();
|
335
341
|
return result.length == 1 ? result[0] : result;
|
336
342
|
}
|
337
|
-
console.
|
343
|
+
console.debug(
|
344
|
+
"missing eth call key:",
|
345
|
+
"approve",
|
346
|
+
spender,
|
347
|
+
value,
|
348
|
+
key
|
349
|
+
);
|
338
350
|
}
|
339
351
|
return await this.contract
|
340
352
|
.getFunction("approve(address,uint256)")
|
@@ -375,7 +387,7 @@ export class ERC20BytesContractView extends ContractView<ERC20Bytes> {
|
|
375
387
|
.toArray();
|
376
388
|
return result.length == 1 ? result[0] : result;
|
377
389
|
}
|
378
|
-
console.
|
390
|
+
console.debug(
|
379
391
|
"missing eth call key:",
|
380
392
|
"transferFrom",
|
381
393
|
from,
|
@@ -418,7 +430,7 @@ export class ERC20BytesContractView extends ContractView<ERC20Bytes> {
|
|
418
430
|
.toArray();
|
419
431
|
return result.length == 1 ? result[0] : result;
|
420
432
|
}
|
421
|
-
console.
|
433
|
+
console.debug("missing eth call key:", "transfer", to, value, key);
|
422
434
|
}
|
423
435
|
return await this.contract
|
424
436
|
.getFunction("transfer(address,uint256)")
|
@@ -940,7 +952,8 @@ export class ERC20BytesProcessor extends BaseProcessor<
|
|
940
952
|
fetchConfig?: Partial<EthFetchConfig>,
|
941
953
|
preprocessHandler?: (
|
942
954
|
event: ApprovalEvent,
|
943
|
-
ctx: ERC20BytesContext
|
955
|
+
ctx: ERC20BytesContext,
|
956
|
+
preprocessStore: { [k: string]: any }
|
944
957
|
) => Promise<PreprocessResult>
|
945
958
|
): this {
|
946
959
|
if (!filter) {
|
@@ -959,7 +972,8 @@ export class ERC20BytesProcessor extends BaseProcessor<
|
|
959
972
|
fetchConfig?: Partial<EthFetchConfig>,
|
960
973
|
preprocessHandler?: (
|
961
974
|
event: TransferEvent,
|
962
|
-
ctx: ERC20BytesContext
|
975
|
+
ctx: ERC20BytesContext,
|
976
|
+
preprocessStore: { [k: string]: any }
|
963
977
|
) => Promise<PreprocessResult>
|
964
978
|
): this {
|
965
979
|
if (!filter) {
|
@@ -1184,7 +1198,8 @@ export class ERC20BytesProcessorTemplate extends BaseProcessorTemplate<
|
|
1184
1198
|
fetchConfig?: Partial<EthFetchConfig>,
|
1185
1199
|
preprocessHandler?: (
|
1186
1200
|
event: ApprovalEvent,
|
1187
|
-
ctx: ERC20BytesContext
|
1201
|
+
ctx: ERC20BytesContext,
|
1202
|
+
preprocessStore: { [k: string]: any }
|
1188
1203
|
) => Promise<PreprocessResult>
|
1189
1204
|
): this {
|
1190
1205
|
if (!filter) {
|
@@ -1203,7 +1218,8 @@ export class ERC20BytesProcessorTemplate extends BaseProcessorTemplate<
|
|
1203
1218
|
fetchConfig?: Partial<EthFetchConfig>,
|
1204
1219
|
preprocessHandler?: (
|
1205
1220
|
event: TransferEvent,
|
1206
|
-
ctx: ERC20BytesContext
|
1221
|
+
ctx: ERC20BytesContext,
|
1222
|
+
preprocessStore: { [k: string]: any }
|
1207
1223
|
) => Promise<PreprocessResult>
|
1208
1224
|
): this {
|
1209
1225
|
if (!filter) {
|
@@ -181,7 +181,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
|
|
181
181
|
.toArray();
|
182
182
|
return result.length == 1 ? result[0] : result;
|
183
183
|
}
|
184
|
-
console.
|
184
|
+
console.debug("missing eth call key:", "totalSupply", key);
|
185
185
|
}
|
186
186
|
return await this.contract.getFunction("totalSupply()")(overrides || {});
|
187
187
|
} catch (e) {
|
@@ -213,7 +213,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
|
|
213
213
|
const result = iface.decodeFunctionResult("balanceOf", ret).toArray();
|
214
214
|
return result.length == 1 ? result[0] : result;
|
215
215
|
}
|
216
|
-
console.
|
216
|
+
console.debug("missing eth call key:", "balanceOf", owner, key);
|
217
217
|
}
|
218
218
|
return await this.contract.getFunction("balanceOf(address)")(
|
219
219
|
owner,
|
@@ -250,7 +250,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
|
|
250
250
|
.toArray();
|
251
251
|
return result.length == 1 ? result[0] : result;
|
252
252
|
}
|
253
|
-
console.
|
253
|
+
console.debug("missing eth call key:", "getApproved", tokenId, key);
|
254
254
|
}
|
255
255
|
return await this.contract.getFunction("getApproved(uint256)")(
|
256
256
|
tokenId,
|
@@ -291,7 +291,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
|
|
291
291
|
.toArray();
|
292
292
|
return result.length == 1 ? result[0] : result;
|
293
293
|
}
|
294
|
-
console.
|
294
|
+
console.debug(
|
295
295
|
"missing eth call key:",
|
296
296
|
"isApprovedForAll",
|
297
297
|
owner,
|
@@ -328,7 +328,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
|
|
328
328
|
const result = iface.decodeFunctionResult("name", ret).toArray();
|
329
329
|
return result.length == 1 ? result[0] : result;
|
330
330
|
}
|
331
|
-
console.
|
331
|
+
console.debug("missing eth call key:", "name", key);
|
332
332
|
}
|
333
333
|
return await this.contract.getFunction("name()")(overrides || {});
|
334
334
|
} catch (e) {
|
@@ -360,7 +360,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
|
|
360
360
|
const result = iface.decodeFunctionResult("ownerOf", ret).toArray();
|
361
361
|
return result.length == 1 ? result[0] : result;
|
362
362
|
}
|
363
|
-
console.
|
363
|
+
console.debug("missing eth call key:", "ownerOf", tokenId, key);
|
364
364
|
}
|
365
365
|
return await this.contract.getFunction("ownerOf(uint256)")(
|
366
366
|
tokenId,
|
@@ -399,7 +399,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
|
|
399
399
|
.toArray();
|
400
400
|
return result.length == 1 ? result[0] : result;
|
401
401
|
}
|
402
|
-
console.
|
402
|
+
console.debug(
|
403
403
|
"missing eth call key:",
|
404
404
|
"supportsInterface",
|
405
405
|
interfaceId,
|
@@ -438,7 +438,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
|
|
438
438
|
const result = iface.decodeFunctionResult("symbol", ret).toArray();
|
439
439
|
return result.length == 1 ? result[0] : result;
|
440
440
|
}
|
441
|
-
console.
|
441
|
+
console.debug("missing eth call key:", "symbol", key);
|
442
442
|
}
|
443
443
|
return await this.contract.getFunction("symbol()")(overrides || {});
|
444
444
|
} catch (e) {
|
@@ -470,7 +470,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
|
|
470
470
|
const result = iface.decodeFunctionResult("tokenURI", ret).toArray();
|
471
471
|
return result.length == 1 ? result[0] : result;
|
472
472
|
}
|
473
|
-
console.
|
473
|
+
console.debug("missing eth call key:", "tokenURI", tokenId, key);
|
474
474
|
}
|
475
475
|
return await this.contract.getFunction("tokenURI(uint256)")(
|
476
476
|
tokenId,
|
@@ -509,7 +509,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
|
|
509
509
|
const result = iface.decodeFunctionResult("approve", ret).toArray();
|
510
510
|
return result.length == 1 ? result[0] : result;
|
511
511
|
}
|
512
|
-
console.
|
512
|
+
console.debug("missing eth call key:", "approve", to, tokenId, key);
|
513
513
|
}
|
514
514
|
return await this.contract
|
515
515
|
.getFunction("approve(address,uint256)")
|
@@ -550,7 +550,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
|
|
550
550
|
.toArray();
|
551
551
|
return result.length == 1 ? result[0] : result;
|
552
552
|
}
|
553
|
-
console.
|
553
|
+
console.debug(
|
554
554
|
"missing eth call key:",
|
555
555
|
"safeTransferFrom",
|
556
556
|
from,
|
@@ -600,7 +600,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
|
|
600
600
|
.toArray();
|
601
601
|
return result.length == 1 ? result[0] : result;
|
602
602
|
}
|
603
|
-
console.
|
603
|
+
console.debug(
|
604
604
|
"missing eth call key:",
|
605
605
|
"safeTransferFrom",
|
606
606
|
from,
|
@@ -647,7 +647,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
|
|
647
647
|
.toArray();
|
648
648
|
return result.length == 1 ? result[0] : result;
|
649
649
|
}
|
650
|
-
console.
|
650
|
+
console.debug(
|
651
651
|
"missing eth call key:",
|
652
652
|
"setApprovalForAll",
|
653
653
|
operator,
|
@@ -694,7 +694,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
|
|
694
694
|
.toArray();
|
695
695
|
return result.length == 1 ? result[0] : result;
|
696
696
|
}
|
697
|
-
console.
|
697
|
+
console.debug(
|
698
698
|
"missing eth call key:",
|
699
699
|
"transferFrom",
|
700
700
|
from,
|
@@ -1550,7 +1550,8 @@ export class ERC721Processor extends BaseProcessor<
|
|
1550
1550
|
fetchConfig?: Partial<EthFetchConfig>,
|
1551
1551
|
preprocessHandler?: (
|
1552
1552
|
event: ApprovalEvent,
|
1553
|
-
ctx: ERC721Context
|
1553
|
+
ctx: ERC721Context,
|
1554
|
+
preprocessStore: { [k: string]: any }
|
1554
1555
|
) => Promise<PreprocessResult>
|
1555
1556
|
): this {
|
1556
1557
|
if (!filter) {
|
@@ -1569,7 +1570,8 @@ export class ERC721Processor extends BaseProcessor<
|
|
1569
1570
|
fetchConfig?: Partial<EthFetchConfig>,
|
1570
1571
|
preprocessHandler?: (
|
1571
1572
|
event: ApprovalForAllEvent,
|
1572
|
-
ctx: ERC721Context
|
1573
|
+
ctx: ERC721Context,
|
1574
|
+
preprocessStore: { [k: string]: any }
|
1573
1575
|
) => Promise<PreprocessResult>
|
1574
1576
|
): this {
|
1575
1577
|
if (!filter) {
|
@@ -1588,7 +1590,8 @@ export class ERC721Processor extends BaseProcessor<
|
|
1588
1590
|
fetchConfig?: Partial<EthFetchConfig>,
|
1589
1591
|
preprocessHandler?: (
|
1590
1592
|
event: TransferEvent,
|
1591
|
-
ctx: ERC721Context
|
1593
|
+
ctx: ERC721Context,
|
1594
|
+
preprocessStore: { [k: string]: any }
|
1592
1595
|
) => Promise<PreprocessResult>
|
1593
1596
|
): this {
|
1594
1597
|
if (!filter) {
|
@@ -1907,7 +1910,8 @@ export class ERC721ProcessorTemplate extends BaseProcessorTemplate<
|
|
1907
1910
|
fetchConfig?: Partial<EthFetchConfig>,
|
1908
1911
|
preprocessHandler?: (
|
1909
1912
|
event: ApprovalEvent,
|
1910
|
-
ctx: ERC721Context
|
1913
|
+
ctx: ERC721Context,
|
1914
|
+
preprocessStore: { [k: string]: any }
|
1911
1915
|
) => Promise<PreprocessResult>
|
1912
1916
|
): this {
|
1913
1917
|
if (!filter) {
|
@@ -1926,7 +1930,8 @@ export class ERC721ProcessorTemplate extends BaseProcessorTemplate<
|
|
1926
1930
|
fetchConfig?: Partial<EthFetchConfig>,
|
1927
1931
|
preprocessHandler?: (
|
1928
1932
|
event: ApprovalForAllEvent,
|
1929
|
-
ctx: ERC721Context
|
1933
|
+
ctx: ERC721Context,
|
1934
|
+
preprocessStore: { [k: string]: any }
|
1930
1935
|
) => Promise<PreprocessResult>
|
1931
1936
|
): this {
|
1932
1937
|
if (!filter) {
|
@@ -1945,7 +1950,8 @@ export class ERC721ProcessorTemplate extends BaseProcessorTemplate<
|
|
1945
1950
|
fetchConfig?: Partial<EthFetchConfig>,
|
1946
1951
|
preprocessHandler?: (
|
1947
1952
|
event: TransferEvent,
|
1948
|
-
ctx: ERC721Context
|
1953
|
+
ctx: ERC721Context,
|
1954
|
+
preprocessStore: { [k: string]: any }
|
1949
1955
|
) => Promise<PreprocessResult>
|
1950
1956
|
): this {
|
1951
1957
|
if (!filter) {
|