@meterio/sumer-js 0.2.132 → 0.2.133

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.
Files changed (146) hide show
  1. package/dist/browser/sumer.min.js +10 -10
  2. package/dist/nodejs/abi.d.ts +226 -0
  3. package/dist/nodejs/abi.js +5260 -45
  4. package/dist/nodejs/abi.js.map +1 -1
  5. package/dist/nodejs/constants/arbitrum.js +0 -11
  6. package/dist/nodejs/constants/arbitrum.js.map +1 -1
  7. package/dist/nodejs/constants/b2main.js +0 -11
  8. package/dist/nodejs/constants/b2main.js.map +1 -1
  9. package/dist/nodejs/constants/basemain.js +0 -11
  10. package/dist/nodejs/constants/basemain.js.map +1 -1
  11. package/dist/nodejs/constants/basetest.js +0 -11
  12. package/dist/nodejs/constants/basetest.js.map +1 -1
  13. package/dist/nodejs/constants/berabartio.js +0 -11
  14. package/dist/nodejs/constants/berabartio.js.map +1 -1
  15. package/dist/nodejs/constants/beramain.js +0 -11
  16. package/dist/nodejs/constants/beramain.js.map +1 -1
  17. package/dist/nodejs/constants/bsc.js +0 -11
  18. package/dist/nodejs/constants/bsc.js.map +1 -1
  19. package/dist/nodejs/constants/core.js +0 -11
  20. package/dist/nodejs/constants/core.js.map +1 -1
  21. package/dist/nodejs/constants/ethereum.js +0 -11
  22. package/dist/nodejs/constants/ethereum.js.map +1 -1
  23. package/dist/nodejs/constants/hemi.js +0 -11
  24. package/dist/nodejs/constants/hemi.js.map +1 -1
  25. package/dist/nodejs/constants/metertest.js +0 -11
  26. package/dist/nodejs/constants/metertest.js.map +1 -1
  27. package/dist/nodejs/constants/monadtest.js +0 -11
  28. package/dist/nodejs/constants/monadtest.js.map +1 -1
  29. package/dist/nodejs/constants/sepolia.d.ts +17 -2
  30. package/dist/nodejs/constants/sepolia.js +34 -30
  31. package/dist/nodejs/constants/sepolia.js.map +1 -1
  32. package/dist/nodejs/constants/zklink.js +0 -11
  33. package/dist/nodejs/constants/zklink.js.map +1 -1
  34. package/dist/nodejs/errorABIs.js +1044 -0
  35. package/dist/nodejs/errorABIs.js.map +1 -1
  36. package/dist/nodejs/index.d.ts +226 -0
  37. package/dist/nodejs/typechain/contracts/CToken/CAToken.sol/CAToken.d.ts +1002 -0
  38. package/dist/nodejs/typechain/contracts/{Oracle/dualCoreAdapter.sol/ICoreVault.js → CToken/CAToken.sol/CAToken.js} +1 -1
  39. package/dist/nodejs/typechain/contracts/CToken/CAToken.sol/CAToken.js.map +1 -0
  40. package/dist/nodejs/typechain/contracts/CToken/CAToken.sol/IAToken.d.ts +29 -0
  41. package/dist/nodejs/typechain/contracts/CToken/CAToken.sol/IAToken.js +3 -0
  42. package/dist/nodejs/typechain/contracts/CToken/CAToken.sol/IAToken.js.map +1 -0
  43. package/dist/nodejs/typechain/contracts/CToken/CAToken.sol/IAaveV3Pool.d.ts +133 -0
  44. package/dist/nodejs/typechain/contracts/CToken/CAToken.sol/IAaveV3Pool.js +3 -0
  45. package/dist/nodejs/typechain/contracts/CToken/CAToken.sol/IAaveV3Pool.js.map +1 -0
  46. package/dist/nodejs/typechain/contracts/CToken/CAToken.sol/index.d.ts +3 -0
  47. package/dist/nodejs/typechain/contracts/CToken/CAToken.sol/index.js +3 -0
  48. package/dist/nodejs/typechain/contracts/CToken/CAToken.sol/index.js.map +1 -0
  49. package/dist/nodejs/typechain/contracts/CToken/CAavePool.sol/IAToken.d.ts +37 -0
  50. package/dist/nodejs/typechain/contracts/CToken/CAavePool.sol/IAToken.js +3 -0
  51. package/dist/nodejs/typechain/contracts/CToken/CAavePool.sol/IAToken.js.map +1 -0
  52. package/dist/nodejs/typechain/contracts/CToken/CAavePool.sol/IAaveV3Pool.d.ts +133 -0
  53. package/dist/nodejs/typechain/contracts/CToken/CAavePool.sol/IAaveV3Pool.js +3 -0
  54. package/dist/nodejs/typechain/contracts/CToken/CAavePool.sol/IAaveV3Pool.js.map +1 -0
  55. package/dist/nodejs/typechain/contracts/CToken/CAavePool.sol/index.d.ts +3 -0
  56. package/dist/nodejs/typechain/contracts/CToken/CAavePool.sol/index.js +3 -0
  57. package/dist/nodejs/typechain/contracts/CToken/CAavePool.sol/index.js.map +1 -0
  58. package/dist/nodejs/typechain/contracts/CToken/CErc20.d.ts +17 -1
  59. package/dist/nodejs/typechain/contracts/CToken/CEther.d.ts +17 -1
  60. package/dist/nodejs/typechain/contracts/CToken/CToken.d.ts +17 -1
  61. package/dist/nodejs/typechain/contracts/CToken/CTokenStorage.d.ts +5 -1
  62. package/dist/nodejs/typechain/contracts/CToken/SuErc20.d.ts +17 -1
  63. package/dist/nodejs/typechain/contracts/CToken/index.d.ts +4 -0
  64. package/dist/nodejs/typechain/contracts/Infrared/CInfraredVault.sol/CInfraredVault.d.ts +17 -1
  65. package/dist/nodejs/typechain/contracts/InterestRateModel/index.d.ts +2 -0
  66. package/dist/nodejs/typechain/contracts/Oracle/{dualCoreAdapter.sol/ICoreVault.d.ts → aprMONAdapter.sol/AprMONAdapter.d.ts} +10 -10
  67. package/dist/nodejs/typechain/contracts/Oracle/aprMONAdapter.sol/AprMONAdapter.js +3 -0
  68. package/dist/nodejs/typechain/contracts/Oracle/aprMONAdapter.sol/AprMONAdapter.js.map +1 -0
  69. package/dist/nodejs/typechain/contracts/Oracle/aprMONAdapter.sol/IAprMon.d.ts +37 -0
  70. package/dist/nodejs/typechain/contracts/Oracle/aprMONAdapter.sol/IAprMon.js +3 -0
  71. package/dist/nodejs/typechain/contracts/Oracle/aprMONAdapter.sol/IAprMon.js.map +1 -0
  72. package/dist/nodejs/typechain/contracts/Oracle/aprMONAdapter.sol/index.d.ts +2 -0
  73. package/dist/nodejs/typechain/contracts/Oracle/aprMONAdapter.sol/index.js +3 -0
  74. package/dist/nodejs/typechain/contracts/Oracle/aprMONAdapter.sol/index.js.map +1 -0
  75. package/dist/nodejs/typechain/contracts/Oracle/dualCoreAdapter.sol/index.d.ts +0 -1
  76. package/dist/nodejs/typechain/contracts/Oracle/index.d.ts +2 -0
  77. package/dist/nodejs/typechain/factories/contracts/CToken/CAToken.sol/CAToken__factory.d.ts +1673 -0
  78. package/dist/nodejs/typechain/factories/contracts/CToken/CAToken.sol/CAToken__factory.js +2148 -0
  79. package/dist/nodejs/typechain/factories/contracts/CToken/CAToken.sol/CAToken__factory.js.map +1 -0
  80. package/dist/nodejs/typechain/factories/contracts/CToken/CAToken.sol/IAToken__factory.d.ts +31 -0
  81. package/dist/nodejs/typechain/factories/contracts/{Oracle/dualCoreAdapter.sol/ICoreVault__factory.js → CToken/CAToken.sol/IAToken__factory.js} +19 -6
  82. package/dist/nodejs/typechain/factories/contracts/CToken/CAToken.sol/IAToken__factory.js.map +1 -0
  83. package/dist/nodejs/typechain/factories/contracts/CToken/CAToken.sol/IAaveV3Pool__factory.d.ts +145 -0
  84. package/dist/nodejs/typechain/factories/contracts/CToken/CAToken.sol/IAaveV3Pool__factory.js +199 -0
  85. package/dist/nodejs/typechain/factories/contracts/CToken/CAToken.sol/IAaveV3Pool__factory.js.map +1 -0
  86. package/dist/nodejs/typechain/factories/contracts/CToken/CAToken.sol/index.d.ts +3 -0
  87. package/dist/nodejs/typechain/factories/contracts/CToken/CAToken.sol/index.js +13 -0
  88. package/dist/nodejs/typechain/factories/contracts/CToken/CAToken.sol/index.js.map +1 -0
  89. package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/CAavePool__factory.d.ts +1 -1
  90. package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/CAavePool__factory.js +1 -1
  91. package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/IAToken__factory.d.ts +55 -0
  92. package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/IAToken__factory.js +84 -0
  93. package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/IAToken__factory.js.map +1 -0
  94. package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/IAaveV3Pool__factory.d.ts +145 -0
  95. package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/IAaveV3Pool__factory.js +199 -0
  96. package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/IAaveV3Pool__factory.js.map +1 -0
  97. package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/index.d.ts +3 -0
  98. package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/index.js +13 -0
  99. package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/index.js.map +1 -0
  100. package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.d.ts +35 -1
  101. package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js +46 -1
  102. package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js.map +1 -1
  103. package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.d.ts +35 -1
  104. package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js +46 -1
  105. package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js.map +1 -1
  106. package/dist/nodejs/typechain/factories/contracts/CToken/CTokenStorage__factory.d.ts +14 -0
  107. package/dist/nodejs/typechain/factories/contracts/CToken/CTokenStorage__factory.js +19 -0
  108. package/dist/nodejs/typechain/factories/contracts/CToken/CTokenStorage__factory.js.map +1 -1
  109. package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.d.ts +34 -0
  110. package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js +45 -0
  111. package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js.map +1 -1
  112. package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.d.ts +35 -1
  113. package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js +46 -1
  114. package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js.map +1 -1
  115. package/dist/nodejs/typechain/factories/contracts/CToken/index.d.ts +2 -0
  116. package/dist/nodejs/typechain/factories/contracts/CToken/index.js +26 -1
  117. package/dist/nodejs/typechain/factories/contracts/CToken/index.js.map +1 -1
  118. package/dist/nodejs/typechain/factories/contracts/Infrared/CInfraredVault.sol/CInfraredVault__factory.d.ts +35 -1
  119. package/dist/nodejs/typechain/factories/contracts/Infrared/CInfraredVault.sol/CInfraredVault__factory.js +46 -1
  120. package/dist/nodejs/typechain/factories/contracts/Infrared/CInfraredVault.sol/CInfraredVault__factory.js.map +1 -1
  121. package/dist/nodejs/typechain/factories/contracts/InterestRateModel/index.d.ts +1 -0
  122. package/dist/nodejs/typechain/factories/contracts/InterestRateModel/index.js +25 -1
  123. package/dist/nodejs/typechain/factories/contracts/InterestRateModel/index.js.map +1 -1
  124. package/dist/nodejs/typechain/factories/contracts/Oracle/aprMONAdapter.sol/AprMONAdapter__factory.d.ts +44 -0
  125. package/dist/nodejs/typechain/factories/contracts/Oracle/aprMONAdapter.sol/AprMONAdapter__factory.js +69 -0
  126. package/dist/nodejs/typechain/factories/contracts/Oracle/aprMONAdapter.sol/AprMONAdapter__factory.js.map +1 -0
  127. package/dist/nodejs/typechain/factories/contracts/Oracle/aprMONAdapter.sol/IAprMon__factory.d.ts +35 -0
  128. package/dist/nodejs/typechain/factories/contracts/Oracle/aprMONAdapter.sol/IAprMon__factory.js +58 -0
  129. package/dist/nodejs/typechain/factories/contracts/Oracle/aprMONAdapter.sol/IAprMon__factory.js.map +1 -0
  130. package/dist/nodejs/typechain/factories/contracts/Oracle/aprMONAdapter.sol/index.d.ts +2 -0
  131. package/dist/nodejs/typechain/factories/contracts/Oracle/aprMONAdapter.sol/index.js +11 -0
  132. package/dist/nodejs/typechain/factories/contracts/Oracle/aprMONAdapter.sol/index.js.map +1 -0
  133. package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/index.d.ts +0 -1
  134. package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/index.js +1 -3
  135. package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/index.js.map +1 -1
  136. package/dist/nodejs/typechain/factories/contracts/Oracle/index.d.ts +1 -0
  137. package/dist/nodejs/typechain/factories/contracts/Oracle/index.js +2 -1
  138. package/dist/nodejs/typechain/factories/contracts/Oracle/index.js.map +1 -1
  139. package/dist/nodejs/typechain/hardhat.d.ts +178 -16
  140. package/dist/nodejs/typechain/index.d.ts +14 -2
  141. package/dist/nodejs/typechain/index.js +16 -4
  142. package/dist/nodejs/typechain/index.js.map +1 -1
  143. package/package.json +1 -1
  144. package/dist/nodejs/typechain/contracts/Oracle/dualCoreAdapter.sol/ICoreVault.js.map +0 -1
  145. package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/ICoreVault__factory.d.ts +0 -21
  146. package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/ICoreVault__factory.js.map +0 -1
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=ICoreVault.js.map
3
+ //# sourceMappingURL=CAToken.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CAToken.js","sourceRoot":"","sources":["../../../../../../src/typechain/contracts/CToken/CAToken.sol/CAToken.ts"],"names":[],"mappings":""}
@@ -0,0 +1,29 @@
1
+ import type { BaseContract, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
2
+ import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../../common";
3
+ export interface IATokenInterface extends Interface {
4
+ getFunction(nameOrSignature: "balanceOf" | "totalSupply"): FunctionFragment;
5
+ encodeFunctionData(functionFragment: "balanceOf", values: [AddressLike]): string;
6
+ encodeFunctionData(functionFragment: "totalSupply", values?: undefined): string;
7
+ decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
8
+ decodeFunctionResult(functionFragment: "totalSupply", data: BytesLike): Result;
9
+ }
10
+ export interface IAToken extends BaseContract {
11
+ connect(runner?: ContractRunner | null): IAToken;
12
+ waitForDeployment(): Promise<this>;
13
+ interface: IATokenInterface;
14
+ queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
15
+ queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
16
+ on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
17
+ on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
18
+ once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
19
+ once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
20
+ listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
21
+ listeners(eventName?: string): Promise<Array<Listener>>;
22
+ removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
23
+ balanceOf: TypedContractMethod<[user: AddressLike], [bigint], "view">;
24
+ totalSupply: TypedContractMethod<[], [bigint], "view">;
25
+ getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
26
+ getFunction(nameOrSignature: "balanceOf"): TypedContractMethod<[user: AddressLike], [bigint], "view">;
27
+ getFunction(nameOrSignature: "totalSupply"): TypedContractMethod<[], [bigint], "view">;
28
+ filters: {};
29
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IAToken.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAToken.js","sourceRoot":"","sources":["../../../../../../src/typechain/contracts/CToken/CAToken.sol/IAToken.ts"],"names":[],"mappings":""}
@@ -0,0 +1,133 @@
1
+ import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
2
+ import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../../common";
3
+ export declare namespace IAaveV3Pool {
4
+ type ReserveConfigurationMapStruct = {
5
+ data: BigNumberish;
6
+ };
7
+ type ReserveConfigurationMapStructOutput = [data: bigint] & {
8
+ data: bigint;
9
+ };
10
+ type ReserveDataStruct = {
11
+ configuration: IAaveV3Pool.ReserveConfigurationMapStruct;
12
+ liquidityIndex: BigNumberish;
13
+ currentLiquidityRate: BigNumberish;
14
+ variableBorrowIndex: BigNumberish;
15
+ currentVariableBorrowRate: BigNumberish;
16
+ currentStableBorrowRate: BigNumberish;
17
+ lastUpdateTimestamp: BigNumberish;
18
+ id: BigNumberish;
19
+ aTokenAddress: AddressLike;
20
+ stableDebtTokenAddress: AddressLike;
21
+ variableDebtTokenAddress: AddressLike;
22
+ interestRateStrategyAddress: AddressLike;
23
+ accruedToTreasury: BigNumberish;
24
+ unbacked: BigNumberish;
25
+ isolationModeTotalDebt: BigNumberish;
26
+ };
27
+ type ReserveDataStructOutput = [
28
+ configuration: IAaveV3Pool.ReserveConfigurationMapStructOutput,
29
+ liquidityIndex: bigint,
30
+ currentLiquidityRate: bigint,
31
+ variableBorrowIndex: bigint,
32
+ currentVariableBorrowRate: bigint,
33
+ currentStableBorrowRate: bigint,
34
+ lastUpdateTimestamp: bigint,
35
+ id: bigint,
36
+ aTokenAddress: string,
37
+ stableDebtTokenAddress: string,
38
+ variableDebtTokenAddress: string,
39
+ interestRateStrategyAddress: string,
40
+ accruedToTreasury: bigint,
41
+ unbacked: bigint,
42
+ isolationModeTotalDebt: bigint
43
+ ] & {
44
+ configuration: IAaveV3Pool.ReserveConfigurationMapStructOutput;
45
+ liquidityIndex: bigint;
46
+ currentLiquidityRate: bigint;
47
+ variableBorrowIndex: bigint;
48
+ currentVariableBorrowRate: bigint;
49
+ currentStableBorrowRate: bigint;
50
+ lastUpdateTimestamp: bigint;
51
+ id: bigint;
52
+ aTokenAddress: string;
53
+ stableDebtTokenAddress: string;
54
+ variableDebtTokenAddress: string;
55
+ interestRateStrategyAddress: string;
56
+ accruedToTreasury: bigint;
57
+ unbacked: bigint;
58
+ isolationModeTotalDebt: bigint;
59
+ };
60
+ }
61
+ export interface IAaveV3PoolInterface extends Interface {
62
+ getFunction(nameOrSignature: "getReserveData" | "getReserveNormalizedIncome" | "supply" | "withdraw"): FunctionFragment;
63
+ encodeFunctionData(functionFragment: "getReserveData", values: [AddressLike]): string;
64
+ encodeFunctionData(functionFragment: "getReserveNormalizedIncome", values: [AddressLike]): string;
65
+ encodeFunctionData(functionFragment: "supply", values: [AddressLike, BigNumberish, AddressLike, BigNumberish]): string;
66
+ encodeFunctionData(functionFragment: "withdraw", values: [AddressLike, BigNumberish, AddressLike]): string;
67
+ decodeFunctionResult(functionFragment: "getReserveData", data: BytesLike): Result;
68
+ decodeFunctionResult(functionFragment: "getReserveNormalizedIncome", data: BytesLike): Result;
69
+ decodeFunctionResult(functionFragment: "supply", data: BytesLike): Result;
70
+ decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result;
71
+ }
72
+ export interface IAaveV3Pool extends BaseContract {
73
+ connect(runner?: ContractRunner | null): IAaveV3Pool;
74
+ waitForDeployment(): Promise<this>;
75
+ interface: IAaveV3PoolInterface;
76
+ queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
77
+ queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
78
+ on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
79
+ on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
80
+ once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
81
+ once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
82
+ listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
83
+ listeners(eventName?: string): Promise<Array<Listener>>;
84
+ removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
85
+ getReserveData: TypedContractMethod<[
86
+ asset: AddressLike
87
+ ], [
88
+ IAaveV3Pool.ReserveDataStructOutput
89
+ ], "view">;
90
+ getReserveNormalizedIncome: TypedContractMethod<[
91
+ underlyingAsset: AddressLike
92
+ ], [
93
+ bigint
94
+ ], "view">;
95
+ supply: TypedContractMethod<[
96
+ asset: AddressLike,
97
+ amount: BigNumberish,
98
+ onBehalfOf: AddressLike,
99
+ referralCode: BigNumberish
100
+ ], [
101
+ void
102
+ ], "nonpayable">;
103
+ withdraw: TypedContractMethod<[
104
+ asset: AddressLike,
105
+ amount: BigNumberish,
106
+ to: AddressLike
107
+ ], [
108
+ bigint
109
+ ], "nonpayable">;
110
+ getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
111
+ getFunction(nameOrSignature: "getReserveData"): TypedContractMethod<[
112
+ asset: AddressLike
113
+ ], [
114
+ IAaveV3Pool.ReserveDataStructOutput
115
+ ], "view">;
116
+ getFunction(nameOrSignature: "getReserveNormalizedIncome"): TypedContractMethod<[underlyingAsset: AddressLike], [bigint], "view">;
117
+ getFunction(nameOrSignature: "supply"): TypedContractMethod<[
118
+ asset: AddressLike,
119
+ amount: BigNumberish,
120
+ onBehalfOf: AddressLike,
121
+ referralCode: BigNumberish
122
+ ], [
123
+ void
124
+ ], "nonpayable">;
125
+ getFunction(nameOrSignature: "withdraw"): TypedContractMethod<[
126
+ asset: AddressLike,
127
+ amount: BigNumberish,
128
+ to: AddressLike
129
+ ], [
130
+ bigint
131
+ ], "nonpayable">;
132
+ filters: {};
133
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IAaveV3Pool.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAaveV3Pool.js","sourceRoot":"","sources":["../../../../../../src/typechain/contracts/CToken/CAToken.sol/IAaveV3Pool.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export type { CAToken } from "./CAToken";
2
+ export type { IAToken } from "./IAToken";
3
+ export type { IAaveV3Pool } from "./IAaveV3Pool";
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/typechain/contracts/CToken/CAToken.sol/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,37 @@
1
+ import type { BaseContract, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
2
+ import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../../common";
3
+ export interface IATokenInterface extends Interface {
4
+ getFunction(nameOrSignature: "balanceOf" | "scaledBalanceOf" | "scaledTotalSupply" | "totalSupply"): FunctionFragment;
5
+ encodeFunctionData(functionFragment: "balanceOf", values: [AddressLike]): string;
6
+ encodeFunctionData(functionFragment: "scaledBalanceOf", values: [AddressLike]): string;
7
+ encodeFunctionData(functionFragment: "scaledTotalSupply", values?: undefined): string;
8
+ encodeFunctionData(functionFragment: "totalSupply", values?: undefined): string;
9
+ decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
10
+ decodeFunctionResult(functionFragment: "scaledBalanceOf", data: BytesLike): Result;
11
+ decodeFunctionResult(functionFragment: "scaledTotalSupply", data: BytesLike): Result;
12
+ decodeFunctionResult(functionFragment: "totalSupply", data: BytesLike): Result;
13
+ }
14
+ export interface IAToken extends BaseContract {
15
+ connect(runner?: ContractRunner | null): IAToken;
16
+ waitForDeployment(): Promise<this>;
17
+ interface: IATokenInterface;
18
+ queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
19
+ queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
20
+ on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
21
+ on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
22
+ once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
23
+ once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
24
+ listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
25
+ listeners(eventName?: string): Promise<Array<Listener>>;
26
+ removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
27
+ balanceOf: TypedContractMethod<[user: AddressLike], [bigint], "view">;
28
+ scaledBalanceOf: TypedContractMethod<[user: AddressLike], [bigint], "view">;
29
+ scaledTotalSupply: TypedContractMethod<[], [bigint], "view">;
30
+ totalSupply: TypedContractMethod<[], [bigint], "view">;
31
+ getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
32
+ getFunction(nameOrSignature: "balanceOf"): TypedContractMethod<[user: AddressLike], [bigint], "view">;
33
+ getFunction(nameOrSignature: "scaledBalanceOf"): TypedContractMethod<[user: AddressLike], [bigint], "view">;
34
+ getFunction(nameOrSignature: "scaledTotalSupply"): TypedContractMethod<[], [bigint], "view">;
35
+ getFunction(nameOrSignature: "totalSupply"): TypedContractMethod<[], [bigint], "view">;
36
+ filters: {};
37
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IAToken.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAToken.js","sourceRoot":"","sources":["../../../../../../src/typechain/contracts/CToken/CAavePool.sol/IAToken.ts"],"names":[],"mappings":""}
@@ -0,0 +1,133 @@
1
+ import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
2
+ import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../../common";
3
+ export declare namespace IAaveV3Pool {
4
+ type ReserveConfigurationMapStruct = {
5
+ data: BigNumberish;
6
+ };
7
+ type ReserveConfigurationMapStructOutput = [data: bigint] & {
8
+ data: bigint;
9
+ };
10
+ type ReserveDataStruct = {
11
+ configuration: IAaveV3Pool.ReserveConfigurationMapStruct;
12
+ liquidityIndex: BigNumberish;
13
+ currentLiquidityRate: BigNumberish;
14
+ variableBorrowIndex: BigNumberish;
15
+ currentVariableBorrowRate: BigNumberish;
16
+ currentStableBorrowRate: BigNumberish;
17
+ lastUpdateTimestamp: BigNumberish;
18
+ id: BigNumberish;
19
+ aTokenAddress: AddressLike;
20
+ stableDebtTokenAddress: AddressLike;
21
+ variableDebtTokenAddress: AddressLike;
22
+ interestRateStrategyAddress: AddressLike;
23
+ accruedToTreasury: BigNumberish;
24
+ unbacked: BigNumberish;
25
+ isolationModeTotalDebt: BigNumberish;
26
+ };
27
+ type ReserveDataStructOutput = [
28
+ configuration: IAaveV3Pool.ReserveConfigurationMapStructOutput,
29
+ liquidityIndex: bigint,
30
+ currentLiquidityRate: bigint,
31
+ variableBorrowIndex: bigint,
32
+ currentVariableBorrowRate: bigint,
33
+ currentStableBorrowRate: bigint,
34
+ lastUpdateTimestamp: bigint,
35
+ id: bigint,
36
+ aTokenAddress: string,
37
+ stableDebtTokenAddress: string,
38
+ variableDebtTokenAddress: string,
39
+ interestRateStrategyAddress: string,
40
+ accruedToTreasury: bigint,
41
+ unbacked: bigint,
42
+ isolationModeTotalDebt: bigint
43
+ ] & {
44
+ configuration: IAaveV3Pool.ReserveConfigurationMapStructOutput;
45
+ liquidityIndex: bigint;
46
+ currentLiquidityRate: bigint;
47
+ variableBorrowIndex: bigint;
48
+ currentVariableBorrowRate: bigint;
49
+ currentStableBorrowRate: bigint;
50
+ lastUpdateTimestamp: bigint;
51
+ id: bigint;
52
+ aTokenAddress: string;
53
+ stableDebtTokenAddress: string;
54
+ variableDebtTokenAddress: string;
55
+ interestRateStrategyAddress: string;
56
+ accruedToTreasury: bigint;
57
+ unbacked: bigint;
58
+ isolationModeTotalDebt: bigint;
59
+ };
60
+ }
61
+ export interface IAaveV3PoolInterface extends Interface {
62
+ getFunction(nameOrSignature: "getReserveData" | "getReserveNormalizedIncome" | "supply" | "withdraw"): FunctionFragment;
63
+ encodeFunctionData(functionFragment: "getReserveData", values: [AddressLike]): string;
64
+ encodeFunctionData(functionFragment: "getReserveNormalizedIncome", values: [AddressLike]): string;
65
+ encodeFunctionData(functionFragment: "supply", values: [AddressLike, BigNumberish, AddressLike, BigNumberish]): string;
66
+ encodeFunctionData(functionFragment: "withdraw", values: [AddressLike, BigNumberish, AddressLike]): string;
67
+ decodeFunctionResult(functionFragment: "getReserveData", data: BytesLike): Result;
68
+ decodeFunctionResult(functionFragment: "getReserveNormalizedIncome", data: BytesLike): Result;
69
+ decodeFunctionResult(functionFragment: "supply", data: BytesLike): Result;
70
+ decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result;
71
+ }
72
+ export interface IAaveV3Pool extends BaseContract {
73
+ connect(runner?: ContractRunner | null): IAaveV3Pool;
74
+ waitForDeployment(): Promise<this>;
75
+ interface: IAaveV3PoolInterface;
76
+ queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
77
+ queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
78
+ on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
79
+ on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
80
+ once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
81
+ once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
82
+ listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
83
+ listeners(eventName?: string): Promise<Array<Listener>>;
84
+ removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
85
+ getReserveData: TypedContractMethod<[
86
+ asset: AddressLike
87
+ ], [
88
+ IAaveV3Pool.ReserveDataStructOutput
89
+ ], "view">;
90
+ getReserveNormalizedIncome: TypedContractMethod<[
91
+ underlyingAsset: AddressLike
92
+ ], [
93
+ bigint
94
+ ], "view">;
95
+ supply: TypedContractMethod<[
96
+ asset: AddressLike,
97
+ amount: BigNumberish,
98
+ onBehalfOf: AddressLike,
99
+ referralCode: BigNumberish
100
+ ], [
101
+ void
102
+ ], "nonpayable">;
103
+ withdraw: TypedContractMethod<[
104
+ asset: AddressLike,
105
+ amount: BigNumberish,
106
+ to: AddressLike
107
+ ], [
108
+ bigint
109
+ ], "nonpayable">;
110
+ getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
111
+ getFunction(nameOrSignature: "getReserveData"): TypedContractMethod<[
112
+ asset: AddressLike
113
+ ], [
114
+ IAaveV3Pool.ReserveDataStructOutput
115
+ ], "view">;
116
+ getFunction(nameOrSignature: "getReserveNormalizedIncome"): TypedContractMethod<[underlyingAsset: AddressLike], [bigint], "view">;
117
+ getFunction(nameOrSignature: "supply"): TypedContractMethod<[
118
+ asset: AddressLike,
119
+ amount: BigNumberish,
120
+ onBehalfOf: AddressLike,
121
+ referralCode: BigNumberish
122
+ ], [
123
+ void
124
+ ], "nonpayable">;
125
+ getFunction(nameOrSignature: "withdraw"): TypedContractMethod<[
126
+ asset: AddressLike,
127
+ amount: BigNumberish,
128
+ to: AddressLike
129
+ ], [
130
+ bigint
131
+ ], "nonpayable">;
132
+ filters: {};
133
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IAaveV3Pool.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAaveV3Pool.js","sourceRoot":"","sources":["../../../../../../src/typechain/contracts/CToken/CAavePool.sol/IAaveV3Pool.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export type { CAavePool } from "./CAavePool";
2
+ export type { IAToken } from "./IAToken";
3
+ export type { IAaveV3Pool } from "./IAaveV3Pool";
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/typechain/contracts/CToken/CAavePool.sol/index.ts"],"names":[],"mappings":""}
@@ -1,7 +1,7 @@
1
1
  import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
2
2
  import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../common";
3
3
  export interface CErc20Interface extends Interface {
4
- getFunction(nameOrSignature: "_acceptAdmin" | "_addReserves" | "_reduceReserves" | "_setComptroller" | "_setDiscountRate" | "_setInterestRateModel" | "_setPendingAdmin" | "_setReserveFactor" | "_syncUnderlyingBalance" | "accrualBlockTimestamp" | "accrueInterest" | "admin" | "allowance" | "approve" | "balanceOf" | "balanceOfUnderlying" | "borrow" | "borrowAndDepositBack" | "borrowBalanceCurrent" | "borrowBalanceStored" | "borrowIndex" | "borrowRatePerBlock" | "comptroller" | "decimals" | "discountRateMantissa" | "exchangeRateCurrent" | "exchangeRateStored" | "getAccountSnapshot" | "getCash" | "initialize" | "interestRateModel" | "isCEther" | "isCEtherDeprecated" | "isCToken" | "isCTokenDeprecated" | "liquidateBorrow" | "liquidateCalculateSeizeTokens" | "mint" | "mintWithPermit" | "name" | "pendingAdmin" | "percentScale" | "protocolSeizeShareMantissa" | "redeem" | "redeemUnderlying" | "repayBorrow" | "repayBorrowBehalf" | "repayBorrowWithPermit" | "reserveFactorMantissa" | "seize" | "supplyRatePerBlock" | "sweepToken" | "symbol" | "tokenType" | "totalBorrows" | "totalBorrowsCurrent" | "totalReserves" | "totalSupply" | "transfer" | "transferFrom" | "underlying" | "underlyingBalance"): FunctionFragment;
4
+ getFunction(nameOrSignature: "_acceptAdmin" | "_addReserves" | "_reduceReserves" | "_setComptroller" | "_setDiscountRate" | "_setInterestRateModel" | "_setPendingAdmin" | "_setReserveFactor" | "_syncUnderlyingBalance" | "accrualBlockTimestamp" | "accrueInterest" | "admin" | "allowance" | "approve" | "balanceOf" | "balanceOfUnderlying" | "borrow" | "borrowAndDepositBack" | "borrowBalanceCurrent" | "borrowBalanceStored" | "borrowIndex" | "borrowRatePerBlock" | "comptroller" | "decimals" | "discountRateMantissa" | "exchangeRateCurrent" | "exchangeRateStored" | "getAccountSnapshot" | "getCash" | "initialize" | "interestRateModel" | "isCEther" | "isCEtherDeprecated" | "isCToken" | "isCTokenDeprecated" | "liquidateBorrow" | "liquidateCalculateSeizeTokens" | "mint" | "mintWithPermit" | "name" | "pendingAdmin" | "percentScale" | "protocolSeizeShareMantissa" | "redeem" | "redeemUnderlying" | "repayBorrow" | "repayBorrowBehalf" | "repayBorrowWithPermit" | "reserveFactorMantissa" | "revokeWhitelist" | "seize" | "supplyRatePerBlock" | "sweepToken" | "symbol" | "tokenType" | "totalBorrows" | "totalBorrowsCurrent" | "totalReserves" | "totalSupply" | "transfer" | "transferFrom" | "underlying" | "underlyingBalance" | "whitelist" | "whitelisted"): FunctionFragment;
5
5
  getEvent(nameOrSignatureOrTopic: "AccrueInterest" | "Approval" | "Borrow" | "Initialized" | "LiquidateBorrow" | "Mint" | "NewAdmin" | "NewComptroller" | "NewDiscountRate" | "NewMarketInterestRateModel" | "NewPendingAdmin" | "NewReserveFactor" | "Redeem" | "RedeemFaceValue" | "RepayBorrow" | "ReservesAdded" | "ReservesReduced" | "Transfer"): EventFragment;
6
6
  encodeFunctionData(functionFragment: "_acceptAdmin", values?: undefined): string;
7
7
  encodeFunctionData(functionFragment: "_addReserves", values: [BigNumberish]): string;
@@ -61,6 +61,7 @@ export interface CErc20Interface extends Interface {
61
61
  encodeFunctionData(functionFragment: "repayBorrowBehalf", values: [AddressLike, BigNumberish]): string;
62
62
  encodeFunctionData(functionFragment: "repayBorrowWithPermit", values: [BigNumberish, BigNumberish, BytesLike]): string;
63
63
  encodeFunctionData(functionFragment: "reserveFactorMantissa", values?: undefined): string;
64
+ encodeFunctionData(functionFragment: "revokeWhitelist", values: [AddressLike]): string;
64
65
  encodeFunctionData(functionFragment: "seize", values: [
65
66
  AddressLike,
66
67
  AddressLike,
@@ -81,6 +82,8 @@ export interface CErc20Interface extends Interface {
81
82
  encodeFunctionData(functionFragment: "transferFrom", values: [AddressLike, AddressLike, BigNumberish]): string;
82
83
  encodeFunctionData(functionFragment: "underlying", values?: undefined): string;
83
84
  encodeFunctionData(functionFragment: "underlyingBalance", values?: undefined): string;
85
+ encodeFunctionData(functionFragment: "whitelist", values: [AddressLike]): string;
86
+ encodeFunctionData(functionFragment: "whitelisted", values: [AddressLike]): string;
84
87
  decodeFunctionResult(functionFragment: "_acceptAdmin", data: BytesLike): Result;
85
88
  decodeFunctionResult(functionFragment: "_addReserves", data: BytesLike): Result;
86
89
  decodeFunctionResult(functionFragment: "_reduceReserves", data: BytesLike): Result;
@@ -130,6 +133,7 @@ export interface CErc20Interface extends Interface {
130
133
  decodeFunctionResult(functionFragment: "repayBorrowBehalf", data: BytesLike): Result;
131
134
  decodeFunctionResult(functionFragment: "repayBorrowWithPermit", data: BytesLike): Result;
132
135
  decodeFunctionResult(functionFragment: "reserveFactorMantissa", data: BytesLike): Result;
136
+ decodeFunctionResult(functionFragment: "revokeWhitelist", data: BytesLike): Result;
133
137
  decodeFunctionResult(functionFragment: "seize", data: BytesLike): Result;
134
138
  decodeFunctionResult(functionFragment: "supplyRatePerBlock", data: BytesLike): Result;
135
139
  decodeFunctionResult(functionFragment: "sweepToken", data: BytesLike): Result;
@@ -143,6 +147,8 @@ export interface CErc20Interface extends Interface {
143
147
  decodeFunctionResult(functionFragment: "transferFrom", data: BytesLike): Result;
144
148
  decodeFunctionResult(functionFragment: "underlying", data: BytesLike): Result;
145
149
  decodeFunctionResult(functionFragment: "underlyingBalance", data: BytesLike): Result;
150
+ decodeFunctionResult(functionFragment: "whitelist", data: BytesLike): Result;
151
+ decodeFunctionResult(functionFragment: "whitelisted", data: BytesLike): Result;
146
152
  }
147
153
  export declare namespace AccrueInterestEvent {
148
154
  type InputTuple = [
@@ -677,6 +683,11 @@ export interface CErc20 extends BaseContract {
677
683
  void
678
684
  ], "nonpayable">;
679
685
  reserveFactorMantissa: TypedContractMethod<[], [bigint], "view">;
686
+ revokeWhitelist: TypedContractMethod<[
687
+ addr: AddressLike
688
+ ], [
689
+ void
690
+ ], "nonpayable">;
680
691
  seize: TypedContractMethod<[
681
692
  liquidator: AddressLike,
682
693
  borrower: AddressLike,
@@ -710,6 +721,8 @@ export interface CErc20 extends BaseContract {
710
721
  ], "nonpayable">;
711
722
  underlying: TypedContractMethod<[], [string], "view">;
712
723
  underlyingBalance: TypedContractMethod<[], [bigint], "view">;
724
+ whitelist: TypedContractMethod<[addr: AddressLike], [void], "nonpayable">;
725
+ whitelisted: TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
713
726
  getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
714
727
  getFunction(nameOrSignature: "_acceptAdmin"): TypedContractMethod<[], [void], "nonpayable">;
715
728
  getFunction(nameOrSignature: "_addReserves"): TypedContractMethod<[addAmount: BigNumberish], [void], "nonpayable">;
@@ -830,6 +843,7 @@ export interface CErc20 extends BaseContract {
830
843
  void
831
844
  ], "nonpayable">;
832
845
  getFunction(nameOrSignature: "reserveFactorMantissa"): TypedContractMethod<[], [bigint], "view">;
846
+ getFunction(nameOrSignature: "revokeWhitelist"): TypedContractMethod<[addr: AddressLike], [void], "nonpayable">;
833
847
  getFunction(nameOrSignature: "seize"): TypedContractMethod<[
834
848
  liquidator: AddressLike,
835
849
  borrower: AddressLike,
@@ -863,6 +877,8 @@ export interface CErc20 extends BaseContract {
863
877
  ], "nonpayable">;
864
878
  getFunction(nameOrSignature: "underlying"): TypedContractMethod<[], [string], "view">;
865
879
  getFunction(nameOrSignature: "underlyingBalance"): TypedContractMethod<[], [bigint], "view">;
880
+ getFunction(nameOrSignature: "whitelist"): TypedContractMethod<[addr: AddressLike], [void], "nonpayable">;
881
+ getFunction(nameOrSignature: "whitelisted"): TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
866
882
  getEvent(key: "AccrueInterest"): TypedContractEvent<AccrueInterestEvent.InputTuple, AccrueInterestEvent.OutputTuple, AccrueInterestEvent.OutputObject>;
867
883
  getEvent(key: "Approval"): TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
868
884
  getEvent(key: "Borrow"): TypedContractEvent<BorrowEvent.InputTuple, BorrowEvent.OutputTuple, BorrowEvent.OutputObject>;
@@ -1,7 +1,7 @@
1
1
  import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
2
2
  import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../common";
3
3
  export interface CEtherInterface extends Interface {
4
- getFunction(nameOrSignature: "_acceptAdmin" | "_addReserves" | "_reduceReserves" | "_setComptroller" | "_setDiscountRate" | "_setInterestRateModel" | "_setPendingAdmin" | "_setReserveFactor" | "_syncUnderlyingBalance" | "accrualBlockTimestamp" | "accrueInterest" | "admin" | "allowance" | "approve" | "balanceOf" | "balanceOfUnderlying" | "borrow" | "borrowAndDepositBack" | "borrowBalanceCurrent" | "borrowBalanceStored" | "borrowIndex" | "borrowRatePerBlock" | "comptroller" | "decimals" | "discountRateMantissa" | "exchangeRateCurrent" | "exchangeRateStored" | "getAccountSnapshot" | "getCash" | "initialize" | "initializeVersion2" | "interestRateModel" | "isCEther" | "isCEtherDeprecated" | "isCToken" | "isCTokenDeprecated" | "liquidateBorrow" | "liquidateCalculateSeizeTokens" | "mint" | "name" | "pendingAdmin" | "percentScale" | "protocolSeizeShareMantissa" | "redeem" | "redeemUnderlying" | "repayBorrow" | "repayBorrowBehalf" | "reserveFactorMantissa" | "seize" | "supplyRatePerBlock" | "symbol" | "tokenType" | "totalBorrows" | "totalBorrowsCurrent" | "totalReserves" | "totalSupply" | "transfer" | "transferFrom" | "underlying" | "underlyingBalance"): FunctionFragment;
4
+ getFunction(nameOrSignature: "_acceptAdmin" | "_addReserves" | "_reduceReserves" | "_setComptroller" | "_setDiscountRate" | "_setInterestRateModel" | "_setPendingAdmin" | "_setReserveFactor" | "_syncUnderlyingBalance" | "accrualBlockTimestamp" | "accrueInterest" | "admin" | "allowance" | "approve" | "balanceOf" | "balanceOfUnderlying" | "borrow" | "borrowAndDepositBack" | "borrowBalanceCurrent" | "borrowBalanceStored" | "borrowIndex" | "borrowRatePerBlock" | "comptroller" | "decimals" | "discountRateMantissa" | "exchangeRateCurrent" | "exchangeRateStored" | "getAccountSnapshot" | "getCash" | "initialize" | "initializeVersion2" | "interestRateModel" | "isCEther" | "isCEtherDeprecated" | "isCToken" | "isCTokenDeprecated" | "liquidateBorrow" | "liquidateCalculateSeizeTokens" | "mint" | "name" | "pendingAdmin" | "percentScale" | "protocolSeizeShareMantissa" | "redeem" | "redeemUnderlying" | "repayBorrow" | "repayBorrowBehalf" | "reserveFactorMantissa" | "revokeWhitelist" | "seize" | "supplyRatePerBlock" | "symbol" | "tokenType" | "totalBorrows" | "totalBorrowsCurrent" | "totalReserves" | "totalSupply" | "transfer" | "transferFrom" | "underlying" | "underlyingBalance" | "whitelist" | "whitelisted"): FunctionFragment;
5
5
  getEvent(nameOrSignatureOrTopic: "AccrueInterest" | "Approval" | "Borrow" | "Initialized" | "LiquidateBorrow" | "Mint" | "NewAdmin" | "NewComptroller" | "NewDiscountRate" | "NewMarketInterestRateModel" | "NewPendingAdmin" | "NewReserveFactor" | "Redeem" | "RedeemFaceValue" | "RepayBorrow" | "ReservesAdded" | "ReservesReduced" | "Transfer"): EventFragment;
6
6
  encodeFunctionData(functionFragment: "_acceptAdmin", values?: undefined): string;
7
7
  encodeFunctionData(functionFragment: "_addReserves", values?: undefined): string;
@@ -59,6 +59,7 @@ export interface CEtherInterface extends Interface {
59
59
  encodeFunctionData(functionFragment: "repayBorrow", values?: undefined): string;
60
60
  encodeFunctionData(functionFragment: "repayBorrowBehalf", values: [AddressLike]): string;
61
61
  encodeFunctionData(functionFragment: "reserveFactorMantissa", values?: undefined): string;
62
+ encodeFunctionData(functionFragment: "revokeWhitelist", values: [AddressLike]): string;
62
63
  encodeFunctionData(functionFragment: "seize", values: [
63
64
  AddressLike,
64
65
  AddressLike,
@@ -78,6 +79,8 @@ export interface CEtherInterface extends Interface {
78
79
  encodeFunctionData(functionFragment: "transferFrom", values: [AddressLike, AddressLike, BigNumberish]): string;
79
80
  encodeFunctionData(functionFragment: "underlying", values?: undefined): string;
80
81
  encodeFunctionData(functionFragment: "underlyingBalance", values?: undefined): string;
82
+ encodeFunctionData(functionFragment: "whitelist", values: [AddressLike]): string;
83
+ encodeFunctionData(functionFragment: "whitelisted", values: [AddressLike]): string;
81
84
  decodeFunctionResult(functionFragment: "_acceptAdmin", data: BytesLike): Result;
82
85
  decodeFunctionResult(functionFragment: "_addReserves", data: BytesLike): Result;
83
86
  decodeFunctionResult(functionFragment: "_reduceReserves", data: BytesLike): Result;
@@ -126,6 +129,7 @@ export interface CEtherInterface extends Interface {
126
129
  decodeFunctionResult(functionFragment: "repayBorrow", data: BytesLike): Result;
127
130
  decodeFunctionResult(functionFragment: "repayBorrowBehalf", data: BytesLike): Result;
128
131
  decodeFunctionResult(functionFragment: "reserveFactorMantissa", data: BytesLike): Result;
132
+ decodeFunctionResult(functionFragment: "revokeWhitelist", data: BytesLike): Result;
129
133
  decodeFunctionResult(functionFragment: "seize", data: BytesLike): Result;
130
134
  decodeFunctionResult(functionFragment: "supplyRatePerBlock", data: BytesLike): Result;
131
135
  decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result;
@@ -138,6 +142,8 @@ export interface CEtherInterface extends Interface {
138
142
  decodeFunctionResult(functionFragment: "transferFrom", data: BytesLike): Result;
139
143
  decodeFunctionResult(functionFragment: "underlying", data: BytesLike): Result;
140
144
  decodeFunctionResult(functionFragment: "underlyingBalance", data: BytesLike): Result;
145
+ decodeFunctionResult(functionFragment: "whitelist", data: BytesLike): Result;
146
+ decodeFunctionResult(functionFragment: "whitelisted", data: BytesLike): Result;
141
147
  }
142
148
  export declare namespace AccrueInterestEvent {
143
149
  type InputTuple = [
@@ -648,6 +654,11 @@ export interface CEther extends BaseContract {
648
654
  void
649
655
  ], "payable">;
650
656
  reserveFactorMantissa: TypedContractMethod<[], [bigint], "view">;
657
+ revokeWhitelist: TypedContractMethod<[
658
+ addr: AddressLike
659
+ ], [
660
+ void
661
+ ], "nonpayable">;
651
662
  seize: TypedContractMethod<[
652
663
  liquidator: AddressLike,
653
664
  borrower: AddressLike,
@@ -680,6 +691,8 @@ export interface CEther extends BaseContract {
680
691
  ], "nonpayable">;
681
692
  underlying: TypedContractMethod<[], [string], "view">;
682
693
  underlyingBalance: TypedContractMethod<[], [bigint], "view">;
694
+ whitelist: TypedContractMethod<[addr: AddressLike], [void], "nonpayable">;
695
+ whitelisted: TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
683
696
  getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
684
697
  getFunction(nameOrSignature: "_acceptAdmin"): TypedContractMethod<[], [void], "nonpayable">;
685
698
  getFunction(nameOrSignature: "_addReserves"): TypedContractMethod<[], [void], "payable">;
@@ -780,6 +793,7 @@ export interface CEther extends BaseContract {
780
793
  getFunction(nameOrSignature: "repayBorrow"): TypedContractMethod<[], [void], "payable">;
781
794
  getFunction(nameOrSignature: "repayBorrowBehalf"): TypedContractMethod<[borrower: AddressLike], [void], "payable">;
782
795
  getFunction(nameOrSignature: "reserveFactorMantissa"): TypedContractMethod<[], [bigint], "view">;
796
+ getFunction(nameOrSignature: "revokeWhitelist"): TypedContractMethod<[addr: AddressLike], [void], "nonpayable">;
783
797
  getFunction(nameOrSignature: "seize"): TypedContractMethod<[
784
798
  liquidator: AddressLike,
785
799
  borrower: AddressLike,
@@ -812,6 +826,8 @@ export interface CEther extends BaseContract {
812
826
  ], "nonpayable">;
813
827
  getFunction(nameOrSignature: "underlying"): TypedContractMethod<[], [string], "view">;
814
828
  getFunction(nameOrSignature: "underlyingBalance"): TypedContractMethod<[], [bigint], "view">;
829
+ getFunction(nameOrSignature: "whitelist"): TypedContractMethod<[addr: AddressLike], [void], "nonpayable">;
830
+ getFunction(nameOrSignature: "whitelisted"): TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
815
831
  getEvent(key: "AccrueInterest"): TypedContractEvent<AccrueInterestEvent.InputTuple, AccrueInterestEvent.OutputTuple, AccrueInterestEvent.OutputObject>;
816
832
  getEvent(key: "Approval"): TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
817
833
  getEvent(key: "Borrow"): TypedContractEvent<BorrowEvent.InputTuple, BorrowEvent.OutputTuple, BorrowEvent.OutputObject>;