@coinmasters/helpers
Advanced tools
Comparing version 8.0.0 to 8.0.1
@@ -68,3 +68,2 @@ var bt = Object.defineProperty; | ||
case i.Ethereum: | ||
case i.Base: | ||
case i.Avalanche: | ||
@@ -74,2 +73,3 @@ return t === r; | ||
case i.Optimism: | ||
case i.Base: | ||
return t === "ETH"; | ||
@@ -101,6 +101,8 @@ case i.Maya: | ||
return { identifier: "BSC.BNB", decimal: d[r] }; | ||
case i.Maya: | ||
case i.Mayachain: | ||
return { identifier: "MAYA.CACAO", decimal: d.MAYA }; | ||
case "MAYA.MAYA": | ||
return { identifier: "MAYA.MAYA", decimal: 4 }; | ||
case i.Base: | ||
return { identifier: "BASE.ETH", decimal: 18 }; | ||
case i.Ripple: | ||
@@ -119,3 +121,2 @@ case i.Kujira: | ||
case i.Bitcoin: | ||
case i.Base: | ||
case i.Ethereum: | ||
@@ -134,3 +135,3 @@ return { identifier: `${r}.${r}`, decimal: d[r] }; | ||
case i.Litecoin: | ||
case i.Maya: | ||
case i.Mayachain: | ||
case i.THORChain: | ||
@@ -1002,4 +1003,4 @@ return "Native"; | ||
case i.THORChain: | ||
case i.Maya: | ||
return t.set(0); | ||
case i.Mayachain: | ||
return t.set(1e-10); | ||
default: | ||
@@ -1006,0 +1007,0 @@ return t.set(1e-8); |
@@ -11,5 +11,5 @@ { | ||
"vitest": "0.34.6", | ||
"@coinmasters/tokens": "3.4.0", | ||
"@internal/config": "2.4.0", | ||
"@coinmasters/types": "4.4.0" | ||
"@coinmasters/tokens": "3.4.1", | ||
"@coinmasters/types": "4.4.1", | ||
"@internal/config": "2.4.1" | ||
}, | ||
@@ -20,4 +20,4 @@ "eslintConfig": { | ||
"peerDependencies": { | ||
"@coinmasters/types": "4.4.0", | ||
"@coinmasters/tokens": "3.4.0" | ||
"@coinmasters/tokens": "3.4.1", | ||
"@coinmasters/types": "4.4.1" | ||
}, | ||
@@ -47,3 +47,3 @@ "exports": { | ||
"types": "./dist/index.d.ts", | ||
"version": "8.0.0", | ||
"version": "8.0.1", | ||
"scripts": { | ||
@@ -50,0 +50,0 @@ "build": "vite build", |
@@ -87,3 +87,2 @@ import type { EVMChain } from '@coinmasters/types'; | ||
case Chain.Ethereum: | ||
case Chain.Base: | ||
case Chain.Avalanche: | ||
@@ -93,2 +92,3 @@ return symbol === chain; | ||
case Chain.Optimism: | ||
case Chain.Base: | ||
return 'ETH' === symbol; | ||
@@ -125,6 +125,8 @@ case Chain.Maya: | ||
return { identifier: 'BSC.BNB', decimal: BaseDecimal[assetString] }; | ||
case Chain.Maya: | ||
case Chain.Mayachain: | ||
return { identifier: 'MAYA.CACAO', decimal: BaseDecimal.MAYA }; | ||
case 'MAYA.MAYA': | ||
return { identifier: 'MAYA.MAYA', decimal: 4 }; | ||
case Chain.Base: | ||
return { identifier: 'BASE.ETH', decimal: 18 }; | ||
case Chain.Ripple: | ||
@@ -143,3 +145,2 @@ case Chain.Kujira: | ||
case Chain.Bitcoin: | ||
case Chain.Base: | ||
case Chain.Ethereum: | ||
@@ -160,3 +161,3 @@ return { identifier: `${assetString}.${assetString}`, decimal: BaseDecimal[assetString] }; | ||
case Chain.Litecoin: | ||
case Chain.Maya: | ||
case Chain.Mayachain: | ||
case Chain.THORChain: | ||
@@ -163,0 +164,0 @@ return 'Native'; |
@@ -232,4 +232,4 @@ import type { | ||
case Chain.THORChain: | ||
case Chain.Maya: | ||
return asset.set(0); | ||
case Chain.Mayachain: | ||
return asset.set(0.0000000001); | ||
@@ -236,0 +236,0 @@ default: |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
205505
3811