@defisaver/sdk 1.0.12 → 1.0.13

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.
@@ -12,5 +12,5 @@ export declare class MorphoAaveV2BorrowAction extends Action {
12
12
  * @param to - Borrowed tokens will be sent to this address
13
13
  * @param maxGasForMatching - Max gas to spend on p2p matching
14
14
  */
15
- constructor(tokenAddr: EthAddress, amount: uint256, to: EthAddress, maxGasForMatching: uint256);
15
+ constructor(tokenAddr: EthAddress, amount: uint256, to: EthAddress, maxGasForMatching?: uint256);
16
16
  }
@@ -12,7 +12,7 @@ export class MorphoAaveV2BorrowAction extends Action {
12
12
  * @param to - Borrowed tokens will be sent to this address
13
13
  * @param maxGasForMatching - Max gas to spend on p2p matching
14
14
  */
15
- constructor(tokenAddr, amount, to, maxGasForMatching) {
15
+ constructor(tokenAddr, amount, to, maxGasForMatching = '0') {
16
16
  super('MorphoAaveV2Borrow', getAddr('MorphoAaveV2Borrow'), ['address', 'uint256', 'address', 'uint256'], [tokenAddr, amount, to, maxGasForMatching]);
17
17
  this.mappableArgs = [
18
18
  this.args[0],
@@ -13,7 +13,7 @@ export declare class MorphoAaveV2SupplyAction extends Action {
13
13
  * @param onBehalf - Tokens will be supplied to this address' position (defaults to sender's proxy)
14
14
  * @param maxGasForMatching - Max gas to spend on p2p matching
15
15
  */
16
- constructor(tokenAddr: EthAddress, amount: uint256, from: EthAddress, onBehalf: string | undefined, maxGasForMatching: uint256);
16
+ constructor(tokenAddr: EthAddress, amount: uint256, from: EthAddress, onBehalf?: EthAddress, maxGasForMatching?: uint256);
17
17
  getAssetsToApprove(): Promise<{
18
18
  asset: any;
19
19
  owner: any;
@@ -23,7 +23,7 @@ export class MorphoAaveV2SupplyAction extends Action {
23
23
  * @param onBehalf - Tokens will be supplied to this address' position (defaults to sender's proxy)
24
24
  * @param maxGasForMatching - Max gas to spend on p2p matching
25
25
  */
26
- constructor(tokenAddr, amount, from, onBehalf = getAddr('Empty'), maxGasForMatching) {
26
+ constructor(tokenAddr, amount, from, onBehalf = getAddr('Empty'), maxGasForMatching = '0') {
27
27
  super('MorphoAaveV2Supply', getAddr('MorphoAaveV2Supply'), ['address', 'uint256', 'address', 'address', 'uint256'], [tokenAddr, amount, from, onBehalf, maxGasForMatching]);
28
28
  this.mappableArgs = [
29
29
  this.args[0],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defisaver/sdk",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "",
5
5
  "main": "./umd/index.js",
6
6
  "module": "./esm/src/index.js",
@@ -18,7 +18,7 @@ export class MorphoAaveV2BorrowAction extends Action {
18
18
  tokenAddr:EthAddress,
19
19
  amount:uint256,
20
20
  to:EthAddress,
21
- maxGasForMatching:uint256,
21
+ maxGasForMatching:uint256 = '0',
22
22
  ) {
23
23
  super(
24
24
  'MorphoAaveV2Borrow',
@@ -21,7 +21,7 @@ export class MorphoAaveV2SupplyAction extends Action {
21
21
  amount:uint256,
22
22
  from:EthAddress,
23
23
  onBehalf:EthAddress = getAddr('Empty'),
24
- maxGasForMatching:uint256,
24
+ maxGasForMatching:uint256 = '0',
25
25
  ) {
26
26
  super(
27
27
  'MorphoAaveV2Supply',
package/umd/index.js CHANGED
@@ -8379,7 +8379,7 @@ class MorphoAaveV2SupplyAction extends _Action__WEBPACK_IMPORTED_MODULE_1__.Acti
8379
8379
  */
8380
8380
  constructor(tokenAddr, amount, from) {
8381
8381
  var onBehalf = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : (0,_addresses__WEBPACK_IMPORTED_MODULE_2__.getAddr)('Empty');
8382
- var maxGasForMatching = arguments.length > 4 ? arguments[4] : undefined;
8382
+ var maxGasForMatching = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : '0';
8383
8383
  super('MorphoAaveV2Supply', (0,_addresses__WEBPACK_IMPORTED_MODULE_2__.getAddr)('MorphoAaveV2Supply'), ['address', 'uint256', 'address', 'address', 'uint256'], [tokenAddr, amount, from, onBehalf, maxGasForMatching]);
8384
8384
  this.mappableArgs = [this.args[0], this.args[1], this.args[2], this.args[3]];
8385
8385
  }
@@ -8449,7 +8449,8 @@ class MorphoAaveV2BorrowAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Acti
8449
8449
  * @param to - Borrowed tokens will be sent to this address
8450
8450
  * @param maxGasForMatching - Max gas to spend on p2p matching
8451
8451
  */
8452
- constructor(tokenAddr, amount, to, maxGasForMatching) {
8452
+ constructor(tokenAddr, amount, to) {
8453
+ var maxGasForMatching = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '0';
8453
8454
  super('MorphoAaveV2Borrow', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('MorphoAaveV2Borrow'), ['address', 'uint256', 'address', 'uint256'], [tokenAddr, amount, to, maxGasForMatching]);
8454
8455
  this.mappableArgs = [this.args[0], this.args[1], this.args[2]];
8455
8456
  }