@gearbox-protocol/sdk 14.12.0-next.16 → 14.12.0-next.17

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.
@@ -1598,8 +1598,7 @@ class CreditAccountsServiceV310 extends import_base.SDKConstruct {
1598
1598
  */
1599
1599
  assembleCaOperations({
1600
1600
  operations,
1601
- creditFacade,
1602
- withdrawTo
1601
+ creditFacade
1603
1602
  }) {
1604
1603
  const calls = [];
1605
1604
  for (const op of operations) {
@@ -1625,7 +1624,7 @@ class CreditAccountsServiceV310 extends import_base.SDKConstruct {
1625
1624
  creditFacade,
1626
1625
  op.token,
1627
1626
  op.amount,
1628
- withdrawTo
1627
+ op.to
1629
1628
  )
1630
1629
  );
1631
1630
  break;
@@ -1593,8 +1593,7 @@ class CreditAccountsServiceV310 extends SDKConstruct {
1593
1593
  */
1594
1594
  assembleCaOperations({
1595
1595
  operations,
1596
- creditFacade,
1597
- withdrawTo
1596
+ creditFacade
1598
1597
  }) {
1599
1598
  const calls = [];
1600
1599
  for (const op of operations) {
@@ -1620,7 +1619,7 @@ class CreditAccountsServiceV310 extends SDKConstruct {
1620
1619
  creditFacade,
1621
1620
  op.token,
1622
1621
  op.amount,
1623
- withdrawTo
1622
+ op.to
1624
1623
  )
1625
1624
  );
1626
1625
  break;
@@ -221,7 +221,7 @@ export declare class CreditAccountsServiceV310 extends SDKConstruct implements I
221
221
  /**
222
222
  * {@inheritDoc ICreditAccountsService.assembleCaOperations}
223
223
  */
224
- assembleCaOperations({ operations, creditFacade, withdrawTo, }: AssembleCaOperationsProps): MultiCall[];
224
+ assembleCaOperations({ operations, creditFacade, }: AssembleCaOperationsProps): MultiCall[];
225
225
  /**
226
226
  * {@inheritDoc ICreditAccountsService.executeCaUpdate}
227
227
  */
@@ -730,6 +730,7 @@ export type EncodableCreditAccountOperation = {
730
730
  type: "withdrawCollateral";
731
731
  token: Address;
732
732
  amount: bigint;
733
+ to: Address;
733
734
  } | {
734
735
  type: "swap";
735
736
  calls: Array<MultiCall>;
@@ -750,7 +751,6 @@ export type EncodableCreditAccountOperation = {
750
751
  export type AssembleCaOperationsProps = {
751
752
  operations: Array<EncodableCreditAccountOperation>;
752
753
  creditFacade: Address;
753
- withdrawTo: Address;
754
754
  };
755
755
  export interface ICreditAccountsService extends Construct {
756
756
  sdk: OnchainSDK;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "14.12.0-next.16",
3
+ "version": "14.12.0-next.17",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "repository": {