Skip to content

Commit

Permalink
Feature/all 10234 add ron (#1142)
Browse files Browse the repository at this point in the history
ALL-10234: add ronin

Co-authored-by: Filip Kaštovský <[email protected]>
  • Loading branch information
filipkastovsky and Filip Kaštovský authored Jan 29, 2025
1 parent cbe96ea commit 550f54e
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tatumio",
"version": "2.2.88",
"version": "2.2.89",
"license": "MIT",
"repository": "https://github.com/tatumio/tatum-js",
"scripts": {
Expand Down Expand Up @@ -133,4 +133,4 @@
"@solana/web3.js": "1.56.2",
"scrypt": "github:barrysteyn/node-scrypt#fb60a8d3c158fe115a624b5ffa7480f3a24b03fb"
}
}
}
5 changes: 3 additions & 2 deletions packages/api-client/src/lib/models/Currency.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ export enum Currency {
USDT_ARB = 'USDT_ARB',
USDT_OP = 'USDT_OP',
USDT_BASE = 'USDT_BASE',
RON = 'RON',
}

export const ERC20_CURRENCIES = [
Expand Down Expand Up @@ -228,5 +229,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]
1 change: 1 addition & 0 deletions packages/shared/core/src/lib/derivation-path.common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export const DERIVATION_PATH: Record<Blockchain, string> = {
FTM: "m/44'/60'/0'/0",
TON: "m/44'/60'/0'/0",
ZK_SYNC: "m/44'/60'/0'/0",
RON: "m/44'/60'/0'/0",
}

export const COMMON_TESTNET_DERIVATION_PATH = "m/44'/1'/0'/0"
Expand Down
1 change: 1 addition & 0 deletions packages/shared/core/src/lib/http.common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const EndpointsMapping: Record<Blockchain, string> = {
FTM: 'fantom',
TON: 'ton',
ZK_SYNC: 'zks',
RON: 'ron',
}

const isWebWorker =
Expand Down
7 changes: 5 additions & 2 deletions packages/shared/core/src/lib/models/Blockchain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export enum Blockchain {
FTM = 'FTM',
TON = 'TON',
ZK_SYNC = 'ZK_SYNC',
RON = 'RON',
}

export const EvmBasedBlockchains = [
Expand All @@ -49,12 +50,13 @@ export const EvmBasedBlockchains = [
Blockchain.AVAX,
Blockchain.OPTIMISM,
Blockchain.FTM,
Blockchain.ZK_SYNC
Blockchain.ZK_SYNC,
Blockchain.RON,
]

// @TODO tmp solution
export const BtcBasedBlockchains = [Blockchain.BTC, Blockchain.LTC, Blockchain.DOGE, Blockchain.BCH] as const
export type BtcBasedBlockchain = typeof BtcBasedBlockchains[number]
export type BtcBasedBlockchain = (typeof BtcBasedBlockchains)[number]

export type EvmBasedBlockchain =
| Blockchain.ETH
Expand All @@ -74,3 +76,4 @@ export type EvmBasedBlockchain =
| Blockchain.OPTIMISM
| Blockchain.FTM
| Blockchain.ZK_SYNC
| Blockchain.RON
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,12 @@ export const BlockchainCurrencyMapping: Record<
AVAX: Currency.AVAX,
OPTIMISM: {
nativeCurrency: Currency.ETH_OP,
currencies: OPTIMISM_BASED_CURRENCIES
currencies: OPTIMISM_BASED_CURRENCIES,
},
FTM: Currency.FTM,
TON: Currency.TON,
ZK_SYNC: Currency.ZK_SYNC,
RON: Currency.RON,
}

export const CurrencyToBlockchainMapping: Record<Currency, Blockchain> = buildCurrencyBlockchainMapping()
Expand Down

0 comments on commit 550f54e

Please sign in to comment.