@lifi/data-types 1.0.0-alpha.0 → 1.0.0-alpha.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.
@@ -802,6 +802,27 @@ 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
+ },
805
826
  // TESTNETS
806
827
  // 5 - Goerli
807
828
  {
@@ -805,6 +805,27 @@ 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
+ },
808
829
  // TESTNETS
809
830
  // 5 - Goerli
810
831
  {
@@ -51,6 +51,10 @@ exports.basicCoins = [
51
51
  address: '0x0000000000000000000000000000000000000000',
52
52
  decimals: 18,
53
53
  },
54
+ [types_1.ChainId.BAS]: {
55
+ address: '0x0000000000000000000000000000000000000000',
56
+ decimals: 18,
57
+ },
54
58
  [types_1.ChainId.FTM]: {
55
59
  address: '0x74b23882a30290451a17c44f4f05243b6b58c76d',
56
60
  decimals: 18,
@@ -786,6 +790,11 @@ exports.basicCoins = [
786
790
  address: '0x7f5c764cbc14f9669b88837ca1490cca17c31607',
787
791
  decimals: 6,
788
792
  },
793
+ [types_1.ChainId.BAS]: {
794
+ address: '0xd9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca',
795
+ decimals: 6,
796
+ name: 'USD Base Coin',
797
+ },
789
798
  [types_1.ChainId.ERA]: {
790
799
  address: '0x3355df6d4c9c3035724fd0e3914de96a5a83aaf4',
791
800
  decimals: 6,
@@ -1132,6 +1141,10 @@ exports.basicCoins = [
1132
1141
  address: '0x4200000000000000000000000000000000000006',
1133
1142
  decimals: 18,
1134
1143
  },
1144
+ [types_1.ChainId.BAS]: {
1145
+ address: '0x4200000000000000000000000000000000000006',
1146
+ decimals: 18,
1147
+ },
1135
1148
  [types_1.ChainId.MOR]: {
1136
1149
  address: '0x639a647fbe20b6c8ac19e48e2de44ea792c62c5c',
1137
1150
  decimals: 18,
@@ -1581,6 +1594,16 @@ exports.wrappedTokens = {
1581
1594
  name: 'Wrapped Ether',
1582
1595
  logoURI: 'https://static.debank.com/image/pze_token/logo_url/0x4f9a0e7fd2bf6067db6994cf12e4495df938e6e9/61844453e63cf81301f845d7864236f6.png',
1583
1596
  },
1597
+ [types_1.ChainId.BAS]: {
1598
+ // https://basescan.org/address/0x4200000000000000000000000000000000000006
1599
+ address: '0x4200000000000000000000000000000000000006',
1600
+ symbol: 'WETH',
1601
+ decimals: 18,
1602
+ chainId: types_1.ChainId.BAS,
1603
+ coinKey: types_1.CoinKey.WETH,
1604
+ name: 'Wrapped Ether',
1605
+ logoURI: 'https://static.debank.com/image/coin/logo_url/eth/d61441782d4a08a7479d54aea211679e.png',
1606
+ },
1584
1607
  [types_1.ChainId.FTM]: {
1585
1608
  //
1586
1609
  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,10 @@ export const basicCoins = [
48
48
  address: '0x0000000000000000000000000000000000000000',
49
49
  decimals: 18,
50
50
  },
51
+ [ChainId.BAS]: {
52
+ address: '0x0000000000000000000000000000000000000000',
53
+ decimals: 18,
54
+ },
51
55
  [ChainId.FTM]: {
52
56
  address: '0x74b23882a30290451a17c44f4f05243b6b58c76d',
53
57
  decimals: 18,
@@ -783,6 +787,11 @@ export const basicCoins = [
783
787
  address: '0x7f5c764cbc14f9669b88837ca1490cca17c31607',
784
788
  decimals: 6,
785
789
  },
790
+ [ChainId.BAS]: {
791
+ address: '0xd9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca',
792
+ decimals: 6,
793
+ name: 'USD Base Coin',
794
+ },
786
795
  [ChainId.ERA]: {
787
796
  address: '0x3355df6d4c9c3035724fd0e3914de96a5a83aaf4',
788
797
  decimals: 6,
@@ -1129,6 +1138,10 @@ export const basicCoins = [
1129
1138
  address: '0x4200000000000000000000000000000000000006',
1130
1139
  decimals: 18,
1131
1140
  },
1141
+ [ChainId.BAS]: {
1142
+ address: '0x4200000000000000000000000000000000000006',
1143
+ decimals: 18,
1144
+ },
1132
1145
  [ChainId.MOR]: {
1133
1146
  address: '0x639a647fbe20b6c8ac19e48e2de44ea792c62c5c',
1134
1147
  decimals: 18,
@@ -1578,6 +1591,16 @@ export const wrappedTokens = {
1578
1591
  name: 'Wrapped Ether',
1579
1592
  logoURI: 'https://static.debank.com/image/pze_token/logo_url/0x4f9a0e7fd2bf6067db6994cf12e4495df938e6e9/61844453e63cf81301f845d7864236f6.png',
1580
1593
  },
1594
+ [ChainId.BAS]: {
1595
+ // https://basescan.org/address/0x4200000000000000000000000000000000000006
1596
+ address: '0x4200000000000000000000000000000000000006',
1597
+ symbol: 'WETH',
1598
+ decimals: 18,
1599
+ chainId: ChainId.BAS,
1600
+ coinKey: CoinKey.WETH,
1601
+ name: 'Wrapped Ether',
1602
+ logoURI: 'https://static.debank.com/image/coin/logo_url/eth/d61441782d4a08a7479d54aea211679e.png',
1603
+ },
1581
1604
  [ChainId.FTM]: {
1582
1605
  //
1583
1606
  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.1",
4
4
  "description": "Data types for the LI.FI stack",
5
5
  "keywords": [
6
6
  "sdk",