@proton/wrap-constants 0.2.155 → 0.2.157
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 +2 -2
- package/dist/index.js +22 -22
- package/dist/index.mjs +22 -22
- package/package.json +2 -2
- package/src/coins.ts +21 -21
- package/src/parsers/dex.ts +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6925,10 +6925,10 @@ declare const getOrderHistoryResponseParser: z.ZodObject<{
|
|
|
6925
6925
|
}>;
|
|
6926
6926
|
declare type GetOrderHistoryResponse = z.infer<typeof getOrderHistoryResponseParser>;
|
|
6927
6927
|
declare const getOrderLifecycleParser: z.ZodObject<{
|
|
6928
|
-
order_id: z.ZodOptional<z.ZodString>;
|
|
6928
|
+
order_id: z.ZodEffects<z.ZodOptional<z.ZodString>, string | number | undefined, string | undefined>;
|
|
6929
6929
|
ordinal_order_id: z.ZodOptional<z.ZodString>;
|
|
6930
6930
|
}, "strip", z.ZodTypeAny, {
|
|
6931
|
-
order_id?: string | undefined;
|
|
6931
|
+
order_id?: string | number | undefined;
|
|
6932
6932
|
ordinal_order_id?: string | undefined;
|
|
6933
6933
|
}, {
|
|
6934
6934
|
order_id?: string | undefined;
|
package/dist/index.js
CHANGED
|
@@ -910,7 +910,7 @@ var initializeCoins = (protonChain) => {
|
|
|
910
910
|
},
|
|
911
911
|
{
|
|
912
912
|
allowSwap: false,
|
|
913
|
-
allowBridge:
|
|
913
|
+
allowBridge: false,
|
|
914
914
|
allowLend: false,
|
|
915
915
|
allowBorrow: false,
|
|
916
916
|
name: "Bitcoin Cash",
|
|
@@ -920,28 +920,28 @@ var initializeCoins = (protonChain) => {
|
|
|
920
920
|
xtokenContract: "xtokens",
|
|
921
921
|
wallets: [
|
|
922
922
|
...IS_MAINNET ? [
|
|
923
|
-
{
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
}
|
|
923
|
+
// {
|
|
924
|
+
// wallet: "BCH",
|
|
925
|
+
// symbol: "BCH",
|
|
926
|
+
// chain: Chains.BitcoinCashMainnet,
|
|
927
|
+
// network: Networks.Mainnet,
|
|
928
|
+
// precision: 8,
|
|
929
|
+
// contract: undefined,
|
|
930
|
+
// provider: Providers.FIREBLOCKS,
|
|
931
|
+
// hasWithdrawMemo: false,
|
|
932
|
+
// },
|
|
933
933
|
] : [],
|
|
934
934
|
...IS_TESTNET ? [
|
|
935
|
-
{
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
}
|
|
935
|
+
// {
|
|
936
|
+
// wallet: "BCH",
|
|
937
|
+
// symbol: "BCH",
|
|
938
|
+
// chain: Chains.BitcoinCashTestnet,
|
|
939
|
+
// network: Networks.Testnet,
|
|
940
|
+
// precision: 8,
|
|
941
|
+
// contract: undefined,
|
|
942
|
+
// provider: Providers.FIREBLOCKS,
|
|
943
|
+
// hasWithdrawMemo: false,
|
|
944
|
+
// },
|
|
945
945
|
] : []
|
|
946
946
|
],
|
|
947
947
|
image: "https://www.proton.org/images/tokens/xtokensXBCH.png",
|
|
@@ -2027,7 +2027,7 @@ var getOrderHistoryResponseParser = z11.object({
|
|
|
2027
2027
|
data: z11.array(orderHistoryParser)
|
|
2028
2028
|
});
|
|
2029
2029
|
var getOrderLifecycleParser = z11.object({
|
|
2030
|
-
order_id: z11.string().optional(),
|
|
2030
|
+
order_id: z11.string().optional().transform((_) => _ ? +_ : _),
|
|
2031
2031
|
ordinal_order_id: z11.string().optional()
|
|
2032
2032
|
});
|
|
2033
2033
|
var getOrderLifecycleResponseParser = z11.object({
|
package/dist/index.mjs
CHANGED
|
@@ -756,7 +756,7 @@ var initializeCoins = (protonChain) => {
|
|
|
756
756
|
},
|
|
757
757
|
{
|
|
758
758
|
allowSwap: false,
|
|
759
|
-
allowBridge:
|
|
759
|
+
allowBridge: false,
|
|
760
760
|
allowLend: false,
|
|
761
761
|
allowBorrow: false,
|
|
762
762
|
name: "Bitcoin Cash",
|
|
@@ -766,28 +766,28 @@ var initializeCoins = (protonChain) => {
|
|
|
766
766
|
xtokenContract: "xtokens",
|
|
767
767
|
wallets: [
|
|
768
768
|
...IS_MAINNET ? [
|
|
769
|
-
{
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
}
|
|
769
|
+
// {
|
|
770
|
+
// wallet: "BCH",
|
|
771
|
+
// symbol: "BCH",
|
|
772
|
+
// chain: Chains.BitcoinCashMainnet,
|
|
773
|
+
// network: Networks.Mainnet,
|
|
774
|
+
// precision: 8,
|
|
775
|
+
// contract: undefined,
|
|
776
|
+
// provider: Providers.FIREBLOCKS,
|
|
777
|
+
// hasWithdrawMemo: false,
|
|
778
|
+
// },
|
|
779
779
|
] : [],
|
|
780
780
|
...IS_TESTNET ? [
|
|
781
|
-
{
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
}
|
|
781
|
+
// {
|
|
782
|
+
// wallet: "BCH",
|
|
783
|
+
// symbol: "BCH",
|
|
784
|
+
// chain: Chains.BitcoinCashTestnet,
|
|
785
|
+
// network: Networks.Testnet,
|
|
786
|
+
// precision: 8,
|
|
787
|
+
// contract: undefined,
|
|
788
|
+
// provider: Providers.FIREBLOCKS,
|
|
789
|
+
// hasWithdrawMemo: false,
|
|
790
|
+
// },
|
|
791
791
|
] : []
|
|
792
792
|
],
|
|
793
793
|
image: "https://www.proton.org/images/tokens/xtokensXBCH.png",
|
|
@@ -1873,7 +1873,7 @@ var getOrderHistoryResponseParser = z11.object({
|
|
|
1873
1873
|
data: z11.array(orderHistoryParser)
|
|
1874
1874
|
});
|
|
1875
1875
|
var getOrderLifecycleParser = z11.object({
|
|
1876
|
-
order_id: z11.string().optional(),
|
|
1876
|
+
order_id: z11.string().optional().transform((_) => _ ? +_ : _),
|
|
1877
1877
|
ordinal_order_id: z11.string().optional()
|
|
1878
1878
|
});
|
|
1879
1879
|
var getOrderLifecycleResponseParser = z11.object({
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
8
|
-
"version": "0.2.
|
|
8
|
+
"version": "0.2.157",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"main": "dist/index.js",
|
|
11
11
|
"typings": "dist/index.d.ts",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"resolutions": {
|
|
41
41
|
"typescript": "4.5"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "3744039499590124993b3731aef814d011bb236e"
|
|
44
44
|
}
|
package/src/coins.ts
CHANGED
|
@@ -887,7 +887,7 @@ export const initializeCoins = (
|
|
|
887
887
|
},
|
|
888
888
|
{
|
|
889
889
|
allowSwap: false,
|
|
890
|
-
allowBridge:
|
|
890
|
+
allowBridge: false,
|
|
891
891
|
allowLend: false,
|
|
892
892
|
allowBorrow: false,
|
|
893
893
|
name: "Bitcoin Cash",
|
|
@@ -898,30 +898,30 @@ export const initializeCoins = (
|
|
|
898
898
|
wallets: [
|
|
899
899
|
...(IS_MAINNET
|
|
900
900
|
? [
|
|
901
|
-
{
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
},
|
|
901
|
+
// {
|
|
902
|
+
// wallet: "BCH",
|
|
903
|
+
// symbol: "BCH",
|
|
904
|
+
// chain: Chains.BitcoinCashMainnet,
|
|
905
|
+
// network: Networks.Mainnet,
|
|
906
|
+
// precision: 8,
|
|
907
|
+
// contract: undefined,
|
|
908
|
+
// provider: Providers.FIREBLOCKS,
|
|
909
|
+
// hasWithdrawMemo: false,
|
|
910
|
+
// },
|
|
911
911
|
]
|
|
912
912
|
: []),
|
|
913
913
|
...(IS_TESTNET
|
|
914
914
|
? [
|
|
915
|
-
{
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
},
|
|
915
|
+
// {
|
|
916
|
+
// wallet: "BCH",
|
|
917
|
+
// symbol: "BCH",
|
|
918
|
+
// chain: Chains.BitcoinCashTestnet,
|
|
919
|
+
// network: Networks.Testnet,
|
|
920
|
+
// precision: 8,
|
|
921
|
+
// contract: undefined,
|
|
922
|
+
// provider: Providers.FIREBLOCKS,
|
|
923
|
+
// hasWithdrawMemo: false,
|
|
924
|
+
// },
|
|
925
925
|
]
|
|
926
926
|
: []),
|
|
927
927
|
],
|
package/src/parsers/dex.ts
CHANGED
|
@@ -176,7 +176,7 @@ export type GetOrderHistoryResponse = z.infer<
|
|
|
176
176
|
>;
|
|
177
177
|
|
|
178
178
|
export const getOrderLifecycleParser = z.object({
|
|
179
|
-
order_id: z.string().optional(),
|
|
179
|
+
order_id: z.string().optional().transform(_ => _ ? +_ : _),
|
|
180
180
|
ordinal_order_id: z.string().optional(),
|
|
181
181
|
});
|
|
182
182
|
export type GetOrderLifecycle = z.input<typeof getOrderLifecycleParser>;
|