@proton/wrap-constants 0.2.70 → 0.2.72

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.
@@ -1,46 +0,0 @@
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.ZodOptional<z.ZodString>;
6
- }, "strip", z.ZodTypeAny, {
7
- errormsg?: string | undefined;
8
- success: boolean;
9
- transaction_id: string;
10
- }, {
11
- errormsg?: string | undefined;
12
- success: boolean;
13
- transaction_id: string;
14
- }>;
15
- export declare type OtcOrderResponse = z.infer<typeof otcOrderResponseParser>;
16
- export declare const otcQuoteBodyParser: z.ZodObject<{
17
- baseAmount: z.ZodNumber;
18
- baseSymbol: z.ZodString;
19
- quoteSymbol: z.ZodString;
20
- }, "strip", z.ZodTypeAny, {
21
- baseAmount: number;
22
- baseSymbol: string;
23
- quoteSymbol: string;
24
- }, {
25
- baseAmount: number;
26
- baseSymbol: string;
27
- quoteSymbol: string;
28
- }>;
29
- export declare type OtcQuoteBody = z.infer<typeof otcQuoteBodyParser>;
30
- export declare const otcQuoteResponseParser: z.ZodObject<{
31
- success: z.ZodBoolean;
32
- token: z.ZodString;
33
- qty: z.ZodNumber;
34
- errormsg: z.ZodOptional<z.ZodString>;
35
- }, "strip", z.ZodTypeAny, {
36
- errormsg?: string | undefined;
37
- success: boolean;
38
- token: string;
39
- qty: number;
40
- }, {
41
- errormsg?: string | undefined;
42
- success: boolean;
43
- token: string;
44
- qty: number;
45
- }>;
46
- export declare type OtcQuoteResponse = z.infer<typeof otcQuoteResponseParser>;
@@ -1,52 +0,0 @@
1
- import { Coin } from "../coins";
2
- import { ExtendedAsset } from '@bloks/numbers';
3
- import { INode } from "../graph";
4
- export interface RawPool {
5
- lt_symbol: string;
6
- creator: string;
7
- memo: string;
8
- pool1: {
9
- quantity: string;
10
- contract: string;
11
- };
12
- pool2: {
13
- quantity: string;
14
- contract: string;
15
- };
16
- hash: string;
17
- fee: {
18
- exchange_fee: number;
19
- add_liquidity_fee: number;
20
- remove_liquidity_fee: number;
21
- };
22
- active: boolean;
23
- amplifier: number;
24
- }
25
- export interface Pool extends Omit<RawPool, 'pool1' | 'pool2'> {
26
- lt_symbol: string;
27
- creator: string;
28
- memo: string;
29
- pool1: ExtendedTokenWithRate;
30
- pool2: ExtendedTokenWithRate;
31
- hash: string;
32
- fee: {
33
- exchange_fee: number;
34
- add_liquidity_fee: number;
35
- remove_liquidity_fee: number;
36
- };
37
- liquidityUsd: number;
38
- liquidityApr: number;
39
- }
40
- export declare type ExtendedToken = Coin & ExtendedAsset & {
41
- key: string;
42
- };
43
- export declare type ExtendedTokenWithRate = ExtendedToken & {
44
- rate: number;
45
- };
46
- export declare type PoolTable = {
47
- pool1: ExtendedTokenWithRate;
48
- pool2: ExtendedTokenWithRate;
49
- path: INode<Pool>[];
50
- shortestPath: INode<Pool>[];
51
- getPathString: () => string;
52
- } | undefined;