Skip to content

Commit

Permalink
ALL-2875 - add CHZ Chiliz Currency (#989)
Browse files Browse the repository at this point in the history
  • Loading branch information
Smrecz authored Oct 17, 2023
1 parent 0963a31 commit 83f76cb
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 1 deletion.
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.38",
"version": "2.2.39",
"license": "MIT",
"repository": "https://github.com/tatumio/tatum-js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions packages/api-client/src/lib/models/Currency.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ export enum Currency {
ZEC = 'ZEC',
ZIL = 'ZIL',
ZEN = 'ZEN',
CHZ = 'CHZ',
}

export const ERC20_CURRENCIES = [
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 @@ -31,6 +31,7 @@ export const DERIVATION_PATH: Record<Blockchain, string> = {
BNB: "m/44'/714'/0'/0",
TEZOS: "m/44'/1729'/0'/0",
EON: "m/44'/60'/0'/0",
CHILIZ: "m/44'/2182'/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 @@ -29,6 +29,7 @@ const EndpointsMapping: Record<Blockchain, string> = {
BNB: 'bnb',
TEZOS: 'tezos',
EON: 'eon',
CHILIZ: 'chiliz',
}

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

export const EvmBasedBlockchains = [
Expand All @@ -34,6 +35,7 @@ export const EvmBasedBlockchains = [
Blockchain.POLYGON,
Blockchain.KCS,
Blockchain.EON,
Blockchain.CHILIZ,
]

// @TODO tmp solution
Expand All @@ -50,3 +52,4 @@ export type EvmBasedBlockchain =
| Blockchain.KLAY
| Blockchain.XDC
| Blockchain.EON
| Blockchain.CHILIZ
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export const BlockchainCurrencyMapping: Record<
KCS: Currency.KCS,
TEZOS: Currency.TEZOS,
EON: Currency.ZEN,
CHILIZ: Currency.CHZ,
}

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

0 comments on commit 83f76cb

Please sign in to comment.