@augustdigital/sdk 4.26.0-alpha.1 → 4.27.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/README.md +1 -1
- package/lib/abis/{SendersAllocationWhitelist.d.ts → OFT.d.ts} +46 -63
- package/lib/abis/OFT.js +65 -0
- package/lib/abis/OFT.js.map +1 -0
- package/lib/abis/index.d.ts +1 -0
- package/lib/abis/index.js +1 -0
- package/lib/abis/index.js.map +1 -1
- package/lib/evm/index.d.ts +2 -0
- package/lib/evm/index.js +19 -0
- package/lib/evm/index.js.map +1 -0
- package/lib/evm/methods/crossChainVault.d.ts +38 -0
- package/lib/evm/methods/crossChainVault.js +608 -0
- package/lib/evm/methods/crossChainVault.js.map +1 -0
- package/lib/evm/methods/index.d.ts +1 -0
- package/lib/evm/methods/index.js +18 -0
- package/lib/evm/methods/index.js.map +1 -0
- package/lib/evm/types/crossChain.d.ts +157 -0
- package/lib/{types/rwa-redemption.js → evm/types/crossChain.js} +1 -1
- package/lib/evm/types/crossChain.js.map +1 -0
- package/lib/evm/types/index.d.ts +1 -0
- package/lib/evm/types/index.js +18 -0
- package/lib/evm/types/index.js.map +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/modules/vaults/getters.js +1 -0
- package/lib/modules/vaults/getters.js.map +1 -1
- package/lib/modules/vaults/main.d.ts +1 -1
- package/lib/modules/vaults/main.js +4 -2
- package/lib/modules/vaults/main.js.map +1 -1
- package/lib/modules/vaults/write.actions.js +97 -26
- package/lib/modules/vaults/write.actions.js.map +1 -1
- package/lib/services/debank/fetcher.d.ts +108 -5
- package/lib/services/debank/fetcher.js.map +1 -1
- package/lib/services/debank/utils.js +51 -1
- package/lib/services/debank/utils.js.map +1 -1
- package/package.json +14 -14
- package/lib/abis/RwaRedeem.d.ts +0 -76
- package/lib/abis/RwaRedeem.js +0 -55
- package/lib/abis/RwaRedeem.js.map +0 -1
- package/lib/abis/SendersAllocationWhitelist.js +0 -157
- package/lib/abis/SendersAllocationWhitelist.js.map +0 -1
- package/lib/abis/TokenizedVaultV2Whitelist.d.ts +0 -454
- package/lib/abis/TokenizedVaultV2Whitelist.js +0 -327
- package/lib/abis/TokenizedVaultV2Whitelist.js.map +0 -1
- package/lib/core/analytics/version.d.ts +0 -1
- package/lib/core/analytics/version.js +0 -5
- package/lib/core/analytics/version.js.map +0 -1
- package/lib/core/constants/hardcoded-vaults.d.ts +0 -7
- package/lib/core/constants/hardcoded-vaults.js +0 -248
- package/lib/core/constants/hardcoded-vaults.js.map +0 -1
- package/lib/core/constants/rwa-vaults.d.ts +0 -4
- package/lib/core/constants/rwa-vaults.js +0 -28
- package/lib/core/constants/rwa-vaults.js.map +0 -1
- package/lib/core/helpers/address-utils.d.ts +0 -3
- package/lib/core/helpers/address-utils.js +0 -18
- package/lib/core/helpers/address-utils.js.map +0 -1
- package/lib/types/rwa-redemption.d.ts +0 -13
- package/lib/types/rwa-redemption.js.map +0 -1
|
@@ -1,327 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ABI_TOKENIZED_VAULT_V2_WHITELIST = void 0;
|
|
4
|
-
exports.ABI_TOKENIZED_VAULT_V2_WHITELIST = [
|
|
5
|
-
{
|
|
6
|
-
inputs: [{ internalType: 'address', name: 'ownerAddr', type: 'address' }],
|
|
7
|
-
stateMutability: 'nonpayable',
|
|
8
|
-
type: 'constructor',
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
inputs: [
|
|
12
|
-
{ internalType: 'uint256', name: 'attempted', type: 'uint256' },
|
|
13
|
-
{ internalType: 'uint256', name: 'limit', type: 'uint256' },
|
|
14
|
-
{ internalType: 'uint256', name: 'alreadyDeposited', type: 'uint256' },
|
|
15
|
-
],
|
|
16
|
-
name: 'AllocationExceeded',
|
|
17
|
-
type: 'error',
|
|
18
|
-
},
|
|
19
|
-
{ inputs: [], name: 'ArrayLengthMismatch', type: 'error' },
|
|
20
|
-
{ inputs: [], name: 'BatchSizeExceeded', type: 'error' },
|
|
21
|
-
{ inputs: [], name: 'EmptyBatch', type: 'error' },
|
|
22
|
-
{ inputs: [], name: 'InvalidAddress', type: 'error' },
|
|
23
|
-
{ inputs: [], name: 'InvalidBps', type: 'error' },
|
|
24
|
-
{ inputs: [], name: 'OwnerAddressRequired', type: 'error' },
|
|
25
|
-
{ inputs: [], name: 'OwnerOnly', type: 'error' },
|
|
26
|
-
{ inputs: [], name: 'ReceiverNotWhitelisted', type: 'error' },
|
|
27
|
-
{ inputs: [], name: 'ReentrancyGuardReentrantCall', type: 'error' },
|
|
28
|
-
{ inputs: [], name: 'UnauthorizedRecorder', type: 'error' },
|
|
29
|
-
{
|
|
30
|
-
anonymous: false,
|
|
31
|
-
inputs: [
|
|
32
|
-
{ indexed: true, internalType: 'address', name: 'addr', type: 'address' },
|
|
33
|
-
{
|
|
34
|
-
indexed: false,
|
|
35
|
-
internalType: 'uint256',
|
|
36
|
-
name: 'oldBps',
|
|
37
|
-
type: 'uint256',
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
indexed: false,
|
|
41
|
-
internalType: 'uint256',
|
|
42
|
-
name: 'newBps',
|
|
43
|
-
type: 'uint256',
|
|
44
|
-
},
|
|
45
|
-
],
|
|
46
|
-
name: 'AllocationSet',
|
|
47
|
-
type: 'event',
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
anonymous: false,
|
|
51
|
-
inputs: [
|
|
52
|
-
{
|
|
53
|
-
indexed: true,
|
|
54
|
-
internalType: 'address',
|
|
55
|
-
name: 'recorder',
|
|
56
|
-
type: 'address',
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
indexed: false,
|
|
60
|
-
internalType: 'bool',
|
|
61
|
-
name: 'authorized',
|
|
62
|
-
type: 'bool',
|
|
63
|
-
},
|
|
64
|
-
],
|
|
65
|
-
name: 'AuthorizedRecorderSet',
|
|
66
|
-
type: 'event',
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
anonymous: false,
|
|
70
|
-
inputs: [
|
|
71
|
-
{ indexed: true, internalType: 'address', name: 'addr', type: 'address' },
|
|
72
|
-
{
|
|
73
|
-
indexed: false,
|
|
74
|
-
internalType: 'uint256',
|
|
75
|
-
name: 'amount',
|
|
76
|
-
type: 'uint256',
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
indexed: false,
|
|
80
|
-
internalType: 'uint256',
|
|
81
|
-
name: 'newDeposited',
|
|
82
|
-
type: 'uint256',
|
|
83
|
-
},
|
|
84
|
-
],
|
|
85
|
-
name: 'DepositRecorded',
|
|
86
|
-
type: 'event',
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
anonymous: false,
|
|
90
|
-
inputs: [
|
|
91
|
-
{ indexed: true, internalType: 'address', name: 'addr', type: 'address' },
|
|
92
|
-
{
|
|
93
|
-
indexed: false,
|
|
94
|
-
internalType: 'uint256',
|
|
95
|
-
name: 'oldAmount',
|
|
96
|
-
type: 'uint256',
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
indexed: false,
|
|
100
|
-
internalType: 'uint256',
|
|
101
|
-
name: 'newAmount',
|
|
102
|
-
type: 'uint256',
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
indexed: true,
|
|
106
|
-
internalType: 'address',
|
|
107
|
-
name: 'admin',
|
|
108
|
-
type: 'address',
|
|
109
|
-
},
|
|
110
|
-
],
|
|
111
|
-
name: 'DepositedSet',
|
|
112
|
-
type: 'event',
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
anonymous: false,
|
|
116
|
-
inputs: [
|
|
117
|
-
{
|
|
118
|
-
indexed: true,
|
|
119
|
-
internalType: 'address',
|
|
120
|
-
name: 'previousOwner',
|
|
121
|
-
type: 'address',
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
indexed: true,
|
|
125
|
-
internalType: 'address',
|
|
126
|
-
name: 'newOwner',
|
|
127
|
-
type: 'address',
|
|
128
|
-
},
|
|
129
|
-
],
|
|
130
|
-
name: 'OwnershipTransferred',
|
|
131
|
-
type: 'event',
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
anonymous: false,
|
|
135
|
-
inputs: [
|
|
136
|
-
{ indexed: true, internalType: 'address', name: 'addr', type: 'address' },
|
|
137
|
-
{
|
|
138
|
-
indexed: false,
|
|
139
|
-
internalType: 'uint256',
|
|
140
|
-
name: 'amount',
|
|
141
|
-
type: 'uint256',
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
indexed: false,
|
|
145
|
-
internalType: 'uint256',
|
|
146
|
-
name: 'newDeposited',
|
|
147
|
-
type: 'uint256',
|
|
148
|
-
},
|
|
149
|
-
],
|
|
150
|
-
name: 'WithdrawalRecorded',
|
|
151
|
-
type: 'event',
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
inputs: [],
|
|
155
|
-
name: 'MAX_BATCH_SIZE',
|
|
156
|
-
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
157
|
-
stateMutability: 'view',
|
|
158
|
-
type: 'function',
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
inputs: [],
|
|
162
|
-
name: 'MAX_BPS',
|
|
163
|
-
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
164
|
-
stateMutability: 'view',
|
|
165
|
-
type: 'function',
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
inputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
169
|
-
name: 'allocationBps',
|
|
170
|
-
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
171
|
-
stateMutability: 'view',
|
|
172
|
-
type: 'function',
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
inputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
176
|
-
name: 'authorizedRecorders',
|
|
177
|
-
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
|
|
178
|
-
stateMutability: 'view',
|
|
179
|
-
type: 'function',
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
inputs: [
|
|
183
|
-
{ internalType: 'address', name: 'addr', type: 'address' },
|
|
184
|
-
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
|
|
185
|
-
],
|
|
186
|
-
name: 'checkAndRecordDeposit',
|
|
187
|
-
outputs: [
|
|
188
|
-
{ internalType: 'uint256', name: 'newDeposited', type: 'uint256' },
|
|
189
|
-
],
|
|
190
|
-
stateMutability: 'nonpayable',
|
|
191
|
-
type: 'function',
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
inputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
195
|
-
name: 'deposited',
|
|
196
|
-
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
197
|
-
stateMutability: 'view',
|
|
198
|
-
type: 'function',
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
inputs: [{ internalType: 'address', name: 'addr', type: 'address' }],
|
|
202
|
-
name: 'disableSender',
|
|
203
|
-
outputs: [],
|
|
204
|
-
stateMutability: 'nonpayable',
|
|
205
|
-
type: 'function',
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
inputs: [{ internalType: 'address', name: 'addr', type: 'address' }],
|
|
209
|
-
name: 'enableSender',
|
|
210
|
-
outputs: [],
|
|
211
|
-
stateMutability: 'nonpayable',
|
|
212
|
-
type: 'function',
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
inputs: [{ internalType: 'address', name: 'addr', type: 'address' }],
|
|
216
|
-
name: 'getAllocationBps',
|
|
217
|
-
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
218
|
-
stateMutability: 'view',
|
|
219
|
-
type: 'function',
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
inputs: [],
|
|
223
|
-
name: 'getAuthorizedRecorders',
|
|
224
|
-
outputs: [{ internalType: 'address[]', name: '', type: 'address[]' }],
|
|
225
|
-
stateMutability: 'view',
|
|
226
|
-
type: 'function',
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
inputs: [{ internalType: 'address', name: 'addr', type: 'address' }],
|
|
230
|
-
name: 'getDeposited',
|
|
231
|
-
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
232
|
-
stateMutability: 'view',
|
|
233
|
-
type: 'function',
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
inputs: [
|
|
237
|
-
{ internalType: 'address', name: 'addr', type: 'address' },
|
|
238
|
-
{ internalType: 'uint256', name: 'depositCapAmount', type: 'uint256' },
|
|
239
|
-
],
|
|
240
|
-
name: 'getRemainingAllocation',
|
|
241
|
-
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
242
|
-
stateMutability: 'view',
|
|
243
|
-
type: 'function',
|
|
244
|
-
},
|
|
245
|
-
{
|
|
246
|
-
inputs: [{ internalType: 'address', name: 'addr', type: 'address' }],
|
|
247
|
-
name: 'isWhitelisted',
|
|
248
|
-
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
|
|
249
|
-
stateMutability: 'view',
|
|
250
|
-
type: 'function',
|
|
251
|
-
},
|
|
252
|
-
{
|
|
253
|
-
inputs: [],
|
|
254
|
-
name: 'owner',
|
|
255
|
-
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
256
|
-
stateMutability: 'view',
|
|
257
|
-
type: 'function',
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
inputs: [
|
|
261
|
-
{ internalType: 'address', name: 'addr', type: 'address' },
|
|
262
|
-
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
|
|
263
|
-
],
|
|
264
|
-
name: 'recordWithdrawal',
|
|
265
|
-
outputs: [],
|
|
266
|
-
stateMutability: 'nonpayable',
|
|
267
|
-
type: 'function',
|
|
268
|
-
},
|
|
269
|
-
{
|
|
270
|
-
inputs: [
|
|
271
|
-
{ internalType: 'address', name: 'addr', type: 'address' },
|
|
272
|
-
{ internalType: 'uint256', name: 'bps', type: 'uint256' },
|
|
273
|
-
],
|
|
274
|
-
name: 'setAllocation',
|
|
275
|
-
outputs: [],
|
|
276
|
-
stateMutability: 'nonpayable',
|
|
277
|
-
type: 'function',
|
|
278
|
-
},
|
|
279
|
-
{
|
|
280
|
-
inputs: [
|
|
281
|
-
{ internalType: 'address[]', name: 'addrs', type: 'address[]' },
|
|
282
|
-
{ internalType: 'uint256[]', name: 'bpsValues', type: 'uint256[]' },
|
|
283
|
-
],
|
|
284
|
-
name: 'setAllocationBatch',
|
|
285
|
-
outputs: [],
|
|
286
|
-
stateMutability: 'nonpayable',
|
|
287
|
-
type: 'function',
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
inputs: [
|
|
291
|
-
{ internalType: 'address', name: 'recorder', type: 'address' },
|
|
292
|
-
{ internalType: 'bool', name: 'authorized', type: 'bool' },
|
|
293
|
-
],
|
|
294
|
-
name: 'setAuthorizedRecorder',
|
|
295
|
-
outputs: [],
|
|
296
|
-
stateMutability: 'nonpayable',
|
|
297
|
-
type: 'function',
|
|
298
|
-
},
|
|
299
|
-
{
|
|
300
|
-
inputs: [
|
|
301
|
-
{ internalType: 'address', name: 'addr', type: 'address' },
|
|
302
|
-
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
|
|
303
|
-
],
|
|
304
|
-
name: 'setDeposited',
|
|
305
|
-
outputs: [],
|
|
306
|
-
stateMutability: 'nonpayable',
|
|
307
|
-
type: 'function',
|
|
308
|
-
},
|
|
309
|
-
{
|
|
310
|
-
inputs: [
|
|
311
|
-
{ internalType: 'address[]', name: 'addrs', type: 'address[]' },
|
|
312
|
-
{ internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' },
|
|
313
|
-
],
|
|
314
|
-
name: 'setDepositedBatch',
|
|
315
|
-
outputs: [],
|
|
316
|
-
stateMutability: 'nonpayable',
|
|
317
|
-
type: 'function',
|
|
318
|
-
},
|
|
319
|
-
{
|
|
320
|
-
inputs: [{ internalType: 'address', name: 'newOwner', type: 'address' }],
|
|
321
|
-
name: 'transferOwnership',
|
|
322
|
-
outputs: [],
|
|
323
|
-
stateMutability: 'nonpayable',
|
|
324
|
-
type: 'function',
|
|
325
|
-
},
|
|
326
|
-
];
|
|
327
|
-
//# sourceMappingURL=TokenizedVaultV2Whitelist.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TokenizedVaultV2Whitelist.js","sourceRoot":"","sources":["../../src.ts/abis/TokenizedVaultV2Whitelist.ts"],"names":[],"mappings":";;;AAAa,QAAA,gCAAgC,GAAG;IAC9C;QACE,MAAM,EAAE,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QACzE,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,aAAa;KACpB;IACD;QACE,MAAM,EAAE;YACN,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE;YAC/D,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE;YAC3D,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,kBAAkB,EAAE,IAAI,EAAE,SAAS,EAAE;SACvE;QACD,IAAI,EAAE,oBAAoB;QAC1B,IAAI,EAAE,OAAO;KACd;IACD,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,qBAAqB,EAAE,IAAI,EAAE,OAAO,EAAE;IAC1D,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE,IAAI,EAAE,OAAO,EAAE;IACxD,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,OAAO,EAAE;IACjD,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,gBAAgB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EAAE,EAAE;QACX,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,UAAU;KACjB;IACD;QACE,MAAM,EAAE,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QACxE,IAAI,EAAE,mBAAmB;QACzB,OAAO,EAAE,EAAE;QACX,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,UAAU;KACjB;CACO,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "local-dev";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../../src.ts/core/analytics/version.ts"],"names":[],"mappings":";;;AAKa,QAAA,WAAW,GAAG,WAAW,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ITokenizedVault, IVault } from '../../types';
|
|
2
|
-
export declare const HARDCODED_VAULTS: Record<string, Partial<ITokenizedVault>>;
|
|
3
|
-
export declare function getHardcodedIVaults(): IVault[];
|
|
4
|
-
export declare function getHardcodedVaults(): Partial<ITokenizedVault>[];
|
|
5
|
-
export declare function isHardcodedVault(vaultAddress: string): boolean;
|
|
6
|
-
export declare function getHardcodedVault(vaultAddress: string): Partial<ITokenizedVault> | undefined;
|
|
7
|
-
export declare function getHardcodedIVault(vaultAddress: string): IVault | undefined;
|
|
@@ -1,248 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HARDCODED_VAULTS = void 0;
|
|
4
|
-
exports.getHardcodedIVaults = getHardcodedIVaults;
|
|
5
|
-
exports.getHardcodedVaults = getHardcodedVaults;
|
|
6
|
-
exports.isHardcodedVault = isHardcodedVault;
|
|
7
|
-
exports.getHardcodedVault = getHardcodedVault;
|
|
8
|
-
exports.getHardcodedIVault = getHardcodedIVault;
|
|
9
|
-
const core_1 = require("../helpers/core");
|
|
10
|
-
const address_utils_1 = require("../helpers/address-utils");
|
|
11
|
-
function vaultPlaceholders(decimals) {
|
|
12
|
-
return {
|
|
13
|
-
totalAssets: (0, core_1.toNormalizedBn)(1, decimals),
|
|
14
|
-
totalSupply: (0, core_1.toNormalizedBn)(1, decimals),
|
|
15
|
-
maxSupply: (0, core_1.toNormalizedBn)(BigInt('1000000000000000000000000000000000000'), decimals),
|
|
16
|
-
idleAssets: (0, core_1.toNormalizedBn)(0, decimals),
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
exports.HARDCODED_VAULTS = {
|
|
20
|
-
'0x635BCC289E71f38E96E60F25B53B21c4BBa218C6': {
|
|
21
|
-
address: '0x635BCC289E71f38E96E60F25B53B21c4BBa218C6',
|
|
22
|
-
chain: 43114,
|
|
23
|
-
chain_type: 'evm',
|
|
24
|
-
vault_name: 'EthenaPay Test Vault',
|
|
25
|
-
vault_logo_url: 'https://imagedelivery.net/JKqfgGWnlUbSJb3LhpWg6w/token-logo/usde-dark.svg/public',
|
|
26
|
-
description: 'EthenaPay test vault on Avalanche C-Chain. Atomic vault with USDe as reference asset.',
|
|
27
|
-
status: 'active',
|
|
28
|
-
is_visible: false,
|
|
29
|
-
is_featured: true,
|
|
30
|
-
is_spotlighted: true,
|
|
31
|
-
internal_type: 'multiAssetVault',
|
|
32
|
-
public_type: 'Defi Yield',
|
|
33
|
-
receipt_token_symbol: 'ep_test',
|
|
34
|
-
start_datetime: new Date('2026-04-06T00:00:00Z'),
|
|
35
|
-
weekly_performance_fee_bps: 10,
|
|
36
|
-
platform_fee_override: { management_fee: 0, is_fee_waived: true },
|
|
37
|
-
reserve_target: 0,
|
|
38
|
-
reserve_tolerance: 0,
|
|
39
|
-
risk: 'low',
|
|
40
|
-
max_daily_drawdown: null,
|
|
41
|
-
max_drawdown: null,
|
|
42
|
-
reported_apy: null,
|
|
43
|
-
campaign_apy: null,
|
|
44
|
-
hardcoded_strategists: [
|
|
45
|
-
{
|
|
46
|
-
strategist_name: 'August',
|
|
47
|
-
strategist_logo: '/img/logos/august-logo-blue.svg',
|
|
48
|
-
id: 'august',
|
|
49
|
-
},
|
|
50
|
-
],
|
|
51
|
-
rewards: [],
|
|
52
|
-
subaccounts: [
|
|
53
|
-
{
|
|
54
|
-
address: '0x0000000000000000000000000000000000000000',
|
|
55
|
-
strategist: {
|
|
56
|
-
strategist_name: 'August',
|
|
57
|
-
strategist_logo: '/img/logos/august-logo-blue.svg',
|
|
58
|
-
id: 'august',
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
],
|
|
62
|
-
operators: [],
|
|
63
|
-
eoa_operators: [],
|
|
64
|
-
receipt_token_integrations: [],
|
|
65
|
-
yield_distributor: '',
|
|
66
|
-
enable_external_assets_update: false,
|
|
67
|
-
enabled_historical_price_horizons: [],
|
|
68
|
-
is_charge_fees_manual: false,
|
|
69
|
-
id: 'ep-test-avax-hardcoded',
|
|
70
|
-
lagDuration: 0,
|
|
71
|
-
historical_apy: null,
|
|
72
|
-
daily_pnl_per_share: {},
|
|
73
|
-
latest_reported_tvl: null,
|
|
74
|
-
_decimals: 18,
|
|
75
|
-
_depositAsset: {
|
|
76
|
-
address: '0x5d3a1Ff2b6BAb83b63cd9AD0787074081a52ef34',
|
|
77
|
-
symbol: 'USDe',
|
|
78
|
-
decimals: 18,
|
|
79
|
-
},
|
|
80
|
-
_receiptAddress: '0x6e0a5e7B738fAB63491Be8e5b46A6a993a2D254c',
|
|
81
|
-
},
|
|
82
|
-
'0xBcf12e8266d5181483651AeCE9a95267962e9103': {
|
|
83
|
-
address: '0xBcf12e8266d5181483651AeCE9a95267962e9103',
|
|
84
|
-
chain: 8453,
|
|
85
|
-
chain_type: 'evm',
|
|
86
|
-
vault_name: 'EthenaPay Test Vault',
|
|
87
|
-
vault_logo_url: 'https://imagedelivery.net/JKqfgGWnlUbSJb3LhpWg6w/token-logo/usdc-dark.svg/public',
|
|
88
|
-
description: 'EthenaPay test vault on Base. Atomic vault with USDC as reference asset.',
|
|
89
|
-
status: 'active',
|
|
90
|
-
is_visible: false,
|
|
91
|
-
is_featured: true,
|
|
92
|
-
is_spotlighted: true,
|
|
93
|
-
internal_type: 'multiAssetVault',
|
|
94
|
-
public_type: 'Defi Yield',
|
|
95
|
-
receipt_token_symbol: 'stk_test',
|
|
96
|
-
start_datetime: new Date('2026-04-06T00:00:00Z'),
|
|
97
|
-
weekly_performance_fee_bps: 10,
|
|
98
|
-
platform_fee_override: { management_fee: 0, is_fee_waived: true },
|
|
99
|
-
reserve_target: 0,
|
|
100
|
-
reserve_tolerance: 0,
|
|
101
|
-
risk: 'low',
|
|
102
|
-
max_daily_drawdown: null,
|
|
103
|
-
max_drawdown: null,
|
|
104
|
-
reported_apy: null,
|
|
105
|
-
campaign_apy: null,
|
|
106
|
-
hardcoded_strategists: [
|
|
107
|
-
{
|
|
108
|
-
strategist_name: 'August',
|
|
109
|
-
strategist_logo: '/img/logos/august-logo-blue.svg',
|
|
110
|
-
id: 'august',
|
|
111
|
-
},
|
|
112
|
-
],
|
|
113
|
-
rewards: [],
|
|
114
|
-
subaccounts: [
|
|
115
|
-
{
|
|
116
|
-
address: '0x0000000000000000000000000000000000000000',
|
|
117
|
-
strategist: {
|
|
118
|
-
strategist_name: 'August',
|
|
119
|
-
strategist_logo: '/img/logos/august-logo-blue.svg',
|
|
120
|
-
id: 'august',
|
|
121
|
-
},
|
|
122
|
-
},
|
|
123
|
-
],
|
|
124
|
-
operators: [],
|
|
125
|
-
eoa_operators: [],
|
|
126
|
-
receipt_token_integrations: [],
|
|
127
|
-
yield_distributor: '',
|
|
128
|
-
enable_external_assets_update: false,
|
|
129
|
-
enabled_historical_price_horizons: [],
|
|
130
|
-
is_charge_fees_manual: false,
|
|
131
|
-
id: 'ep-test-base-hardcoded',
|
|
132
|
-
lagDuration: 0,
|
|
133
|
-
historical_apy: null,
|
|
134
|
-
daily_pnl_per_share: {},
|
|
135
|
-
latest_reported_tvl: null,
|
|
136
|
-
_decimals: 6,
|
|
137
|
-
_depositAsset: {
|
|
138
|
-
address: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913',
|
|
139
|
-
symbol: 'USDC',
|
|
140
|
-
decimals: 6,
|
|
141
|
-
},
|
|
142
|
-
_receiptAddress: '0x141CBa9D1E7fcE12607d010c18C9CE94694c331E',
|
|
143
|
-
},
|
|
144
|
-
};
|
|
145
|
-
function getHardcodedIVaults() {
|
|
146
|
-
return Object.values(exports.HARDCODED_VAULTS).map((tv) => {
|
|
147
|
-
const meta = tv;
|
|
148
|
-
const decimals = meta._decimals ?? 18;
|
|
149
|
-
const placeholders = vaultPlaceholders(decimals);
|
|
150
|
-
const depositAsset = meta._depositAsset ?? {
|
|
151
|
-
address: '0x0000000000000000000000000000000000000000',
|
|
152
|
-
symbol: 'UNKNOWN',
|
|
153
|
-
decimals,
|
|
154
|
-
};
|
|
155
|
-
const receiptAddress = meta._receiptAddress ?? '0x0000000000000000000000000000000000000000';
|
|
156
|
-
return {
|
|
157
|
-
address: tv.address,
|
|
158
|
-
chainId: tv.chain,
|
|
159
|
-
name: tv.vault_name || 'Unknown',
|
|
160
|
-
logoUrl: tv.vault_logo_url || '',
|
|
161
|
-
description: tv.description || '',
|
|
162
|
-
startDatetime: String(tv.start_datetime),
|
|
163
|
-
status: tv.status,
|
|
164
|
-
version: 'evm-2',
|
|
165
|
-
tags: [tv.public_type || 'Defi Yield'],
|
|
166
|
-
isFeatured: tv.is_featured || false,
|
|
167
|
-
isSpotlighted: tv.is_spotlighted || false,
|
|
168
|
-
isVisible: tv.is_visible ?? true,
|
|
169
|
-
reserveTarget: tv.reserve_target || 0,
|
|
170
|
-
reserveTolerance: tv.reserve_tolerance || 0,
|
|
171
|
-
decimals,
|
|
172
|
-
totalAssets: placeholders.totalAssets,
|
|
173
|
-
totalSupply: placeholders.totalSupply,
|
|
174
|
-
maxSupply: placeholders.maxSupply,
|
|
175
|
-
operators: [],
|
|
176
|
-
eoa_operators: [],
|
|
177
|
-
depositAssets: [
|
|
178
|
-
{
|
|
179
|
-
address: depositAsset.address,
|
|
180
|
-
symbol: depositAsset.symbol,
|
|
181
|
-
decimals: depositAsset.decimals,
|
|
182
|
-
},
|
|
183
|
-
],
|
|
184
|
-
receipt: {
|
|
185
|
-
address: receiptAddress,
|
|
186
|
-
symbol: tv.receipt_token_symbol || '',
|
|
187
|
-
decimals,
|
|
188
|
-
},
|
|
189
|
-
apy: {
|
|
190
|
-
apy: 0,
|
|
191
|
-
explainer: '',
|
|
192
|
-
liquidApy: 0,
|
|
193
|
-
pointsApy: null,
|
|
194
|
-
campaignApy: null,
|
|
195
|
-
rewardsClaimable: 0,
|
|
196
|
-
rewardsCompounded: 0,
|
|
197
|
-
underlyingApy: 0,
|
|
198
|
-
},
|
|
199
|
-
operator: '0x0000000000000000000000000000000000000000',
|
|
200
|
-
rewards: {
|
|
201
|
-
points: '0',
|
|
202
|
-
multiplier: 1,
|
|
203
|
-
multipliers: [],
|
|
204
|
-
additionalPoints: [],
|
|
205
|
-
},
|
|
206
|
-
strategists: tv.subaccounts && tv.subaccounts.length > 0
|
|
207
|
-
? tv.subaccounts.map((s) => ({
|
|
208
|
-
address: s.address,
|
|
209
|
-
logo: s.strategist?.strategist_logo || '',
|
|
210
|
-
name: s.strategist?.strategist_name || '',
|
|
211
|
-
}))
|
|
212
|
-
: tv.hardcoded_strategists?.map((s) => ({
|
|
213
|
-
address: '0x0000000000000000000000000000000000000000',
|
|
214
|
-
logo: s.strategist_logo || '',
|
|
215
|
-
name: s.strategist_name || '',
|
|
216
|
-
})) || [],
|
|
217
|
-
fees: {
|
|
218
|
-
management: tv.platform_fee_override?.management_fee || 0,
|
|
219
|
-
isManagementWaived: tv.platform_fee_override?.is_fee_waived || true,
|
|
220
|
-
performance: tv.weekly_performance_fee_bps || 0,
|
|
221
|
-
isPerformanceWaived: true,
|
|
222
|
-
},
|
|
223
|
-
lagDuration: tv.lagDuration || 0,
|
|
224
|
-
maxDailyDrawdown: tv.max_daily_drawdown || 0,
|
|
225
|
-
risk: tv.risk || 'low',
|
|
226
|
-
isWithdrawalPaused: false,
|
|
227
|
-
isDepositPaused: false,
|
|
228
|
-
idleAssets: placeholders.idleAssets,
|
|
229
|
-
};
|
|
230
|
-
});
|
|
231
|
-
}
|
|
232
|
-
function getHardcodedVaults() {
|
|
233
|
-
return Object.values(exports.HARDCODED_VAULTS);
|
|
234
|
-
}
|
|
235
|
-
function isHardcodedVault(vaultAddress) {
|
|
236
|
-
return (0, address_utils_1.hasAddressKey)(exports.HARDCODED_VAULTS, vaultAddress);
|
|
237
|
-
}
|
|
238
|
-
function getHardcodedVault(vaultAddress) {
|
|
239
|
-
return (0, address_utils_1.getByAddress)(exports.HARDCODED_VAULTS, vaultAddress);
|
|
240
|
-
}
|
|
241
|
-
function getHardcodedIVault(vaultAddress) {
|
|
242
|
-
const config = getHardcodedVault(vaultAddress);
|
|
243
|
-
if (!config)
|
|
244
|
-
return undefined;
|
|
245
|
-
const hardcodedVaults = getHardcodedIVaults();
|
|
246
|
-
return hardcodedVaults.find((v) => v.address.toLowerCase() === vaultAddress.toLowerCase());
|
|
247
|
-
}
|
|
248
|
-
//# sourceMappingURL=hardcoded-vaults.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hardcoded-vaults.js","sourceRoot":"","sources":["../../../src.ts/core/constants/hardcoded-vaults.ts"],"names":[],"mappings":";;;AAkKA,kDA0FC;AAMD,gDAEC;AAKD,4CAEC;AAKD,8CAIC;AAMD,gDASC;AAlSD,0CAAiD;AACjD,4DAAuE;AAKvE,SAAS,iBAAiB,CAAC,QAAgB;IACzC,OAAO;QACL,WAAW,EAAE,IAAA,qBAAc,EAAC,CAAC,EAAE,QAAQ,CAAC;QACxC,WAAW,EAAE,IAAA,qBAAc,EAAC,CAAC,EAAE,QAAQ,CAAC;QACxC,SAAS,EAAE,IAAA,qBAAc,EACvB,MAAM,CAAC,uCAAuC,CAAC,EAC/C,QAAQ,CACT;QACD,UAAU,EAAE,IAAA,q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AAC,wBAAgB,EAAE,YAAY,CAAC,CAAC;AACvD,CAAC;AAKD,SAAgB,iBAAiB,CAC/B,YAAoB;IAEpB,OAAO,IAAA,4BAAY,EAAC,wBAAgB,EAAE,YAAY,CAAC,CAAC;AACtD,CAAC;AAMD,SAAgB,kBAAkB,CAAC,YAAoB;IACrD,MAAM,MAAM,GAAG,iBAAiB,CAAC,YAAY,CAAC,CAAC;IAC/C,IAAI,CAAC,MAAM;QAAE,OAAO,SAAS,CAAC;IAG9B,MAAM,eAAe,GAAG,mBAAmB,EAAE,CAAC;IAC9C,OAAO,eAAe,CAAC,IAAI,CACzB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,KAAK,YAAY,CAAC,WAAW,EAAE,CAC9D,CAAC;AACJ,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { IAddress, RwaRedemptionVaultConfig } from '../../types';
|
|
2
|
-
export declare const RWA_REDEMPTION_VAULTS: Record<IAddress, RwaRedemptionVaultConfig>;
|
|
3
|
-
export declare function isRwaRedemptionVault(vaultAddress: string): boolean;
|
|
4
|
-
export declare function getRwaRedemptionConfig(vaultAddress: string): RwaRedemptionVaultConfig | undefined;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RWA_REDEMPTION_VAULTS = void 0;
|
|
4
|
-
exports.isRwaRedemptionVault = isRwaRedemptionVault;
|
|
5
|
-
exports.getRwaRedemptionConfig = getRwaRedemptionConfig;
|
|
6
|
-
const address_utils_1 = require("../helpers/address-utils");
|
|
7
|
-
exports.RWA_REDEMPTION_VAULTS = {
|
|
8
|
-
'0x076f3f14d87eA2D34DB66A4b5b9f091918008552': {
|
|
9
|
-
chainId: 1,
|
|
10
|
-
subaccountAddress: '0xf6f479954515f6f1044cc16ebebced096d423ff8',
|
|
11
|
-
redeemableAssets: [
|
|
12
|
-
{
|
|
13
|
-
address: '0x6c3ea9036406852006290770BEdFcAbA0e23A0e8',
|
|
14
|
-
symbol: 'PYUSD',
|
|
15
|
-
decimals: 6,
|
|
16
|
-
spreadBps: 25,
|
|
17
|
-
},
|
|
18
|
-
],
|
|
19
|
-
outputAssetSymbol: 'USDC',
|
|
20
|
-
},
|
|
21
|
-
};
|
|
22
|
-
function isRwaRedemptionVault(vaultAddress) {
|
|
23
|
-
return (0, address_utils_1.hasAddressKey)(exports.RWA_REDEMPTION_VAULTS, vaultAddress);
|
|
24
|
-
}
|
|
25
|
-
function getRwaRedemptionConfig(vaultAddress) {
|
|
26
|
-
return (0, address_utils_1.getByAddress)(exports.RWA_REDEMPTION_VAULTS, vaultAddress);
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=rwa-vaults.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rwa-vaults.js","sourceRoot":"","sources":["../../../src.ts/core/constants/rwa-vaults.ts"],"names":[],"mappings":";;;AAgCA,oDAEC;AAKD,wDAIC;AA1CD,4DAAuE;AAU1D,QAAA,qBAAqB,GAChC;IACE,4CAA4C,EAAE;QAC5C,OAAO,EAAE,CAAC;QACV,iBAAiB,EACf,4CAAwD;QAC1D,gBAAgB,EAAE;YAChB;gBACE,OAAO,EAAE,4CAAwD;gBACjE,MAAM,EAAE,OAAO;gBACf,QAAQ,EAAE,CAAC;gBACX,SAAS,EAAE,EAAE;aACd;SACF;QACD,iBAAiB,EAAE,MAAM;KAC1B;CACF,CAAC;AAKJ,SAAgB,oBAAoB,CAAC,YAAoB;IACvD,OAAO,IAAA,6BAAa,EAAC,6BAAqB,EAAE,YAAY,CAAC,CAAC;AAC5D,CAAC;AAKD,SAAgB,sBAAsB,CACpC,YAAoB;IAEpB,OAAO,IAAA,4BAAY,EAAC,6BAAqB,EAAE,YAAY,CAAC,CAAC;AAC3D,CAAC"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare function hasAddressKey<T>(record: Record<string, T>, address: string): boolean;
|
|
2
|
-
export declare function getByAddress<T>(record: Record<string, T>, address: string): T | undefined;
|
|
3
|
-
export declare function normalizeAddressKeys<T>(record: Record<string, T>): Record<string, T>;
|