@gearbox-protocol/sdk 11.6.7 → 11.6.8
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.
|
@@ -332,6 +332,8 @@ class TxOpenMultitokenAccount extends import_eventOrTx.EVMTx {
|
|
|
332
332
|
underlyingToken;
|
|
333
333
|
assets;
|
|
334
334
|
withdrawDebt;
|
|
335
|
+
targetToken;
|
|
336
|
+
creditManager;
|
|
335
337
|
constructor(opts) {
|
|
336
338
|
super(opts);
|
|
337
339
|
this.borrowedAmount = opts.borrowedAmount;
|
|
@@ -339,6 +341,8 @@ class TxOpenMultitokenAccount extends import_eventOrTx.EVMTx {
|
|
|
339
341
|
this.creditManagerName = opts.creditManagerName;
|
|
340
342
|
this.assets = opts.assets.map((a) => opts.tokensList[a]);
|
|
341
343
|
this.withdrawDebt = opts.withdrawDebt;
|
|
344
|
+
this.targetToken = opts.targetToken;
|
|
345
|
+
this.creditManager = opts.creditManager;
|
|
342
346
|
}
|
|
343
347
|
_toString() {
|
|
344
348
|
const assetSymbols = this.assets.reduce((acc, asset) => {
|
|
@@ -282,6 +282,8 @@ class TxOpenMultitokenAccount extends EVMTx {
|
|
|
282
282
|
underlyingToken;
|
|
283
283
|
assets;
|
|
284
284
|
withdrawDebt;
|
|
285
|
+
targetToken;
|
|
286
|
+
creditManager;
|
|
285
287
|
constructor(opts) {
|
|
286
288
|
super(opts);
|
|
287
289
|
this.borrowedAmount = opts.borrowedAmount;
|
|
@@ -289,6 +291,8 @@ class TxOpenMultitokenAccount extends EVMTx {
|
|
|
289
291
|
this.creditManagerName = opts.creditManagerName;
|
|
290
292
|
this.assets = opts.assets.map((a) => opts.tokensList[a]);
|
|
291
293
|
this.withdrawDebt = opts.withdrawDebt;
|
|
294
|
+
this.targetToken = opts.targetToken;
|
|
295
|
+
this.creditManager = opts.creditManager;
|
|
292
296
|
}
|
|
293
297
|
_toString() {
|
|
294
298
|
const assetSymbols = this.assets.reduce((acc, asset) => {
|
|
@@ -133,6 +133,8 @@ interface TxOpenMultitokenAccountProps extends EVMTxProps {
|
|
|
133
133
|
underlyingToken: Address;
|
|
134
134
|
assets: Array<Address>;
|
|
135
135
|
withdrawDebt: boolean;
|
|
136
|
+
targetToken: Address | undefined;
|
|
137
|
+
creditManager: Address;
|
|
136
138
|
tokensList: Record<Address, TokenData>;
|
|
137
139
|
}
|
|
138
140
|
export declare class TxOpenMultitokenAccount extends EVMTx {
|
|
@@ -141,6 +143,8 @@ export declare class TxOpenMultitokenAccount extends EVMTx {
|
|
|
141
143
|
readonly underlyingToken: TokenData;
|
|
142
144
|
readonly assets: Array<TokenData>;
|
|
143
145
|
readonly withdrawDebt: boolean;
|
|
146
|
+
readonly targetToken: Address | undefined;
|
|
147
|
+
readonly creditManager: Address;
|
|
144
148
|
constructor(opts: TxOpenMultitokenAccountProps);
|
|
145
149
|
_toString(): string;
|
|
146
150
|
serialize(): TxSerialized;
|