@proton/wrap-constants 0.2.183 → 0.2.184
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 +0 -3
- package/dist/index.js +9 -12
- package/dist/index.mjs +9 -12
- package/package.json +1 -1
- package/src/coins.ts +8 -12
- package/src/parsers/deposit.ts +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ declare enum Chains {
|
|
|
6
6
|
BitcoinMainnet = "Bitcoin",
|
|
7
7
|
BitcoinTestnet = "Bitcoin (Testnet)",
|
|
8
8
|
EthereumMainnet = "Ethereum",
|
|
9
|
-
EthereumRopsten = "Ethereum (Ropsten)",
|
|
10
9
|
EthereumSepolia = "Ethereum (Sepolia)",
|
|
11
10
|
LitecoinMainnet = "Litecoin",
|
|
12
11
|
LitecoinTestnet = "Litecoin (Testnet)",
|
|
@@ -41,7 +40,6 @@ declare enum Chains {
|
|
|
41
40
|
declare enum Networks {
|
|
42
41
|
Mainnet = "mainnet",
|
|
43
42
|
Testnet = "testnet",
|
|
44
|
-
Ropsten = "ropsten",
|
|
45
43
|
ERC20 = "erc20",
|
|
46
44
|
BEP20 = "bep20",
|
|
47
45
|
XLM = "xlm",
|
|
@@ -90,7 +88,6 @@ declare const explorerLinkByChain: {
|
|
|
90
88
|
Bitcoin: (txid: string) => string;
|
|
91
89
|
"Bitcoin (Testnet)": (txid: string) => string;
|
|
92
90
|
Ethereum: (txid: string) => string;
|
|
93
|
-
"Ethereum (Ropsten)": (txid: string) => string;
|
|
94
91
|
"Ethereum (Sepolia)": (txid: string) => string;
|
|
95
92
|
Litecoin: (txid: string) => string;
|
|
96
93
|
"Litecoin (Testnet)": (txid: string) => string;
|
package/dist/index.js
CHANGED
|
@@ -158,7 +158,6 @@ var Chains = /* @__PURE__ */ ((Chains2) => {
|
|
|
158
158
|
Chains2["BitcoinMainnet"] = "Bitcoin";
|
|
159
159
|
Chains2["BitcoinTestnet"] = "Bitcoin (Testnet)";
|
|
160
160
|
Chains2["EthereumMainnet"] = "Ethereum";
|
|
161
|
-
Chains2["EthereumRopsten"] = "Ethereum (Ropsten)";
|
|
162
161
|
Chains2["EthereumSepolia"] = "Ethereum (Sepolia)";
|
|
163
162
|
Chains2["LitecoinMainnet"] = "Litecoin";
|
|
164
163
|
Chains2["LitecoinTestnet"] = "Litecoin (Testnet)";
|
|
@@ -194,7 +193,6 @@ var Chains = /* @__PURE__ */ ((Chains2) => {
|
|
|
194
193
|
var Networks = /* @__PURE__ */ ((Networks2) => {
|
|
195
194
|
Networks2["Mainnet"] = "mainnet";
|
|
196
195
|
Networks2["Testnet"] = "testnet";
|
|
197
|
-
Networks2["Ropsten"] = "ropsten";
|
|
198
196
|
Networks2["ERC20"] = "erc20";
|
|
199
197
|
Networks2["BEP20"] = "bep20";
|
|
200
198
|
Networks2["XLM"] = "xlm";
|
|
@@ -218,7 +216,6 @@ var explorerLinkByChain = {
|
|
|
218
216
|
["Bitcoin" /* BitcoinMainnet */]: (txid) => `https://blockchain.com/btc/tx/${txid}`,
|
|
219
217
|
["Bitcoin (Testnet)" /* BitcoinTestnet */]: (txid) => `https://blockstream.info/testnet/tx/${txid}`,
|
|
220
218
|
["Ethereum" /* EthereumMainnet */]: (txid) => `https://etherscan.io/tx/${txid}`,
|
|
221
|
-
["Ethereum (Ropsten)" /* EthereumRopsten */]: (txid) => `https://ropsten.etherscan.io/tx/${txid}`,
|
|
222
219
|
["Ethereum (Sepolia)" /* EthereumSepolia */]: (txid) => `https://sepolia.etherscan.io/tx/${txid}`,
|
|
223
220
|
["Litecoin" /* LitecoinMainnet */]: (txid) => `https://blockchair.com/litecoin/transaction/${txid}`,
|
|
224
221
|
["Litecoin (Testnet)" /* LitecoinTestnet */]: (txid) => `https://blockexplorer.one/litecoin/testnet/blockHash/${txid}`,
|
|
@@ -340,8 +337,8 @@ var initializeCoins = (protonChain) => {
|
|
|
340
337
|
{
|
|
341
338
|
wallet: "USDC",
|
|
342
339
|
symbol: "USDC",
|
|
343
|
-
chain: "Ethereum (
|
|
344
|
-
network: "
|
|
340
|
+
chain: "Ethereum (Sepolia)" /* EthereumSepolia */,
|
|
341
|
+
network: "sepolia" /* Sepolia */,
|
|
345
342
|
precision: 6,
|
|
346
343
|
contract: "0xA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48",
|
|
347
344
|
provider: "fireblocks" /* FIREBLOCKS */,
|
|
@@ -593,8 +590,8 @@ var initializeCoins = (protonChain) => {
|
|
|
593
590
|
{
|
|
594
591
|
wallet: "USDT",
|
|
595
592
|
symbol: "USDT",
|
|
596
|
-
chain: "Ethereum (
|
|
597
|
-
network: "
|
|
593
|
+
chain: "Ethereum (Sepolia)" /* EthereumSepolia */,
|
|
594
|
+
network: "sepolia" /* Sepolia */,
|
|
598
595
|
precision: 6,
|
|
599
596
|
contract: "0xDAC17F958D2EE523A2206206994597C13D831EC7",
|
|
600
597
|
provider: "fireblocks" /* FIREBLOCKS */,
|
|
@@ -745,8 +742,8 @@ var initializeCoins = (protonChain) => {
|
|
|
745
742
|
{
|
|
746
743
|
wallet: "PAXG",
|
|
747
744
|
symbol: "PAXG",
|
|
748
|
-
chain: "Ethereum (
|
|
749
|
-
network: "
|
|
745
|
+
chain: "Ethereum (Sepolia)" /* EthereumSepolia */,
|
|
746
|
+
network: "sepolia" /* Sepolia */,
|
|
750
747
|
precision: 18,
|
|
751
748
|
contract: "0x45804880DE22913DAFE09F4980848ECE6ECBAF78",
|
|
752
749
|
provider: "fireblocks" /* FIREBLOCKS */,
|
|
@@ -830,8 +827,8 @@ var initializeCoins = (protonChain) => {
|
|
|
830
827
|
// {
|
|
831
828
|
// wallet: "UNI",
|
|
832
829
|
// symbol: "UNI",
|
|
833
|
-
// chain: Chains.
|
|
834
|
-
// network: Networks.
|
|
830
|
+
// chain: Chains.EthereumSepolia,
|
|
831
|
+
// network: Networks.Sepolia,
|
|
835
832
|
// precision: 18,
|
|
836
833
|
// contract: "0x1F9840A85D5AF5BF1D1762F925BDADDC4201F984",
|
|
837
834
|
// provider: Providers.FIREBLOCKS,
|
|
@@ -1829,7 +1826,7 @@ var depositBodyParser = z6.object({
|
|
|
1829
1826
|
coin: z6.string(),
|
|
1830
1827
|
// "ETH" or "XPR"
|
|
1831
1828
|
wallet: z6.string(),
|
|
1832
|
-
// "ETH-
|
|
1829
|
+
// "ETH-SEPOLIA" or "XPR-MAINNET"
|
|
1833
1830
|
network: z6.string()
|
|
1834
1831
|
// "erc29"
|
|
1835
1832
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,6 @@ var Chains = /* @__PURE__ */ ((Chains2) => {
|
|
|
3
3
|
Chains2["BitcoinMainnet"] = "Bitcoin";
|
|
4
4
|
Chains2["BitcoinTestnet"] = "Bitcoin (Testnet)";
|
|
5
5
|
Chains2["EthereumMainnet"] = "Ethereum";
|
|
6
|
-
Chains2["EthereumRopsten"] = "Ethereum (Ropsten)";
|
|
7
6
|
Chains2["EthereumSepolia"] = "Ethereum (Sepolia)";
|
|
8
7
|
Chains2["LitecoinMainnet"] = "Litecoin";
|
|
9
8
|
Chains2["LitecoinTestnet"] = "Litecoin (Testnet)";
|
|
@@ -39,7 +38,6 @@ var Chains = /* @__PURE__ */ ((Chains2) => {
|
|
|
39
38
|
var Networks = /* @__PURE__ */ ((Networks2) => {
|
|
40
39
|
Networks2["Mainnet"] = "mainnet";
|
|
41
40
|
Networks2["Testnet"] = "testnet";
|
|
42
|
-
Networks2["Ropsten"] = "ropsten";
|
|
43
41
|
Networks2["ERC20"] = "erc20";
|
|
44
42
|
Networks2["BEP20"] = "bep20";
|
|
45
43
|
Networks2["XLM"] = "xlm";
|
|
@@ -63,7 +61,6 @@ var explorerLinkByChain = {
|
|
|
63
61
|
["Bitcoin" /* BitcoinMainnet */]: (txid) => `https://blockchain.com/btc/tx/${txid}`,
|
|
64
62
|
["Bitcoin (Testnet)" /* BitcoinTestnet */]: (txid) => `https://blockstream.info/testnet/tx/${txid}`,
|
|
65
63
|
["Ethereum" /* EthereumMainnet */]: (txid) => `https://etherscan.io/tx/${txid}`,
|
|
66
|
-
["Ethereum (Ropsten)" /* EthereumRopsten */]: (txid) => `https://ropsten.etherscan.io/tx/${txid}`,
|
|
67
64
|
["Ethereum (Sepolia)" /* EthereumSepolia */]: (txid) => `https://sepolia.etherscan.io/tx/${txid}`,
|
|
68
65
|
["Litecoin" /* LitecoinMainnet */]: (txid) => `https://blockchair.com/litecoin/transaction/${txid}`,
|
|
69
66
|
["Litecoin (Testnet)" /* LitecoinTestnet */]: (txid) => `https://blockexplorer.one/litecoin/testnet/blockHash/${txid}`,
|
|
@@ -185,8 +182,8 @@ var initializeCoins = (protonChain) => {
|
|
|
185
182
|
{
|
|
186
183
|
wallet: "USDC",
|
|
187
184
|
symbol: "USDC",
|
|
188
|
-
chain: "Ethereum (
|
|
189
|
-
network: "
|
|
185
|
+
chain: "Ethereum (Sepolia)" /* EthereumSepolia */,
|
|
186
|
+
network: "sepolia" /* Sepolia */,
|
|
190
187
|
precision: 6,
|
|
191
188
|
contract: "0xA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48",
|
|
192
189
|
provider: "fireblocks" /* FIREBLOCKS */,
|
|
@@ -438,8 +435,8 @@ var initializeCoins = (protonChain) => {
|
|
|
438
435
|
{
|
|
439
436
|
wallet: "USDT",
|
|
440
437
|
symbol: "USDT",
|
|
441
|
-
chain: "Ethereum (
|
|
442
|
-
network: "
|
|
438
|
+
chain: "Ethereum (Sepolia)" /* EthereumSepolia */,
|
|
439
|
+
network: "sepolia" /* Sepolia */,
|
|
443
440
|
precision: 6,
|
|
444
441
|
contract: "0xDAC17F958D2EE523A2206206994597C13D831EC7",
|
|
445
442
|
provider: "fireblocks" /* FIREBLOCKS */,
|
|
@@ -590,8 +587,8 @@ var initializeCoins = (protonChain) => {
|
|
|
590
587
|
{
|
|
591
588
|
wallet: "PAXG",
|
|
592
589
|
symbol: "PAXG",
|
|
593
|
-
chain: "Ethereum (
|
|
594
|
-
network: "
|
|
590
|
+
chain: "Ethereum (Sepolia)" /* EthereumSepolia */,
|
|
591
|
+
network: "sepolia" /* Sepolia */,
|
|
595
592
|
precision: 18,
|
|
596
593
|
contract: "0x45804880DE22913DAFE09F4980848ECE6ECBAF78",
|
|
597
594
|
provider: "fireblocks" /* FIREBLOCKS */,
|
|
@@ -675,8 +672,8 @@ var initializeCoins = (protonChain) => {
|
|
|
675
672
|
// {
|
|
676
673
|
// wallet: "UNI",
|
|
677
674
|
// symbol: "UNI",
|
|
678
|
-
// chain: Chains.
|
|
679
|
-
// network: Networks.
|
|
675
|
+
// chain: Chains.EthereumSepolia,
|
|
676
|
+
// network: Networks.Sepolia,
|
|
680
677
|
// precision: 18,
|
|
681
678
|
// contract: "0x1F9840A85D5AF5BF1D1762F925BDADDC4201F984",
|
|
682
679
|
// provider: Providers.FIREBLOCKS,
|
|
@@ -1674,7 +1671,7 @@ var depositBodyParser = z6.object({
|
|
|
1674
1671
|
coin: z6.string(),
|
|
1675
1672
|
// "ETH" or "XPR"
|
|
1676
1673
|
wallet: z6.string(),
|
|
1677
|
-
// "ETH-
|
|
1674
|
+
// "ETH-SEPOLIA" or "XPR-MAINNET"
|
|
1678
1675
|
network: z6.string()
|
|
1679
1676
|
// "erc29"
|
|
1680
1677
|
});
|
package/package.json
CHANGED
package/src/coins.ts
CHANGED
|
@@ -4,7 +4,6 @@ export enum Chains {
|
|
|
4
4
|
BitcoinMainnet = "Bitcoin",
|
|
5
5
|
BitcoinTestnet = "Bitcoin (Testnet)",
|
|
6
6
|
EthereumMainnet = "Ethereum",
|
|
7
|
-
EthereumRopsten = "Ethereum (Ropsten)",
|
|
8
7
|
EthereumSepolia = "Ethereum (Sepolia)",
|
|
9
8
|
LitecoinMainnet = "Litecoin",
|
|
10
9
|
LitecoinTestnet = "Litecoin (Testnet)",
|
|
@@ -40,7 +39,6 @@ export enum Chains {
|
|
|
40
39
|
export enum Networks {
|
|
41
40
|
Mainnet = "mainnet",
|
|
42
41
|
Testnet = "testnet",
|
|
43
|
-
Ropsten = "ropsten",
|
|
44
42
|
ERC20 = "erc20",
|
|
45
43
|
BEP20 = "bep20",
|
|
46
44
|
XLM = "xlm",
|
|
@@ -98,8 +96,6 @@ export const explorerLinkByChain = {
|
|
|
98
96
|
[Chains.BitcoinTestnet]: (txid: string) =>
|
|
99
97
|
`https://blockstream.info/testnet/tx/${txid}`,
|
|
100
98
|
[Chains.EthereumMainnet]: (txid: string) => `https://etherscan.io/tx/${txid}`,
|
|
101
|
-
[Chains.EthereumRopsten]: (txid: string) =>
|
|
102
|
-
`https://ropsten.etherscan.io/tx/${txid}`,
|
|
103
99
|
[Chains.EthereumSepolia]: (txid: string) =>
|
|
104
100
|
`https://sepolia.etherscan.io/tx/${txid}`,
|
|
105
101
|
[Chains.LitecoinMainnet]: (txid: string) =>
|
|
@@ -275,8 +271,8 @@ export const initializeCoins = (
|
|
|
275
271
|
{
|
|
276
272
|
wallet: "USDC",
|
|
277
273
|
symbol: "USDC",
|
|
278
|
-
chain: Chains.
|
|
279
|
-
network: Networks.
|
|
274
|
+
chain: Chains.EthereumSepolia,
|
|
275
|
+
network: Networks.Sepolia,
|
|
280
276
|
precision: 6,
|
|
281
277
|
contract: "0xA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48",
|
|
282
278
|
provider: Providers.FIREBLOCKS,
|
|
@@ -545,8 +541,8 @@ export const initializeCoins = (
|
|
|
545
541
|
{
|
|
546
542
|
wallet: "USDT",
|
|
547
543
|
symbol: "USDT",
|
|
548
|
-
chain: Chains.
|
|
549
|
-
network: Networks.
|
|
544
|
+
chain: Chains.EthereumSepolia,
|
|
545
|
+
network: Networks.Sepolia,
|
|
550
546
|
precision: 6,
|
|
551
547
|
contract: "0xDAC17F958D2EE523A2206206994597C13D831EC7",
|
|
552
548
|
provider: Providers.FIREBLOCKS,
|
|
@@ -709,8 +705,8 @@ export const initializeCoins = (
|
|
|
709
705
|
{
|
|
710
706
|
wallet: "PAXG",
|
|
711
707
|
symbol: "PAXG",
|
|
712
|
-
chain: Chains.
|
|
713
|
-
network: Networks.
|
|
708
|
+
chain: Chains.EthereumSepolia,
|
|
709
|
+
network: Networks.Sepolia,
|
|
714
710
|
precision: 18,
|
|
715
711
|
contract: "0x45804880DE22913DAFE09F4980848ECE6ECBAF78",
|
|
716
712
|
provider: Providers.FIREBLOCKS,
|
|
@@ -798,8 +794,8 @@ export const initializeCoins = (
|
|
|
798
794
|
// {
|
|
799
795
|
// wallet: "UNI",
|
|
800
796
|
// symbol: "UNI",
|
|
801
|
-
// chain: Chains.
|
|
802
|
-
// network: Networks.
|
|
797
|
+
// chain: Chains.EthereumSepolia,
|
|
798
|
+
// network: Networks.Sepolia,
|
|
803
799
|
// precision: 18,
|
|
804
800
|
// contract: "0x1F9840A85D5AF5BF1D1762F925BDADDC4201F984",
|
|
805
801
|
// provider: Providers.FIREBLOCKS,
|
package/src/parsers/deposit.ts
CHANGED
|
@@ -10,7 +10,7 @@ export const depositBodyParser = z.object({
|
|
|
10
10
|
type: z.nativeEnum(Type), // "receive" or "send"
|
|
11
11
|
hash: z.string(), // "0x000010203121388fac991"
|
|
12
12
|
coin: z.string(), // "ETH" or "XPR"
|
|
13
|
-
wallet: z.string(), // "ETH-
|
|
13
|
+
wallet: z.string(), // "ETH-SEPOLIA" or "XPR-MAINNET"
|
|
14
14
|
network: z.string(), // "erc29"
|
|
15
15
|
});
|
|
16
16
|
export type DepositBody = z.infer<typeof depositBodyParser>;
|