Skip to content

Commit

Permalink
chore: disable derivation of some UTXO assets
Browse files Browse the repository at this point in the history
  • Loading branch information
a0ngo committed Dec 13, 2023
1 parent 3ee3773 commit fd87693
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/two-frogs-melt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@fireblocks/asset-config': minor
---

temp: disable some UTXO based assets for derivation
16 changes: 8 additions & 8 deletions packages/asset-config/config/patches.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ const evm = (baseExplorerUrl: string, rpcUrl?: string): NativeAssetPatch => ({
getExplorerUrl: getStandardExplorer(baseExplorerUrl),
});

const btc = (baseExplorerUrl: string, segwit: boolean): NativeAssetPatch => ({
derive: true,
const btc = (baseExplorerUrl: string, segwit: boolean, derive: boolean = true): NativeAssetPatch => ({
derive,
transfer: true,
utxo: true,
segwit,
Expand Down Expand Up @@ -91,8 +91,8 @@ export const nativeAssetPatches: NativeAssetPatches = {
BCH_TEST: btc('blockexplorer.one/bitcoin-cash/testnet', false),
BNB_BSC: evm('bscscan.com'),
BNB_TEST: evm('test.bscscan.com'),
BSV: btc('whatsonchain.com', false),
BSV_TEST: btc('test.whatsonchain.com', false),
BSV: btc('whatsonchain.com', false, false),
BSV_TEST: btc('test.whatsonchain.com', false, false),
BTC: btc('blockstream.info', true),
BTC_TEST: btc('blockstream.info/testnet', true),
CELO: evm('explorer.celo.org'),
Expand Down Expand Up @@ -152,8 +152,8 @@ export const nativeAssetPatches: NativeAssetPatches = {
getExplorerUrl: getStandardExplorer('explorer.arkhia.io/#/testnet'),
},
KSM: evm('polkascan.io/kusama', 'https://kusama-rpc.polkadot.io'),
LTC: btc('blockexplorer.one/litecoin/mainnet', false),
LTC_TEST: btc('blockexplorer.one/litecoin/testnet', false),
LTC: btc('blockexplorer.one/litecoin/mainnet', false, false),
LTC_TEST: btc('blockexplorer.one/litecoin/testnet', false, false),
LUNA: {
getExplorerUrl: getStandardExplorer('finder.terra.money/classic'),
},
Expand Down Expand Up @@ -301,7 +301,7 @@ export const nativeAssetPatches: NativeAssetPatches = {
XTZ: evm('tzkt.io', 'https://mainnet-tezos.giganode.io'),
XTZ_TEST: evm('ghostnet.tzkt.io', 'https://testnet-tezos.giganode.io'),
ZEC: {
derive: true,
derive: false,
transfer: true,
utxo: true,
segwit: false,
Expand All @@ -310,7 +310,7 @@ export const nativeAssetPatches: NativeAssetPatches = {
getExplorerUrl: getStandardExplorer('explorer.zcha.in'),
},
ZEC_TEST: {
derive: true,
derive: false,
transfer: true,
utxo: true,
segwit: false,
Expand Down

0 comments on commit fd87693

Please sign in to comment.