@swapkit/helpers 3.0.0-beta.2 → 3.0.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  },
8
8
  "description": "SwapKit - Helpers",
9
9
  "devDependencies": {
10
- "@swapkit/toolboxes": "1.0.0-beta.2"
10
+ "@swapkit/toolboxes": "1.0.0-beta.3"
11
11
  },
12
12
  "exports": {
13
13
  ".": {
@@ -54,5 +54,5 @@
54
54
  "type-check:go": "tsgo"
55
55
  },
56
56
  "type": "module",
57
- "version": "3.0.0-beta.2"
57
+ "version": "3.0.0-beta.3"
58
58
  }
@@ -23,7 +23,6 @@ export const CommonAssetStrings = [
23
23
 
24
24
  const ethGasChains = [
25
25
  Chain.Arbitrum,
26
- Chain.Avalanche,
27
26
  Chain.Base,
28
27
  Chain.Ethereum,
29
28
  Chain.Optimism,
@@ -113,6 +112,7 @@ export function getGasAsset({ chain }: { chain: Chain }) {
113
112
  export function isGasAsset({ chain, symbol }: { chain: Chain; symbol: string }) {
114
113
  return match(chain)
115
114
  .with(...ethGasChains, () => symbol === "ETH")
115
+ .with(Chain.Avalanche, () => symbol === "AVAX")
116
116
  .with(Chain.BinanceSmartChain, () => symbol === "BNB")
117
117
  .with(Chain.Maya, () => symbol === "CACAO")
118
118
  .with(Chain.Cosmos, () => symbol === "ATOM")
@@ -142,6 +142,10 @@ export const getCommonAssetInfo = (assetString: CommonAssetString) => {
142
142
  identifier: `${assetString.toUpperCase()}.BNB`,
143
143
  decimal,
144
144
  }))
145
+ .with(Chain.Avalanche, () => ({
146
+ identifier: `${assetString.toUpperCase()}.AVAX`,
147
+ decimal,
148
+ }))
145
149
  .with(
146
150
  ...UTXOChains,
147
151
  Chain.Solana,