@gearbox-protocol/sdk 1.15.24 → 1.15.25

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.
@@ -2,7 +2,7 @@ import { BigNumber } from "ethers";
2
2
  import { SupportedContract } from "../contracts/contracts";
3
3
  import { EVMTx, EVMTxProps } from "./eventOrTx";
4
4
  export interface TxSerialized {
5
- type: "TxAddLiquidity" | "TxRemoveLiquidity" | "TxSwap" | "TxAddCollateral" | "TxIncreaseBorrowAmount" | "TxOpenAccount" | "TxRepayAccount" | "TxCloseAccount" | "TxApprove" | "TxOpenMultitokenAccount" | "TxClaimReward";
5
+ type: "TxAddLiquidity" | "TxRemoveLiquidity" | "TxSwap" | "TxAddCollateral" | "TxIncreaseBorrowAmount" | "TxOpenAccount" | "TxRepayAccount" | "TxCloseAccount" | "TxApprove" | "TxOpenMultitokenAccount" | "TxClaimReward" | "TxClaimNFT";
6
6
  content: string;
7
7
  }
8
8
  export declare class TxSerializer {
@@ -121,6 +121,12 @@ export declare class TxClaimReward extends EVMTx {
121
121
  toString(): string;
122
122
  serialize(): TxSerialized;
123
123
  }
124
+ declare type TxClaimNFTProps = EVMTxProps;
125
+ export declare class TxClaimNFT extends EVMTx {
126
+ constructor(opts: TxClaimNFTProps);
127
+ toString(): string;
128
+ serialize(): TxSerialized;
129
+ }
124
130
  interface RepayAccountProps extends EVMTxProps {
125
131
  creditManager: string;
126
132
  }
@@ -15,7 +15,7 @@ var __extends = (this && this.__extends) || (function () {
15
15
  };
16
16
  })();
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.TxApprove = exports.TxCloseAccount = exports.TxRepayAccount = exports.TxClaimReward = exports.TxOpenMultitokenAccount = exports.TxOpenAccount = exports.TxIncreaseBorrowAmount = exports.TxAddCollateral = exports.TXSwap = exports.TxRemoveLiquidity = exports.TxAddLiquidity = exports.TxSerializer = void 0;
18
+ exports.TxApprove = exports.TxCloseAccount = exports.TxRepayAccount = exports.TxClaimNFT = exports.TxClaimReward = exports.TxOpenMultitokenAccount = exports.TxOpenAccount = exports.TxIncreaseBorrowAmount = exports.TxAddCollateral = exports.TXSwap = exports.TxRemoveLiquidity = exports.TxAddLiquidity = exports.TxSerializer = void 0;
19
19
  var ethers_1 = require("ethers");
20
20
  var contracts_1 = require("../contracts/contracts");
21
21
  var contractsRegister_1 = require("../contracts/contractsRegister");
@@ -55,6 +55,8 @@ var TxSerializer = /** @class */ (function () {
55
55
  return new TxOpenMultitokenAccount(params);
56
56
  case "TxClaimReward":
57
57
  return new TxClaimReward(params);
58
+ case "TxClaimNFT":
59
+ return new TxClaimNFT(params);
58
60
  default:
59
61
  throw new Error("Unknown transaction for parsing: ".concat(e.type));
60
62
  }
@@ -299,6 +301,28 @@ var TxClaimReward = /** @class */ (function (_super) {
299
301
  return TxClaimReward;
300
302
  }(eventOrTx_1.EVMTx));
301
303
  exports.TxClaimReward = TxClaimReward;
304
+ var TxClaimNFT = /** @class */ (function (_super) {
305
+ __extends(TxClaimNFT, _super);
306
+ function TxClaimNFT(opts) {
307
+ return _super.call(this, {
308
+ block: opts.block,
309
+ txHash: opts.txHash,
310
+ txStatus: opts.txStatus,
311
+ timestamp: opts.timestamp,
312
+ }) || this;
313
+ }
314
+ TxClaimNFT.prototype.toString = function () {
315
+ return "NFT claimed";
316
+ };
317
+ TxClaimNFT.prototype.serialize = function () {
318
+ return {
319
+ type: "TxClaimNFT",
320
+ content: JSON.stringify(this),
321
+ };
322
+ };
323
+ return TxClaimNFT;
324
+ }(eventOrTx_1.EVMTx));
325
+ exports.TxClaimNFT = TxClaimNFT;
302
326
  var TxRepayAccount = /** @class */ (function (_super) {
303
327
  __extends(TxRepayAccount, _super);
304
328
  function TxRepayAccount(opts) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "1.15.24",
3
+ "version": "1.15.25",
4
4
  "description": "Gearbox SDK",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",