@augustdigital/sdk 4.0.9-alpha → 4.0.10-beta
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/README.md +169 -11
- package/lib/abis/AddressResolver.d.ts +28 -0
- package/lib/abis/AddressResolver.js +23 -0
- package/lib/abis/AddressResolver.js.map +1 -0
- package/lib/abis/ChainlinkV3.d.ts +87 -0
- package/lib/abis/ChainlinkV3.js +117 -0
- package/lib/abis/ChainlinkV3.js.map +1 -0
- package/lib/abis/ERC20.d.ts +168 -0
- package/lib/abis/ERC20.js +226 -0
- package/lib/abis/ERC20.js.map +1 -0
- package/lib/abis/ERC20_Bytes32.d.ts +135 -0
- package/lib/abis/ERC20_Bytes32.js +192 -0
- package/lib/abis/ERC20_Bytes32.js.map +1 -0
- package/lib/abis/ERC4626.d.ts +363 -0
- package/lib/abis/ERC4626.js +506 -0
- package/lib/abis/ERC4626.js.map +1 -0
- package/lib/abis/ERC721.d.ts +230 -0
- package/lib/abis/ERC721.js +320 -0
- package/lib/abis/ERC721.js.map +1 -0
- package/lib/abis/FeeOracle.d.ts +120 -0
- package/lib/abis/FeeOracle.js +161 -0
- package/lib/abis/FeeOracle.js.map +1 -0
- package/lib/abis/LendingPool.d.ts +1393 -0
- package/lib/abis/LendingPool.js +1806 -0
- package/lib/abis/LendingPool.js.map +1 -0
- package/lib/abis/LendingPoolV2.d.ts +55 -0
- package/lib/abis/LendingPoolV2.js +1832 -0
- package/lib/abis/LendingPoolV2.js.map +1 -0
- package/lib/abis/LendingPoolV3.d.ts +35 -0
- package/lib/abis/LendingPoolV3.js +1160 -0
- package/lib/abis/LendingPoolV3.js.map +1 -0
- package/lib/abis/Loan.d.ts +837 -0
- package/lib/abis/Loan.js +1080 -0
- package/lib/abis/Loan.js.map +1 -0
- package/lib/abis/Multicall3.d.ts +30 -0
- package/lib/abis/Multicall3.js +94 -0
- package/lib/abis/Multicall3.js.map +1 -0
- package/lib/abis/PoolAdapter.d.ts +76 -0
- package/lib/abis/PoolAdapter.js +412 -0
- package/lib/abis/PoolAdapter.js.map +1 -0
- package/lib/abis/RewardDistributor.d.ts +46 -0
- package/lib/abis/RewardDistributor.js +352 -0
- package/lib/abis/RewardDistributor.js.map +1 -0
- package/lib/abis/SmartAccount.d.ts +16 -0
- package/lib/abis/SmartAccount.js +16 -0
- package/lib/abis/SmartAccount.js.map +1 -0
- package/lib/abis/TextResolver.d.ts +16 -0
- package/lib/abis/TextResolver.js +16 -0
- package/lib/abis/TextResolver.js.map +1 -0
- package/lib/abis/TokenizedVaultV2.d.ts +1354 -0
- package/lib/abis/TokenizedVaultV2.js +1028 -0
- package/lib/abis/TokenizedVaultV2.js.map +1 -0
- package/lib/abis/TokenizedVaultV2Receipt.d.ts +1568 -0
- package/lib/abis/TokenizedVaultV2Receipt.js +1061 -0
- package/lib/abis/TokenizedVaultV2Receipt.js.map +1 -0
- package/lib/abis/TokenizedVaultV2WhitelistedAssets.d.ts +274 -0
- package/lib/abis/TokenizedVaultV2WhitelistedAssets.js +167 -0
- package/lib/abis/TokenizedVaultV2WhitelistedAssets.js.map +1 -0
- package/lib/abis/UniversalResolverResolve.d.ts +69 -0
- package/lib/abis/UniversalResolverResolve.js +35 -0
- package/lib/abis/UniversalResolverResolve.js.map +1 -0
- package/lib/abis/UniversalSignatureValidator.d.ts +17 -0
- package/lib/abis/UniversalSignatureValidator.js +27 -0
- package/lib/abis/UniversalSignatureValidator.js.map +1 -0
- package/lib/abis/WrapperAdapter.d.ts +60 -0
- package/lib/abis/WrapperAdapter.js +150 -0
- package/lib/abis/WrapperAdapter.js.map +1 -0
- package/lib/abis/index.d.ts +22 -0
- package/lib/abis/index.js +39 -0
- package/lib/abis/index.js.map +1 -0
- package/lib/adapters/evm/getters.d.ts +4 -0
- package/lib/adapters/evm/getters.js +152 -0
- package/lib/adapters/evm/getters.js.map +1 -0
- package/lib/adapters/evm/index.d.ts +19 -0
- package/lib/adapters/evm/index.js +54 -0
- package/lib/adapters/evm/index.js.map +1 -0
- package/lib/adapters/evm/utils.d.ts +2 -0
- package/lib/adapters/evm/utils.js +43 -0
- package/lib/adapters/evm/utils.js.map +1 -0
- package/lib/adapters/solana/constants.d.ts +25 -0
- package/lib/adapters/solana/constants.js +32 -0
- package/lib/adapters/solana/constants.js.map +1 -0
- package/lib/adapters/solana/getters.d.ts +3 -0
- package/lib/adapters/solana/getters.js +133 -0
- package/lib/adapters/solana/getters.js.map +1 -0
- package/lib/adapters/solana/idl/vault-idl.d.ts +338 -0
- package/lib/adapters/solana/idl/vault-idl.js +1075 -0
- package/lib/adapters/solana/idl/vault-idl.js.map +1 -0
- package/lib/adapters/solana/index.d.ts +160 -0
- package/lib/adapters/solana/index.js +174 -0
- package/lib/adapters/solana/index.js.map +1 -0
- package/lib/adapters/solana/types.d.ts +58 -0
- package/lib/adapters/solana/types.js +3 -0
- package/lib/adapters/solana/types.js.map +1 -0
- package/lib/adapters/solana/utils.d.ts +116 -0
- package/lib/adapters/solana/utils.js +435 -0
- package/lib/adapters/solana/utils.js.map +1 -0
- package/lib/adapters/solana/vault.actions.d.ts +18 -0
- package/lib/adapters/solana/vault.actions.js +235 -0
- package/lib/adapters/solana/vault.actions.js.map +1 -0
- package/lib/adapters/sui/constants.d.ts +6 -0
- package/lib/adapters/sui/constants.js +10 -0
- package/lib/adapters/sui/constants.js.map +1 -0
- package/lib/adapters/sui/getters.d.ts +3 -0
- package/lib/adapters/sui/getters.js +53 -0
- package/lib/adapters/sui/getters.js.map +1 -0
- package/lib/adapters/sui/index.d.ts +30 -0
- package/lib/adapters/sui/index.js +84 -0
- package/lib/adapters/sui/index.js.map +1 -0
- package/lib/adapters/sui/transformer.d.ts +4 -0
- package/lib/adapters/sui/transformer.js +92 -0
- package/lib/adapters/sui/transformer.js.map +1 -0
- package/lib/adapters/sui/types.d.ts +62 -0
- package/lib/adapters/sui/types.js +3 -0
- package/lib/adapters/sui/types.js.map +1 -0
- package/lib/adapters/sui/utils.d.ts +4 -0
- package/lib/adapters/sui/utils.js +28 -0
- package/lib/adapters/sui/utils.js.map +1 -0
- package/lib/core/auth/index.d.ts +1 -0
- package/lib/core/auth/index.js +18 -0
- package/lib/core/auth/index.js.map +1 -0
- package/lib/core/auth/verify.d.ts +2 -0
- package/lib/core/auth/verify.js +21 -0
- package/lib/core/auth/verify.js.map +1 -0
- package/lib/core/base.class.d.ts +33 -0
- package/lib/core/base.class.js +66 -0
- package/lib/core/base.class.js.map +1 -0
- package/lib/core/constants.core.d.ts +72 -0
- package/lib/core/constants.core.js +76 -0
- package/lib/core/constants.core.js.map +1 -0
- package/lib/core/constants.d.ts +88 -0
- package/lib/core/constants.js +148 -0
- package/lib/core/constants.js.map +1 -0
- package/lib/core/constants.vaults.d.ts +19 -0
- package/lib/core/constants.vaults.js +130 -0
- package/lib/core/constants.vaults.js.map +1 -0
- package/lib/core/constants.web3.d.ts +30 -0
- package/lib/core/constants.web3.js +89 -0
- package/lib/core/constants.web3.js.map +1 -0
- package/lib/core/core.helpers.d.ts +23 -0
- package/lib/core/core.helpers.js +210 -0
- package/lib/core/core.helpers.js.map +1 -0
- package/lib/core/fetcher.d.ts +22 -0
- package/lib/core/fetcher.js +372 -0
- package/lib/core/fetcher.js.map +1 -0
- package/lib/core/helpers.core.d.ts +23 -0
- package/lib/core/helpers.core.js +210 -0
- package/lib/core/helpers.core.js.map +1 -0
- package/lib/core/helpers.vaults.d.ts +15 -0
- package/lib/core/helpers.vaults.js +123 -0
- package/lib/core/helpers.vaults.js.map +1 -0
- package/lib/core/helpers.web3.d.ts +29 -0
- package/lib/core/helpers.web3.js +365 -0
- package/lib/core/helpers.web3.js.map +1 -0
- package/lib/core/index.d.ts +10 -0
- package/lib/core/index.js +27 -0
- package/lib/core/index.js.map +1 -0
- package/lib/core/logger/index.d.ts +21 -0
- package/lib/core/logger/index.js +80 -0
- package/lib/core/logger/index.js.map +1 -0
- package/lib/core/logger/slack.d.ts +12 -0
- package/lib/core/logger/slack.js +49 -0
- package/lib/core/logger/slack.js.map +1 -0
- package/lib/core/read.actions.d.ts +3 -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 +29 -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 +9 -0
- package/lib/core/write.actions.js +51 -0
- package/lib/core/write.actions.js.map +1 -0
- package/lib/index.d.ts +6 -6
- package/lib/index.js +14 -7
- package/lib/index.js.map +1 -1
- package/lib/main.d.ts +88 -14
- package/lib/main.js +54 -17
- package/lib/main.js.map +1 -1
- package/lib/modules/vaults/constants.d.ts +65 -0
- package/lib/modules/vaults/constants.js +194 -0
- package/lib/modules/vaults/constants.js.map +1 -0
- package/lib/modules/vaults/fetcher.d.ts +101 -0
- package/lib/modules/vaults/fetcher.js +257 -0
- package/lib/modules/vaults/fetcher.js.map +1 -0
- package/lib/modules/vaults/getters.d.ts +67 -0
- package/lib/modules/vaults/getters.js +932 -0
- package/lib/modules/vaults/getters.js.map +1 -0
- package/lib/modules/vaults/index.d.ts +3 -0
- package/lib/modules/vaults/index.js +20 -0
- package/lib/modules/vaults/index.js.map +1 -0
- package/lib/modules/vaults/main.d.ts +100 -0
- package/lib/modules/vaults/main.js +532 -0
- package/lib/modules/vaults/main.js.map +1 -0
- package/lib/modules/vaults/read.actions.d.ts +3 -0
- package/lib/modules/vaults/read.actions.js +39 -0
- package/lib/modules/vaults/read.actions.js.map +1 -0
- package/lib/modules/vaults/utils.d.ts +12 -0
- package/lib/modules/vaults/utils.js +170 -0
- package/lib/modules/vaults/utils.js.map +1 -0
- package/lib/modules/vaults/vault.actions.d.ts +10 -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.d.ts +17 -0
- package/lib/modules/vaults/write.actions.js +143 -0
- package/lib/modules/vaults/write.actions.js.map +1 -0
- package/lib/services/coingecko/fetcher.d.ts +1 -0
- package/lib/services/coingecko/fetcher.js +36 -0
- package/lib/services/coingecko/fetcher.js.map +1 -0
- package/lib/services/coingecko/index.d.ts +2 -0
- package/lib/services/coingecko/index.js +19 -0
- package/lib/services/coingecko/index.js.map +1 -0
- package/lib/services/coingecko/utils.d.ts +1 -0
- package/lib/services/coingecko/utils.js +24 -0
- package/lib/services/coingecko/utils.js.map +1 -0
- package/lib/services/debank/fetcher.d.ts +2 -0
- package/lib/services/debank/fetcher.js +16 -0
- package/lib/services/debank/fetcher.js.map +1 -0
- package/lib/services/debank/index.d.ts +2 -0
- package/lib/services/debank/index.js +19 -0
- package/lib/services/debank/index.js.map +1 -0
- package/lib/services/debank/utils.d.ts +32 -0
- package/lib/services/debank/utils.js +229 -0
- package/lib/services/debank/utils.js.map +1 -0
- package/lib/services/subgraph/fetcher.d.ts +2 -0
- package/lib/services/subgraph/fetcher.js +59 -0
- package/lib/services/subgraph/fetcher.js.map +1 -0
- package/lib/services/subgraph/index.d.ts +2 -0
- package/lib/services/subgraph/index.js +19 -0
- package/lib/services/subgraph/index.js.map +1 -0
- package/lib/services/subgraph/vaults.d.ts +10 -0
- package/lib/services/subgraph/vaults.js +471 -0
- package/lib/services/subgraph/vaults.js.map +1 -0
- package/lib/types/index.d.ts +8 -0
- package/lib/types/index.js +24 -0
- package/lib/types/index.js.map +1 -0
- package/lib/types/pools.d.ts +141 -0
- package/lib/types/pools.js +3 -0
- package/lib/types/pools.js.map +1 -0
- package/lib/types/staking.d.ts +28 -0
- package/lib/types/staking.js +3 -0
- package/lib/types/staking.js.map +1 -0
- package/lib/types/subgraph.d.ts +45 -0
- package/lib/types/subgraph.js +3 -0
- package/lib/types/subgraph.js.map +1 -0
- package/lib/types/user.d.ts +1 -0
- package/lib/types/user.js +3 -0
- package/lib/types/user.js.map +1 -0
- package/lib/types/vaults.d.ts +171 -0
- package/lib/types/vaults.js +3 -0
- package/lib/types/vaults.js.map +1 -0
- package/lib/types/web3.d.ts +24 -0
- package/lib/types/web3.js +3 -0
- package/lib/types/web3.js.map +1 -0
- package/lib/types/webserver.d.ts +489 -0
- package/lib/types/webserver.js +3 -0
- package/lib/types/webserver.js.map +1 -0
- package/lib/verify.js +25 -12
- package/lib/verify.js.map +1 -1
- package/package.json +16 -10
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { IAddress, INormalizedNumber } from './web3';
|
|
2
|
+
export type IActiveStakingPosition = {
|
|
3
|
+
stakingToken: {
|
|
4
|
+
decimals: number;
|
|
5
|
+
symbol: string;
|
|
6
|
+
address: IAddress;
|
|
7
|
+
chain: number;
|
|
8
|
+
totalStaked: INormalizedNumber;
|
|
9
|
+
usd: INormalizedNumber;
|
|
10
|
+
totalSupply?: INormalizedNumber;
|
|
11
|
+
name: string;
|
|
12
|
+
};
|
|
13
|
+
rewardToken: {
|
|
14
|
+
decimals: number;
|
|
15
|
+
symbol: string;
|
|
16
|
+
address: IAddress;
|
|
17
|
+
chain: number;
|
|
18
|
+
redeemable: INormalizedNumber;
|
|
19
|
+
usd: INormalizedNumber;
|
|
20
|
+
name: string;
|
|
21
|
+
};
|
|
22
|
+
rewardDistributor: IAddress;
|
|
23
|
+
rewardPerSecond: INormalizedNumber;
|
|
24
|
+
apy?: number;
|
|
25
|
+
maxApy?: number;
|
|
26
|
+
chainId: number;
|
|
27
|
+
id: string;
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"staking.js","sourceRoot":"","sources":["../../src.ts/types/staking.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { IAddress } from './web3';
|
|
2
|
+
export interface ISubgraphBase {
|
|
3
|
+
id: string;
|
|
4
|
+
contractId_: IAddress;
|
|
5
|
+
timestamp_: string;
|
|
6
|
+
transactionHash_: IAddress;
|
|
7
|
+
block_number: string;
|
|
8
|
+
}
|
|
9
|
+
export interface ISubgraphUserHistoryItem extends ISubgraphBase {
|
|
10
|
+
address: IAddress;
|
|
11
|
+
amount: string;
|
|
12
|
+
type: 'withdraw-request' | 'deposit' | 'withdraw-processed';
|
|
13
|
+
decimals?: number;
|
|
14
|
+
}
|
|
15
|
+
export interface ISubgraphWithdrawProccessed extends ISubgraphBase {
|
|
16
|
+
processedOn: string;
|
|
17
|
+
requestedOn: string;
|
|
18
|
+
receiverAddr: IAddress;
|
|
19
|
+
assetsAmount: string;
|
|
20
|
+
}
|
|
21
|
+
export interface ISubgraphDeposit extends ISubgraphBase {
|
|
22
|
+
assets: string;
|
|
23
|
+
sender: IAddress;
|
|
24
|
+
shares: string;
|
|
25
|
+
owner: IAddress;
|
|
26
|
+
}
|
|
27
|
+
export interface ISubgraphWithdrawRequest extends ISubgraphBase {
|
|
28
|
+
day: string;
|
|
29
|
+
month: string;
|
|
30
|
+
year: string;
|
|
31
|
+
shares: string;
|
|
32
|
+
assets: string;
|
|
33
|
+
receiverAddr: IAddress;
|
|
34
|
+
ownerAddr: IAddress;
|
|
35
|
+
}
|
|
36
|
+
export interface ISubgraphWithdraw extends ISubgraphBase {
|
|
37
|
+
receiver: IAddress;
|
|
38
|
+
sender: string;
|
|
39
|
+
assets: string;
|
|
40
|
+
}
|
|
41
|
+
export interface ISubgraphTransfer extends ISubgraphBase {
|
|
42
|
+
from: IAddress;
|
|
43
|
+
to: IAddress;
|
|
44
|
+
value: string;
|
|
45
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subgraph.js","sourceRoot":"","sources":["../../src.ts/types/subgraph.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type IUserRoles = 'client' | 'admin' | 'dev';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../src.ts/types/user.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { IAddress, INormalizedNumber } from './web3';
|
|
2
|
+
import { IDebankProtocolExposure, IDebankTokenExposure, IOTCPosition, IWSSubaccountCefi, IWSSubaccountLoan, IWSTokenEntry } from './webserver';
|
|
3
|
+
export interface IVaultLoan {
|
|
4
|
+
vault: IAddress;
|
|
5
|
+
address: IAddress;
|
|
6
|
+
lender: IAddress;
|
|
7
|
+
borrower: IAddress;
|
|
8
|
+
state: string;
|
|
9
|
+
totalRepaid: number;
|
|
10
|
+
principalToken: IWSTokenEntry;
|
|
11
|
+
principalAmount: number;
|
|
12
|
+
interestAmount: number;
|
|
13
|
+
upcomingPayment: {
|
|
14
|
+
amount: number;
|
|
15
|
+
dueDate: string;
|
|
16
|
+
};
|
|
17
|
+
apr: number;
|
|
18
|
+
initialPrincipalAmount: number;
|
|
19
|
+
deployedDate: string;
|
|
20
|
+
paymentInterval: number;
|
|
21
|
+
isIdleCapital: boolean;
|
|
22
|
+
allocation: number;
|
|
23
|
+
}
|
|
24
|
+
export type IVaultUserHistoryItem = {
|
|
25
|
+
timestamp: number;
|
|
26
|
+
address: IAddress;
|
|
27
|
+
amount: INormalizedNumber;
|
|
28
|
+
pool: IAddress;
|
|
29
|
+
chainId: number;
|
|
30
|
+
type: 'withdraw-request' | 'deposit' | 'withdraw-processed';
|
|
31
|
+
transactionHash: IAddress;
|
|
32
|
+
};
|
|
33
|
+
export type IVaultRewards = {
|
|
34
|
+
points: string;
|
|
35
|
+
multiplier: number;
|
|
36
|
+
multipliers: {
|
|
37
|
+
value: number;
|
|
38
|
+
timestamp: number;
|
|
39
|
+
}[];
|
|
40
|
+
additionalPoints: string[];
|
|
41
|
+
};
|
|
42
|
+
export type IVaultExposureItem = {
|
|
43
|
+
amount: number;
|
|
44
|
+
chain: string;
|
|
45
|
+
decimals: number;
|
|
46
|
+
exposureType?: string;
|
|
47
|
+
id: string;
|
|
48
|
+
logoUrl?: string;
|
|
49
|
+
name: string;
|
|
50
|
+
protocol?: string;
|
|
51
|
+
symbol: string;
|
|
52
|
+
};
|
|
53
|
+
export type IExposurePerCategory = {
|
|
54
|
+
borrowing: IVaultExposureItem[];
|
|
55
|
+
supplying: IVaultExposureItem[];
|
|
56
|
+
lending: IWSSubaccountLoan[];
|
|
57
|
+
wallet: IVaultExposureItem[];
|
|
58
|
+
cefiBalance: number;
|
|
59
|
+
defiBalance: number;
|
|
60
|
+
walletBalance: number;
|
|
61
|
+
loanBalance: number;
|
|
62
|
+
};
|
|
63
|
+
export interface IVaultAllocations {
|
|
64
|
+
defi: IDebankProtocolExposure[];
|
|
65
|
+
tokens: IDebankTokenExposure[];
|
|
66
|
+
cefi: IWSSubaccountCefi[];
|
|
67
|
+
unfilteredTokens: IDebankTokenExposure[];
|
|
68
|
+
otc: Record<string, IOTCPosition>;
|
|
69
|
+
exposurePerCategory?: IExposurePerCategory;
|
|
70
|
+
netValue?: number;
|
|
71
|
+
defiPerBorrower: Record<`0x${string}`, {
|
|
72
|
+
exposure: any[];
|
|
73
|
+
positions: any[];
|
|
74
|
+
}>;
|
|
75
|
+
}
|
|
76
|
+
export interface IVaultApy {
|
|
77
|
+
apy: number;
|
|
78
|
+
explainer: string;
|
|
79
|
+
liquidApy: number;
|
|
80
|
+
rewardsClaimable: number;
|
|
81
|
+
rewardsCompounded: number;
|
|
82
|
+
underlyingApy: number;
|
|
83
|
+
}
|
|
84
|
+
export interface IVaultStrategist {
|
|
85
|
+
address: IAddress;
|
|
86
|
+
logo: string;
|
|
87
|
+
name: string;
|
|
88
|
+
}
|
|
89
|
+
export type IVaultVersion = 'evm-0' | 'evm-1' | 'evm-2' | 'sol-0' | 'sui-0';
|
|
90
|
+
export interface IVault {
|
|
91
|
+
address: IAddress;
|
|
92
|
+
chainId: number;
|
|
93
|
+
name: string;
|
|
94
|
+
logoUrl: string;
|
|
95
|
+
receipt: {
|
|
96
|
+
address: IAddress;
|
|
97
|
+
symbol: string;
|
|
98
|
+
decimals: number;
|
|
99
|
+
};
|
|
100
|
+
description: string;
|
|
101
|
+
startDatetime: string;
|
|
102
|
+
status: 'active' | 'closed' | 'testing';
|
|
103
|
+
version: IVaultVersion;
|
|
104
|
+
tags: string[];
|
|
105
|
+
isFeatured: boolean;
|
|
106
|
+
isVisible: boolean;
|
|
107
|
+
reserveTarget: number;
|
|
108
|
+
reserveTolerance: number;
|
|
109
|
+
decimals: number;
|
|
110
|
+
totalAssets: INormalizedNumber;
|
|
111
|
+
totalSupply: INormalizedNumber;
|
|
112
|
+
maxSupply: INormalizedNumber;
|
|
113
|
+
depositAssets: {
|
|
114
|
+
address: IAddress;
|
|
115
|
+
symbol: string;
|
|
116
|
+
decimals: number;
|
|
117
|
+
}[];
|
|
118
|
+
apy: IVaultApy;
|
|
119
|
+
operator: IAddress;
|
|
120
|
+
rewards: IVaultRewards;
|
|
121
|
+
strategists: IVaultStrategist[];
|
|
122
|
+
fees: {
|
|
123
|
+
management: number;
|
|
124
|
+
isManagementWaived: boolean;
|
|
125
|
+
performance: number;
|
|
126
|
+
isPerformanceWaived: boolean;
|
|
127
|
+
};
|
|
128
|
+
lagDuration: number;
|
|
129
|
+
maxDailyDrawdown: number;
|
|
130
|
+
risk: string;
|
|
131
|
+
isWithdrawalPaused: boolean;
|
|
132
|
+
isDepositPaused: boolean;
|
|
133
|
+
idleAssets: INormalizedNumber;
|
|
134
|
+
loans?: IVaultLoan[];
|
|
135
|
+
allocations?: IVaultAllocations;
|
|
136
|
+
position?: IVaultPosition;
|
|
137
|
+
linkOnly?: boolean;
|
|
138
|
+
}
|
|
139
|
+
export type IVaultAvailableRedemption = {
|
|
140
|
+
id: string;
|
|
141
|
+
hash: string;
|
|
142
|
+
timestamp: number;
|
|
143
|
+
receiver: IAddress;
|
|
144
|
+
day: INormalizedNumber;
|
|
145
|
+
month: INormalizedNumber;
|
|
146
|
+
year: INormalizedNumber;
|
|
147
|
+
amount: INormalizedNumber;
|
|
148
|
+
date: Date;
|
|
149
|
+
vault: IAddress;
|
|
150
|
+
};
|
|
151
|
+
export type IVaultRedemptionHistoryItem = {
|
|
152
|
+
receiver: IAddress;
|
|
153
|
+
amount: INormalizedNumber;
|
|
154
|
+
processed: Date;
|
|
155
|
+
requested: Date;
|
|
156
|
+
vault: IAddress;
|
|
157
|
+
};
|
|
158
|
+
export interface IVaultPosition {
|
|
159
|
+
vault: IAddress;
|
|
160
|
+
status: string;
|
|
161
|
+
availableRedemptions: IVaultAvailableRedemption[];
|
|
162
|
+
pendingRedemptions: IVaultAvailableRedemption[];
|
|
163
|
+
redeemable: INormalizedNumber;
|
|
164
|
+
walletBalance: INormalizedNumber;
|
|
165
|
+
}
|
|
166
|
+
export type IVaultOrderParam = 'asc' | 'desc';
|
|
167
|
+
export type IVaultHistoricalParams = {
|
|
168
|
+
daysAgo?: number;
|
|
169
|
+
order?: IVaultOrderParam;
|
|
170
|
+
interval?: 'days' | 'weeks' | 'months' | 'years';
|
|
171
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vaults.js","sourceRoot":"","sources":["../../src.ts/types/vaults.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Signer, Provider } from 'ethers';
|
|
2
|
+
export type IAddress = `0x${string}`;
|
|
3
|
+
export type IChainId = number;
|
|
4
|
+
export type IChainObj = {
|
|
5
|
+
chainId: number;
|
|
6
|
+
name: string;
|
|
7
|
+
explorer: string;
|
|
8
|
+
};
|
|
9
|
+
export type INormalizedNumber = {
|
|
10
|
+
normalized: string;
|
|
11
|
+
raw: string;
|
|
12
|
+
};
|
|
13
|
+
export type IExplorerType = 'tx' | 'address' | 'token';
|
|
14
|
+
export type IContractRunner = Signer | Provider;
|
|
15
|
+
export type IProvidersConfig = Partial<Record<IChainId, string>>;
|
|
16
|
+
export type IInfuraOptions = {
|
|
17
|
+
chainId: IChainId;
|
|
18
|
+
apiKey: string;
|
|
19
|
+
};
|
|
20
|
+
export type ISolanaNetwork = 'devnet' | 'mainnet-beta' | 'testnet' | 'localnet';
|
|
21
|
+
export interface ISolanaConfig {
|
|
22
|
+
rpcUrl: string;
|
|
23
|
+
network: ISolanaNetwork;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web3.js","sourceRoot":"","sources":["../../src.ts/types/web3.ts"],"names":[],"mappings":""}
|