@lifi/data-types 1.0.0-alpha.0 → 1.0.0-alpha.2

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.
@@ -802,6 +802,48 @@ export const supportedEVMChains = [
802
802
  rpcUrls: ['https://zkevm-rpc.com'],
803
803
  },
804
804
  },
805
+ {
806
+ key: ChainKey.BAS,
807
+ chainType: ChainType.EVM,
808
+ name: 'BASE',
809
+ coin: CoinKey.ETH,
810
+ id: ChainId.BAS,
811
+ mainnet: true,
812
+ logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/base.svg',
813
+ multicallAddress: multicallAddresses[ChainId.BAS],
814
+ metamask: {
815
+ chainId: prefixChainId(ChainId.BAS),
816
+ blockExplorerUrls: ['https://basescan.org/'],
817
+ chainName: 'BASE',
818
+ nativeCurrency: {
819
+ name: 'Ethereum',
820
+ symbol: 'ETH',
821
+ decimals: 18,
822
+ },
823
+ rpcUrls: ['https://mainnet.base.org'],
824
+ },
825
+ },
826
+ {
827
+ key: ChainKey.LNA,
828
+ chainType: ChainType.EVM,
829
+ name: 'Linea',
830
+ coin: CoinKey.ETH,
831
+ id: 59144,
832
+ mainnet: true,
833
+ logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/linea.svg',
834
+ multicallAddress: multicallAddresses[ChainId.LNA],
835
+ metamask: {
836
+ chainId: prefixChainId(59144),
837
+ blockExplorerUrls: ['https://lineascan.build/'],
838
+ chainName: 'LINEA',
839
+ nativeCurrency: {
840
+ name: 'ETH',
841
+ symbol: 'ETH',
842
+ decimals: 18,
843
+ },
844
+ rpcUrls: ['https://rpc.linea.build'],
845
+ },
846
+ },
805
847
  // TESTNETS
806
848
  // 5 - Goerli
807
849
  {
@@ -805,6 +805,48 @@ exports.supportedEVMChains = [
805
805
  rpcUrls: ['https://zkevm-rpc.com'],
806
806
  },
807
807
  },
808
+ {
809
+ key: types_1.ChainKey.BAS,
810
+ chainType: types_1.ChainType.EVM,
811
+ name: 'BASE',
812
+ coin: types_1.CoinKey.ETH,
813
+ id: types_1.ChainId.BAS,
814
+ mainnet: true,
815
+ logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/base.svg',
816
+ multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.BAS],
817
+ metamask: {
818
+ chainId: (0, utils_1.prefixChainId)(types_1.ChainId.BAS),
819
+ blockExplorerUrls: ['https://basescan.org/'],
820
+ chainName: 'BASE',
821
+ nativeCurrency: {
822
+ name: 'Ethereum',
823
+ symbol: 'ETH',
824
+ decimals: 18,
825
+ },
826
+ rpcUrls: ['https://mainnet.base.org'],
827
+ },
828
+ },
829
+ {
830
+ key: types_1.ChainKey.LNA,
831
+ chainType: types_1.ChainType.EVM,
832
+ name: 'Linea',
833
+ coin: types_1.CoinKey.ETH,
834
+ id: 59144,
835
+ mainnet: true,
836
+ logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/linea.svg',
837
+ multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.LNA],
838
+ metamask: {
839
+ chainId: (0, utils_1.prefixChainId)(59144),
840
+ blockExplorerUrls: ['https://lineascan.build/'],
841
+ chainName: 'LINEA',
842
+ nativeCurrency: {
843
+ name: 'ETH',
844
+ symbol: 'ETH',
845
+ decimals: 18,
846
+ },
847
+ rpcUrls: ['https://rpc.linea.build'],
848
+ },
849
+ },
808
850
  // TESTNETS
809
851
  // 5 - Goerli
810
852
  {
@@ -51,6 +51,14 @@ exports.basicCoins = [
51
51
  address: '0x0000000000000000000000000000000000000000',
52
52
  decimals: 18,
53
53
  },
54
+ [types_1.ChainId.BAS]: {
55
+ address: '0x0000000000000000000000000000000000000000',
56
+ decimals: 18,
57
+ },
58
+ [types_1.ChainId.LNA]: {
59
+ address: '0x0000000000000000000000000000000000000000',
60
+ decimals: 18,
61
+ },
54
62
  [types_1.ChainId.FTM]: {
55
63
  address: '0x74b23882a30290451a17c44f4f05243b6b58c76d',
56
64
  decimals: 18,
@@ -556,6 +564,11 @@ exports.basicCoins = [
556
564
  decimals: 6,
557
565
  name: 'Multichain USDT',
558
566
  },
567
+ [types_1.ChainId.LNA]: {
568
+ address: '0xa219439258ca9da29e9cc4ce5596924745e12b93',
569
+ decimals: 6,
570
+ name: 'USDT',
571
+ },
559
572
  // Testnets
560
573
  [types_1.ChainId.GOR]: {
561
574
  address: '0x509ee0d083ddf8ac028f2a56731412edd63223b9',
@@ -786,6 +799,11 @@ exports.basicCoins = [
786
799
  address: '0x7f5c764cbc14f9669b88837ca1490cca17c31607',
787
800
  decimals: 6,
788
801
  },
802
+ [types_1.ChainId.BAS]: {
803
+ address: '0xd9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca',
804
+ decimals: 6,
805
+ name: 'USD Base Coin',
806
+ },
789
807
  [types_1.ChainId.ERA]: {
790
808
  address: '0x3355df6d4c9c3035724fd0e3914de96a5a83aaf4',
791
809
  decimals: 6,
@@ -856,6 +874,11 @@ exports.basicCoins = [
856
874
  decimals: 6,
857
875
  name: 'Multichain USDC',
858
876
  },
877
+ [types_1.ChainId.LNA]: {
878
+ address: '0x176211869ca2b568f2a7d4ee941e073a821ee1ff',
879
+ decimals: 6,
880
+ name: 'USDC.e',
881
+ },
859
882
  // Testnets
860
883
  [types_1.ChainId.GOR]: {
861
884
  address: '0xd87ba7a50b2e7e660f678a895e4b72e7cb4ccd9c',
@@ -1118,6 +1141,10 @@ exports.basicCoins = [
1118
1141
  address: '0x74b23882a30290451a17c44f4f05243b6b58c76d',
1119
1142
  decimals: 18,
1120
1143
  },
1144
+ [types_1.ChainId.LNA]: {
1145
+ address: '0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f',
1146
+ decimals: 18,
1147
+ },
1121
1148
  [types_1.ChainId.AVA]: {
1122
1149
  address: '0x49d5c2bdffac6ce2bfdb6640f4f80f226bc10bab',
1123
1150
  decimals: 18,
@@ -1132,6 +1159,10 @@ exports.basicCoins = [
1132
1159
  address: '0x4200000000000000000000000000000000000006',
1133
1160
  decimals: 18,
1134
1161
  },
1162
+ [types_1.ChainId.BAS]: {
1163
+ address: '0x4200000000000000000000000000000000000006',
1164
+ decimals: 18,
1165
+ },
1135
1166
  [types_1.ChainId.MOR]: {
1136
1167
  address: '0x639a647fbe20b6c8ac19e48e2de44ea792c62c5c',
1137
1168
  decimals: 18,
@@ -1581,6 +1612,26 @@ exports.wrappedTokens = {
1581
1612
  name: 'Wrapped Ether',
1582
1613
  logoURI: 'https://static.debank.com/image/pze_token/logo_url/0x4f9a0e7fd2bf6067db6994cf12e4495df938e6e9/61844453e63cf81301f845d7864236f6.png',
1583
1614
  },
1615
+ [types_1.ChainId.BAS]: {
1616
+ // https://basescan.org/address/0x4200000000000000000000000000000000000006
1617
+ address: '0x4200000000000000000000000000000000000006',
1618
+ symbol: 'WETH',
1619
+ decimals: 18,
1620
+ chainId: types_1.ChainId.BAS,
1621
+ coinKey: types_1.CoinKey.WETH,
1622
+ name: 'Wrapped Ether',
1623
+ logoURI: 'https://static.debank.com/image/coin/logo_url/eth/d61441782d4a08a7479d54aea211679e.png',
1624
+ },
1625
+ [types_1.ChainId.LNA]: {
1626
+ // https://lineascan.build/address/0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f
1627
+ address: '0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f',
1628
+ symbol: 'WETH',
1629
+ decimals: 18,
1630
+ chainId: types_1.ChainId.LNA,
1631
+ coinKey: types_1.CoinKey.WETH,
1632
+ name: 'Wrapped Ether',
1633
+ logoURI: 'https://static.debank.com/image/mtr_token/logo_url/0x79a61d3a28f8c8537a3df63092927cfa1150fb3c/61844453e63cf81301f845d7864236f6.png',
1634
+ },
1584
1635
  [types_1.ChainId.FTM]: {
1585
1636
  //
1586
1637
  address: '0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83',
@@ -39,6 +39,7 @@ exports.multicallAddresses = {
39
39
  [types_1.ChainId.ERA]: '0xF9cda624FBC7e059355ce98a31693d299FACd963',
40
40
  [types_1.ChainId.LNA]: '0xcA11bde05977b3631167028862bE2a173976CA11',
41
41
  [types_1.ChainId.ARN]: '0xcA11bde05977b3631167028862bE2a173976CA11',
42
+ [types_1.ChainId.BAS]: '0xcA11bde05977b3631167028862bE2a173976CA11',
42
43
  // TODO
43
44
  // [ChainId.EXP]: '', // TODO
44
45
  // [ChainId.TCH]: '', // TODO
@@ -48,6 +48,14 @@ export const basicCoins = [
48
48
  address: '0x0000000000000000000000000000000000000000',
49
49
  decimals: 18,
50
50
  },
51
+ [ChainId.BAS]: {
52
+ address: '0x0000000000000000000000000000000000000000',
53
+ decimals: 18,
54
+ },
55
+ [ChainId.LNA]: {
56
+ address: '0x0000000000000000000000000000000000000000',
57
+ decimals: 18,
58
+ },
51
59
  [ChainId.FTM]: {
52
60
  address: '0x74b23882a30290451a17c44f4f05243b6b58c76d',
53
61
  decimals: 18,
@@ -553,6 +561,11 @@ export const basicCoins = [
553
561
  decimals: 6,
554
562
  name: 'Multichain USDT',
555
563
  },
564
+ [ChainId.LNA]: {
565
+ address: '0xa219439258ca9da29e9cc4ce5596924745e12b93',
566
+ decimals: 6,
567
+ name: 'USDT',
568
+ },
556
569
  // Testnets
557
570
  [ChainId.GOR]: {
558
571
  address: '0x509ee0d083ddf8ac028f2a56731412edd63223b9',
@@ -783,6 +796,11 @@ export const basicCoins = [
783
796
  address: '0x7f5c764cbc14f9669b88837ca1490cca17c31607',
784
797
  decimals: 6,
785
798
  },
799
+ [ChainId.BAS]: {
800
+ address: '0xd9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca',
801
+ decimals: 6,
802
+ name: 'USD Base Coin',
803
+ },
786
804
  [ChainId.ERA]: {
787
805
  address: '0x3355df6d4c9c3035724fd0e3914de96a5a83aaf4',
788
806
  decimals: 6,
@@ -853,6 +871,11 @@ export const basicCoins = [
853
871
  decimals: 6,
854
872
  name: 'Multichain USDC',
855
873
  },
874
+ [ChainId.LNA]: {
875
+ address: '0x176211869ca2b568f2a7d4ee941e073a821ee1ff',
876
+ decimals: 6,
877
+ name: 'USDC.e',
878
+ },
856
879
  // Testnets
857
880
  [ChainId.GOR]: {
858
881
  address: '0xd87ba7a50b2e7e660f678a895e4b72e7cb4ccd9c',
@@ -1115,6 +1138,10 @@ export const basicCoins = [
1115
1138
  address: '0x74b23882a30290451a17c44f4f05243b6b58c76d',
1116
1139
  decimals: 18,
1117
1140
  },
1141
+ [ChainId.LNA]: {
1142
+ address: '0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f',
1143
+ decimals: 18,
1144
+ },
1118
1145
  [ChainId.AVA]: {
1119
1146
  address: '0x49d5c2bdffac6ce2bfdb6640f4f80f226bc10bab',
1120
1147
  decimals: 18,
@@ -1129,6 +1156,10 @@ export const basicCoins = [
1129
1156
  address: '0x4200000000000000000000000000000000000006',
1130
1157
  decimals: 18,
1131
1158
  },
1159
+ [ChainId.BAS]: {
1160
+ address: '0x4200000000000000000000000000000000000006',
1161
+ decimals: 18,
1162
+ },
1132
1163
  [ChainId.MOR]: {
1133
1164
  address: '0x639a647fbe20b6c8ac19e48e2de44ea792c62c5c',
1134
1165
  decimals: 18,
@@ -1578,6 +1609,26 @@ export const wrappedTokens = {
1578
1609
  name: 'Wrapped Ether',
1579
1610
  logoURI: 'https://static.debank.com/image/pze_token/logo_url/0x4f9a0e7fd2bf6067db6994cf12e4495df938e6e9/61844453e63cf81301f845d7864236f6.png',
1580
1611
  },
1612
+ [ChainId.BAS]: {
1613
+ // https://basescan.org/address/0x4200000000000000000000000000000000000006
1614
+ address: '0x4200000000000000000000000000000000000006',
1615
+ symbol: 'WETH',
1616
+ decimals: 18,
1617
+ chainId: ChainId.BAS,
1618
+ coinKey: CoinKey.WETH,
1619
+ name: 'Wrapped Ether',
1620
+ logoURI: 'https://static.debank.com/image/coin/logo_url/eth/d61441782d4a08a7479d54aea211679e.png',
1621
+ },
1622
+ [ChainId.LNA]: {
1623
+ // https://lineascan.build/address/0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f
1624
+ address: '0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f',
1625
+ symbol: 'WETH',
1626
+ decimals: 18,
1627
+ chainId: ChainId.LNA,
1628
+ coinKey: CoinKey.WETH,
1629
+ name: 'Wrapped Ether',
1630
+ logoURI: 'https://static.debank.com/image/mtr_token/logo_url/0x79a61d3a28f8c8537a3df63092927cfa1150fb3c/61844453e63cf81301f845d7864236f6.png',
1631
+ },
1581
1632
  [ChainId.FTM]: {
1582
1633
  //
1583
1634
  address: '0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83',
package/dist/multicall.js CHANGED
@@ -36,6 +36,7 @@ export const multicallAddresses = {
36
36
  [ChainId.ERA]: '0xF9cda624FBC7e059355ce98a31693d299FACd963',
37
37
  [ChainId.LNA]: '0xcA11bde05977b3631167028862bE2a173976CA11',
38
38
  [ChainId.ARN]: '0xcA11bde05977b3631167028862bE2a173976CA11',
39
+ [ChainId.BAS]: '0xcA11bde05977b3631167028862bE2a173976CA11',
39
40
  // TODO
40
41
  // [ChainId.EXP]: '', // TODO
41
42
  // [ChainId.TCH]: '', // TODO
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifi/data-types",
3
- "version": "1.0.0-alpha.0",
3
+ "version": "1.0.0-alpha.2",
4
4
  "description": "Data types for the LI.FI stack",
5
5
  "keywords": [
6
6
  "sdk",
@@ -63,14 +63,14 @@
63
63
  ]
64
64
  },
65
65
  "dependencies": {
66
- "@lifi/types": "^8.4.0"
66
+ "@lifi/types": "^8.5.0"
67
67
  },
68
68
  "devDependencies": {
69
69
  "@commitlint/cli": "^17.7.1",
70
70
  "@commitlint/config-conventional": "^17.7.0",
71
71
  "@types/jest": "^29.5.4",
72
- "@typescript-eslint/eslint-plugin": "^6.4.1",
73
- "@typescript-eslint/parser": "^6.4.1",
72
+ "@typescript-eslint/eslint-plugin": "^6.5.0",
73
+ "@typescript-eslint/parser": "^6.5.0",
74
74
  "eslint": "^8.48.0",
75
75
  "eslint-config-prettier": "^9.0.0",
76
76
  "eslint-plugin-prettier": "^5.0.0",