@lifi/data-types 3.0.0 → 3.1.0

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/README.md CHANGED
@@ -9,11 +9,9 @@
9
9
 
10
10
  # LI.FI - Data Types
11
11
 
12
- Data Types for the LI.FI stack.
13
-
14
12
  ## Summary
15
13
 
16
- This package contains all common data types for the LI.FI stack.
14
+ This repository contains data that enriches the types defined in LI.FI's [types package](https://github.com/lifinance/types) with actual information.
17
15
  Learn more about LI.FI on (https://li.fi).
18
16
 
19
17
  Check out the [Changelog](./CHANGELOG.md) to see what changed in the last releases.
@@ -874,6 +874,31 @@ export const supportedEVMChains = [
874
874
  ],
875
875
  },
876
876
  },
877
+ // 534352 - Scroll
878
+ {
879
+ key: ChainKey.MOD,
880
+ chainType: ChainType.EVM,
881
+ name: 'Mode',
882
+ coin: CoinKey.ETH,
883
+ id: 34443,
884
+ mainnet: true,
885
+ logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/mode.png',
886
+ multicallAddress: multicallAddresses[ChainId.MOD],
887
+ metamask: {
888
+ chainId: prefixChainId(34443),
889
+ blockExplorerUrls: [
890
+ 'https://explorer.mode.network/',
891
+ 'https://modescan.io/',
892
+ ],
893
+ chainName: 'MODE',
894
+ nativeCurrency: {
895
+ name: 'ETH',
896
+ symbol: 'ETH',
897
+ decimals: 18,
898
+ },
899
+ rpcUrls: ['https://mainnet.mode.network/', 'https://mode.drpc.org'],
900
+ },
901
+ },
877
902
  // TESTNETS
878
903
  // 12 - Metadium Testnet
879
904
  {
@@ -877,6 +877,31 @@ exports.supportedEVMChains = [
877
877
  ],
878
878
  },
879
879
  },
880
+ // 534352 - Scroll
881
+ {
882
+ key: types_1.ChainKey.MOD,
883
+ chainType: types_1.ChainType.EVM,
884
+ name: 'Mode',
885
+ coin: types_1.CoinKey.ETH,
886
+ id: 34443,
887
+ mainnet: true,
888
+ logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/mode.png',
889
+ multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.MOD],
890
+ metamask: {
891
+ chainId: (0, utils_1.prefixChainId)(34443),
892
+ blockExplorerUrls: [
893
+ 'https://explorer.mode.network/',
894
+ 'https://modescan.io/',
895
+ ],
896
+ chainName: 'MODE',
897
+ nativeCurrency: {
898
+ name: 'ETH',
899
+ symbol: 'ETH',
900
+ decimals: 18,
901
+ },
902
+ rpcUrls: ['https://mainnet.mode.network/', 'https://mode.drpc.org'],
903
+ },
904
+ },
880
905
  // TESTNETS
881
906
  // 12 - Metadium Testnet
882
907
  {
@@ -110,6 +110,10 @@ exports.basicCoins = [
110
110
  address: '0x0000000000000000000000000000000000000000',
111
111
  decimals: 18,
112
112
  },
113
+ [types_1.ChainId.MOD]: {
114
+ address: '0x0000000000000000000000000000000000000000',
115
+ decimals: 18,
116
+ },
113
117
  // Testnets
114
118
  [types_1.ChainId.ONET]: {
115
119
  address: '0x268d6ff391b41b36a13b1693bd25f87fb4e4b392',
@@ -595,6 +599,10 @@ exports.basicCoins = [
595
599
  address: '0xf55BEC9cafDbE8730f096Aa55dad6D22d44099Df',
596
600
  decimals: 6,
597
601
  },
602
+ [types_1.ChainId.MOD]: {
603
+ address: '0xf0F161fDA2712DB8b566946122a5af183995e2eD',
604
+ decimals: 6,
605
+ },
598
606
  },
599
607
  },
600
608
  // ======= STARGATE TESTNET TOKENS =======
@@ -849,6 +857,10 @@ exports.basicCoins = [
849
857
  address: '0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4',
850
858
  decimals: 6,
851
859
  },
860
+ [types_1.ChainId.MOD]: {
861
+ address: '0xd988097fb8612cc24eeC14542bC03424c656005f',
862
+ decimals: 6,
863
+ },
852
864
  // Testnets
853
865
  [types_1.ChainId.LNAT]: {
854
866
  address: '0x964FF70695da981027c81020B1c58d833D49A640',
@@ -1176,6 +1188,10 @@ exports.basicCoins = [
1176
1188
  address: '0x5300000000000000000000000000000000000004',
1177
1189
  decimals: 18,
1178
1190
  },
1191
+ [types_1.ChainId.MOD]: {
1192
+ address: '0x4200000000000000000000000000000000000006',
1193
+ decimals: 18,
1194
+ },
1179
1195
  // Testnets
1180
1196
  [types_1.ChainId.OPTG]: {
1181
1197
  address: '0x4200000000000000000000000000000000000006',
@@ -1742,7 +1758,7 @@ exports.wrappedTokens = {
1742
1758
  chainId: types_1.ChainId.FUS,
1743
1759
  coinKey: 'WFUSE',
1744
1760
  name: 'Wrapped Fuse',
1745
- logoURI: 'https://fuselogo.s3.eu-central-1.amazonaws.com/wfuse.png',
1761
+ logoURI: 'https://static.debank.com/image/fuse_token/logo_url/0x0be9e53fd7edac9f859882afdda116645287c629/26d6e40e90bb2bf775820b1afef6ffb6.png',
1746
1762
  },
1747
1763
  [types_1.ChainId.MOO]: {
1748
1764
  address: '0xacc15dc74880c9944775448304b263d191c6077f',
@@ -1817,6 +1833,16 @@ exports.wrappedTokens = {
1817
1833
  name: 'WETH',
1818
1834
  logoURI: 'https://static.debank.com/image/era_token/logo_url/0x5aea5775959fbc2557cc8789bc1bf90a239d9a91/61844453e63cf81301f845d7864236f6.png',
1819
1835
  },
1836
+ [types_1.ChainId.MOD]: {
1837
+ // https://explorer.mode.network/token/0x4200000000000000000000000000000000000006
1838
+ address: '0x4200000000000000000000000000000000000006',
1839
+ symbol: 'WETH',
1840
+ decimals: 18,
1841
+ chainId: types_1.ChainId.MOD,
1842
+ coinKey: types_1.CoinKey.WETH,
1843
+ name: 'WETH',
1844
+ logoURI: 'https://static.debank.com/image/mtr_token/logo_url/0x79a61d3a28f8c8537a3df63092927cfa1150fb3c/61844453e63cf81301f845d7864236f6.png',
1845
+ },
1820
1846
  // Testnets
1821
1847
  [types_1.ChainId.ONET]: {
1822
1848
  address: '0x7466d7d0c21fa05f32f5a0fa27e12bdc06348ce2',
@@ -41,6 +41,7 @@ exports.multicallAddresses = {
41
41
  [types_1.ChainId.ARN]: '0xcA11bde05977b3631167028862bE2a173976CA11',
42
42
  [types_1.ChainId.BAS]: '0xcA11bde05977b3631167028862bE2a173976CA11',
43
43
  [types_1.ChainId.SCL]: '0xcA11bde05977b3631167028862bE2a173976CA11',
44
+ [types_1.ChainId.MOD]: '0xcA11bde05977b3631167028862bE2a173976CA11',
44
45
  // TODO
45
46
  // [ChainId.EXP]: '', // TODO
46
47
  // [ChainId.TCH]: '', // TODO
@@ -107,6 +107,10 @@ export const basicCoins = [
107
107
  address: '0x0000000000000000000000000000000000000000',
108
108
  decimals: 18,
109
109
  },
110
+ [ChainId.MOD]: {
111
+ address: '0x0000000000000000000000000000000000000000',
112
+ decimals: 18,
113
+ },
110
114
  // Testnets
111
115
  [ChainId.ONET]: {
112
116
  address: '0x268d6ff391b41b36a13b1693bd25f87fb4e4b392',
@@ -592,6 +596,10 @@ export const basicCoins = [
592
596
  address: '0xf55BEC9cafDbE8730f096Aa55dad6D22d44099Df',
593
597
  decimals: 6,
594
598
  },
599
+ [ChainId.MOD]: {
600
+ address: '0xf0F161fDA2712DB8b566946122a5af183995e2eD',
601
+ decimals: 6,
602
+ },
595
603
  },
596
604
  },
597
605
  // ======= STARGATE TESTNET TOKENS =======
@@ -846,6 +854,10 @@ export const basicCoins = [
846
854
  address: '0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4',
847
855
  decimals: 6,
848
856
  },
857
+ [ChainId.MOD]: {
858
+ address: '0xd988097fb8612cc24eeC14542bC03424c656005f',
859
+ decimals: 6,
860
+ },
849
861
  // Testnets
850
862
  [ChainId.LNAT]: {
851
863
  address: '0x964FF70695da981027c81020B1c58d833D49A640',
@@ -1173,6 +1185,10 @@ export const basicCoins = [
1173
1185
  address: '0x5300000000000000000000000000000000000004',
1174
1186
  decimals: 18,
1175
1187
  },
1188
+ [ChainId.MOD]: {
1189
+ address: '0x4200000000000000000000000000000000000006',
1190
+ decimals: 18,
1191
+ },
1176
1192
  // Testnets
1177
1193
  [ChainId.OPTG]: {
1178
1194
  address: '0x4200000000000000000000000000000000000006',
@@ -1739,7 +1755,7 @@ export const wrappedTokens = {
1739
1755
  chainId: ChainId.FUS,
1740
1756
  coinKey: 'WFUSE',
1741
1757
  name: 'Wrapped Fuse',
1742
- logoURI: 'https://fuselogo.s3.eu-central-1.amazonaws.com/wfuse.png',
1758
+ logoURI: 'https://static.debank.com/image/fuse_token/logo_url/0x0be9e53fd7edac9f859882afdda116645287c629/26d6e40e90bb2bf775820b1afef6ffb6.png',
1743
1759
  },
1744
1760
  [ChainId.MOO]: {
1745
1761
  address: '0xacc15dc74880c9944775448304b263d191c6077f',
@@ -1814,6 +1830,16 @@ export const wrappedTokens = {
1814
1830
  name: 'WETH',
1815
1831
  logoURI: 'https://static.debank.com/image/era_token/logo_url/0x5aea5775959fbc2557cc8789bc1bf90a239d9a91/61844453e63cf81301f845d7864236f6.png',
1816
1832
  },
1833
+ [ChainId.MOD]: {
1834
+ // https://explorer.mode.network/token/0x4200000000000000000000000000000000000006
1835
+ address: '0x4200000000000000000000000000000000000006',
1836
+ symbol: 'WETH',
1837
+ decimals: 18,
1838
+ chainId: ChainId.MOD,
1839
+ coinKey: CoinKey.WETH,
1840
+ name: 'WETH',
1841
+ logoURI: 'https://static.debank.com/image/mtr_token/logo_url/0x79a61d3a28f8c8537a3df63092927cfa1150fb3c/61844453e63cf81301f845d7864236f6.png',
1842
+ },
1817
1843
  // Testnets
1818
1844
  [ChainId.ONET]: {
1819
1845
  address: '0x7466d7d0c21fa05f32f5a0fa27e12bdc06348ce2',
package/dist/multicall.js CHANGED
@@ -38,6 +38,7 @@ export const multicallAddresses = {
38
38
  [ChainId.ARN]: '0xcA11bde05977b3631167028862bE2a173976CA11',
39
39
  [ChainId.BAS]: '0xcA11bde05977b3631167028862bE2a173976CA11',
40
40
  [ChainId.SCL]: '0xcA11bde05977b3631167028862bE2a173976CA11',
41
+ [ChainId.MOD]: '0xcA11bde05977b3631167028862bE2a173976CA11',
41
42
  // TODO
42
43
  // [ChainId.EXP]: '', // TODO
43
44
  // [ChainId.TCH]: '', // TODO
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifi/data-types",
3
- "version": "3.0.0",
3
+ "version": "3.1.0",
4
4
  "description": "Data types for the LI.FI stack",
5
5
  "keywords": [
6
6
  "sdk",
@@ -63,7 +63,7 @@
63
63
  ]
64
64
  },
65
65
  "dependencies": {
66
- "@lifi/types": "^12.0.0"
66
+ "@lifi/types": "^12.1.0"
67
67
  },
68
68
  "devDependencies": {
69
69
  "@commitlint/cli": "^17.7.1",