@augustdigital/sdk 4.14.0-alpha.4 → 4.14.1
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/evm/getters.js +1 -15
- package/lib/adapters/evm/getters.js.map +1 -1
- package/lib/core/constants/vaults.js +0 -2
- package/lib/core/constants/vaults.js.map +1 -1
- package/lib/main.d.ts +0 -4
- package/lib/main.js +0 -3
- package/lib/main.js.map +1 -1
- package/lib/modules/vaults/main.d.ts +0 -4
- package/lib/modules/vaults/main.js +0 -11
- package/lib/modules/vaults/main.js.map +1 -1
- package/lib/modules/vaults/utils.js +0 -7
- package/lib/modules/vaults/utils.js.map +1 -1
- package/lib/types/vaults.d.ts +0 -3
- package/lib/types/vaults.js.map +1 -1
- package/lib/types/webserver.d.ts +0 -1
- package/package.json +1 -1
- package/lib/core/constants.adapters.d.ts +0 -117
- package/lib/core/constants.adapters.js +0 -160
- package/lib/core/constants.adapters.js.map +0 -1
- package/lib/core/constants.core.d.ts +0 -78
- package/lib/core/constants.core.js +0 -75
- package/lib/core/constants.core.js.map +0 -1
- package/lib/core/constants.d.ts +0 -96
- package/lib/core/constants.js +0 -148
- package/lib/core/constants.js.map +0 -1
- package/lib/core/constants.vaults.d.ts +0 -64
- package/lib/core/constants.vaults.js +0 -155
- package/lib/core/constants.vaults.js.map +0 -1
- package/lib/core/constants.web3.d.ts +0 -31
- package/lib/core/constants.web3.js +0 -112
- package/lib/core/constants.web3.js.map +0 -1
- package/lib/core/core.helpers.d.ts +0 -48
- package/lib/core/core.helpers.js +0 -210
- package/lib/core/core.helpers.js.map +0 -1
- package/lib/core/helpers.adapters.d.ts +0 -9
- package/lib/core/helpers.adapters.js +0 -28
- package/lib/core/helpers.adapters.js.map +0 -1
- package/lib/core/helpers.core.d.ts +0 -48
- package/lib/core/helpers.core.js +0 -210
- package/lib/core/helpers.core.js.map +0 -1
- package/lib/core/helpers.signer.d.ts +0 -9
- package/lib/core/helpers.signer.js +0 -54
- package/lib/core/helpers.signer.js.map +0 -1
- package/lib/core/helpers.vaults.d.ts +0 -36
- package/lib/core/helpers.vaults.js +0 -145
- package/lib/core/helpers.vaults.js.map +0 -1
- package/lib/core/helpers.web3.d.ts +0 -95
- package/lib/core/helpers.web3.js +0 -376
- package/lib/core/helpers.web3.js.map +0 -1
- package/lib/core/read.actions.d.ts +0 -6
- package/lib/core/read.actions.js +0 -39
- package/lib/core/read.actions.js.map +0 -1
- package/lib/core/web3.helpers.d.ts +0 -95
- package/lib/core/web3.helpers.js +0 -356
- package/lib/core/web3.helpers.js.map +0 -1
- package/lib/core/write.actions.d.ts +0 -12
- package/lib/core/write.actions.js +0 -51
- package/lib/core/write.actions.js.map +0 -1
- package/lib/modules/vaults/constants.d.ts +0 -109
- package/lib/modules/vaults/constants.js +0 -194
- package/lib/modules/vaults/constants.js.map +0 -1
- package/lib/modules/vaults/vault.actions.d.ts +0 -19
- package/lib/modules/vaults/vault.actions.js +0 -95
- package/lib/modules/vaults/vault.actions.js.map +0 -1
- package/lib/verify.d.ts +0 -2
- package/lib/verify.js +0 -33
- package/lib/verify.js.map +0 -1
|
@@ -1,160 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,UAAU;SACjB;QACD;YACE,MAAM,EAAE;gBACN,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI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,4CAAwD;YACxD,oBAAuB;SACxB;KACF;CACF,CAAC"}
|
|
@@ -1,78 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DEFAULT_FETCH_OPTIONS = exports.WEBSERVER_ENDPOINTS = exports.WEBSERVER_URL = exports.REQUEST_TIMEOUT_MS = void 0;
|
|
4
|
-
const ethers_1 = require("ethers");
|
|
5
|
-
exports.REQUEST_TIMEOUT_MS = 90000;
|
|
6
|
-
exports.WEBSERVER_URL = {
|
|
7
|
-
production: 'https://backend.fractalprotocol.org',
|
|
8
|
-
development: 'https://backend-dev.augustdigital.io',
|
|
9
|
-
localhost: 'http://127.0.0.1:8000',
|
|
10
|
-
qa: 'https://backend-qa.augustdigital.io',
|
|
11
|
-
public: 'https://api.augustdigital.io/api/v1',
|
|
12
|
-
};
|
|
13
|
-
exports.WEBSERVER_ENDPOINTS = {
|
|
14
|
-
default: {
|
|
15
|
-
hello: '/hello',
|
|
16
|
-
protected: '/protected',
|
|
17
|
-
},
|
|
18
|
-
auth: {
|
|
19
|
-
verify: '/auth/secret',
|
|
20
|
-
sign: '/auth/sign',
|
|
21
|
-
login: '/auth/login',
|
|
22
|
-
nonce: '/auth/nonce',
|
|
23
|
-
refresh: '/auth/refresh',
|
|
24
|
-
},
|
|
25
|
-
subaccount: {
|
|
26
|
-
rewards: (subaccount) => `/subaccount/${(0, ethers_1.getAddress)(subaccount)}/rewards`,
|
|
27
|
-
tokens: (subaccount) => `/subaccount/${(0, ethers_1.getAddress)(subaccount)}/tokens`,
|
|
28
|
-
twap: {
|
|
29
|
-
create: (subaccount) => `/subaccount/${(0, ethers_1.getAddress)(subaccount)}/twap`,
|
|
30
|
-
stop: (subaccount, id) => `/subaccount/${(0, ethers_1.getAddress)(subaccount)}/twap/${id}/stop`,
|
|
31
|
-
fills: (subaccount, id) => `/subaccount/${(0, ethers_1.getAddress)(subaccount)}/twap/${id}/fills`,
|
|
32
|
-
},
|
|
33
|
-
debank: (subaccount) => `/subaccount/${(0, ethers_1.getAddress)(subaccount)}/debank`,
|
|
34
|
-
health_factor: (subaccount) => `/subaccount/${subaccount}/health_factor`,
|
|
35
|
-
summary: (subaccount) => `/subaccount/${(0, ethers_1.getAddress)(subaccount)}/summary`,
|
|
36
|
-
batch: (subaccount) => `/subaccount/${(0, ethers_1.getAddress)(subaccount)}/tx_batcher_integrations`,
|
|
37
|
-
loans: (subaccount, side = 'BOTH') => `/subaccount/${subaccount}/loans?side=${side}`,
|
|
38
|
-
cefi: (subaccount) => `/subaccount/${subaccount}/cefi_position`,
|
|
39
|
-
otc_positions: (subaccount) => `/subaccount/${subaccount}/otc_positions`,
|
|
40
|
-
_: (subaccount) => `/subaccount/${(0, ethers_1.getAddress)(subaccount)}`,
|
|
41
|
-
},
|
|
42
|
-
users: {
|
|
43
|
-
get: '/users',
|
|
44
|
-
},
|
|
45
|
-
prices: (symbol) => `/prices/${symbol}`,
|
|
46
|
-
metrics: {
|
|
47
|
-
pnl: (subaccount, startTime, endTime) => `/metrics/pnl?subaccount_address=${(0, ethers_1.getAddress)(subaccount)}${startTime && endTime ? `&start=${startTime}&end=${endTime}` : ''}`,
|
|
48
|
-
},
|
|
49
|
-
public: {
|
|
50
|
-
integrations: {
|
|
51
|
-
morpho: {
|
|
52
|
-
apy: (subaccount, vaultAddress) => `/integrations/morpho/apy?subaccount_address=${(0, ethers_1.getAddress)(subaccount)}&vault_address=${(0, ethers_1.getAddress)(vaultAddress)}`,
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
tokenizedVault: {
|
|
56
|
-
loans: (vaultAddress, chainId, active) => `/upshift/lending_pool/loanbook?address=${vaultAddress}&chain=${chainId}&active=${active}`,
|
|
57
|
-
list: '/tokenized_vault',
|
|
58
|
-
byVaultAddress: (vaultAddress) => `/tokenized_vault/${vaultAddress}`,
|
|
59
|
-
historicalApy: (vaultAddress) => `/upshift/historical_apy/chart?vault_address=${vaultAddress}`,
|
|
60
|
-
},
|
|
61
|
-
points: {
|
|
62
|
-
byUserAddress: (userAddress) => `/upshift/points/${(0, ethers_1.getAddress)(userAddress)}`,
|
|
63
|
-
register: '/upshift/points/register',
|
|
64
|
-
leaderboard: '/upshift/points/leaderboard',
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
};
|
|
68
|
-
exports.DEFAULT_FETCH_OPTIONS = {
|
|
69
|
-
method: 'GET',
|
|
70
|
-
headers: {
|
|
71
|
-
Accept: 'application/json',
|
|
72
|
-
'Content-Type': 'application/json',
|
|
73
|
-
},
|
|
74
|
-
};
|
|
75
|
-
//# sourceMappingURL=constants.core.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.core.js","sourceRoot":"","sources":["../../src.ts/core/constants.core.ts"],"names":[],"mappings":";;;AAIA,mCAAo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E,EAAE,CACzC,oBAAoB,YAAY,EAAE;YACpC,aAAa,EAAE,CAAC,YAAsB,EAAE,EAAE,CACxC,+CAA+C,YAAY,EAAE;SAChE;QACD,MAAM,EAAE;YACN,aAAa,EAAE,CAAC,WAAqB,EAAE,EAAE,CACvC,mBAAmB,IAAA,mBAAU,EAAC,WAAW,CAAC,EAAE;YAC9C,QAAQ,EAAE,0BAA0B;YACpC,WAAW,EAAE,6BAA6B;SAC3C;KACF;CAEF,CAAC;AAEW,QAAA,qBAAqB,GAAG;IACnC,MAAM,EAAE,KAAK;IACb,OAAO,EAAE;QACP,MAAM,EAAE,kBAAkB;QAC1B,cAAc,EAAE,kBAAkB;KACnC;CACO,CAAC"}
|
package/lib/core/constants.d.ts
DELETED
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { IAddress, IChainId, IChainObj } 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
|
-
};
|
|
66
|
-
};
|
|
67
|
-
export declare const SPECIAL_CHAINS: {
|
|
68
|
-
solana: {
|
|
69
|
-
name: string;
|
|
70
|
-
chainId: number;
|
|
71
|
-
explorer: string;
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
export declare const NATIVE_ADDRESS =
|
|
75
|
-
'0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE';
|
|
76
|
-
export declare const MIN_ABIS: {
|
|
77
|
-
name: string;
|
|
78
|
-
symbol: string;
|
|
79
|
-
decimals: string;
|
|
80
|
-
totalSupply: string;
|
|
81
|
-
approve: string;
|
|
82
|
-
allowance: string;
|
|
83
|
-
managementFeePercent: string;
|
|
84
|
-
};
|
|
85
|
-
export declare const ORACLE_CONTRACTS: {
|
|
86
|
-
1: string;
|
|
87
|
-
43114: string;
|
|
88
|
-
42161: string;
|
|
89
|
-
8453: string;
|
|
90
|
-
10: string;
|
|
91
|
-
};
|
|
92
|
-
export declare const NETWORKS: Record<IChainId, IChainObj>;
|
|
93
|
-
export declare const AVAILABLE_CHAINS: IChainId[];
|
|
94
|
-
export declare const FALLBACK_DECIMALS = 18;
|
|
95
|
-
export declare const FALLBACK_CHAINID = 42161;
|
|
96
|
-
export declare const FALLBACK_RPC_URLS: Record<number, string[]>;
|
package/lib/core/constants.js
DELETED
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FALLBACK_RPC_URLS = exports.FALLBACK_CHAINID = exports.FALLBACK_DECIMALS = exports.AVAILABLE_CHAINS = exports.NETWORKS = exports.ORACLE_CONTRACTS = exports.MIN_ABIS = exports.NATIVE_ADDRESS = exports.SPECIAL_CHAINS = exports.WEBSERVER_ENDPOINTS = exports.WEBSERVER_URL = exports.REQUEST_TIMEOUT_MS = void 0;
|
|
4
|
-
const ethers_1 = require("ethers");
|
|
5
|
-
exports.REQUEST_TIMEOUT_MS = 90000;
|
|
6
|
-
exports.WEBSERVER_URL = {
|
|
7
|
-
production: 'https://backend.fractalprotocol.org',
|
|
8
|
-
development: 'https://backend-dev.augustdigital.io',
|
|
9
|
-
localhost: 'http://127.0.0.1:8000',
|
|
10
|
-
qa: 'https://backend-qa.augustdigital.io',
|
|
11
|
-
public: 'https://api.augustdigital.io/api/v1',
|
|
12
|
-
};
|
|
13
|
-
exports.WEBSERVER_ENDPOINTS = {
|
|
14
|
-
default: {
|
|
15
|
-
hello: '/hello',
|
|
16
|
-
protected: '/protected',
|
|
17
|
-
},
|
|
18
|
-
auth: {
|
|
19
|
-
verify: '/auth/secret',
|
|
20
|
-
sign: '/auth/sign',
|
|
21
|
-
login: '/auth/login',
|
|
22
|
-
nonce: '/auth/nonce',
|
|
23
|
-
refresh: '/auth/refresh',
|
|
24
|
-
},
|
|
25
|
-
subaccount: {
|
|
26
|
-
rewards: (subaccount) => `/subaccount/${(0, ethers_1.getAddress)(subaccount)}/rewards`,
|
|
27
|
-
tokens: (subaccount) => `/subaccount/${(0, ethers_1.getAddress)(subaccount)}/tokens`,
|
|
28
|
-
twap: {
|
|
29
|
-
create: (subaccount) => `/subaccount/${(0, ethers_1.getAddress)(subaccount)}/twap`,
|
|
30
|
-
stop: (subaccount, id) => `/subaccount/${(0, ethers_1.getAddress)(subaccount)}/twap/${id}/stop`,
|
|
31
|
-
fills: (subaccount, id) => `/subaccount/${(0, ethers_1.getAddress)(subaccount)}/twap/${id}/fills`,
|
|
32
|
-
},
|
|
33
|
-
debank: (subaccount) => `/subaccount/${(0, ethers_1.getAddress)(subaccount)}/debank`,
|
|
34
|
-
health_factor: (subaccount) => `/subaccount/${subaccount}/health_factor`,
|
|
35
|
-
summary: (subaccount) => `/subaccount/${(0, ethers_1.getAddress)(subaccount)}/summary`,
|
|
36
|
-
batch: (subaccount) => `/subaccount/${(0, ethers_1.getAddress)(subaccount)}/tx_batcher_integrations`,
|
|
37
|
-
loans: (subaccount, side = 'BOTH') => `/subaccount/${subaccount}/loans?side=${side}`,
|
|
38
|
-
cefi: (subaccount) => `/subaccount/${subaccount}/cefi_position`,
|
|
39
|
-
otc_positions: (subaccount) => `/subaccount/${subaccount}/otc_positions`,
|
|
40
|
-
_: (subaccount) => `/subaccount/${(0, ethers_1.getAddress)(subaccount)}`,
|
|
41
|
-
},
|
|
42
|
-
users: {
|
|
43
|
-
get: '/users',
|
|
44
|
-
},
|
|
45
|
-
prices: (symbol) => `/prices/${symbol}`,
|
|
46
|
-
metrics: {
|
|
47
|
-
pnl: (subaccount, startTime, endTime) => `/metrics/pnl?subaccount_address=${(0, ethers_1.getAddress)(subaccount)}${startTime && endTime ? `&start=${startTime}&end=${endTime}` : ''}`,
|
|
48
|
-
},
|
|
49
|
-
public: {
|
|
50
|
-
integrations: {
|
|
51
|
-
morpho: {
|
|
52
|
-
apy: (subaccount, vaultAddress) => `/integrations/morpho/apy?subaccount_address=${(0, ethers_1.getAddress)(subaccount)}&vault_address=${(0, ethers_1.getAddress)(vaultAddress)}`,
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
tokenizedVault: {
|
|
56
|
-
loans: (vaultAddress, chainId, active) => `/upshift/lending_pool/loanbook?address=${vaultAddress}&chain=${chainId}&active=${active}`,
|
|
57
|
-
list: '/tokenized_vault',
|
|
58
|
-
byVaultAddress: (vaultAddress) => `/tokenized_vault/${vaultAddress}`,
|
|
59
|
-
historicalApy: (vaultAddress) => `/upshift/historical_apy/chart?vault_address=${vaultAddress}`,
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
};
|
|
63
|
-
exports.SPECIAL_CHAINS = {
|
|
64
|
-
solana: {
|
|
65
|
-
name: 'Solana',
|
|
66
|
-
chainId: -1,
|
|
67
|
-
explorer: 'https://solscan.io',
|
|
68
|
-
},
|
|
69
|
-
};
|
|
70
|
-
exports.NATIVE_ADDRESS = '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE';
|
|
71
|
-
exports.MIN_ABIS = {
|
|
72
|
-
name: 'function name() view returns (string)',
|
|
73
|
-
symbol: 'function symbol() view returns (string)',
|
|
74
|
-
decimals: 'function decimals() view returns (uint8)',
|
|
75
|
-
totalSupply: 'function totalSupply() view returns (uint256)',
|
|
76
|
-
approve: 'function approve(address spender, uint256 value) external returns (bool success)',
|
|
77
|
-
allowance: 'function allowance(address owner, address spender) external view returns (uint256)',
|
|
78
|
-
managementFeePercent: 'function managementFeePercent() view returns (uint256)',
|
|
79
|
-
};
|
|
80
|
-
exports.ORACLE_CONTRACTS = {
|
|
81
|
-
1: '0xA4E24C498D5B28517787D8407eFdcB157A4FbF50',
|
|
82
|
-
43114: '0x755537Cb5C76E06Bb492CF7c73567e252769c5f5',
|
|
83
|
-
42161: '0x24F7BC5CA6E4b53cF7311dE1f5bF8Ba528400E1e',
|
|
84
|
-
8453: '0x07858dF2D8D9aB1DCAAA8b743eb80C6250DFA947',
|
|
85
|
-
10: '0xe0049eBCCB23Cb81c3d4C9Fa175b32876b70C2AB',
|
|
86
|
-
};
|
|
87
|
-
exports.NETWORKS = {
|
|
88
|
-
1: {
|
|
89
|
-
name: 'Ethereum',
|
|
90
|
-
chainId: 1,
|
|
91
|
-
explorer: 'https://etherscan.io',
|
|
92
|
-
},
|
|
93
|
-
42161: {
|
|
94
|
-
name: 'Arbitrum One',
|
|
95
|
-
chainId: 42161,
|
|
96
|
-
explorer: 'https://arbiscan.io',
|
|
97
|
-
},
|
|
98
|
-
8453: {
|
|
99
|
-
name: 'Base',
|
|
100
|
-
chainId: 8453,
|
|
101
|
-
explorer: 'https://basescan.org',
|
|
102
|
-
},
|
|
103
|
-
43114: {
|
|
104
|
-
name: 'Avalanche',
|
|
105
|
-
chainId: 43114,
|
|
106
|
-
explorer: 'https://snowscan.xyz',
|
|
107
|
-
},
|
|
108
|
-
137: {
|
|
109
|
-
name: 'Polygon',
|
|
110
|
-
chainId: 137,
|
|
111
|
-
explorer: 'https://polygonscan.com',
|
|
112
|
-
},
|
|
113
|
-
56: {
|
|
114
|
-
name: 'BNB Smart Chain',
|
|
115
|
-
chainId: 56,
|
|
116
|
-
explorer: 'https://bscscan.com',
|
|
117
|
-
},
|
|
118
|
-
999: {
|
|
119
|
-
name: 'HyperEVM',
|
|
120
|
-
chainId: 999,
|
|
121
|
-
explorer: 'https://hyperevmscan.io',
|
|
122
|
-
},
|
|
123
|
-
130: {
|
|
124
|
-
name: 'Unichain',
|
|
125
|
-
chainId: 130,
|
|
126
|
-
explorer: 'https://uniscan.xyz',
|
|
127
|
-
},
|
|
128
|
-
31612: {
|
|
129
|
-
name: 'Mezo',
|
|
130
|
-
chainId: 31612,
|
|
131
|
-
explorer: 'https://explorer.mezo.org',
|
|
132
|
-
},
|
|
133
|
-
};
|
|
134
|
-
exports.AVAILABLE_CHAINS = Object.keys(exports.NETWORKS).map((c) => Number(c));
|
|
135
|
-
exports.FALLBACK_DECIMALS = 18;
|
|
136
|
-
exports.FALLBACK_CHAINID = 42161;
|
|
137
|
-
exports.FALLBACK_RPC_URLS = {
|
|
138
|
-
1: ['https://ethereum-rpc.publicnode.com'],
|
|
139
|
-
999: ['https://rpc.hyperliquid.xyz/evm'],
|
|
140
|
-
239: ['https://rpc.ankr.com/tac'],
|
|
141
|
-
80094: ['https://berachain-rpc.publicnode.com'],
|
|
142
|
-
59144: ['https://linea-rpc.publicnode.com'],
|
|
143
|
-
43111: ['https://rpc.hemi.network/rpc'],
|
|
144
|
-
146: ['https://rpc.soniclabs.com'],
|
|
145
|
-
534352: ['https://scroll.api.onfinality.io/public'],
|
|
146
|
-
10: ['https://optimism-mainnet.public.blastapi.io'],
|
|
147
|
-
};
|
|
148
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src.ts/core/constants.ts"],"names":[],"mappings":";;;AACA,mCAAoC;AAiBvB,QAAA,kBAAkB,GAAG,KAAK,CAAC;AAE3B,QAAA,aAAa,GAAG;IAC3B,UAAU,EAAE,qCAAqC;IACjD,WAAW,EAAE,sCAAsC;IACnD,SAAS,EAAE,uBAAuB;IAClC,EAAE,EAAE,qCAAqC;IACzC,MAAM,EAAE,qCAAqC;CAC9C,CAAC;AAEW,QAAA,mBAAmB,GAAG;IACjC,OAAO,EAAE;QACP,KAAK,EAAE,QAAQ;QACf,SAAS,EAAE,YAAY;KACxB;IACD,IAAI,EAAE;QACJ,MAAM,EAAE,cAAc;QACtB,IAAI,EAAE,YAAY;QAClB,KAAK,EAAE,aAAa;QACpB,KAAK,EAAE,aAAa;QACpB,OAAO,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,gBAAQ,CAAC,CAAC,GAAG,CACnE,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAa,CAC7B,CAAC;AAKW,QAAA,iBAAiB,GAAG,EAAE,CAAC;AAEvB,QAAA,gBAAgB,GAAG,KAAK,CAAC;AAEzB,QAAA,iBAAiB,GAA6B;IAEzD,CAAC,EAAE,CAAC,qCAAqC,CAAC;IAE1C,GAAG,EAAE,CAAC,iCAAiC,CAAC;IACxC,GAAG,EAAE,CAAC,0BAA0B,CAAC;IACjC,KAAK,EAAE,CAAC,sCAAsC,CAAC;IAC/C,KAAK,EAAE,CAAC,kCAAkC,CAAC;IAC3C,KAAK,EAAE,CAAC,8BAA8B,CAAC;IACvC,GAAG,EAAE,CAAC,2BAA2B,CAAC;IAClC,MAAM,EAAE,CAAC,yCAAyC,CAAC;IACnD,EAAE,EAAE,CAAC,6CAA6C,CAAC;CAIpD,CAAC"}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { IAddress, IPoolFunctions } from '../types';
|
|
2
|
-
export declare const VAULT_AgoraAUSD: IAddress;
|
|
3
|
-
export declare const SUBACCOUNT_CALEB: IAddress;
|
|
4
|
-
export declare const MULTI_ASSET_VAULTS: `0x${string}`[];
|
|
5
|
-
export declare const WRAPPER_ADAPTOR: {
|
|
6
|
-
43114: IAddress;
|
|
7
|
-
1: IAddress;
|
|
8
|
-
};
|
|
9
|
-
export declare const OLD_LENDING_POOLS: `0x${string}`[];
|
|
10
|
-
export declare const IDLE_CAPITAL_BORROWER_ADDRESS: `0x${string}`[];
|
|
11
|
-
export declare const VAULT_FUNCTIONS_V1: IPoolFunctions[];
|
|
12
|
-
export declare const VAULT_FUNCTIONS_V2: IPoolFunctions[];
|
|
13
|
-
export declare const VAULT_FUNCTIONS_V2_RECEIPT: IPoolFunctions[];
|
|
14
|
-
export declare const VAULT_FUNCTIONS_V2_WHITELISTED_ASSETS: IPoolFunctions[];
|
|
15
|
-
export declare const SUBGRAPH_VAULT_URLS: Record<VaultSymbols, string>;
|
|
16
|
-
type VaultSymbols =
|
|
17
|
-
| 'farmBOLD'
|
|
18
|
-
| 'sentUSCC'
|
|
19
|
-
| 'sentBTC'
|
|
20
|
-
| 'svUSDC'
|
|
21
|
-
| 'apUSDC'
|
|
22
|
-
| 'testWETHTSA'
|
|
23
|
-
| 'tacUSR'
|
|
24
|
-
| 'upINJUSDT'
|
|
25
|
-
| 'tac-tETH'
|
|
26
|
-
| 'upAUSD'
|
|
27
|
-
| 'TACcbBTC'
|
|
28
|
-
| 'xUpUSDC'
|
|
29
|
-
| 'uptBTC'
|
|
30
|
-
| 'gtETH'
|
|
31
|
-
| 'agETH'
|
|
32
|
-
| 'upUSDC'
|
|
33
|
-
| 'hgETH'
|
|
34
|
-
| 'upsSYLVA'
|
|
35
|
-
| 'hbBTC'
|
|
36
|
-
| 'hbHYPE'
|
|
37
|
-
| 'upAZT'
|
|
38
|
-
| 'sUSDT'
|
|
39
|
-
| 'upEDGE'
|
|
40
|
-
| 'coreUSDC'
|
|
41
|
-
| 'upcUSDO'
|
|
42
|
-
| 'shiftETH'
|
|
43
|
-
| 'upsUSDe'
|
|
44
|
-
| 'upLBTC'
|
|
45
|
-
| 'upAVAX'
|
|
46
|
-
| 'TACrsEth'
|
|
47
|
-
| 'mUSD'
|
|
48
|
-
| 'earnAUSD'
|
|
49
|
-
| 'AlpineUSDCFlagship'
|
|
50
|
-
| 'AlpineCoinshiftUSDC'
|
|
51
|
-
| 'upBTC'
|
|
52
|
-
| 'UpStrBTC'
|
|
53
|
-
| 'maxiUSR'
|
|
54
|
-
| 'upGAMMAusdc'
|
|
55
|
-
| 'xHYPE'
|
|
56
|
-
| 'wildUSD'
|
|
57
|
-
| 'AlpineBTC'
|
|
58
|
-
| 'preNUSD'
|
|
59
|
-
| 'upyzUSD'
|
|
60
|
-
| 'upNUSD'
|
|
61
|
-
| 'HLPe';
|
|
62
|
-
export declare const VAULT_SYMBOLS: Record<IAddress, VaultSymbols>;
|
|
63
|
-
export declare const VAULT_SYMBOLS_REVERSE: Record<VaultSymbols, IAddress>;
|
|
64
|
-
export {};
|