@sentio/sdk 2.45.2 → 2.45.3-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/aptos/builtin/0x1.d.ts +2 -2
- package/lib/aptos/builtin/0x1.d.ts.map +1 -1
- package/lib/aptos/builtin/0x1.js +1 -2
- package/lib/aptos/builtin/0x1.js.map +1 -1
- package/lib/aptos/builtin/0x3.d.ts +2 -2
- package/lib/aptos/builtin/0x3.d.ts.map +1 -1
- package/lib/aptos/builtin/0x3.js +1 -2
- package/lib/aptos/builtin/0x3.js.map +1 -1
- package/lib/aptos/builtin/0x4.d.ts +2 -2
- package/lib/aptos/builtin/0x4.d.ts.map +1 -1
- package/lib/aptos/builtin/0x4.js +1 -2
- package/lib/aptos/builtin/0x4.js.map +1 -1
- package/lib/aptos/codegen/codegen.js +7 -1
- package/lib/aptos/codegen/codegen.js.map +1 -1
- package/lib/eth/builtin/internal/eacaggregatorproxy-processor.d.ts +23 -23
- package/lib/eth/builtin/internal/eacaggregatorproxy-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/eacaggregatorproxy-processor.js +93 -659
- package/lib/eth/builtin/internal/eacaggregatorproxy-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc1155-processor.d.ts +8 -8
- package/lib/eth/builtin/internal/erc1155-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/erc1155-processor.js +33 -264
- package/lib/eth/builtin/internal/erc1155-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc20-processor.d.ts +18 -18
- package/lib/eth/builtin/internal/erc20-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/erc20-processor.js +75 -538
- package/lib/eth/builtin/internal/erc20-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc20bytes-processor.d.ts +9 -9
- package/lib/eth/builtin/internal/erc20bytes-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/erc20bytes-processor.js +37 -268
- package/lib/eth/builtin/internal/erc20bytes-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc721-processor.d.ts +14 -14
- package/lib/eth/builtin/internal/erc721-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/erc721-processor.js +57 -430
- package/lib/eth/builtin/internal/erc721-processor.js.map +1 -1
- package/lib/eth/builtin/internal/weth9-processor.d.ts +11 -11
- package/lib/eth/builtin/internal/weth9-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/weth9-processor.js +45 -321
- package/lib/eth/builtin/internal/weth9-processor.js.map +1 -1
- package/lib/eth/codegen/file.d.ts.map +1 -1
- package/lib/eth/codegen/file.js +3 -6
- package/lib/eth/codegen/file.js.map +1 -1
- package/lib/eth/codegen/function-calls.d.ts.map +1 -1
- package/lib/eth/codegen/function-calls.js +5 -27
- package/lib/eth/codegen/function-calls.js.map +1 -1
- package/lib/eth/context.d.ts +4 -2
- package/lib/eth/context.d.ts.map +1 -1
- package/lib/eth/context.js +15 -0
- package/lib/eth/context.js.map +1 -1
- package/lib/eth/eth.d.ts +2 -0
- package/lib/eth/eth.d.ts.map +1 -1
- package/lib/eth/eth.js +15 -1
- package/lib/eth/eth.js.map +1 -1
- package/lib/move/shared-network-codegen.d.ts.map +1 -1
- package/lib/move/shared-network-codegen.js +2 -3
- package/lib/move/shared-network-codegen.js.map +1 -1
- package/lib/sui/builtin/0x1.d.ts +751 -12
- package/lib/sui/builtin/0x1.d.ts.map +1 -1
- package/lib/sui/builtin/0x1.js +3857 -0
- package/lib/sui/builtin/0x1.js.map +1 -1
- package/lib/sui/builtin/0x2.d.ts +3876 -14
- package/lib/sui/builtin/0x2.d.ts.map +1 -1
- package/lib/sui/builtin/0x2.js +14389 -188
- package/lib/sui/builtin/0x2.js.map +1 -1
- package/lib/sui/builtin/0x3.d.ts +1923 -0
- package/lib/sui/builtin/0x3.d.ts.map +1 -1
- package/lib/sui/builtin/0x3.js +5425 -0
- package/lib/sui/builtin/0x3.js.map +1 -1
- package/lib/sui/codegen/codegen.js +5 -1
- package/lib/sui/codegen/codegen.js.map +1 -1
- package/package.json +6 -6
- package/src/aptos/builtin/0x1.ts +5 -5
- package/src/aptos/builtin/0x3.ts +5 -5
- package/src/aptos/builtin/0x4.ts +5 -5
- package/src/aptos/codegen/codegen.ts +7 -1
- package/src/eth/builtin/internal/eacaggregatorproxy-processor.ts +189 -662
- package/src/eth/builtin/internal/erc1155-processor.ts +69 -261
- package/src/eth/builtin/internal/erc20-processor.ts +136 -535
- package/src/eth/builtin/internal/erc20bytes-processor.ts +68 -265
- package/src/eth/builtin/internal/erc721-processor.ts +118 -433
- package/src/eth/builtin/internal/weth9-processor.ts +81 -318
- package/src/eth/codegen/file.ts +2 -6
- package/src/eth/codegen/function-calls.ts +7 -29
- package/src/eth/context.ts +19 -2
- package/src/eth/eth.ts +21 -1
- package/src/move/shared-network-codegen.ts +1 -4
- package/src/sui/builtin/0x1.ts +5590 -19
- package/src/sui/builtin/0x2.ts +21779 -92
- package/src/sui/builtin/0x3.ts +8825 -15
- package/src/sui/codegen/codegen.ts +6 -1
@@ -1,7 +1,7 @@
|
|
1
1
|
/* Autogenerated file. Do not edit manually. */
|
2
2
|
/* tslint:disable */
|
3
3
|
/* eslint-disable */
|
4
|
-
import { BigNumberish, Overrides
|
4
|
+
import { BigNumberish, Overrides } from "ethers";
|
5
5
|
import {
|
6
6
|
addContractByABI,
|
7
7
|
getContractByABI,
|
@@ -21,6 +21,7 @@ import {
|
|
21
21
|
EthContext,
|
22
22
|
EthFetchConfig,
|
23
23
|
PreprocessResult,
|
24
|
+
encodeCallData,
|
24
25
|
} from "@sentio/sdk/eth";
|
25
26
|
import { EthCallParam, EthCallContext, PreparedData } from "@sentio/protos";
|
26
27
|
|
@@ -192,32 +193,6 @@ const templateContract = EACAggregatorProxy__factory.connect(
|
|
192
193
|
DummyProvider,
|
193
194
|
);
|
194
195
|
|
195
|
-
const iface = new Interface([
|
196
|
-
"function acceptOwnership() returns ()",
|
197
|
-
"function accessController() view returns (address)",
|
198
|
-
"function aggregator() view returns (address)",
|
199
|
-
"function confirmAggregator(address _aggregator) returns ()",
|
200
|
-
"function decimals() view returns (uint8)",
|
201
|
-
"function description() view returns (string)",
|
202
|
-
"function getAnswer(uint256 _roundId) view returns (int256)",
|
203
|
-
"function getRoundData(uint80 _roundId) view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound)",
|
204
|
-
"function getTimestamp(uint256 _roundId) view returns (uint256)",
|
205
|
-
"function latestAnswer() view returns (int256)",
|
206
|
-
"function latestRound() view returns (uint256)",
|
207
|
-
"function latestRoundData() view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound)",
|
208
|
-
"function latestTimestamp() view returns (uint256)",
|
209
|
-
"function owner() view returns (address)",
|
210
|
-
"function phaseAggregators(uint16) view returns (address)",
|
211
|
-
"function phaseId() view returns (uint16)",
|
212
|
-
"function proposeAggregator(address _aggregator) returns ()",
|
213
|
-
"function proposedAggregator() view returns (address)",
|
214
|
-
"function proposedGetRoundData(uint80 _roundId) view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound)",
|
215
|
-
"function proposedLatestRoundData() view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound)",
|
216
|
-
"function setController(address _accessController) returns ()",
|
217
|
-
"function transferOwnership(address _to) returns ()",
|
218
|
-
"function version() view returns (uint256)",
|
219
|
-
]);
|
220
|
-
|
221
196
|
export class EACAggregatorProxyContractView extends ContractView<EACAggregatorProxy> {
|
222
197
|
constructor(contract: EACAggregatorProxy) {
|
223
198
|
super(contract);
|
@@ -600,342 +575,193 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
600
575
|
};
|
601
576
|
|
602
577
|
encodeCall = {
|
603
|
-
acceptOwnership(
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
};
|
611
|
-
} catch (e) {
|
612
|
-
const stack = new Error().stack;
|
613
|
-
throw transformEtherError(e, undefined, stack);
|
614
|
-
}
|
578
|
+
acceptOwnership(callContext: EthCallContext): EthCallParam {
|
579
|
+
return encodeCallData(
|
580
|
+
callContext,
|
581
|
+
"acceptOwnership",
|
582
|
+
"function acceptOwnership()",
|
583
|
+
[],
|
584
|
+
);
|
615
585
|
},
|
616
|
-
accessController(
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
};
|
624
|
-
} catch (e) {
|
625
|
-
const stack = new Error().stack;
|
626
|
-
throw transformEtherError(e, undefined, stack);
|
627
|
-
}
|
586
|
+
accessController(callContext: EthCallContext): EthCallParam {
|
587
|
+
return encodeCallData(
|
588
|
+
callContext,
|
589
|
+
"accessController",
|
590
|
+
"function accessController()",
|
591
|
+
[],
|
592
|
+
);
|
628
593
|
},
|
629
|
-
aggregator(
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
};
|
637
|
-
} catch (e) {
|
638
|
-
const stack = new Error().stack;
|
639
|
-
throw transformEtherError(e, undefined, stack);
|
640
|
-
}
|
594
|
+
aggregator(callContext: EthCallContext): EthCallParam {
|
595
|
+
return encodeCallData(
|
596
|
+
callContext,
|
597
|
+
"aggregator",
|
598
|
+
"function aggregator()",
|
599
|
+
[],
|
600
|
+
);
|
641
601
|
},
|
642
602
|
confirmAggregator(
|
643
603
|
_aggregator: string,
|
644
|
-
|
604
|
+
callContext: EthCallContext,
|
645
605
|
): EthCallParam {
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
]
|
651
|
-
|
652
|
-
context: ethCallContext,
|
653
|
-
calldata,
|
654
|
-
};
|
655
|
-
} catch (e) {
|
656
|
-
const stack = new Error().stack;
|
657
|
-
throw transformEtherError(e, undefined, stack);
|
658
|
-
}
|
606
|
+
return encodeCallData(
|
607
|
+
callContext,
|
608
|
+
"confirmAggregator",
|
609
|
+
"function confirmAggregator(address)",
|
610
|
+
[_aggregator],
|
611
|
+
);
|
659
612
|
},
|
660
|
-
decimals(
|
661
|
-
|
662
|
-
const iface = new Interface(["function decimals()"]);
|
663
|
-
const calldata = iface.encodeFunctionData("decimals", []);
|
664
|
-
return {
|
665
|
-
context: ethCallContext,
|
666
|
-
calldata,
|
667
|
-
};
|
668
|
-
} catch (e) {
|
669
|
-
const stack = new Error().stack;
|
670
|
-
throw transformEtherError(e, undefined, stack);
|
671
|
-
}
|
613
|
+
decimals(callContext: EthCallContext): EthCallParam {
|
614
|
+
return encodeCallData(callContext, "decimals", "function decimals()", []);
|
672
615
|
},
|
673
|
-
description(
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
};
|
681
|
-
} catch (e) {
|
682
|
-
const stack = new Error().stack;
|
683
|
-
throw transformEtherError(e, undefined, stack);
|
684
|
-
}
|
616
|
+
description(callContext: EthCallContext): EthCallParam {
|
617
|
+
return encodeCallData(
|
618
|
+
callContext,
|
619
|
+
"description",
|
620
|
+
"function description()",
|
621
|
+
[],
|
622
|
+
);
|
685
623
|
},
|
686
624
|
getAnswer(
|
687
625
|
_roundId: BigNumberish,
|
688
|
-
|
626
|
+
callContext: EthCallContext,
|
689
627
|
): EthCallParam {
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
};
|
697
|
-
} catch (e) {
|
698
|
-
const stack = new Error().stack;
|
699
|
-
throw transformEtherError(e, undefined, stack);
|
700
|
-
}
|
628
|
+
return encodeCallData(
|
629
|
+
callContext,
|
630
|
+
"getAnswer",
|
631
|
+
"function getAnswer(uint256)",
|
632
|
+
[_roundId],
|
633
|
+
);
|
701
634
|
},
|
702
635
|
getRoundData(
|
703
636
|
_roundId: BigNumberish,
|
704
|
-
|
637
|
+
callContext: EthCallContext,
|
705
638
|
): EthCallParam {
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
|
712
|
-
};
|
713
|
-
} catch (e) {
|
714
|
-
const stack = new Error().stack;
|
715
|
-
throw transformEtherError(e, undefined, stack);
|
716
|
-
}
|
639
|
+
return encodeCallData(
|
640
|
+
callContext,
|
641
|
+
"getRoundData",
|
642
|
+
"function getRoundData(uint80)",
|
643
|
+
[_roundId],
|
644
|
+
);
|
717
645
|
},
|
718
646
|
getTimestamp(
|
719
647
|
_roundId: BigNumberish,
|
720
|
-
|
648
|
+
callContext: EthCallContext,
|
721
649
|
): EthCallParam {
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
};
|
729
|
-
} catch (e) {
|
730
|
-
const stack = new Error().stack;
|
731
|
-
throw transformEtherError(e, undefined, stack);
|
732
|
-
}
|
650
|
+
return encodeCallData(
|
651
|
+
callContext,
|
652
|
+
"getTimestamp",
|
653
|
+
"function getTimestamp(uint256)",
|
654
|
+
[_roundId],
|
655
|
+
);
|
733
656
|
},
|
734
|
-
latestAnswer(
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
};
|
742
|
-
} catch (e) {
|
743
|
-
const stack = new Error().stack;
|
744
|
-
throw transformEtherError(e, undefined, stack);
|
745
|
-
}
|
657
|
+
latestAnswer(callContext: EthCallContext): EthCallParam {
|
658
|
+
return encodeCallData(
|
659
|
+
callContext,
|
660
|
+
"latestAnswer",
|
661
|
+
"function latestAnswer()",
|
662
|
+
[],
|
663
|
+
);
|
746
664
|
},
|
747
|
-
latestRound(
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
};
|
755
|
-
} catch (e) {
|
756
|
-
const stack = new Error().stack;
|
757
|
-
throw transformEtherError(e, undefined, stack);
|
758
|
-
}
|
665
|
+
latestRound(callContext: EthCallContext): EthCallParam {
|
666
|
+
return encodeCallData(
|
667
|
+
callContext,
|
668
|
+
"latestRound",
|
669
|
+
"function latestRound()",
|
670
|
+
[],
|
671
|
+
);
|
759
672
|
},
|
760
|
-
latestRoundData(
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
|
767
|
-
};
|
768
|
-
} catch (e) {
|
769
|
-
const stack = new Error().stack;
|
770
|
-
throw transformEtherError(e, undefined, stack);
|
771
|
-
}
|
673
|
+
latestRoundData(callContext: EthCallContext): EthCallParam {
|
674
|
+
return encodeCallData(
|
675
|
+
callContext,
|
676
|
+
"latestRoundData",
|
677
|
+
"function latestRoundData()",
|
678
|
+
[],
|
679
|
+
);
|
772
680
|
},
|
773
|
-
latestTimestamp(
|
774
|
-
|
775
|
-
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
|
780
|
-
};
|
781
|
-
} catch (e) {
|
782
|
-
const stack = new Error().stack;
|
783
|
-
throw transformEtherError(e, undefined, stack);
|
784
|
-
}
|
681
|
+
latestTimestamp(callContext: EthCallContext): EthCallParam {
|
682
|
+
return encodeCallData(
|
683
|
+
callContext,
|
684
|
+
"latestTimestamp",
|
685
|
+
"function latestTimestamp()",
|
686
|
+
[],
|
687
|
+
);
|
785
688
|
},
|
786
|
-
owner(
|
787
|
-
|
788
|
-
const iface = new Interface(["function owner()"]);
|
789
|
-
const calldata = iface.encodeFunctionData("owner", []);
|
790
|
-
return {
|
791
|
-
context: ethCallContext,
|
792
|
-
calldata,
|
793
|
-
};
|
794
|
-
} catch (e) {
|
795
|
-
const stack = new Error().stack;
|
796
|
-
throw transformEtherError(e, undefined, stack);
|
797
|
-
}
|
689
|
+
owner(callContext: EthCallContext): EthCallParam {
|
690
|
+
return encodeCallData(callContext, "owner", "function owner()", []);
|
798
691
|
},
|
799
692
|
phaseAggregators(
|
800
693
|
arg0: BigNumberish,
|
801
|
-
|
694
|
+
callContext: EthCallContext,
|
802
695
|
): EthCallParam {
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
};
|
810
|
-
} catch (e) {
|
811
|
-
const stack = new Error().stack;
|
812
|
-
throw transformEtherError(e, undefined, stack);
|
813
|
-
}
|
696
|
+
return encodeCallData(
|
697
|
+
callContext,
|
698
|
+
"phaseAggregators",
|
699
|
+
"function phaseAggregators(uint16)",
|
700
|
+
[arg0],
|
701
|
+
);
|
814
702
|
},
|
815
|
-
phaseId(
|
816
|
-
|
817
|
-
const iface = new Interface(["function phaseId()"]);
|
818
|
-
const calldata = iface.encodeFunctionData("phaseId", []);
|
819
|
-
return {
|
820
|
-
context: ethCallContext,
|
821
|
-
calldata,
|
822
|
-
};
|
823
|
-
} catch (e) {
|
824
|
-
const stack = new Error().stack;
|
825
|
-
throw transformEtherError(e, undefined, stack);
|
826
|
-
}
|
703
|
+
phaseId(callContext: EthCallContext): EthCallParam {
|
704
|
+
return encodeCallData(callContext, "phaseId", "function phaseId()", []);
|
827
705
|
},
|
828
706
|
proposeAggregator(
|
829
707
|
_aggregator: string,
|
830
|
-
|
708
|
+
callContext: EthCallContext,
|
831
709
|
): EthCallParam {
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
]
|
837
|
-
|
838
|
-
context: ethCallContext,
|
839
|
-
calldata,
|
840
|
-
};
|
841
|
-
} catch (e) {
|
842
|
-
const stack = new Error().stack;
|
843
|
-
throw transformEtherError(e, undefined, stack);
|
844
|
-
}
|
710
|
+
return encodeCallData(
|
711
|
+
callContext,
|
712
|
+
"proposeAggregator",
|
713
|
+
"function proposeAggregator(address)",
|
714
|
+
[_aggregator],
|
715
|
+
);
|
845
716
|
},
|
846
|
-
proposedAggregator(
|
847
|
-
|
848
|
-
|
849
|
-
|
850
|
-
|
851
|
-
|
852
|
-
|
853
|
-
};
|
854
|
-
} catch (e) {
|
855
|
-
const stack = new Error().stack;
|
856
|
-
throw transformEtherError(e, undefined, stack);
|
857
|
-
}
|
717
|
+
proposedAggregator(callContext: EthCallContext): EthCallParam {
|
718
|
+
return encodeCallData(
|
719
|
+
callContext,
|
720
|
+
"proposedAggregator",
|
721
|
+
"function proposedAggregator()",
|
722
|
+
[],
|
723
|
+
);
|
858
724
|
},
|
859
725
|
proposedGetRoundData(
|
860
726
|
_roundId: BigNumberish,
|
861
|
-
|
727
|
+
callContext: EthCallContext,
|
862
728
|
): EthCallParam {
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
]
|
868
|
-
|
869
|
-
context: ethCallContext,
|
870
|
-
calldata,
|
871
|
-
};
|
872
|
-
} catch (e) {
|
873
|
-
const stack = new Error().stack;
|
874
|
-
throw transformEtherError(e, undefined, stack);
|
875
|
-
}
|
729
|
+
return encodeCallData(
|
730
|
+
callContext,
|
731
|
+
"proposedGetRoundData",
|
732
|
+
"function proposedGetRoundData(uint80)",
|
733
|
+
[_roundId],
|
734
|
+
);
|
876
735
|
},
|
877
|
-
proposedLatestRoundData(
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
return {
|
885
|
-
context: ethCallContext,
|
886
|
-
calldata,
|
887
|
-
};
|
888
|
-
} catch (e) {
|
889
|
-
const stack = new Error().stack;
|
890
|
-
throw transformEtherError(e, undefined, stack);
|
891
|
-
}
|
736
|
+
proposedLatestRoundData(callContext: EthCallContext): EthCallParam {
|
737
|
+
return encodeCallData(
|
738
|
+
callContext,
|
739
|
+
"proposedLatestRoundData",
|
740
|
+
"function proposedLatestRoundData()",
|
741
|
+
[],
|
742
|
+
);
|
892
743
|
},
|
893
744
|
setController(
|
894
745
|
_accessController: string,
|
895
|
-
|
746
|
+
callContext: EthCallContext,
|
896
747
|
): EthCallParam {
|
897
|
-
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
]
|
902
|
-
|
903
|
-
context: ethCallContext,
|
904
|
-
calldata,
|
905
|
-
};
|
906
|
-
} catch (e) {
|
907
|
-
const stack = new Error().stack;
|
908
|
-
throw transformEtherError(e, undefined, stack);
|
909
|
-
}
|
748
|
+
return encodeCallData(
|
749
|
+
callContext,
|
750
|
+
"setController",
|
751
|
+
"function setController(address)",
|
752
|
+
[_accessController],
|
753
|
+
);
|
910
754
|
},
|
911
|
-
transferOwnership(
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
|
917
|
-
|
918
|
-
return {
|
919
|
-
context: ethCallContext,
|
920
|
-
calldata,
|
921
|
-
};
|
922
|
-
} catch (e) {
|
923
|
-
const stack = new Error().stack;
|
924
|
-
throw transformEtherError(e, undefined, stack);
|
925
|
-
}
|
755
|
+
transferOwnership(_to: string, callContext: EthCallContext): EthCallParam {
|
756
|
+
return encodeCallData(
|
757
|
+
callContext,
|
758
|
+
"transferOwnership",
|
759
|
+
"function transferOwnership(address)",
|
760
|
+
[_to],
|
761
|
+
);
|
926
762
|
},
|
927
|
-
version(
|
928
|
-
|
929
|
-
const iface = new Interface(["function version()"]);
|
930
|
-
const calldata = iface.encodeFunctionData("version", []);
|
931
|
-
return {
|
932
|
-
context: ethCallContext,
|
933
|
-
calldata,
|
934
|
-
};
|
935
|
-
} catch (e) {
|
936
|
-
const stack = new Error().stack;
|
937
|
-
throw transformEtherError(e, undefined, stack);
|
938
|
-
}
|
763
|
+
version(callContext: EthCallContext): EthCallParam {
|
764
|
+
return encodeCallData(callContext, "version", "function version()", []);
|
939
765
|
},
|
940
766
|
};
|
941
767
|
}
|
@@ -945,66 +771,46 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
945
771
|
EACAggregatorProxyContractView
|
946
772
|
> {
|
947
773
|
async accessController(overrides?: Overrides): Promise<string> {
|
948
|
-
const ethCallContext = {
|
949
|
-
chainId: this.context.chainId,
|
950
|
-
blockTag: "0x" + this.context.blockNumber.toString(16),
|
951
|
-
address: this.context.address,
|
952
|
-
};
|
953
774
|
return await this.view.accessController(
|
954
775
|
{
|
955
776
|
blockTag: this.context.blockNumber,
|
956
777
|
...overrides,
|
957
778
|
},
|
958
779
|
this.context.preparedData,
|
959
|
-
|
780
|
+
this.context.getEthCallContext(),
|
960
781
|
);
|
961
782
|
}
|
962
783
|
|
963
784
|
async aggregator(overrides?: Overrides): Promise<string> {
|
964
|
-
const ethCallContext = {
|
965
|
-
chainId: this.context.chainId,
|
966
|
-
blockTag: "0x" + this.context.blockNumber.toString(16),
|
967
|
-
address: this.context.address,
|
968
|
-
};
|
969
785
|
return await this.view.aggregator(
|
970
786
|
{
|
971
787
|
blockTag: this.context.blockNumber,
|
972
788
|
...overrides,
|
973
789
|
},
|
974
790
|
this.context.preparedData,
|
975
|
-
|
791
|
+
this.context.getEthCallContext(),
|
976
792
|
);
|
977
793
|
}
|
978
794
|
|
979
795
|
async decimals(overrides?: Overrides): Promise<bigint> {
|
980
|
-
const ethCallContext = {
|
981
|
-
chainId: this.context.chainId,
|
982
|
-
blockTag: "0x" + this.context.blockNumber.toString(16),
|
983
|
-
address: this.context.address,
|
984
|
-
};
|
985
796
|
return await this.view.decimals(
|
986
797
|
{
|
987
798
|
blockTag: this.context.blockNumber,
|
988
799
|
...overrides,
|
989
800
|
},
|
990
801
|
this.context.preparedData,
|
991
|
-
|
802
|
+
this.context.getEthCallContext(),
|
992
803
|
);
|
993
804
|
}
|
994
805
|
|
995
806
|
async description(overrides?: Overrides): Promise<string> {
|
996
|
-
const ethCallContext = {
|
997
|
-
chainId: this.context.chainId,
|
998
|
-
blockTag: "0x" + this.context.blockNumber.toString(16),
|
999
|
-
address: this.context.address,
|
1000
|
-
};
|
1001
807
|
return await this.view.description(
|
1002
808
|
{
|
1003
809
|
blockTag: this.context.blockNumber,
|
1004
810
|
...overrides,
|
1005
811
|
},
|
1006
812
|
this.context.preparedData,
|
1007
|
-
|
813
|
+
this.context.getEthCallContext(),
|
1008
814
|
);
|
1009
815
|
}
|
1010
816
|
|
@@ -1012,11 +818,6 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1012
818
|
_roundId: BigNumberish,
|
1013
819
|
overrides?: Overrides,
|
1014
820
|
): Promise<bigint> {
|
1015
|
-
const ethCallContext = {
|
1016
|
-
chainId: this.context.chainId,
|
1017
|
-
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1018
|
-
address: this.context.address,
|
1019
|
-
};
|
1020
821
|
return await this.view.getAnswer(
|
1021
822
|
_roundId,
|
1022
823
|
{
|
@@ -1024,7 +825,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1024
825
|
...overrides,
|
1025
826
|
},
|
1026
827
|
this.context.preparedData,
|
1027
|
-
|
828
|
+
this.context.getEthCallContext(),
|
1028
829
|
);
|
1029
830
|
}
|
1030
831
|
|
@@ -1040,11 +841,6 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1040
841
|
answeredInRound: bigint;
|
1041
842
|
}
|
1042
843
|
> {
|
1043
|
-
const ethCallContext = {
|
1044
|
-
chainId: this.context.chainId,
|
1045
|
-
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1046
|
-
address: this.context.address,
|
1047
|
-
};
|
1048
844
|
return await this.view.getRoundData(
|
1049
845
|
_roundId,
|
1050
846
|
{
|
@@ -1052,7 +848,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1052
848
|
...overrides,
|
1053
849
|
},
|
1054
850
|
this.context.preparedData,
|
1055
|
-
|
851
|
+
this.context.getEthCallContext(),
|
1056
852
|
);
|
1057
853
|
}
|
1058
854
|
|
@@ -1060,11 +856,6 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1060
856
|
_roundId: BigNumberish,
|
1061
857
|
overrides?: Overrides,
|
1062
858
|
): Promise<bigint> {
|
1063
|
-
const ethCallContext = {
|
1064
|
-
chainId: this.context.chainId,
|
1065
|
-
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1066
|
-
address: this.context.address,
|
1067
|
-
};
|
1068
859
|
return await this.view.getTimestamp(
|
1069
860
|
_roundId,
|
1070
861
|
{
|
@@ -1072,39 +863,29 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1072
863
|
...overrides,
|
1073
864
|
},
|
1074
865
|
this.context.preparedData,
|
1075
|
-
|
866
|
+
this.context.getEthCallContext(),
|
1076
867
|
);
|
1077
868
|
}
|
1078
869
|
|
1079
870
|
async latestAnswer(overrides?: Overrides): Promise<bigint> {
|
1080
|
-
const ethCallContext = {
|
1081
|
-
chainId: this.context.chainId,
|
1082
|
-
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1083
|
-
address: this.context.address,
|
1084
|
-
};
|
1085
871
|
return await this.view.latestAnswer(
|
1086
872
|
{
|
1087
873
|
blockTag: this.context.blockNumber,
|
1088
874
|
...overrides,
|
1089
875
|
},
|
1090
876
|
this.context.preparedData,
|
1091
|
-
|
877
|
+
this.context.getEthCallContext(),
|
1092
878
|
);
|
1093
879
|
}
|
1094
880
|
|
1095
881
|
async latestRound(overrides?: Overrides): Promise<bigint> {
|
1096
|
-
const ethCallContext = {
|
1097
|
-
chainId: this.context.chainId,
|
1098
|
-
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1099
|
-
address: this.context.address,
|
1100
|
-
};
|
1101
882
|
return await this.view.latestRound(
|
1102
883
|
{
|
1103
884
|
blockTag: this.context.blockNumber,
|
1104
885
|
...overrides,
|
1105
886
|
},
|
1106
887
|
this.context.preparedData,
|
1107
|
-
|
888
|
+
this.context.getEthCallContext(),
|
1108
889
|
);
|
1109
890
|
}
|
1110
891
|
|
@@ -1119,50 +900,35 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1119
900
|
answeredInRound: bigint;
|
1120
901
|
}
|
1121
902
|
> {
|
1122
|
-
const ethCallContext = {
|
1123
|
-
chainId: this.context.chainId,
|
1124
|
-
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1125
|
-
address: this.context.address,
|
1126
|
-
};
|
1127
903
|
return await this.view.latestRoundData(
|
1128
904
|
{
|
1129
905
|
blockTag: this.context.blockNumber,
|
1130
906
|
...overrides,
|
1131
907
|
},
|
1132
908
|
this.context.preparedData,
|
1133
|
-
|
909
|
+
this.context.getEthCallContext(),
|
1134
910
|
);
|
1135
911
|
}
|
1136
912
|
|
1137
913
|
async latestTimestamp(overrides?: Overrides): Promise<bigint> {
|
1138
|
-
const ethCallContext = {
|
1139
|
-
chainId: this.context.chainId,
|
1140
|
-
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1141
|
-
address: this.context.address,
|
1142
|
-
};
|
1143
914
|
return await this.view.latestTimestamp(
|
1144
915
|
{
|
1145
916
|
blockTag: this.context.blockNumber,
|
1146
917
|
...overrides,
|
1147
918
|
},
|
1148
919
|
this.context.preparedData,
|
1149
|
-
|
920
|
+
this.context.getEthCallContext(),
|
1150
921
|
);
|
1151
922
|
}
|
1152
923
|
|
1153
924
|
async owner(overrides?: Overrides): Promise<string> {
|
1154
|
-
const ethCallContext = {
|
1155
|
-
chainId: this.context.chainId,
|
1156
|
-
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1157
|
-
address: this.context.address,
|
1158
|
-
};
|
1159
925
|
return await this.view.owner(
|
1160
926
|
{
|
1161
927
|
blockTag: this.context.blockNumber,
|
1162
928
|
...overrides,
|
1163
929
|
},
|
1164
930
|
this.context.preparedData,
|
1165
|
-
|
931
|
+
this.context.getEthCallContext(),
|
1166
932
|
);
|
1167
933
|
}
|
1168
934
|
|
@@ -1170,11 +936,6 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1170
936
|
arg0: BigNumberish,
|
1171
937
|
overrides?: Overrides,
|
1172
938
|
): Promise<string> {
|
1173
|
-
const ethCallContext = {
|
1174
|
-
chainId: this.context.chainId,
|
1175
|
-
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1176
|
-
address: this.context.address,
|
1177
|
-
};
|
1178
939
|
return await this.view.phaseAggregators(
|
1179
940
|
arg0,
|
1180
941
|
{
|
@@ -1182,39 +943,29 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1182
943
|
...overrides,
|
1183
944
|
},
|
1184
945
|
this.context.preparedData,
|
1185
|
-
|
946
|
+
this.context.getEthCallContext(),
|
1186
947
|
);
|
1187
948
|
}
|
1188
949
|
|
1189
950
|
async phaseId(overrides?: Overrides): Promise<bigint> {
|
1190
|
-
const ethCallContext = {
|
1191
|
-
chainId: this.context.chainId,
|
1192
|
-
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1193
|
-
address: this.context.address,
|
1194
|
-
};
|
1195
951
|
return await this.view.phaseId(
|
1196
952
|
{
|
1197
953
|
blockTag: this.context.blockNumber,
|
1198
954
|
...overrides,
|
1199
955
|
},
|
1200
956
|
this.context.preparedData,
|
1201
|
-
|
957
|
+
this.context.getEthCallContext(),
|
1202
958
|
);
|
1203
959
|
}
|
1204
960
|
|
1205
961
|
async proposedAggregator(overrides?: Overrides): Promise<string> {
|
1206
|
-
const ethCallContext = {
|
1207
|
-
chainId: this.context.chainId,
|
1208
|
-
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1209
|
-
address: this.context.address,
|
1210
|
-
};
|
1211
962
|
return await this.view.proposedAggregator(
|
1212
963
|
{
|
1213
964
|
blockTag: this.context.blockNumber,
|
1214
965
|
...overrides,
|
1215
966
|
},
|
1216
967
|
this.context.preparedData,
|
1217
|
-
|
968
|
+
this.context.getEthCallContext(),
|
1218
969
|
);
|
1219
970
|
}
|
1220
971
|
|
@@ -1230,11 +981,6 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1230
981
|
answeredInRound: bigint;
|
1231
982
|
}
|
1232
983
|
> {
|
1233
|
-
const ethCallContext = {
|
1234
|
-
chainId: this.context.chainId,
|
1235
|
-
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1236
|
-
address: this.context.address,
|
1237
|
-
};
|
1238
984
|
return await this.view.proposedGetRoundData(
|
1239
985
|
_roundId,
|
1240
986
|
{
|
@@ -1242,7 +988,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1242
988
|
...overrides,
|
1243
989
|
},
|
1244
990
|
this.context.preparedData,
|
1245
|
-
|
991
|
+
this.context.getEthCallContext(),
|
1246
992
|
);
|
1247
993
|
}
|
1248
994
|
|
@@ -1257,34 +1003,24 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1257
1003
|
answeredInRound: bigint;
|
1258
1004
|
}
|
1259
1005
|
> {
|
1260
|
-
const ethCallContext = {
|
1261
|
-
chainId: this.context.chainId,
|
1262
|
-
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1263
|
-
address: this.context.address,
|
1264
|
-
};
|
1265
1006
|
return await this.view.proposedLatestRoundData(
|
1266
1007
|
{
|
1267
1008
|
blockTag: this.context.blockNumber,
|
1268
1009
|
...overrides,
|
1269
1010
|
},
|
1270
1011
|
this.context.preparedData,
|
1271
|
-
|
1012
|
+
this.context.getEthCallContext(),
|
1272
1013
|
);
|
1273
1014
|
}
|
1274
1015
|
|
1275
1016
|
async version(overrides?: Overrides): Promise<bigint> {
|
1276
|
-
const ethCallContext = {
|
1277
|
-
chainId: this.context.chainId,
|
1278
|
-
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1279
|
-
address: this.context.address,
|
1280
|
-
};
|
1281
1017
|
return await this.view.version(
|
1282
1018
|
{
|
1283
1019
|
blockTag: this.context.blockNumber,
|
1284
1020
|
...overrides,
|
1285
1021
|
},
|
1286
1022
|
this.context.preparedData,
|
1287
|
-
|
1023
|
+
this.context.getEthCallContext(),
|
1288
1024
|
);
|
1289
1025
|
}
|
1290
1026
|
|
@@ -1293,29 +1029,19 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1293
1029
|
context: this.context,
|
1294
1030
|
|
1295
1031
|
async acceptOwnership(overrides?: Overrides): Promise<void> {
|
1296
|
-
const ethCallContext = {
|
1297
|
-
chainId: this.context.chainId,
|
1298
|
-
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1299
|
-
address: this.context.address,
|
1300
|
-
};
|
1301
1032
|
return await this.view.callStatic.acceptOwnership(
|
1302
1033
|
{
|
1303
1034
|
blockTag: this.context.blockNumber,
|
1304
1035
|
...overrides,
|
1305
1036
|
},
|
1306
1037
|
this.context.preparedData,
|
1307
|
-
|
1038
|
+
this.context.getEthCallContext(),
|
1308
1039
|
);
|
1309
1040
|
},
|
1310
1041
|
async confirmAggregator(
|
1311
1042
|
_aggregator: string,
|
1312
1043
|
overrides?: Overrides,
|
1313
1044
|
): Promise<void> {
|
1314
|
-
const ethCallContext = {
|
1315
|
-
chainId: this.context.chainId,
|
1316
|
-
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1317
|
-
address: this.context.address,
|
1318
|
-
};
|
1319
1045
|
return await this.view.callStatic.confirmAggregator(
|
1320
1046
|
_aggregator,
|
1321
1047
|
{
|
@@ -1323,18 +1049,13 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1323
1049
|
...overrides,
|
1324
1050
|
},
|
1325
1051
|
this.context.preparedData,
|
1326
|
-
|
1052
|
+
this.context.getEthCallContext(),
|
1327
1053
|
);
|
1328
1054
|
},
|
1329
1055
|
async proposeAggregator(
|
1330
1056
|
_aggregator: string,
|
1331
1057
|
overrides?: Overrides,
|
1332
1058
|
): Promise<void> {
|
1333
|
-
const ethCallContext = {
|
1334
|
-
chainId: this.context.chainId,
|
1335
|
-
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1336
|
-
address: this.context.address,
|
1337
|
-
};
|
1338
1059
|
return await this.view.callStatic.proposeAggregator(
|
1339
1060
|
_aggregator,
|
1340
1061
|
{
|
@@ -1342,18 +1063,13 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1342
1063
|
...overrides,
|
1343
1064
|
},
|
1344
1065
|
this.context.preparedData,
|
1345
|
-
|
1066
|
+
this.context.getEthCallContext(),
|
1346
1067
|
);
|
1347
1068
|
},
|
1348
1069
|
async setController(
|
1349
1070
|
_accessController: string,
|
1350
1071
|
overrides?: Overrides,
|
1351
1072
|
): Promise<void> {
|
1352
|
-
const ethCallContext = {
|
1353
|
-
chainId: this.context.chainId,
|
1354
|
-
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1355
|
-
address: this.context.address,
|
1356
|
-
};
|
1357
1073
|
return await this.view.callStatic.setController(
|
1358
1074
|
_accessController,
|
1359
1075
|
{
|
@@ -1361,15 +1077,10 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1361
1077
|
...overrides,
|
1362
1078
|
},
|
1363
1079
|
this.context.preparedData,
|
1364
|
-
|
1080
|
+
this.context.getEthCallContext(),
|
1365
1081
|
);
|
1366
1082
|
},
|
1367
1083
|
async transferOwnership(_to: string, overrides?: Overrides): Promise<void> {
|
1368
|
-
const ethCallContext = {
|
1369
|
-
chainId: this.context.chainId,
|
1370
|
-
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1371
|
-
address: this.context.address,
|
1372
|
-
};
|
1373
1084
|
return await this.view.callStatic.transferOwnership(
|
1374
1085
|
_to,
|
1375
1086
|
{
|
@@ -1377,7 +1088,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1377
1088
|
...overrides,
|
1378
1089
|
},
|
1379
1090
|
this.context.preparedData,
|
1380
|
-
|
1091
|
+
this.context.getEthCallContext(),
|
1381
1092
|
);
|
1382
1093
|
},
|
1383
1094
|
};
|
@@ -1387,360 +1098,176 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1387
1098
|
context: this.context,
|
1388
1099
|
|
1389
1100
|
acceptOwnership(overrides?: Overrides): EthCallParam {
|
1390
|
-
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1391
|
-
if (overrides?.blockTag) {
|
1392
|
-
blockTagWithOverride =
|
1393
|
-
typeof overrides.blockTag == "string"
|
1394
|
-
? overrides.blockTag
|
1395
|
-
: "0x" + overrides.blockTag.toString(16);
|
1396
|
-
}
|
1397
|
-
|
1398
1101
|
return this.view.encodeCall.acceptOwnership({
|
1399
1102
|
chainId: this.context.chainId.toString(),
|
1400
1103
|
address: this.context.address,
|
1401
|
-
blockTag:
|
1104
|
+
blockTag: this.context.getBlockTag(overrides),
|
1402
1105
|
});
|
1403
1106
|
},
|
1404
1107
|
accessController(overrides?: Overrides): EthCallParam {
|
1405
|
-
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1406
|
-
if (overrides?.blockTag) {
|
1407
|
-
blockTagWithOverride =
|
1408
|
-
typeof overrides.blockTag == "string"
|
1409
|
-
? overrides.blockTag
|
1410
|
-
: "0x" + overrides.blockTag.toString(16);
|
1411
|
-
}
|
1412
|
-
|
1413
1108
|
return this.view.encodeCall.accessController({
|
1414
1109
|
chainId: this.context.chainId.toString(),
|
1415
1110
|
address: this.context.address,
|
1416
|
-
blockTag:
|
1111
|
+
blockTag: this.context.getBlockTag(overrides),
|
1417
1112
|
});
|
1418
1113
|
},
|
1419
1114
|
aggregator(overrides?: Overrides): EthCallParam {
|
1420
|
-
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1421
|
-
if (overrides?.blockTag) {
|
1422
|
-
blockTagWithOverride =
|
1423
|
-
typeof overrides.blockTag == "string"
|
1424
|
-
? overrides.blockTag
|
1425
|
-
: "0x" + overrides.blockTag.toString(16);
|
1426
|
-
}
|
1427
|
-
|
1428
1115
|
return this.view.encodeCall.aggregator({
|
1429
1116
|
chainId: this.context.chainId.toString(),
|
1430
1117
|
address: this.context.address,
|
1431
|
-
blockTag:
|
1118
|
+
blockTag: this.context.getBlockTag(overrides),
|
1432
1119
|
});
|
1433
1120
|
},
|
1434
1121
|
confirmAggregator(
|
1435
1122
|
_aggregator: string,
|
1436
1123
|
overrides?: Overrides,
|
1437
1124
|
): EthCallParam {
|
1438
|
-
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1439
|
-
if (overrides?.blockTag) {
|
1440
|
-
blockTagWithOverride =
|
1441
|
-
typeof overrides.blockTag == "string"
|
1442
|
-
? overrides.blockTag
|
1443
|
-
: "0x" + overrides.blockTag.toString(16);
|
1444
|
-
}
|
1445
|
-
|
1446
1125
|
return this.view.encodeCall.confirmAggregator(_aggregator, {
|
1447
1126
|
chainId: this.context.chainId.toString(),
|
1448
1127
|
address: this.context.address,
|
1449
|
-
blockTag:
|
1128
|
+
blockTag: this.context.getBlockTag(overrides),
|
1450
1129
|
});
|
1451
1130
|
},
|
1452
1131
|
decimals(overrides?: Overrides): EthCallParam {
|
1453
|
-
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1454
|
-
if (overrides?.blockTag) {
|
1455
|
-
blockTagWithOverride =
|
1456
|
-
typeof overrides.blockTag == "string"
|
1457
|
-
? overrides.blockTag
|
1458
|
-
: "0x" + overrides.blockTag.toString(16);
|
1459
|
-
}
|
1460
|
-
|
1461
1132
|
return this.view.encodeCall.decimals({
|
1462
1133
|
chainId: this.context.chainId.toString(),
|
1463
1134
|
address: this.context.address,
|
1464
|
-
blockTag:
|
1135
|
+
blockTag: this.context.getBlockTag(overrides),
|
1465
1136
|
});
|
1466
1137
|
},
|
1467
1138
|
description(overrides?: Overrides): EthCallParam {
|
1468
|
-
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1469
|
-
if (overrides?.blockTag) {
|
1470
|
-
blockTagWithOverride =
|
1471
|
-
typeof overrides.blockTag == "string"
|
1472
|
-
? overrides.blockTag
|
1473
|
-
: "0x" + overrides.blockTag.toString(16);
|
1474
|
-
}
|
1475
|
-
|
1476
1139
|
return this.view.encodeCall.description({
|
1477
1140
|
chainId: this.context.chainId.toString(),
|
1478
1141
|
address: this.context.address,
|
1479
|
-
blockTag:
|
1142
|
+
blockTag: this.context.getBlockTag(overrides),
|
1480
1143
|
});
|
1481
1144
|
},
|
1482
1145
|
getAnswer(_roundId: BigNumberish, overrides?: Overrides): EthCallParam {
|
1483
|
-
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1484
|
-
if (overrides?.blockTag) {
|
1485
|
-
blockTagWithOverride =
|
1486
|
-
typeof overrides.blockTag == "string"
|
1487
|
-
? overrides.blockTag
|
1488
|
-
: "0x" + overrides.blockTag.toString(16);
|
1489
|
-
}
|
1490
|
-
|
1491
1146
|
return this.view.encodeCall.getAnswer(_roundId, {
|
1492
1147
|
chainId: this.context.chainId.toString(),
|
1493
1148
|
address: this.context.address,
|
1494
|
-
blockTag:
|
1149
|
+
blockTag: this.context.getBlockTag(overrides),
|
1495
1150
|
});
|
1496
1151
|
},
|
1497
1152
|
getRoundData(_roundId: BigNumberish, overrides?: Overrides): EthCallParam {
|
1498
|
-
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1499
|
-
if (overrides?.blockTag) {
|
1500
|
-
blockTagWithOverride =
|
1501
|
-
typeof overrides.blockTag == "string"
|
1502
|
-
? overrides.blockTag
|
1503
|
-
: "0x" + overrides.blockTag.toString(16);
|
1504
|
-
}
|
1505
|
-
|
1506
1153
|
return this.view.encodeCall.getRoundData(_roundId, {
|
1507
1154
|
chainId: this.context.chainId.toString(),
|
1508
1155
|
address: this.context.address,
|
1509
|
-
blockTag:
|
1156
|
+
blockTag: this.context.getBlockTag(overrides),
|
1510
1157
|
});
|
1511
1158
|
},
|
1512
1159
|
getTimestamp(_roundId: BigNumberish, overrides?: Overrides): EthCallParam {
|
1513
|
-
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1514
|
-
if (overrides?.blockTag) {
|
1515
|
-
blockTagWithOverride =
|
1516
|
-
typeof overrides.blockTag == "string"
|
1517
|
-
? overrides.blockTag
|
1518
|
-
: "0x" + overrides.blockTag.toString(16);
|
1519
|
-
}
|
1520
|
-
|
1521
1160
|
return this.view.encodeCall.getTimestamp(_roundId, {
|
1522
1161
|
chainId: this.context.chainId.toString(),
|
1523
1162
|
address: this.context.address,
|
1524
|
-
blockTag:
|
1163
|
+
blockTag: this.context.getBlockTag(overrides),
|
1525
1164
|
});
|
1526
1165
|
},
|
1527
1166
|
latestAnswer(overrides?: Overrides): EthCallParam {
|
1528
|
-
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1529
|
-
if (overrides?.blockTag) {
|
1530
|
-
blockTagWithOverride =
|
1531
|
-
typeof overrides.blockTag == "string"
|
1532
|
-
? overrides.blockTag
|
1533
|
-
: "0x" + overrides.blockTag.toString(16);
|
1534
|
-
}
|
1535
|
-
|
1536
1167
|
return this.view.encodeCall.latestAnswer({
|
1537
1168
|
chainId: this.context.chainId.toString(),
|
1538
1169
|
address: this.context.address,
|
1539
|
-
blockTag:
|
1170
|
+
blockTag: this.context.getBlockTag(overrides),
|
1540
1171
|
});
|
1541
1172
|
},
|
1542
1173
|
latestRound(overrides?: Overrides): EthCallParam {
|
1543
|
-
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1544
|
-
if (overrides?.blockTag) {
|
1545
|
-
blockTagWithOverride =
|
1546
|
-
typeof overrides.blockTag == "string"
|
1547
|
-
? overrides.blockTag
|
1548
|
-
: "0x" + overrides.blockTag.toString(16);
|
1549
|
-
}
|
1550
|
-
|
1551
1174
|
return this.view.encodeCall.latestRound({
|
1552
1175
|
chainId: this.context.chainId.toString(),
|
1553
1176
|
address: this.context.address,
|
1554
|
-
blockTag:
|
1177
|
+
blockTag: this.context.getBlockTag(overrides),
|
1555
1178
|
});
|
1556
1179
|
},
|
1557
1180
|
latestRoundData(overrides?: Overrides): EthCallParam {
|
1558
|
-
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1559
|
-
if (overrides?.blockTag) {
|
1560
|
-
blockTagWithOverride =
|
1561
|
-
typeof overrides.blockTag == "string"
|
1562
|
-
? overrides.blockTag
|
1563
|
-
: "0x" + overrides.blockTag.toString(16);
|
1564
|
-
}
|
1565
|
-
|
1566
1181
|
return this.view.encodeCall.latestRoundData({
|
1567
1182
|
chainId: this.context.chainId.toString(),
|
1568
1183
|
address: this.context.address,
|
1569
|
-
blockTag:
|
1184
|
+
blockTag: this.context.getBlockTag(overrides),
|
1570
1185
|
});
|
1571
1186
|
},
|
1572
1187
|
latestTimestamp(overrides?: Overrides): EthCallParam {
|
1573
|
-
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1574
|
-
if (overrides?.blockTag) {
|
1575
|
-
blockTagWithOverride =
|
1576
|
-
typeof overrides.blockTag == "string"
|
1577
|
-
? overrides.blockTag
|
1578
|
-
: "0x" + overrides.blockTag.toString(16);
|
1579
|
-
}
|
1580
|
-
|
1581
1188
|
return this.view.encodeCall.latestTimestamp({
|
1582
1189
|
chainId: this.context.chainId.toString(),
|
1583
1190
|
address: this.context.address,
|
1584
|
-
blockTag:
|
1191
|
+
blockTag: this.context.getBlockTag(overrides),
|
1585
1192
|
});
|
1586
1193
|
},
|
1587
1194
|
owner(overrides?: Overrides): EthCallParam {
|
1588
|
-
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1589
|
-
if (overrides?.blockTag) {
|
1590
|
-
blockTagWithOverride =
|
1591
|
-
typeof overrides.blockTag == "string"
|
1592
|
-
? overrides.blockTag
|
1593
|
-
: "0x" + overrides.blockTag.toString(16);
|
1594
|
-
}
|
1595
|
-
|
1596
1195
|
return this.view.encodeCall.owner({
|
1597
1196
|
chainId: this.context.chainId.toString(),
|
1598
1197
|
address: this.context.address,
|
1599
|
-
blockTag:
|
1198
|
+
blockTag: this.context.getBlockTag(overrides),
|
1600
1199
|
});
|
1601
1200
|
},
|
1602
1201
|
phaseAggregators(arg0: BigNumberish, overrides?: Overrides): EthCallParam {
|
1603
|
-
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1604
|
-
if (overrides?.blockTag) {
|
1605
|
-
blockTagWithOverride =
|
1606
|
-
typeof overrides.blockTag == "string"
|
1607
|
-
? overrides.blockTag
|
1608
|
-
: "0x" + overrides.blockTag.toString(16);
|
1609
|
-
}
|
1610
|
-
|
1611
1202
|
return this.view.encodeCall.phaseAggregators(arg0, {
|
1612
1203
|
chainId: this.context.chainId.toString(),
|
1613
1204
|
address: this.context.address,
|
1614
|
-
blockTag:
|
1205
|
+
blockTag: this.context.getBlockTag(overrides),
|
1615
1206
|
});
|
1616
1207
|
},
|
1617
1208
|
phaseId(overrides?: Overrides): EthCallParam {
|
1618
|
-
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1619
|
-
if (overrides?.blockTag) {
|
1620
|
-
blockTagWithOverride =
|
1621
|
-
typeof overrides.blockTag == "string"
|
1622
|
-
? overrides.blockTag
|
1623
|
-
: "0x" + overrides.blockTag.toString(16);
|
1624
|
-
}
|
1625
|
-
|
1626
1209
|
return this.view.encodeCall.phaseId({
|
1627
1210
|
chainId: this.context.chainId.toString(),
|
1628
1211
|
address: this.context.address,
|
1629
|
-
blockTag:
|
1212
|
+
blockTag: this.context.getBlockTag(overrides),
|
1630
1213
|
});
|
1631
1214
|
},
|
1632
1215
|
proposeAggregator(
|
1633
1216
|
_aggregator: string,
|
1634
1217
|
overrides?: Overrides,
|
1635
1218
|
): EthCallParam {
|
1636
|
-
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1637
|
-
if (overrides?.blockTag) {
|
1638
|
-
blockTagWithOverride =
|
1639
|
-
typeof overrides.blockTag == "string"
|
1640
|
-
? overrides.blockTag
|
1641
|
-
: "0x" + overrides.blockTag.toString(16);
|
1642
|
-
}
|
1643
|
-
|
1644
1219
|
return this.view.encodeCall.proposeAggregator(_aggregator, {
|
1645
1220
|
chainId: this.context.chainId.toString(),
|
1646
1221
|
address: this.context.address,
|
1647
|
-
blockTag:
|
1222
|
+
blockTag: this.context.getBlockTag(overrides),
|
1648
1223
|
});
|
1649
1224
|
},
|
1650
1225
|
proposedAggregator(overrides?: Overrides): EthCallParam {
|
1651
|
-
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1652
|
-
if (overrides?.blockTag) {
|
1653
|
-
blockTagWithOverride =
|
1654
|
-
typeof overrides.blockTag == "string"
|
1655
|
-
? overrides.blockTag
|
1656
|
-
: "0x" + overrides.blockTag.toString(16);
|
1657
|
-
}
|
1658
|
-
|
1659
1226
|
return this.view.encodeCall.proposedAggregator({
|
1660
1227
|
chainId: this.context.chainId.toString(),
|
1661
1228
|
address: this.context.address,
|
1662
|
-
blockTag:
|
1229
|
+
blockTag: this.context.getBlockTag(overrides),
|
1663
1230
|
});
|
1664
1231
|
},
|
1665
1232
|
proposedGetRoundData(
|
1666
1233
|
_roundId: BigNumberish,
|
1667
1234
|
overrides?: Overrides,
|
1668
1235
|
): EthCallParam {
|
1669
|
-
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1670
|
-
if (overrides?.blockTag) {
|
1671
|
-
blockTagWithOverride =
|
1672
|
-
typeof overrides.blockTag == "string"
|
1673
|
-
? overrides.blockTag
|
1674
|
-
: "0x" + overrides.blockTag.toString(16);
|
1675
|
-
}
|
1676
|
-
|
1677
1236
|
return this.view.encodeCall.proposedGetRoundData(_roundId, {
|
1678
1237
|
chainId: this.context.chainId.toString(),
|
1679
1238
|
address: this.context.address,
|
1680
|
-
blockTag:
|
1239
|
+
blockTag: this.context.getBlockTag(overrides),
|
1681
1240
|
});
|
1682
1241
|
},
|
1683
1242
|
proposedLatestRoundData(overrides?: Overrides): EthCallParam {
|
1684
|
-
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1685
|
-
if (overrides?.blockTag) {
|
1686
|
-
blockTagWithOverride =
|
1687
|
-
typeof overrides.blockTag == "string"
|
1688
|
-
? overrides.blockTag
|
1689
|
-
: "0x" + overrides.blockTag.toString(16);
|
1690
|
-
}
|
1691
|
-
|
1692
1243
|
return this.view.encodeCall.proposedLatestRoundData({
|
1693
1244
|
chainId: this.context.chainId.toString(),
|
1694
1245
|
address: this.context.address,
|
1695
|
-
blockTag:
|
1246
|
+
blockTag: this.context.getBlockTag(overrides),
|
1696
1247
|
});
|
1697
1248
|
},
|
1698
1249
|
setController(
|
1699
1250
|
_accessController: string,
|
1700
1251
|
overrides?: Overrides,
|
1701
1252
|
): EthCallParam {
|
1702
|
-
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1703
|
-
if (overrides?.blockTag) {
|
1704
|
-
blockTagWithOverride =
|
1705
|
-
typeof overrides.blockTag == "string"
|
1706
|
-
? overrides.blockTag
|
1707
|
-
: "0x" + overrides.blockTag.toString(16);
|
1708
|
-
}
|
1709
|
-
|
1710
1253
|
return this.view.encodeCall.setController(_accessController, {
|
1711
1254
|
chainId: this.context.chainId.toString(),
|
1712
1255
|
address: this.context.address,
|
1713
|
-
blockTag:
|
1256
|
+
blockTag: this.context.getBlockTag(overrides),
|
1714
1257
|
});
|
1715
1258
|
},
|
1716
1259
|
transferOwnership(_to: string, overrides?: Overrides): EthCallParam {
|
1717
|
-
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1718
|
-
if (overrides?.blockTag) {
|
1719
|
-
blockTagWithOverride =
|
1720
|
-
typeof overrides.blockTag == "string"
|
1721
|
-
? overrides.blockTag
|
1722
|
-
: "0x" + overrides.blockTag.toString(16);
|
1723
|
-
}
|
1724
|
-
|
1725
1260
|
return this.view.encodeCall.transferOwnership(_to, {
|
1726
1261
|
chainId: this.context.chainId.toString(),
|
1727
1262
|
address: this.context.address,
|
1728
|
-
blockTag:
|
1263
|
+
blockTag: this.context.getBlockTag(overrides),
|
1729
1264
|
});
|
1730
1265
|
},
|
1731
1266
|
version(overrides?: Overrides): EthCallParam {
|
1732
|
-
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1733
|
-
if (overrides?.blockTag) {
|
1734
|
-
blockTagWithOverride =
|
1735
|
-
typeof overrides.blockTag == "string"
|
1736
|
-
? overrides.blockTag
|
1737
|
-
: "0x" + overrides.blockTag.toString(16);
|
1738
|
-
}
|
1739
|
-
|
1740
1267
|
return this.view.encodeCall.version({
|
1741
1268
|
chainId: this.context.chainId.toString(),
|
1742
1269
|
address: this.context.address,
|
1743
|
-
blockTag:
|
1270
|
+
blockTag: this.context.getBlockTag(overrides),
|
1744
1271
|
});
|
1745
1272
|
},
|
1746
1273
|
};
|