@yodlpay/tokenlists 0.6.5 → 0.6.7

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.
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ChainInfo, RouterInfo, TokenInfo, TestnetFaucetInfo } from './types';
1
+ import { ChainInfo, RouterInfo, TokenInfo } from './types';
2
2
  export * from './abis';
3
3
  export * from './types';
4
4
  export * from './isVersionUpdate';
@@ -115,7 +115,6 @@ export declare function getPriceFeed(chainId: number, baseSymbol: string, quoteS
115
115
  export declare function getFeaturedTokenBySymbol(tokenSymbol: string, chainId?: number): TokenInfo | null;
116
116
  export declare function getTokenBySymbol(tokenSymbol: string, chainId?: number): TokenInfo | null;
117
117
  export declare function getTokens(chainId?: number): TokenInfo[];
118
- export declare function getFaucetAddress(tokenInfo: TokenInfo): TestnetFaucetInfo;
119
118
  export declare function getRouters(chainId: number): RouterInfo[];
120
119
  export declare function getRouter(chainId: number, version: string): RouterInfo | undefined;
121
120
  export declare function getRouterByAddress(address: string, chainId?: number): RouterInfo | undefined;
@@ -94,7 +94,7 @@
94
94
  },
95
95
  {
96
96
  "chainId": 10,
97
- "address": "0xE3A0bc3483AE5a04DB7eF2954315133a6F7D228E",
97
+ "address": "0xE39b811C7c393990F201f1C8836C1fC637029Ad7",
98
98
  "timestamp": "2024-07-17T00:00:00+00:00",
99
99
  "version": "0.6",
100
100
  "fee": "0.002"
@@ -136,7 +136,7 @@
136
136
  },
137
137
  {
138
138
  "chainId": 42161,
139
- "address": "0x9179F20b028eCbfcb7C3ADa495b5A30D4c437ffd",
139
+ "address": "0xE39b811C7c393990F201f1C8836C1fC637029Ad7",
140
140
  "timestamp": "2024-07-17T00:00:00+00:00",
141
141
  "version": "0.6",
142
142
  "fee": "0.002"
@@ -213,7 +213,7 @@
213
213
  },
214
214
  {
215
215
  "chainId": 137,
216
- "address": "0xe661A19f908518F4066bE0469Fc0dA31c941AE31",
216
+ "address": "0x34AAD7D735992A8e3Be4734E84dC17091E3B451F",
217
217
  "timestamp": "2024-07-17T00:00:00+00:00",
218
218
  "version": "0.6",
219
219
  "fee": "0.002"
@@ -255,7 +255,7 @@
255
255
  },
256
256
  {
257
257
  "chainId": 8453,
258
- "address": "0x9357cfD027683c069481ed35326477C0dFd32DA5",
258
+ "address": "0x1534bB4c8a22f30988132254262dAC3aa2A26a24",
259
259
  "timestamp": "2024-07-17T00:00:00+00:00",
260
260
  "version": "0.6",
261
261
  "fee": "0.002"
@@ -269,7 +269,7 @@
269
269
  },
270
270
  {
271
271
  "chainId": 56,
272
- "address": "0x89FFb0e7F24da36E692F2e57e379348C6ce8f59b",
272
+ "address": "0xE39b811C7c393990F201f1C8836C1fC637029Ad7",
273
273
  "timestamp": "2024-07-17T00:00:00+00:00",
274
274
  "version": "0.6",
275
275
  "fee": "0.002"
@@ -813,168 +813,78 @@
813
813
  {
814
814
  "chainId": 1,
815
815
  "coinGeckoId": "usdm",
816
- "name": "USDM",
816
+ "name": "Mountain Protocol USD",
817
817
  "symbol": "USDM",
818
- "currency": "USD",
819
- "logoUri": "https://assets.coingecko.com/coins/images/31719/standard/usdm.png",
818
+ "logoUri": "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/USDM.svg",
820
819
  "decimals": 18,
820
+ "currency": "USD",
821
821
  "tags": [
822
822
  "Mainnet",
823
823
  "Stablecoin",
824
- "USD",
825
- "featured"
824
+ "featured",
825
+ "USD"
826
826
  ],
827
- "address": "0x59D9356E565Ab3A36dD77763Fc0d87fEaf85508C"
827
+ "address": "0x59d9356e565ab3a36dd77763fc0d87feaf85508c"
828
828
  },
829
829
  {
830
830
  "chainId": 10,
831
831
  "coinGeckoId": "usdm",
832
- "name": "USDM",
832
+ "name": "Mountain Protocol USD",
833
833
  "symbol": "USDM",
834
- "currency": "USD",
835
- "logoUri": "https://assets.coingecko.com/coins/images/31719/standard/usdm.png",
834
+ "logoUri": "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/USDM.svg",
836
835
  "decimals": 18,
836
+ "currency": "USD",
837
837
  "tags": [
838
- "Optimism",
839
838
  "Stablecoin",
840
- "USD",
841
- "featured"
839
+ "featured",
840
+ "USD"
842
841
  ],
843
- "address": "0x59D9356E565Ab3A36dD77763Fc0d87fEaf85508C"
842
+ "address": "0x59d9356e565ab3a36dd77763fc0d87feaf85508c"
844
843
  },
845
- {
844
+ {
846
845
  "chainId": 137,
847
846
  "coinGeckoId": "usdm",
848
- "name": "USDM",
847
+ "name": "Mountain Protocol USD",
849
848
  "symbol": "USDM",
850
- "currency": "USD",
851
- "logoUri": "https://assets.coingecko.com/coins/images/31719/standard/usdm.png",
849
+ "logoUri": "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/USDM.svg",
852
850
  "decimals": 18,
851
+ "currency": "USD",
853
852
  "tags": [
854
- "Polygon",
855
853
  "Stablecoin",
856
- "USD",
857
- "featured"
854
+ "featured",
855
+ "USD"
858
856
  ],
859
- "address": "0x59D9356E565Ab3A36dD77763Fc0d87fEaf85508C"
857
+ "address": "0x59d9356e565ab3a36dd77763fc0d87feaf85508c"
860
858
  },
861
859
  {
862
860
  "chainId": 8453,
863
861
  "coinGeckoId": "usdm",
864
- "name": "USDM",
862
+ "name": "Mountain Protocol USD",
865
863
  "symbol": "USDM",
866
- "currency": "USD",
867
- "logoUri": "https://assets.coingecko.com/coins/images/31719/standard/usdm.png",
864
+ "logoUri": "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/USDM.svg",
868
865
  "decimals": 18,
866
+ "currency": "USD",
869
867
  "tags": [
870
- "Base",
871
868
  "Stablecoin",
872
- "USD",
873
- "featured"
869
+ "featured",
870
+ "USD"
874
871
  ],
875
- "address": "0x59D9356E565Ab3A36dD77763Fc0d87fEaf85508C"
872
+ "address": "0x59d9356e565ab3a36dd77763fc0d87feaf85508c"
876
873
  },
877
874
  {
878
875
  "chainId": 42161,
879
876
  "coinGeckoId": "usdm",
880
- "name": "USDM",
877
+ "name": "Mountain Protocol USD",
881
878
  "symbol": "USDM",
882
- "currency": "USD",
883
- "logoUri": "https://assets.coingecko.com/coins/images/31719/standard/usdm.png",
879
+ "logoUri": "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/USDM.svg",
884
880
  "decimals": 18,
885
- "tags": [
886
- "Arbitrum",
887
- "Stablecoin",
888
- "USD",
889
- "featured"
890
- ],
891
- "address": "0x59D9356E565Ab3A36dD77763Fc0d87fEaf85508C"
892
- },
893
- {
894
- "chainId": 1,
895
- "coinGeckoId": "wusdm",
896
- "name": "Wrapped USDM",
897
- "symbol": "wUSDM",
898
881
  "currency": "USD",
899
- "logoUri": "https://assets.coingecko.com/coins/images/31719/standard/usdm.png",
900
- "decimals": 18,
901
882
  "tags": [
902
- "Mainnet",
903
883
  "Stablecoin",
904
- "USD",
905
884
  "featured",
906
- "wrapped"
907
- ],
908
- "address": "0x57F5E098CaD7A3D1Eed53991D4d66C45C9AF7812"
909
- },
910
- {
911
- "chainId": 10,
912
- "coinGeckoId": "wusdm",
913
- "name": "Wrapped USDM",
914
- "symbol": "wUSDM",
915
- "currency": "USD",
916
- "logoUri": "https://assets.coingecko.com/coins/images/31719/standard/usdm.png",
917
- "decimals": 18,
918
- "tags": [
919
- "Optimism",
920
- "Stablecoin",
921
- "USD",
922
- "featured",
923
- "wrapped"
924
- ],
925
- "address": "0x57F5E098CaD7A3D1Eed53991D4d66C45C9AF7812"
926
- },
927
- {
928
- "chainId": 137,
929
- "coinGeckoId": "wusdm",
930
- "name": "Wrapped USDM",
931
- "symbol": "wUSDM",
932
- "currency": "USD",
933
- "logoUri": "https://assets.coingecko.com/coins/images/31719/standard/usdm.png",
934
- "decimals": 18,
935
- "tags": [
936
- "Polygon",
937
- "Stablecoin",
938
- "USD",
939
- "featured",
940
- "wrapped"
941
- ],
942
- "address": "0x57F5E098CaD7A3D1Eed53991D4d66C45C9AF7812"
943
- },
944
- {
945
- "chainId": 8453,
946
- "coinGeckoId": "wusdm",
947
- "name": "Wrapped USDM",
948
- "symbol": "wUSDM",
949
- "currency": "USD",
950
- "logoUri": "https://assets.coingecko.com/coins/images/31719/standard/usdm.png",
951
- "decimals": 18,
952
- "tags": [
953
- "Base",
954
- "Stablecoin",
955
- "USD",
956
- "featured",
957
- "wrapped"
958
- ],
959
- "address": "0x57F5E098CaD7A3D1Eed53991D4d66C45C9AF7812"
960
- },
961
- {
962
- "chainId": 42161,
963
- "coinGeckoId": "wusdm",
964
- "name": "Wrapped USDM",
965
- "symbol": "wUSDM",
966
- "currency": "USD",
967
- "logoUri": "https://assets.coingecko.com/coins/images/31719/standard/usdm.png",
968
- "decimals": 18,
969
- "tags": [
970
- "Arbitrum",
971
- "Stablecoin",
972
- "USD",
973
- "featured",
974
- "wrapped"
885
+ "USD"
975
886
  ],
976
- "address": "0x57F5E098CaD7A3D1Eed53991D4d66C45C9AF7812"
977
- }
978
-
979
- ]
887
+ "address": "0x59d9356e565ab3a36dd77763fc0d87feaf85508c"
888
+ }
889
+ ]
980
890
  }
@@ -841,167 +841,78 @@ var tokens = [
841
841
  {
842
842
  chainId: 1,
843
843
  coinGeckoId: "usdm",
844
- name: "USDM",
844
+ name: "Mountain Protocol USD",
845
845
  symbol: "USDM",
846
- currency: "USD",
847
- logoUri: "https://assets.coingecko.com/coins/images/31719/standard/usdm.png",
846
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/USDM.svg",
848
847
  decimals: 18,
848
+ currency: "USD",
849
849
  tags: [
850
850
  "Mainnet",
851
851
  "Stablecoin",
852
- "USD",
853
- "featured"
852
+ "featured",
853
+ "USD"
854
854
  ],
855
- address: "0x59D9356E565Ab3A36dD77763Fc0d87fEaf85508C"
855
+ address: "0x59d9356e565ab3a36dd77763fc0d87feaf85508c"
856
856
  },
857
857
  {
858
858
  chainId: 10,
859
859
  coinGeckoId: "usdm",
860
- name: "USDM",
860
+ name: "Mountain Protocol USD",
861
861
  symbol: "USDM",
862
- currency: "USD",
863
- logoUri: "https://assets.coingecko.com/coins/images/31719/standard/usdm.png",
862
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/USDM.svg",
864
863
  decimals: 18,
864
+ currency: "USD",
865
865
  tags: [
866
- "Optimism",
867
866
  "Stablecoin",
868
- "USD",
869
- "featured"
867
+ "featured",
868
+ "USD"
870
869
  ],
871
- address: "0x59D9356E565Ab3A36dD77763Fc0d87fEaf85508C"
870
+ address: "0x59d9356e565ab3a36dd77763fc0d87feaf85508c"
872
871
  },
873
872
  {
874
873
  chainId: 137,
875
874
  coinGeckoId: "usdm",
876
- name: "USDM",
875
+ name: "Mountain Protocol USD",
877
876
  symbol: "USDM",
878
- currency: "USD",
879
- logoUri: "https://assets.coingecko.com/coins/images/31719/standard/usdm.png",
877
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/USDM.svg",
880
878
  decimals: 18,
879
+ currency: "USD",
881
880
  tags: [
882
- "Polygon",
883
881
  "Stablecoin",
884
- "USD",
885
- "featured"
882
+ "featured",
883
+ "USD"
886
884
  ],
887
- address: "0x59D9356E565Ab3A36dD77763Fc0d87fEaf85508C"
885
+ address: "0x59d9356e565ab3a36dd77763fc0d87feaf85508c"
888
886
  },
889
887
  {
890
888
  chainId: 8453,
891
889
  coinGeckoId: "usdm",
892
- name: "USDM",
890
+ name: "Mountain Protocol USD",
893
891
  symbol: "USDM",
894
- currency: "USD",
895
- logoUri: "https://assets.coingecko.com/coins/images/31719/standard/usdm.png",
892
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/USDM.svg",
896
893
  decimals: 18,
894
+ currency: "USD",
897
895
  tags: [
898
- "Base",
899
896
  "Stablecoin",
900
- "USD",
901
- "featured"
897
+ "featured",
898
+ "USD"
902
899
  ],
903
- address: "0x59D9356E565Ab3A36dD77763Fc0d87fEaf85508C"
900
+ address: "0x59d9356e565ab3a36dd77763fc0d87feaf85508c"
904
901
  },
905
902
  {
906
903
  chainId: 42161,
907
904
  coinGeckoId: "usdm",
908
- name: "USDM",
905
+ name: "Mountain Protocol USD",
909
906
  symbol: "USDM",
910
- currency: "USD",
911
- logoUri: "https://assets.coingecko.com/coins/images/31719/standard/usdm.png",
912
- decimals: 18,
913
- tags: [
914
- "Arbitrum",
915
- "Stablecoin",
916
- "USD",
917
- "featured"
918
- ],
919
- address: "0x59D9356E565Ab3A36dD77763Fc0d87fEaf85508C"
920
- },
921
- {
922
- chainId: 1,
923
- coinGeckoId: "wusdm",
924
- name: "Wrapped USDM",
925
- symbol: "wUSDM",
926
- currency: "USD",
927
- logoUri: "https://assets.coingecko.com/coins/images/31719/standard/usdm.png",
928
- decimals: 18,
929
- tags: [
930
- "Mainnet",
931
- "Stablecoin",
932
- "USD",
933
- "featured",
934
- "wrapped"
935
- ],
936
- address: "0x57F5E098CaD7A3D1Eed53991D4d66C45C9AF7812"
937
- },
938
- {
939
- chainId: 10,
940
- coinGeckoId: "wusdm",
941
- name: "Wrapped USDM",
942
- symbol: "wUSDM",
943
- currency: "USD",
944
- logoUri: "https://assets.coingecko.com/coins/images/31719/standard/usdm.png",
945
- decimals: 18,
946
- tags: [
947
- "Optimism",
948
- "Stablecoin",
949
- "USD",
950
- "featured",
951
- "wrapped"
952
- ],
953
- address: "0x57F5E098CaD7A3D1Eed53991D4d66C45C9AF7812"
954
- },
955
- {
956
- chainId: 137,
957
- coinGeckoId: "wusdm",
958
- name: "Wrapped USDM",
959
- symbol: "wUSDM",
960
- currency: "USD",
961
- logoUri: "https://assets.coingecko.com/coins/images/31719/standard/usdm.png",
907
+ logoUri: "https://raw.githubusercontent.com/yodlpay/tokenlists/main/logos/tokens/USDM.svg",
962
908
  decimals: 18,
963
- tags: [
964
- "Polygon",
965
- "Stablecoin",
966
- "USD",
967
- "featured",
968
- "wrapped"
969
- ],
970
- address: "0x57F5E098CaD7A3D1Eed53991D4d66C45C9AF7812"
971
- },
972
- {
973
- chainId: 8453,
974
- coinGeckoId: "wusdm",
975
- name: "Wrapped USDM",
976
- symbol: "wUSDM",
977
909
  currency: "USD",
978
- logoUri: "https://assets.coingecko.com/coins/images/31719/standard/usdm.png",
979
- decimals: 18,
980
910
  tags: [
981
- "Base",
982
911
  "Stablecoin",
983
- "USD",
984
912
  "featured",
985
- "wrapped"
913
+ "USD"
986
914
  ],
987
- address: "0x57F5E098CaD7A3D1Eed53991D4d66C45C9AF7812"
988
- },
989
- {
990
- chainId: 42161,
991
- coinGeckoId: "wusdm",
992
- name: "Wrapped USDM",
993
- symbol: "wUSDM",
994
- currency: "USD",
995
- logoUri: "https://assets.coingecko.com/coins/images/31719/standard/usdm.png",
996
- decimals: 18,
997
- tags: [
998
- "Arbitrum",
999
- "Stablecoin",
1000
- "USD",
1001
- "featured",
1002
- "wrapped"
1003
- ],
1004
- address: "0x57F5E098CaD7A3D1Eed53991D4d66C45C9AF7812"
915
+ address: "0x59d9356e565ab3a36dd77763fc0d87feaf85508c"
1005
916
  }
1006
917
  ];
1007
918
  var featuredTokenlist = {
@@ -3525,7 +3436,7 @@ var routers = [
3525
3436
  },
3526
3437
  {
3527
3438
  chainId: 10,
3528
- address: "0xE3A0bc3483AE5a04DB7eF2954315133a6F7D228E",
3439
+ address: "0xE39b811C7c393990F201f1C8836C1fC637029Ad7",
3529
3440
  timestamp: "2024-07-17T00:00:00+00:00",
3530
3441
  version: "0.6",
3531
3442
  fee: "0.002"
@@ -3567,7 +3478,7 @@ var routers = [
3567
3478
  },
3568
3479
  {
3569
3480
  chainId: 42161,
3570
- address: "0x9179F20b028eCbfcb7C3ADa495b5A30D4c437ffd",
3481
+ address: "0xE39b811C7c393990F201f1C8836C1fC637029Ad7",
3571
3482
  timestamp: "2024-07-17T00:00:00+00:00",
3572
3483
  version: "0.6",
3573
3484
  fee: "0.002"
@@ -3644,7 +3555,7 @@ var routers = [
3644
3555
  },
3645
3556
  {
3646
3557
  chainId: 137,
3647
- address: "0xe661A19f908518F4066bE0469Fc0dA31c941AE31",
3558
+ address: "0x34AAD7D735992A8e3Be4734E84dC17091E3B451F",
3648
3559
  timestamp: "2024-07-17T00:00:00+00:00",
3649
3560
  version: "0.6",
3650
3561
  fee: "0.002"
@@ -3686,7 +3597,7 @@ var routers = [
3686
3597
  },
3687
3598
  {
3688
3599
  chainId: 8453,
3689
- address: "0x9357cfD027683c069481ed35326477C0dFd32DA5",
3600
+ address: "0x1534bB4c8a22f30988132254262dAC3aa2A26a24",
3690
3601
  timestamp: "2024-07-17T00:00:00+00:00",
3691
3602
  version: "0.6",
3692
3603
  fee: "0.002"
@@ -3700,7 +3611,7 @@ var routers = [
3700
3611
  },
3701
3612
  {
3702
3613
  chainId: 56,
3703
- address: "0x89FFb0e7F24da36E692F2e57e379348C6ce8f59b",
3614
+ address: "0xE39b811C7c393990F201f1C8836C1fC637029Ad7",
3704
3615
  timestamp: "2024-07-17T00:00:00+00:00",
3705
3616
  version: "0.6",
3706
3617
  fee: "0.002"
@@ -3714,40 +3625,6 @@ var routerlist = {
3714
3625
  routers: routers
3715
3626
  };
3716
3627
 
3717
- var name$2 = "Default";
3718
- var logoUri$2 = "";
3719
- var keywords$2 = [
3720
- ];
3721
- var version$2 = {
3722
- major: 0,
3723
- minor: 0,
3724
- patch: 1
3725
- };
3726
- var faucets = [
3727
- {
3728
- chainId: 5,
3729
- token: "0x33ca3889bb0032e9c3794b608a242d27e7293353",
3730
- address: "0xd2bc1d97793763b7262987a67f1945169c763389"
3731
- },
3732
- {
3733
- chainId: 5,
3734
- token: "0xe5768E2dDEc1E50Ac2672a2d75D63d36A8Ec88d9",
3735
- address: "0x5A3380C7d6A05AF3Ce68C939142658C35Efc066d"
3736
- },
3737
- {
3738
- chainId: 5,
3739
- token: "0xeB87E5d9c773d3E802989295147564985B5B358C",
3740
- address: "0xF47661BCe78194b44675547873ef58Ca8Db9b145"
3741
- }
3742
- ];
3743
- var testnetfaucets = {
3744
- name: name$2,
3745
- logoUri: logoUri$2,
3746
- keywords: keywords$2,
3747
- version: version$2,
3748
- faucets: faucets
3749
- };
3750
-
3751
3628
  var priceFeeds = [
3752
3629
  {
3753
3630
  decimals: 8,
@@ -15207,11 +15084,6 @@ function getTokens(chainId) {
15207
15084
  return needle.chainId === chainId;
15208
15085
  }) : tokenlist;
15209
15086
  }
15210
- function getFaucetAddress(tokenInfo) {
15211
- return testnetfaucets.faucets.find(function (needle) {
15212
- return needle.token.toLowerCase() === tokenInfo.address.toLowerCase() && needle.chainId === tokenInfo.chainId;
15213
- });
15214
- }
15215
15087
  function getRouters(chainId) {
15216
15088
  return routerlist.routers.filter(function (needle) {
15217
15089
  return needle.chainId === chainId;
@@ -15276,7 +15148,6 @@ exports.YODL_ROUTER_ABIS = YODL_ROUTER_ABIS;
15276
15148
  exports.diffTokenLists = diffTokenLists;
15277
15149
  exports.getChain = getChain;
15278
15150
  exports.getChains = getChains;
15279
- exports.getFaucetAddress = getFaucetAddress;
15280
15151
  exports.getFeaturedTokenBySymbol = getFeaturedTokenBySymbol;
15281
15152
  exports.getFiatCurrencies = getFiatCurrencies;
15282
15153
  exports.getFiatCurrency = getFiatCurrency;