@lifi/data-types 4.4.1 → 4.5.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.
@@ -55,7 +55,7 @@ export const supportedEVMChains = [
55
55
  },
56
56
  rpcUrls: [
57
57
  'https://polygon-rpc.com/',
58
- 'https://rpc-mainnet.maticvigil.com/',
58
+ 'https://polygon.llamarpc.com/',
59
59
  ],
60
60
  },
61
61
  },
@@ -601,27 +601,6 @@ export const supportedEVMChains = [
601
601
  rpcUrls: ['https://rpc.genesisl1.org'],
602
602
  },
603
603
  },
604
- // 30 RSK Mainnet
605
- {
606
- key: ChainKey.RSK,
607
- chainType: ChainType.EVM,
608
- name: 'RSK Mainnet',
609
- coin: CoinKey.RBTC,
610
- id: 30,
611
- mainnet: true,
612
- multicallAddress: multicallAddresses[ChainId.RSK],
613
- metamask: {
614
- chainId: prefixChainId(30),
615
- blockExplorerUrls: ['https://explorer.rsk.co/'],
616
- chainName: 'RSK Mainnet',
617
- nativeCurrency: {
618
- name: 'RBTC',
619
- symbol: 'RBTC',
620
- decimals: 18,
621
- },
622
- rpcUrls: ['https://public-node.rsk.co'],
623
- },
624
- },
625
604
  // 35 TBWG Chain
626
605
  {
627
606
  key: ChainKey.TBW,
@@ -926,6 +905,28 @@ export const supportedEVMChains = [
926
905
  rpcUrls: ['https://rpc.blast.io', 'https://rpc.ankr.com/blast'],
927
906
  },
928
907
  },
908
+ // 30 - Rootstock
909
+ {
910
+ key: ChainKey.RSK,
911
+ chainType: ChainType.EVM,
912
+ name: 'Rootstock',
913
+ coin: CoinKey.RBTC,
914
+ id: 30,
915
+ mainnet: true,
916
+ logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/rootstock.svg',
917
+ multicallAddress: multicallAddresses[ChainId.RSK],
918
+ metamask: {
919
+ chainId: prefixChainId(30),
920
+ blockExplorerUrls: ['https://explorer.rootstock.io/'],
921
+ chainName: 'Rootstock',
922
+ nativeCurrency: {
923
+ name: 'Rootstock Smart Bitcoin',
924
+ symbol: 'RBTC',
925
+ decimals: 18,
926
+ },
927
+ rpcUrls: ['https://public-node.rsk.co', 'https://mycrypto.rsk.co'],
928
+ },
929
+ },
929
930
  // TESTNETS
930
931
  // 12 - Metadium Testnet
931
932
  {
@@ -58,7 +58,7 @@ exports.supportedEVMChains = [
58
58
  },
59
59
  rpcUrls: [
60
60
  'https://polygon-rpc.com/',
61
- 'https://rpc-mainnet.maticvigil.com/',
61
+ 'https://polygon.llamarpc.com/',
62
62
  ],
63
63
  },
64
64
  },
@@ -604,27 +604,6 @@ exports.supportedEVMChains = [
604
604
  rpcUrls: ['https://rpc.genesisl1.org'],
605
605
  },
606
606
  },
607
- // 30 RSK Mainnet
608
- {
609
- key: types_1.ChainKey.RSK,
610
- chainType: types_1.ChainType.EVM,
611
- name: 'RSK Mainnet',
612
- coin: types_1.CoinKey.RBTC,
613
- id: 30,
614
- mainnet: true,
615
- multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.RSK],
616
- metamask: {
617
- chainId: (0, utils_1.prefixChainId)(30),
618
- blockExplorerUrls: ['https://explorer.rsk.co/'],
619
- chainName: 'RSK Mainnet',
620
- nativeCurrency: {
621
- name: 'RBTC',
622
- symbol: 'RBTC',
623
- decimals: 18,
624
- },
625
- rpcUrls: ['https://public-node.rsk.co'],
626
- },
627
- },
628
607
  // 35 TBWG Chain
629
608
  {
630
609
  key: types_1.ChainKey.TBW,
@@ -929,6 +908,28 @@ exports.supportedEVMChains = [
929
908
  rpcUrls: ['https://rpc.blast.io', 'https://rpc.ankr.com/blast'],
930
909
  },
931
910
  },
911
+ // 30 - Rootstock
912
+ {
913
+ key: types_1.ChainKey.RSK,
914
+ chainType: types_1.ChainType.EVM,
915
+ name: 'Rootstock',
916
+ coin: types_1.CoinKey.RBTC,
917
+ id: 30,
918
+ mainnet: true,
919
+ logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/rootstock.svg',
920
+ multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.RSK],
921
+ metamask: {
922
+ chainId: (0, utils_1.prefixChainId)(30),
923
+ blockExplorerUrls: ['https://explorer.rootstock.io/'],
924
+ chainName: 'Rootstock',
925
+ nativeCurrency: {
926
+ name: 'Rootstock Smart Bitcoin',
927
+ symbol: 'RBTC',
928
+ decimals: 18,
929
+ },
930
+ rpcUrls: ['https://public-node.rsk.co', 'https://mycrypto.rsk.co'],
931
+ },
932
+ },
932
933
  // TESTNETS
933
934
  // 12 - Metadium Testnet
934
935
  {
@@ -474,6 +474,19 @@ exports.basicCoins = [
474
474
  },
475
475
  },
476
476
  },
477
+ // > RSK
478
+ {
479
+ key: types_1.CoinKey.RBTC,
480
+ name: 'Rootstock Smart Bitcoin',
481
+ logoURI: 'https://static.debank.com/image/mnt_token/logo_url/0x78c1b0c915c4faa5fffa6cabf0219da63d7f4cb8/a443c78c33704d48f06e5686bb87f85e.png',
482
+ verified: true,
483
+ chains: {
484
+ [types_1.ChainId.RSK]: {
485
+ address: '0x0000000000000000000000000000000000000000',
486
+ decimals: 18,
487
+ },
488
+ },
489
+ },
477
490
  // OTHER STABLECOINS
478
491
  // USDT
479
492
  {
@@ -600,6 +613,12 @@ exports.basicCoins = [
600
613
  address: '0x201EBa5CC46D216Ce6DC03F6a759e8E766e956aE',
601
614
  decimals: 6,
602
615
  },
616
+ [types_1.ChainId.RSK]: {
617
+ address: '0xef213441a85df4d7acbdae0cf78004e1e486bb96',
618
+ decimals: 18,
619
+ name: 'rUSDT',
620
+ symbol: 'rUSDT',
621
+ },
603
622
  },
604
623
  },
605
624
  // ======= STARGATE TESTNET TOKENS =======
@@ -1094,6 +1113,11 @@ exports.basicCoins = [
1094
1113
  address: '0xCAbAE6f6Ea1ecaB08Ad02fE02ce9A44F09aebfA2',
1095
1114
  decimals: 8,
1096
1115
  },
1116
+ [types_1.ChainId.RSK]: {
1117
+ address: '0x542fda317318ebf1d3deaf76e0b632741a7e677d',
1118
+ decimals: 18,
1119
+ symbol: 'WRBTC',
1120
+ },
1097
1121
  },
1098
1122
  },
1099
1123
  // > WETH
@@ -1868,6 +1892,15 @@ exports.wrappedTokens = {
1868
1892
  name: 'WETH',
1869
1893
  logoURI: 'https://static.debank.com/image/mtr_token/logo_url/0x79a61d3a28f8c8537a3df63092927cfa1150fb3c/61844453e63cf81301f845d7864236f6.png',
1870
1894
  },
1895
+ [types_1.ChainId.RSK]: {
1896
+ address: '0x542fda317318ebf1d3deaf76e0b632741a7e677d',
1897
+ symbol: 'WRBTC',
1898
+ decimals: 18,
1899
+ chainId: types_1.ChainId.RSK,
1900
+ coinKey: types_1.CoinKey.WBTC,
1901
+ name: 'Wrapped BTC',
1902
+ logoURI: 'https://static.debank.com/image/rsk_token/logo_url/0x542fda317318ebf1d3deaf76e0b632741a7e677d/4785a26ef5bb5df987e67ad49fc62137.png',
1903
+ },
1871
1904
  // Testnets
1872
1905
  [types_1.ChainId.ONET]: {
1873
1906
  address: '0x7466d7d0c21fa05f32f5a0fa27e12bdc06348ce2',
@@ -471,6 +471,19 @@ export const basicCoins = [
471
471
  },
472
472
  },
473
473
  },
474
+ // > RSK
475
+ {
476
+ key: CoinKey.RBTC,
477
+ name: 'Rootstock Smart Bitcoin',
478
+ logoURI: 'https://static.debank.com/image/mnt_token/logo_url/0x78c1b0c915c4faa5fffa6cabf0219da63d7f4cb8/a443c78c33704d48f06e5686bb87f85e.png',
479
+ verified: true,
480
+ chains: {
481
+ [ChainId.RSK]: {
482
+ address: '0x0000000000000000000000000000000000000000',
483
+ decimals: 18,
484
+ },
485
+ },
486
+ },
474
487
  // OTHER STABLECOINS
475
488
  // USDT
476
489
  {
@@ -597,6 +610,12 @@ export const basicCoins = [
597
610
  address: '0x201EBa5CC46D216Ce6DC03F6a759e8E766e956aE',
598
611
  decimals: 6,
599
612
  },
613
+ [ChainId.RSK]: {
614
+ address: '0xef213441a85df4d7acbdae0cf78004e1e486bb96',
615
+ decimals: 18,
616
+ name: 'rUSDT',
617
+ symbol: 'rUSDT',
618
+ },
600
619
  },
601
620
  },
602
621
  // ======= STARGATE TESTNET TOKENS =======
@@ -1091,6 +1110,11 @@ export const basicCoins = [
1091
1110
  address: '0xCAbAE6f6Ea1ecaB08Ad02fE02ce9A44F09aebfA2',
1092
1111
  decimals: 8,
1093
1112
  },
1113
+ [ChainId.RSK]: {
1114
+ address: '0x542fda317318ebf1d3deaf76e0b632741a7e677d',
1115
+ decimals: 18,
1116
+ symbol: 'WRBTC',
1117
+ },
1094
1118
  },
1095
1119
  },
1096
1120
  // > WETH
@@ -1865,6 +1889,15 @@ export const wrappedTokens = {
1865
1889
  name: 'WETH',
1866
1890
  logoURI: 'https://static.debank.com/image/mtr_token/logo_url/0x79a61d3a28f8c8537a3df63092927cfa1150fb3c/61844453e63cf81301f845d7864236f6.png',
1867
1891
  },
1892
+ [ChainId.RSK]: {
1893
+ address: '0x542fda317318ebf1d3deaf76e0b632741a7e677d',
1894
+ symbol: 'WRBTC',
1895
+ decimals: 18,
1896
+ chainId: ChainId.RSK,
1897
+ coinKey: CoinKey.WBTC,
1898
+ name: 'Wrapped BTC',
1899
+ logoURI: 'https://static.debank.com/image/rsk_token/logo_url/0x542fda317318ebf1d3deaf76e0b632741a7e677d/4785a26ef5bb5df987e67ad49fc62137.png',
1900
+ },
1868
1901
  // Testnets
1869
1902
  [ChainId.ONET]: {
1870
1903
  address: '0x7466d7d0c21fa05f32f5a0fa27e12bdc06348ce2',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifi/data-types",
3
- "version": "4.4.1",
3
+ "version": "4.5.1",
4
4
  "description": "Data types for the LI.FI stack",
5
5
  "keywords": [
6
6
  "sdk",