@meterio/sumer-js 0.1.8 → 0.1.10
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/constants/arbitrum.d.ts +60 -0
- package/dist/nodejs/constants/arbitrum.js +144 -0
- package/dist/nodejs/constants/arbitrum.js.map +1 -0
- package/dist/nodejs/constants/basemain.d.ts +54 -0
- package/dist/nodejs/constants/basemain.js +128 -0
- package/dist/nodejs/constants/basemain.js.map +1 -0
- package/dist/nodejs/constants/basetest.d.ts +52 -0
- package/dist/nodejs/constants/basetest.js +118 -0
- package/dist/nodejs/constants/basetest.js.map +1 -0
- package/dist/nodejs/constants/goerli.d.ts +42 -0
- package/dist/nodejs/constants/goerli.js +111 -0
- package/dist/nodejs/constants/goerli.js.map +1 -0
- package/dist/nodejs/constants/index.js +14 -14
- package/dist/nodejs/constants/index.js.map +1 -1
- package/dist/nodejs/constants/metermain.d.ts +52 -0
- package/dist/nodejs/constants/metermain.js +128 -0
- package/dist/nodejs/constants/metermain.js.map +1 -0
- package/dist/nodejs/constants/metertest.d.ts +60 -0
- package/dist/nodejs/constants/metertest.js +160 -0
- package/dist/nodejs/constants/metertest.js.map +1 -0
- package/dist/nodejs/constants/sepolia.d.ts +48 -0
- package/dist/nodejs/constants/sepolia.js +88 -0
- package/dist/nodejs/constants/sepolia.js.map +1 -0
- package/dist/nodejs/index.d.ts +0 -30
- package/package.json +1 -1
- package/dist/nodejs/typechain/contracts/CToken/Interfaces/index.d.ts +0 -4
- package/dist/nodejs/typechain/contracts/CToken/Interfaces/index.js +0 -3
- package/dist/nodejs/typechain/contracts/CToken/Interfaces/index.js.map +0 -1
- package/dist/nodejs/typechain/contracts/CToken/Test.sol/index.d.ts +0 -1
- package/dist/nodejs/typechain/contracts/CToken/Test.sol/index.js +0 -3
- package/dist/nodejs/typechain/contracts/CToken/Test.sol/index.js.map +0 -1
- package/dist/nodejs/typechain/contracts/Comptroller/Comptroller.sol/Comptroller.d.ts +0 -1446
- package/dist/nodejs/typechain/contracts/Comptroller/Comptroller.sol/Comptroller.js +0 -3
- package/dist/nodejs/typechain/contracts/Comptroller/Comptroller.sol/Comptroller.js.map +0 -1
- package/dist/nodejs/typechain/contracts/Comptroller/Comptroller.sol/index.d.ts +0 -3
- package/dist/nodejs/typechain/contracts/Comptroller/Comptroller.sol/index.js +0 -3
- package/dist/nodejs/typechain/contracts/Comptroller/Comptroller.sol/index.js.map +0 -1
- package/dist/nodejs/typechain/contracts/Comptroller/Interfaces/index.d.ts +0 -6
- package/dist/nodejs/typechain/contracts/Comptroller/Interfaces/index.js +0 -3
- package/dist/nodejs/typechain/contracts/Comptroller/Interfaces/index.js.map +0 -1
- package/dist/nodejs/typechain/contracts/Oracle/Interfaces/index.d.ts +0 -4
- package/dist/nodejs/typechain/contracts/Oracle/Interfaces/index.js +0 -3
- package/dist/nodejs/typechain/contracts/Oracle/Interfaces/index.js.map +0 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/Interfaces/index.d.ts +0 -4
- package/dist/nodejs/typechain/factories/contracts/CToken/Interfaces/index.js +0 -15
- package/dist/nodejs/typechain/factories/contracts/CToken/Interfaces/index.js.map +0 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/Test.sol/index.d.ts +0 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/Test.sol/index.js +0 -9
- package/dist/nodejs/typechain/factories/contracts/CToken/Test.sol/index.js.map +0 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller.sol/Comptroller__factory.d.ts +0 -2066
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller.sol/Comptroller__factory.js +0 -2689
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller.sol/Comptroller__factory.js.map +0 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller.sol/index.d.ts +0 -3
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller.sol/index.js +0 -13
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller.sol/index.js.map +0 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Interfaces/index.d.ts +0 -6
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Interfaces/index.js +0 -19
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Interfaces/index.js.map +0 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/Interfaces/index.d.ts +0 -4
- package/dist/nodejs/typechain/factories/contracts/Oracle/Interfaces/index.js +0 -15
- package/dist/nodejs/typechain/factories/contracts/Oracle/Interfaces/index.js.map +0 -1
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sepolia = void 0;
|
|
4
|
+
exports.sepolia = {
|
|
5
|
+
"addresses": {
|
|
6
|
+
"ProxyAdmin": "0x809b6caa5A68A63b526f6085c628a5366077195b",
|
|
7
|
+
"Multicall2": "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
8
|
+
"Sumer": "0x553d713e0fB958932b6C40ABAf0b5A1fFae73Da2",
|
|
9
|
+
"SUMER": "0x553d713e0fB958932b6C40ABAf0b5A1fFae73Da2",
|
|
10
|
+
"CompoundLens": "0x3BB0e110Aa7308Ae6e180c4B3D17777cECca9182",
|
|
11
|
+
"FeedPriceOracle": "0x35D9f952B10839B11745807c50F5743F373Aa2ca",
|
|
12
|
+
"AccountLiquidity": "0x863597A887FbC21635471b2939c65936C0193FCB",
|
|
13
|
+
"CompLogic": "0xDb44Cdcd54C30238d555975922Dbd7e366F4009d",
|
|
14
|
+
"Comptroller": "0x09Bf5c88De66Edf5Bc8AFdBFFB03E73DED4da4d9",
|
|
15
|
+
"sdrETH": "0x3Dfcb252d5Dd3aDA82C388e3754d9b002Dfa769f",
|
|
16
|
+
"ETH": "0x0000000000000000000000000000000000000000",
|
|
17
|
+
"sdrUSDC": "0x522Ff165b8a0cb091D939009c41cE987F1079699",
|
|
18
|
+
"USDC": "0x94a9D9AC8a22534E3FaCa9F4e7F2E2cf85d5E4C8",
|
|
19
|
+
"sdrDAI": "0xC56065ee94eD4d05360e130075Dd06DE55eE0916",
|
|
20
|
+
"DAI": "0xFF34B3d4Aee8ddCd6F9AFFFB6Fe49bD371b8a357",
|
|
21
|
+
"sdrsuUSD": "0x68F961B13a3fbD3a04eFAbEfc284572B16412aE8",
|
|
22
|
+
"suUSD": "0x8BF591Eae535f93a242D5A954d3Cde648b48A5A8",
|
|
23
|
+
"sdrsuETH": "0xF623df845D182F977b18F7B1f2Cf3f2d48653db5",
|
|
24
|
+
"suETH": "0x1c22531AA9747d76fFF8F0A43b37954ca67d28e0",
|
|
25
|
+
"Timelock": "0x247F872F6331e12CaF3a92D19BD5078CE25fc825"
|
|
26
|
+
},
|
|
27
|
+
"tokenPairs": [
|
|
28
|
+
{
|
|
29
|
+
"ctokenSym": "sdrUSDC",
|
|
30
|
+
"underlySym": "USDC",
|
|
31
|
+
"ctokenDecimal": 6,
|
|
32
|
+
"underlyDecimal": 6,
|
|
33
|
+
"ctokenIsEther": false
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"ctokenSym": "sdrDAI",
|
|
37
|
+
"underlySym": "DAI",
|
|
38
|
+
"ctokenDecimal": 18,
|
|
39
|
+
"underlyDecimal": 18,
|
|
40
|
+
"ctokenIsEther": false
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"ctokenSym": "sdrsuUSD",
|
|
44
|
+
"underlySym": "suUSD",
|
|
45
|
+
"ctokenDecimal": 18,
|
|
46
|
+
"underlyDecimal": 18,
|
|
47
|
+
"ctokenIsEther": false
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"ctokenSym": "sdrsuETH",
|
|
51
|
+
"underlySym": "suETH",
|
|
52
|
+
"ctokenDecimal": 18,
|
|
53
|
+
"underlyDecimal": 18,
|
|
54
|
+
"ctokenIsEther": false
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"ctokenSym": "sdrETH",
|
|
58
|
+
"underlySym": "ETH",
|
|
59
|
+
"ctokenDecimal": 18,
|
|
60
|
+
"underlyDecimal": 18,
|
|
61
|
+
"ctokenIsEther": true
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"rateModels": [
|
|
65
|
+
{
|
|
66
|
+
"name": "JumpRateModelV2",
|
|
67
|
+
"address": "0x484052c5F3cB7bbF01C871260e5B820f43A4A2e3",
|
|
68
|
+
"tokens": [
|
|
69
|
+
"USDC",
|
|
70
|
+
"DAI",
|
|
71
|
+
"ETH"
|
|
72
|
+
],
|
|
73
|
+
"baseRatePerYear": 0.02,
|
|
74
|
+
"multiplierPerYear": 0.12,
|
|
75
|
+
"jumpMultiplierPerYear": 1,
|
|
76
|
+
"kink": 0.75
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "ZeroInterestRateModel",
|
|
80
|
+
"address": "0x3DF435904F6FA6a30F313ad347DEdEBf966E9629",
|
|
81
|
+
"tokens": [
|
|
82
|
+
"suUSD",
|
|
83
|
+
"suETH"
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
};
|
|
88
|
+
//# sourceMappingURL=sepolia.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sepolia.js","sourceRoot":"","sources":["../../../src/constants/sepolia.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG;IACrB,WAAW,EAAE;QACX,YAAY,EAAE,4CAA4C;QAC1D,YAAY,EAAE,4CAA4C;QAC1D,OAAO,EAAE,4CAA4C;QACrD,OAAO,EAAE,4CAA4C;QACrD,cAAc,EAAE,4CAA4C;QAC5D,iBAAiB,EAAE,4CAA4C;QAC/D,kBAAkB,EAAE,4CAA4C;QAChE,WAAW,EAAE,4CAA4C;QACzD,aAAa,EAAE,4CAA4C;QAC3D,QAAQ,EAAE,4CAA4C;QACtD,KAAK,EAAE,4CAA4C;Q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YACvD,QAAQ,EAAE;gBACR,OAAO;gBACP,OAAO;aACR;SACF;KACF;CACF,CAAA"}
|
package/dist/nodejs/index.d.ts
CHANGED
|
@@ -1855,36 +1855,6 @@ declare const Sumer: {
|
|
|
1855
1855
|
ctokenSym: string;
|
|
1856
1856
|
underlySym: string;
|
|
1857
1857
|
ctokenDecimal: number;
|
|
1858
|
-
/**
|
|
1859
|
-
* Creates an instance of the Sumer.js SDK.
|
|
1860
|
-
*
|
|
1861
|
-
* @param {Provider | string} [provider] Optional Ethereum network provider.
|
|
1862
|
-
* Defaults to Ethers.js fallback mainnet provider.
|
|
1863
|
-
* @param {object} [options] Optional provider options.
|
|
1864
|
-
*
|
|
1865
|
-
* @example
|
|
1866
|
-
* ```
|
|
1867
|
-
* var sumer = new Sumer(window.ethereum); // web browser
|
|
1868
|
-
*
|
|
1869
|
-
* var sumer = new Sumer('http://127.0.0.1:8545'); // HTTP provider
|
|
1870
|
-
*
|
|
1871
|
-
* var sumer = new Sumer(); // Uses Ethers.js fallback mainnet (for testing only)
|
|
1872
|
-
*
|
|
1873
|
-
* var sumer = new Sumer('ropsten'); // Uses Ethers.js fallback (for testing only)
|
|
1874
|
-
*
|
|
1875
|
-
* // Init with private key (server side)
|
|
1876
|
-
* var sumer = new Sumer('https://mainnet.infura.io/v3/_your_project_id_', {
|
|
1877
|
-
* privateKey: '0x_your_private_key_', // preferably with environment variable
|
|
1878
|
-
* });
|
|
1879
|
-
*
|
|
1880
|
-
* // Init with HD mnemonic (server side)
|
|
1881
|
-
* var sumer = new Sumer('mainnet' {
|
|
1882
|
-
* mnemonic: 'clutch captain shoe...', // preferably with environment variable
|
|
1883
|
-
* });
|
|
1884
|
-
* ```
|
|
1885
|
-
*
|
|
1886
|
-
* @returns {object} Returns an instance of the Sumer.js SDK.
|
|
1887
|
-
*/
|
|
1888
1858
|
underlyDecimal: number;
|
|
1889
1859
|
ctokenIsEther: boolean;
|
|
1890
1860
|
}[];
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/typechain/contracts/CToken/Interfaces/index.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { ErrorTest } from "./ErrorTest";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/typechain/contracts/CToken/Test.sol/index.ts"],"names":[],"mappings":""}
|