Skip to content

Commit

Permalink
ALL-6219 - Added AVAX to Blockchain enum - fixed errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Hathoriel committed May 6, 2024
1 parent 3b50b6c commit e72e102
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
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 @@ -35,6 +35,7 @@ export const DERIVATION_PATH: Record<Blockchain, string> = {
FLR: "m/44'/60'/0'/0",
CRO: "m/44'/60'/0'/0",
BASE: "m/44'/60'/0'/0",
AVAX: "m/44'/60'/0'/0",
}

export const COMMON_TESTNET_DERIVATION_PATH = "m/44'/1'/0'/0"
Expand Down
5 changes: 3 additions & 2 deletions packages/shared/core/src/lib/http.common.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import axios, { AxiosRequestConfig } from 'axios'
import { Blockchain, EvmBasedBlockchain } from './models/Blockchain'
import { TATUM_API_CONSTANTS } from '@tatumio/api-client'
import axios from 'axios'
import { blockchainHelper } from './blockchain.common'
import { Blockchain, EvmBasedBlockchain } from './models/Blockchain'

const EndpointsMapping: Record<Blockchain, string> = {
HARMONY: 'one',
Expand Down Expand Up @@ -33,6 +33,7 @@ const EndpointsMapping: Record<Blockchain, string> = {
FLR: 'flare',
CRO: 'cronos',
BASE: 'base',
AVAX: 'avalanche',
}

const isWebWorker =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { Blockchain } from './Blockchain'
import {
BSC_BASED_CURRENCIES,
CELO_CURRENCIES,
Expand All @@ -9,6 +8,7 @@ import {
NativeCurrency,
TRON_CURRENCIES,
} from '@tatumio/api-client'
import { Blockchain } from './Blockchain'

export const BlockchainCurrencyMapping: Record<
Blockchain,
Expand Down Expand Up @@ -61,6 +61,7 @@ export const BlockchainCurrencyMapping: Record<
FLR: Currency.FLR,
CRO: Currency.CRO,
BASE: Currency.BASE,
AVAX: Currency.AVAX,
}

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

0 comments on commit e72e102

Please sign in to comment.