@lifi/data-types 4.0.0 → 4.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.
|
@@ -850,7 +850,7 @@ export const supportedEVMChains = [
|
|
|
850
850
|
],
|
|
851
851
|
},
|
|
852
852
|
},
|
|
853
|
-
//
|
|
853
|
+
// 34443 - Mode
|
|
854
854
|
{
|
|
855
855
|
key: ChainKey.MOD,
|
|
856
856
|
chainType: ChainType.EVM,
|
|
@@ -875,6 +875,35 @@ export const supportedEVMChains = [
|
|
|
875
875
|
rpcUrls: ['https://mainnet.mode.network/', 'https://mode.drpc.org'],
|
|
876
876
|
},
|
|
877
877
|
},
|
|
878
|
+
// 5000 - Mantle
|
|
879
|
+
{
|
|
880
|
+
key: ChainKey.MNT,
|
|
881
|
+
chainType: ChainType.EVM,
|
|
882
|
+
name: 'Mantle',
|
|
883
|
+
coin: CoinKey.MNT,
|
|
884
|
+
id: 5000,
|
|
885
|
+
mainnet: true,
|
|
886
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/mantle.svg',
|
|
887
|
+
multicallAddress: multicallAddresses[ChainId.MNT],
|
|
888
|
+
metamask: {
|
|
889
|
+
chainId: prefixChainId(5000),
|
|
890
|
+
blockExplorerUrls: [
|
|
891
|
+
'https://explorer.mantle.xyz',
|
|
892
|
+
'https://mantle.socialscan.io/',
|
|
893
|
+
],
|
|
894
|
+
chainName: 'Mantle',
|
|
895
|
+
nativeCurrency: {
|
|
896
|
+
name: 'Mantle',
|
|
897
|
+
symbol: 'MNT',
|
|
898
|
+
decimals: 18,
|
|
899
|
+
},
|
|
900
|
+
rpcUrls: [
|
|
901
|
+
'https://rpc.mantle.xyz',
|
|
902
|
+
'https://mantle.public-rpc.com',
|
|
903
|
+
'https://rpc.ankr.com/mantle',
|
|
904
|
+
],
|
|
905
|
+
},
|
|
906
|
+
},
|
|
878
907
|
// TESTNETS
|
|
879
908
|
// 12 - Metadium Testnet
|
|
880
909
|
{
|
|
@@ -853,7 +853,7 @@ exports.supportedEVMChains = [
|
|
|
853
853
|
],
|
|
854
854
|
},
|
|
855
855
|
},
|
|
856
|
-
//
|
|
856
|
+
// 34443 - Mode
|
|
857
857
|
{
|
|
858
858
|
key: types_1.ChainKey.MOD,
|
|
859
859
|
chainType: types_1.ChainType.EVM,
|
|
@@ -878,6 +878,35 @@ exports.supportedEVMChains = [
|
|
|
878
878
|
rpcUrls: ['https://mainnet.mode.network/', 'https://mode.drpc.org'],
|
|
879
879
|
},
|
|
880
880
|
},
|
|
881
|
+
// 5000 - Mantle
|
|
882
|
+
{
|
|
883
|
+
key: types_1.ChainKey.MNT,
|
|
884
|
+
chainType: types_1.ChainType.EVM,
|
|
885
|
+
name: 'Mantle',
|
|
886
|
+
coin: types_1.CoinKey.MNT,
|
|
887
|
+
id: 5000,
|
|
888
|
+
mainnet: true,
|
|
889
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/mantle.svg',
|
|
890
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.MNT],
|
|
891
|
+
metamask: {
|
|
892
|
+
chainId: (0, utils_1.prefixChainId)(5000),
|
|
893
|
+
blockExplorerUrls: [
|
|
894
|
+
'https://explorer.mantle.xyz',
|
|
895
|
+
'https://mantle.socialscan.io/',
|
|
896
|
+
],
|
|
897
|
+
chainName: 'Mantle',
|
|
898
|
+
nativeCurrency: {
|
|
899
|
+
name: 'Mantle',
|
|
900
|
+
symbol: 'MNT',
|
|
901
|
+
decimals: 18,
|
|
902
|
+
},
|
|
903
|
+
rpcUrls: [
|
|
904
|
+
'https://rpc.mantle.xyz',
|
|
905
|
+
'https://mantle.public-rpc.com',
|
|
906
|
+
'https://rpc.ankr.com/mantle',
|
|
907
|
+
],
|
|
908
|
+
},
|
|
909
|
+
},
|
|
881
910
|
// TESTNETS
|
|
882
911
|
// 12 - Metadium Testnet
|
|
883
912
|
{
|
package/dist/cjs/coins/coins.js
CHANGED
|
@@ -575,6 +575,10 @@ exports.basicCoins = [
|
|
|
575
575
|
address: '0xf0F161fDA2712DB8b566946122a5af183995e2eD',
|
|
576
576
|
decimals: 6,
|
|
577
577
|
},
|
|
578
|
+
[types_1.ChainId.MNT]: {
|
|
579
|
+
address: '0x201EBa5CC46D216Ce6DC03F6a759e8E766e956aE',
|
|
580
|
+
decimals: 6,
|
|
581
|
+
},
|
|
578
582
|
},
|
|
579
583
|
},
|
|
580
584
|
// ======= STARGATE TESTNET TOKENS =======
|
|
@@ -829,6 +833,10 @@ exports.basicCoins = [
|
|
|
829
833
|
address: '0xd988097fb8612cc24eeC14542bC03424c656005f',
|
|
830
834
|
decimals: 6,
|
|
831
835
|
},
|
|
836
|
+
[types_1.ChainId.MNT]: {
|
|
837
|
+
address: '0x09Bc4E0D864854c6aFB6eB9A9cdF58aC190D0dF9',
|
|
838
|
+
decimals: 6,
|
|
839
|
+
},
|
|
832
840
|
// Testnets
|
|
833
841
|
[types_1.ChainId.LNAT]: {
|
|
834
842
|
address: '0x964FF70695da981027c81020B1c58d833D49A640',
|
|
@@ -1048,6 +1056,10 @@ exports.basicCoins = [
|
|
|
1048
1056
|
address: '0x3C1BCa5a656e69edCD0D4E36BEbb3FcDAcA60Cf1',
|
|
1049
1057
|
decimals: 8,
|
|
1050
1058
|
},
|
|
1059
|
+
[types_1.ChainId.MNT]: {
|
|
1060
|
+
address: '0xCAbAE6f6Ea1ecaB08Ad02fE02ce9A44F09aebfA2',
|
|
1061
|
+
decimals: 8,
|
|
1062
|
+
},
|
|
1051
1063
|
},
|
|
1052
1064
|
},
|
|
1053
1065
|
// > WETH
|
|
@@ -1156,6 +1168,10 @@ exports.basicCoins = [
|
|
|
1156
1168
|
address: '0x4200000000000000000000000000000000000006',
|
|
1157
1169
|
decimals: 18,
|
|
1158
1170
|
},
|
|
1171
|
+
[types_1.ChainId.MNT]: {
|
|
1172
|
+
address: '0xdEAddEaDdeadDEadDEADDEAddEADDEAddead1111',
|
|
1173
|
+
decimals: 18,
|
|
1174
|
+
},
|
|
1159
1175
|
// Testnets
|
|
1160
1176
|
[types_1.ChainId.OPTG]: {
|
|
1161
1177
|
address: '0x4200000000000000000000000000000000000006',
|
|
@@ -1794,6 +1810,16 @@ exports.wrappedTokens = {
|
|
|
1794
1810
|
name: 'WETH',
|
|
1795
1811
|
logoURI: 'https://static.debank.com/image/mtr_token/logo_url/0x79a61d3a28f8c8537a3df63092927cfa1150fb3c/61844453e63cf81301f845d7864236f6.png',
|
|
1796
1812
|
},
|
|
1813
|
+
[types_1.ChainId.MNT]: {
|
|
1814
|
+
// https://explorer.mantle.xyz/token/0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8
|
|
1815
|
+
address: '0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8',
|
|
1816
|
+
symbol: 'WMNT',
|
|
1817
|
+
decimals: 18,
|
|
1818
|
+
chainId: types_1.ChainId.MNT,
|
|
1819
|
+
coinKey: types_1.CoinKey.WMNT,
|
|
1820
|
+
name: 'WMNT',
|
|
1821
|
+
logoURI: 'https://static.debank.com/image/mnt_token/logo_url/0x78c1b0c915c4faa5fffa6cabf0219da63d7f4cb8/a443c78c33704d48f06e5686bb87f85e.png',
|
|
1822
|
+
},
|
|
1797
1823
|
// Testnets
|
|
1798
1824
|
[types_1.ChainId.ONET]: {
|
|
1799
1825
|
address: '0x7466d7d0c21fa05f32f5a0fa27e12bdc06348ce2',
|
package/dist/cjs/multicall.js
CHANGED
|
@@ -41,6 +41,7 @@ exports.multicallAddresses = {
|
|
|
41
41
|
[types_1.ChainId.BAS]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
42
42
|
[types_1.ChainId.SCL]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
43
43
|
[types_1.ChainId.MOD]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
44
|
+
[types_1.ChainId.MNT]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
44
45
|
// TODO
|
|
45
46
|
// [ChainId.EXP]: '', // TODO
|
|
46
47
|
// [ChainId.TCH]: '', // TODO
|
package/dist/coins/coins.js
CHANGED
|
@@ -572,6 +572,10 @@ export const basicCoins = [
|
|
|
572
572
|
address: '0xf0F161fDA2712DB8b566946122a5af183995e2eD',
|
|
573
573
|
decimals: 6,
|
|
574
574
|
},
|
|
575
|
+
[ChainId.MNT]: {
|
|
576
|
+
address: '0x201EBa5CC46D216Ce6DC03F6a759e8E766e956aE',
|
|
577
|
+
decimals: 6,
|
|
578
|
+
},
|
|
575
579
|
},
|
|
576
580
|
},
|
|
577
581
|
// ======= STARGATE TESTNET TOKENS =======
|
|
@@ -826,6 +830,10 @@ export const basicCoins = [
|
|
|
826
830
|
address: '0xd988097fb8612cc24eeC14542bC03424c656005f',
|
|
827
831
|
decimals: 6,
|
|
828
832
|
},
|
|
833
|
+
[ChainId.MNT]: {
|
|
834
|
+
address: '0x09Bc4E0D864854c6aFB6eB9A9cdF58aC190D0dF9',
|
|
835
|
+
decimals: 6,
|
|
836
|
+
},
|
|
829
837
|
// Testnets
|
|
830
838
|
[ChainId.LNAT]: {
|
|
831
839
|
address: '0x964FF70695da981027c81020B1c58d833D49A640',
|
|
@@ -1045,6 +1053,10 @@ export const basicCoins = [
|
|
|
1045
1053
|
address: '0x3C1BCa5a656e69edCD0D4E36BEbb3FcDAcA60Cf1',
|
|
1046
1054
|
decimals: 8,
|
|
1047
1055
|
},
|
|
1056
|
+
[ChainId.MNT]: {
|
|
1057
|
+
address: '0xCAbAE6f6Ea1ecaB08Ad02fE02ce9A44F09aebfA2',
|
|
1058
|
+
decimals: 8,
|
|
1059
|
+
},
|
|
1048
1060
|
},
|
|
1049
1061
|
},
|
|
1050
1062
|
// > WETH
|
|
@@ -1153,6 +1165,10 @@ export const basicCoins = [
|
|
|
1153
1165
|
address: '0x4200000000000000000000000000000000000006',
|
|
1154
1166
|
decimals: 18,
|
|
1155
1167
|
},
|
|
1168
|
+
[ChainId.MNT]: {
|
|
1169
|
+
address: '0xdEAddEaDdeadDEadDEADDEAddEADDEAddead1111',
|
|
1170
|
+
decimals: 18,
|
|
1171
|
+
},
|
|
1156
1172
|
// Testnets
|
|
1157
1173
|
[ChainId.OPTG]: {
|
|
1158
1174
|
address: '0x4200000000000000000000000000000000000006',
|
|
@@ -1791,6 +1807,16 @@ export const wrappedTokens = {
|
|
|
1791
1807
|
name: 'WETH',
|
|
1792
1808
|
logoURI: 'https://static.debank.com/image/mtr_token/logo_url/0x79a61d3a28f8c8537a3df63092927cfa1150fb3c/61844453e63cf81301f845d7864236f6.png',
|
|
1793
1809
|
},
|
|
1810
|
+
[ChainId.MNT]: {
|
|
1811
|
+
// https://explorer.mantle.xyz/token/0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8
|
|
1812
|
+
address: '0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8',
|
|
1813
|
+
symbol: 'WMNT',
|
|
1814
|
+
decimals: 18,
|
|
1815
|
+
chainId: ChainId.MNT,
|
|
1816
|
+
coinKey: CoinKey.WMNT,
|
|
1817
|
+
name: 'WMNT',
|
|
1818
|
+
logoURI: 'https://static.debank.com/image/mnt_token/logo_url/0x78c1b0c915c4faa5fffa6cabf0219da63d7f4cb8/a443c78c33704d48f06e5686bb87f85e.png',
|
|
1819
|
+
},
|
|
1794
1820
|
// Testnets
|
|
1795
1821
|
[ChainId.ONET]: {
|
|
1796
1822
|
address: '0x7466d7d0c21fa05f32f5a0fa27e12bdc06348ce2',
|
package/dist/multicall.js
CHANGED
|
@@ -38,6 +38,7 @@ export const multicallAddresses = {
|
|
|
38
38
|
[ChainId.BAS]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
39
39
|
[ChainId.SCL]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
40
40
|
[ChainId.MOD]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
41
|
+
[ChainId.MNT]: '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": "4.
|
|
3
|
+
"version": "4.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": "^13.
|
|
66
|
+
"@lifi/types": "^13.3.0"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@commitlint/cli": "^17.7.1",
|