@meterio/sumer-js 0.1.14 → 0.1.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/dist/browser/sumer.min.js +10 -10
- package/dist/nodejs/abi.d.ts +96 -0
- package/dist/nodejs/abi.js +4936 -3136
- package/dist/nodejs/abi.js.map +1 -1
- package/dist/nodejs/cToken.d.ts +3 -2
- package/dist/nodejs/cToken.js +72 -12
- package/dist/nodejs/cToken.js.map +1 -1
- package/dist/nodejs/constants/arbitrum.d.ts +3 -0
- package/dist/nodejs/constants/arbitrum.js +44 -11
- package/dist/nodejs/constants/arbitrum.js.map +1 -1
- package/dist/nodejs/constants/basemain.d.ts +3 -0
- package/dist/nodejs/constants/basemain.js +32 -8
- package/dist/nodejs/constants/basemain.js.map +1 -1
- package/dist/nodejs/constants/basetest.d.ts +3 -0
- package/dist/nodejs/constants/basetest.js +28 -7
- package/dist/nodejs/constants/basetest.js.map +1 -1
- package/dist/nodejs/constants/goerli.d.ts +3 -0
- package/dist/nodejs/constants/goerli.js +40 -10
- package/dist/nodejs/constants/goerli.js.map +1 -1
- package/dist/nodejs/constants/index.d.ts +6 -1
- package/dist/nodejs/constants/index.js +14 -1
- package/dist/nodejs/constants/index.js.map +1 -1
- package/dist/nodejs/constants/metermain.d.ts +3 -0
- package/dist/nodejs/constants/metermain.js +28 -7
- package/dist/nodejs/constants/metermain.js.map +1 -1
- package/dist/nodejs/constants/metertest.d.ts +4 -0
- package/dist/nodejs/constants/metertest.js +143 -126
- package/dist/nodejs/constants/metertest.js.map +1 -1
- package/dist/nodejs/constants/sepolia.d.ts +3 -0
- package/dist/nodejs/constants/sepolia.js +20 -5
- package/dist/nodejs/constants/sepolia.js.map +1 -1
- package/dist/nodejs/errors.d.ts +322 -0
- package/dist/nodejs/errors.js +326 -0
- package/dist/nodejs/errors.js.map +1 -0
- package/dist/nodejs/index.d.ts +442 -1
- package/dist/nodejs/index.js +8 -0
- package/dist/nodejs/index.js.map +1 -1
- package/dist/nodejs/typechain/@openzeppelin/contracts/governance/TimelockController.d.ts +526 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/governance/TimelockController.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/governance/TimelockController.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/governance/index.d.ts +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/governance/index.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/governance/index.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/index.d.ts +2 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/interfaces/IERC5267.d.ts +78 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/interfaces/IERC5267.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/interfaces/IERC5267.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/interfaces/index.d.ts +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.d.ts +75 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC1155/index.d.ts +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC1155/index.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC1155/index.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC721/IERC721Receiver.d.ts +39 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC721/IERC721Receiver.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC721/IERC721Receiver.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC721/index.d.ts +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC721/index.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC721/index.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/index.d.ts +4 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/utils/ShortStrings.d.ts +20 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/utils/ShortStrings.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/utils/ShortStrings.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/utils/cryptography/EIP712.d.ts +78 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/utils/cryptography/EIP712.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/utils/cryptography/EIP712.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/utils/cryptography/index.d.ts +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/utils/cryptography/index.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/utils/cryptography/index.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/utils/index.d.ts +3 -0
- package/dist/nodejs/typechain/contracts/CToken/SuErc20.d.ts +17 -17
- package/dist/nodejs/typechain/contracts/Comptroller/CompoundLens.d.ts +7 -5
- package/dist/nodejs/typechain/contracts/Comptroller/Comptroller.d.ts +19 -1
- package/dist/nodejs/typechain/contracts/ERC20/ERC20MinterBurnerPauserPermit.d.ts +518 -0
- package/dist/nodejs/typechain/contracts/ERC20/ERC20MinterBurnerPauserPermit.js +3 -0
- package/dist/nodejs/typechain/contracts/ERC20/ERC20MinterBurnerPauserPermit.js.map +1 -0
- package/dist/nodejs/typechain/contracts/ERC20/index.d.ts +1 -0
- package/dist/nodejs/typechain/contracts/SumerTimelockController.d.ts +526 -0
- package/dist/nodejs/typechain/contracts/SumerTimelockController.js +3 -0
- package/dist/nodejs/typechain/contracts/SumerTimelockController.js.map +1 -0
- package/dist/nodejs/typechain/contracts/SumerTimelockController.sol/SumerTimelockController.d.ts +526 -0
- package/dist/nodejs/typechain/contracts/SumerTimelockController.sol/SumerTimelockController.js +3 -0
- package/dist/nodejs/typechain/contracts/SumerTimelockController.sol/SumerTimelockController.js.map +1 -0
- package/dist/nodejs/typechain/contracts/SumerTimelockController.sol/Timelock.d.ts +526 -0
- package/dist/nodejs/typechain/contracts/SumerTimelockController.sol/Timelock.js +3 -0
- package/dist/nodejs/typechain/contracts/SumerTimelockController.sol/Timelock.js.map +1 -0
- package/dist/nodejs/typechain/contracts/SumerTimelockController.sol/index.d.ts +2 -0
- package/dist/nodejs/typechain/contracts/SumerTimelockController.sol/index.js +3 -0
- package/dist/nodejs/typechain/contracts/SumerTimelockController.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/contracts/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/governance/TimelockController__factory.d.ts +711 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/governance/TimelockController__factory.js +929 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/governance/TimelockController__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/governance/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/governance/index.js +9 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/governance/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/index.js +2 -1
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/index.js.map +1 -1
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/interfaces/IERC5267__factory.d.ts +46 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/interfaces/IERC5267__factory.js +69 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/interfaces/IERC5267__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/interfaces/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/interfaces/index.js +3 -1
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/interfaces/index.js.map +1 -1
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC1155/IERC1155Receiver__factory.d.ts +81 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC1155/IERC1155Receiver__factory.js +117 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC1155/IERC1155Receiver__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC1155/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC1155/index.js +9 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC1155/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC721/IERC721Receiver__factory.d.ts +33 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC721/IERC721Receiver__factory.js +54 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC721/IERC721Receiver__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC721/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC721/index.js +9 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC721/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/index.d.ts +2 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/index.js +3 -1
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/index.js.map +1 -1
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/utils/ShortStrings__factory.d.ts +34 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/utils/ShortStrings__factory.js +56 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/utils/ShortStrings__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/utils/cryptography/EIP712__factory.d.ts +58 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/utils/cryptography/EIP712__factory.js +85 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/utils/cryptography/EIP712__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/utils/cryptography/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/utils/cryptography/index.js +9 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/utils/cryptography/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/utils/index.d.ts +2 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/utils/index.js +4 -1
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/utils/index.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.d.ts +27 -23
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js +35 -30
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.d.ts +6 -2
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js +7 -2
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.d.ts +51 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js +64 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/ERC20/ERC20MinterBurnerPauserPermit__factory.d.ts +669 -0
- package/dist/nodejs/typechain/factories/contracts/ERC20/ERC20MinterBurnerPauserPermit__factory.js +879 -0
- package/dist/nodejs/typechain/factories/contracts/ERC20/ERC20MinterBurnerPauserPermit__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/ERC20/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/contracts/ERC20/index.js +3 -1
- package/dist/nodejs/typechain/factories/contracts/ERC20/index.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/SumerTimelockController.sol/SumerTimelockController__factory.d.ts +707 -0
- package/dist/nodejs/typechain/factories/contracts/SumerTimelockController.sol/SumerTimelockController__factory.js +924 -0
- package/dist/nodejs/typechain/factories/contracts/SumerTimelockController.sol/SumerTimelockController__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/SumerTimelockController.sol/Timelock__factory.d.ts +707 -0
- package/dist/nodejs/typechain/factories/contracts/SumerTimelockController.sol/Timelock__factory.js +924 -0
- package/dist/nodejs/typechain/factories/contracts/SumerTimelockController.sol/Timelock__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/SumerTimelockController.sol/index.d.ts +2 -0
- package/dist/nodejs/typechain/factories/contracts/SumerTimelockController.sol/index.js +11 -0
- package/dist/nodejs/typechain/factories/contracts/SumerTimelockController.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/SumerTimelockController__factory.d.ts +707 -0
- package/dist/nodejs/typechain/factories/contracts/SumerTimelockController__factory.js +924 -0
- package/dist/nodejs/typechain/factories/contracts/SumerTimelockController__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/contracts/index.js +3 -1
- package/dist/nodejs/typechain/factories/contracts/index.js.map +1 -1
- package/dist/nodejs/typechain/hardhat.d.ts +144 -0
- package/dist/nodejs/typechain/index.d.ts +16 -0
- package/dist/nodejs/typechain/index.js +19 -2
- package/dist/nodejs/typechain/index.js.map +1 -1
- package/dist/nodejs/util.d.ts +1 -0
- package/dist/nodejs/util.js +24 -1
- package/dist/nodejs/util.js.map +1 -1
- package/package.json +2 -2
package/dist/nodejs/index.d.ts
CHANGED
|
@@ -78,6 +78,52 @@ declare const Sumer: {
|
|
|
78
78
|
stateMutability: string;
|
|
79
79
|
type: string;
|
|
80
80
|
}[];
|
|
81
|
+
SumerTimelockController: ({
|
|
82
|
+
inputs: {
|
|
83
|
+
internalType: string;
|
|
84
|
+
name: string;
|
|
85
|
+
type: string;
|
|
86
|
+
}[];
|
|
87
|
+
stateMutability: string;
|
|
88
|
+
type: string;
|
|
89
|
+
anonymous?: undefined;
|
|
90
|
+
name?: undefined;
|
|
91
|
+
outputs?: undefined;
|
|
92
|
+
} | {
|
|
93
|
+
anonymous: boolean;
|
|
94
|
+
inputs: {
|
|
95
|
+
indexed: boolean;
|
|
96
|
+
internalType: string;
|
|
97
|
+
name: string;
|
|
98
|
+
type: string;
|
|
99
|
+
}[];
|
|
100
|
+
name: string;
|
|
101
|
+
type: string;
|
|
102
|
+
stateMutability?: undefined;
|
|
103
|
+
outputs?: undefined;
|
|
104
|
+
} | {
|
|
105
|
+
inputs: {
|
|
106
|
+
internalType: string;
|
|
107
|
+
name: string;
|
|
108
|
+
type: string;
|
|
109
|
+
}[];
|
|
110
|
+
name: string;
|
|
111
|
+
outputs: {
|
|
112
|
+
internalType: string;
|
|
113
|
+
name: string;
|
|
114
|
+
type: string;
|
|
115
|
+
}[];
|
|
116
|
+
stateMutability: string;
|
|
117
|
+
type: string;
|
|
118
|
+
anonymous?: undefined;
|
|
119
|
+
} | {
|
|
120
|
+
stateMutability: string;
|
|
121
|
+
type: string;
|
|
122
|
+
inputs?: undefined;
|
|
123
|
+
anonymous?: undefined;
|
|
124
|
+
name?: undefined;
|
|
125
|
+
outputs?: undefined;
|
|
126
|
+
})[];
|
|
81
127
|
ICToken: {
|
|
82
128
|
inputs: {
|
|
83
129
|
internalType: string;
|
|
@@ -630,6 +676,56 @@ declare const Sumer: {
|
|
|
630
676
|
type: string;
|
|
631
677
|
anonymous?: undefined;
|
|
632
678
|
})[];
|
|
679
|
+
ERC20MinterBurnerPauserPermit: ({
|
|
680
|
+
inputs: {
|
|
681
|
+
internalType: string;
|
|
682
|
+
name: string;
|
|
683
|
+
type: string;
|
|
684
|
+
}[];
|
|
685
|
+
stateMutability: string;
|
|
686
|
+
type: string;
|
|
687
|
+
name?: undefined;
|
|
688
|
+
anonymous?: undefined;
|
|
689
|
+
outputs?: undefined;
|
|
690
|
+
} | {
|
|
691
|
+
inputs: {
|
|
692
|
+
internalType: string;
|
|
693
|
+
name: string;
|
|
694
|
+
type: string;
|
|
695
|
+
}[];
|
|
696
|
+
name: string;
|
|
697
|
+
type: string;
|
|
698
|
+
stateMutability?: undefined;
|
|
699
|
+
anonymous?: undefined;
|
|
700
|
+
outputs?: undefined;
|
|
701
|
+
} | {
|
|
702
|
+
anonymous: boolean;
|
|
703
|
+
inputs: {
|
|
704
|
+
indexed: boolean;
|
|
705
|
+
internalType: string;
|
|
706
|
+
name: string;
|
|
707
|
+
type: string;
|
|
708
|
+
}[];
|
|
709
|
+
name: string;
|
|
710
|
+
type: string;
|
|
711
|
+
stateMutability?: undefined;
|
|
712
|
+
outputs?: undefined;
|
|
713
|
+
} | {
|
|
714
|
+
inputs: {
|
|
715
|
+
internalType: string;
|
|
716
|
+
name: string;
|
|
717
|
+
type: string;
|
|
718
|
+
}[];
|
|
719
|
+
name: string;
|
|
720
|
+
outputs: {
|
|
721
|
+
internalType: string;
|
|
722
|
+
name: string;
|
|
723
|
+
type: string;
|
|
724
|
+
}[];
|
|
725
|
+
stateMutability: string;
|
|
726
|
+
type: string;
|
|
727
|
+
anonymous?: undefined;
|
|
728
|
+
})[];
|
|
633
729
|
CarefulMath: any[];
|
|
634
730
|
Exponential: any[];
|
|
635
731
|
ExponentialNoError: any[];
|
|
@@ -1879,17 +1975,362 @@ declare const Sumer: {
|
|
|
1879
1975
|
anonymous?: undefined;
|
|
1880
1976
|
})[];
|
|
1881
1977
|
};
|
|
1978
|
+
errors: {
|
|
1979
|
+
"0x47556579": {
|
|
1980
|
+
err: string;
|
|
1981
|
+
explain: string;
|
|
1982
|
+
};
|
|
1983
|
+
"0xd1ec4b23": {
|
|
1984
|
+
err: string;
|
|
1985
|
+
explain: string;
|
|
1986
|
+
};
|
|
1987
|
+
"0x880ed0f3": {
|
|
1988
|
+
err: string;
|
|
1989
|
+
explain: string;
|
|
1990
|
+
};
|
|
1991
|
+
"0x91f53656": {
|
|
1992
|
+
err: string;
|
|
1993
|
+
explain: string;
|
|
1994
|
+
};
|
|
1995
|
+
"0x47435475": {
|
|
1996
|
+
err: string;
|
|
1997
|
+
explain: string;
|
|
1998
|
+
};
|
|
1999
|
+
"0x2f028cfb": {
|
|
2000
|
+
err: string;
|
|
2001
|
+
explain: string;
|
|
2002
|
+
};
|
|
2003
|
+
"0x8ddb9aa6": {
|
|
2004
|
+
err: string;
|
|
2005
|
+
explain: string;
|
|
2006
|
+
};
|
|
2007
|
+
"0xcaab38a0": {
|
|
2008
|
+
err: string;
|
|
2009
|
+
explain: string;
|
|
2010
|
+
};
|
|
2011
|
+
"0xe610f326": {
|
|
2012
|
+
err: string;
|
|
2013
|
+
explain: string;
|
|
2014
|
+
};
|
|
2015
|
+
"0x8cd22d19": {
|
|
2016
|
+
err: string;
|
|
2017
|
+
explain: string;
|
|
2018
|
+
};
|
|
2019
|
+
"0x8e10cbd3": {
|
|
2020
|
+
err: string;
|
|
2021
|
+
explain: string;
|
|
2022
|
+
};
|
|
2023
|
+
"0x431f269d": {
|
|
2024
|
+
err: string;
|
|
2025
|
+
explain: string;
|
|
2026
|
+
};
|
|
2027
|
+
"0xf4f600dd": {
|
|
2028
|
+
err: string;
|
|
2029
|
+
explain: string;
|
|
2030
|
+
};
|
|
2031
|
+
"0xc265b0ce": {
|
|
2032
|
+
err: string;
|
|
2033
|
+
explain: string;
|
|
2034
|
+
};
|
|
2035
|
+
"0x8329b283": {
|
|
2036
|
+
err: string;
|
|
2037
|
+
explain: string;
|
|
2038
|
+
};
|
|
2039
|
+
"0x7e32c5cb": {
|
|
2040
|
+
err: string;
|
|
2041
|
+
explain: string;
|
|
2042
|
+
};
|
|
2043
|
+
"0xd725cf1c": {
|
|
2044
|
+
err: string;
|
|
2045
|
+
explain: string;
|
|
2046
|
+
};
|
|
2047
|
+
"0x6f7bdc53": {
|
|
2048
|
+
err: string;
|
|
2049
|
+
explain: string;
|
|
2050
|
+
};
|
|
2051
|
+
"0xf630766b": {
|
|
2052
|
+
err: string;
|
|
2053
|
+
explain: string;
|
|
2054
|
+
};
|
|
2055
|
+
"0x3a92ed04": {
|
|
2056
|
+
err: string;
|
|
2057
|
+
explain: string;
|
|
2058
|
+
};
|
|
2059
|
+
"0xe6c4247b": {
|
|
2060
|
+
err: string;
|
|
2061
|
+
explain: string;
|
|
2062
|
+
};
|
|
2063
|
+
"0x2977522e": {
|
|
2064
|
+
err: string;
|
|
2065
|
+
explain: string;
|
|
2066
|
+
};
|
|
2067
|
+
"0xa2ec3a55": {
|
|
2068
|
+
err: string;
|
|
2069
|
+
explain: string;
|
|
2070
|
+
};
|
|
2071
|
+
"0x548497dc": {
|
|
2072
|
+
err: string;
|
|
2073
|
+
explain: string;
|
|
2074
|
+
};
|
|
2075
|
+
"0x373792d2": {
|
|
2076
|
+
err: string;
|
|
2077
|
+
explain: string;
|
|
2078
|
+
};
|
|
2079
|
+
"0x83aebebd": {
|
|
2080
|
+
err: string;
|
|
2081
|
+
explain: string;
|
|
2082
|
+
};
|
|
2083
|
+
"0xee39b725": {
|
|
2084
|
+
err: string;
|
|
2085
|
+
explain: string;
|
|
2086
|
+
};
|
|
2087
|
+
"0x2c5211c6": {
|
|
2088
|
+
err: string;
|
|
2089
|
+
explain: string;
|
|
2090
|
+
};
|
|
2091
|
+
"0x015f7140": {
|
|
2092
|
+
err: string;
|
|
2093
|
+
explain: string;
|
|
2094
|
+
};
|
|
2095
|
+
"0xee366600": {
|
|
2096
|
+
err: string;
|
|
2097
|
+
explain: string;
|
|
2098
|
+
};
|
|
2099
|
+
"0x4a8af12d": {
|
|
2100
|
+
err: string;
|
|
2101
|
+
explain: string;
|
|
2102
|
+
};
|
|
2103
|
+
"0xbcce27e3": {
|
|
2104
|
+
err: string;
|
|
2105
|
+
explain: string;
|
|
2106
|
+
};
|
|
2107
|
+
"0xbbd8fc01": {
|
|
2108
|
+
err: string;
|
|
2109
|
+
explain: string;
|
|
2110
|
+
};
|
|
2111
|
+
"0xeaddd240": {
|
|
2112
|
+
err: string;
|
|
2113
|
+
explain: string;
|
|
2114
|
+
};
|
|
2115
|
+
"0xc99eac68": {
|
|
2116
|
+
err: string;
|
|
2117
|
+
explain: string;
|
|
2118
|
+
};
|
|
2119
|
+
"0x44cef74c": {
|
|
2120
|
+
err: string;
|
|
2121
|
+
explain: string;
|
|
2122
|
+
};
|
|
2123
|
+
"0xd1bfa152": {
|
|
2124
|
+
err: string;
|
|
2125
|
+
explain: string;
|
|
2126
|
+
};
|
|
2127
|
+
"0x3219b682": {
|
|
2128
|
+
err: string;
|
|
2129
|
+
explain: string;
|
|
2130
|
+
};
|
|
2131
|
+
"0xba1406af": {
|
|
2132
|
+
err: string;
|
|
2133
|
+
explain: string;
|
|
2134
|
+
};
|
|
2135
|
+
"0x97373c4d": {
|
|
2136
|
+
err: string;
|
|
2137
|
+
explain: string;
|
|
2138
|
+
};
|
|
2139
|
+
"0xdb19c5b1": {
|
|
2140
|
+
err: string;
|
|
2141
|
+
explain: string;
|
|
2142
|
+
};
|
|
2143
|
+
"0x23de8853": {
|
|
2144
|
+
err: string;
|
|
2145
|
+
explain: string;
|
|
2146
|
+
};
|
|
2147
|
+
"0xe28f82fe": {
|
|
2148
|
+
err: string;
|
|
2149
|
+
explain: string;
|
|
2150
|
+
};
|
|
2151
|
+
"0xd0cd4f9b": {
|
|
2152
|
+
err: string;
|
|
2153
|
+
explain: string;
|
|
2154
|
+
};
|
|
2155
|
+
"0xba6be900": {
|
|
2156
|
+
err: string;
|
|
2157
|
+
explain: string;
|
|
2158
|
+
};
|
|
2159
|
+
"0x62f79e70": {
|
|
2160
|
+
err: string;
|
|
2161
|
+
explain: string;
|
|
2162
|
+
};
|
|
2163
|
+
"0x1624a1b5": {
|
|
2164
|
+
err: string;
|
|
2165
|
+
explain: string;
|
|
2166
|
+
};
|
|
2167
|
+
"0x8b025d4e": {
|
|
2168
|
+
err: string;
|
|
2169
|
+
explain: string;
|
|
2170
|
+
};
|
|
2171
|
+
"0x9c86a334": {
|
|
2172
|
+
err: string;
|
|
2173
|
+
explain: string;
|
|
2174
|
+
};
|
|
2175
|
+
"0x5b8ae239": {
|
|
2176
|
+
err: string;
|
|
2177
|
+
explain: string;
|
|
2178
|
+
};
|
|
2179
|
+
"0xa27f84d8": {
|
|
2180
|
+
err: string;
|
|
2181
|
+
explain: string;
|
|
2182
|
+
};
|
|
2183
|
+
"0x547d32af": {
|
|
2184
|
+
err: string;
|
|
2185
|
+
explain: string;
|
|
2186
|
+
};
|
|
2187
|
+
"0x10c99edb": {
|
|
2188
|
+
err: string;
|
|
2189
|
+
explain: string;
|
|
2190
|
+
};
|
|
2191
|
+
"0xcbebf92d": {
|
|
2192
|
+
err: string;
|
|
2193
|
+
explain: string;
|
|
2194
|
+
};
|
|
2195
|
+
"0x86b5988c": {
|
|
2196
|
+
err: string;
|
|
2197
|
+
explain: string;
|
|
2198
|
+
};
|
|
2199
|
+
"0xae664e2f": {
|
|
2200
|
+
err: string;
|
|
2201
|
+
explain: string;
|
|
2202
|
+
};
|
|
2203
|
+
"0xfe107e7e": {
|
|
2204
|
+
err: string;
|
|
2205
|
+
explain: string;
|
|
2206
|
+
};
|
|
2207
|
+
"0xb2f72f47": {
|
|
2208
|
+
err: string;
|
|
2209
|
+
explain: string;
|
|
2210
|
+
};
|
|
2211
|
+
"0xf72ef4e1": {
|
|
2212
|
+
err: string;
|
|
2213
|
+
explain: string;
|
|
2214
|
+
};
|
|
2215
|
+
"0x73f0c360": {
|
|
2216
|
+
err: string;
|
|
2217
|
+
explain: string;
|
|
2218
|
+
};
|
|
2219
|
+
"0x1cf449d6": {
|
|
2220
|
+
err: string;
|
|
2221
|
+
explain: string;
|
|
2222
|
+
};
|
|
2223
|
+
"0x53d9d519": {
|
|
2224
|
+
err: string;
|
|
2225
|
+
explain: string;
|
|
2226
|
+
};
|
|
2227
|
+
"0x7a2d3db3": {
|
|
2228
|
+
err: string;
|
|
2229
|
+
explain: string;
|
|
2230
|
+
};
|
|
2231
|
+
"0xca22d86c": {
|
|
2232
|
+
err: string;
|
|
2233
|
+
explain: string;
|
|
2234
|
+
};
|
|
2235
|
+
"0x7ccfa2dc": {
|
|
2236
|
+
err: string;
|
|
2237
|
+
explain: string;
|
|
2238
|
+
};
|
|
2239
|
+
"0xa31ab54a": {
|
|
2240
|
+
err: string;
|
|
2241
|
+
explain: string;
|
|
2242
|
+
};
|
|
2243
|
+
"0x69609fc6": {
|
|
2244
|
+
err: string;
|
|
2245
|
+
explain: string;
|
|
2246
|
+
};
|
|
2247
|
+
"0x095bf333": {
|
|
2248
|
+
err: string;
|
|
2249
|
+
explain: string;
|
|
2250
|
+
};
|
|
2251
|
+
"0xe46c1559": {
|
|
2252
|
+
err: string;
|
|
2253
|
+
explain: string;
|
|
2254
|
+
};
|
|
2255
|
+
"0x3024a2a2": {
|
|
2256
|
+
err: string;
|
|
2257
|
+
explain: string;
|
|
2258
|
+
};
|
|
2259
|
+
"0x5012e145": {
|
|
2260
|
+
err: string;
|
|
2261
|
+
explain: string;
|
|
2262
|
+
};
|
|
2263
|
+
"0x17255816": {
|
|
2264
|
+
err: string;
|
|
2265
|
+
explain: string;
|
|
2266
|
+
};
|
|
2267
|
+
"0xaf0b004c": {
|
|
2268
|
+
err: string;
|
|
2269
|
+
explain: string;
|
|
2270
|
+
};
|
|
2271
|
+
"0x4d5eeb49": {
|
|
2272
|
+
err: string;
|
|
2273
|
+
explain: string;
|
|
2274
|
+
};
|
|
2275
|
+
"0x2534adb4": {
|
|
2276
|
+
err: string;
|
|
2277
|
+
explain: string;
|
|
2278
|
+
};
|
|
2279
|
+
"0xd7d248ba": {
|
|
2280
|
+
err: string;
|
|
2281
|
+
explain: string;
|
|
2282
|
+
};
|
|
2283
|
+
"0x12b0cb46": {
|
|
2284
|
+
err: string;
|
|
2285
|
+
explain: string;
|
|
2286
|
+
};
|
|
2287
|
+
"0xcd1fda9f": {
|
|
2288
|
+
err: string;
|
|
2289
|
+
explain: string;
|
|
2290
|
+
};
|
|
2291
|
+
"0x0fe80ef6": {
|
|
2292
|
+
err: string;
|
|
2293
|
+
explain: string;
|
|
2294
|
+
};
|
|
2295
|
+
"0x1a8fefc3": {
|
|
2296
|
+
err: string;
|
|
2297
|
+
explain: string;
|
|
2298
|
+
};
|
|
2299
|
+
};
|
|
1882
2300
|
getDecimals: (networkName: string, tokenSym: string) => number;
|
|
1883
2301
|
getAddress: (networkName: string, tokenSym: string) => any;
|
|
1884
2302
|
getName: (networkName: string, tokenAddress: string) => any;
|
|
1885
2303
|
getTokenPairs: (networkName: string) => {
|
|
1886
2304
|
ctokenSym: string;
|
|
1887
|
-
|
|
2305
|
+
ctokenAddr: string;
|
|
1888
2306
|
ctokenDecimal: number;
|
|
2307
|
+
underlySym: string;
|
|
2308
|
+
underlyAddr: string;
|
|
1889
2309
|
underlyDecimal: number;
|
|
1890
2310
|
ctokenIsEther: boolean;
|
|
2311
|
+
permitEnabled: boolean;
|
|
1891
2312
|
}[];
|
|
1892
2313
|
getRateModals: (networkName: string) => any;
|
|
2314
|
+
getTokenPairByAddress: (networkName: string, tokenAddress: string) => {
|
|
2315
|
+
ctokenSym: string;
|
|
2316
|
+
ctokenAddr: string;
|
|
2317
|
+
ctokenDecimal: number;
|
|
2318
|
+
underlySym: string;
|
|
2319
|
+
underlyAddr: string;
|
|
2320
|
+
underlyDecimal: number;
|
|
2321
|
+
ctokenIsEther: boolean;
|
|
2322
|
+
permitEnabled: boolean;
|
|
2323
|
+
};
|
|
2324
|
+
getTokenPairBySymbol: (networkName: string, symbol: string) => {
|
|
2325
|
+
ctokenSym: string;
|
|
2326
|
+
ctokenAddr: string;
|
|
2327
|
+
ctokenDecimal: number;
|
|
2328
|
+
underlySym: string;
|
|
2329
|
+
underlyAddr: string;
|
|
2330
|
+
underlyDecimal: number;
|
|
2331
|
+
ctokenIsEther: boolean;
|
|
2332
|
+
permitEnabled: boolean;
|
|
2333
|
+
};
|
|
1893
2334
|
isUnderlyAllowed: (networkName: string, underlyName: string) => boolean;
|
|
1894
2335
|
isCTokenAllowed: (networkName: string, cToken: string) => boolean;
|
|
1895
2336
|
isEther: (networkName: string, ctokenSym: string) => boolean;
|
package/dist/nodejs/index.js
CHANGED
|
@@ -32,6 +32,7 @@ const eth = __importStar(require("./eth"));
|
|
|
32
32
|
const util = __importStar(require("./util"));
|
|
33
33
|
const comptroller = __importStar(require("./comptroller"));
|
|
34
34
|
const cToken = __importStar(require("./cToken"));
|
|
35
|
+
const errors_1 = require("./errors");
|
|
35
36
|
// import * as comp from './comp'
|
|
36
37
|
// import * as gov from './gov'
|
|
37
38
|
const abi_1 = require("./abi");
|
|
@@ -82,6 +83,10 @@ const Sumer = function (provider = 'mainnet', options = {}) {
|
|
|
82
83
|
_network: {
|
|
83
84
|
id: options.networkId,
|
|
84
85
|
name: options.networkName,
|
|
86
|
+
}, getTokenPairBySymbol: (symbol) => {
|
|
87
|
+
return (0, constants_1.getTokenPairBySymbol)(options.networkName, symbol);
|
|
88
|
+
}, getTokenPairByAddress: (tokenAddress) => {
|
|
89
|
+
return (0, constants_1.getTokenPairBySymbol)(options.networkName, tokenAddress);
|
|
85
90
|
} });
|
|
86
91
|
// Instance needs to know which network the provider connects to, so it can
|
|
87
92
|
// use the correct contract addresses.
|
|
@@ -95,11 +100,14 @@ Sumer.eth = eth;
|
|
|
95
100
|
Sumer.util = util;
|
|
96
101
|
Sumer._ethers = ethers_1.ethers;
|
|
97
102
|
Sumer.abi = abi_1.abi;
|
|
103
|
+
Sumer.errors = errors_1.errors;
|
|
98
104
|
Sumer.getDecimals = constants_1.getDecimals;
|
|
99
105
|
Sumer.getAddress = constants_1.getAddress;
|
|
100
106
|
Sumer.getName = constants_1.getName;
|
|
101
107
|
Sumer.getTokenPairs = constants_1.getTokenPairs;
|
|
102
108
|
Sumer.getRateModals = constants_1.getRateModals;
|
|
109
|
+
Sumer.getTokenPairByAddress = constants_1.getTokenPairByAddress;
|
|
110
|
+
Sumer.getTokenPairBySymbol = constants_1.getTokenPairBySymbol;
|
|
103
111
|
Sumer.isUnderlyAllowed = constants_1.isUnderlyAllowed;
|
|
104
112
|
Sumer.isCTokenAllowed = constants_1.isCTokenAllowed;
|
|
105
113
|
Sumer.isEther = constants_1.isEther;
|
package/dist/nodejs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;AAEH,mCAA+B;AAC/B,2CAA4B;AAC5B,6CAA8B;AAC9B,2DAA4C;AAC5C,iDAAkC;AAClC,iCAAiC;AACjC,+BAA+B;AAC/B,+BAA2B;AAC3B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;AAEH,mCAA+B;AAC/B,2CAA4B;AAC5B,6CAA8B;AAC9B,2DAA4C;AAC5C,iDAAkC;AAClC,qCAAiC;AACjC,iCAAiC;AACjC,+BAA+B;AAC/B,+BAA2B;AAC3B,2CAYoB;AAGpB,8BAA8B;AAC9B,oEAAoE;AAEpE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,KAAK,GAAG,UAAU,WAA8B,SAAS,EAAE,UAAwB,EAAE;IACzF,MAAM,gBAAgB,GAAG,QAAQ,CAAA;IAEjC,OAAO,CAAC,QAAQ,GAAG,QAAQ,IAAI,OAAO,CAAC,QAAQ,CAAA;IAC/C,QAAQ,GAAG,GAAG,CAAC,eAAe,CAAC,OAAO,CAAC,CAAA;IAEvC,8DAA8D;IAC9D,MAAM,QAAQ,+CACZ,iBAAiB,EAAE,gBAAgB,EACnC,SAAS,EAAE,QAAQ,IAChB,WAAW,GACX,MAAM;QACT,UAAU;QACV,6BAA6B;QAC7B,2BAA2B;QAC3B,qCAAqC;QACrC,yDAAyD;QACzD,QAAQ,EAAE;YACR,EAAE,EAAE,OAAO,CAAC,SAAS;YACrB,IAAI,EAAE,OAAO,CAAC,WAAW;SAC1B,EACD,oBAAoB,EAAE,CAAC,MAAc,EAAE,EAAE;YACvC,OAAO,IAAA,gCAAoB,EAAC,OAAO,CAAC,WAAW,EAAE,MAAM,CAAC,CAAA;QAC1D,CAAC,EACD,qBAAqB,EAAE,CAAC,YAAoB,EAAE,EAAE;YAC9C,OAAO,IAAA,gCAAoB,EAAC,OAAO,CAAC,WAAW,EAAE,YAAY,CAAC,CAAA;QAChE,CAAC,GACF,CAAA;IAED,2EAA2E;IAC3E,0CAA0C;IAC1C,kFAAkF;IAClF,oCAAoC;IACpC,gCAAgC;IAChC,KAAK;IAEL,OAAO,QAAQ,CAAA;AACjB,CAAC,CAAA;AAED,KAAK,CAAC,GAAG,GAAG,GAAG,CAAA;AACf,KAAK,CAAC,IAAI,GAAG,IAAI,CAAA;AACjB,KAAK,CAAC,OAAO,GAAG,eAAM,CAAA;AACtB,KAAK,CAAC,GAAG,GAAG,SAAG,CAAA;AACf,KAAK,CAAC,MAAM,GAAG,eAAM,CAAA;AAErB,KAAK,CAAC,WAAW,GAAG,uBAAW,CAAA;AAC/B,KAAK,CAAC,UAAU,GAAG,sBAAU,CAAA;AAC7B,KAAK,CAAC,OAAO,GAAG,mBAAO,CAAA;AACvB,KAAK,CAAC,aAAa,GAAG,yBAAa,CAAA;AACnC,KAAK,CAAC,aAAa,GAAG,yBAAa,CAAA;AACnC,KAAK,CAAC,qBAAqB,GAAG,iCAAqB,CAAA;AACnD,KAAK,CAAC,oBAAoB,GAAG,gCAAoB,CAAA;AAEjD,KAAK,CAAC,gBAAgB,GAAG,4BAAgB,CAAA;AACzC,KAAK,CAAC,eAAe,GAAG,2BAAe,CAAA;AACvC,KAAK,CAAC,OAAO,GAAG,mBAAO,CAAA;AACvB,iBAAiB;AACjB,yCAAyC;AACzC,yCAAyC;AACzC,IAAI;AACJ,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,qBAAS,CAAC,CAAA;AAE/B,iBAAS,KAAK,CAAA"}
|