@niftykit/redeemable 0.0.3 → 0.0.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.
@@ -39,7 +39,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
39
39
  return (mod && mod.__esModule) ? mod : { "default": mod };
40
40
  };
41
41
  Object.defineProperty(exports, "__esModule", { value: true });
42
- var typechain_1 = require("@niftykit/contracts/typechain");
42
+ var contracts_1 = require("@niftykit/contracts");
43
43
  var axios_1 = __importDefault(require("axios"));
44
44
  var ethers_1 = require("ethers");
45
45
  var endpoint_1 = require("./config/endpoint");
@@ -77,8 +77,8 @@ var Redeemable = /** @class */ (function () {
77
77
  this.version = resp.data.version;
78
78
  this.contract =
79
79
  this.version === 1
80
- ? typechain_1.TokenCollection__factory.connect(contractAddress, signerOrProvider)
81
- : typechain_1.TokenCollection__factoryV2.connect(contractAddress, signerOrProvider);
80
+ ? contracts_1.TokenCollection__factory.connect(contractAddress, signerOrProvider)
81
+ : contracts_1.TokenCollection__factoryV2.connect(contractAddress, signerOrProvider);
82
82
  if (!this.contract) {
83
83
  throw new Error('Initialization failed.');
84
84
  }
@@ -34,7 +34,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
34
34
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
35
  }
36
36
  };
37
- import { TokenCollection__factoryV2, TokenCollection__factory, } from '@niftykit/contracts/typechain';
37
+ import { TokenCollection__factoryV2, TokenCollection__factory, } from '@niftykit/contracts';
38
38
  import axios from 'axios';
39
39
  import { ethers } from 'ethers';
40
40
  import { API_ENDPOINT, API_ENDPOINT_DEV } from './config/endpoint';
@@ -1,5 +1,5 @@
1
1
  import { Provider } from '@ethersproject/providers';
2
- import { TokenCollection, TokenCollectionV2 } from '@niftykit/contracts/typechain';
2
+ import { TokenCollection, TokenCollectionV2 } from '@niftykit/contracts';
3
3
  import { ContractTransaction, Signer } from 'ethers';
4
4
  import { RedeemableData } from './types/redeemable';
5
5
  export default class Redeemable {