@lifi/data-types 2.4.2 → 2.6.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.
@@ -844,6 +844,36 @@ export const supportedEVMChains = [
844
844
  rpcUrls: ['https://rpc.linea.build'],
845
845
  },
846
846
  },
847
+ // 534352 - Scroll
848
+ {
849
+ key: ChainKey.SCL,
850
+ chainType: ChainType.EVM,
851
+ name: 'Scroll',
852
+ coin: CoinKey.ETH,
853
+ id: 534352,
854
+ mainnet: true,
855
+ logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/scroll.png',
856
+ multicallAddress: multicallAddresses[ChainId.SCL],
857
+ metamask: {
858
+ chainId: prefixChainId(534352),
859
+ blockExplorerUrls: [
860
+ 'https://scrollscan.com/',
861
+ 'https://blockscout.scroll.io/',
862
+ ],
863
+ chainName: 'SCROLL',
864
+ nativeCurrency: {
865
+ name: 'ETH',
866
+ symbol: 'ETH',
867
+ decimals: 18,
868
+ },
869
+ rpcUrls: [
870
+ 'https://rpc.scroll.io',
871
+ 'https://scroll-mainnet.public.blastapi.io',
872
+ 'https://scroll.drpc.org',
873
+ 'https://1rpc.io/scroll ',
874
+ ],
875
+ },
876
+ },
847
877
  // TESTNETS
848
878
  // 5 - Goerli
849
879
  {
@@ -1162,6 +1192,32 @@ export const supportedEVMChains = [
1162
1192
  rpcUrls: ['https://rpc.goerli.linea.build'],
1163
1193
  },
1164
1194
  },
1195
+ // 534351 - Scroll Sepolia Testnet
1196
+ {
1197
+ key: ChainKey.SCLT,
1198
+ chainType: ChainType.EVM,
1199
+ name: 'Scroll Sepolia Testnet',
1200
+ coin: CoinKey.ETH,
1201
+ id: 534351,
1202
+ mainnet: false,
1203
+ logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/scroll.png',
1204
+ multicallAddress: multicallAddresses[ChainId.SCLT],
1205
+ metamask: {
1206
+ chainId: prefixChainId(534351),
1207
+ blockExplorerUrls: ['https://sepolia.scrollscan.com/'],
1208
+ chainName: 'Scroll Sepolia Testnet',
1209
+ nativeCurrency: {
1210
+ name: 'ETH',
1211
+ symbol: 'ETH',
1212
+ decimals: 18,
1213
+ },
1214
+ rpcUrls: [
1215
+ 'https://rpc.ankr.com/scroll_sepolia_testnet',
1216
+ 'https://sepolia-rpc.scroll.io',
1217
+ 'https://scroll-sepolia.drpc.org',
1218
+ ],
1219
+ },
1220
+ },
1165
1221
  // TODO: Add
1166
1222
  // EVMT = 9000,
1167
1223
  // MORT = 1287,
@@ -847,6 +847,36 @@ exports.supportedEVMChains = [
847
847
  rpcUrls: ['https://rpc.linea.build'],
848
848
  },
849
849
  },
850
+ // 534352 - Scroll
851
+ {
852
+ key: types_1.ChainKey.SCL,
853
+ chainType: types_1.ChainType.EVM,
854
+ name: 'Scroll',
855
+ coin: types_1.CoinKey.ETH,
856
+ id: 534352,
857
+ mainnet: true,
858
+ logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/scroll.png',
859
+ multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.SCL],
860
+ metamask: {
861
+ chainId: (0, utils_1.prefixChainId)(534352),
862
+ blockExplorerUrls: [
863
+ 'https://scrollscan.com/',
864
+ 'https://blockscout.scroll.io/',
865
+ ],
866
+ chainName: 'SCROLL',
867
+ nativeCurrency: {
868
+ name: 'ETH',
869
+ symbol: 'ETH',
870
+ decimals: 18,
871
+ },
872
+ rpcUrls: [
873
+ 'https://rpc.scroll.io',
874
+ 'https://scroll-mainnet.public.blastapi.io',
875
+ 'https://scroll.drpc.org',
876
+ 'https://1rpc.io/scroll ',
877
+ ],
878
+ },
879
+ },
850
880
  // TESTNETS
851
881
  // 5 - Goerli
852
882
  {
@@ -1165,6 +1195,32 @@ exports.supportedEVMChains = [
1165
1195
  rpcUrls: ['https://rpc.goerli.linea.build'],
1166
1196
  },
1167
1197
  },
1198
+ // 534351 - Scroll Sepolia Testnet
1199
+ {
1200
+ key: types_1.ChainKey.SCLT,
1201
+ chainType: types_1.ChainType.EVM,
1202
+ name: 'Scroll Sepolia Testnet',
1203
+ coin: types_1.CoinKey.ETH,
1204
+ id: 534351,
1205
+ mainnet: false,
1206
+ logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/scroll.png',
1207
+ multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.SCLT],
1208
+ metamask: {
1209
+ chainId: (0, utils_1.prefixChainId)(534351),
1210
+ blockExplorerUrls: ['https://sepolia.scrollscan.com/'],
1211
+ chainName: 'Scroll Sepolia Testnet',
1212
+ nativeCurrency: {
1213
+ name: 'ETH',
1214
+ symbol: 'ETH',
1215
+ decimals: 18,
1216
+ },
1217
+ rpcUrls: [
1218
+ 'https://rpc.ankr.com/scroll_sepolia_testnet',
1219
+ 'https://sepolia-rpc.scroll.io',
1220
+ 'https://scroll-sepolia.drpc.org',
1221
+ ],
1222
+ },
1223
+ },
1168
1224
  // TODO: Add
1169
1225
  // EVMT = 9000,
1170
1226
  // MORT = 1287,
@@ -106,6 +106,10 @@ exports.basicCoins = [
106
106
  address: '0x85219708c49aa701871ad330a94ea0f41dff24ca',
107
107
  decimals: 18,
108
108
  },
109
+ [types_1.ChainId.SCL]: {
110
+ address: '0x0000000000000000000000000000000000000000',
111
+ decimals: 18,
112
+ },
109
113
  // Testnets
110
114
  [types_1.ChainId.GOR]: {
111
115
  address: '0x0000000000000000000000000000000000000000',
@@ -131,6 +135,10 @@ exports.basicCoins = [
131
135
  address: '0x0000000000000000000000000000000000000000',
132
136
  decimals: 18,
133
137
  },
138
+ [types_1.ChainId.SCLT]: {
139
+ address: '0x0000000000000000000000000000000000000000',
140
+ decimals: 18,
141
+ },
134
142
  },
135
143
  },
136
144
  // > MATIC
@@ -341,6 +349,10 @@ exports.basicCoins = [
341
349
  name: 'Metis DAI',
342
350
  symbol: 'm.DAI',
343
351
  },
352
+ [types_1.ChainId.SCL]: {
353
+ address: '0xcA77eB3fEFe3725Dc33bccB54eDEFc3D9f764f97',
354
+ decimals: 18,
355
+ },
344
356
  // Testnets
345
357
  [types_1.ChainId.GOR]: {
346
358
  address: '0xdc31ee1784292379fbb2964b3b9c4124d8f89c60',
@@ -595,6 +607,10 @@ exports.basicCoins = [
595
607
  name: 'Metis USDT',
596
608
  symbol: 'm.USDT',
597
609
  },
610
+ [types_1.ChainId.SCL]: {
611
+ address: '0xf55BEC9cafDbE8730f096Aa55dad6D22d44099Df',
612
+ decimals: 6,
613
+ },
598
614
  // Testnets
599
615
  [types_1.ChainId.GOR]: {
600
616
  address: '0x509ee0d083ddf8ac028f2a56731412edd63223b9',
@@ -911,6 +927,10 @@ exports.basicCoins = [
911
927
  name: 'Metis USDC',
912
928
  symbol: 'm.USDC',
913
929
  },
930
+ [types_1.ChainId.SCL]: {
931
+ address: '0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4',
932
+ decimals: 6,
933
+ },
914
934
  // Testnets
915
935
  [types_1.ChainId.GOR]: {
916
936
  address: '0xd87ba7a50b2e7e660f678a895e4b72e7cb4ccd9c',
@@ -1155,6 +1175,10 @@ exports.basicCoins = [
1155
1175
  address: '0xF4eB217Ba2454613b15dBdea6e5f22276410e89e',
1156
1176
  decimals: 8,
1157
1177
  },
1178
+ [types_1.ChainId.SCL]: {
1179
+ address: '0x3C1BCa5a656e69edCD0D4E36BEbb3FcDAcA60Cf1',
1180
+ decimals: 8,
1181
+ },
1158
1182
  },
1159
1183
  },
1160
1184
  // > WETH
@@ -1255,6 +1279,10 @@ exports.basicCoins = [
1255
1279
  address: '0x420000000000000000000000000000000000000A',
1256
1280
  decimals: 18,
1257
1281
  },
1282
+ [types_1.ChainId.SCL]: {
1283
+ address: '0x5300000000000000000000000000000000000004',
1284
+ decimals: 18,
1285
+ },
1258
1286
  // Testnets
1259
1287
  [types_1.ChainId.GOR]: {
1260
1288
  address: '0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6',
@@ -1272,6 +1300,10 @@ exports.basicCoins = [
1272
1300
  address: '0x2C1b868d6596a18e32E61B901E4060C872647b6C',
1273
1301
  decimals: 18,
1274
1302
  },
1303
+ [types_1.ChainId.SCLT]: {
1304
+ address: '0x5300000000000000000000000000000000000004',
1305
+ decimals: 18,
1306
+ },
1275
1307
  },
1276
1308
  },
1277
1309
  // > SUSHI
@@ -1892,6 +1924,16 @@ exports.wrappedTokens = {
1892
1924
  name: 'Wrapped VLX',
1893
1925
  logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/tokens/vlx.png',
1894
1926
  },
1927
+ [types_1.ChainId.SCL]: {
1928
+ // https://scrollscan.com/token/0x5300000000000000000000000000000000000004
1929
+ address: '0x5300000000000000000000000000000000000004',
1930
+ symbol: 'WETH',
1931
+ decimals: 18,
1932
+ chainId: types_1.ChainId.SCL,
1933
+ coinKey: types_1.CoinKey.WETH,
1934
+ name: 'WETH',
1935
+ logoURI: 'https://static.debank.com/image/era_token/logo_url/0x5aea5775959fbc2557cc8789bc1bf90a239d9a91/61844453e63cf81301f845d7864236f6.png',
1936
+ },
1895
1937
  // Testnets
1896
1938
  [types_1.ChainId.GOR]: {
1897
1939
  // https://goerli.etherscan.io/token/0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6
@@ -1962,6 +2004,16 @@ exports.wrappedTokens = {
1962
2004
  name: 'WETH',
1963
2005
  logoURI: 'https://static.debank.com/image/era_token/logo_url/0x5aea5775959fbc2557cc8789bc1bf90a239d9a91/61844453e63cf81301f845d7864236f6.png',
1964
2006
  },
2007
+ [types_1.ChainId.SCLT]: {
2008
+ // https://sepolia.scrollscan.com/token/0x5300000000000000000000000000000000000004
2009
+ address: '0x5300000000000000000000000000000000000004',
2010
+ symbol: 'WETH',
2011
+ decimals: 18,
2012
+ chainId: types_1.ChainId.SCLT,
2013
+ coinKey: types_1.CoinKey.WETH,
2014
+ name: 'WETH',
2015
+ logoURI: 'https://static.debank.com/image/era_token/logo_url/0x5aea5775959fbc2557cc8789bc1bf90a239d9a91/61844453e63cf81301f845d7864236f6.png',
2016
+ },
1965
2017
  [types_1.ChainId.AVAT]: {
1966
2018
  // https://testnet.snowtrace.io/token/0xd00ae08403B9bbb9124bB305C09058E32C39A48c
1967
2019
  address: '0xd00ae08403B9bbb9124bB305C09058E32C39A48c',
@@ -40,6 +40,7 @@ exports.multicallAddresses = {
40
40
  [types_1.ChainId.LNA]: '0xcA11bde05977b3631167028862bE2a173976CA11',
41
41
  [types_1.ChainId.ARN]: '0xcA11bde05977b3631167028862bE2a173976CA11',
42
42
  [types_1.ChainId.BAS]: '0xcA11bde05977b3631167028862bE2a173976CA11',
43
+ [types_1.ChainId.SCL]: '0xcA11bde05977b3631167028862bE2a173976CA11',
43
44
  // TODO
44
45
  // [ChainId.EXP]: '', // TODO
45
46
  // [ChainId.TCH]: '', // TODO
@@ -64,6 +65,7 @@ exports.multicallAddresses = {
64
65
  [types_1.ChainId.RSKT]: '0xcA11bde05977b3631167028862bE2a173976CA11',
65
66
  [types_1.ChainId.ARBG]: '0xcA11bde05977b3631167028862bE2a173976CA11',
66
67
  [types_1.ChainId.LNAT]: '0xcA11bde05977b3631167028862bE2a173976CA11',
68
+ [types_1.ChainId.SCLT]: '0xcA11bde05977b3631167028862bE2a173976CA11',
67
69
  // TODO
68
70
  // [ChainId.METT]: '', // TODO
69
71
  // [ChainId.DIOT]: '', // TODO
@@ -103,6 +103,10 @@ export const basicCoins = [
103
103
  address: '0x85219708c49aa701871ad330a94ea0f41dff24ca',
104
104
  decimals: 18,
105
105
  },
106
+ [ChainId.SCL]: {
107
+ address: '0x0000000000000000000000000000000000000000',
108
+ decimals: 18,
109
+ },
106
110
  // Testnets
107
111
  [ChainId.GOR]: {
108
112
  address: '0x0000000000000000000000000000000000000000',
@@ -128,6 +132,10 @@ export const basicCoins = [
128
132
  address: '0x0000000000000000000000000000000000000000',
129
133
  decimals: 18,
130
134
  },
135
+ [ChainId.SCLT]: {
136
+ address: '0x0000000000000000000000000000000000000000',
137
+ decimals: 18,
138
+ },
131
139
  },
132
140
  },
133
141
  // > MATIC
@@ -338,6 +346,10 @@ export const basicCoins = [
338
346
  name: 'Metis DAI',
339
347
  symbol: 'm.DAI',
340
348
  },
349
+ [ChainId.SCL]: {
350
+ address: '0xcA77eB3fEFe3725Dc33bccB54eDEFc3D9f764f97',
351
+ decimals: 18,
352
+ },
341
353
  // Testnets
342
354
  [ChainId.GOR]: {
343
355
  address: '0xdc31ee1784292379fbb2964b3b9c4124d8f89c60',
@@ -592,6 +604,10 @@ export const basicCoins = [
592
604
  name: 'Metis USDT',
593
605
  symbol: 'm.USDT',
594
606
  },
607
+ [ChainId.SCL]: {
608
+ address: '0xf55BEC9cafDbE8730f096Aa55dad6D22d44099Df',
609
+ decimals: 6,
610
+ },
595
611
  // Testnets
596
612
  [ChainId.GOR]: {
597
613
  address: '0x509ee0d083ddf8ac028f2a56731412edd63223b9',
@@ -908,6 +924,10 @@ export const basicCoins = [
908
924
  name: 'Metis USDC',
909
925
  symbol: 'm.USDC',
910
926
  },
927
+ [ChainId.SCL]: {
928
+ address: '0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4',
929
+ decimals: 6,
930
+ },
911
931
  // Testnets
912
932
  [ChainId.GOR]: {
913
933
  address: '0xd87ba7a50b2e7e660f678a895e4b72e7cb4ccd9c',
@@ -1152,6 +1172,10 @@ export const basicCoins = [
1152
1172
  address: '0xF4eB217Ba2454613b15dBdea6e5f22276410e89e',
1153
1173
  decimals: 8,
1154
1174
  },
1175
+ [ChainId.SCL]: {
1176
+ address: '0x3C1BCa5a656e69edCD0D4E36BEbb3FcDAcA60Cf1',
1177
+ decimals: 8,
1178
+ },
1155
1179
  },
1156
1180
  },
1157
1181
  // > WETH
@@ -1252,6 +1276,10 @@ export const basicCoins = [
1252
1276
  address: '0x420000000000000000000000000000000000000A',
1253
1277
  decimals: 18,
1254
1278
  },
1279
+ [ChainId.SCL]: {
1280
+ address: '0x5300000000000000000000000000000000000004',
1281
+ decimals: 18,
1282
+ },
1255
1283
  // Testnets
1256
1284
  [ChainId.GOR]: {
1257
1285
  address: '0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6',
@@ -1269,6 +1297,10 @@ export const basicCoins = [
1269
1297
  address: '0x2C1b868d6596a18e32E61B901E4060C872647b6C',
1270
1298
  decimals: 18,
1271
1299
  },
1300
+ [ChainId.SCLT]: {
1301
+ address: '0x5300000000000000000000000000000000000004',
1302
+ decimals: 18,
1303
+ },
1272
1304
  },
1273
1305
  },
1274
1306
  // > SUSHI
@@ -1889,6 +1921,16 @@ export const wrappedTokens = {
1889
1921
  name: 'Wrapped VLX',
1890
1922
  logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/tokens/vlx.png',
1891
1923
  },
1924
+ [ChainId.SCL]: {
1925
+ // https://scrollscan.com/token/0x5300000000000000000000000000000000000004
1926
+ address: '0x5300000000000000000000000000000000000004',
1927
+ symbol: 'WETH',
1928
+ decimals: 18,
1929
+ chainId: ChainId.SCL,
1930
+ coinKey: CoinKey.WETH,
1931
+ name: 'WETH',
1932
+ logoURI: 'https://static.debank.com/image/era_token/logo_url/0x5aea5775959fbc2557cc8789bc1bf90a239d9a91/61844453e63cf81301f845d7864236f6.png',
1933
+ },
1892
1934
  // Testnets
1893
1935
  [ChainId.GOR]: {
1894
1936
  // https://goerli.etherscan.io/token/0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6
@@ -1959,6 +2001,16 @@ export const wrappedTokens = {
1959
2001
  name: 'WETH',
1960
2002
  logoURI: 'https://static.debank.com/image/era_token/logo_url/0x5aea5775959fbc2557cc8789bc1bf90a239d9a91/61844453e63cf81301f845d7864236f6.png',
1961
2003
  },
2004
+ [ChainId.SCLT]: {
2005
+ // https://sepolia.scrollscan.com/token/0x5300000000000000000000000000000000000004
2006
+ address: '0x5300000000000000000000000000000000000004',
2007
+ symbol: 'WETH',
2008
+ decimals: 18,
2009
+ chainId: ChainId.SCLT,
2010
+ coinKey: CoinKey.WETH,
2011
+ name: 'WETH',
2012
+ logoURI: 'https://static.debank.com/image/era_token/logo_url/0x5aea5775959fbc2557cc8789bc1bf90a239d9a91/61844453e63cf81301f845d7864236f6.png',
2013
+ },
1962
2014
  [ChainId.AVAT]: {
1963
2015
  // https://testnet.snowtrace.io/token/0xd00ae08403B9bbb9124bB305C09058E32C39A48c
1964
2016
  address: '0xd00ae08403B9bbb9124bB305C09058E32C39A48c',
package/dist/multicall.js CHANGED
@@ -37,6 +37,7 @@ export const multicallAddresses = {
37
37
  [ChainId.LNA]: '0xcA11bde05977b3631167028862bE2a173976CA11',
38
38
  [ChainId.ARN]: '0xcA11bde05977b3631167028862bE2a173976CA11',
39
39
  [ChainId.BAS]: '0xcA11bde05977b3631167028862bE2a173976CA11',
40
+ [ChainId.SCL]: '0xcA11bde05977b3631167028862bE2a173976CA11',
40
41
  // TODO
41
42
  // [ChainId.EXP]: '', // TODO
42
43
  // [ChainId.TCH]: '', // TODO
@@ -61,6 +62,7 @@ export const multicallAddresses = {
61
62
  [ChainId.RSKT]: '0xcA11bde05977b3631167028862bE2a173976CA11',
62
63
  [ChainId.ARBG]: '0xcA11bde05977b3631167028862bE2a173976CA11',
63
64
  [ChainId.LNAT]: '0xcA11bde05977b3631167028862bE2a173976CA11',
65
+ [ChainId.SCLT]: '0xcA11bde05977b3631167028862bE2a173976CA11',
64
66
  // TODO
65
67
  // [ChainId.METT]: '', // TODO
66
68
  // [ChainId.DIOT]: '', // TODO
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifi/data-types",
3
- "version": "2.4.2",
3
+ "version": "2.6.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": "^11.2.0"
66
+ "@lifi/types": "^11.4.1"
67
67
  },
68
68
  "devDependencies": {
69
69
  "@commitlint/cli": "^17.7.1",