@gearbox-protocol/sdk 3.0.0-next.49 → 3.0.0-next.50

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.
@@ -39,6 +39,7 @@ export declare class CreditManagerData {
39
39
  isQuoted(token: string): boolean;
40
40
  encodeAddCollateralV2(tokenAddress: string, amount: bigint): MultiCall;
41
41
  encodeAddCollateralV3(tokenAddress: string, amount: bigint): MultiCall;
42
+ encodeAddCollateralWithPermitV3(tokenAddress: string, amount: bigint, deadline: bigint, v: bigint | number, r: string, s: string): MultiCall;
42
43
  encodeIncreaseDebtV2(amount: bigint): MultiCall;
43
44
  encodeIncreaseDebtV3(amount: bigint): MultiCall;
44
45
  encodeDecreaseDebtV2(amount: bigint): MultiCall;
@@ -128,6 +128,12 @@ class CreditManagerData {
128
128
  callData: types_1.ICreditFacadeV3Multicall__factory.createInterface().encodeFunctionData("addCollateral", [tokenAddress, amount]),
129
129
  };
130
130
  }
131
+ encodeAddCollateralWithPermitV3(tokenAddress, amount, deadline, v, r, s) {
132
+ return {
133
+ target: this.creditFacade,
134
+ callData: types_1.ICreditFacadeV3Multicall__factory.createInterface().encodeFunctionData("addCollateralWithPermit", [tokenAddress, amount, deadline, v, r, s]),
135
+ };
136
+ }
131
137
  encodeIncreaseDebtV2(amount) {
132
138
  return {
133
139
  target: this.creditFacade,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "3.0.0-next.49",
3
+ "version": "3.0.0-next.50",
4
4
  "description": "Gearbox SDK",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",