@meterio/sumer-js 0.2.131 → 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 (53) hide show
  1. package/dist/browser/sumer.min.js +5 -5
  2. package/dist/nodejs/abi.d.ts +47 -1
  3. package/dist/nodejs/abi.js +2186 -76
  4. package/dist/nodejs/abi.js.map +1 -1
  5. package/dist/nodejs/constants/sepolia.d.ts +2 -0
  6. package/dist/nodejs/constants/sepolia.js +3 -1
  7. package/dist/nodejs/constants/sepolia.js.map +1 -1
  8. package/dist/nodejs/errorABIs.js +522 -0
  9. package/dist/nodejs/errorABIs.js.map +1 -1
  10. package/dist/nodejs/index.d.ts +47 -1
  11. package/dist/nodejs/typechain/contracts/CToken/CAToken.sol/CAToken.d.ts +1002 -0
  12. package/dist/nodejs/typechain/contracts/CToken/CAToken.sol/CAToken.js +3 -0
  13. package/dist/nodejs/typechain/contracts/CToken/CAToken.sol/CAToken.js.map +1 -0
  14. package/dist/nodejs/typechain/contracts/CToken/CAToken.sol/IAToken.d.ts +29 -0
  15. package/dist/nodejs/typechain/contracts/CToken/CAToken.sol/IAToken.js +3 -0
  16. package/dist/nodejs/typechain/contracts/CToken/CAToken.sol/IAToken.js.map +1 -0
  17. package/dist/nodejs/typechain/contracts/CToken/CAToken.sol/IAaveV3Pool.d.ts +133 -0
  18. package/dist/nodejs/typechain/contracts/CToken/CAToken.sol/IAaveV3Pool.js +3 -0
  19. package/dist/nodejs/typechain/contracts/CToken/CAToken.sol/IAaveV3Pool.js.map +1 -0
  20. package/dist/nodejs/typechain/contracts/CToken/CAToken.sol/index.d.ts +3 -0
  21. package/dist/nodejs/typechain/contracts/CToken/CAToken.sol/index.js +3 -0
  22. package/dist/nodejs/typechain/contracts/CToken/CAToken.sol/index.js.map +1 -0
  23. package/dist/nodejs/typechain/contracts/CToken/index.d.ts +2 -0
  24. package/dist/nodejs/typechain/factories/contracts/CToken/CAToken.sol/CAToken__factory.d.ts +1673 -0
  25. package/dist/nodejs/typechain/factories/contracts/CToken/CAToken.sol/CAToken__factory.js +2148 -0
  26. package/dist/nodejs/typechain/factories/contracts/CToken/CAToken.sol/CAToken__factory.js.map +1 -0
  27. package/dist/nodejs/typechain/factories/contracts/CToken/CAToken.sol/IAToken__factory.d.ts +31 -0
  28. package/dist/nodejs/typechain/factories/contracts/CToken/CAToken.sol/IAToken__factory.js +52 -0
  29. package/dist/nodejs/typechain/factories/contracts/CToken/CAToken.sol/IAToken__factory.js.map +1 -0
  30. package/dist/nodejs/typechain/factories/contracts/CToken/CAToken.sol/IAaveV3Pool__factory.d.ts +145 -0
  31. package/dist/nodejs/typechain/factories/contracts/CToken/CAToken.sol/IAaveV3Pool__factory.js +199 -0
  32. package/dist/nodejs/typechain/factories/contracts/CToken/CAToken.sol/IAaveV3Pool__factory.js.map +1 -0
  33. package/dist/nodejs/typechain/factories/contracts/CToken/CAToken.sol/index.d.ts +3 -0
  34. package/dist/nodejs/typechain/factories/contracts/CToken/CAToken.sol/index.js +13 -0
  35. package/dist/nodejs/typechain/factories/contracts/CToken/CAToken.sol/index.js.map +1 -0
  36. package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/CAavePool__factory.d.ts +1 -1
  37. package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/CAavePool__factory.js +1 -1
  38. package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.d.ts +1 -1
  39. package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js +1 -1
  40. package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.d.ts +1 -1
  41. package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js +1 -1
  42. package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.d.ts +1 -1
  43. package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js +1 -1
  44. package/dist/nodejs/typechain/factories/contracts/CToken/index.d.ts +1 -0
  45. package/dist/nodejs/typechain/factories/contracts/CToken/index.js +2 -1
  46. package/dist/nodejs/typechain/factories/contracts/CToken/index.js.map +1 -1
  47. package/dist/nodejs/typechain/factories/contracts/Infrared/CInfraredVault.sol/CInfraredVault__factory.d.ts +1 -1
  48. package/dist/nodejs/typechain/factories/contracts/Infrared/CInfraredVault.sol/CInfraredVault__factory.js +1 -1
  49. package/dist/nodejs/typechain/hardhat.d.ts +54 -0
  50. package/dist/nodejs/typechain/index.d.ts +2 -0
  51. package/dist/nodejs/typechain/index.js +4 -2
  52. package/dist/nodejs/typechain/index.js.map +1 -1
  53. package/package.json +1 -1
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
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":""}
@@ -1,3 +1,5 @@
1
+ import type * as caTokenSol from "./CAToken.sol";
2
+ export type { caTokenSol };
1
3
  import type * as cAavePoolSol from "./CAavePool.sol";
2
4
  export type { cAavePoolSol };
3
5
  export type { CErc20 } from "./CErc20";