diff --git a/packages/shared/core/src/lib/derivation-path.common.ts b/packages/shared/core/src/lib/derivation-path.common.ts index bb9ad759b..89229be02 100644 --- a/packages/shared/core/src/lib/derivation-path.common.ts +++ b/packages/shared/core/src/lib/derivation-path.common.ts @@ -35,6 +35,7 @@ export const DERIVATION_PATH: Record = { 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" diff --git a/packages/shared/core/src/lib/http.common.ts b/packages/shared/core/src/lib/http.common.ts index 04e5f1595..5f6cf3153 100644 --- a/packages/shared/core/src/lib/http.common.ts +++ b/packages/shared/core/src/lib/http.common.ts @@ -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 = { HARMONY: 'one', @@ -33,6 +33,7 @@ const EndpointsMapping: Record = { FLR: 'flare', CRO: 'cronos', BASE: 'base', + AVAX: 'avalanche', } const isWebWorker = diff --git a/packages/shared/core/src/lib/models/BlockchainCurrencyMapping.ts b/packages/shared/core/src/lib/models/BlockchainCurrencyMapping.ts index c5b2e5e22..9ff934994 100644 --- a/packages/shared/core/src/lib/models/BlockchainCurrencyMapping.ts +++ b/packages/shared/core/src/lib/models/BlockchainCurrencyMapping.ts @@ -1,4 +1,3 @@ -import { Blockchain } from './Blockchain' import { BSC_BASED_CURRENCIES, CELO_CURRENCIES, @@ -9,6 +8,7 @@ import { NativeCurrency, TRON_CURRENCIES, } from '@tatumio/api-client' +import { Blockchain } from './Blockchain' export const BlockchainCurrencyMapping: Record< Blockchain, @@ -61,6 +61,7 @@ export const BlockchainCurrencyMapping: Record< FLR: Currency.FLR, CRO: Currency.CRO, BASE: Currency.BASE, + AVAX: Currency.AVAX, } export const CurrencyToBlockchainMapping: Record = buildCurrencyBlockchainMapping()