Skip to content

Commit

Permalink
ALL-4358 Add FLR to blockchain (#1055)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hathoriel authored Jan 26, 2024
1 parent 50a1d5d commit 6b33e22
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 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.43",
"version": "2.2.44",
"license": "MIT",
"repository": "https://github.com/tatumio/tatum-js",
"scripts": {
Expand Down
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 @@ -32,6 +32,7 @@ export const DERIVATION_PATH: Record<Blockchain, string> = {
TEZOS: "m/44'/1729'/0'/0",
EON: "m/44'/60'/0'/0",
CHILIZ: "m/44'/2182'/0'/0",
FLR: "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 @@ -30,6 +30,7 @@ const EndpointsMapping: Record<Blockchain, string> = {
TEZOS: 'tezos',
EON: 'eon',
CHILIZ: 'chiliz',
FLR: 'flare',
}

const isWebWorker =
Expand Down
4 changes: 3 additions & 1 deletion packages/shared/core/src/lib/models/Blockchain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export enum Blockchain {
TEZOS = 'TEZOS',
EON = 'EON',
CHILIZ = 'CHILIZ',
FLR = 'FLR',
}

export const EvmBasedBlockchains = [
Expand All @@ -40,7 +41,7 @@ export const EvmBasedBlockchains = [

// @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 @@ -53,3 +54,4 @@ export type EvmBasedBlockchain =
| Blockchain.XDC
| Blockchain.EON
| Blockchain.CHILIZ
| Blockchain.FLR
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export const BlockchainCurrencyMapping: Record<
TEZOS: Currency.TEZOS,
EON: Currency.ZEN,
CHILIZ: Currency.CHZ,
FLR: Currency.FLR,
}

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

0 comments on commit 6b33e22

Please sign in to comment.