Skip to content

Commit

Permalink
ALL-8604 Added POL_ETH currency to v2 (#1130)
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Loiko <oleksandr.loiko@tatum.com>
  • Loading branch information
alexloiko and Alex Loiko committed Aug 30, 2024
1 parent 225a836 commit 1b44570
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tatumio",
"version": "2.2.85",
"version": "2.2.86",
"license": "MIT",
"repository": "https://github.com/tatumio/tatum-js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/api-client/src/api_schema.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/api-client/src/generated/models/Erc20Currency.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/* tslint:disable */
/* eslint-disable */

export type Erc20Currency = 'BAT' | 'BUSD' | 'COIIN' | 'ETH' | 'FREE' | 'GMC' | 'LATOKEN' | 'LEO' | 'LINK' | 'MATIC_ETH' | 'MKR' | 'MMY' | 'PAX' | 'PAXG' | 'PLTC' | 'REVV' | 'SAND' | 'TUSD' | 'UNI' | 'USDC' | 'USDT' | 'WBTC' | 'XCON';
export type Erc20Currency = 'BAT' | 'BUSD' | 'COIIN' | 'ETH' | 'FREE' | 'GMC' | 'LATOKEN' | 'LEO' | 'LINK' | 'MATIC_ETH' | 'POL_ETH' | 'MKR' | 'MMY' | 'PAX' | 'PAXG' | 'PLTC' | 'REVV' | 'SAND' | 'TUSD' | 'UNI' | 'USDC' | 'USDT' | 'WBTC' | 'XCON';
6 changes: 4 additions & 2 deletions packages/api-client/src/lib/models/Currency.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export enum Currency {
MATIC = 'MATIC',
GAMEE = 'GAMEE',
MATIC_ETH = 'MATIC_ETH',
POL_ETH = 'POL_ETH',
USDC_MATIC = 'USDC_MATIC',
USDC_MATIC_NATIVE = 'USDC_MATIC_NATIVE',
USDC_BSC = 'USDC_BSC',
Expand Down Expand Up @@ -115,6 +116,7 @@ export const ERC20_CURRENCIES = [
Currency.LINK,
Currency.UNI,
Currency.MATIC_ETH,
Currency.POL_ETH,
Currency.BUSD,
Currency.SAND,
Currency.REVV,
Expand Down Expand Up @@ -211,5 +213,5 @@ export const NFT_SUPPORTED_CURRENCIES = [
Currency.KLAY,
]

export type NftSupportedCurrencies = (typeof NFT_SUPPORTED_CURRENCIES)[number]
export type NativeCurrency = (typeof NATIVE_CURRENCIES)[number]
export type NftSupportedCurrencies = typeof NFT_SUPPORTED_CURRENCIES[number]
export type NativeCurrency = typeof NATIVE_CURRENCIES[number]
2 changes: 2 additions & 0 deletions packages/shared/core/src/lib/contract.common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,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 @@ -56,6 +57,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

0 comments on commit 1b44570

Please sign in to comment.