@proton/wrap-constants 0.0.30 → 0.0.34

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.
@@ -0,0 +1,32 @@
1
+ import * as z from 'zod';
2
+ export declare const accountParser: z.ZodString;
3
+ export declare const authorizationParser: z.ZodObject<{
4
+ actor: z.ZodString;
5
+ permission: z.ZodString;
6
+ }, {
7
+ strict: true;
8
+ }, {
9
+ actor: string;
10
+ permission: string;
11
+ }>;
12
+ export declare type Authorization = z.infer<typeof authorizationParser>;
13
+ export declare const authorizationsParser: z.ZodArray<z.ZodObject<{
14
+ actor: z.ZodString;
15
+ permission: z.ZodString;
16
+ }, {
17
+ strict: true;
18
+ }, {
19
+ actor: string;
20
+ permission: string;
21
+ }>>;
22
+ export declare type Authorizations = z.infer<typeof authorizationsParser>;
23
+ export declare const ExtendedAssetParser: z.ZodObject<{
24
+ quantity: z.ZodString;
25
+ contract: z.ZodString;
26
+ }, {
27
+ strict: true;
28
+ }, {
29
+ quantity: string;
30
+ contract: string;
31
+ }>;
32
+ export declare type ExtendedAsset = z.infer<typeof ExtendedAssetParser>;
@@ -0,0 +1,101 @@
1
+ import * as z from 'zod';
2
+ export interface CurrencyStat {
3
+ supply: string;
4
+ max_supply: string;
5
+ issuer: string;
6
+ }
7
+ export interface CurrencyStats {
8
+ [key: string]: CurrencyStat;
9
+ }
10
+ export declare const rateParser: z.ZodObject<{
11
+ counterCurrency: z.ZodString;
12
+ price: z.ZodNumber;
13
+ priceChangePercent: z.ZodNumber;
14
+ marketCap: z.ZodNumber;
15
+ volume: z.ZodNumber;
16
+ timestamp: z.ZodNumber;
17
+ }, {
18
+ strict: true;
19
+ }, {
20
+ counterCurrency: string;
21
+ price: number;
22
+ priceChangePercent: number;
23
+ marketCap: number;
24
+ volume: number;
25
+ timestamp: number;
26
+ }>;
27
+ export declare type Rate = z.infer<typeof rateParser>;
28
+ export declare const exchangeRateParser: z.ZodObject<{
29
+ contract: z.ZodString;
30
+ symbol: z.ZodString;
31
+ rank: z.ZodNumber;
32
+ rates: z.ZodArray<z.ZodObject<{
33
+ counterCurrency: z.ZodString;
34
+ price: z.ZodNumber;
35
+ priceChangePercent: z.ZodNumber;
36
+ marketCap: z.ZodNumber;
37
+ volume: z.ZodNumber;
38
+ timestamp: z.ZodNumber;
39
+ }, {
40
+ strict: true;
41
+ }, {
42
+ counterCurrency: string;
43
+ price: number;
44
+ priceChangePercent: number;
45
+ marketCap: number;
46
+ volume: number;
47
+ timestamp: number;
48
+ }>>;
49
+ }, {
50
+ strict: true;
51
+ }, {
52
+ symbol: string;
53
+ contract: string;
54
+ rank: number;
55
+ rates: {
56
+ counterCurrency: string;
57
+ price: number;
58
+ priceChangePercent: number;
59
+ marketCap: number;
60
+ volume: number;
61
+ timestamp: number;
62
+ }[];
63
+ }>;
64
+ export declare type ExchangeRate = z.infer<typeof exchangeRateParser>;
65
+ export declare const exchangeRatesParser: z.ZodArray<z.ZodObject<{
66
+ contract: z.ZodString;
67
+ symbol: z.ZodString;
68
+ rank: z.ZodNumber;
69
+ rates: z.ZodArray<z.ZodObject<{
70
+ counterCurrency: z.ZodString;
71
+ price: z.ZodNumber;
72
+ priceChangePercent: z.ZodNumber;
73
+ marketCap: z.ZodNumber;
74
+ volume: z.ZodNumber;
75
+ timestamp: z.ZodNumber;
76
+ }, {
77
+ strict: true;
78
+ }, {
79
+ counterCurrency: string;
80
+ price: number;
81
+ priceChangePercent: number;
82
+ marketCap: number;
83
+ volume: number;
84
+ timestamp: number;
85
+ }>>;
86
+ }, {
87
+ strict: true;
88
+ }, {
89
+ symbol: string;
90
+ contract: string;
91
+ rank: number;
92
+ rates: {
93
+ counterCurrency: string;
94
+ price: number;
95
+ priceChangePercent: number;
96
+ marketCap: number;
97
+ volume: number;
98
+ timestamp: number;
99
+ }[];
100
+ }>>;
101
+ export declare type ExchangeRates = z.infer<typeof exchangeRatesParser>;
@@ -0,0 +1,49 @@
1
+ import * as z from 'zod';
2
+ export declare enum Type {
3
+ RECEIVE = "receive",
4
+ SEND = "send"
5
+ }
6
+ export declare const depositBodyParser: z.ZodObject<{
7
+ id: z.ZodString;
8
+ type: z.ZodNativeEnum<typeof Type>;
9
+ hash: z.ZodString;
10
+ coin: z.ZodString;
11
+ wallet: z.ZodString;
12
+ }, {
13
+ strict: true;
14
+ }, {
15
+ type: Type;
16
+ id: string;
17
+ hash: string;
18
+ coin: string;
19
+ wallet: string;
20
+ }>;
21
+ export declare type DepositBody = z.infer<typeof depositBodyParser>;
22
+ export declare const transactionParser: z.ZodObject<{
23
+ id: z.ZodString;
24
+ wallet: z.ZodString;
25
+ value: z.ZodNumber;
26
+ valueString: z.ZodString;
27
+ address: z.ZodString;
28
+ type: z.ZodNativeEnum<typeof Type>;
29
+ state: z.ZodString;
30
+ confirmations: z.ZodNumber;
31
+ hash: z.ZodString;
32
+ blockHash: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodUndefined]>, z.ZodNull]>;
33
+ blockHeight: z.ZodUnion<[z.ZodUnion<[z.ZodNumber, z.ZodUndefined]>, z.ZodNull]>;
34
+ }, {
35
+ strict: true;
36
+ }, {
37
+ blockHash?: string | null | undefined;
38
+ blockHeight?: number | null | undefined;
39
+ type: Type;
40
+ id: string;
41
+ hash: string;
42
+ wallet: string;
43
+ value: number;
44
+ valueString: string;
45
+ address: string;
46
+ state: string;
47
+ confirmations: number;
48
+ }>;
49
+ export declare type Transaction = z.infer<typeof transactionParser>;
@@ -0,0 +1,10 @@
1
+ export * from './actions';
2
+ export * from './address';
3
+ export * from './auth';
4
+ export * from './base';
5
+ export * from './currency';
6
+ export * from './deposit';
7
+ export * from './otc';
8
+ export * from './withdraw';
9
+ export * from './withdrawalHistory';
10
+ export * from './wrap';
@@ -0,0 +1,39 @@
1
+ import * as z from 'zod';
2
+ export declare const otcOrderResponseParser: z.ZodObject<{
3
+ success: z.ZodBoolean;
4
+ transaction_id: z.ZodString;
5
+ errormsg: z.ZodUnion<[z.ZodString, z.ZodUndefined]>;
6
+ }, {
7
+ strict: true;
8
+ }, {
9
+ errormsg?: string | undefined;
10
+ success: boolean;
11
+ transaction_id: string;
12
+ }>;
13
+ export declare type OtcOrderResponse = z.infer<typeof otcOrderResponseParser>;
14
+ export declare const otcQuoteBodyParser: z.ZodObject<{
15
+ baseAmount: z.ZodNumber;
16
+ baseSymbol: z.ZodString;
17
+ quoteSymbol: z.ZodString;
18
+ }, {
19
+ strict: true;
20
+ }, {
21
+ baseAmount: number;
22
+ baseSymbol: string;
23
+ quoteSymbol: string;
24
+ }>;
25
+ export declare type OtcQuoteBody = z.infer<typeof otcQuoteBodyParser>;
26
+ export declare const otcQuoteResponseParser: z.ZodObject<{
27
+ success: z.ZodBoolean;
28
+ token: z.ZodString;
29
+ qty: z.ZodNumber;
30
+ errormsg: z.ZodUnion<[z.ZodString, z.ZodUndefined]>;
31
+ }, {
32
+ strict: true;
33
+ }, {
34
+ errormsg?: string | undefined;
35
+ success: boolean;
36
+ token: string;
37
+ qty: number;
38
+ }>;
39
+ export declare type OtcQuoteResponse = z.infer<typeof otcQuoteResponseParser>;