@toruslabs/ethereum-controllers 5.0.0 → 5.0.1

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.
@@ -1,6 +1,6 @@
1
- import { BrowserProvider } from "ethers";
1
+ import { Provider } from "ethers";
2
2
  import { CustomNftInfo, CustomNftItemInfo } from "../utils/interfaces";
3
- interface INftOptions {
3
+ export interface INftOptions {
4
4
  contractAddress: string;
5
5
  contractName?: string;
6
6
  contractSymbol?: string;
@@ -10,7 +10,7 @@ interface INftOptions {
10
10
  nftStandard?: "erc721" | "erc1155";
11
11
  contractDescription?: string;
12
12
  chainId: string;
13
- provider: BrowserProvider;
13
+ provider: Provider;
14
14
  }
15
15
  export declare class NftHandler {
16
16
  contractAddress: string;
@@ -22,7 +22,7 @@ export declare class NftHandler {
22
22
  nftStandard: "erc721" | "erc1155";
23
23
  contractDescription?: string;
24
24
  chainId: string;
25
- provider: BrowserProvider;
25
+ provider: Provider;
26
26
  isSpecial?: boolean;
27
27
  constructor({ chainId, contractAddress, contractImage, contractName, contractSymbol, nftStandard, provider, contractDescription, contractFallbackLogo, contractSupply, }: INftOptions);
28
28
  getNftMetadata(userAddress: string, tokenInfo: Partial<CustomNftItemInfo>): Promise<CustomNftItemInfo>;
@@ -32,4 +32,3 @@ export declare class NftHandler {
32
32
  private contractSupportsInterface;
33
33
  private getCollectibleTokenURI;
34
34
  }
35
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toruslabs/ethereum-controllers",
3
- "version": "5.0.0",
3
+ "version": "5.0.1",
4
4
  "homepage": "https://github.com/torusresearch/controllers#readme",
5
5
  "license": "ISC",
6
6
  "main": "dist/ethereumControllers.cjs.js",
@@ -64,7 +64,7 @@
64
64
  "publishConfig": {
65
65
  "access": "public"
66
66
  },
67
- "gitHead": "f63427503cff9c9a08240da584ebee008f1d7527",
67
+ "gitHead": "4da373abb1bbcc3be55cba412a3e3f5931f47f06",
68
68
  "devDependencies": {
69
69
  "@nomicfoundation/hardhat-toolbox": "^4.0.0",
70
70
  "hardhat": "^2.19.3"
@@ -1,5 +1,5 @@
1
1
  import { get } from "@toruslabs/http-helpers";
2
- import { BrowserProvider, Contract } from "ethers";
2
+ import { Contract, Provider } from "ethers";
3
3
  import log from "loglevel";
4
4
 
5
5
  import { erc721Abi, erc1155Abi } from "../utils/abis";
@@ -7,7 +7,7 @@ import { CONTRACT_TYPE_ERC721, CONTRACT_TYPE_ERC1155, ERC721_INTERFACE_ID, ERC11
7
7
  import { sanitizeNftMetdataUrl } from "../utils/helpers";
8
8
  import { CustomNftInfo, CustomNftItemInfo, NftStandardType } from "../utils/interfaces";
9
9
 
10
- interface INftOptions {
10
+ export interface INftOptions {
11
11
  contractAddress: string;
12
12
  contractName?: string;
13
13
  contractSymbol?: string;
@@ -17,7 +17,7 @@ interface INftOptions {
17
17
  nftStandard?: "erc721" | "erc1155";
18
18
  contractDescription?: string;
19
19
  chainId: string;
20
- provider: BrowserProvider;
20
+ provider: Provider;
21
21
  }
22
22
 
23
23
  export class NftHandler {
@@ -39,7 +39,7 @@ export class NftHandler {
39
39
 
40
40
  public chainId: string;
41
41
 
42
- public provider: BrowserProvider;
42
+ public provider: Provider;
43
43
 
44
44
  public isSpecial?: boolean;
45
45