@augustdigital/sdk 4.15.5-alpha.0 → 4.17.0
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/abis/AddressResolver.d.ts +28 -40
- package/lib/abis/ChainlinkV3.d.ts +83 -109
- package/lib/abis/ERC20.d.ts +137 -191
- package/lib/abis/ERC20_Bytes32.d.ts +125 -178
- package/lib/abis/ERC4626.d.ts +341 -480
- package/lib/abis/ERC721.d.ts +213 -299
- package/lib/abis/FeeOracle.d.ts +112 -149
- package/lib/abis/LendingPool.d.ts +1293 -1702
- package/lib/abis/LendingPoolV2.d.ts +37 -42
- package/lib/abis/LendingPoolV3.d.ts +25 -29
- package/lib/abis/Loan.d.ts +768 -1007
- package/lib/abis/Multicall3.d.ts +30 -43
- package/lib/abis/PoolAdapter.d.ts +35 -46
- package/lib/abis/RewardDistributor.d.ts +33 -38
- package/lib/abis/SmartAccount.d.ts +16 -23
- package/lib/abis/TextResolver.d.ts +16 -23
- package/lib/abis/TokenizedVaultV2.d.ts +1292 -1684
- package/lib/abis/TokenizedVaultV2DepositWithPermit.d.ts +55 -62
- package/lib/abis/TokenizedVaultV2Receipt.d.ts +1463 -1934
- package/lib/abis/TokenizedVaultV2WhitelistedAssets.d.ts +250 -333
- package/lib/abis/UniversalResolverResolve.d.ts +69 -97
- package/lib/abis/UniversalSignatureValidator.d.ts +17 -23
- package/lib/abis/WrapperAdapter.d.ts +67 -89
- package/lib/adapters/evm/getters.d.ts +2 -8
- package/lib/adapters/evm/index.d.ts +15 -19
- package/lib/adapters/evm/utils.d.ts +2 -12
- package/lib/adapters/solana/constants.d.ts +17 -23
- package/lib/adapters/solana/getters.d.ts +1 -4
- package/lib/adapters/solana/idl/vault-idl.d.ts +279 -340
- package/lib/adapters/solana/index.d.ts +116 -212
- package/lib/adapters/solana/types.d.ts +50 -50
- package/lib/adapters/solana/utils.d.ts +78 -139
- package/lib/adapters/solana/vault.actions.d.ts +12 -37
- package/lib/adapters/sui/constants.d.ts +9 -9
- package/lib/adapters/sui/constants.js +8 -1
- package/lib/adapters/sui/constants.js.map +1 -1
- package/lib/adapters/sui/getters.d.ts +1 -3
- package/lib/adapters/sui/index.d.ts +21 -29
- package/lib/adapters/sui/transformer.d.ts +2 -6
- package/lib/adapters/sui/types.d.ts +56 -56
- package/lib/adapters/sui/utils.d.ts +1 -4
- package/lib/core/base.class.d.ts +23 -30
- package/lib/core/constants/adapters.d.ts +83 -111
- package/lib/core/constants/core.d.ts +69 -76
- package/lib/core/constants/vaults.d.ts +5 -63
- package/lib/core/constants/vaults.js +3 -3
- package/lib/core/constants/vaults.js.map +1 -1
- package/lib/core/constants/web3.d.ts +18 -19
- package/lib/core/fetcher.d.ts +17 -71
- package/lib/core/helpers/adapters.d.ts +2 -7
- package/lib/core/helpers/core.d.ts +8 -33
- package/lib/core/helpers/signer.d.ts +2 -6
- package/lib/core/helpers/vaults.d.ts +15 -38
- package/lib/core/helpers/web3.d.ts +19 -87
- package/lib/core/logger/index.d.ts +11 -11
- package/lib/core/logger/slack.d.ts +8 -9
- package/lib/index.d.ts +1 -61
- package/lib/main.d.ts +141 -158
- package/lib/modules/vaults/adapter.helpers.d.ts +38 -72
- package/lib/modules/vaults/fetcher.d.ts +69 -85
- package/lib/modules/vaults/getters.d.ts +100 -205
- package/lib/modules/vaults/index.d.ts +1 -6
- package/lib/modules/vaults/main.d.ts +131 -224
- package/lib/modules/vaults/main.js +8 -1
- package/lib/modules/vaults/main.js.map +1 -1
- package/lib/modules/vaults/read.actions.d.ts +2 -8
- package/lib/modules/vaults/utils.d.ts +19 -55
- package/lib/modules/vaults/write.actions.d.ts +14 -26
- package/lib/services/coingecko/fetcher.d.ts +1 -4
- package/lib/services/debank/fetcher.d.ts +1 -4
- package/lib/services/debank/utils.d.ts +27 -38
- package/lib/services/octavfi/fetcher.d.ts +1 -3
- package/lib/services/octavfi/types.d.ts +24 -24
- package/lib/services/octavfi/utils.d.ts +2 -6
- package/lib/services/subgraph/fetcher.d.ts +2 -12
- package/lib/services/subgraph/vaults.d.ts +9 -42
- package/lib/types/points.d.ts +26 -35
- package/lib/types/pools.d.ts +112 -149
- package/lib/types/staking.d.ts +25 -25
- package/lib/types/subgraph.d.ts +33 -33
- package/lib/types/vaults.d.ts +219 -232
- package/lib/types/web3.d.ts +9 -9
- package/lib/types/webserver.d.ts +448 -466
- package/package.json +1 -1
|
@@ -1,116 +1,88 @@
|
|
|
1
1
|
import { IVaultAdapterConfig, IAddress } from '../../types';
|
|
2
2
|
export declare const POOL_NAMES: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
readonly ETH_TREEHOUSE_GROWTH: "Treehouse Growth";
|
|
4
|
+
readonly AVAX_AVAX: "AVAX Strategy";
|
|
5
|
+
readonly ETH_KELP_TAC_RSETH: "Kelp TAC rsETH";
|
|
6
6
|
};
|
|
7
7
|
export declare const ADAPTER_ABIS: {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}
|
|
87
|
-
{
|
|
88
|
-
readonly inputs: readonly [
|
|
89
|
-
{
|
|
90
|
-
readonly internalType: 'address';
|
|
91
|
-
readonly name: 'asset';
|
|
92
|
-
readonly type: 'address';
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
readonly internalType: 'uint256';
|
|
96
|
-
readonly name: 'depositAmount';
|
|
97
|
-
readonly type: 'uint256';
|
|
98
|
-
},
|
|
99
|
-
];
|
|
100
|
-
readonly name: 'getRsETHAmountToMint';
|
|
101
|
-
readonly outputs: readonly [
|
|
102
|
-
{
|
|
103
|
-
readonly internalType: 'uint256';
|
|
104
|
-
readonly name: 'rsETHAmount';
|
|
105
|
-
readonly type: 'uint256';
|
|
106
|
-
},
|
|
107
|
-
];
|
|
108
|
-
readonly stateMutability: 'view';
|
|
109
|
-
readonly type: 'function';
|
|
110
|
-
},
|
|
111
|
-
];
|
|
8
|
+
readonly NATIVE_DEPOSIT_AVAX: readonly [{
|
|
9
|
+
readonly inputs: readonly [];
|
|
10
|
+
readonly name: "depositETH";
|
|
11
|
+
readonly outputs: readonly [];
|
|
12
|
+
readonly stateMutability: "payable";
|
|
13
|
+
readonly type: "function";
|
|
14
|
+
}];
|
|
15
|
+
readonly NATIVE_DEPOSIT_ETH_WITH_REFERRAL: readonly [{
|
|
16
|
+
readonly inputs: readonly [{
|
|
17
|
+
readonly internalType: "address";
|
|
18
|
+
readonly name: "referralId";
|
|
19
|
+
readonly type: "address";
|
|
20
|
+
}];
|
|
21
|
+
readonly name: "depositETH";
|
|
22
|
+
readonly outputs: readonly [];
|
|
23
|
+
readonly stateMutability: "payable";
|
|
24
|
+
readonly type: "function";
|
|
25
|
+
}, {
|
|
26
|
+
readonly inputs: readonly [{
|
|
27
|
+
readonly internalType: "uint256";
|
|
28
|
+
readonly name: "amount";
|
|
29
|
+
readonly type: "uint256";
|
|
30
|
+
}, {
|
|
31
|
+
readonly internalType: "address";
|
|
32
|
+
readonly name: "referralId";
|
|
33
|
+
readonly type: "address";
|
|
34
|
+
}];
|
|
35
|
+
readonly name: "depositWETH";
|
|
36
|
+
readonly outputs: readonly [];
|
|
37
|
+
readonly stateMutability: "nonpayable";
|
|
38
|
+
readonly type: "function";
|
|
39
|
+
}];
|
|
40
|
+
readonly KELP_RSETH_ADAPTER: readonly [{
|
|
41
|
+
readonly inputs: readonly [{
|
|
42
|
+
readonly internalType: "address";
|
|
43
|
+
readonly name: "referralId";
|
|
44
|
+
readonly type: "address";
|
|
45
|
+
}];
|
|
46
|
+
readonly name: "getRSETHWithETH";
|
|
47
|
+
readonly outputs: readonly [];
|
|
48
|
+
readonly stateMutability: "payable";
|
|
49
|
+
readonly type: "function";
|
|
50
|
+
}, {
|
|
51
|
+
readonly inputs: readonly [{
|
|
52
|
+
readonly internalType: "address";
|
|
53
|
+
readonly name: "asset";
|
|
54
|
+
readonly type: "address";
|
|
55
|
+
}, {
|
|
56
|
+
readonly internalType: "uint256";
|
|
57
|
+
readonly name: "depositAmount";
|
|
58
|
+
readonly type: "uint256";
|
|
59
|
+
}, {
|
|
60
|
+
readonly internalType: "string";
|
|
61
|
+
readonly name: "referralId";
|
|
62
|
+
readonly type: "string";
|
|
63
|
+
}];
|
|
64
|
+
readonly name: "getRSETHWithERC20";
|
|
65
|
+
readonly outputs: readonly [];
|
|
66
|
+
readonly stateMutability: "nonpayable";
|
|
67
|
+
readonly type: "function";
|
|
68
|
+
}, {
|
|
69
|
+
readonly inputs: readonly [{
|
|
70
|
+
readonly internalType: "address";
|
|
71
|
+
readonly name: "asset";
|
|
72
|
+
readonly type: "address";
|
|
73
|
+
}, {
|
|
74
|
+
readonly internalType: "uint256";
|
|
75
|
+
readonly name: "depositAmount";
|
|
76
|
+
readonly type: "uint256";
|
|
77
|
+
}];
|
|
78
|
+
readonly name: "getRsETHAmountToMint";
|
|
79
|
+
readonly outputs: readonly [{
|
|
80
|
+
readonly internalType: "uint256";
|
|
81
|
+
readonly name: "rsETHAmount";
|
|
82
|
+
readonly type: "uint256";
|
|
83
|
+
}];
|
|
84
|
+
readonly stateMutability: "view";
|
|
85
|
+
readonly type: "function";
|
|
86
|
+
}];
|
|
112
87
|
};
|
|
113
|
-
export declare const VAULT_ADAPTER_CONFIGS: Record<
|
|
114
|
-
IAddress,
|
|
115
|
-
IVaultAdapterConfig
|
|
116
|
-
>;
|
|
88
|
+
export declare const VAULT_ADAPTER_CONFIGS: Record<IAddress, IVaultAdapterConfig>;
|
|
@@ -1,89 +1,82 @@
|
|
|
1
1
|
import { IAddress } from '../../types';
|
|
2
2
|
export declare const REQUEST_TIMEOUT_MS = 90000;
|
|
3
|
-
export declare const PRICE_SERVER_URL =
|
|
3
|
+
export declare const PRICE_SERVER_URL = "https://prices.augustdigital.io";
|
|
4
4
|
export declare const WEBSERVER_URL: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
production: string;
|
|
6
|
+
development: string;
|
|
7
|
+
localhost: string;
|
|
8
|
+
qa: string;
|
|
9
|
+
public: string;
|
|
10
|
+
upshift: string;
|
|
11
11
|
};
|
|
12
12
|
export declare const WEBSERVER_ENDPOINTS: {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
};
|
|
17
|
-
auth: {
|
|
18
|
-
verify: string;
|
|
19
|
-
sign: string;
|
|
20
|
-
login: string;
|
|
21
|
-
nonce: string;
|
|
22
|
-
refresh: string;
|
|
23
|
-
};
|
|
24
|
-
subaccount: {
|
|
25
|
-
rewards: (subaccount: IAddress) => string;
|
|
26
|
-
tokens: (subaccount: IAddress) => string;
|
|
27
|
-
twap: {
|
|
28
|
-
create: (subaccount: IAddress) => string;
|
|
29
|
-
stop: (subaccount: IAddress, id: string) => string;
|
|
30
|
-
fills: (subaccount: IAddress, id: string) => string;
|
|
13
|
+
default: {
|
|
14
|
+
hello: string;
|
|
15
|
+
protected: string;
|
|
31
16
|
};
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
side?: 'BORROWER' | 'LENDER' | 'BOTH',
|
|
39
|
-
) => string;
|
|
40
|
-
cefi: (subaccount: IAddress) => string;
|
|
41
|
-
otc_positions: (subaccount: IAddress) => string;
|
|
42
|
-
_: (subaccount: IAddress) => string;
|
|
43
|
-
};
|
|
44
|
-
users: {
|
|
45
|
-
get: string;
|
|
46
|
-
};
|
|
47
|
-
prices: (symbol: string) => string;
|
|
48
|
-
metrics: {
|
|
49
|
-
pnl: (subaccount: IAddress, startTime?: string, endTime?: string) => string;
|
|
50
|
-
};
|
|
51
|
-
public: {
|
|
52
|
-
integrations: {
|
|
53
|
-
morpho: {
|
|
54
|
-
apy: (subaccount: IAddress, vaultAddress: IAddress) => string;
|
|
55
|
-
};
|
|
17
|
+
auth: {
|
|
18
|
+
verify: string;
|
|
19
|
+
sign: string;
|
|
20
|
+
login: string;
|
|
21
|
+
nonce: string;
|
|
22
|
+
refresh: string;
|
|
56
23
|
};
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
24
|
+
subaccount: {
|
|
25
|
+
rewards: (subaccount: IAddress) => string;
|
|
26
|
+
tokens: (subaccount: IAddress) => string;
|
|
27
|
+
twap: {
|
|
28
|
+
create: (subaccount: IAddress) => string;
|
|
29
|
+
stop: (subaccount: IAddress, id: string) => string;
|
|
30
|
+
fills: (subaccount: IAddress, id: string) => string;
|
|
31
|
+
};
|
|
32
|
+
debank: (subaccount: IAddress) => string;
|
|
33
|
+
health_factor: (subaccount: IAddress) => string;
|
|
34
|
+
summary: (subaccount: IAddress) => string;
|
|
35
|
+
batch: (subaccount: IAddress) => string;
|
|
36
|
+
loans: (subaccount: IAddress, side?: "BORROWER" | "LENDER" | "BOTH") => string;
|
|
37
|
+
cefi: (subaccount: IAddress) => string;
|
|
38
|
+
otc_positions: (subaccount: IAddress) => string;
|
|
39
|
+
_: (subaccount: IAddress) => string;
|
|
70
40
|
};
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
register: string;
|
|
74
|
-
leaderboard: string;
|
|
41
|
+
users: {
|
|
42
|
+
get: string;
|
|
75
43
|
};
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
44
|
+
prices: (symbol: string) => string;
|
|
45
|
+
metrics: {
|
|
46
|
+
pnl: (subaccount: IAddress, startTime?: string, endTime?: string) => string;
|
|
47
|
+
};
|
|
48
|
+
public: {
|
|
49
|
+
integrations: {
|
|
50
|
+
morpho: {
|
|
51
|
+
apy: (subaccount: IAddress, vaultAddress: IAddress) => string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
tokenizedVault: {
|
|
55
|
+
loans: (vaultAddress: IAddress, chainId: number, active: boolean) => string;
|
|
56
|
+
list: string;
|
|
57
|
+
byVaultAddress: (vaultAddress: IAddress) => string;
|
|
58
|
+
historicalApy: (vaultAddress: IAddress) => string;
|
|
59
|
+
historicalTimeseries: (vaultAddress: IAddress, nDays?: number) => string;
|
|
60
|
+
annualizedApy: (vaultAddress: IAddress) => string;
|
|
61
|
+
summary: (vaultAddress: IAddress) => string;
|
|
62
|
+
withdrawals: (chain: string, vaultAddress: IAddress) => string;
|
|
63
|
+
};
|
|
64
|
+
points: {
|
|
65
|
+
byUserAddress: (userAddress: IAddress) => string;
|
|
66
|
+
register: string;
|
|
67
|
+
leaderboard: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
upshift: {
|
|
71
|
+
vaults: {
|
|
72
|
+
metadata: string;
|
|
73
|
+
};
|
|
80
74
|
};
|
|
81
|
-
};
|
|
82
75
|
};
|
|
83
76
|
export declare const DEFAULT_FETCH_OPTIONS: {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
77
|
+
readonly method: "GET";
|
|
78
|
+
readonly headers: {
|
|
79
|
+
readonly Accept: "application/json";
|
|
80
|
+
readonly 'Content-Type': "application/json";
|
|
81
|
+
};
|
|
89
82
|
};
|
|
@@ -3,8 +3,8 @@ export declare const VAULT_AgoraAUSD: IAddress;
|
|
|
3
3
|
export declare const SUBACCOUNT_CALEB: IAddress;
|
|
4
4
|
export declare const MULTI_ASSET_VAULTS: `0x${string}`[];
|
|
5
5
|
export declare const WRAPPER_ADAPTOR: {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
43114: IAddress;
|
|
7
|
+
1: IAddress;
|
|
8
8
|
};
|
|
9
9
|
export declare const OLD_LENDING_POOLS: `0x${string}`[];
|
|
10
10
|
export declare const IDLE_CAPITAL_BORROWER_ADDRESS: `0x${string}`[];
|
|
@@ -12,67 +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 =
|
|
16
|
-
'https://api.goldsky.com/api/private/project_cm9g0xy3o4j6v01vd34r3hvv9/subgraphs';
|
|
15
|
+
export declare const GOLDSKY_BASE_URL = "https://api.goldsky.com/api/private/project_cm9g0xy3o4j6v01vd34r3hvv9/subgraphs";
|
|
17
16
|
export declare const SUBGRAPH_VAULT_URLS: Record<VaultSymbols, string>;
|
|
18
|
-
type VaultSymbols =
|
|
19
|
-
|
|
20
|
-
| 'pregrid'
|
|
21
|
-
| 'repouscc'
|
|
22
|
-
| 'earnxrp'
|
|
23
|
-
| 'tivkbtc'
|
|
24
|
-
| 'tivusdt0'
|
|
25
|
-
| 'supermon'
|
|
26
|
-
| 'earnmon'
|
|
27
|
-
| 'k3europ'
|
|
28
|
-
| 'wmon/ausd'
|
|
29
|
-
| 'wbtc/ausd'
|
|
30
|
-
| 'earnausd_monad'
|
|
31
|
-
| 'sausd'
|
|
32
|
-
| 'farmbold'
|
|
33
|
-
| 'sentuscc'
|
|
34
|
-
| 'sentbtc'
|
|
35
|
-
| 'svusdc'
|
|
36
|
-
| 'apusdc'
|
|
37
|
-
| 'testwethtsa'
|
|
38
|
-
| 'tacusr'
|
|
39
|
-
| 'upinjusdt'
|
|
40
|
-
| 'tac-teth'
|
|
41
|
-
| 'upausd'
|
|
42
|
-
| 'taccbbtc'
|
|
43
|
-
| 'xupusdc'
|
|
44
|
-
| 'uptbtc'
|
|
45
|
-
| 'gteth'
|
|
46
|
-
| 'ageth'
|
|
47
|
-
| 'upusdc'
|
|
48
|
-
| 'hgeth'
|
|
49
|
-
| 'upssylva'
|
|
50
|
-
| 'hbbtc'
|
|
51
|
-
| 'hbhype'
|
|
52
|
-
| 'upazt'
|
|
53
|
-
| 'susdt'
|
|
54
|
-
| 'upedge'
|
|
55
|
-
| 'coreusdc'
|
|
56
|
-
| 'upcusdo'
|
|
57
|
-
| 'shifteth'
|
|
58
|
-
| 'upsusde'
|
|
59
|
-
| 'uplbtc'
|
|
60
|
-
| 'upavax'
|
|
61
|
-
| 'tacrseth'
|
|
62
|
-
| 'musd'
|
|
63
|
-
| 'earnausd'
|
|
64
|
-
| 'alpineusdcflagship'
|
|
65
|
-
| 'alpinecoinshiftusdc'
|
|
66
|
-
| 'upbtc'
|
|
67
|
-
| 'upstrbtc'
|
|
68
|
-
| 'maxiusr'
|
|
69
|
-
| 'upgammausdc'
|
|
70
|
-
| 'xhype'
|
|
71
|
-
| 'wildusd'
|
|
72
|
-
| 'alpinebtc'
|
|
73
|
-
| 'prenusd'
|
|
74
|
-
| 'upyzusd'
|
|
75
|
-
| 'upnusd'
|
|
76
|
-
| 'hlpe';
|
|
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>;
|
|
77
19
|
export declare const VAULT_SYMBOLS_REVERSE: Record<VaultSymbols, IAddress>;
|
|
78
20
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VAULT_SYMBOLS_REVERSE = 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;
|
|
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');
|
|
@@ -118,7 +118,7 @@ exports.SUBGRAPH_VAULT_URLS = {
|
|
|
118
118
|
tivusdt0: `${exports.GOLDSKY_BASE_URL}/august-ink-TIVUSDT0/1.0.0/gn`,
|
|
119
119
|
sentusd: `${exports.GOLDSKY_BASE_URL}/august-eth-sentUSD/1.0.0/gn`,
|
|
120
120
|
};
|
|
121
|
-
|
|
121
|
+
exports.VAULT_SYMBOLS = {
|
|
122
122
|
'0x74aD2F789Ed583DBd141bbdafC673fE1F033718b': 'sentUSD',
|
|
123
123
|
'0x71BE0E419FbB98762C7b6D9e81EaFdA99363333c': 'TIVKBTC',
|
|
124
124
|
'0x727e37b4252B8a200D32445F2aFB741A308c55F0': 'TIVUSDT0',
|
|
@@ -179,5 +179,5 @@ const VAULT_SYMBOLS = {
|
|
|
179
179
|
'0x63C5d615e937697a80606788965E209414738820': 'sentUSCC',
|
|
180
180
|
'0xb2FdA773822E5a04c8A70348d66257DD5Cf442DB': 'farmBOLD',
|
|
181
181
|
};
|
|
182
|
-
exports.VAULT_SYMBOLS_REVERSE = Object.fromEntries(Object.entries(VAULT_SYMBOLS).map(([key, value]) => [value, key]));
|
|
182
|
+
exports.VAULT_SYMBOLS_REVERSE = Object.fromEntries(Object.entries(exports.VAULT_SYMBOLS).map(([key, value]) => [value, key]));
|
|
183
183
|
//# sourceMappingURL=vaults.js.map
|
|
@@ -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,EAAC,4CAA4C,CAAa;IAC3E,CAAC,EAAE,IAAA,mBAAU,EAAC,4CAA4C,CAAa;CACxE,CAAC;AAMW,QAAA,iBAAiB,GAAG;IAC/B,IAAA,mBAAU,EAAC,4CAA4C,CA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AAQ;IACtD,4CAA4C,EAAE,SAAS;IACvD,4CAA4C,EAAE,UAAU;IACxD,4CAA4C,EAAE,UAAU;CACzD,CAAC;AAMW,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"}
|
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
import { IChainId, IChainObj } from '../../types';
|
|
2
2
|
export declare const SPECIAL_CHAINS: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
solana: {
|
|
4
|
+
name: string;
|
|
5
|
+
chainId: number;
|
|
6
|
+
explorer: string;
|
|
7
|
+
};
|
|
8
8
|
};
|
|
9
|
-
export declare const NATIVE_ADDRESS =
|
|
10
|
-
'0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE';
|
|
9
|
+
export declare const NATIVE_ADDRESS = "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE";
|
|
11
10
|
export declare const MIN_ABIS: {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
name: string;
|
|
12
|
+
symbol: string;
|
|
13
|
+
decimals: string;
|
|
14
|
+
totalSupply: string;
|
|
15
|
+
approve: string;
|
|
16
|
+
allowance: string;
|
|
17
|
+
managementFeePercent: string;
|
|
19
18
|
};
|
|
20
19
|
export declare const ORACLE_CONTRACTS: {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
1: string;
|
|
21
|
+
43114: string;
|
|
22
|
+
42161: string;
|
|
23
|
+
8453: string;
|
|
24
|
+
10: string;
|
|
26
25
|
};
|
|
27
26
|
export declare const NETWORKS: Record<IChainId, IChainObj>;
|
|
28
27
|
export declare const AVAILABLE_CHAINS: IChainId[];
|
package/lib/core/fetcher.d.ts
CHANGED
|
@@ -1,81 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
IAddress,
|
|
3
|
-
IContractRunner,
|
|
4
|
-
IHistoricalTimeseriesResponse,
|
|
5
|
-
ITokenizedVault,
|
|
6
|
-
IWSMonitorHeaders,
|
|
7
|
-
IWSVaultLoan,
|
|
8
|
-
} from '../types';
|
|
1
|
+
import { IAddress, IContractRunner, IHistoricalTimeseriesResponse, ITokenizedVault, IWSMonitorHeaders, IWSVaultLoan } from '../types';
|
|
9
2
|
import { LRUCache } from 'lru-cache';
|
|
10
3
|
import { WEBSERVER_URL } from './constants/core';
|
|
11
4
|
type IFetchAugustMethods = 'get' | 'post' | 'put';
|
|
12
5
|
type IFetchAugustOptions = {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
6
|
+
method?: IFetchAugustMethods;
|
|
7
|
+
headers?: Record<string, string>;
|
|
8
|
+
data?: any;
|
|
9
|
+
server?: keyof typeof WEBSERVER_URL;
|
|
10
|
+
override?: boolean;
|
|
18
11
|
};
|
|
19
12
|
export declare const CACHE: LRUCache<string, any, unknown>;
|
|
20
13
|
export declare const getSafeCache: <T>(key: string) => Promise<T | null>;
|
|
21
14
|
export declare const setSafeCache: <T>(key: string, value: T) => Promise<void>;
|
|
22
|
-
export declare function fetchAugustWithKey(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
options?: IFetchAugustOptions,
|
|
26
|
-
): Promise<Response>;
|
|
27
|
-
export declare function fetchAugustPublic(
|
|
28
|
-
relativeUrl: string,
|
|
29
|
-
options?: IFetchAugustOptions,
|
|
30
|
-
): Promise<Response>;
|
|
31
|
-
export declare function fetchAugustWithBearer(
|
|
32
|
-
bearerToken: string,
|
|
33
|
-
relativeUrl: string,
|
|
34
|
-
options?: IFetchAugustOptions,
|
|
35
|
-
): Promise<Response>;
|
|
15
|
+
export declare function fetchAugustWithKey(apiKey: string, relativeUrl: string, options?: IFetchAugustOptions): Promise<Response>;
|
|
16
|
+
export declare function fetchAugustPublic(relativeUrl: string, options?: IFetchAugustOptions): Promise<Response>;
|
|
17
|
+
export declare function fetchAugustWithBearer(bearerToken: string, relativeUrl: string, options?: IFetchAugustOptions): Promise<Response>;
|
|
36
18
|
export declare function isRetryableError(error: Error): boolean;
|
|
37
|
-
export declare function withRetry<T>(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
): Promise<
|
|
43
|
-
export declare function
|
|
44
|
-
|
|
45
|
-
headers?: IWSMonitorHeaders,
|
|
46
|
-
loadSubaccounts?: boolean,
|
|
47
|
-
loadSnapshots?: boolean,
|
|
48
|
-
): Promise<ITokenizedVault[]>;
|
|
49
|
-
export declare function fetchTokenizedVaults(
|
|
50
|
-
pool?: IAddress,
|
|
51
|
-
headers?: IWSMonitorHeaders,
|
|
52
|
-
loadSubaccounts?: boolean,
|
|
53
|
-
loadSnapshots?: boolean,
|
|
54
|
-
): Promise<ITokenizedVault[]>;
|
|
55
|
-
export declare function fetchTokenPrice(
|
|
56
|
-
symbol: string,
|
|
57
|
-
provider?: IContractRunner,
|
|
58
|
-
coinGeckoKey?: string,
|
|
59
|
-
headers?: IWSMonitorHeaders,
|
|
60
|
-
): Promise<any>;
|
|
61
|
-
export declare function fetchTokenPriceByAddress(
|
|
62
|
-
address: IAddress,
|
|
63
|
-
chainId: number,
|
|
64
|
-
headers?: IWSMonitorHeaders,
|
|
65
|
-
): Promise<number>;
|
|
66
|
-
export declare function fetchTokenizedVaultLoans(
|
|
67
|
-
pool: IAddress,
|
|
68
|
-
chainId: number,
|
|
69
|
-
headers?: IWSMonitorHeaders,
|
|
70
|
-
): Promise<IWSVaultLoan[]>;
|
|
71
|
-
export declare function fetchVaultHistoricalTimeseries(
|
|
72
|
-
vaultAddress: IAddress,
|
|
73
|
-
nDays?: number,
|
|
74
|
-
headers?: IWSMonitorHeaders,
|
|
75
|
-
): Promise<IHistoricalTimeseriesResponse>;
|
|
76
|
-
export declare function promiseSettle<T>(
|
|
77
|
-
promises: Promise<T>[],
|
|
78
|
-
maxRetries?: number,
|
|
79
|
-
baseDelay?: number,
|
|
80
|
-
): Promise<T[]>;
|
|
19
|
+
export declare function withRetry<T>(fn: () => Promise<T>, maxRetries?: number, baseDelay?: number, shouldRetry?: (error: Error) => boolean): Promise<T>;
|
|
20
|
+
export declare function fetchTokenizedVault(pool: IAddress, headers?: IWSMonitorHeaders, loadSubaccounts?: boolean, loadSnapshots?: boolean): Promise<ITokenizedVault[]>;
|
|
21
|
+
export declare function fetchTokenizedVaults(pool?: IAddress, headers?: IWSMonitorHeaders, loadSubaccounts?: boolean, loadSnapshots?: boolean): Promise<ITokenizedVault[]>;
|
|
22
|
+
export declare function fetchTokenPrice(symbol: string, provider?: IContractRunner, coinGeckoKey?: string, headers?: IWSMonitorHeaders): Promise<any>;
|
|
23
|
+
export declare function fetchTokenPriceByAddress(address: IAddress, chainId: number, headers?: IWSMonitorHeaders): Promise<number>;
|
|
24
|
+
export declare function fetchTokenizedVaultLoans(pool: IAddress, chainId: number, headers?: IWSMonitorHeaders): Promise<IWSVaultLoan[]>;
|
|
25
|
+
export declare function fetchVaultHistoricalTimeseries(vaultAddress: IAddress, nDays?: number, headers?: IWSMonitorHeaders): Promise<IHistoricalTimeseriesResponse>;
|
|
26
|
+
export declare function promiseSettle<T>(promises: Promise<T>[], maxRetries?: number, baseDelay?: number): Promise<T[]>;
|
|
81
27
|
export {};
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import { IAddress, IVaultAdapterConfig } from '../../types';
|
|
2
|
-
export declare function getVaultAdapterConfig(
|
|
3
|
-
vaultAddress: IAddress,
|
|
4
|
-
): IVaultAdapterConfig | undefined;
|
|
2
|
+
export declare function getVaultAdapterConfig(vaultAddress: IAddress): IVaultAdapterConfig | undefined;
|
|
5
3
|
export declare function vaultHasAdapter(vaultAddress: IAddress): boolean;
|
|
6
|
-
export declare function getVaultDepositTokens(
|
|
7
|
-
vaultAddress: IAddress,
|
|
8
|
-
underlyingToken: IAddress,
|
|
9
|
-
): IAddress[];
|
|
4
|
+
export declare function getVaultDepositTokens(vaultAddress: IAddress, underlyingToken: IAddress): IAddress[];
|