From e82d1a84cd464d5bada50424142b40b9ee250ff3 Mon Sep 17 00:00:00 2001 From: Oleksandr Loiko Date: Fri, 30 Aug 2024 14:24:48 +0300 Subject: [PATCH] ALL-8604 Added POL_ETH currency --- package.json | 2 +- src/constants.ts | 2 ++ src/model/request/Currency.ts | 2 ++ src/wallet/address.ts | 3 +++ src/wallet/wallet.ts | 1 + 5 files changed, 9 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index bafc4ba3a3..9a658c6409 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tatumio/tatum", - "version": "1.37.54", + "version": "1.37.55", "description": "Tatum API client allows browsers and Node.js clients to interact with Tatum API.", "main": "dist/src/index.js", "repository": "https://github.com/tatumio/tatum-js", diff --git a/src/constants.ts b/src/constants.ts index 5e348c52d6..ef42fc171d 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -141,6 +141,7 @@ export const CONTRACT_ADDRESSES = { [Currency.XCON.toString()]: '0x0f237d5ea7876e0e2906034d98fdb20d43666ad4', [Currency.REVV.toString()]: '0x557b933a7c2c45672b610f8954a3deb39a51a8ca', [Currency.MATIC_ETH.toString()]: '0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0', + [Currency.POL_ETH.toString()]: '0x455e53cbb86018ac2b8092fdcd39d8444affc3f6', [Currency.SAND.toString()]: '0x3845badade8e6dff049820680d1f14bd3903a5d0', [Currency.USDT_TRON.toString()]: 'TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t', [Currency.INRT_TRON.toString()]: 'TX66VmiV1txm45vVLvcHYEqPXXLoREyAXm', @@ -179,6 +180,7 @@ export const CONTRACT_DECIMALS = { [Currency.COIIN.toString()]: 18, [Currency.RMD.toString()]: 18, [Currency.MATIC_ETH.toString()]: 18, + [Currency.POL_ETH.toString()]: 18, [Currency.GMC.toString()]: 18, [Currency.GMC_BSC.toString()]: 18, [Currency.BUSD.toString()]: 18, diff --git a/src/model/request/Currency.ts b/src/model/request/Currency.ts index 6aaeb17436..059258e04d 100644 --- a/src/model/request/Currency.ts +++ b/src/model/request/Currency.ts @@ -56,6 +56,7 @@ export enum Currency { MKR = 'MKR', USDC = 'USDC', MATIC_ETH = 'MATIC_ETH', + POL_ETH = 'POL_ETH', BAT = 'BAT', TUSD = 'TUSD', BUSD = 'BUSD', @@ -120,6 +121,7 @@ export const ERC20_CURRENCIES = [ Currency.BUSD.toString(), Currency.USDC.toString(), Currency.MATIC_ETH.toString(), + Currency.POL_ETH.toString(), Currency.BAT.toString(), Currency.WBTC.toString(), Currency.TUSD.toString(), diff --git a/src/wallet/address.ts b/src/wallet/address.ts index b64b50d265..0c6e8574ab 100644 --- a/src/wallet/address.ts +++ b/src/wallet/address.ts @@ -751,6 +751,7 @@ export const generateAddressFromXPub = ( case Currency.PAX: case Currency.PAXG: case Currency.MATIC_ETH: + case Currency.POL_ETH: case Currency.PLTC: case Currency.XCON: case Currency.REVV: @@ -863,6 +864,7 @@ export const generatePrivateKeyFromMnemonic = ( case Currency.SAND: case Currency.ETH: case Currency.MATIC_ETH: + case Currency.POL_ETH: case Currency.BSC: case Currency.BETH: case Currency.GAMEE: @@ -948,6 +950,7 @@ export const generateAddressFromPrivatekey = ( case Currency.REVV: case Currency.SAND: case Currency.MATIC_ETH: + case Currency.POL_ETH: case Currency.BSC: case Currency.MMY: case Currency.MATIC: diff --git a/src/wallet/wallet.ts b/src/wallet/wallet.ts index 7e34aea034..d443fff74f 100644 --- a/src/wallet/wallet.ts +++ b/src/wallet/wallet.ts @@ -378,6 +378,7 @@ export const generateWallet = (currency: Currency, testnet: boolean, mnemonic?: case Currency.GOLDAX: case Currency.CAKE: case Currency.MATIC_ETH: + case Currency.POL_ETH: case Currency.HAG: case Currency.BUSD_BSC: case Currency.BBTC: