@affluent-org/sdk 0.0.4 → 0.0.6
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/dist/affluent.d.ts +3 -3
- package/dist/affluent.js +3 -3
- package/dist/common/computation.d.ts +6 -0
- package/dist/common/computation.js +54 -0
- package/dist/common/helper.d.ts +5 -0
- package/dist/common/helper.js +29 -0
- package/dist/common/service.d.ts +10 -2
- package/dist/common/service.js +56 -3
- package/dist/common/trace-action.d.ts +92 -0
- package/dist/common/trace-action.js +187 -0
- package/dist/common/transform.d.ts +87 -0
- package/dist/common/transform.js +264 -0
- package/dist/common/types.d.ts +140 -0
- package/dist/common/types.js +11 -0
- package/dist/context.d.ts +3 -0
- package/dist/context.js +9 -0
- package/dist/contracts/oracle/redstone-onchain-oracle/index.js +2 -0
- package/dist/contracts/oracle/redstone-onchain-oracle/type.d.ts +1 -1
- package/dist/contracts/vault/strategy-vault/index.d.ts +2 -1
- package/dist/contracts/vault/strategy-vault/index.js +1 -0
- package/dist/factorial.d.ts +18 -8
- package/dist/factorial.js +26 -14
- package/dist/index.d.ts +4 -2
- package/dist/index.js +18 -2
- package/dist/lib/send-msg.d.ts +16 -2
- package/dist/lib/send-msg.js +23 -2
- package/dist/monitor.js +2 -0
- package/dist/monitorCacheV1.js +3 -2
- package/dist/oracle/oracle.d.ts +3 -2
- package/dist/oracle/oracle.js +25 -2
- package/dist/pool.d.ts +41 -0
- package/dist/pool.js +146 -178
- package/dist/poolCacheV1.js +1 -0
- package/dist/rfq-auction.d.ts +2 -2
- package/dist/rfq-auction.js +6 -6
- package/dist/rfq-batch.d.ts +21 -11
- package/dist/rfq-batch.js +81 -9
- package/dist/services/composite-oracle/codec.d.ts +76 -0
- package/dist/services/composite-oracle/codec.js +281 -0
- package/dist/services/composite-oracle/computation.d.ts +8 -19
- package/dist/services/composite-oracle/computation.js +119 -76
- package/dist/services/composite-oracle/index.d.ts +2 -2
- package/dist/services/composite-oracle/index.js +5 -6
- package/dist/services/composite-oracle/query.d.ts +6 -6
- package/dist/services/composite-oracle/query.js +6 -47
- package/dist/services/pool/computation.d.ts +3 -9
- package/dist/services/pool/computation.js +12 -78
- package/dist/services/pool/index.d.ts +10 -59
- package/dist/services/pool/index.js +55 -8
- package/dist/services/pool/oracle.d.ts +2 -2
- package/dist/services/pool/query.d.ts +1 -1
- package/dist/services/pool/query.js +1 -1
- package/dist/services/pool/user/trace.d.ts +90 -0
- package/dist/services/pool/user/trace.js +168 -0
- package/dist/services/rfq-auction/index.d.ts +7 -23
- package/dist/services/rfq-auction/index.js +45 -6
- package/dist/services/rfq-auction/oracle.d.ts +2 -2
- package/dist/services/rfq-auction/user/index.js +1 -1
- package/dist/services/rfq-auction/user/trace.d.ts +53 -0
- package/dist/services/rfq-auction/user/trace.js +68 -0
- package/dist/services/rfq-batch/index.d.ts +16 -13
- package/dist/services/rfq-batch/index.js +34 -10
- package/dist/services/rfq-batch/oracle.d.ts +2 -2
- package/dist/services/rfq-batch/user/trace.d.ts +49 -0
- package/dist/services/rfq-batch/user/trace.js +67 -0
- package/dist/services/share-vault/index.d.ts +14 -88
- package/dist/services/share-vault/index.js +37 -10
- package/dist/services/share-vault/query.d.ts +5 -32
- package/dist/services/share-vault/query.js +25 -12
- package/dist/services/share-vault/user/trace.d.ts +54 -0
- package/dist/services/share-vault/user/trace.js +84 -0
- package/dist/services/strategy-vault/index.d.ts +77 -2115
- package/dist/services/strategy-vault/index.js +119 -54
- package/dist/services/strategy-vault/oracle.d.ts +3 -3
- package/dist/services/strategy-vault/oracle.js +1 -0
- package/dist/services/strategy-vault/owner/index.d.ts +2 -2
- package/dist/services/strategy-vault/owner/index.js +1 -1
- package/dist/services/strategy-vault/owner/types.d.ts +4 -0
- package/dist/services/strategy-vault/query.d.ts +14 -143
- package/dist/services/strategy-vault/query.js +28 -40
- package/dist/services/strategy-vault/user/trace.d.ts +156 -0
- package/dist/services/strategy-vault/user/trace.js +264 -0
- package/dist/share-vault.d.ts +164 -8
- package/dist/share-vault.js +222 -67
- package/dist/strategy_vault/base.d.ts +521 -105
- package/dist/strategy_vault/base.js +493 -41
- package/dist/strategy_vault/steps.d.ts +120 -3
- package/dist/strategy_vault/steps.js +161 -0
- package/dist/types/sender.d.ts +1 -0
- package/dist/utils/_parse_temp/StrategyVault.d.ts +9 -9
- package/dist/utils/_parse_temp/StrategyVault.js +48 -40
- package/dist/utils/_parse_temp/parseMsgBody.d.ts +2 -2
- package/dist/utils/_parse_temp/parseMsgBody.js +84 -84
- package/dist/utils/external-message-hash.d.ts +7 -3
- package/dist/utils/external-message-hash.js +20 -7
- package/dist/utils/oracle/redstone/helper.js +2 -0
- package/dist/utils/oracle/redstone/redstoneHelper.d.ts +7 -0
- package/dist/utils/oracle/redstone/redstoneHelper.js +103 -1
- package/dist/utils/pending-tracker/trackable-sender.d.ts +37 -4
- package/dist/utils/pending-tracker/trackable-sender.js +47 -8
- package/dist/utils/pending-tracker/v3-client.d.ts +16 -0
- package/dist/utils/pending-tracker/v3-client.js +80 -2
- package/dist/utils/risk_calculator/risk_calculator.d.ts +3 -3
- package/dist/utils/toncenter/index.d.ts +1 -0
- package/dist/utils/toncenter/index.js +17 -0
- package/dist/utils/toncenter/transform.d.ts +11 -0
- package/dist/utils/toncenter/transform.js +40 -0
- package/dist/utils/toncenter/type.d.ts +227 -0
- package/dist/utils/toncenter/type.js +2 -0
- package/package.json +3 -3
|
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.StrategyVaultServiceV1 = exports.user = exports.manager = exports.owner = exports.createQueryId = exports.sendMsg = void 0;
|
|
40
40
|
const context_1 = require("../../context");
|
|
41
41
|
const send_msg_1 = require("../../lib/send-msg");
|
|
42
42
|
const composite_oracle_1 = require("../composite-oracle");
|
|
@@ -48,6 +48,8 @@ const manager = __importStar(require("./manager"));
|
|
|
48
48
|
exports.manager = manager;
|
|
49
49
|
const user = __importStar(require("./user"));
|
|
50
50
|
exports.user = user;
|
|
51
|
+
const utils_1 = require("../../contracts/common/utils");
|
|
52
|
+
const trace_1 = require("./user/trace");
|
|
51
53
|
var send_msg_2 = require("../../lib/send-msg");
|
|
52
54
|
Object.defineProperty(exports, "sendMsg", { enumerable: true, get: function () { return send_msg_2.sendMsg; } });
|
|
53
55
|
var computation_1 = require("../../contracts/vault/strategy-vault/computation");
|
|
@@ -55,7 +57,8 @@ Object.defineProperty(exports, "createQueryId", { enumerable: true, get: functio
|
|
|
55
57
|
__exportStar(require("./owner/types"), exports);
|
|
56
58
|
__exportStar(require("./manager/types"), exports);
|
|
57
59
|
__exportStar(require("./user/types"), exports);
|
|
58
|
-
|
|
60
|
+
__exportStar(require("./user/trace"), exports);
|
|
61
|
+
class StrategyVaultServiceV1 {
|
|
59
62
|
ctx;
|
|
60
63
|
constructor(ctx = context_1.AffluentContext.getInstance()) {
|
|
61
64
|
this.ctx = ctx;
|
|
@@ -106,166 +109,225 @@ class StrategyVaultV1 {
|
|
|
106
109
|
// Owner
|
|
107
110
|
// ============================================================
|
|
108
111
|
async sendSetOwner(sender, params) {
|
|
109
|
-
return (0, send_msg_1.
|
|
112
|
+
return (0, send_msg_1.sendMsgAndWaitTxSimple)(this.ctx, sender, await owner.createSetOwnerMsg(this.ctx, params));
|
|
110
113
|
}
|
|
111
114
|
async sendSetGuardianAddress(sender, params, value) {
|
|
112
|
-
return (0, send_msg_1.
|
|
115
|
+
return (0, send_msg_1.sendMsgAndWaitTxSimple)(this.ctx, sender, await owner.createSetGuardianAddressMsg(this.ctx, params, value));
|
|
113
116
|
}
|
|
114
117
|
async sendSetManager(sender, params) {
|
|
115
|
-
return (0, send_msg_1.
|
|
118
|
+
return (0, send_msg_1.sendMsgAndWaitTxSimple)(this.ctx, sender, await owner.createSetManagerMsg(this.ctx, params));
|
|
116
119
|
}
|
|
117
120
|
async sendSetPrivateVault(sender, params, value) {
|
|
118
|
-
return (0, send_msg_1.
|
|
121
|
+
return (0, send_msg_1.sendMsgAndWaitTxSimple)(this.ctx, sender, await owner.createSetPrivateVaultMsg(this.ctx, params, value));
|
|
119
122
|
}
|
|
120
123
|
async sendSetWhitelistedMinters(sender, params, value) {
|
|
121
|
-
return (0, send_msg_1.
|
|
124
|
+
return (0, send_msg_1.sendMsgAndWaitTxSimple)(this.ctx, sender, await owner.createSetWhitelistedMintersMsg(this.ctx, params, value));
|
|
122
125
|
}
|
|
123
126
|
async sendSetMaxLeverageRatio(sender, params, value) {
|
|
124
|
-
return (0, send_msg_1.
|
|
127
|
+
return (0, send_msg_1.sendMsgAndWaitTxSimple)(this.ctx, sender, await owner.createSetMaxLeverageRatioMsg(this.ctx, params, value));
|
|
125
128
|
}
|
|
126
129
|
async sendExecuteOwnerAction(sender, params, value) {
|
|
127
|
-
return (0, send_msg_1.
|
|
130
|
+
return (0, send_msg_1.sendMsgAndWaitTxSimple)(this.ctx, sender, await owner.createExecuteOwnerActionMsg(this.ctx, params, value));
|
|
128
131
|
}
|
|
129
132
|
async sendRevertOwnerAction(sender, params, value) {
|
|
130
|
-
return (0, send_msg_1.
|
|
133
|
+
return (0, send_msg_1.sendMsgAndWaitTxSimple)(this.ctx, sender, await owner.createRevertOwnerActionMsg(this.ctx, params, value));
|
|
131
134
|
}
|
|
132
135
|
async sendSetTimelock(sender, params, value) {
|
|
133
|
-
return (0, send_msg_1.
|
|
136
|
+
return (0, send_msg_1.sendMsgAndWaitTxSimple)(this.ctx, sender, await owner.createSetTimelockMsg(this.ctx, params, value));
|
|
134
137
|
}
|
|
135
138
|
async sendSetManagementFeeRecipientAddress(sender, params, value) {
|
|
136
|
-
return (0, send_msg_1.
|
|
139
|
+
return (0, send_msg_1.sendMsgAndWaitTxSimple)(this.ctx, sender, await owner.createSetManagementFeeRecipientAddressMsg(this.ctx, params, value));
|
|
137
140
|
}
|
|
138
141
|
async sendSetProtocolFeeRatePerYear(sender, params, value) {
|
|
139
|
-
return (0, send_msg_1.
|
|
142
|
+
return (0, send_msg_1.sendMsgAndWaitTxSimple)(this.ctx, sender, await owner.createSetProtocolFeeRatePerYearMsg(this.ctx, params, value));
|
|
140
143
|
}
|
|
141
144
|
async sendSetProtocolFeeManagerAddress(sender, params, value) {
|
|
142
|
-
return (0, send_msg_1.
|
|
145
|
+
return (0, send_msg_1.sendMsgAndWaitTxSimple)(this.ctx, sender, await owner.createSetProtocolFeeManagerAddressMsg(this.ctx, params, value));
|
|
143
146
|
}
|
|
144
147
|
async sendSetFactorialPoolConfig(sender, params) {
|
|
145
|
-
return (0, send_msg_1.
|
|
148
|
+
return (0, send_msg_1.sendMsgAndWaitTxSimple)(this.ctx, sender, await owner.createSetFactorialPoolConfigMsg(this.ctx, params));
|
|
146
149
|
}
|
|
147
150
|
async sendSetAssetConfig(sender, params, value) {
|
|
148
|
-
return (0, send_msg_1.
|
|
151
|
+
return (0, send_msg_1.sendMsgAndWaitTxSimple)(this.ctx, sender, await owner.createSetAssetConfigMsg(this.ctx, params, value));
|
|
149
152
|
}
|
|
150
153
|
async sendSetRFQConfig(sender, params, value) {
|
|
151
|
-
return (0, send_msg_1.
|
|
154
|
+
return (0, send_msg_1.sendMsgAndWaitTxSimple)(this.ctx, sender, await owner.createSetRFQConfigMsg(this.ctx, params, value));
|
|
152
155
|
}
|
|
153
156
|
async sendSetManagementFeeRatePerYear(sender, params, value) {
|
|
154
|
-
return (0, send_msg_1.
|
|
157
|
+
return (0, send_msg_1.sendMsgAndWaitTxSimple)(this.ctx, sender, await owner.createSetManagementFeeRatePerYearMsg(this.ctx, params, value));
|
|
155
158
|
}
|
|
156
159
|
async sendSetDepositCloseTimestamp(sender, params, value) {
|
|
157
|
-
return (0, send_msg_1.
|
|
160
|
+
return (0, send_msg_1.sendMsgAndWaitTxSimple)(this.ctx, sender, await owner.createSetDepositCloseTimestampMsg(this.ctx, params, value));
|
|
158
161
|
}
|
|
159
162
|
async sendSetWithdrawOpenTimestamp(sender, params, value) {
|
|
160
|
-
return (0, send_msg_1.
|
|
163
|
+
return (0, send_msg_1.sendMsgAndWaitTxSimple)(this.ctx, sender, await owner.createSetWithdrawOpenTimestampMsg(this.ctx, params, value));
|
|
161
164
|
}
|
|
162
165
|
async sendSetGasConfig(sender, params, value) {
|
|
163
|
-
return (0, send_msg_1.
|
|
166
|
+
return (0, send_msg_1.sendMsgAndWaitTxSimple)(this.ctx, sender, await owner.createSetGasConfigMsg(this.ctx, params, value));
|
|
164
167
|
}
|
|
165
168
|
async sendSetOracleConfig(sender, params, value) {
|
|
166
|
-
return (0, send_msg_1.
|
|
169
|
+
return (0, send_msg_1.sendMsgAndWaitTxSimple)(this.ctx, sender, await owner.createSetOracleConfigMsg(this.ctx, params, value));
|
|
167
170
|
}
|
|
168
171
|
async sendSetWalletCode(sender, params, value) {
|
|
169
|
-
return (0, send_msg_1.
|
|
172
|
+
return (0, send_msg_1.sendMsgAndWaitTxSimple)(this.ctx, sender, await owner.createSetWalletCodeMsg(this.ctx, params, value));
|
|
170
173
|
}
|
|
171
174
|
async sendSetDataAggregatorCode(sender, params, value) {
|
|
172
|
-
return (0, send_msg_1.
|
|
175
|
+
return (0, send_msg_1.sendMsgAndWaitTxSimple)(this.ctx, sender, await owner.createSetDataAggregatorCodeMsg(this.ctx, params, value));
|
|
173
176
|
}
|
|
174
177
|
async sendSetRFQCode(sender, params, value) {
|
|
175
|
-
return (0, send_msg_1.
|
|
178
|
+
return (0, send_msg_1.sendMsgAndWaitTxSimple)(this.ctx, sender, await owner.createSetRFQCodeMsg(this.ctx, params, value));
|
|
176
179
|
}
|
|
177
180
|
async sendSetContent(sender, params, value) {
|
|
178
|
-
return (0, send_msg_1.
|
|
181
|
+
return (0, send_msg_1.sendMsgAndWaitTxSimple)(this.ctx, sender, await owner.createSetContentMsg(this.ctx, params, value));
|
|
179
182
|
}
|
|
180
183
|
async sendUpgradeCode(sender, params, value) {
|
|
181
|
-
return (0, send_msg_1.
|
|
184
|
+
return (0, send_msg_1.sendMsgAndWaitTxSimple)(this.ctx, sender, await owner.createUpgradeCodeMsg(this.ctx, params, value));
|
|
182
185
|
}
|
|
183
186
|
async sendCollectProtocolFee(sender, params, value) {
|
|
184
|
-
return (0, send_msg_1.
|
|
187
|
+
return (0, send_msg_1.sendMsgAndWaitTxSimple)(this.ctx, sender, await owner.createCollectProtocolFeeMsg(this.ctx, params, value));
|
|
185
188
|
}
|
|
186
189
|
async sendClaimManagementFee(sender, params, value) {
|
|
187
|
-
return (0, send_msg_1.
|
|
190
|
+
return (0, send_msg_1.sendMsgAndWaitTxSimple)(this.ctx, sender, await owner.createClaimManagementFeeMsg(this.ctx, params, value));
|
|
188
191
|
}
|
|
189
192
|
// ============================================================
|
|
190
193
|
// Manager
|
|
191
194
|
// ============================================================
|
|
192
195
|
async sendSupplyToFactorial(sender, params, value) {
|
|
193
|
-
return (0, send_msg_1.
|
|
196
|
+
return (0, send_msg_1.sendMsgAndWaitTxSimple)(this.ctx, sender, await manager.createSupplyToFactorialMsg(this.ctx, sender, params, value));
|
|
194
197
|
}
|
|
195
198
|
async sendBorrowFromFactorial(sender, params, value) {
|
|
196
|
-
return (0, send_msg_1.
|
|
199
|
+
return (0, send_msg_1.sendMsgAndWaitTxSimple)(this.ctx, sender, await manager.createBorrowFromFactorialMsg(this.ctx, sender, params, value));
|
|
197
200
|
}
|
|
198
201
|
async sendRepayToFactorial(sender, params, value) {
|
|
199
|
-
return (0, send_msg_1.
|
|
202
|
+
return (0, send_msg_1.sendMsgAndWaitTxSimple)(this.ctx, sender, await manager.createRepayToFactorialMsg(this.ctx, sender, params, value));
|
|
200
203
|
}
|
|
201
204
|
async sendWithdrawFromFactorial(sender, params, value) {
|
|
202
|
-
return (0, send_msg_1.
|
|
205
|
+
return (0, send_msg_1.sendMsgAndWaitTxSimple)(this.ctx, sender, await manager.createWithdrawFromFactorialMsg(this.ctx, sender, params, value));
|
|
203
206
|
}
|
|
204
207
|
async sendLiquidateToFactorial(sender, params, value) {
|
|
205
|
-
return (0, send_msg_1.
|
|
208
|
+
return (0, send_msg_1.sendMsgAndWaitTxSimple)(this.ctx, sender, await manager.createLiquidateToFactorialMsg(this.ctx, sender, params, value));
|
|
206
209
|
}
|
|
207
210
|
async sendDepositToVault(sender, params) {
|
|
208
|
-
return (0, send_msg_1.
|
|
211
|
+
return (0, send_msg_1.sendMsgAndWaitTxSimple)(this.ctx, sender, await manager.createDepositToVaultMsg(this.ctx, sender, params));
|
|
209
212
|
}
|
|
210
213
|
async sendWithdrawFromVault(sender, params) {
|
|
211
|
-
return (0, send_msg_1.
|
|
214
|
+
return (0, send_msg_1.sendMsgAndWaitTxSimple)(this.ctx, sender, await manager.createWithdrawFromVaultMsg(this.ctx, sender, params));
|
|
212
215
|
}
|
|
213
216
|
async sendDepositToVaultQueue(sender, params) {
|
|
214
|
-
return (0, send_msg_1.
|
|
217
|
+
return (0, send_msg_1.sendMsgAndWaitTxSimple)(this.ctx, sender, await manager.createDepositToVaultQueueMsg(this.ctx, sender, params));
|
|
215
218
|
}
|
|
216
219
|
async sendWithdrawFromVaultQueue(sender, params) {
|
|
217
|
-
return (0, send_msg_1.
|
|
220
|
+
return (0, send_msg_1.sendMsgAndWaitTxSimple)(this.ctx, sender, await manager.createWithdrawFromVaultQueueMsg(this.ctx, sender, params));
|
|
218
221
|
}
|
|
219
222
|
async sendDepositToVaultQueueCancel(sender, params) {
|
|
220
|
-
return (0, send_msg_1.
|
|
223
|
+
return (0, send_msg_1.sendMsgAndWaitTxSimple)(this.ctx, sender, await manager.createDepositToVaultQueueCancelMsg(this.ctx, sender, params));
|
|
221
224
|
}
|
|
222
225
|
async sendWithdrawFromVaultQueueCancel(sender, params) {
|
|
223
|
-
return (0, send_msg_1.
|
|
226
|
+
return (0, send_msg_1.sendMsgAndWaitTxSimple)(this.ctx, sender, await manager.createWithdrawFromVaultQueueCancelMsg(this.ctx, sender, params));
|
|
224
227
|
}
|
|
225
228
|
async sendCreateAmountRFQ(sender, params, value) {
|
|
226
|
-
return (0, send_msg_1.
|
|
229
|
+
return (0, send_msg_1.sendMsgAndWaitTxSimple)(this.ctx, sender, await manager.createAmountRFQMsg(this.ctx, sender, params, value));
|
|
227
230
|
}
|
|
228
231
|
async sendCreateSlippageRFQ(sender, params, value) {
|
|
229
|
-
return (0, send_msg_1.
|
|
232
|
+
return (0, send_msg_1.sendMsgAndWaitTxSimple)(this.ctx, sender, await manager.createSlippageRFQMsg(this.ctx, sender, params, value));
|
|
230
233
|
}
|
|
231
234
|
async sendCancelRFQ(sender, params, value) {
|
|
232
|
-
return (0, send_msg_1.
|
|
235
|
+
return (0, send_msg_1.sendMsgAndWaitTxSimple)(this.ctx, sender, await manager.createCancelRFQMsg(this.ctx, sender, params, value));
|
|
233
236
|
}
|
|
234
237
|
async sendUnwrapWTON(sender, params, value) {
|
|
235
238
|
return manager.sendUnwrapWTON(this.ctx, sender, params, value);
|
|
236
239
|
}
|
|
237
240
|
async sendConfirmQueue(sender, params) {
|
|
238
|
-
return (0, send_msg_1.
|
|
241
|
+
return (0, send_msg_1.sendMsgAndWaitTxSimple)(this.ctx, sender, await manager.createConfirmQueueMsg(this.ctx, sender, params));
|
|
239
242
|
}
|
|
240
243
|
async sendExecuteDepositQueue(sender, params) {
|
|
241
|
-
return (0, send_msg_1.
|
|
244
|
+
return (0, send_msg_1.sendMsgAndWaitTxSimple)(this.ctx, sender, await manager.createExecuteDepositQueueMsg(this.ctx, sender, params));
|
|
242
245
|
}
|
|
243
246
|
async sendExecuteWithdrawQueue(sender, params) {
|
|
244
|
-
return (0, send_msg_1.
|
|
247
|
+
return (0, send_msg_1.sendMsgAndWaitTxSimple)(this.ctx, sender, await manager.createExecuteWithdrawQueueMsg(this.ctx, sender, params));
|
|
245
248
|
}
|
|
246
249
|
// ============================================================
|
|
247
250
|
// User
|
|
248
251
|
// ============================================================
|
|
249
252
|
async sendDepositAsset(sender, params, value) {
|
|
250
|
-
|
|
253
|
+
const msg = await user.createDepositAssetMsg(this.ctx, sender, params, value);
|
|
254
|
+
const result = await (0, send_msg_1.sendMsgAndWaitTx)(this.ctx, sender, msg);
|
|
255
|
+
const asset = (0, utils_1.toAddress)(params.assetAddress);
|
|
256
|
+
return trace_1.StrategyVaultDepositTracer.create({
|
|
257
|
+
ctx: this.ctx,
|
|
258
|
+
msgBody: msg.input.body,
|
|
259
|
+
extHash: await result.getExternalHash(),
|
|
260
|
+
actor: sender.address,
|
|
261
|
+
asset,
|
|
262
|
+
vault: (0, utils_1.toAddress)(params.strategyVaultAddress),
|
|
263
|
+
isWTON: this.ctx.isWTON(asset),
|
|
264
|
+
});
|
|
251
265
|
}
|
|
252
266
|
async sendBurnVaultAsset(sender, params, value) {
|
|
253
|
-
|
|
267
|
+
const msg = await user.createBurnVaultAssetMsg(this.ctx, sender, params, value);
|
|
268
|
+
const result = await (0, send_msg_1.sendMsgAndWaitTx)(this.ctx, sender, msg);
|
|
269
|
+
return trace_1.StrategyVaultWithdrawTracer.create({
|
|
270
|
+
ctx: this.ctx,
|
|
271
|
+
msgBody: msg.input.body,
|
|
272
|
+
extHash: await result.getExternalHash(),
|
|
273
|
+
actor: sender.address,
|
|
274
|
+
withdrawAsset: (0, utils_1.toAddress)(params.withdrawAssetAddress),
|
|
275
|
+
vault: (0, utils_1.toAddress)(params.strategyVaultAddress),
|
|
276
|
+
isWTON: this.ctx.isWTON((0, utils_1.toAddress)(params.withdrawAssetAddress)),
|
|
277
|
+
});
|
|
254
278
|
}
|
|
255
279
|
async sendDepositQueue(sender, params) {
|
|
256
|
-
|
|
280
|
+
const msg = await user.createDepositQueueMsg(this.ctx, sender, params);
|
|
281
|
+
const result = await (0, send_msg_1.sendMsgAndWaitTx)(this.ctx, sender, msg);
|
|
282
|
+
const asset = (0, utils_1.toAddress)(params.assetAddress);
|
|
283
|
+
return trace_1.StrategyVaultDepositQueueTracer.create({
|
|
284
|
+
ctx: this.ctx,
|
|
285
|
+
msgBody: msg.input.body,
|
|
286
|
+
extHash: await result.getExternalHash(),
|
|
287
|
+
actor: sender.address,
|
|
288
|
+
asset,
|
|
289
|
+
vault: (0, utils_1.toAddress)(params.strategyVaultAddress),
|
|
290
|
+
isWTON: this.ctx.isWTON(asset),
|
|
291
|
+
});
|
|
257
292
|
}
|
|
258
293
|
async sendWithdrawQueue(sender, params) {
|
|
259
|
-
|
|
294
|
+
const msg = await user.createWithdrawQueueMsg(this.ctx, sender, params);
|
|
295
|
+
const result = await (0, send_msg_1.sendMsgAndWaitTx)(this.ctx, sender, msg);
|
|
296
|
+
return trace_1.StrategyVaultWithdrawQueueTracer.create({
|
|
297
|
+
ctx: this.ctx,
|
|
298
|
+
msgBody: msg.input.body,
|
|
299
|
+
extHash: await result.getExternalHash(),
|
|
300
|
+
actor: sender.address,
|
|
301
|
+
vault: (0, utils_1.toAddress)(params.strategyVaultAddress),
|
|
302
|
+
});
|
|
260
303
|
}
|
|
261
304
|
async sendCancelDepositQueue(sender, params) {
|
|
262
|
-
|
|
305
|
+
const msg = await user.createCancelDepositQueueMsg(this.ctx, params);
|
|
306
|
+
const result = await (0, send_msg_1.sendMsgAndWaitTx)(this.ctx, sender, msg);
|
|
307
|
+
const asset = (0, utils_1.toAddress)(params.assetAddress);
|
|
308
|
+
return trace_1.StrategyVaultCancelDepositQueueTracer.create({
|
|
309
|
+
ctx: this.ctx,
|
|
310
|
+
msgBody: msg.input.body,
|
|
311
|
+
extHash: await result.getExternalHash(),
|
|
312
|
+
actor: sender.address,
|
|
313
|
+
asset,
|
|
314
|
+
vault: (0, utils_1.toAddress)(params.strategyVaultAddress),
|
|
315
|
+
isWTON: this.ctx.isWTON(asset),
|
|
316
|
+
});
|
|
263
317
|
}
|
|
264
318
|
async sendCancelWithdrawQueue(sender, params) {
|
|
265
|
-
|
|
319
|
+
const msg = await user.createCancelWithdrawQueueMsg(this.ctx, params);
|
|
320
|
+
const result = await (0, send_msg_1.sendMsgAndWaitTx)(this.ctx, sender, msg);
|
|
321
|
+
return trace_1.StrategyVaultCancelWithdrawQueueTracer.create({
|
|
322
|
+
ctx: this.ctx,
|
|
323
|
+
msgBody: msg.input.body,
|
|
324
|
+
extHash: await result.getExternalHash(),
|
|
325
|
+
actor: sender.address,
|
|
326
|
+
vault: (0, utils_1.toAddress)(params.strategyVaultAddress),
|
|
327
|
+
});
|
|
266
328
|
}
|
|
267
329
|
async getValuationContext(vaultAddress) {
|
|
268
|
-
return query.getValuationContext(this.ctx, vaultAddress);
|
|
330
|
+
return query.getValuationContext(this.ctx, (0, utils_1.toAddress)(vaultAddress));
|
|
269
331
|
}
|
|
270
332
|
async getPrice(vaultAddress) {
|
|
271
333
|
return query.getPrice(this.ctx, vaultAddress);
|
|
@@ -273,5 +335,8 @@ class StrategyVaultV1 {
|
|
|
273
335
|
async getUnderlyingPrices(vaultAddress) {
|
|
274
336
|
return query.getUnderlyingPrices(this.ctx, vaultAddress);
|
|
275
337
|
}
|
|
338
|
+
async getNativeAmountDecomposedContext(vaultAddress) {
|
|
339
|
+
return query.getNativeAmountDecomposedContext(this.ctx, vaultAddress);
|
|
340
|
+
}
|
|
276
341
|
}
|
|
277
|
-
exports.
|
|
342
|
+
exports.StrategyVaultServiceV1 = StrategyVaultServiceV1;
|
|
@@ -4,18 +4,18 @@ import { AddressInput, AddressLike } from "../../contracts/common/type";
|
|
|
4
4
|
import { StrategyVaultState } from "../../contracts/vault/strategy-vault";
|
|
5
5
|
import { PoolState } from "../../contracts/core/pool/type";
|
|
6
6
|
import { OracleExposures } from "../composite-oracle/computation";
|
|
7
|
-
import {
|
|
7
|
+
import { IVaultStateContext } from "../../common/types";
|
|
8
8
|
export { OracleExposures, createOracleExposures } from "../composite-oracle/computation";
|
|
9
9
|
/**
|
|
10
10
|
* Build oracle params Cell from pre-fetched data
|
|
11
11
|
* Pure computation - no network calls
|
|
12
12
|
*/
|
|
13
|
-
export declare function buildOracleParamsCellFromData(assets: string[], oracleConfig: any, vaultPositions:
|
|
13
|
+
export declare function buildOracleParamsCellFromData(assets: string[], oracleConfig: any, vaultPositions: Record<string, IVaultStateContext>, extraPools?: string[]): Promise<Cell>;
|
|
14
14
|
/**
|
|
15
15
|
* Build oracle params with bucket from pre-fetched data
|
|
16
16
|
* Pure computation - no network calls
|
|
17
17
|
*/
|
|
18
|
-
export declare function buildOracleParamsWithBucketFromData(assets: string[], oracleConfig: any, vaultPositions:
|
|
18
|
+
export declare function buildOracleParamsWithBucketFromData(assets: string[], oracleConfig: any, vaultPositions: Record<string, IVaultStateContext>, initialBucket?: OracleExposures, extraPools?: string[]): {
|
|
19
19
|
oracleParamsPromise: Promise<Cell>;
|
|
20
20
|
bucket: OracleExposures;
|
|
21
21
|
};
|
|
@@ -114,6 +114,7 @@ class OracleHelper {
|
|
|
114
114
|
const oracleConfig = vaultData.oracleConfig;
|
|
115
115
|
const allAssets = [...Object.keys(vaultData.assets), ...additionalAssets];
|
|
116
116
|
const { vaultAssets } = (0, computation_1.separateAssets)(allAssets, oracleConfig);
|
|
117
|
+
vaultAssets.push(vaultData.address.toString()); // include self
|
|
117
118
|
// Fetch
|
|
118
119
|
const vaultPositions = await this.fetcher.fetchVaultPositions(vaultAssets);
|
|
119
120
|
// Compute
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Dictionary } from "@ton/core";
|
|
2
2
|
import { AffluentContext } from "../../../context";
|
|
3
3
|
import { StrategyVault } from "../../../contracts/vault/strategy-vault";
|
|
4
|
-
import { SetOwnerParams, SetGuardianAddressParams, SetManagerParams, SetPrivateVaultParams, SetWhitelistedMintersParams, SetMaxLeverageRatioParams, ExecuteOwnerActionParams, RevertOwnerActionParams, SetTimelockParams, SetManagementFeeRecipientAddressParams, SetProtocolFeeRatePerYearParams, SetProtocolFeeManagerAddressParams, SetFactorialPoolConfigParams,
|
|
4
|
+
import { SetOwnerParams, SetGuardianAddressParams, SetManagerParams, SetPrivateVaultParams, SetWhitelistedMintersParams, SetMaxLeverageRatioParams, ExecuteOwnerActionParams, RevertOwnerActionParams, SetTimelockParams, SetManagementFeeRecipientAddressParams, SetProtocolFeeRatePerYearParams, SetProtocolFeeManagerAddressParams, SetFactorialPoolConfigParams, SetAssetConfigV2Params, SetRFQConfigParams, SetManagementFeeRatePerYearParams, SetDepositCloseTimestampParams, SetWithdrawOpenTimestampParams, SetGasConfigParams, SetOracleConfigParams, SetWalletCodeParams, SetDataAggregatorCodeParams, SetRFQCodeParams, SetContentParams, UpgradeCodeParams, CollectProtocolFeeParams, ClaimManagementFeeParams } from "./types";
|
|
5
5
|
export * from "./types";
|
|
6
6
|
export declare function createSetOwnerMsg(ctx: AffluentContext, params: SetOwnerParams): Promise<{
|
|
7
7
|
opts: {
|
|
@@ -135,7 +135,7 @@ export declare function createSetFactorialPoolConfigMsg(ctx: AffluentContext, pa
|
|
|
135
135
|
body: import("@ton/core").Cell;
|
|
136
136
|
};
|
|
137
137
|
}>;
|
|
138
|
-
export declare function createSetAssetConfigMsg(ctx: AffluentContext, params:
|
|
138
|
+
export declare function createSetAssetConfigMsg(ctx: AffluentContext, params: SetAssetConfigV2Params, value?: bigint): Promise<{
|
|
139
139
|
opts: {
|
|
140
140
|
vault: import("@ton/core").OpenedContract<StrategyVault>;
|
|
141
141
|
};
|
|
@@ -192,7 +192,7 @@ async function createSetAssetConfigMsg(ctx, params, value) {
|
|
|
192
192
|
const vault = ctx.getByContract(strategy_vault_1.StrategyVault, (0, utils_1.toAddress)(params.strategyVaultAddress));
|
|
193
193
|
const to = vault.address;
|
|
194
194
|
const resolvedValue = value ?? (0, core_1.toNano)(0.02);
|
|
195
|
-
const body = strategy_vault_1.StrategyVault.
|
|
195
|
+
const body = strategy_vault_1.StrategyVault.createSetAssetConfigV2MsgBody((0, utils_1.toAddress)(params.assetAddress), params.isWhitelisted, params.isDepositable, params.isWithdrawable, params.isDepositQueueActivated, params.isWithdrawQueueActivated, params.exposureCap, params.queryId);
|
|
196
196
|
return {
|
|
197
197
|
opts: { vault },
|
|
198
198
|
input: { to, value: resolvedValue, body },
|
|
@@ -78,6 +78,10 @@ export type SetAssetConfigParams = {
|
|
|
78
78
|
exposureCap: number;
|
|
79
79
|
queryId?: number;
|
|
80
80
|
};
|
|
81
|
+
export type SetAssetConfigV2Params = SetAssetConfigParams & {
|
|
82
|
+
isDepositQueueActivated: boolean;
|
|
83
|
+
isWithdrawQueueActivated: boolean;
|
|
84
|
+
};
|
|
81
85
|
export type SetRFQConfigParams = {
|
|
82
86
|
strategyVaultAddress: AddressInput;
|
|
83
87
|
priceDeviationTolerance: bigint;
|
|
@@ -4,7 +4,7 @@ import { AddressInput, AddressLike } from "../../contracts/common/type";
|
|
|
4
4
|
import { JettonWallet } from "../../contracts/jetton/jetton-wallet";
|
|
5
5
|
import { RFQAuction } from "../../contracts/rfq/rfq_auction";
|
|
6
6
|
import { StrategyVault } from "../../contracts/vault/strategy-vault";
|
|
7
|
-
import {
|
|
7
|
+
import { VaultNativeAmountDecomposedContext, VaultNativeValueDecomposedContext, VaultStateContext } from "../../common/transform";
|
|
8
8
|
export declare function getVault(ctx: AffluentContext, strategyVaultAddress: AddressInput): OpenedContract<StrategyVault>;
|
|
9
9
|
export declare function getVaultData(ctx: AffluentContext, strategyVaultAddress: AddressLike): Promise<{
|
|
10
10
|
globalDepositValueCap: bigint;
|
|
@@ -137,149 +137,20 @@ export declare function splitPureAndVaultAsset(ctx: AffluentContext, addresses:
|
|
|
137
137
|
vaultAssetAddresses: string[];
|
|
138
138
|
pureAssetAddresses: string[];
|
|
139
139
|
}>;
|
|
140
|
-
export declare function getPoolDataForStrategyVault(ctx: AffluentContext, strategyVaultAddress: AddressInput): Promise<
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
depositQueueManager: import("../../contracts/vault/strategy-vault").QueueManager;
|
|
153
|
-
withdrawQueueManager: import("../../contracts/vault/strategy-vault").QueueManager;
|
|
154
|
-
interactiveVaultDict: Record<string, import("../../contracts/vault/strategy-vault").InteractiveVaultConfigItem>;
|
|
155
|
-
xchainConnectorAddress: Address | null;
|
|
156
|
-
xchainConfig: Record<string, {
|
|
157
|
-
connected: boolean;
|
|
158
|
-
xchainAccountAddress: bigint;
|
|
159
|
-
oftConfig: Map<string, {
|
|
160
|
-
destinationAddress: Address;
|
|
161
|
-
forwardGas: bigint;
|
|
162
|
-
forwardPayload?: import("@ton/core").Cell | null;
|
|
163
|
-
lzTransferFeeRate?: bigint;
|
|
164
|
-
}> | null;
|
|
165
|
-
strategyConfig: Map<bigint, {
|
|
166
|
-
isExecutable: boolean;
|
|
167
|
-
}> | null;
|
|
168
|
-
afterStrategyConfig: Map<bigint, {
|
|
169
|
-
isExecutable: boolean;
|
|
170
|
-
}> | null;
|
|
171
|
-
lzGasFee: bigint;
|
|
172
|
-
}>;
|
|
173
|
-
xchainUpdateHash: bigint;
|
|
174
|
-
owner: Address;
|
|
175
|
-
manager: Address;
|
|
176
|
-
assets: Record<string, import("../../contracts/vault/strategy-vault").AssetV2>;
|
|
177
|
-
factorialPools: Record<string, import("../../contracts/vault/strategy-vault").FactorialPool>;
|
|
178
|
-
aggregatorIndex: bigint;
|
|
179
|
-
content: import("@ton/core").Cell;
|
|
180
|
-
totalSupply: bigint;
|
|
181
|
-
oracleConfig: import("@ton/core").Cell | import("../../contracts/oracle/redstone-onchain-oracle/type").RedstoneOnchainOracleConfig | import("../../contracts/oracle/redstone-oracle/type").RedstonOracleConfig;
|
|
182
|
-
rfqConfig: {
|
|
183
|
-
priceDeviationTolerance: number;
|
|
184
|
-
rfqEventEmitterAddress: string | null;
|
|
185
|
-
} | null;
|
|
186
|
-
gasConfig: Record<string, bigint> | null;
|
|
187
|
-
isPrivateVault: boolean;
|
|
188
|
-
depositCloseTimestamp: number;
|
|
189
|
-
withdrawOpenTimestamp: number;
|
|
190
|
-
whitelistedMinters: import("@ton/core").Dictionary<Address, Boolean>;
|
|
191
|
-
lastCollectTime: number;
|
|
192
|
-
managementFeeRatePerYear: number;
|
|
193
|
-
protocolFeeRatePerYear: number;
|
|
194
|
-
collectedManagementFee: bigint;
|
|
195
|
-
collectedProtocolFee: bigint;
|
|
196
|
-
rfqCode: import("@ton/core").Cell;
|
|
197
|
-
walletCode: import("@ton/core").Cell;
|
|
198
|
-
dataAggregatorCode: import("@ton/core").Cell;
|
|
199
|
-
protocolFeeManagerAddress: Address;
|
|
200
|
-
rfqIndex: bigint;
|
|
201
|
-
isExecutingStrategy: boolean;
|
|
202
|
-
maxLeverageRatio: number;
|
|
203
|
-
assetWalletDict: Record<string, string>;
|
|
204
|
-
walletAssetDict: Record<string, string>;
|
|
205
|
-
managementFeeRecipientAddress: Address | null;
|
|
206
|
-
guardianAddress: Address | null;
|
|
207
|
-
timelock: bigint;
|
|
208
|
-
pendingOwnerActionIndex: bigint;
|
|
209
|
-
pendingOwnerActionCount: bigint;
|
|
210
|
-
pendingOwnerAction: any;
|
|
211
|
-
getFactorialPoolAsset: (poolAddress: Address, assetAddress: Address) => import("../../contracts/vault/strategy-vault").FactorialPoolShare;
|
|
212
|
-
getAsset: (assetAddress: Address) => import("../../contracts/vault/strategy-vault").AssetV2;
|
|
213
|
-
version: string;
|
|
214
|
-
address: Address;
|
|
215
|
-
balance: bigint;
|
|
216
|
-
code: import("@ton/core").Cell;
|
|
217
|
-
} | {
|
|
218
|
-
globalDepositValueCap: bigint;
|
|
219
|
-
withdrawFeeRate: number;
|
|
220
|
-
queueWithdrawFeeRate: number;
|
|
221
|
-
depositQueueManager: import("../../contracts/vault/strategy-vault").QueueManager;
|
|
222
|
-
withdrawQueueManager: import("../../contracts/vault/strategy-vault").QueueManager;
|
|
223
|
-
interactiveVaultDict: Record<string, import("../../contracts/vault/strategy-vault").InteractiveVaultConfigItem>;
|
|
224
|
-
xchainConnectorAddress: null;
|
|
225
|
-
xchainConfig: null;
|
|
226
|
-
xchainUpdateHash: bigint;
|
|
227
|
-
owner: Address;
|
|
228
|
-
manager: Address;
|
|
229
|
-
assets: Record<string, import("../../contracts/vault/strategy-vault").AssetV2>;
|
|
230
|
-
factorialPools: Record<string, import("../../contracts/vault/strategy-vault").FactorialPool>;
|
|
231
|
-
aggregatorIndex: bigint;
|
|
232
|
-
content: import("@ton/core").Cell;
|
|
233
|
-
totalSupply: bigint;
|
|
234
|
-
oracleConfig: import("@ton/core").Cell | import("../../contracts/oracle/redstone-onchain-oracle/type").RedstoneOnchainOracleConfig | import("../../contracts/oracle/redstone-oracle/type").RedstonOracleConfig;
|
|
235
|
-
rfqConfig: {
|
|
236
|
-
priceDeviationTolerance: number;
|
|
237
|
-
rfqEventEmitterAddress: string | null;
|
|
238
|
-
} | null;
|
|
239
|
-
gasConfig: Record<string, bigint> | null;
|
|
240
|
-
isPrivateVault: boolean;
|
|
241
|
-
depositCloseTimestamp: number;
|
|
242
|
-
withdrawOpenTimestamp: number;
|
|
243
|
-
whitelistedMinters: import("@ton/core").Dictionary<Address, Boolean>;
|
|
244
|
-
lastCollectTime: number;
|
|
245
|
-
managementFeeRatePerYear: number;
|
|
246
|
-
protocolFeeRatePerYear: number;
|
|
247
|
-
collectedManagementFee: bigint;
|
|
248
|
-
collectedProtocolFee: bigint;
|
|
249
|
-
rfqCode: import("@ton/core").Cell;
|
|
250
|
-
walletCode: import("@ton/core").Cell;
|
|
251
|
-
dataAggregatorCode: import("@ton/core").Cell;
|
|
252
|
-
protocolFeeManagerAddress: Address;
|
|
253
|
-
rfqIndex: bigint;
|
|
254
|
-
isExecutingStrategy: boolean;
|
|
255
|
-
maxLeverageRatio: number;
|
|
256
|
-
assetWalletDict: Record<string, string>;
|
|
257
|
-
walletAssetDict: Record<string, string>;
|
|
258
|
-
managementFeeRecipientAddress: Address | null;
|
|
259
|
-
guardianAddress: Address | null;
|
|
260
|
-
timelock: bigint;
|
|
261
|
-
pendingOwnerActionIndex: bigint;
|
|
262
|
-
pendingOwnerActionCount: bigint;
|
|
263
|
-
pendingOwnerAction: any;
|
|
264
|
-
getFactorialPoolAsset: (poolAddress: Address, assetAddress: Address) => import("../../contracts/vault/strategy-vault").FactorialPoolShare;
|
|
265
|
-
getAsset: (assetAddress: Address) => import("../../contracts/vault/strategy-vault").AssetV2;
|
|
266
|
-
version: string;
|
|
267
|
-
address: Address;
|
|
268
|
-
balance: bigint;
|
|
269
|
-
code: import("@ton/core").Cell;
|
|
270
|
-
};
|
|
271
|
-
totalSupply: bigint;
|
|
272
|
-
reserves: {
|
|
273
|
-
[k: string]: bigint;
|
|
140
|
+
export declare function getPoolDataForStrategyVault(ctx: AffluentContext, strategyVaultAddress: AddressInput): Promise<{
|
|
141
|
+
[k: string]: import("../..").PoolState;
|
|
142
|
+
}>;
|
|
143
|
+
export declare function getValuationContext(ctx: AffluentContext, vaultAddress: Address): Promise<{
|
|
144
|
+
vaultStateContext: VaultStateContext;
|
|
145
|
+
amountContext: import("../../common/transform").VaultAmountContext;
|
|
146
|
+
valueContext: import("../../common/transform").VaultValueContext;
|
|
147
|
+
nativeValueDecomposedContext: VaultNativeValueDecomposedContext;
|
|
148
|
+
nativeAmountDecomposedContext: VaultNativeAmountDecomposedContext;
|
|
149
|
+
priceInfo: import("../composite-oracle").CompositeOracleResult & {
|
|
150
|
+
targetVaultAddress: string;
|
|
151
|
+
price: bigint;
|
|
274
152
|
};
|
|
275
|
-
poolPositions: Record<string, Record<string, {
|
|
276
|
-
supplyShare: bigint;
|
|
277
|
-
supplyAmount: bigint;
|
|
278
|
-
borrowShare: bigint;
|
|
279
|
-
borrowAmount: bigint;
|
|
280
|
-
}>>;
|
|
281
|
-
price: bigint;
|
|
282
|
-
priceInfo: import("../composite-oracle").Prices;
|
|
283
153
|
}>;
|
|
284
154
|
export declare function getPrice(ctx: AffluentContext, strategyVaultAddress: AddressInput): Promise<bigint>;
|
|
285
155
|
export declare function getUnderlyingPrices(ctx: AffluentContext, strategyVaultAddress: AddressInput): Promise<any>;
|
|
156
|
+
export declare function getNativeAmountDecomposedContext(ctx: AffluentContext, strategyVaultAddress: AddressInput): Promise<VaultNativeAmountDecomposedContext>;
|