@augustdigital/sdk 4.15.1 → 4.15.2-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/adapters/sui/constants.d.ts +1 -0
- package/lib/adapters/sui/constants.js +8 -1
- package/lib/adapters/sui/constants.js.map +1 -1
- package/lib/core/constants/vaults.d.ts +3 -2
- package/lib/core/constants/vaults.js +60 -60
- package/lib/core/constants/vaults.js.map +1 -1
- package/lib/core/constants.adapters.d.ts +117 -0
- package/lib/core/constants.adapters.js +160 -0
- package/lib/core/constants.adapters.js.map +1 -0
- package/lib/core/constants.core.d.ts +78 -0
- package/lib/core/constants.core.js +75 -0
- package/lib/core/constants.core.js.map +1 -0
- package/lib/core/constants.d.ts +96 -0
- package/lib/core/constants.js +148 -0
- package/lib/core/constants.js.map +1 -0
- package/lib/core/constants.vaults.d.ts +64 -0
- package/lib/core/constants.vaults.js +155 -0
- package/lib/core/constants.vaults.js.map +1 -0
- package/lib/core/constants.web3.d.ts +31 -0
- package/lib/core/constants.web3.js +112 -0
- package/lib/core/constants.web3.js.map +1 -0
- package/lib/core/core.helpers.d.ts +48 -0
- package/lib/core/core.helpers.js +210 -0
- package/lib/core/core.helpers.js.map +1 -0
- package/lib/core/helpers/core.js +9 -1
- package/lib/core/helpers/core.js.map +1 -1
- package/lib/core/helpers/vaults.js +2 -2
- package/lib/core/helpers.adapters.d.ts +9 -0
- package/lib/core/helpers.adapters.js +28 -0
- package/lib/core/helpers.adapters.js.map +1 -0
- package/lib/core/helpers.core.d.ts +48 -0
- package/lib/core/helpers.core.js +210 -0
- package/lib/core/helpers.core.js.map +1 -0
- package/lib/core/helpers.signer.d.ts +9 -0
- package/lib/core/helpers.signer.js +54 -0
- package/lib/core/helpers.signer.js.map +1 -0
- package/lib/core/helpers.vaults.d.ts +36 -0
- package/lib/core/helpers.vaults.js +145 -0
- package/lib/core/helpers.vaults.js.map +1 -0
- package/lib/core/helpers.web3.d.ts +95 -0
- package/lib/core/helpers.web3.js +376 -0
- package/lib/core/helpers.web3.js.map +1 -0
- package/lib/core/read.actions.d.ts +6 -0
- package/lib/core/read.actions.js +39 -0
- package/lib/core/read.actions.js.map +1 -0
- package/lib/core/web3.helpers.d.ts +95 -0
- package/lib/core/web3.helpers.js +356 -0
- package/lib/core/web3.helpers.js.map +1 -0
- package/lib/core/write.actions.d.ts +12 -0
- package/lib/core/write.actions.js +51 -0
- package/lib/core/write.actions.js.map +1 -0
- package/lib/index.d.ts +1 -1
- package/lib/modules/vaults/constants.d.ts +109 -0
- package/lib/modules/vaults/constants.js +194 -0
- package/lib/modules/vaults/constants.js.map +1 -0
- package/lib/modules/vaults/main.js +8 -1
- package/lib/modules/vaults/main.js.map +1 -1
- package/lib/modules/vaults/utils.js +11 -1
- package/lib/modules/vaults/utils.js.map +1 -1
- package/lib/modules/vaults/vault.actions.d.ts +19 -0
- package/lib/modules/vaults/vault.actions.js +95 -0
- package/lib/modules/vaults/vault.actions.js.map +1 -0
- package/lib/modules/vaults/write.actions.js +17 -15
- package/lib/modules/vaults/write.actions.js.map +1 -1
- package/lib/services/subgraph/vaults.js +25 -13
- package/lib/services/subgraph/vaults.js.map +1 -1
- package/lib/verify.d.ts +2 -0
- package/lib/verify.js +33 -0
- package/lib/verify.js.map +1 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EMBER_DEFAULTS = exports.EMBER_ENDPOINTS = exports.EMBER_API_BASE_URL = exports.SUI_CHAIN_ID = void 0;
|
|
3
|
+
exports.ALLOWED_SUI_VAULT_ADDRESSES = exports.EMBER_DEFAULTS = exports.EMBER_ENDPOINTS = exports.EMBER_API_BASE_URL = exports.SUI_CHAIN_ID = void 0;
|
|
4
4
|
exports.SUI_CHAIN_ID = 101;
|
|
5
5
|
exports.EMBER_API_BASE_URL = 'https://vaults.api.sui-prod.bluefin.io/api/v1/vaults';
|
|
6
6
|
exports.EMBER_ENDPOINTS = {
|
|
@@ -14,4 +14,11 @@ exports.EMBER_DEFAULTS = {
|
|
|
14
14
|
BPS_TO_PERCENT: 100,
|
|
15
15
|
VERSION: 'sui-0',
|
|
16
16
|
};
|
|
17
|
+
exports.ALLOWED_SUI_VAULT_ADDRESSES = [
|
|
18
|
+
'0x94c2826b24e44f710c5f80e3ed7ce898258d7008e3a643c894d90d276924d4b9',
|
|
19
|
+
'0xfaf4d0ec9b76147c926c0c8b2aba39ea21ec991500c1e3e53b60d447b0e5f655',
|
|
20
|
+
'0x323578c2b24683ca845c68c1e2097697d65e235826a9dc931abce3b4b1e43642',
|
|
21
|
+
'0x1fdbd27ba90a7a5385185e3e0b76477202f2cadb0e4343163288c5625e7c5505',
|
|
22
|
+
'0x30844745c8197fdaf9fe06c4ffeb73fe05c092ce0040674a3758dbfcb032a1f4',
|
|
23
|
+
].map((addr) => addr.toLowerCase());
|
|
17
24
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src.ts/adapters/sui/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,YAAY,GAAG,GAAG,CAAC;AAEnB,QAAA,kBAAkB,GAC7B,sDAAsD,CAAC;AAE5C,QAAA,eAAe,GAAG;IAC7B,MAAM,EAAE,GAAG;IACX,GAAG,EAAE,cAAc;CACX,CAAC;AAEE,QAAA,cAAc,GAAG;IAC5B,QAAQ,EAAE,EAAE;IACZ,YAAY,EAAE,CAAC;IACf,UAAU,EAAE,GAAG;IACf,cAAc,EAAE,GAAG;IACnB,OAAO,EAAE,OAAO;CACR,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src.ts/adapters/sui/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,YAAY,GAAG,GAAG,CAAC;AAEnB,QAAA,kBAAkB,GAC7B,sDAAsD,CAAC;AAE5C,QAAA,eAAe,GAAG;IAC7B,MAAM,EAAE,GAAG;IACX,GAAG,EAAE,cAAc;CACX,CAAC;AAEE,QAAA,cAAc,GAAG;IAC5B,QAAQ,EAAE,EAAE;IACZ,YAAY,EAAE,CAAC;IACf,UAAU,EAAE,GAAG;IACf,cAAc,EAAE,GAAG;IACnB,OAAO,EAAE,OAAO;CACR,CAAC;AAEE,QAAA,2BAA2B,GAAG;IACzC,oEAAoE;IACpE,oEAAoE;IACpE,oEAAoE;IACpE,oEAAoE;IACpE,oEAAoE;CACrE,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC"}
|
|
@@ -12,8 +12,9 @@ export declare const VAULT_FUNCTIONS_V1: IPoolFunctions[];
|
|
|
12
12
|
export declare const VAULT_FUNCTIONS_V2: IPoolFunctions[];
|
|
13
13
|
export declare const VAULT_FUNCTIONS_V2_RECEIPT: IPoolFunctions[];
|
|
14
14
|
export declare const VAULT_FUNCTIONS_V2_WHITELISTED_ASSETS: IPoolFunctions[];
|
|
15
|
+
export declare const GOLDSKY_BASE_URL = "https://api.goldsky.com/api/private/project_cm9g0xy3o4j6v01vd34r3hvv9/subgraphs";
|
|
15
16
|
export declare const SUBGRAPH_VAULT_URLS: Record<VaultSymbols, string>;
|
|
16
|
-
type VaultSymbols = '
|
|
17
|
-
export declare const VAULT_SYMBOLS: Record<IAddress,
|
|
17
|
+
type VaultSymbols = 'sentusd' | 'pregrid' | 'repouscc' | 'earnxrp' | 'tivkbtc' | 'tivusdt0' | 'supermon' | 'earnmon' | 'k3europ' | 'wmon/ausd' | 'wbtc/ausd' | 'earnausd_monad' | 'sausd' | 'farmbold' | 'sentuscc' | 'sentbtc' | 'svusdc' | 'apusdc' | 'testwethtsa' | 'tacusr' | 'upinjusdt' | 'tac-teth' | 'upausd' | 'taccbbtc' | 'xupusdc' | 'uptbtc' | 'gteth' | 'ageth' | 'upusdc' | 'hgeth' | 'upssylva' | 'hbbtc' | 'hbhype' | 'upazt' | 'susdt' | 'upedge' | 'coreusdc' | 'upcusdo' | 'shifteth' | 'upsusde' | 'uplbtc' | 'upavax' | 'tacrseth' | 'musd' | 'earnausd' | 'alpineusdcflagship' | 'alpinecoinshiftusdc' | 'upbtc' | 'upstrbtc' | 'maxiusr' | 'upgammausdc' | 'xhype' | 'wildusd' | 'alpinebtc' | 'prenusd' | 'upyzusd' | 'upnusd' | 'hlpe';
|
|
18
|
+
export declare const VAULT_SYMBOLS: Record<IAddress, string>;
|
|
18
19
|
export declare const VAULT_SYMBOLS_REVERSE: Record<VaultSymbols, IAddress>;
|
|
19
20
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VAULT_SYMBOLS_REVERSE = exports.VAULT_SYMBOLS = exports.SUBGRAPH_VAULT_URLS = exports.VAULT_FUNCTIONS_V2_WHITELISTED_ASSETS = exports.VAULT_FUNCTIONS_V2_RECEIPT = exports.VAULT_FUNCTIONS_V2 = exports.VAULT_FUNCTIONS_V1 = exports.IDLE_CAPITAL_BORROWER_ADDRESS = exports.OLD_LENDING_POOLS = exports.WRAPPER_ADAPTOR = exports.MULTI_ASSET_VAULTS = exports.SUBACCOUNT_CALEB = exports.VAULT_AgoraAUSD = void 0;
|
|
3
|
+
exports.VAULT_SYMBOLS_REVERSE = exports.VAULT_SYMBOLS = exports.SUBGRAPH_VAULT_URLS = exports.GOLDSKY_BASE_URL = exports.VAULT_FUNCTIONS_V2_WHITELISTED_ASSETS = exports.VAULT_FUNCTIONS_V2_RECEIPT = exports.VAULT_FUNCTIONS_V2 = exports.VAULT_FUNCTIONS_V1 = exports.IDLE_CAPITAL_BORROWER_ADDRESS = exports.OLD_LENDING_POOLS = exports.WRAPPER_ADAPTOR = exports.MULTI_ASSET_VAULTS = exports.SUBACCOUNT_CALEB = exports.VAULT_AgoraAUSD = void 0;
|
|
4
4
|
const ethers_1 = require("ethers");
|
|
5
5
|
exports.VAULT_AgoraAUSD = (0, ethers_1.getAddress)('0x828BC5895b78b2fb591018Ca5bDC2064742D6D0f');
|
|
6
6
|
exports.SUBACCOUNT_CALEB = (0, ethers_1.getAddress)('0xFff71B0b66f076C60Fa2f176a34a6EA709ccF21B');
|
|
@@ -57,66 +57,66 @@ exports.VAULT_FUNCTIONS_V2_RECEIPT = [
|
|
|
57
57
|
exports.VAULT_FUNCTIONS_V2_WHITELISTED_ASSETS = [
|
|
58
58
|
'getWhitelistedAssets',
|
|
59
59
|
];
|
|
60
|
-
|
|
60
|
+
exports.GOLDSKY_BASE_URL = 'https://api.goldsky.com/api/private/project_cm9g0xy3o4j6v01vd34r3hvv9/subgraphs';
|
|
61
61
|
exports.SUBGRAPH_VAULT_URLS = {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
'tac-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
'
|
|
110
|
-
'
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
62
|
+
testwethtsa: ``,
|
|
63
|
+
tacusr: `${exports.GOLDSKY_BASE_URL}/august-eth-tacUSR/1.0.0/gn`,
|
|
64
|
+
upinjusdt: `${exports.GOLDSKY_BASE_URL}/august-eth-upINJUSDT/1.0.0/gn`,
|
|
65
|
+
'tac-teth': `${exports.GOLDSKY_BASE_URL}/august-eth-tactETH/1.0.0/gn`,
|
|
66
|
+
upbtc: `${exports.GOLDSKY_BASE_URL}/august-eth-upBTC/1.0.0/gn`,
|
|
67
|
+
upausd: `${exports.GOLDSKY_BASE_URL}/august-avax-upAUSD/1.0.0/gn`,
|
|
68
|
+
taccbbtc: `${exports.GOLDSKY_BASE_URL}/august-eth-TACcbBTC/1.0.0/gn`,
|
|
69
|
+
xupusdc: `${exports.GOLDSKY_BASE_URL}/august-eth-xUpUSDC/1.0.0/gn`,
|
|
70
|
+
uptbtc: `${exports.GOLDSKY_BASE_URL}/august-eth-uptBTC/1.0.0/gn`,
|
|
71
|
+
gteth: `${exports.GOLDSKY_BASE_URL}/august-eth-gtETH/1.0.0/gn`,
|
|
72
|
+
ageth: `${exports.GOLDSKY_BASE_URL}/august-eth-agETH/1.0.0/gn`,
|
|
73
|
+
upusdc: `${exports.GOLDSKY_BASE_URL}/august-eth-upUSDC/1.0.0/gn`,
|
|
74
|
+
hgeth: `${exports.GOLDSKY_BASE_URL}/august-eth-hgETH/1.0.0/gn`,
|
|
75
|
+
upssylva: `${exports.GOLDSKY_BASE_URL}/august-eth-upsSYLVA/1.0.0/gn`,
|
|
76
|
+
hbbtc: `${exports.GOLDSKY_BASE_URL}/august-hyperevm-hbBTC/1.0.0/gn`,
|
|
77
|
+
hbhype: `${exports.GOLDSKY_BASE_URL}/august-hyperevm-hyperbeat/1.0.0/gn`,
|
|
78
|
+
upazt: `${exports.GOLDSKY_BASE_URL}/august-eth-upAZT/1.0.0/gn`,
|
|
79
|
+
susdt: `${exports.GOLDSKY_BASE_URL}/august-bsc-sUSDT/1.0.0/gn`,
|
|
80
|
+
upedge: `${exports.GOLDSKY_BASE_URL}/august-eth-upEDGE/1.0.0/gn`,
|
|
81
|
+
coreusdc: `${exports.GOLDSKY_BASE_URL}/august-eth-coreUSDC/1.0.0/gn`,
|
|
82
|
+
upcusdo: `${exports.GOLDSKY_BASE_URL}/august-eth-upcUSDO/1.0.0/gn`,
|
|
83
|
+
shifteth: `${exports.GOLDSKY_BASE_URL}/august-eth-shiftETH/1.0.0/gn`,
|
|
84
|
+
upsusde: `${exports.GOLDSKY_BASE_URL}/august-eth-upsUSDe/1.0.0/gn`,
|
|
85
|
+
uplbtc: `${exports.GOLDSKY_BASE_URL}/august-eth-upLBTC/1.0.0/gn`,
|
|
86
|
+
upavax: `${exports.GOLDSKY_BASE_URL}/august-avax-upAVAX/1.0.0/gn`,
|
|
87
|
+
tacrseth: `${exports.GOLDSKY_BASE_URL}/august-eth-TACrsEth/1.0.0/gn`,
|
|
88
|
+
musd: `${exports.GOLDSKY_BASE_URL}/august-mezo-mUSD/1.0.0/gn`,
|
|
89
|
+
wildusd: `${exports.GOLDSKY_BASE_URL}/august-eth-wildUSD/1.0.0/gn`,
|
|
90
|
+
earnausd: `${exports.GOLDSKY_BASE_URL}/august-eth-earnAUSD/1.0.0/gn`,
|
|
91
|
+
alpinecoinshiftusdc: `${exports.GOLDSKY_BASE_URL}/august-eth-AlpineCoinshiftUSDC/1.0.0/gn`,
|
|
92
|
+
alpineusdcflagship: `${exports.GOLDSKY_BASE_URL}/august-eth-AlpineUSDCFlagship/1.0.0/gn`,
|
|
93
|
+
upstrbtc: `${exports.GOLDSKY_BASE_URL}/august-eth-UpStrBTC/1.0.0/gn`,
|
|
94
|
+
maxiusr: `${exports.GOLDSKY_BASE_URL}/august-eth-maxiUSR/1.0.0/gn`,
|
|
95
|
+
upgammausdc: `${exports.GOLDSKY_BASE_URL}/august-eth-upGAMMAusdc/1.0.0/gn`,
|
|
96
|
+
xhype: `${exports.GOLDSKY_BASE_URL}/august-hyperevm-xHYPE/1.0.0/gn`,
|
|
97
|
+
alpinebtc: `${exports.GOLDSKY_BASE_URL}/august-eth-AlpineBTC/1.0.0/gn`,
|
|
98
|
+
prenusd: `${exports.GOLDSKY_BASE_URL}/august-eth-preNUSD/1.0.0/gn`,
|
|
99
|
+
upyzusd: `${exports.GOLDSKY_BASE_URL}/august-plasma-upyzUSD/1.0.0/gn`,
|
|
100
|
+
hlpe: `${exports.GOLDSKY_BASE_URL}/august-hyperevm-HLPe/1.0.0/gn`,
|
|
101
|
+
svusdc: `${exports.GOLDSKY_BASE_URL}/august-eth-svUSDC/1.0.0/gn`,
|
|
102
|
+
apusdc: `${exports.GOLDSKY_BASE_URL}/august-eth-apUSDC/1.0.0/gn`,
|
|
103
|
+
upnusd: `${exports.GOLDSKY_BASE_URL}/august-eth-upNUSD/1.0.0/gn`,
|
|
104
|
+
sentuscc: `${exports.GOLDSKY_BASE_URL}/august-eth-sentUSCC/1.0.0/gn`,
|
|
105
|
+
sentbtc: `${exports.GOLDSKY_BASE_URL}/august-eth-sentBTC/1.0.0/gn`,
|
|
106
|
+
farmbold: `${exports.GOLDSKY_BASE_URL}/august-eth-farmBOLD/1.0.0/gn`,
|
|
107
|
+
sausd: `${exports.GOLDSKY_BASE_URL}/august-monad-sAUSD/1.0.0/gn`,
|
|
108
|
+
earnausd_monad: `${exports.GOLDSKY_BASE_URL}/august-monad-earnAUSD/1.0.0/gn`,
|
|
109
|
+
'wmon/ausd': `${exports.GOLDSKY_BASE_URL}/august-monad-wMONAUSD/1.0.0/gn`,
|
|
110
|
+
'wbtc/ausd': `${exports.GOLDSKY_BASE_URL}/august-monad-wBTCAUSD/1.0.0/gn`,
|
|
111
|
+
supermon: `${exports.GOLDSKY_BASE_URL}/august-monad-superMON/1.0.0/gn`,
|
|
112
|
+
earnmon: `${exports.GOLDSKY_BASE_URL}/august-monad-earnMON/1.0.0/gn`,
|
|
113
|
+
k3europ: `${exports.GOLDSKY_BASE_URL}/august-eth-k3EUROP/1.0.0/gn`,
|
|
114
|
+
pregrid: `${exports.GOLDSKY_BASE_URL}/august-eth-k3EUROP/1.0.0/gn`,
|
|
115
|
+
repouscc: `${exports.GOLDSKY_BASE_URL}/august-eth-k3EUROP/1.0.0/gn`,
|
|
116
|
+
earnxrp: `${exports.GOLDSKY_BASE_URL}/august-flare-earnXRP/1.0.0/gn`,
|
|
117
|
+
tivkbtc: `${exports.GOLDSKY_BASE_URL}/august-ink-TIVKBTC/1.0.0/gn`,
|
|
118
|
+
tivusdt0: `${exports.GOLDSKY_BASE_URL}/august-ink-TIVUSDT0/1.0.0/gn`,
|
|
119
|
+
sentusd: `${exports.GOLDSKY_BASE_URL}/august-eth-sentUSD/1.0.0/gn`,
|
|
120
120
|
};
|
|
121
121
|
exports.VAULT_SYMBOLS = {
|
|
122
122
|
'0x74aD2F789Ed583DBd141bbdafC673fE1F033718b': 'sentUSD',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vaults.js","sourceRoot":"","sources":["../../../src.ts/core/constants/vaults.ts"],"names":[],"mappings":";;;AACA,mCAAoC;AAavB,QAAA,eAAe,GAAG,IAAA,mBAAU,EACvC,4CAA4C,CACjC,CAAC;AACD,QAAA,gBAAgB,GAAG,IAAA,mBAAU,EACxC,4CAA4C,CACjC,CAAC;AAMD,QAAA,kBAAkB,GAAG;IAEhC,IAAA,mBAAU,EAAC,4CAA4C,CAAa;IAEpE,IAAA,mBAAU,EAAC,4CAA4C,CAAa;IAEpE,IAAA,mBAAU,EAAC,4CAA4C,CAAa;IAEpE,IAAA,mBAAU,EAAC,4CAA4C,CAAa;IAEpE,IAAA,mBAAU,EAAC,4CAA4C,CAAa;IAEpE,IAAA,mBAAU,EAAC,4CAA4C,CAAa;IAEpE,IAAA,mBAAU,EAAC,4CAA4C,CAAa;IAEpE,IAAA,mBAAU,EAAC,4CAA4C,CAAa;IAEpE,IAAA,mBAAU,EAAC,4CAA4C,CAAa;CACrE,CAAC;AAEW,QAAA,eAAe,GAAG;IAC7B,KAAK,EAAE,IAAA,mBAAU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C,EAAE,QAAQ;IACtD,4CAA4C,EAAE,QAAQ;IACtD,4CAA4C,EAAE,UAAU;IACxD,4CAA4C,EAAE,SAAS;IACvD,4CAA4C,EAAE,QAAQ;IACtD,4CAA4C,EAAE,SAAS;IACvD,4CAA4C,EAAE,UAAU;IACxD,4CAA4C,EAAE,UAAU;CACzD,CAAC;AACW,QAAA,qBAAqB,GAChC,MAAM,CAAC,WAAW,CAChB,MAAM,CAAC,OAAO,CAAC,qBAAa,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAChC,CAAC"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { IVaultAdapterConfig } from '../types';
|
|
2
|
+
import { IAddress } from '../types/web3';
|
|
3
|
+
export declare const POOL_NAMES: {
|
|
4
|
+
readonly ETH_TREEHOUSE_GROWTH: 'Treehouse Growth';
|
|
5
|
+
readonly AVAX_AVAX: 'AVAX Strategy';
|
|
6
|
+
readonly ETH_KELP_TAC_RSETH: 'Kelp TAC rsETH';
|
|
7
|
+
};
|
|
8
|
+
export declare const ADAPTER_ABIS: {
|
|
9
|
+
readonly NATIVE_DEPOSIT_AVAX: readonly [
|
|
10
|
+
{
|
|
11
|
+
readonly inputs: readonly [];
|
|
12
|
+
readonly name: 'depositETH';
|
|
13
|
+
readonly outputs: readonly [];
|
|
14
|
+
readonly stateMutability: 'payable';
|
|
15
|
+
readonly type: 'function';
|
|
16
|
+
},
|
|
17
|
+
];
|
|
18
|
+
readonly NATIVE_DEPOSIT_ETH_WITH_REFERRAL: readonly [
|
|
19
|
+
{
|
|
20
|
+
readonly inputs: readonly [
|
|
21
|
+
{
|
|
22
|
+
readonly internalType: 'address';
|
|
23
|
+
readonly name: 'referralId';
|
|
24
|
+
readonly type: 'address';
|
|
25
|
+
},
|
|
26
|
+
];
|
|
27
|
+
readonly name: 'depositETH';
|
|
28
|
+
readonly outputs: readonly [];
|
|
29
|
+
readonly stateMutability: 'payable';
|
|
30
|
+
readonly type: 'function';
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
readonly inputs: readonly [
|
|
34
|
+
{
|
|
35
|
+
readonly internalType: 'uint256';
|
|
36
|
+
readonly name: 'amount';
|
|
37
|
+
readonly type: 'uint256';
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
readonly internalType: 'address';
|
|
41
|
+
readonly name: 'referralId';
|
|
42
|
+
readonly type: 'address';
|
|
43
|
+
},
|
|
44
|
+
];
|
|
45
|
+
readonly name: 'depositWETH';
|
|
46
|
+
readonly outputs: readonly [];
|
|
47
|
+
readonly stateMutability: 'nonpayable';
|
|
48
|
+
readonly type: 'function';
|
|
49
|
+
},
|
|
50
|
+
];
|
|
51
|
+
readonly KELP_RSETH_ADAPTER: readonly [
|
|
52
|
+
{
|
|
53
|
+
readonly inputs: readonly [
|
|
54
|
+
{
|
|
55
|
+
readonly internalType: 'address';
|
|
56
|
+
readonly name: 'referralId';
|
|
57
|
+
readonly type: 'address';
|
|
58
|
+
},
|
|
59
|
+
];
|
|
60
|
+
readonly name: 'getRSETHWithETH';
|
|
61
|
+
readonly outputs: readonly [];
|
|
62
|
+
readonly stateMutability: 'payable';
|
|
63
|
+
readonly type: 'function';
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
readonly inputs: readonly [
|
|
67
|
+
{
|
|
68
|
+
readonly internalType: 'address';
|
|
69
|
+
readonly name: 'asset';
|
|
70
|
+
readonly type: 'address';
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
readonly internalType: 'uint256';
|
|
74
|
+
readonly name: 'depositAmount';
|
|
75
|
+
readonly type: 'uint256';
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
readonly internalType: 'string';
|
|
79
|
+
readonly name: 'referralId';
|
|
80
|
+
readonly type: 'string';
|
|
81
|
+
},
|
|
82
|
+
];
|
|
83
|
+
readonly name: 'getRSETHWithERC20';
|
|
84
|
+
readonly outputs: readonly [];
|
|
85
|
+
readonly stateMutability: 'nonpayable';
|
|
86
|
+
readonly type: 'function';
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
readonly inputs: readonly [
|
|
90
|
+
{
|
|
91
|
+
readonly internalType: 'address';
|
|
92
|
+
readonly name: 'asset';
|
|
93
|
+
readonly type: 'address';
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
readonly internalType: 'uint256';
|
|
97
|
+
readonly name: 'depositAmount';
|
|
98
|
+
readonly type: 'uint256';
|
|
99
|
+
},
|
|
100
|
+
];
|
|
101
|
+
readonly name: 'getRsETHAmountToMint';
|
|
102
|
+
readonly outputs: readonly [
|
|
103
|
+
{
|
|
104
|
+
readonly internalType: 'uint256';
|
|
105
|
+
readonly name: 'rsETHAmount';
|
|
106
|
+
readonly type: 'uint256';
|
|
107
|
+
},
|
|
108
|
+
];
|
|
109
|
+
readonly stateMutability: 'view';
|
|
110
|
+
readonly type: 'function';
|
|
111
|
+
},
|
|
112
|
+
];
|
|
113
|
+
};
|
|
114
|
+
export declare const VAULT_ADAPTER_CONFIGS: Record<
|
|
115
|
+
IAddress,
|
|
116
|
+
IVaultAdapterConfig
|
|
117
|
+
>;
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VAULT_ADAPTER_CONFIGS = exports.ADAPTER_ABIS = exports.POOL_NAMES = void 0;
|
|
4
|
+
const ethers_1 = require("ethers");
|
|
5
|
+
exports.POOL_NAMES = {
|
|
6
|
+
ETH_TREEHOUSE_GROWTH: 'Treehouse Growth',
|
|
7
|
+
AVAX_AVAX: 'AVAX Strategy',
|
|
8
|
+
ETH_KELP_TAC_RSETH: 'Kelp TAC rsETH',
|
|
9
|
+
};
|
|
10
|
+
exports.ADAPTER_ABIS = {
|
|
11
|
+
NATIVE_DEPOSIT_AVAX: [
|
|
12
|
+
{
|
|
13
|
+
inputs: [],
|
|
14
|
+
name: 'depositETH',
|
|
15
|
+
outputs: [],
|
|
16
|
+
stateMutability: 'payable',
|
|
17
|
+
type: 'function',
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
NATIVE_DEPOSIT_ETH_WITH_REFERRAL: [
|
|
21
|
+
{
|
|
22
|
+
inputs: [
|
|
23
|
+
{ internalType: 'address', name: 'referralId', type: 'address' },
|
|
24
|
+
],
|
|
25
|
+
name: 'depositETH',
|
|
26
|
+
outputs: [],
|
|
27
|
+
stateMutability: 'payable',
|
|
28
|
+
type: 'function',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
inputs: [
|
|
32
|
+
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
|
|
33
|
+
{ internalType: 'address', name: 'referralId', type: 'address' },
|
|
34
|
+
],
|
|
35
|
+
name: 'depositWETH',
|
|
36
|
+
outputs: [],
|
|
37
|
+
stateMutability: 'nonpayable',
|
|
38
|
+
type: 'function',
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
KELP_RSETH_ADAPTER: [
|
|
42
|
+
{
|
|
43
|
+
inputs: [
|
|
44
|
+
{ internalType: 'address', name: 'referralId', type: 'address' },
|
|
45
|
+
],
|
|
46
|
+
name: 'getRSETHWithETH',
|
|
47
|
+
outputs: [],
|
|
48
|
+
stateMutability: 'payable',
|
|
49
|
+
type: 'function',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
inputs: [
|
|
53
|
+
{
|
|
54
|
+
internalType: 'address',
|
|
55
|
+
name: 'asset',
|
|
56
|
+
type: 'address',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
internalType: 'uint256',
|
|
60
|
+
name: 'depositAmount',
|
|
61
|
+
type: 'uint256',
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
internalType: 'string',
|
|
65
|
+
name: 'referralId',
|
|
66
|
+
type: 'string',
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
name: 'getRSETHWithERC20',
|
|
70
|
+
outputs: [],
|
|
71
|
+
stateMutability: 'nonpayable',
|
|
72
|
+
type: 'function',
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
inputs: [
|
|
76
|
+
{
|
|
77
|
+
internalType: 'address',
|
|
78
|
+
name: 'asset',
|
|
79
|
+
type: 'address',
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
internalType: 'uint256',
|
|
83
|
+
name: 'depositAmount',
|
|
84
|
+
type: 'uint256',
|
|
85
|
+
},
|
|
86
|
+
],
|
|
87
|
+
name: 'getRsETHAmountToMint',
|
|
88
|
+
outputs: [
|
|
89
|
+
{
|
|
90
|
+
internalType: 'uint256',
|
|
91
|
+
name: 'rsETHAmount',
|
|
92
|
+
type: 'uint256',
|
|
93
|
+
},
|
|
94
|
+
],
|
|
95
|
+
stateMutability: 'view',
|
|
96
|
+
type: 'function',
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
};
|
|
100
|
+
exports.VAULT_ADAPTER_CONFIGS = {
|
|
101
|
+
'0x18EE038C114a07f4B08b420fb1E4149a4F357249': {
|
|
102
|
+
viewAdapter: '0x72f3cf0d87e9688fad77711d02d86c68334fb275',
|
|
103
|
+
lpTokenAddress: '0xeF866BfbD0eEc6D6b42C37d8acC0D5fd26828376',
|
|
104
|
+
isNativeTokenDeposit: false,
|
|
105
|
+
isWrappedTokenDeposit: false,
|
|
106
|
+
},
|
|
107
|
+
'0x8AcA0841993ef4C87244d519166e767f49362C21': {
|
|
108
|
+
isNativeTokenDeposit: false,
|
|
109
|
+
isWrappedTokenDeposit: false,
|
|
110
|
+
wrappedTokenAddress: '0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599',
|
|
111
|
+
wrapperAddress: '0xfa3f6f36e3D178A538B2B1Fa5f1a5291C901A884',
|
|
112
|
+
bridgeId: 2,
|
|
113
|
+
abi: [],
|
|
114
|
+
tokens: [
|
|
115
|
+
'0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599',
|
|
116
|
+
'0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf',
|
|
117
|
+
'0x18084fbA666a33d37592fA2633fD49a74DD93a88',
|
|
118
|
+
],
|
|
119
|
+
},
|
|
120
|
+
'0xB2bFb52cfc40584AC4e9e2B36a5B8d6554A56e0b': {
|
|
121
|
+
isNativeTokenDeposit: true,
|
|
122
|
+
isWrappedTokenDeposit: false,
|
|
123
|
+
wrappedTokenAddress: '0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7',
|
|
124
|
+
wrapperAddress: '0xb2C57614B93c41A7Ec3B91980C0Bb7453904c6e8',
|
|
125
|
+
abi: exports.ADAPTER_ABIS.NATIVE_DEPOSIT_AVAX,
|
|
126
|
+
tokens: [
|
|
127
|
+
'0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7',
|
|
128
|
+
ethers_1.ZeroAddress,
|
|
129
|
+
],
|
|
130
|
+
},
|
|
131
|
+
'0x5Fde59415625401278c4d41C6beFCe3790eb357f': {
|
|
132
|
+
isNativeTokenDeposit: true,
|
|
133
|
+
isWrappedTokenDeposit: true,
|
|
134
|
+
wrappedTokenAddress: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
|
|
135
|
+
referralId: '0x849ECeE35EdD45aFA3Bd731531427B5661f57d87',
|
|
136
|
+
wrapperAddress: '0x6B6b27F08B84c186626D5A64614B5192a8ef71a9',
|
|
137
|
+
abi: exports.ADAPTER_ABIS.NATIVE_DEPOSIT_ETH_WITH_REFERRAL,
|
|
138
|
+
tokens: [
|
|
139
|
+
'0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0',
|
|
140
|
+
'0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
|
|
141
|
+
ethers_1.ZeroAddress,
|
|
142
|
+
],
|
|
143
|
+
},
|
|
144
|
+
'0x419386E3Ef42368e602720CC458e00c0B28c47A7': {
|
|
145
|
+
isNativeTokenDeposit: true,
|
|
146
|
+
isWrappedTokenDeposit: true,
|
|
147
|
+
wrappedTokenAddress: '0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84',
|
|
148
|
+
referralId: '',
|
|
149
|
+
wrapperAddress: '0xa7f3a4d8395d62DF12bf35Afb4ab8db42F12926F',
|
|
150
|
+
viewAdapter: '0x036676389e48133B63a802f8635AD39E752D375D',
|
|
151
|
+
abi: exports.ADAPTER_ABIS.KELP_RSETH_ADAPTER,
|
|
152
|
+
tokens: [
|
|
153
|
+
'0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84',
|
|
154
|
+
'0xA35b1B31Ce002FBF2058D22F30f95D405200A15b',
|
|
155
|
+
'0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
|
|
156
|
+
ethers_1.ZeroAddress,
|
|
157
|
+
],
|
|
158
|
+
},
|
|
159
|
+
};
|
|
160
|
+
//# sourceMappingURL=constants.adapters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.adapters.js","sourceRoot":"","sources":["../../src.ts/core/constants.adapters.ts"],"names":[],"mappings":";;;AASA,mCAAqC;AAKxB,QAAA,UAAU,GAAG;IACxB,oBAAoB,EAAE,kBAAkB;IACxC,SAAS,EAAE,eAAe;IAC1B,kBAAkB,EAAE,gBAAgB;CAC5B,CAAC;AAKE,QAAA,YAAY,GAAG;IAC1B,mBAAmB,EAAE;QACnB;YACE,MAAM,EAAE,EAAE;YACV,IAAI,EAAE,YAAY;YAClB,OAAO,EAAE,EAAE;YACX,eAAe,EAAE,SAAS;YAC1B,IAAI,EAAE,UAAU;SACjB;KACF;IACD,gCAAgC,EAAE;QAChC;YACE,MAAM,EAAE;gBACN,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE;aACjE;YACD,IAAI,EAAE,YAAY;YAClB,OAAO,EAAE,EAAE;YACX,eAAe,EAAE,SAAS;YAC1B,IAAI,EAAE,UA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oBAAY,CAAC,kBAAkB;QACpC,MAAM,EAAE;YACN,4CAAwD;YACxD,4CAAwD;YACxD,4CAAwD;YACxD,oBAAuB;SACxB;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { IAddress } from '../types';
|
|
2
|
+
export declare const REQUEST_TIMEOUT_MS = 90000;
|
|
3
|
+
export declare const WEBSERVER_URL: {
|
|
4
|
+
production: string;
|
|
5
|
+
development: string;
|
|
6
|
+
localhost: string;
|
|
7
|
+
qa: string;
|
|
8
|
+
public: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const WEBSERVER_ENDPOINTS: {
|
|
11
|
+
default: {
|
|
12
|
+
hello: string;
|
|
13
|
+
protected: string;
|
|
14
|
+
};
|
|
15
|
+
auth: {
|
|
16
|
+
verify: string;
|
|
17
|
+
sign: string;
|
|
18
|
+
login: string;
|
|
19
|
+
nonce: string;
|
|
20
|
+
refresh: string;
|
|
21
|
+
};
|
|
22
|
+
subaccount: {
|
|
23
|
+
rewards: (subaccount: IAddress) => string;
|
|
24
|
+
tokens: (subaccount: IAddress) => string;
|
|
25
|
+
twap: {
|
|
26
|
+
create: (subaccount: IAddress) => string;
|
|
27
|
+
stop: (subaccount: IAddress, id: string) => string;
|
|
28
|
+
fills: (subaccount: IAddress, id: string) => string;
|
|
29
|
+
};
|
|
30
|
+
debank: (subaccount: IAddress) => string;
|
|
31
|
+
health_factor: (subaccount: IAddress) => string;
|
|
32
|
+
summary: (subaccount: IAddress) => string;
|
|
33
|
+
batch: (subaccount: IAddress) => string;
|
|
34
|
+
loans: (
|
|
35
|
+
subaccount: IAddress,
|
|
36
|
+
side?: 'BORROWER' | 'LENDER' | 'BOTH',
|
|
37
|
+
) => string;
|
|
38
|
+
cefi: (subaccount: IAddress) => string;
|
|
39
|
+
otc_positions: (subaccount: IAddress) => string;
|
|
40
|
+
_: (subaccount: IAddress) => string;
|
|
41
|
+
};
|
|
42
|
+
users: {
|
|
43
|
+
get: string;
|
|
44
|
+
};
|
|
45
|
+
prices: (symbol: string) => string;
|
|
46
|
+
metrics: {
|
|
47
|
+
pnl: (subaccount: IAddress, startTime?: string, endTime?: string) => string;
|
|
48
|
+
};
|
|
49
|
+
public: {
|
|
50
|
+
integrations: {
|
|
51
|
+
morpho: {
|
|
52
|
+
apy: (subaccount: IAddress, vaultAddress: IAddress) => string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
tokenizedVault: {
|
|
56
|
+
loans: (
|
|
57
|
+
vaultAddress: IAddress,
|
|
58
|
+
chainId: number,
|
|
59
|
+
active: boolean,
|
|
60
|
+
) => string;
|
|
61
|
+
list: string;
|
|
62
|
+
byVaultAddress: (vaultAddress: IAddress) => string;
|
|
63
|
+
historicalApy: (vaultAddress: IAddress) => string;
|
|
64
|
+
};
|
|
65
|
+
points: {
|
|
66
|
+
byUserAddress: (userAddress: IAddress) => string;
|
|
67
|
+
register: string;
|
|
68
|
+
leaderboard: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
export declare const DEFAULT_FETCH_OPTIONS: {
|
|
73
|
+
readonly method: 'GET';
|
|
74
|
+
readonly headers: {
|
|
75
|
+
readonly Accept: 'application/json';
|
|
76
|
+
readonly 'Content-Type': 'application/json';
|
|
77
|
+
};
|
|
78
|
+
};
|