@exodus/ethereum-lib 2.13.6 → 2.14.1

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/src/abi/index.js CHANGED
@@ -9,6 +9,7 @@ import repv2 from './repv2'
9
9
  import scdMcdMigration from './scd-mcd-migration'
10
10
  import maticValidatorShare from './matic-validator-share'
11
11
  import maticStakingManager from './matic-staking-manager'
12
+ import fantomSfc from './fantom-sfc'
12
13
 
13
14
  export default {
14
15
  ant,
@@ -22,4 +23,5 @@ export default {
22
23
  scdMcdMigration,
23
24
  maticValidatorShare,
24
25
  maticStakingManager,
26
+ fantomSfc,
25
27
  }
@@ -22,6 +22,8 @@ export default function createContract(address, contractName) {
22
22
  return new SolidityContract(ABI.maticValidatorShare, address)
23
23
  case 'maticStakingManager':
24
24
  return new SolidityContract(ABI.maticStakingManager, address)
25
+ case 'fantomSfc':
26
+ return new SolidityContract(ABI.fantomSfc, address)
25
27
  default:
26
28
  return SolidityContract.erc20(address)
27
29
  }
@@ -14,6 +14,7 @@ export const isEthereumToken = (asset) => asset.assetType === 'ETHEREUM_ERC20'
14
14
  export const isBscToken = (asset) => asset.assetType === 'BSC_BEP20'
15
15
  export const isPolygonToken = (asset) => asset.assetType === 'MATIC_ERC20'
16
16
  export const isAvalancheToken = (asset) => asset.assetType === 'AVAX_ERC20'
17
+ export const isFantomToken = (asset) => asset.assetType === 'FTM_ERC20'
17
18
 
18
19
  // All ethereum-like tokens
19
20
  export const isEthereumLikeToken = (asset) => ETHEREUM_LIKE_TOKEN_TYPES.includes(asset.assetType)