Skip to content

Commit 30e55b1

Browse files
authored
feat: zcash (#227)
1 parent 5ceb1f1 commit 30e55b1

File tree

5 files changed

+44
-6
lines changed

5 files changed

+44
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
]
7979
},
8080
"dependencies": {
81-
"@lifi/types": "^17.59.0"
81+
"@lifi/types": "17.61.0"
8282
},
8383
"devDependencies": {
8484
"@commitlint/cli": "^19.7.1",

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/chains/foundry.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,5 @@ export const foundryChainNameMap: Record<ChainId, string> = {
9191
[ChainId.BCH]: 'bitcoin-cash',
9292
[ChainId.LTC]: 'litecoin',
9393
[ChainId.DGE]: 'dogecoin',
94+
[ChainId.ZEC]: 'zcash',
9495
}

src/chains/supportedChains.utxo.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,26 @@ export const supportedUXTOChains: UTXOChain[] = [
9999
rpcUrls: ['https://node-router.thorswap.net/dogecoin'],
100100
},
101101
},
102+
{
103+
key: ChainKey.ZEC,
104+
chainType: ChainType.UTXO,
105+
name: 'Zcash',
106+
coin: CoinKey.ZEC,
107+
id: ChainId.ZEC,
108+
mainnet: true,
109+
logoURI:
110+
'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/zcash.svg',
111+
faucetUrls: [],
112+
metamask: {
113+
chainId: ChainId.ZEC.toString(),
114+
blockExplorerUrls: ['https://mainnet.zcashexplorer.app'],
115+
chainName: 'Zcash',
116+
nativeCurrency: {
117+
name: 'ZEC',
118+
symbol: 'ZEC',
119+
decimals: 8,
120+
},
121+
rpcUrls: ['https://zcash-mainnet.gateway.tatum.io'],
122+
},
123+
},
102124
]

src/coins/coins.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3258,6 +3258,21 @@ export const basicCoins: BasicCoin[] = [
32583258
},
32593259
},
32603260
},
3261+
// > Zcash
3262+
{
3263+
key: CoinKey.ZEC,
3264+
name: CoinKey.ZEC,
3265+
logoURI:
3266+
'https://assets.coingecko.com/coins/images/486/standard/circle-zcash-color.png',
3267+
verified: true,
3268+
chains: {
3269+
[ChainId.ZEC]: {
3270+
address: 'zcash',
3271+
decimals: 8,
3272+
name: 'Zcash',
3273+
},
3274+
},
3275+
},
32613276
]
32623277

32633278
export const defaultCoins: Array<Coin> = basicCoins.map((coin) => {

0 commit comments

Comments
 (0)