@lifi/data-types 4.0.0 → 4.2.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
|
@@ -453,6 +453,23 @@ exports.basicCoins = [
|
|
|
453
453
|
},
|
|
454
454
|
},
|
|
455
455
|
},
|
|
456
|
+
// > MNT
|
|
457
|
+
{
|
|
458
|
+
key: types_1.CoinKey.MNT,
|
|
459
|
+
name: types_1.CoinKey.MNT,
|
|
460
|
+
logoURI: 'https://static.debank.com/image/mnt_token/logo_url/0x78c1b0c915c4faa5fffa6cabf0219da63d7f4cb8/a443c78c33704d48f06e5686bb87f85e.png',
|
|
461
|
+
verified: true,
|
|
462
|
+
chains: {
|
|
463
|
+
[types_1.ChainId.MNT]: {
|
|
464
|
+
address: '0x0000000000000000000000000000000000000000',
|
|
465
|
+
decimals: 18,
|
|
466
|
+
},
|
|
467
|
+
[types_1.ChainId.ETH]: {
|
|
468
|
+
address: '0x3c3a81e81dc49A522A592e7622A7E711c06bf354',
|
|
469
|
+
decimals: 18,
|
|
470
|
+
},
|
|
471
|
+
},
|
|
472
|
+
},
|
|
456
473
|
// OTHER STABLECOINS
|
|
457
474
|
// USDT
|
|
458
475
|
{
|
|
@@ -575,6 +592,10 @@ exports.basicCoins = [
|
|
|
575
592
|
address: '0xf0F161fDA2712DB8b566946122a5af183995e2eD',
|
|
576
593
|
decimals: 6,
|
|
577
594
|
},
|
|
595
|
+
[types_1.ChainId.MNT]: {
|
|
596
|
+
address: '0x201EBa5CC46D216Ce6DC03F6a759e8E766e956aE',
|
|
597
|
+
decimals: 6,
|
|
598
|
+
},
|
|
578
599
|
},
|
|
579
600
|
},
|
|
580
601
|
// ======= STARGATE TESTNET TOKENS =======
|
|
@@ -829,6 +850,10 @@ exports.basicCoins = [
|
|
|
829
850
|
address: '0xd988097fb8612cc24eeC14542bC03424c656005f',
|
|
830
851
|
decimals: 6,
|
|
831
852
|
},
|
|
853
|
+
[types_1.ChainId.MNT]: {
|
|
854
|
+
address: '0x09Bc4E0D864854c6aFB6eB9A9cdF58aC190D0dF9',
|
|
855
|
+
decimals: 6,
|
|
856
|
+
},
|
|
832
857
|
// Testnets
|
|
833
858
|
[types_1.ChainId.LNAT]: {
|
|
834
859
|
address: '0x964FF70695da981027c81020B1c58d833D49A640',
|
|
@@ -1048,6 +1073,10 @@ exports.basicCoins = [
|
|
|
1048
1073
|
address: '0x3C1BCa5a656e69edCD0D4E36BEbb3FcDAcA60Cf1',
|
|
1049
1074
|
decimals: 8,
|
|
1050
1075
|
},
|
|
1076
|
+
[types_1.ChainId.MNT]: {
|
|
1077
|
+
address: '0xCAbAE6f6Ea1ecaB08Ad02fE02ce9A44F09aebfA2',
|
|
1078
|
+
decimals: 8,
|
|
1079
|
+
},
|
|
1051
1080
|
},
|
|
1052
1081
|
},
|
|
1053
1082
|
// > WETH
|
|
@@ -1156,6 +1185,10 @@ exports.basicCoins = [
|
|
|
1156
1185
|
address: '0x4200000000000000000000000000000000000006',
|
|
1157
1186
|
decimals: 18,
|
|
1158
1187
|
},
|
|
1188
|
+
[types_1.ChainId.MNT]: {
|
|
1189
|
+
address: '0xdEAddEaDdeadDEadDEADDEAddEADDEAddead1111',
|
|
1190
|
+
decimals: 18,
|
|
1191
|
+
},
|
|
1159
1192
|
// Testnets
|
|
1160
1193
|
[types_1.ChainId.OPTG]: {
|
|
1161
1194
|
address: '0x4200000000000000000000000000000000000006',
|
|
@@ -1794,6 +1827,16 @@ exports.wrappedTokens = {
|
|
|
1794
1827
|
name: 'WETH',
|
|
1795
1828
|
logoURI: 'https://static.debank.com/image/mtr_token/logo_url/0x79a61d3a28f8c8537a3df63092927cfa1150fb3c/61844453e63cf81301f845d7864236f6.png',
|
|
1796
1829
|
},
|
|
1830
|
+
[types_1.ChainId.MNT]: {
|
|
1831
|
+
// https://explorer.mantle.xyz/token/0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8
|
|
1832
|
+
address: '0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8',
|
|
1833
|
+
symbol: 'WMNT',
|
|
1834
|
+
decimals: 18,
|
|
1835
|
+
chainId: types_1.ChainId.MNT,
|
|
1836
|
+
coinKey: types_1.CoinKey.WMNT,
|
|
1837
|
+
name: 'WMNT',
|
|
1838
|
+
logoURI: 'https://static.debank.com/image/mnt_token/logo_url/0x78c1b0c915c4faa5fffa6cabf0219da63d7f4cb8/a443c78c33704d48f06e5686bb87f85e.png',
|
|
1839
|
+
},
|
|
1797
1840
|
// Testnets
|
|
1798
1841
|
[types_1.ChainId.ONET]: {
|
|
1799
1842
|
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
|
@@ -450,6 +450,23 @@ export const basicCoins = [
|
|
|
450
450
|
},
|
|
451
451
|
},
|
|
452
452
|
},
|
|
453
|
+
// > MNT
|
|
454
|
+
{
|
|
455
|
+
key: CoinKey.MNT,
|
|
456
|
+
name: CoinKey.MNT,
|
|
457
|
+
logoURI: 'https://static.debank.com/image/mnt_token/logo_url/0x78c1b0c915c4faa5fffa6cabf0219da63d7f4cb8/a443c78c33704d48f06e5686bb87f85e.png',
|
|
458
|
+
verified: true,
|
|
459
|
+
chains: {
|
|
460
|
+
[ChainId.MNT]: {
|
|
461
|
+
address: '0x0000000000000000000000000000000000000000',
|
|
462
|
+
decimals: 18,
|
|
463
|
+
},
|
|
464
|
+
[ChainId.ETH]: {
|
|
465
|
+
address: '0x3c3a81e81dc49A522A592e7622A7E711c06bf354',
|
|
466
|
+
decimals: 18,
|
|
467
|
+
},
|
|
468
|
+
},
|
|
469
|
+
},
|
|
453
470
|
// OTHER STABLECOINS
|
|
454
471
|
// USDT
|
|
455
472
|
{
|
|
@@ -572,6 +589,10 @@ export const basicCoins = [
|
|
|
572
589
|
address: '0xf0F161fDA2712DB8b566946122a5af183995e2eD',
|
|
573
590
|
decimals: 6,
|
|
574
591
|
},
|
|
592
|
+
[ChainId.MNT]: {
|
|
593
|
+
address: '0x201EBa5CC46D216Ce6DC03F6a759e8E766e956aE',
|
|
594
|
+
decimals: 6,
|
|
595
|
+
},
|
|
575
596
|
},
|
|
576
597
|
},
|
|
577
598
|
// ======= STARGATE TESTNET TOKENS =======
|
|
@@ -826,6 +847,10 @@ export const basicCoins = [
|
|
|
826
847
|
address: '0xd988097fb8612cc24eeC14542bC03424c656005f',
|
|
827
848
|
decimals: 6,
|
|
828
849
|
},
|
|
850
|
+
[ChainId.MNT]: {
|
|
851
|
+
address: '0x09Bc4E0D864854c6aFB6eB9A9cdF58aC190D0dF9',
|
|
852
|
+
decimals: 6,
|
|
853
|
+
},
|
|
829
854
|
// Testnets
|
|
830
855
|
[ChainId.LNAT]: {
|
|
831
856
|
address: '0x964FF70695da981027c81020B1c58d833D49A640',
|
|
@@ -1045,6 +1070,10 @@ export const basicCoins = [
|
|
|
1045
1070
|
address: '0x3C1BCa5a656e69edCD0D4E36BEbb3FcDAcA60Cf1',
|
|
1046
1071
|
decimals: 8,
|
|
1047
1072
|
},
|
|
1073
|
+
[ChainId.MNT]: {
|
|
1074
|
+
address: '0xCAbAE6f6Ea1ecaB08Ad02fE02ce9A44F09aebfA2',
|
|
1075
|
+
decimals: 8,
|
|
1076
|
+
},
|
|
1048
1077
|
},
|
|
1049
1078
|
},
|
|
1050
1079
|
// > WETH
|
|
@@ -1153,6 +1182,10 @@ export const basicCoins = [
|
|
|
1153
1182
|
address: '0x4200000000000000000000000000000000000006',
|
|
1154
1183
|
decimals: 18,
|
|
1155
1184
|
},
|
|
1185
|
+
[ChainId.MNT]: {
|
|
1186
|
+
address: '0xdEAddEaDdeadDEadDEADDEAddEADDEAddead1111',
|
|
1187
|
+
decimals: 18,
|
|
1188
|
+
},
|
|
1156
1189
|
// Testnets
|
|
1157
1190
|
[ChainId.OPTG]: {
|
|
1158
1191
|
address: '0x4200000000000000000000000000000000000006',
|
|
@@ -1791,6 +1824,16 @@ export const wrappedTokens = {
|
|
|
1791
1824
|
name: 'WETH',
|
|
1792
1825
|
logoURI: 'https://static.debank.com/image/mtr_token/logo_url/0x79a61d3a28f8c8537a3df63092927cfa1150fb3c/61844453e63cf81301f845d7864236f6.png',
|
|
1793
1826
|
},
|
|
1827
|
+
[ChainId.MNT]: {
|
|
1828
|
+
// https://explorer.mantle.xyz/token/0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8
|
|
1829
|
+
address: '0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8',
|
|
1830
|
+
symbol: 'WMNT',
|
|
1831
|
+
decimals: 18,
|
|
1832
|
+
chainId: ChainId.MNT,
|
|
1833
|
+
coinKey: CoinKey.WMNT,
|
|
1834
|
+
name: 'WMNT',
|
|
1835
|
+
logoURI: 'https://static.debank.com/image/mnt_token/logo_url/0x78c1b0c915c4faa5fffa6cabf0219da63d7f4cb8/a443c78c33704d48f06e5686bb87f85e.png',
|
|
1836
|
+
},
|
|
1794
1837
|
// Testnets
|
|
1795
1838
|
[ChainId.ONET]: {
|
|
1796
1839
|
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.2.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",
|