@sentio/sdk 2.40.0-rc.15 → 2.40.0-rc.16
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/builtin/internal/eacaggregatorproxy-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/eacaggregatorproxy-processor.js +23 -0
- package/lib/eth/builtin/internal/eacaggregatorproxy-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc1155-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/erc1155-processor.js +8 -0
- package/lib/eth/builtin/internal/erc1155-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc20-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/erc20-processor.js +18 -0
- package/lib/eth/builtin/internal/erc20-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc20bytes-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/erc20bytes-processor.js +9 -0
- package/lib/eth/builtin/internal/erc20bytes-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc721-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/erc721-processor.js +14 -0
- package/lib/eth/builtin/internal/erc721-processor.js.map +1 -1
- package/lib/eth/builtin/internal/weth9-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/weth9-processor.js +11 -0
- package/lib/eth/builtin/internal/weth9-processor.js.map +1 -1
- package/lib/eth/codegen/function-calls.d.ts.map +1 -1
- package/lib/eth/codegen/function-calls.js +1 -0
- package/lib/eth/codegen/function-calls.js.map +1 -1
- package/package.json +3 -3
- package/src/eth/builtin/internal/eacaggregatorproxy-processor.ts +23 -0
- package/src/eth/builtin/internal/erc1155-processor.ts +29 -0
- package/src/eth/builtin/internal/erc20-processor.ts +34 -0
- package/src/eth/builtin/internal/erc20bytes-processor.ts +9 -0
- package/src/eth/builtin/internal/erc721-processor.ts +32 -0
- package/src/eth/builtin/internal/weth9-processor.ts +11 -0
- package/src/eth/codegen/function-calls.ts +3 -0
@@ -48,6 +48,7 @@ export function generateViewFunction(view, fn, includeArgTypes) {
|
|
48
48
|
return result.length == 1? result[0]: result
|
49
49
|
}
|
50
50
|
}
|
51
|
+
console.debug("missing eth call:", "${fn.name}", ${fn.inputs.length > 0 ? fn.inputs.map((input, index) => input.name || `arg${index}`).join(',') + ',' : ''})
|
51
52
|
return await ${func}${call}(${fn.inputs.length > 0 ? fn.inputs.map((input, index) => input.name || `arg${index}`).join(',') + ',' : ''} overrides || {})
|
52
53
|
} catch (e) {
|
53
54
|
const stack = new Error().stack
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"function-calls.js","sourceRoot":"","sources":["../../../src/eth/codegen/function-calls.ts"],"names":[],"mappings":"AAAA,+IAA+I;AAC/I,OAAO,EAAuB,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAClE,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAA;AACjG,OAAO,EACL,mCAAmC,EACnC,2BAA2B,EAC3B,+BAA+B,EAChC,MAAM,YAAY,CAAA;AAEnB,SAAS,mBAAmB,CAAC,EAAuB;IAClD,yFAAyF;IACzF,OAAO,WAAW,mBAAmB,CAAC,EAAE,kBAAkB,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAA;AACvG,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,IAAa,EAAE,SAAgC;IACnF,MAAM,eAAe,GAAG,SAAS,CAAC,MAAM,KAAK,CAAC,CAAA;IAC9C,OAAO,SAAS,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,oBAAoB,CAAC,IAAI,EAAE,EAAE,EAAE,eAAe,CAAC,CAAC,CAAA;AACnF,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,IAAa,EAAE,EAAuB,EAAE,eAAwB;IACnG,MAAM,MAAM,GAAG,EAAE,CAAC,eAAe,KAAK,MAAM,IAAI,EA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AAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,IAAI,MAAM,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,EACxG;;GAED;KACA,CAAA;AACH,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sentio/sdk",
|
3
|
-
"version": "2.40.0-rc.
|
3
|
+
"version": "2.40.0-rc.16",
|
4
4
|
"license": "Apache-2.0",
|
5
5
|
"type": "module",
|
6
6
|
"exports": {
|
@@ -82,8 +82,8 @@
|
|
82
82
|
"typechain": "^8.3.2",
|
83
83
|
"utility-types": "^3.11.0",
|
84
84
|
"yaml": "^2.3.4",
|
85
|
-
"@sentio/protos": "2.40.0-rc.
|
86
|
-
"@sentio/runtime": "^2.40.0-rc.
|
85
|
+
"@sentio/protos": "2.40.0-rc.16",
|
86
|
+
"@sentio/runtime": "^2.40.0-rc.16"
|
87
87
|
},
|
88
88
|
"peerDependencies": {
|
89
89
|
"tsup": "npm:@sentio/tsup@^6.7.2"
|
@@ -224,6 +224,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
224
224
|
return result.length == 1 ? result[0] : result;
|
225
225
|
}
|
226
226
|
}
|
227
|
+
console.debug("missing eth call:", "accessController");
|
227
228
|
return await this.contract.getFunction("accessController()")(
|
228
229
|
overrides || {}
|
229
230
|
);
|
@@ -258,6 +259,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
258
259
|
return result.length == 1 ? result[0] : result;
|
259
260
|
}
|
260
261
|
}
|
262
|
+
console.debug("missing eth call:", "aggregator");
|
261
263
|
return await this.contract.getFunction("aggregator()")(overrides || {});
|
262
264
|
} catch (e) {
|
263
265
|
const stack = new Error().stack;
|
@@ -288,6 +290,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
288
290
|
return result.length == 1 ? result[0] : result;
|
289
291
|
}
|
290
292
|
}
|
293
|
+
console.debug("missing eth call:", "decimals");
|
291
294
|
return await this.contract.getFunction("decimals()")(overrides || {});
|
292
295
|
} catch (e) {
|
293
296
|
const stack = new Error().stack;
|
@@ -320,6 +323,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
320
323
|
return result.length == 1 ? result[0] : result;
|
321
324
|
}
|
322
325
|
}
|
326
|
+
console.debug("missing eth call:", "description");
|
323
327
|
return await this.contract.getFunction("description()")(overrides || {});
|
324
328
|
} catch (e) {
|
325
329
|
const stack = new Error().stack;
|
@@ -351,6 +355,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
351
355
|
return result.length == 1 ? result[0] : result;
|
352
356
|
}
|
353
357
|
}
|
358
|
+
console.debug("missing eth call:", "getAnswer", _roundId);
|
354
359
|
return await this.contract.getFunction("getAnswer(uint256)")(
|
355
360
|
_roundId,
|
356
361
|
overrides || {}
|
@@ -395,6 +400,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
395
400
|
return result.length == 1 ? result[0] : result;
|
396
401
|
}
|
397
402
|
}
|
403
|
+
console.debug("missing eth call:", "getRoundData", _roundId);
|
398
404
|
return await this.contract.getFunction("getRoundData(uint80)")(
|
399
405
|
_roundId,
|
400
406
|
overrides || {}
|
@@ -431,6 +437,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
431
437
|
return result.length == 1 ? result[0] : result;
|
432
438
|
}
|
433
439
|
}
|
440
|
+
console.debug("missing eth call:", "getTimestamp", _roundId);
|
434
441
|
return await this.contract.getFunction("getTimestamp(uint256)")(
|
435
442
|
_roundId,
|
436
443
|
overrides || {}
|
@@ -466,6 +473,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
466
473
|
return result.length == 1 ? result[0] : result;
|
467
474
|
}
|
468
475
|
}
|
476
|
+
console.debug("missing eth call:", "latestAnswer");
|
469
477
|
return await this.contract.getFunction("latestAnswer()")(overrides || {});
|
470
478
|
} catch (e) {
|
471
479
|
const stack = new Error().stack;
|
@@ -498,6 +506,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
498
506
|
return result.length == 1 ? result[0] : result;
|
499
507
|
}
|
500
508
|
}
|
509
|
+
console.debug("missing eth call:", "latestRound");
|
501
510
|
return await this.contract.getFunction("latestRound()")(overrides || {});
|
502
511
|
} catch (e) {
|
503
512
|
const stack = new Error().stack;
|
@@ -538,6 +547,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
538
547
|
return result.length == 1 ? result[0] : result;
|
539
548
|
}
|
540
549
|
}
|
550
|
+
console.debug("missing eth call:", "latestRoundData");
|
541
551
|
return await this.contract.getFunction("latestRoundData()")(
|
542
552
|
overrides || {}
|
543
553
|
);
|
@@ -572,6 +582,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
572
582
|
return result.length == 1 ? result[0] : result;
|
573
583
|
}
|
574
584
|
}
|
585
|
+
console.debug("missing eth call:", "latestTimestamp");
|
575
586
|
return await this.contract.getFunction("latestTimestamp()")(
|
576
587
|
overrides || {}
|
577
588
|
);
|
@@ -604,6 +615,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
604
615
|
return result.length == 1 ? result[0] : result;
|
605
616
|
}
|
606
617
|
}
|
618
|
+
console.debug("missing eth call:", "owner");
|
607
619
|
return await this.contract.getFunction("owner()")(overrides || {});
|
608
620
|
} catch (e) {
|
609
621
|
const stack = new Error().stack;
|
@@ -637,6 +649,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
637
649
|
return result.length == 1 ? result[0] : result;
|
638
650
|
}
|
639
651
|
}
|
652
|
+
console.debug("missing eth call:", "phaseAggregators", arg0);
|
640
653
|
return await this.contract.getFunction("phaseAggregators(uint16)")(
|
641
654
|
arg0,
|
642
655
|
overrides || {}
|
@@ -670,6 +683,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
670
683
|
return result.length == 1 ? result[0] : result;
|
671
684
|
}
|
672
685
|
}
|
686
|
+
console.debug("missing eth call:", "phaseId");
|
673
687
|
return await this.contract.getFunction("phaseId()")(overrides || {});
|
674
688
|
} catch (e) {
|
675
689
|
const stack = new Error().stack;
|
@@ -702,6 +716,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
702
716
|
return result.length == 1 ? result[0] : result;
|
703
717
|
}
|
704
718
|
}
|
719
|
+
console.debug("missing eth call:", "proposedAggregator");
|
705
720
|
return await this.contract.getFunction("proposedAggregator()")(
|
706
721
|
overrides || {}
|
707
722
|
);
|
@@ -747,6 +762,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
747
762
|
return result.length == 1 ? result[0] : result;
|
748
763
|
}
|
749
764
|
}
|
765
|
+
console.debug("missing eth call:", "proposedGetRoundData", _roundId);
|
750
766
|
return await this.contract.getFunction("proposedGetRoundData(uint80)")(
|
751
767
|
_roundId,
|
752
768
|
overrides || {}
|
@@ -793,6 +809,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
793
809
|
return result.length == 1 ? result[0] : result;
|
794
810
|
}
|
795
811
|
}
|
812
|
+
console.debug("missing eth call:", "proposedLatestRoundData");
|
796
813
|
return await this.contract.getFunction("proposedLatestRoundData()")(
|
797
814
|
overrides || {}
|
798
815
|
);
|
@@ -825,6 +842,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
825
842
|
return result.length == 1 ? result[0] : result;
|
826
843
|
}
|
827
844
|
}
|
845
|
+
console.debug("missing eth call:", "version");
|
828
846
|
return await this.contract.getFunction("version()")(overrides || {});
|
829
847
|
} catch (e) {
|
830
848
|
const stack = new Error().stack;
|
@@ -860,6 +878,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
860
878
|
return result.length == 1 ? result[0] : result;
|
861
879
|
}
|
862
880
|
}
|
881
|
+
console.debug("missing eth call:", "acceptOwnership");
|
863
882
|
return await this.contract
|
864
883
|
.getFunction("acceptOwnership()")
|
865
884
|
.staticCall(overrides || {});
|
@@ -896,6 +915,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
896
915
|
return result.length == 1 ? result[0] : result;
|
897
916
|
}
|
898
917
|
}
|
918
|
+
console.debug("missing eth call:", "confirmAggregator", _aggregator);
|
899
919
|
return await this.contract
|
900
920
|
.getFunction("confirmAggregator(address)")
|
901
921
|
.staticCall(_aggregator, overrides || {});
|
@@ -932,6 +952,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
932
952
|
return result.length == 1 ? result[0] : result;
|
933
953
|
}
|
934
954
|
}
|
955
|
+
console.debug("missing eth call:", "proposeAggregator", _aggregator);
|
935
956
|
return await this.contract
|
936
957
|
.getFunction("proposeAggregator(address)")
|
937
958
|
.staticCall(_aggregator, overrides || {});
|
@@ -968,6 +989,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
968
989
|
return result.length == 1 ? result[0] : result;
|
969
990
|
}
|
970
991
|
}
|
992
|
+
console.debug("missing eth call:", "setController", _accessController);
|
971
993
|
return await this.contract
|
972
994
|
.getFunction("setController(address)")
|
973
995
|
.staticCall(_accessController, overrides || {});
|
@@ -1002,6 +1024,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
1002
1024
|
return result.length == 1 ? result[0] : result;
|
1003
1025
|
}
|
1004
1026
|
}
|
1027
|
+
console.debug("missing eth call:", "transferOwnership", _to);
|
1005
1028
|
return await this.contract
|
1006
1029
|
.getFunction("transferOwnership(address)")
|
1007
1030
|
.staticCall(_to, overrides || {});
|
@@ -152,6 +152,7 @@ export class ERC1155ContractView extends ContractView<ERC1155> {
|
|
152
152
|
return result.length == 1 ? result[0] : result;
|
153
153
|
}
|
154
154
|
}
|
155
|
+
console.debug("missing eth call:", "balanceOf", account, id);
|
155
156
|
return await this.contract.getFunction("balanceOf(address,uint256)")(
|
156
157
|
account,
|
157
158
|
id,
|
@@ -193,6 +194,7 @@ export class ERC1155ContractView extends ContractView<ERC1155> {
|
|
193
194
|
return result.length == 1 ? result[0] : result;
|
194
195
|
}
|
195
196
|
}
|
197
|
+
console.debug("missing eth call:", "balanceOfBatch", accounts, ids);
|
196
198
|
return await this.contract.getFunction(
|
197
199
|
"balanceOfBatch(address[],uint256[])"
|
198
200
|
)(accounts, ids, overrides || {});
|
@@ -232,6 +234,7 @@ export class ERC1155ContractView extends ContractView<ERC1155> {
|
|
232
234
|
return result.length == 1 ? result[0] : result;
|
233
235
|
}
|
234
236
|
}
|
237
|
+
console.debug("missing eth call:", "isApprovedForAll", account, operator);
|
235
238
|
return await this.contract.getFunction(
|
236
239
|
"isApprovedForAll(address,address)"
|
237
240
|
)(account, operator, overrides || {});
|
@@ -269,6 +272,7 @@ export class ERC1155ContractView extends ContractView<ERC1155> {
|
|
269
272
|
return result.length == 1 ? result[0] : result;
|
270
273
|
}
|
271
274
|
}
|
275
|
+
console.debug("missing eth call:", "supportsInterface", interfaceId);
|
272
276
|
return await this.contract.getFunction("supportsInterface(bytes4)")(
|
273
277
|
interfaceId,
|
274
278
|
overrides || {}
|
@@ -303,6 +307,7 @@ export class ERC1155ContractView extends ContractView<ERC1155> {
|
|
303
307
|
return result.length == 1 ? result[0] : result;
|
304
308
|
}
|
305
309
|
}
|
310
|
+
console.debug("missing eth call:", "uri", id);
|
306
311
|
return await this.contract.getFunction("uri(uint256)")(
|
307
312
|
id,
|
308
313
|
overrides || {}
|
@@ -352,6 +357,15 @@ export class ERC1155ContractView extends ContractView<ERC1155> {
|
|
352
357
|
return result.length == 1 ? result[0] : result;
|
353
358
|
}
|
354
359
|
}
|
360
|
+
console.debug(
|
361
|
+
"missing eth call:",
|
362
|
+
"safeBatchTransferFrom",
|
363
|
+
from,
|
364
|
+
to,
|
365
|
+
ids,
|
366
|
+
amounts,
|
367
|
+
data
|
368
|
+
);
|
355
369
|
return await this.contract
|
356
370
|
.getFunction(
|
357
371
|
"safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)"
|
@@ -398,6 +412,15 @@ export class ERC1155ContractView extends ContractView<ERC1155> {
|
|
398
412
|
return result.length == 1 ? result[0] : result;
|
399
413
|
}
|
400
414
|
}
|
415
|
+
console.debug(
|
416
|
+
"missing eth call:",
|
417
|
+
"safeTransferFrom",
|
418
|
+
from,
|
419
|
+
to,
|
420
|
+
id,
|
421
|
+
amount,
|
422
|
+
data
|
423
|
+
);
|
401
424
|
return await this.contract
|
402
425
|
.getFunction(
|
403
426
|
"safeTransferFrom(address,address,uint256,uint256,bytes)"
|
@@ -438,6 +461,12 @@ export class ERC1155ContractView extends ContractView<ERC1155> {
|
|
438
461
|
return result.length == 1 ? result[0] : result;
|
439
462
|
}
|
440
463
|
}
|
464
|
+
console.debug(
|
465
|
+
"missing eth call:",
|
466
|
+
"setApprovalForAll",
|
467
|
+
operator,
|
468
|
+
approved
|
469
|
+
);
|
441
470
|
return await this.contract
|
442
471
|
.getFunction("setApprovalForAll(address,bool)")
|
443
472
|
.staticCall(operator, approved, overrides || {});
|
@@ -201,6 +201,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
|
|
201
201
|
return result.length == 1 ? result[0] : result;
|
202
202
|
}
|
203
203
|
}
|
204
|
+
console.debug("missing eth call:", "allowance", owner, spender);
|
204
205
|
return await this.contract.getFunction("allowance(address,address)")(
|
205
206
|
owner,
|
206
207
|
spender,
|
@@ -236,6 +237,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
|
|
236
237
|
return result.length == 1 ? result[0] : result;
|
237
238
|
}
|
238
239
|
}
|
240
|
+
console.debug("missing eth call:", "balanceOf", account);
|
239
241
|
return await this.contract.getFunction("balanceOf(address)")(
|
240
242
|
account,
|
241
243
|
overrides || {}
|
@@ -269,6 +271,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
|
|
269
271
|
return result.length == 1 ? result[0] : result;
|
270
272
|
}
|
271
273
|
}
|
274
|
+
console.debug("missing eth call:", "decimals");
|
272
275
|
return await this.contract.getFunction("decimals()")(overrides || {});
|
273
276
|
} catch (e) {
|
274
277
|
const stack = new Error().stack;
|
@@ -299,6 +302,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
|
|
299
302
|
return result.length == 1 ? result[0] : result;
|
300
303
|
}
|
301
304
|
}
|
305
|
+
console.debug("missing eth call:", "locker");
|
302
306
|
return await this.contract.getFunction("locker()")(overrides || {});
|
303
307
|
} catch (e) {
|
304
308
|
const stack = new Error().stack;
|
@@ -327,6 +331,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
|
|
327
331
|
return result.length == 1 ? result[0] : result;
|
328
332
|
}
|
329
333
|
}
|
334
|
+
console.debug("missing eth call:", "name");
|
330
335
|
return await this.contract.getFunction("name()")(overrides || {});
|
331
336
|
} catch (e) {
|
332
337
|
const stack = new Error().stack;
|
@@ -357,6 +362,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
|
|
357
362
|
return result.length == 1 ? result[0] : result;
|
358
363
|
}
|
359
364
|
}
|
365
|
+
console.debug("missing eth call:", "owner");
|
360
366
|
return await this.contract.getFunction("owner()")(overrides || {});
|
361
367
|
} catch (e) {
|
362
368
|
const stack = new Error().stack;
|
@@ -387,6 +393,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
|
|
387
393
|
return result.length == 1 ? result[0] : result;
|
388
394
|
}
|
389
395
|
}
|
396
|
+
console.debug("missing eth call:", "symbol");
|
390
397
|
return await this.contract.getFunction("symbol()")(overrides || {});
|
391
398
|
} catch (e) {
|
392
399
|
const stack = new Error().stack;
|
@@ -419,6 +426,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
|
|
419
426
|
return result.length == 1 ? result[0] : result;
|
420
427
|
}
|
421
428
|
}
|
429
|
+
console.debug("missing eth call:", "totalSupply");
|
422
430
|
return await this.contract.getFunction("totalSupply()")(overrides || {});
|
423
431
|
} catch (e) {
|
424
432
|
const stack = new Error().stack;
|
@@ -457,6 +465,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
|
|
457
465
|
return result.length == 1 ? result[0] : result;
|
458
466
|
}
|
459
467
|
}
|
468
|
+
console.debug("missing eth call:", "approve", spender, amount);
|
460
469
|
return await this.contract
|
461
470
|
.getFunction("approve(address,uint256)")
|
462
471
|
.staticCall(spender, amount, overrides || {});
|
@@ -489,6 +498,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
|
|
489
498
|
return result.length == 1 ? result[0] : result;
|
490
499
|
}
|
491
500
|
}
|
501
|
+
console.debug("missing eth call:", "burn", amount);
|
492
502
|
return await this.contract
|
493
503
|
.getFunction("burn(uint256)")
|
494
504
|
.staticCall(amount, overrides || {});
|
@@ -527,6 +537,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
|
|
527
537
|
return result.length == 1 ? result[0] : result;
|
528
538
|
}
|
529
539
|
}
|
540
|
+
console.debug("missing eth call:", "burnFrom", account, amount);
|
530
541
|
return await this.contract
|
531
542
|
.getFunction("burnFrom(address,uint256)")
|
532
543
|
.staticCall(account, amount, overrides || {});
|
@@ -565,6 +576,12 @@ export class ERC20ContractView extends ContractView<ERC20> {
|
|
565
576
|
return result.length == 1 ? result[0] : result;
|
566
577
|
}
|
567
578
|
}
|
579
|
+
console.debug(
|
580
|
+
"missing eth call:",
|
581
|
+
"decreaseAllowance",
|
582
|
+
spender,
|
583
|
+
subtractedValue
|
584
|
+
);
|
568
585
|
return await this.contract
|
569
586
|
.getFunction("decreaseAllowance(address,uint256)")
|
570
587
|
.staticCall(spender, subtractedValue, overrides || {});
|
@@ -603,6 +620,12 @@ export class ERC20ContractView extends ContractView<ERC20> {
|
|
603
620
|
return result.length == 1 ? result[0] : result;
|
604
621
|
}
|
605
622
|
}
|
623
|
+
console.debug(
|
624
|
+
"missing eth call:",
|
625
|
+
"increaseAllowance",
|
626
|
+
spender,
|
627
|
+
addedValue
|
628
|
+
);
|
606
629
|
return await this.contract
|
607
630
|
.getFunction("increaseAllowance(address,uint256)")
|
608
631
|
.staticCall(spender, addedValue, overrides || {});
|
@@ -636,6 +659,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
|
|
636
659
|
return result.length == 1 ? result[0] : result;
|
637
660
|
}
|
638
661
|
}
|
662
|
+
console.debug("missing eth call:", "renounceOwnership");
|
639
663
|
return await this.contract
|
640
664
|
.getFunction("renounceOwnership()")
|
641
665
|
.staticCall(overrides || {});
|
@@ -670,6 +694,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
|
|
670
694
|
return result.length == 1 ? result[0] : result;
|
671
695
|
}
|
672
696
|
}
|
697
|
+
console.debug("missing eth call:", "setLocker", _locker);
|
673
698
|
return await this.contract
|
674
699
|
.getFunction("setLocker(address)")
|
675
700
|
.staticCall(_locker, overrides || {});
|
@@ -708,6 +733,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
|
|
708
733
|
return result.length == 1 ? result[0] : result;
|
709
734
|
}
|
710
735
|
}
|
736
|
+
console.debug("missing eth call:", "transfer", recipient, amount);
|
711
737
|
return await this.contract
|
712
738
|
.getFunction("transfer(address,uint256)")
|
713
739
|
.staticCall(recipient, amount, overrides || {});
|
@@ -748,6 +774,13 @@ export class ERC20ContractView extends ContractView<ERC20> {
|
|
748
774
|
return result.length == 1 ? result[0] : result;
|
749
775
|
}
|
750
776
|
}
|
777
|
+
console.debug(
|
778
|
+
"missing eth call:",
|
779
|
+
"transferFrom",
|
780
|
+
sender,
|
781
|
+
recipient,
|
782
|
+
amount
|
783
|
+
);
|
751
784
|
return await this.contract
|
752
785
|
.getFunction("transferFrom(address,address,uint256)")
|
753
786
|
.staticCall(sender, recipient, amount, overrides || {});
|
@@ -784,6 +817,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
|
|
784
817
|
return result.length == 1 ? result[0] : result;
|
785
818
|
}
|
786
819
|
}
|
820
|
+
console.debug("missing eth call:", "transferOwnership", newOwner);
|
787
821
|
return await this.contract
|
788
822
|
.getFunction("transferOwnership(address)")
|
789
823
|
.staticCall(newOwner, overrides || {});
|
@@ -126,6 +126,7 @@ export class ERC20BytesContractView extends ContractView<ERC20Bytes> {
|
|
126
126
|
return result.length == 1 ? result[0] : result;
|
127
127
|
}
|
128
128
|
}
|
129
|
+
console.debug("missing eth call:", "name");
|
129
130
|
return await this.contract.getFunction("name()")(overrides || {});
|
130
131
|
} catch (e) {
|
131
132
|
const stack = new Error().stack;
|
@@ -158,6 +159,7 @@ export class ERC20BytesContractView extends ContractView<ERC20Bytes> {
|
|
158
159
|
return result.length == 1 ? result[0] : result;
|
159
160
|
}
|
160
161
|
}
|
162
|
+
console.debug("missing eth call:", "totalSupply");
|
161
163
|
return await this.contract.getFunction("totalSupply()")(overrides || {});
|
162
164
|
} catch (e) {
|
163
165
|
const stack = new Error().stack;
|
@@ -188,6 +190,7 @@ export class ERC20BytesContractView extends ContractView<ERC20Bytes> {
|
|
188
190
|
return result.length == 1 ? result[0] : result;
|
189
191
|
}
|
190
192
|
}
|
193
|
+
console.debug("missing eth call:", "decimals");
|
191
194
|
return await this.contract.getFunction("decimals()")(overrides || {});
|
192
195
|
} catch (e) {
|
193
196
|
const stack = new Error().stack;
|
@@ -219,6 +222,7 @@ export class ERC20BytesContractView extends ContractView<ERC20Bytes> {
|
|
219
222
|
return result.length == 1 ? result[0] : result;
|
220
223
|
}
|
221
224
|
}
|
225
|
+
console.debug("missing eth call:", "balanceOf", who);
|
222
226
|
return await this.contract.getFunction("balanceOf(address)")(
|
223
227
|
who,
|
224
228
|
overrides || {}
|
@@ -252,6 +256,7 @@ export class ERC20BytesContractView extends ContractView<ERC20Bytes> {
|
|
252
256
|
return result.length == 1 ? result[0] : result;
|
253
257
|
}
|
254
258
|
}
|
259
|
+
console.debug("missing eth call:", "symbol");
|
255
260
|
return await this.contract.getFunction("symbol()")(overrides || {});
|
256
261
|
} catch (e) {
|
257
262
|
const stack = new Error().stack;
|
@@ -287,6 +292,7 @@ export class ERC20BytesContractView extends ContractView<ERC20Bytes> {
|
|
287
292
|
return result.length == 1 ? result[0] : result;
|
288
293
|
}
|
289
294
|
}
|
295
|
+
console.debug("missing eth call:", "allowance", owner, spender);
|
290
296
|
return await this.contract.getFunction("allowance(address,address)")(
|
291
297
|
owner,
|
292
298
|
spender,
|
@@ -329,6 +335,7 @@ export class ERC20BytesContractView extends ContractView<ERC20Bytes> {
|
|
329
335
|
return result.length == 1 ? result[0] : result;
|
330
336
|
}
|
331
337
|
}
|
338
|
+
console.debug("missing eth call:", "approve", spender, value);
|
332
339
|
return await this.contract
|
333
340
|
.getFunction("approve(address,uint256)")
|
334
341
|
.staticCall(spender, value, overrides || {});
|
@@ -369,6 +376,7 @@ export class ERC20BytesContractView extends ContractView<ERC20Bytes> {
|
|
369
376
|
return result.length == 1 ? result[0] : result;
|
370
377
|
}
|
371
378
|
}
|
379
|
+
console.debug("missing eth call:", "transferFrom", from, to, value);
|
372
380
|
return await this.contract
|
373
381
|
.getFunction("transferFrom(address,address,uint256)")
|
374
382
|
.staticCall(from, to, value, overrides || {});
|
@@ -404,6 +412,7 @@ export class ERC20BytesContractView extends ContractView<ERC20Bytes> {
|
|
404
412
|
return result.length == 1 ? result[0] : result;
|
405
413
|
}
|
406
414
|
}
|
415
|
+
console.debug("missing eth call:", "transfer", to, value);
|
407
416
|
return await this.contract
|
408
417
|
.getFunction("transfer(address,uint256)")
|
409
418
|
.staticCall(to, value, overrides || {});
|
@@ -182,6 +182,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
|
|
182
182
|
return result.length == 1 ? result[0] : result;
|
183
183
|
}
|
184
184
|
}
|
185
|
+
console.debug("missing eth call:", "totalSupply");
|
185
186
|
return await this.contract.getFunction("totalSupply()")(overrides || {});
|
186
187
|
} catch (e) {
|
187
188
|
const stack = new Error().stack;
|
@@ -213,6 +214,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
|
|
213
214
|
return result.length == 1 ? result[0] : result;
|
214
215
|
}
|
215
216
|
}
|
217
|
+
console.debug("missing eth call:", "balanceOf", owner);
|
216
218
|
return await this.contract.getFunction("balanceOf(address)")(
|
217
219
|
owner,
|
218
220
|
overrides || {}
|
@@ -249,6 +251,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
|
|
249
251
|
return result.length == 1 ? result[0] : result;
|
250
252
|
}
|
251
253
|
}
|
254
|
+
console.debug("missing eth call:", "getApproved", tokenId);
|
252
255
|
return await this.contract.getFunction("getApproved(uint256)")(
|
253
256
|
tokenId,
|
254
257
|
overrides || {}
|
@@ -289,6 +292,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
|
|
289
292
|
return result.length == 1 ? result[0] : result;
|
290
293
|
}
|
291
294
|
}
|
295
|
+
console.debug("missing eth call:", "isApprovedForAll", owner, operator);
|
292
296
|
return await this.contract.getFunction(
|
293
297
|
"isApprovedForAll(address,address)"
|
294
298
|
)(owner, operator, overrides || {});
|
@@ -319,6 +323,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
|
|
319
323
|
return result.length == 1 ? result[0] : result;
|
320
324
|
}
|
321
325
|
}
|
326
|
+
console.debug("missing eth call:", "name");
|
322
327
|
return await this.contract.getFunction("name()")(overrides || {});
|
323
328
|
} catch (e) {
|
324
329
|
const stack = new Error().stack;
|
@@ -350,6 +355,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
|
|
350
355
|
return result.length == 1 ? result[0] : result;
|
351
356
|
}
|
352
357
|
}
|
358
|
+
console.debug("missing eth call:", "ownerOf", tokenId);
|
353
359
|
return await this.contract.getFunction("ownerOf(uint256)")(
|
354
360
|
tokenId,
|
355
361
|
overrides || {}
|
@@ -388,6 +394,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
|
|
388
394
|
return result.length == 1 ? result[0] : result;
|
389
395
|
}
|
390
396
|
}
|
397
|
+
console.debug("missing eth call:", "supportsInterface", interfaceId);
|
391
398
|
return await this.contract.getFunction("supportsInterface(bytes4)")(
|
392
399
|
interfaceId,
|
393
400
|
overrides || {}
|
@@ -421,6 +428,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
|
|
421
428
|
return result.length == 1 ? result[0] : result;
|
422
429
|
}
|
423
430
|
}
|
431
|
+
console.debug("missing eth call:", "symbol");
|
424
432
|
return await this.contract.getFunction("symbol()")(overrides || {});
|
425
433
|
} catch (e) {
|
426
434
|
const stack = new Error().stack;
|
@@ -452,6 +460,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
|
|
452
460
|
return result.length == 1 ? result[0] : result;
|
453
461
|
}
|
454
462
|
}
|
463
|
+
console.debug("missing eth call:", "tokenURI", tokenId);
|
455
464
|
return await this.contract.getFunction("tokenURI(uint256)")(
|
456
465
|
tokenId,
|
457
466
|
overrides || {}
|
@@ -490,6 +499,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
|
|
490
499
|
return result.length == 1 ? result[0] : result;
|
491
500
|
}
|
492
501
|
}
|
502
|
+
console.debug("missing eth call:", "approve", to, tokenId);
|
493
503
|
return await this.contract
|
494
504
|
.getFunction("approve(address,uint256)")
|
495
505
|
.staticCall(to, tokenId, overrides || {});
|
@@ -530,6 +540,13 @@ export class ERC721ContractView extends ContractView<ERC721> {
|
|
530
540
|
return result.length == 1 ? result[0] : result;
|
531
541
|
}
|
532
542
|
}
|
543
|
+
console.debug(
|
544
|
+
"missing eth call:",
|
545
|
+
"safeTransferFrom",
|
546
|
+
from,
|
547
|
+
to,
|
548
|
+
tokenId
|
549
|
+
);
|
533
550
|
return await this.contract
|
534
551
|
.getFunction("safeTransferFrom(address,address,uint256)")
|
535
552
|
.staticCall(from, to, tokenId, overrides || {});
|
@@ -572,6 +589,14 @@ export class ERC721ContractView extends ContractView<ERC721> {
|
|
572
589
|
return result.length == 1 ? result[0] : result;
|
573
590
|
}
|
574
591
|
}
|
592
|
+
console.debug(
|
593
|
+
"missing eth call:",
|
594
|
+
"safeTransferFrom",
|
595
|
+
from,
|
596
|
+
to,
|
597
|
+
tokenId,
|
598
|
+
data
|
599
|
+
);
|
575
600
|
return await this.contract
|
576
601
|
.getFunction("safeTransferFrom(address,address,uint256,bytes)")
|
577
602
|
.staticCall(from, to, tokenId, data, overrides || {});
|
@@ -610,6 +635,12 @@ export class ERC721ContractView extends ContractView<ERC721> {
|
|
610
635
|
return result.length == 1 ? result[0] : result;
|
611
636
|
}
|
612
637
|
}
|
638
|
+
console.debug(
|
639
|
+
"missing eth call:",
|
640
|
+
"setApprovalForAll",
|
641
|
+
operator,
|
642
|
+
_approved
|
643
|
+
);
|
613
644
|
return await this.contract
|
614
645
|
.getFunction("setApprovalForAll(address,bool)")
|
615
646
|
.staticCall(operator, _approved, overrides || {});
|
@@ -650,6 +681,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
|
|
650
681
|
return result.length == 1 ? result[0] : result;
|
651
682
|
}
|
652
683
|
}
|
684
|
+
console.debug("missing eth call:", "transferFrom", from, to, tokenId);
|
653
685
|
return await this.contract
|
654
686
|
.getFunction("transferFrom(address,address,uint256)")
|
655
687
|
.staticCall(from, to, tokenId, overrides || {});
|