@toruslabs/ethereum-controllers 5.2.0 → 5.2.2

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.
@@ -31,6 +31,7 @@ export { default as TransactionGasUtil } from "./Transaction/TransactionGasUtil"
31
31
  export * from "./Transaction/TransactionStateHistoryHelper";
32
32
  export { default as TransactionStateManager } from "./Transaction/TransactionStateManager";
33
33
  export * from "./Transaction/TransactionUtils";
34
+ export * from "./utils/abis";
34
35
  export * from "./utils/constants";
35
36
  export * from "./utils/helpers";
36
37
  export * from "./utils/interfaces";
@@ -1,4 +1,4 @@
1
- export declare const ecr20Abi: ({
1
+ export declare const erc20Abi: ({
2
2
  constant: boolean;
3
3
  inputs: {
4
4
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toruslabs/ethereum-controllers",
3
- "version": "5.2.0",
3
+ "version": "5.2.2",
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": "a6fdf9b703e188fce4a9e765cf77869b9c6a4054",
67
+ "gitHead": "9643425ff580ac0b7ef27f234935f71d7b2e33b6",
68
68
  "devDependencies": {
69
69
  "@nomicfoundation/hardhat-toolbox": "^4.0.0",
70
70
  "hardhat": "^2.19.3"
@@ -2,7 +2,7 @@ import BigNumber from "bignumber.js";
2
2
  import { BrowserProvider, Contract } from "ethers";
3
3
  import log from "loglevel";
4
4
 
5
- import { ecr20Abi } from "../utils/abis";
5
+ import { erc20Abi } from "../utils/abis";
6
6
 
7
7
  export interface ITokenOptions {
8
8
  address: string;
@@ -26,7 +26,7 @@ export class TokenHandler {
26
26
  constructor({ address, symbol, decimals, name, provider }: ITokenOptions) {
27
27
  this.address = address;
28
28
 
29
- this.contract = new Contract(address, ecr20Abi, provider);
29
+ this.contract = new Contract(address, erc20Abi, provider);
30
30
  this.symbol = symbol;
31
31
  this.decimals = decimals;
32
32
  this.name = name;
@@ -5,7 +5,7 @@ import { SafeEventEmitterProvider } from "@toruslabs/openlogin-jrpc";
5
5
  import { Interface } from "ethers";
6
6
  import log from "loglevel";
7
7
 
8
- import { ecr20Abi, erc721Abi, erc1155Abi } from "../utils/abis";
8
+ import { erc20Abi, erc721Abi, erc1155Abi } from "../utils/abis";
9
9
  import {
10
10
  CONTRACT_TYPE_ERC20,
11
11
  CONTRACT_TYPE_ERC721,
@@ -16,7 +16,7 @@ import {
16
16
  } from "../utils/constants";
17
17
  import { EthereumTransactionMeta, TRANSACTION_ENVELOPE_TYPES_TYPE, TransactionParams } from "../utils/interfaces";
18
18
 
19
- const erc20Interface = new Interface(ecr20Abi);
19
+ const erc20Interface = new Interface(erc20Abi);
20
20
  const erc721Interface = new Interface(erc721Abi);
21
21
  const erc1155Interface = new Interface(erc1155Abi);
22
22
 
package/src/index.ts CHANGED
@@ -31,6 +31,7 @@ export { default as TransactionGasUtil } from "./Transaction/TransactionGasUtil"
31
31
  export * from "./Transaction/TransactionStateHistoryHelper";
32
32
  export { default as TransactionStateManager } from "./Transaction/TransactionStateManager";
33
33
  export * from "./Transaction/TransactionUtils";
34
+ export * from "./utils/abis";
34
35
  export * from "./utils/constants";
35
36
  export * from "./utils/helpers";
36
37
  export * from "./utils/interfaces";
package/src/utils/abis.ts CHANGED
@@ -1,4 +1,4 @@
1
- export const ecr20Abi = [
1
+ export const erc20Abi = [
2
2
  {
3
3
  constant: true,
4
4
  inputs: [],