@proton/wrap-constants 0.0.44 → 0.0.48

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/src/coins.ts CHANGED
@@ -25,7 +25,9 @@ export enum Chains {
25
25
  AvalancheXChain = 'Avalanche X-Chain',
26
26
  AvalancheCChain = 'Avalanche C-Chain',
27
27
  PolygonMainnet = 'Polygon',
28
- TerraMainnet = 'Terra'
28
+ TerraMainnet = 'Terra',
29
+ RippleMainnet = 'Ripple',
30
+ SolanaMainnet = 'Solana'
29
31
  }
30
32
 
31
33
  export enum Networks {
@@ -96,6 +98,8 @@ export const explorerLinkByChain = {
96
98
  [Chains.AvalancheCChain] : (txid: string) => `https://snowtrace.io/tx/${txid}`,
97
99
  [Chains.PolygonMainnet] : (txid: string) => `https://polygonscan.com/tx/${txid}`,
98
100
  [Chains.TerraMainnet] : (txid: string) => `https://terra.stake.id/?#/tx/${txid}`,
101
+ [Chains.RippleMainnet] : (txid: string) => `https://xrpscan.com/tx/${txid}`,
102
+ [Chains.SolanaMainnet] : (txid: string) => `https://explorer.solana.com/tx/${txid}`,
99
103
  }
100
104
 
101
105
  export const initializeCoins = (protonChain: string): {
@@ -290,7 +294,7 @@ export const initializeCoins = (protonChain: string): {
290
294
  coingeckoId: 'ethereum'
291
295
  },
292
296
  {
293
- allowSwap: IS_MAINNET,
297
+ allowSwap: true,
294
298
  allowBridge: false,
295
299
  allowLend: false,
296
300
  allowBorrow: false,
@@ -301,7 +305,7 @@ export const initializeCoins = (protonChain: string): {
301
305
  xtokenContract: 'loan.token',
302
306
  wallets: [],
303
307
  image: 'https://www.protonchain.com/images/tokens/loan.tokenLOAN.png',
304
- coingeckoId: ''
308
+ coingeckoId: 'proton-loan'
305
309
  },
306
310
  {
307
311
  allowSwap: IS_MAINNET,
@@ -382,7 +386,7 @@ export const initializeCoins = (protonChain: string): {
382
386
  }]: [])
383
387
  ],
384
388
  image: 'https://www.protonchain.com/images/tokens/xtokensXPAX.png',
385
- coingeckoId: 'usdp'
389
+ coingeckoId: 'paxos-standard'
386
390
  },
387
391
  {
388
392
  allowSwap: false,
@@ -740,6 +744,106 @@ export const initializeCoins = (protonChain: string): {
740
744
  image: 'https://www.protonchain.com/images/tokens/xtokensXADA.png',
741
745
  coingeckoId: 'cardano'
742
746
  },
747
+
748
+ // Adding
749
+ {
750
+ allowSwap: false,
751
+ allowBridge: IS_MAINNET,
752
+ allowLend: false,
753
+ allowBorrow: false,
754
+ name: 'Terra',
755
+ coin: 'LUNA',
756
+ xtokenSymbol: 'XLUNA',
757
+ xtokenPrecision: 6,
758
+ xtokenContract: 'xtokens',
759
+ wallets: [
760
+ ...(IS_MAINNET ? [{
761
+ wallet: 'LUNA',
762
+ symbol: 'LUNA',
763
+ chain: Chains.TerraMainnet,
764
+ network: Networks.Mainnet,
765
+ precision: 6,
766
+ contract: undefined,
767
+ hasWithdrawMemo: true
768
+ }]: [])
769
+ ],
770
+ image: 'https://www.protonchain.com/images/tokens/xtokensXLUNA.png',
771
+ coingeckoId: 'terra-luna'
772
+ },
773
+ {
774
+ allowSwap: false,
775
+ allowBridge: IS_MAINNET,
776
+ allowLend: false,
777
+ allowBorrow: false,
778
+ name: 'TerraUSD',
779
+ coin: 'UST',
780
+ xtokenSymbol: 'XUST',
781
+ xtokenPrecision: 6,
782
+ xtokenContract: 'xtokens',
783
+ wallets: [
784
+ ...(IS_MAINNET ? [{
785
+ wallet: 'UST',
786
+ symbol: 'UST',
787
+ chain: Chains.TerraMainnet,
788
+ network: Networks.Mainnet,
789
+ precision: 6,
790
+ contract: undefined,
791
+ hasWithdrawMemo: true
792
+ }]: [])
793
+ ],
794
+ image: 'https://www.protonchain.com/images/tokens/xtokensXUST.png',
795
+ coingeckoId: 'terrausd'
796
+ },
797
+ {
798
+ allowSwap: false,
799
+ allowBridge: IS_MAINNET,
800
+ allowLend: false,
801
+ allowBorrow: false,
802
+ name: 'Solana',
803
+ coin: 'SOL',
804
+ xtokenSymbol: 'XSOL',
805
+ xtokenPrecision: 6,
806
+ xtokenContract: 'xtokens',
807
+ wallets: [
808
+ ...(IS_MAINNET ? [{
809
+ wallet: 'SOL',
810
+ symbol: 'SOL',
811
+ chain: Chains.SolanaMainnet,
812
+ network: Networks.Mainnet,
813
+ precision: 9,
814
+ contract: undefined,
815
+ hasWithdrawMemo: false
816
+ }]: [])
817
+ ],
818
+ image: 'https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/xsol.png',
819
+ coingeckoId: 'solana'
820
+ },
821
+ {
822
+ allowSwap: false,
823
+ allowBridge: IS_MAINNET,
824
+ allowLend: false,
825
+ allowBorrow: false,
826
+ name: 'Ripple',
827
+ coin: 'XRP',
828
+ xtokenSymbol: 'XXRP',
829
+ xtokenPrecision: 6,
830
+ xtokenContract: 'xtokens',
831
+ wallets: [
832
+ ...(IS_MAINNET ? [{
833
+ wallet: 'XRP',
834
+ symbol: 'XRP',
835
+ chain: Chains.RippleMainnet,
836
+ network: Networks.Mainnet,
837
+ precision: 6,
838
+ contract: undefined,
839
+ hasWithdrawMemo: true
840
+ }]: [])
841
+ ],
842
+ image: 'https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/xxrp.png',
843
+ coingeckoId: 'ripple'
844
+ },
845
+
846
+ // Future
743
847
  {
744
848
  allowSwap: false,
745
849
  allowBridge: false,
@@ -752,15 +856,6 @@ export const initializeCoins = (protonChain: string): {
752
856
  xtokenContract: 'xtokens',
753
857
  wallets: [
754
858
  ...(IS_MAINNET ? [
755
- {
756
- wallet: 'AVAX',
757
- symbol: 'AVAX',
758
- chain: Chains.AvalancheXChain,
759
- network: Networks.Mainnet,
760
- precision: 9,
761
- contract: undefined,
762
- hasWithdrawMemo: false
763
- },
764
859
  {
765
860
  wallet: 'AVAX',
766
861
  symbol: 'AVAX',
@@ -799,54 +894,6 @@ export const initializeCoins = (protonChain: string): {
799
894
  image: 'https://www.protonchain.com/images/tokens/xtokensXMATIC.png',
800
895
  coingeckoId: 'matic-network'
801
896
  },
802
- {
803
- allowSwap: false,
804
- allowBridge: false,
805
- allowLend: false,
806
- allowBorrow: false,
807
- name: 'Luna',
808
- coin: 'LUNA',
809
- xtokenSymbol: 'XLUNA',
810
- xtokenPrecision: 6,
811
- xtokenContract: 'xtokens',
812
- wallets: [
813
- ...(IS_MAINNET ? [{
814
- wallet: 'LUNA',
815
- symbol: 'LUNA',
816
- chain: Chains.TerraMainnet,
817
- network: Networks.Mainnet,
818
- precision: 6,
819
- contract: undefined,
820
- hasWithdrawMemo: true
821
- }]: [])
822
- ],
823
- image: 'https://www.protonchain.com/images/tokens/xtokensXLUNA.png',
824
- coingeckoId: 'terra-luna'
825
- },
826
- {
827
- allowSwap: false,
828
- allowBridge: false,
829
- allowLend: false,
830
- allowBorrow: false,
831
- name: 'TerraUSD',
832
- coin: 'UST',
833
- xtokenSymbol: 'XUST',
834
- xtokenPrecision: 6,
835
- xtokenContract: 'xtokens',
836
- wallets: [
837
- ...(IS_MAINNET ? [{
838
- wallet: 'UST',
839
- symbol: 'UST',
840
- chain: Chains.TerraMainnet,
841
- network: Networks.Mainnet,
842
- precision: 6,
843
- contract: undefined,
844
- hasWithdrawMemo: true
845
- }]: [])
846
- ],
847
- image: 'https://www.protonchain.com/images/tokens/xtokensXUST.png',
848
- coingeckoId: 'terrausd'
849
- },
850
897
  {
851
898
  allowSwap: false,
852
899
  allowBridge: IS_TESTNET,
@@ -865,7 +912,7 @@ export const initializeCoins = (protonChain: string): {
865
912
  network: Networks.Testnet,
866
913
  precision: 8,
867
914
  contract: undefined,
868
- hasWithdrawMemo: false
915
+ hasWithdrawMemo: true
869
916
  }]: [])
870
917
  ],
871
918
  image: 'https://www.protonchain.com/images/tokens/xtokensXHBAR.png',