@augustdigital/sdk 3.16.5-alpha → 3.16.7-alpha
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/index.js.map +1 -0
- package/lib/{sdk/src.ts/main.d.ts → main.d.ts} +2 -0
- package/lib/{sdk/src.ts/main.js → main.js} +3 -0
- package/lib/main.js.map +1 -0
- package/lib/verify.js.map +1 -0
- package/package.json +7 -6
- package/lib/abis/src.ts/AddressResolver.d.ts +0 -28
- package/lib/abis/src.ts/AddressResolver.js +0 -23
- package/lib/abis/src.ts/AddressResolver.js.map +0 -1
- package/lib/abis/src.ts/ChainlinkV3.d.ts +0 -87
- package/lib/abis/src.ts/ChainlinkV3.js +0 -117
- package/lib/abis/src.ts/ChainlinkV3.js.map +0 -1
- package/lib/abis/src.ts/ERC20.d.ts +0 -168
- package/lib/abis/src.ts/ERC20.js +0 -226
- package/lib/abis/src.ts/ERC20.js.map +0 -1
- package/lib/abis/src.ts/ERC20_Bytes32.d.ts +0 -135
- package/lib/abis/src.ts/ERC20_Bytes32.js +0 -192
- package/lib/abis/src.ts/ERC20_Bytes32.js.map +0 -1
- package/lib/abis/src.ts/ERC4626.d.ts +0 -363
- package/lib/abis/src.ts/ERC4626.js +0 -506
- package/lib/abis/src.ts/ERC4626.js.map +0 -1
- package/lib/abis/src.ts/ERC721.d.ts +0 -230
- package/lib/abis/src.ts/ERC721.js +0 -320
- package/lib/abis/src.ts/ERC721.js.map +0 -1
- package/lib/abis/src.ts/FeeOracle.d.ts +0 -120
- package/lib/abis/src.ts/FeeOracle.js +0 -161
- package/lib/abis/src.ts/FeeOracle.js.map +0 -1
- package/lib/abis/src.ts/LendingPool.d.ts +0 -1393
- package/lib/abis/src.ts/LendingPool.js +0 -1806
- package/lib/abis/src.ts/LendingPool.js.map +0 -1
- package/lib/abis/src.ts/LendingPoolV2.d.ts +0 -55
- package/lib/abis/src.ts/LendingPoolV2.js +0 -1832
- package/lib/abis/src.ts/LendingPoolV2.js.map +0 -1
- package/lib/abis/src.ts/LendingPoolV3.d.ts +0 -35
- package/lib/abis/src.ts/LendingPoolV3.js +0 -1160
- package/lib/abis/src.ts/LendingPoolV3.js.map +0 -1
- package/lib/abis/src.ts/Loan.d.ts +0 -837
- package/lib/abis/src.ts/Loan.js +0 -1080
- package/lib/abis/src.ts/Loan.js.map +0 -1
- package/lib/abis/src.ts/Multicall3.d.ts +0 -30
- package/lib/abis/src.ts/Multicall3.js +0 -94
- package/lib/abis/src.ts/Multicall3.js.map +0 -1
- package/lib/abis/src.ts/PoolAdapter.d.ts +0 -76
- package/lib/abis/src.ts/PoolAdapter.js +0 -412
- package/lib/abis/src.ts/PoolAdapter.js.map +0 -1
- package/lib/abis/src.ts/RewardDistributor.d.ts +0 -46
- package/lib/abis/src.ts/RewardDistributor.js +0 -352
- package/lib/abis/src.ts/RewardDistributor.js.map +0 -1
- package/lib/abis/src.ts/SmartAccount.d.ts +0 -16
- package/lib/abis/src.ts/SmartAccount.js +0 -16
- package/lib/abis/src.ts/SmartAccount.js.map +0 -1
- package/lib/abis/src.ts/TextResolver.d.ts +0 -16
- package/lib/abis/src.ts/TextResolver.js +0 -16
- package/lib/abis/src.ts/TextResolver.js.map +0 -1
- package/lib/abis/src.ts/UniversalResolverResolve.d.ts +0 -69
- package/lib/abis/src.ts/UniversalResolverResolve.js +0 -35
- package/lib/abis/src.ts/UniversalResolverResolve.js.map +0 -1
- package/lib/abis/src.ts/UniversalSignatureValidator.d.ts +0 -17
- package/lib/abis/src.ts/UniversalSignatureValidator.js +0 -27
- package/lib/abis/src.ts/UniversalSignatureValidator.js.map +0 -1
- package/lib/abis/src.ts/WrapperAdapter.d.ts +0 -60
- package/lib/abis/src.ts/WrapperAdapter.js +0 -150
- package/lib/abis/src.ts/WrapperAdapter.js.map +0 -1
- package/lib/abis/src.ts/index.d.ts +0 -19
- package/lib/abis/src.ts/index.js +0 -36
- package/lib/abis/src.ts/index.js.map +0 -1
- package/lib/pools/src.ts/admin-actions.d.ts +0 -0
- package/lib/pools/src.ts/admin-actions.js +0 -1
- package/lib/pools/src.ts/admin-actions.js.map +0 -1
- package/lib/pools/src.ts/getters-v2.d.ts +0 -0
- package/lib/pools/src.ts/getters-v2.js +0 -1
- package/lib/pools/src.ts/getters-v2.js.map +0 -1
- package/lib/pools/src.ts/getters.d.ts +0 -85
- package/lib/pools/src.ts/getters.js +0 -431
- package/lib/pools/src.ts/getters.js.map +0 -1
- package/lib/pools/src.ts/helpers.d.ts +0 -69
- package/lib/pools/src.ts/helpers.js +0 -634
- package/lib/pools/src.ts/helpers.js.map +0 -1
- package/lib/pools/src.ts/index.d.ts +0 -4
- package/lib/pools/src.ts/index.js +0 -21
- package/lib/pools/src.ts/index.js.map +0 -1
- package/lib/pools/src.ts/main.d.ts +0 -55
- package/lib/pools/src.ts/main.js +0 -270
- package/lib/pools/src.ts/main.js.map +0 -1
- package/lib/pools/src.ts/staking.d.ts +0 -8
- package/lib/pools/src.ts/staking.js +0 -116
- package/lib/pools/src.ts/staking.js.map +0 -1
- package/lib/pools/src.ts/user-actions.d.ts +0 -19
- package/lib/pools/src.ts/user-actions.js +0 -191
- package/lib/pools/src.ts/user-actions.js.map +0 -1
- package/lib/sdk/src.ts/index.js.map +0 -1
- package/lib/sdk/src.ts/main.js.map +0 -1
- package/lib/sdk/src.ts/verify.js.map +0 -1
- package/lib/services/src.ts/index.d.ts +0 -2
- package/lib/services/src.ts/index.js +0 -19
- package/lib/services/src.ts/index.js.map +0 -1
- package/lib/services/src.ts/slack.d.ts +0 -12
- package/lib/services/src.ts/slack.js +0 -57
- package/lib/services/src.ts/slack.js.map +0 -1
- package/lib/services/src.ts/subgraph.d.ts +0 -10
- package/lib/services/src.ts/subgraph.js +0 -460
- package/lib/services/src.ts/subgraph.js.map +0 -1
- package/lib/types/src.ts/index.d.ts +0 -8
- package/lib/types/src.ts/index.js +0 -24
- package/lib/types/src.ts/index.js.map +0 -1
- package/lib/types/src.ts/pools.d.ts +0 -141
- package/lib/types/src.ts/pools.js +0 -3
- package/lib/types/src.ts/pools.js.map +0 -1
- package/lib/types/src.ts/staking.d.ts +0 -28
- package/lib/types/src.ts/staking.js +0 -3
- package/lib/types/src.ts/staking.js.map +0 -1
- package/lib/types/src.ts/subgraph.d.ts +0 -45
- package/lib/types/src.ts/subgraph.js +0 -3
- package/lib/types/src.ts/subgraph.js.map +0 -1
- package/lib/types/src.ts/user.d.ts +0 -1
- package/lib/types/src.ts/user.js +0 -3
- package/lib/types/src.ts/user.js.map +0 -1
- package/lib/types/src.ts/vaults.d.ts +0 -159
- package/lib/types/src.ts/vaults.js +0 -3
- package/lib/types/src.ts/vaults.js.map +0 -1
- package/lib/types/src.ts/web3.d.ts +0 -19
- package/lib/types/src.ts/web3.js +0 -3
- package/lib/types/src.ts/web3.js.map +0 -1
- package/lib/types/src.ts/webserver.d.ts +0 -471
- package/lib/types/src.ts/webserver.js +0 -3
- package/lib/types/src.ts/webserver.js.map +0 -1
- package/lib/utils/src.ts/base-class.d.ts +0 -29
- package/lib/utils/src.ts/base-class.js +0 -48
- package/lib/utils/src.ts/base-class.js.map +0 -1
- package/lib/utils/src.ts/constants/august.d.ts +0 -57
- package/lib/utils/src.ts/constants/august.js +0 -61
- package/lib/utils/src.ts/constants/august.js.map +0 -1
- package/lib/utils/src.ts/constants/fallbacks.d.ts +0 -3
- package/lib/utils/src.ts/constants/fallbacks.js +0 -25
- package/lib/utils/src.ts/constants/fallbacks.js.map +0 -1
- package/lib/utils/src.ts/constants/index.d.ts +0 -3
- package/lib/utils/src.ts/constants/index.js +0 -20
- package/lib/utils/src.ts/constants/index.js.map +0 -1
- package/lib/utils/src.ts/constants/web3.d.ts +0 -25
- package/lib/utils/src.ts/constants/web3.js +0 -94
- package/lib/utils/src.ts/constants/web3.js.map +0 -1
- package/lib/utils/src.ts/fetcher.d.ts +0 -25
- package/lib/utils/src.ts/fetcher.js +0 -322
- package/lib/utils/src.ts/fetcher.js.map +0 -1
- package/lib/utils/src.ts/helpers/array.d.ts +0 -6
- package/lib/utils/src.ts/helpers/array.js +0 -35
- package/lib/utils/src.ts/helpers/array.js.map +0 -1
- package/lib/utils/src.ts/helpers/datetime.d.ts +0 -5
- package/lib/utils/src.ts/helpers/datetime.js +0 -32
- package/lib/utils/src.ts/helpers/datetime.js.map +0 -1
- package/lib/utils/src.ts/helpers/formatters.d.ts +0 -8
- package/lib/utils/src.ts/helpers/formatters.js +0 -114
- package/lib/utils/src.ts/helpers/formatters.js.map +0 -1
- package/lib/utils/src.ts/helpers/index.d.ts +0 -6
- package/lib/utils/src.ts/helpers/index.js +0 -23
- package/lib/utils/src.ts/helpers/index.js.map +0 -1
- package/lib/utils/src.ts/helpers/responses.d.ts +0 -32
- package/lib/utils/src.ts/helpers/responses.js +0 -238
- package/lib/utils/src.ts/helpers/responses.js.map +0 -1
- package/lib/utils/src.ts/helpers/verify-keys.d.ts +0 -2
- package/lib/utils/src.ts/helpers/verify-keys.js +0 -34
- package/lib/utils/src.ts/helpers/verify-keys.js.map +0 -1
- package/lib/utils/src.ts/helpers/web3.d.ts +0 -27
- package/lib/utils/src.ts/helpers/web3.js +0 -351
- package/lib/utils/src.ts/helpers/web3.js.map +0 -1
- package/lib/utils/src.ts/index.d.ts +0 -5
- package/lib/utils/src.ts/index.js +0 -22
- package/lib/utils/src.ts/index.js.map +0 -1
- package/lib/utils/src.ts/vaults.d.ts +0 -53
- package/lib/utils/src.ts/vaults.js +0 -167
- package/lib/utils/src.ts/vaults.js.map +0 -1
- package/lib/vaults/src.ts/admin-actions.d.ts +0 -0
- package/lib/vaults/src.ts/admin-actions.js +0 -1
- package/lib/vaults/src.ts/admin-actions.js.map +0 -1
- package/lib/vaults/src.ts/getters.d.ts +0 -36
- package/lib/vaults/src.ts/getters.js +0 -649
- package/lib/vaults/src.ts/getters.js.map +0 -1
- package/lib/vaults/src.ts/index.d.ts +0 -4
- package/lib/vaults/src.ts/index.js +0 -21
- package/lib/vaults/src.ts/index.js.map +0 -1
- package/lib/vaults/src.ts/main.d.ts +0 -88
- package/lib/vaults/src.ts/main.js +0 -497
- package/lib/vaults/src.ts/main.js.map +0 -1
- package/lib/vaults/src.ts/rpc-config.d.ts +0 -4
- package/lib/vaults/src.ts/rpc-config.js +0 -32
- package/lib/vaults/src.ts/rpc-config.js.map +0 -1
- package/lib/vaults/src.ts/user-actions.d.ts +0 -19
- package/lib/vaults/src.ts/user-actions.js +0 -191
- package/lib/vaults/src.ts/user-actions.js.map +0 -1
- package/lib/vaults/src.ts/utils.d.ts +0 -120
- package/lib/vaults/src.ts/utils.js +0 -438
- package/lib/vaults/src.ts/utils.js.map +0 -1
- package/lib/vaults/src.ts/vault-fetching-examples.d.ts +0 -4
- package/lib/vaults/src.ts/vault-fetching-examples.js +0 -40
- package/lib/vaults/src.ts/vault-fetching-examples.js.map +0 -1
- /package/lib/{sdk/src.ts/index.d.ts → index.d.ts} +0 -0
- /package/lib/{sdk/src.ts/index.js → index.js} +0 -0
- /package/lib/{sdk/src.ts/verify.d.ts → verify.d.ts} +0 -0
- /package/lib/{sdk/src.ts/verify.js → verify.js} +0 -0
|
@@ -1,471 +0,0 @@
|
|
|
1
|
-
import { IUserRoles } from './user';
|
|
2
|
-
import { IAddress } from './web3';
|
|
3
|
-
export type IWSSubaccountPermission = {
|
|
4
|
-
name: string;
|
|
5
|
-
chain: number;
|
|
6
|
-
account_address?: string;
|
|
7
|
-
};
|
|
8
|
-
export type IWSSubaccountTwap = {
|
|
9
|
-
source_token: string;
|
|
10
|
-
dest_token: string;
|
|
11
|
-
subaccount_chain: number;
|
|
12
|
-
time_interval: number;
|
|
13
|
-
amount: number;
|
|
14
|
-
start_time?: string;
|
|
15
|
-
limit_price?: number;
|
|
16
|
-
number_of_orders: number;
|
|
17
|
-
complete_all_orders?: boolean;
|
|
18
|
-
slippage_tolerance?: number;
|
|
19
|
-
};
|
|
20
|
-
export type IWSSubaccountTwapHistoryItem = {
|
|
21
|
-
start_time: string;
|
|
22
|
-
time_interval: number;
|
|
23
|
-
source_token: string;
|
|
24
|
-
destination_token: string;
|
|
25
|
-
amount: number | null;
|
|
26
|
-
limit_price: number;
|
|
27
|
-
active: boolean;
|
|
28
|
-
number_of_orders: number;
|
|
29
|
-
complete_all_orders: boolean;
|
|
30
|
-
id: string;
|
|
31
|
-
updated_at: string;
|
|
32
|
-
created_at: string;
|
|
33
|
-
subaccount_id: string;
|
|
34
|
-
};
|
|
35
|
-
export type IWSSubaccountTwapFill = {
|
|
36
|
-
transaction_hash: string | null;
|
|
37
|
-
source_token: string;
|
|
38
|
-
destination_token: string;
|
|
39
|
-
source_amount_in: number | null;
|
|
40
|
-
destination_amount_out: number | null;
|
|
41
|
-
implied_price: number | null;
|
|
42
|
-
fee_amount: number | null;
|
|
43
|
-
id: string;
|
|
44
|
-
updated_at: string;
|
|
45
|
-
created_at: string;
|
|
46
|
-
twap_id: string;
|
|
47
|
-
fireblocks_transaction_id: string;
|
|
48
|
-
status: IWSFireblocksTxStatus;
|
|
49
|
-
message: string;
|
|
50
|
-
};
|
|
51
|
-
export type IWSSubaccountToken = {
|
|
52
|
-
address: string;
|
|
53
|
-
chain: number;
|
|
54
|
-
decimals: number;
|
|
55
|
-
discount_factor: number;
|
|
56
|
-
img_url: string | null;
|
|
57
|
-
price: number;
|
|
58
|
-
symbol: string;
|
|
59
|
-
token_type: number;
|
|
60
|
-
};
|
|
61
|
-
interface IWSSubaccountCefiAsset {
|
|
62
|
-
type: string;
|
|
63
|
-
name: string;
|
|
64
|
-
underlying: string;
|
|
65
|
-
symbol: string;
|
|
66
|
-
asset_type: string;
|
|
67
|
-
}
|
|
68
|
-
interface IWSSubaccountCefiSpotToken {
|
|
69
|
-
asset: IWSSubaccountCefiAsset;
|
|
70
|
-
value: number;
|
|
71
|
-
balance: number;
|
|
72
|
-
}
|
|
73
|
-
interface IWSSubaccountCefiDerivative {
|
|
74
|
-
value: number;
|
|
75
|
-
asset_type: string;
|
|
76
|
-
asset: IWSSubaccountCefiAsset;
|
|
77
|
-
units: number;
|
|
78
|
-
avg_cost: number;
|
|
79
|
-
entry_cost: number;
|
|
80
|
-
}
|
|
81
|
-
export interface IWSSubaccountCefi {
|
|
82
|
-
value: number;
|
|
83
|
-
name: string;
|
|
84
|
-
spot_tokens: IWSSubaccountCefiSpotToken[];
|
|
85
|
-
derivative_positions: IWSSubaccountCefiDerivative[];
|
|
86
|
-
}
|
|
87
|
-
export interface IWSSubaccountLoan {
|
|
88
|
-
address: IAddress;
|
|
89
|
-
lender: IAddress;
|
|
90
|
-
borrower: IAddress;
|
|
91
|
-
state: string;
|
|
92
|
-
total_repaid: number;
|
|
93
|
-
principal_token: IWSTokenEntry;
|
|
94
|
-
principal_amount: number;
|
|
95
|
-
interest_amount: number;
|
|
96
|
-
upcoming_payment: {
|
|
97
|
-
amount: number;
|
|
98
|
-
due_date: string;
|
|
99
|
-
};
|
|
100
|
-
apr: number;
|
|
101
|
-
initial_principal_amount: number;
|
|
102
|
-
deployed_date: string;
|
|
103
|
-
payment_interval: number;
|
|
104
|
-
lender_apr: number;
|
|
105
|
-
}
|
|
106
|
-
export type IWSMetricsPnlAttributes = {
|
|
107
|
-
pnl: number;
|
|
108
|
-
percent_return: number;
|
|
109
|
-
realized_apr: number;
|
|
110
|
-
} | null;
|
|
111
|
-
export type IWSMetricsPnl = {
|
|
112
|
-
id: string;
|
|
113
|
-
datetime: string | Date;
|
|
114
|
-
pnl: number;
|
|
115
|
-
pnl_vs_spot: number;
|
|
116
|
-
swaps_pnl: number;
|
|
117
|
-
timestamp: number;
|
|
118
|
-
debt_interest_owed: number;
|
|
119
|
-
credit_interest_owed: number;
|
|
120
|
-
total_account_value: number;
|
|
121
|
-
net_deposits: number;
|
|
122
|
-
net_deposits_pv: number;
|
|
123
|
-
hedger_pnl: number;
|
|
124
|
-
lifetime: IWSMetricsPnlAttributes;
|
|
125
|
-
lifetime_vs_spot: IWSMetricsPnlAttributes;
|
|
126
|
-
three_day: IWSMetricsPnlAttributes;
|
|
127
|
-
three_day_vs_spot: IWSMetricsPnlAttributes;
|
|
128
|
-
seven_day: IWSMetricsPnlAttributes;
|
|
129
|
-
seven_day_vs_spot: IWSMetricsPnlAttributes;
|
|
130
|
-
thirty_day: IWSMetricsPnlAttributes;
|
|
131
|
-
thirty_day_vs_spot: IWSMetricsPnlAttributes;
|
|
132
|
-
};
|
|
133
|
-
export type IWSMetricsStrategy = {
|
|
134
|
-
subaccount: string;
|
|
135
|
-
strategy: string;
|
|
136
|
-
datetime: string | Date;
|
|
137
|
-
chain_id: number;
|
|
138
|
-
estimated_apr: number;
|
|
139
|
-
strategy_pnl: number;
|
|
140
|
-
pending_rewards: number;
|
|
141
|
-
strategy_notional: number;
|
|
142
|
-
pnl_vs_spot: number;
|
|
143
|
-
pnl_vs_spot_3d: number;
|
|
144
|
-
pnl_vs_spot_7d: number;
|
|
145
|
-
pnl_vs_spot_30d: number;
|
|
146
|
-
realized_apr: number;
|
|
147
|
-
realized_apr_3d: number;
|
|
148
|
-
realized_apr_7d: number;
|
|
149
|
-
realized_apr_30d: number;
|
|
150
|
-
pool_weights: Record<string, number>;
|
|
151
|
-
lp_price: number;
|
|
152
|
-
strategy_name: string;
|
|
153
|
-
net_deposits: number;
|
|
154
|
-
};
|
|
155
|
-
export type IWSMetricsToken = {
|
|
156
|
-
subaccount: string;
|
|
157
|
-
strategy: string;
|
|
158
|
-
datetime: string | Date;
|
|
159
|
-
chain_id: number;
|
|
160
|
-
symbol: string;
|
|
161
|
-
units_held: number;
|
|
162
|
-
value_held: number;
|
|
163
|
-
units_implied: number;
|
|
164
|
-
value_implied: number;
|
|
165
|
-
collateral_posted_amount: number;
|
|
166
|
-
margin_posted_amount: number;
|
|
167
|
-
collateral_posted_value: number;
|
|
168
|
-
margin_posted_value: number;
|
|
169
|
-
pool_weight: number;
|
|
170
|
-
};
|
|
171
|
-
export type IWSMetricsTRS = {
|
|
172
|
-
datetime: string | Date;
|
|
173
|
-
reciever: string;
|
|
174
|
-
payer: string;
|
|
175
|
-
trs_address: string;
|
|
176
|
-
chain_id: number;
|
|
177
|
-
initial_underyling_price: number;
|
|
178
|
-
reference_underlying_price: number;
|
|
179
|
-
current_underlying_price: number;
|
|
180
|
-
required_reciever_margin: number;
|
|
181
|
-
required_payer_margin: number;
|
|
182
|
-
mark_to_market_pnl: number;
|
|
183
|
-
initial_margin: number;
|
|
184
|
-
swap_contract_units: number;
|
|
185
|
-
state: string;
|
|
186
|
-
direction: string;
|
|
187
|
-
underlying_token: string;
|
|
188
|
-
};
|
|
189
|
-
export type IWSMetricsHealthFactor = {
|
|
190
|
-
id: string;
|
|
191
|
-
datetime: string;
|
|
192
|
-
health_factor: number;
|
|
193
|
-
total_account_value: number;
|
|
194
|
-
total_equity_value: number;
|
|
195
|
-
total_loan_value: number;
|
|
196
|
-
total_loan_interest_amount: number;
|
|
197
|
-
total_pnl: number;
|
|
198
|
-
aggregate_payer_margin: number;
|
|
199
|
-
aggregate_receiver_margin: number;
|
|
200
|
-
intrest_paid: number;
|
|
201
|
-
total_net_deposits: number;
|
|
202
|
-
net_account_value: number;
|
|
203
|
-
life_time_apr: number;
|
|
204
|
-
percent_return: number;
|
|
205
|
-
margin_fraction: number;
|
|
206
|
-
maintenance_margin_fraction: number;
|
|
207
|
-
total_collateral_value: number;
|
|
208
|
-
total_pnl_3d: number;
|
|
209
|
-
total_pnl_7d: number;
|
|
210
|
-
total_pnl_30d: number;
|
|
211
|
-
realized_apr_3d: number;
|
|
212
|
-
realized_apr_7d: number;
|
|
213
|
-
realized_apr_30d: number;
|
|
214
|
-
};
|
|
215
|
-
export type IWSMetricsHedgerPnl = {
|
|
216
|
-
subaccount: string;
|
|
217
|
-
strategy: string;
|
|
218
|
-
datetime: string | Date;
|
|
219
|
-
chain_id: number;
|
|
220
|
-
symbol: string;
|
|
221
|
-
funding_payments: number;
|
|
222
|
-
fees: number;
|
|
223
|
-
unrealized: number;
|
|
224
|
-
realized: number;
|
|
225
|
-
pnl: number;
|
|
226
|
-
implied_delta: number;
|
|
227
|
-
hedge_delta: number;
|
|
228
|
-
oi_biased_implied_delta: number;
|
|
229
|
-
oi_bias: number;
|
|
230
|
-
};
|
|
231
|
-
export type IWSMetricsHedger = {
|
|
232
|
-
subaccount: string;
|
|
233
|
-
strategy: string;
|
|
234
|
-
datetime: string | Date;
|
|
235
|
-
chain_id: number;
|
|
236
|
-
strategy_notional: number;
|
|
237
|
-
strategy_pnl: number;
|
|
238
|
-
hedger_pnl: number;
|
|
239
|
-
trs_pnl: number;
|
|
240
|
-
realized_pnl: number;
|
|
241
|
-
unrealized_pnl: number;
|
|
242
|
-
fees: number;
|
|
243
|
-
funding: number;
|
|
244
|
-
corrections: number;
|
|
245
|
-
total_hedge_delta: number;
|
|
246
|
-
total_implied_delta: number;
|
|
247
|
-
net_pnl: number;
|
|
248
|
-
realized_apr_3d: number;
|
|
249
|
-
realized_apr_7d: number;
|
|
250
|
-
realized_apr_30d: number;
|
|
251
|
-
};
|
|
252
|
-
export type IWSMetricsTimeseries = {
|
|
253
|
-
aggregate_payer_margin: number;
|
|
254
|
-
aggregate_receiver_margin: number;
|
|
255
|
-
datetime: string | Date;
|
|
256
|
-
health_factor: number;
|
|
257
|
-
id: string;
|
|
258
|
-
intrest_paid: number;
|
|
259
|
-
life_time_apr: number;
|
|
260
|
-
maintenance_margin_fraction: number;
|
|
261
|
-
margin_fraction: number;
|
|
262
|
-
net_account_value: number;
|
|
263
|
-
percent_return: number;
|
|
264
|
-
realized_apr_3d: number | null;
|
|
265
|
-
realized_apr_7d: number | null;
|
|
266
|
-
realized_apr_30d: number | null;
|
|
267
|
-
total_account_value: number;
|
|
268
|
-
total_collateral_value: number;
|
|
269
|
-
total_equity_value: number;
|
|
270
|
-
total_loan_interest_amount: number;
|
|
271
|
-
total_loan_value: number;
|
|
272
|
-
total_net_deposits: number;
|
|
273
|
-
total_pnl: number;
|
|
274
|
-
total_pnl_3d: number | null;
|
|
275
|
-
total_pnl_7d: number | null;
|
|
276
|
-
total_pnl_30d: number | null;
|
|
277
|
-
};
|
|
278
|
-
export type IWSTokenEntry = {
|
|
279
|
-
symbol: string;
|
|
280
|
-
address: `0x${string}`;
|
|
281
|
-
decimals: number;
|
|
282
|
-
img_url?: string;
|
|
283
|
-
price?: number;
|
|
284
|
-
chain?: number;
|
|
285
|
-
balance?: number;
|
|
286
|
-
value?: number;
|
|
287
|
-
label?: string;
|
|
288
|
-
discount_factor?: string;
|
|
289
|
-
type?: string;
|
|
290
|
-
};
|
|
291
|
-
export type IWSTokenPrice = {
|
|
292
|
-
price: number;
|
|
293
|
-
dt: string;
|
|
294
|
-
};
|
|
295
|
-
export type IWSUserSubaccount = {
|
|
296
|
-
internal_name: string;
|
|
297
|
-
friendly_name: string;
|
|
298
|
-
address: string;
|
|
299
|
-
chains: {
|
|
300
|
-
chain_id: number;
|
|
301
|
-
name: string;
|
|
302
|
-
id: string;
|
|
303
|
-
}[];
|
|
304
|
-
status: string;
|
|
305
|
-
subaccount_type: string;
|
|
306
|
-
min_health_factor: number;
|
|
307
|
-
estimated_apr: number;
|
|
308
|
-
id: string;
|
|
309
|
-
user_id: string;
|
|
310
|
-
implementation: string;
|
|
311
|
-
turnkey_address: string;
|
|
312
|
-
};
|
|
313
|
-
export type IWSUser = {
|
|
314
|
-
eoa: string;
|
|
315
|
-
full_name: string;
|
|
316
|
-
type_: IUserRoles;
|
|
317
|
-
nonce: string;
|
|
318
|
-
disabled: boolean;
|
|
319
|
-
id: string;
|
|
320
|
-
};
|
|
321
|
-
export type IWSFireblocksTxStatus = 'SUBMITTED' | 'PENDING_AML_SCREENING' | 'PENDING_AUTHORIZATION' | 'QUEUED' | 'PENDING_SIGNATURE' | 'PENDING_3RD_PARTY_MANUAL_APPROVAL' | 'PENDING_3RD_PARTY' | 'BROADCASTING' | 'CONFIRMING' | 'COMPLETED' | 'CANCELLING' | 'BLOCKED' | 'REJECTED' | 'FAILED';
|
|
322
|
-
export interface IWSIntegrationMorphoApy {
|
|
323
|
-
apy: number;
|
|
324
|
-
vault_positions: any[];
|
|
325
|
-
token: IWSTokenEntry;
|
|
326
|
-
}
|
|
327
|
-
export interface IWSVaultLoan {
|
|
328
|
-
address: IAddress;
|
|
329
|
-
lender: IAddress;
|
|
330
|
-
borrower: IAddress;
|
|
331
|
-
state: string;
|
|
332
|
-
total_repaid: number;
|
|
333
|
-
principal_token: IWSTokenEntry;
|
|
334
|
-
principal_amount: number;
|
|
335
|
-
interest_amount: number;
|
|
336
|
-
upcoming_payment: {
|
|
337
|
-
amount: number;
|
|
338
|
-
due_date: string;
|
|
339
|
-
};
|
|
340
|
-
apr: number;
|
|
341
|
-
initial_principal_amount: number;
|
|
342
|
-
deployed_date: string;
|
|
343
|
-
payment_interval: number;
|
|
344
|
-
}
|
|
345
|
-
export interface IDebankTokenExposure {
|
|
346
|
-
amount: number;
|
|
347
|
-
chain: string;
|
|
348
|
-
decimals: number;
|
|
349
|
-
id: IAddress;
|
|
350
|
-
logoUrl: string;
|
|
351
|
-
name: string;
|
|
352
|
-
symbol: string;
|
|
353
|
-
}
|
|
354
|
-
export interface IDebankProtocolExposure {
|
|
355
|
-
assetUsdValue: number;
|
|
356
|
-
chain: string;
|
|
357
|
-
debtUsdValue: number;
|
|
358
|
-
id: string;
|
|
359
|
-
logoUrl: string;
|
|
360
|
-
netUsdValue: number;
|
|
361
|
-
protocol: string;
|
|
362
|
-
siteUrl: string;
|
|
363
|
-
address: string;
|
|
364
|
-
tokenExposure: Record<string, string[] | string>;
|
|
365
|
-
protocolExposure: Record<string, string[] | string>;
|
|
366
|
-
}
|
|
367
|
-
export interface ITokenizedVaultSubaccount {
|
|
368
|
-
address: string;
|
|
369
|
-
strategist: ITokenizedVaultStrategist;
|
|
370
|
-
}
|
|
371
|
-
export interface ITokenizedVaultStrategist {
|
|
372
|
-
strategist_name: string;
|
|
373
|
-
strategist_logo: string;
|
|
374
|
-
id: string;
|
|
375
|
-
}
|
|
376
|
-
export interface IOTCTrade {
|
|
377
|
-
value: number;
|
|
378
|
-
payer: string;
|
|
379
|
-
receiver: string;
|
|
380
|
-
units: number;
|
|
381
|
-
price: number;
|
|
382
|
-
trade_name: string;
|
|
383
|
-
symbol: string;
|
|
384
|
-
strike: number;
|
|
385
|
-
expiry: string;
|
|
386
|
-
asset_type: string;
|
|
387
|
-
underlying: string;
|
|
388
|
-
average_cost: number;
|
|
389
|
-
}
|
|
390
|
-
export interface IOTCPosition {
|
|
391
|
-
value: number;
|
|
392
|
-
underlying: string;
|
|
393
|
-
settlement_type: string;
|
|
394
|
-
settlement_currency: string;
|
|
395
|
-
asset_type: string;
|
|
396
|
-
symbol: string;
|
|
397
|
-
trades: IOTCTrade[];
|
|
398
|
-
}
|
|
399
|
-
export interface ITokenizedVaultReward {
|
|
400
|
-
tokenizedvault_id: string;
|
|
401
|
-
id: string;
|
|
402
|
-
text: string;
|
|
403
|
-
img_url: string;
|
|
404
|
-
multiplier: number;
|
|
405
|
-
created_at: string;
|
|
406
|
-
start_datetime: string;
|
|
407
|
-
}
|
|
408
|
-
export interface ITokenizedVaultStrategist {
|
|
409
|
-
strategist_name: string;
|
|
410
|
-
strategist_logo: string;
|
|
411
|
-
id: string;
|
|
412
|
-
}
|
|
413
|
-
export interface ITokenizedVaultSubaccount {
|
|
414
|
-
address: string;
|
|
415
|
-
strategist: ITokenizedVaultStrategist;
|
|
416
|
-
}
|
|
417
|
-
export interface ITokenizedVaultReportedAPY {
|
|
418
|
-
apy: number;
|
|
419
|
-
underlying_apy: number;
|
|
420
|
-
liquid_apy: number;
|
|
421
|
-
rewards_compounded: number;
|
|
422
|
-
rewards_claimable: number;
|
|
423
|
-
explainer: string;
|
|
424
|
-
id: string;
|
|
425
|
-
tokenized_vault_id: string;
|
|
426
|
-
}
|
|
427
|
-
export interface ITokenizedVaultReceiptTokenIntegration {
|
|
428
|
-
address: string;
|
|
429
|
-
chain: number;
|
|
430
|
-
token_class: string;
|
|
431
|
-
shorthand: string;
|
|
432
|
-
symbol: string;
|
|
433
|
-
tiingo_ticker: string;
|
|
434
|
-
img_url: string;
|
|
435
|
-
is_transferable: boolean;
|
|
436
|
-
id: string;
|
|
437
|
-
position_id: string;
|
|
438
|
-
stable_token_pair_id: string;
|
|
439
|
-
}
|
|
440
|
-
export interface ITokenizedVault {
|
|
441
|
-
address: string;
|
|
442
|
-
yield_distributor: string;
|
|
443
|
-
chain: number;
|
|
444
|
-
description: string;
|
|
445
|
-
internal_type: 'lendingPool' | 'tokenizedVault';
|
|
446
|
-
public_type: 'Lending' | 'Defi Yield' | 'Pre-deposit';
|
|
447
|
-
is_featured: boolean;
|
|
448
|
-
is_visible: boolean;
|
|
449
|
-
weekly_performance_fee_bps: number;
|
|
450
|
-
platform_fee_override: {
|
|
451
|
-
management_fee: number;
|
|
452
|
-
is_fee_waived: boolean;
|
|
453
|
-
};
|
|
454
|
-
start_datetime: Date;
|
|
455
|
-
vault_name: string;
|
|
456
|
-
vault_logo_url: string;
|
|
457
|
-
reserve_target: number;
|
|
458
|
-
reserve_tolerance: number;
|
|
459
|
-
status: 'active' | 'closed';
|
|
460
|
-
is_charge_fees_manual: boolean;
|
|
461
|
-
id: string;
|
|
462
|
-
receipt_token_symbol: string;
|
|
463
|
-
rewards: ITokenizedVaultReward[];
|
|
464
|
-
subaccounts: ITokenizedVaultSubaccount[];
|
|
465
|
-
reported_apy: ITokenizedVaultReportedAPY | null;
|
|
466
|
-
receipt_token_integrations: ITokenizedVaultReceiptTokenIntegration[];
|
|
467
|
-
hardcoded_strategists: ITokenizedVaultStrategist[];
|
|
468
|
-
max_daily_drawdown: number | null;
|
|
469
|
-
risk: string;
|
|
470
|
-
}
|
|
471
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webserver.js","sourceRoot":"","sources":["../../../../types/src.ts/webserver.ts"],"names":[],"mappings":""}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { IChainId, IEnv, IProvidersConfig } from '@augustdigital/types';
|
|
2
|
-
export interface IAugustBase {
|
|
3
|
-
augustKey?: string;
|
|
4
|
-
subgraphKey?: string;
|
|
5
|
-
providers: IProvidersConfig;
|
|
6
|
-
defaultChain?: keyof IProvidersConfig;
|
|
7
|
-
env?: IEnv;
|
|
8
|
-
slackWebookUrl?: string;
|
|
9
|
-
coinGeckoKey?: string;
|
|
10
|
-
}
|
|
11
|
-
interface IActiveNetwork {
|
|
12
|
-
chainId: IChainId;
|
|
13
|
-
rpcUrl: string;
|
|
14
|
-
}
|
|
15
|
-
export declare class AugustBase {
|
|
16
|
-
coinGeckoKey?: string;
|
|
17
|
-
authorized: boolean;
|
|
18
|
-
providers: IProvidersConfig;
|
|
19
|
-
activeNetwork: IActiveNetwork;
|
|
20
|
-
defaultChain: keyof IProvidersConfig;
|
|
21
|
-
augustKey: string;
|
|
22
|
-
env: IEnv;
|
|
23
|
-
subgraphKey: string;
|
|
24
|
-
slackWebookUrl: string;
|
|
25
|
-
constructor({ providers, augustKey, defaultChain, env, subgraphKey, slackWebookUrl, coinGeckoKey, }: IAugustBase);
|
|
26
|
-
init(): Promise<void>;
|
|
27
|
-
switchNetwork(chainId: IChainId): void;
|
|
28
|
-
}
|
|
29
|
-
export {};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.AugustBase = void 0;
|
|
13
|
-
const verify_keys_1 = require("./helpers/verify-keys");
|
|
14
|
-
class AugustBase {
|
|
15
|
-
constructor({ providers, augustKey, defaultChain, env, subgraphKey, slackWebookUrl, coinGeckoKey, }) {
|
|
16
|
-
this.authorized = true;
|
|
17
|
-
if (Object.keys(providers).length === 0)
|
|
18
|
-
throw new Error('Must pass at least 1 provider.');
|
|
19
|
-
this.providers = providers;
|
|
20
|
-
this.activeNetwork = {
|
|
21
|
-
chainId: Number(Object.keys(providers)[0]),
|
|
22
|
-
rpcUrl: Object.values(providers)[0],
|
|
23
|
-
};
|
|
24
|
-
this.augustKey = augustKey;
|
|
25
|
-
this.subgraphKey = subgraphKey;
|
|
26
|
-
this.env = env;
|
|
27
|
-
this.coinGeckoKey = coinGeckoKey;
|
|
28
|
-
this.slackWebookUrl = slackWebookUrl;
|
|
29
|
-
}
|
|
30
|
-
init() {
|
|
31
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
-
const [augustCheck] = yield Promise.all([(0, verify_keys_1.verifyAugustKey)(this.augustKey)]);
|
|
33
|
-
if (!augustCheck)
|
|
34
|
-
throw new Error('August Digital API key is invalid.');
|
|
35
|
-
this.authorized = true;
|
|
36
|
-
console.log('August Digital SDK successfully initialized');
|
|
37
|
-
return;
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
switchNetwork(chainId) {
|
|
41
|
-
this.activeNetwork = {
|
|
42
|
-
chainId,
|
|
43
|
-
rpcUrl: this.providers[chainId],
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
exports.AugustBase = AugustBase;
|
|
48
|
-
//# sourceMappingURL=base-class.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base-class.js","sourceRoot":"","sources":["../../../../utils/src.ts/base-class.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,uDAAyE;AAiBzE,MAAa,UAAU;IAarB,YAAY,EACV,SAAS,EACT,SAAS,EACT,YAAY,EACZ,GAAG,EACH,WAAW,EACX,cAAc,EACd,YAAY,GACA;QAEZ,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;QAEvB,IAAI,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,MAAM,KAAK,CAAC;YACrC,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;QAEpD,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAE3B,IAAI,CAAC,aAAa,GAAG;YACnB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAa;YACtD,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;SACpC,CAAC;QAEF,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;IACvC,CAAC;IAGK,IAAI;;YACR,MAAM,CAAC,WAAW,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,IAAA,6BAAe,EAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;YAC3E,IAAI,CAAC,WAAW;gBAAE,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;YACxE,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;YACvB,OAAO,CAAC,GAAG,CAAC,6CAA6C,CAAC,CAAC;YAC3D,OAAO;QACT,CAAC;KAAA;IAMD,aAAa,CAAC,OAAiB;QAC7B,IAAI,CAAC,aAAa,GAAG;YACnB,OAAO;YACP,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC;SAChC,CAAC;IACJ,CAAC;CACF;AA7DD,gCA6DC"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { IAddress } from '@augustdigital/types';
|
|
2
|
-
export declare const WEBSERVER_URL: {
|
|
3
|
-
production: string;
|
|
4
|
-
development: string;
|
|
5
|
-
localhost: string;
|
|
6
|
-
qa: string;
|
|
7
|
-
public: string;
|
|
8
|
-
};
|
|
9
|
-
export declare const WEBSERVER_ENDPOINTS: {
|
|
10
|
-
default: {
|
|
11
|
-
hello: string;
|
|
12
|
-
protected: string;
|
|
13
|
-
};
|
|
14
|
-
auth: {
|
|
15
|
-
verify: string;
|
|
16
|
-
sign: string;
|
|
17
|
-
login: string;
|
|
18
|
-
nonce: string;
|
|
19
|
-
refresh: string;
|
|
20
|
-
};
|
|
21
|
-
subaccount: {
|
|
22
|
-
rewards: (subaccount: IAddress) => string;
|
|
23
|
-
tokens: (subaccount: IAddress) => string;
|
|
24
|
-
twap: {
|
|
25
|
-
create: (subaccount: IAddress) => string;
|
|
26
|
-
stop: (subaccount: IAddress, id: string) => string;
|
|
27
|
-
fills: (subaccount: IAddress, id: string) => string;
|
|
28
|
-
};
|
|
29
|
-
debank: (subaccount: IAddress) => string;
|
|
30
|
-
health_factor: (subaccount: IAddress) => string;
|
|
31
|
-
summary: (subaccount: IAddress) => string;
|
|
32
|
-
batch: (subaccount: IAddress) => string;
|
|
33
|
-
loans: (subaccount: IAddress, side?: "BORROWER" | "LENDER" | "BOTH") => string;
|
|
34
|
-
cefi: (subaccount: IAddress) => string;
|
|
35
|
-
otc_positions: (subaccount: IAddress) => string;
|
|
36
|
-
_: (subaccount: IAddress) => string;
|
|
37
|
-
};
|
|
38
|
-
users: {
|
|
39
|
-
get: string;
|
|
40
|
-
};
|
|
41
|
-
prices: (symbol: string) => string;
|
|
42
|
-
metrics: {
|
|
43
|
-
pnl: (subaccount: IAddress, startTime?: string, endTime?: string) => string;
|
|
44
|
-
};
|
|
45
|
-
public: {
|
|
46
|
-
integrations: {
|
|
47
|
-
morpho: {
|
|
48
|
-
apy: (subaccount: IAddress, vaultAddress: IAddress) => string;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
tokenizedVault: {
|
|
52
|
-
loans: (vaultAddress: IAddress, chainId: number, active: boolean) => string;
|
|
53
|
-
list: string;
|
|
54
|
-
byVaultAddress: (vaultAddress: IAddress) => string;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WEBSERVER_ENDPOINTS = exports.WEBSERVER_URL = void 0;
|
|
4
|
-
const ethers_1 = require("ethers");
|
|
5
|
-
exports.WEBSERVER_URL = {
|
|
6
|
-
production: 'https://backend.fractalprotocol.org',
|
|
7
|
-
development: 'https://backend-dev.augustdigital.io',
|
|
8
|
-
localhost: 'http://127.0.0.1:8000',
|
|
9
|
-
qa: 'https://backend-qa.augustdigital.io',
|
|
10
|
-
public: 'https://api.augustdigital.io/api/v1',
|
|
11
|
-
};
|
|
12
|
-
exports.WEBSERVER_ENDPOINTS = {
|
|
13
|
-
default: {
|
|
14
|
-
hello: '/hello',
|
|
15
|
-
protected: '/protected',
|
|
16
|
-
},
|
|
17
|
-
auth: {
|
|
18
|
-
verify: '/auth/secret',
|
|
19
|
-
sign: '/auth/sign',
|
|
20
|
-
login: '/auth/login',
|
|
21
|
-
nonce: '/auth/nonce',
|
|
22
|
-
refresh: '/auth/refresh',
|
|
23
|
-
},
|
|
24
|
-
subaccount: {
|
|
25
|
-
rewards: (subaccount) => `/subaccount/${(0, ethers_1.getAddress)(subaccount)}/rewards`,
|
|
26
|
-
tokens: (subaccount) => `/subaccount/${(0, ethers_1.getAddress)(subaccount)}/tokens`,
|
|
27
|
-
twap: {
|
|
28
|
-
create: (subaccount) => `/subaccount/${(0, ethers_1.getAddress)(subaccount)}/twap`,
|
|
29
|
-
stop: (subaccount, id) => `/subaccount/${(0, ethers_1.getAddress)(subaccount)}/twap/${id}/stop`,
|
|
30
|
-
fills: (subaccount, id) => `/subaccount/${(0, ethers_1.getAddress)(subaccount)}/twap/${id}/fills`,
|
|
31
|
-
},
|
|
32
|
-
debank: (subaccount) => `/subaccount/${(0, ethers_1.getAddress)(subaccount)}/debank`,
|
|
33
|
-
health_factor: (subaccount) => `/subaccount/${subaccount}/health_factor`,
|
|
34
|
-
summary: (subaccount) => `/subaccount/${(0, ethers_1.getAddress)(subaccount)}/summary`,
|
|
35
|
-
batch: (subaccount) => `/subaccount/${(0, ethers_1.getAddress)(subaccount)}/tx_batcher_integrations`,
|
|
36
|
-
loans: (subaccount, side = 'BOTH') => `/subaccount/${subaccount}/loans?side=${side}`,
|
|
37
|
-
cefi: (subaccount) => `/subaccount/${subaccount}/cefi_position`,
|
|
38
|
-
otc_positions: (subaccount) => `/subaccount/${subaccount}/otc_positions`,
|
|
39
|
-
_: (subaccount) => `/subaccount/${(0, ethers_1.getAddress)(subaccount)}`,
|
|
40
|
-
},
|
|
41
|
-
users: {
|
|
42
|
-
get: '/users',
|
|
43
|
-
},
|
|
44
|
-
prices: (symbol) => `/prices/${symbol}`,
|
|
45
|
-
metrics: {
|
|
46
|
-
pnl: (subaccount, startTime, endTime) => `/metrics/pnl?subaccount_address=${(0, ethers_1.getAddress)(subaccount)}${startTime && endTime ? `&start=${startTime}&end=${endTime}` : ''}`,
|
|
47
|
-
},
|
|
48
|
-
public: {
|
|
49
|
-
integrations: {
|
|
50
|
-
morpho: {
|
|
51
|
-
apy: (subaccount, vaultAddress) => `/integrations/morpho/apy?subaccount_address=${(0, ethers_1.getAddress)(subaccount)}&vault_address=${(0, ethers_1.getAddress)(vaultAddress)}`,
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
tokenizedVault: {
|
|
55
|
-
loans: (vaultAddress, chainId, active) => `/upshift/lending_pool/loanbook?address=${vaultAddress}&chain=${chainId}&active=${active}`,
|
|
56
|
-
list: '/tokenized_vault',
|
|
57
|
-
byVaultAddress: (vaultAddress) => `/tokenized_vault/${vaultAddress}`,
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
};
|
|
61
|
-
//# sourceMappingURL=august.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"august.js","sourceRoot":"","sources":["../../../../../utils/src.ts/constants/august.ts"],"names":[],"mappings":"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"}
|