Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ALL-8604 Added POL_ETH currency #1129

Merged
merged 1 commit into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 2 additions & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 2 additions & 0 deletions src/model/request/Currency.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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(),
Expand Down
3 changes: 3 additions & 0 deletions src/wallet/address.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions src/wallet/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading