@proton/wrap-constants 0.2.184 → 0.2.187
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 +112 -112
- package/dist/index.js +49 -15
- package/dist/index.mjs +49 -15
- package/package.json +8 -8
- package/src/coins.ts +16 -1
- package/src/math.ts +95 -60
- package/src/parsers/auth.ts +32 -18
- package/src/parsers/pool.ts +34 -33
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Asset, ExtendedAsset as ExtendedAsset$1 } from '@bloks/numbers';
|
|
2
2
|
import * as z from 'zod';
|
|
3
|
-
import
|
|
3
|
+
import BN from 'bignumber.js';
|
|
4
4
|
|
|
5
5
|
declare enum Chains {
|
|
6
6
|
BitcoinMainnet = "Bitcoin",
|
|
@@ -83,7 +83,7 @@ declare enum Providers {
|
|
|
83
83
|
METAL = "metal",
|
|
84
84
|
METALL2 = "metall2"
|
|
85
85
|
}
|
|
86
|
-
type CoinWallet = Exclude<Coin, "wallets"> & Wallet;
|
|
86
|
+
declare type CoinWallet = Exclude<Coin, "wallets"> & Wallet;
|
|
87
87
|
declare const explorerLinkByChain: {
|
|
88
88
|
Bitcoin: (txid: string) => string;
|
|
89
89
|
"Bitcoin (Testnet)": (txid: string) => string;
|
|
@@ -95,8 +95,8 @@ declare const explorerLinkByChain: {
|
|
|
95
95
|
"Bitcoin Cash (Testnet)": (txid: string) => string;
|
|
96
96
|
Stellar: (txid: string) => string;
|
|
97
97
|
"Stellar (Testnet)": (txid: string) => string;
|
|
98
|
-
Proton: (txid: string, traces?: boolean) => string;
|
|
99
|
-
"Proton (Testnet)": (txid: string, traces?: boolean) => string;
|
|
98
|
+
Proton: (txid: string, traces?: boolean | undefined) => string;
|
|
99
|
+
"Proton (Testnet)": (txid: string, traces?: boolean | undefined) => string;
|
|
100
100
|
Polkadot: (txid: string) => string;
|
|
101
101
|
"Binance (BEP2)": (txid: string) => string;
|
|
102
102
|
"Binance (BEP20)": (txid: string) => string;
|
|
@@ -119,7 +119,7 @@ declare const explorerLinkByChain: {
|
|
|
119
119
|
"Metal L2 (Testnet)": (txid: string) => string;
|
|
120
120
|
"Metal L2": (txid: string) => string;
|
|
121
121
|
};
|
|
122
|
-
declare const protonExplorerTxUrl: (chain: string, txId: string, traces?: boolean) => string;
|
|
122
|
+
declare const protonExplorerTxUrl: (chain: string, txId: string, traces?: boolean | undefined) => string;
|
|
123
123
|
declare const initializeCoins: (protonChain: string) => {
|
|
124
124
|
allCoins: Coin[];
|
|
125
125
|
swapCoins: Coin[];
|
|
@@ -1784,7 +1784,7 @@ declare const addressParser: z.ZodObject<{
|
|
|
1784
1784
|
address: string;
|
|
1785
1785
|
address_hash: string;
|
|
1786
1786
|
}>;
|
|
1787
|
-
type Address = z.infer<typeof addressParser>;
|
|
1787
|
+
declare type Address = z.infer<typeof addressParser>;
|
|
1788
1788
|
declare const generateAddressBodyParser: z.ZodObject<z.objectUtil.extendShape<{
|
|
1789
1789
|
coin: z.ZodString;
|
|
1790
1790
|
wallet: z.ZodString;
|
|
@@ -2675,7 +2675,7 @@ declare const generateAddressBodyParser: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
2675
2675
|
coin: string;
|
|
2676
2676
|
wallet: string;
|
|
2677
2677
|
}>;
|
|
2678
|
-
type GenerateAddressBody = z.infer<typeof generateAddressBodyParser>;
|
|
2678
|
+
declare type GenerateAddressBody = z.infer<typeof generateAddressBodyParser>;
|
|
2679
2679
|
declare const generateAddressResponse: z.ZodObject<{
|
|
2680
2680
|
id: z.ZodString;
|
|
2681
2681
|
address: z.ZodString;
|
|
@@ -2695,7 +2695,7 @@ declare const generateAddressResponse: z.ZodObject<{
|
|
|
2695
2695
|
id: string;
|
|
2696
2696
|
memo?: string | undefined;
|
|
2697
2697
|
}>;
|
|
2698
|
-
type GenerateAddressResponse = z.infer<typeof generateAddressResponse>;
|
|
2698
|
+
declare type GenerateAddressResponse = z.infer<typeof generateAddressResponse>;
|
|
2699
2699
|
|
|
2700
2700
|
declare const createAbstractAuthParser: (contract: string, action: string, data: z.ZodRawShape) => z.ZodObject<{
|
|
2701
2701
|
signer: z.ZodObject<{
|
|
@@ -3626,7 +3626,7 @@ declare const generateAuthActionsBaseParser: z.ZodObject<{
|
|
|
3626
3626
|
protonAccount: string;
|
|
3627
3627
|
};
|
|
3628
3628
|
}>;
|
|
3629
|
-
type GenerateAuthBaseAction = z.infer<typeof generateAuthActionsBaseParser>;
|
|
3629
|
+
declare type GenerateAuthBaseAction = z.infer<typeof generateAuthActionsBaseParser>;
|
|
3630
3630
|
declare const generateAuthParser: z.ZodObject<{
|
|
3631
3631
|
signer: z.ZodObject<{
|
|
3632
3632
|
actor: z.ZodString;
|
|
@@ -4510,7 +4510,7 @@ declare const generateAuthParser: z.ZodObject<{
|
|
|
4510
4510
|
})[];
|
|
4511
4511
|
};
|
|
4512
4512
|
}>;
|
|
4513
|
-
type GenerateAuth = z.infer<typeof generateAuthParser>;
|
|
4513
|
+
declare type GenerateAuth = z.infer<typeof generateAuthParser>;
|
|
4514
4514
|
|
|
4515
4515
|
declare const accountParser: z.ZodString;
|
|
4516
4516
|
declare const authorizationParser: z.ZodObject<{
|
|
@@ -4523,7 +4523,7 @@ declare const authorizationParser: z.ZodObject<{
|
|
|
4523
4523
|
actor: string;
|
|
4524
4524
|
permission: string;
|
|
4525
4525
|
}>;
|
|
4526
|
-
type Authorization = z.infer<typeof authorizationParser>;
|
|
4526
|
+
declare type Authorization = z.infer<typeof authorizationParser>;
|
|
4527
4527
|
declare const authorizationsParser: z.ZodArray<z.ZodObject<{
|
|
4528
4528
|
actor: z.ZodString;
|
|
4529
4529
|
permission: z.ZodString;
|
|
@@ -4534,7 +4534,7 @@ declare const authorizationsParser: z.ZodArray<z.ZodObject<{
|
|
|
4534
4534
|
actor: string;
|
|
4535
4535
|
permission: string;
|
|
4536
4536
|
}>, "many">;
|
|
4537
|
-
type Authorizations = z.infer<typeof authorizationsParser>;
|
|
4537
|
+
declare type Authorizations = z.infer<typeof authorizationsParser>;
|
|
4538
4538
|
declare const ExtendedAssetParser: z.ZodObject<{
|
|
4539
4539
|
quantity: z.ZodString;
|
|
4540
4540
|
contract: z.ZodString;
|
|
@@ -4545,7 +4545,7 @@ declare const ExtendedAssetParser: z.ZodObject<{
|
|
|
4545
4545
|
quantity: string;
|
|
4546
4546
|
contract: string;
|
|
4547
4547
|
}>;
|
|
4548
|
-
type ExtendedAsset = z.infer<typeof ExtendedAssetParser>;
|
|
4548
|
+
declare type ExtendedAsset = z.infer<typeof ExtendedAssetParser>;
|
|
4549
4549
|
declare const accountRamDeltaParser: z.ZodObject<{
|
|
4550
4550
|
account: z.ZodString;
|
|
4551
4551
|
delta: z.ZodString;
|
|
@@ -4556,7 +4556,7 @@ declare const accountRamDeltaParser: z.ZodObject<{
|
|
|
4556
4556
|
account: string;
|
|
4557
4557
|
delta: string;
|
|
4558
4558
|
}>;
|
|
4559
|
-
type HistoryAccountRamDelta = z.infer<typeof accountRamDeltaParser>;
|
|
4559
|
+
declare type HistoryAccountRamDelta = z.infer<typeof accountRamDeltaParser>;
|
|
4560
4560
|
|
|
4561
4561
|
interface CurrencyStat {
|
|
4562
4562
|
supply: string;
|
|
@@ -4588,7 +4588,7 @@ declare const rateParser: z.ZodObject<{
|
|
|
4588
4588
|
volume: number;
|
|
4589
4589
|
timestamp: number;
|
|
4590
4590
|
}>;
|
|
4591
|
-
type Rate = z.infer<typeof rateParser>;
|
|
4591
|
+
declare type Rate = z.infer<typeof rateParser>;
|
|
4592
4592
|
declare const exchangeRateParser: z.ZodObject<{
|
|
4593
4593
|
contract: z.ZodString;
|
|
4594
4594
|
symbol: z.ZodString;
|
|
@@ -4640,7 +4640,7 @@ declare const exchangeRateParser: z.ZodObject<{
|
|
|
4640
4640
|
timestamp: number;
|
|
4641
4641
|
}[];
|
|
4642
4642
|
}>;
|
|
4643
|
-
type ExchangeRate = z.infer<typeof exchangeRateParser>;
|
|
4643
|
+
declare type ExchangeRate = z.infer<typeof exchangeRateParser>;
|
|
4644
4644
|
declare const exchangeRatesParser: z.ZodArray<z.ZodObject<{
|
|
4645
4645
|
contract: z.ZodString;
|
|
4646
4646
|
symbol: z.ZodString;
|
|
@@ -4692,7 +4692,7 @@ declare const exchangeRatesParser: z.ZodArray<z.ZodObject<{
|
|
|
4692
4692
|
timestamp: number;
|
|
4693
4693
|
}[];
|
|
4694
4694
|
}>, "many">;
|
|
4695
|
-
type ExchangeRates = z.infer<typeof exchangeRatesParser>;
|
|
4695
|
+
declare type ExchangeRates = z.infer<typeof exchangeRatesParser>;
|
|
4696
4696
|
declare const bloksRatesParser: z.ZodArray<z.ZodObject<{
|
|
4697
4697
|
contract: z.ZodString;
|
|
4698
4698
|
symbol: z.ZodString;
|
|
@@ -4744,7 +4744,7 @@ declare const bloksRatesParser: z.ZodArray<z.ZodObject<{
|
|
|
4744
4744
|
timestamp: number;
|
|
4745
4745
|
}[];
|
|
4746
4746
|
}>, "many">;
|
|
4747
|
-
type BloksRate = {
|
|
4747
|
+
declare type BloksRate = {
|
|
4748
4748
|
key: string;
|
|
4749
4749
|
symbol: string;
|
|
4750
4750
|
account: string;
|
|
@@ -4792,7 +4792,7 @@ type BloksRate = {
|
|
|
4792
4792
|
rank: number;
|
|
4793
4793
|
chain_rank: number;
|
|
4794
4794
|
};
|
|
4795
|
-
type BloksRates = BloksRate[];
|
|
4795
|
+
declare type BloksRates = BloksRate[];
|
|
4796
4796
|
|
|
4797
4797
|
declare enum Type {
|
|
4798
4798
|
RECEIVE = "receive",
|
|
@@ -4820,7 +4820,7 @@ declare const depositBodyParser: z.ZodObject<{
|
|
|
4820
4820
|
hash: string;
|
|
4821
4821
|
network: string;
|
|
4822
4822
|
}>;
|
|
4823
|
-
type DepositBody = z.infer<typeof depositBodyParser>;
|
|
4823
|
+
declare type DepositBody = z.infer<typeof depositBodyParser>;
|
|
4824
4824
|
declare const metalTransactionParser: z.ZodObject<{
|
|
4825
4825
|
id: z.ZodString;
|
|
4826
4826
|
wallet: z.ZodString;
|
|
@@ -4858,7 +4858,7 @@ declare const metalTransactionParser: z.ZodObject<{
|
|
|
4858
4858
|
blockHash?: string | null | undefined;
|
|
4859
4859
|
blockHeight?: number | null | undefined;
|
|
4860
4860
|
}>;
|
|
4861
|
-
type MetalTransaction = z.infer<typeof metalTransactionParser>;
|
|
4861
|
+
declare type MetalTransaction = z.infer<typeof metalTransactionParser>;
|
|
4862
4862
|
|
|
4863
4863
|
declare const otcOrderResponseParser: z.ZodObject<{
|
|
4864
4864
|
success: z.ZodBoolean;
|
|
@@ -4873,7 +4873,7 @@ declare const otcOrderResponseParser: z.ZodObject<{
|
|
|
4873
4873
|
transaction_id: string;
|
|
4874
4874
|
errormsg?: string | undefined;
|
|
4875
4875
|
}>;
|
|
4876
|
-
type OtcOrderResponse = z.infer<typeof otcOrderResponseParser>;
|
|
4876
|
+
declare type OtcOrderResponse = z.infer<typeof otcOrderResponseParser>;
|
|
4877
4877
|
declare const otcQuoteBodyParser: z.ZodObject<{
|
|
4878
4878
|
baseAmount: z.ZodNumber;
|
|
4879
4879
|
baseSymbol: z.ZodString;
|
|
@@ -4887,7 +4887,7 @@ declare const otcQuoteBodyParser: z.ZodObject<{
|
|
|
4887
4887
|
baseSymbol: string;
|
|
4888
4888
|
quoteSymbol: string;
|
|
4889
4889
|
}>;
|
|
4890
|
-
type OtcQuoteBody = z.infer<typeof otcQuoteBodyParser>;
|
|
4890
|
+
declare type OtcQuoteBody = z.infer<typeof otcQuoteBodyParser>;
|
|
4891
4891
|
declare const otcQuoteResponseParser: z.ZodObject<{
|
|
4892
4892
|
success: z.ZodBoolean;
|
|
4893
4893
|
token: z.ZodString;
|
|
@@ -4904,7 +4904,7 @@ declare const otcQuoteResponseParser: z.ZodObject<{
|
|
|
4904
4904
|
qty: number;
|
|
4905
4905
|
errormsg?: string | undefined;
|
|
4906
4906
|
}>;
|
|
4907
|
-
type OtcQuoteResponse = z.infer<typeof otcQuoteResponseParser>;
|
|
4907
|
+
declare type OtcQuoteResponse = z.infer<typeof otcQuoteResponseParser>;
|
|
4908
4908
|
|
|
4909
4909
|
declare class INode<T> {
|
|
4910
4910
|
key: string;
|
|
@@ -4958,7 +4958,7 @@ interface RawPool {
|
|
|
4958
4958
|
active: boolean;
|
|
4959
4959
|
amplifier: number;
|
|
4960
4960
|
}
|
|
4961
|
-
interface Pool extends Omit<RawPool,
|
|
4961
|
+
interface Pool extends Omit<RawPool, "pool1" | "pool2"> {
|
|
4962
4962
|
lt_symbol: string;
|
|
4963
4963
|
creator: string;
|
|
4964
4964
|
memo: string;
|
|
@@ -4973,13 +4973,13 @@ interface Pool extends Omit<RawPool, 'pool1' | 'pool2'> {
|
|
|
4973
4973
|
liquidityUsd: number;
|
|
4974
4974
|
liquidityApr: number;
|
|
4975
4975
|
}
|
|
4976
|
-
type ExtendedToken = Coin & ExtendedAsset$1 & {
|
|
4976
|
+
declare type ExtendedToken = Coin & ExtendedAsset$1 & {
|
|
4977
4977
|
key: string;
|
|
4978
4978
|
};
|
|
4979
|
-
type ExtendedTokenWithRate = ExtendedToken & {
|
|
4979
|
+
declare type ExtendedTokenWithRate = ExtendedToken & {
|
|
4980
4980
|
rate: number;
|
|
4981
4981
|
};
|
|
4982
|
-
type PoolTable = {
|
|
4982
|
+
declare type PoolTable = {
|
|
4983
4983
|
pool1: ExtendedTokenWithRate;
|
|
4984
4984
|
pool2: ExtendedTokenWithRate;
|
|
4985
4985
|
path: INode<Pool>[];
|
|
@@ -5043,7 +5043,7 @@ declare const withdrawBodyBaseAction: z.ZodObject<{
|
|
|
5043
5043
|
to: "proton.wrap";
|
|
5044
5044
|
};
|
|
5045
5045
|
}>;
|
|
5046
|
-
type WithdrawBodyBaseAction = z.infer<typeof withdrawBodyBaseAction>;
|
|
5046
|
+
declare type WithdrawBodyBaseAction = z.infer<typeof withdrawBodyBaseAction>;
|
|
5047
5047
|
declare const withdrawBodyParser: z.ZodObject<{
|
|
5048
5048
|
signer: z.ZodObject<{
|
|
5049
5049
|
actor: z.ZodString;
|
|
@@ -6009,7 +6009,7 @@ declare const withdrawBodyParser: z.ZodObject<{
|
|
|
6009
6009
|
quoteId: string;
|
|
6010
6010
|
provider?: string | undefined;
|
|
6011
6011
|
}>;
|
|
6012
|
-
type WithdrawBody = z.infer<typeof withdrawBodyParser>;
|
|
6012
|
+
declare type WithdrawBody = z.infer<typeof withdrawBodyParser>;
|
|
6013
6013
|
declare const withdrawMetalResponseParser: z.ZodObject<{
|
|
6014
6014
|
success: z.ZodBoolean;
|
|
6015
6015
|
id: z.ZodString;
|
|
@@ -6020,7 +6020,7 @@ declare const withdrawMetalResponseParser: z.ZodObject<{
|
|
|
6020
6020
|
id: string;
|
|
6021
6021
|
success: boolean;
|
|
6022
6022
|
}>;
|
|
6023
|
-
type WithdrawMetalResponse = z.infer<typeof withdrawMetalResponseParser>;
|
|
6023
|
+
declare type WithdrawMetalResponse = z.infer<typeof withdrawMetalResponseParser>;
|
|
6024
6024
|
declare const withdrawalFeeQuoteParser: z.ZodObject<{
|
|
6025
6025
|
quoteId: z.ZodString;
|
|
6026
6026
|
estimatedFee: z.ZodString;
|
|
@@ -6037,7 +6037,7 @@ declare const withdrawalFeeQuoteParser: z.ZodObject<{
|
|
|
6037
6037
|
estimatedFee: string;
|
|
6038
6038
|
currency: string;
|
|
6039
6039
|
}>;
|
|
6040
|
-
type WithdrawalFeeQuote = z.infer<typeof withdrawalFeeQuoteParser>;
|
|
6040
|
+
declare type WithdrawalFeeQuote = z.infer<typeof withdrawalFeeQuoteParser>;
|
|
6041
6041
|
|
|
6042
6042
|
declare const withdrawHistoryMetalSwapParser: z.ZodObject<{
|
|
6043
6043
|
id: z.ZodString;
|
|
@@ -6067,7 +6067,7 @@ declare const withdrawHistoryMetalSwapParser: z.ZodObject<{
|
|
|
6067
6067
|
withdrawalAddress: string;
|
|
6068
6068
|
withdrawalHash?: string | undefined;
|
|
6069
6069
|
}>;
|
|
6070
|
-
type WithdrawHistoryMetalSwap = z.infer<typeof withdrawHistoryMetalSwapParser>;
|
|
6070
|
+
declare type WithdrawHistoryMetalSwap = z.infer<typeof withdrawHistoryMetalSwapParser>;
|
|
6071
6071
|
declare const withdrawHistoryMetalResponseParser: z.ZodObject<{
|
|
6072
6072
|
swaps: z.ZodArray<z.ZodObject<{
|
|
6073
6073
|
id: z.ZodString;
|
|
@@ -6135,7 +6135,7 @@ declare const withdrawHistoryMetalResponseParser: z.ZodObject<{
|
|
|
6135
6135
|
totalPages: number;
|
|
6136
6136
|
totalElements: number;
|
|
6137
6137
|
}>;
|
|
6138
|
-
type WithdrawHistoryMetalResponse = z.infer<typeof withdrawHistoryMetalResponseParser>;
|
|
6138
|
+
declare type WithdrawHistoryMetalResponse = z.infer<typeof withdrawHistoryMetalResponseParser>;
|
|
6139
6139
|
|
|
6140
6140
|
declare enum Status {
|
|
6141
6141
|
PENDING = "pending",
|
|
@@ -6180,7 +6180,7 @@ declare const wrapStartParser: z.ZodObject<{
|
|
|
6180
6180
|
txid: string;
|
|
6181
6181
|
deposit_address: string;
|
|
6182
6182
|
}>;
|
|
6183
|
-
type WrapStart = z.infer<typeof wrapStartParser>;
|
|
6183
|
+
declare type WrapStart = z.infer<typeof wrapStartParser>;
|
|
6184
6184
|
declare const wrapSetConfParser: z.ZodObject<{
|
|
6185
6185
|
wrap_hash: z.ZodString;
|
|
6186
6186
|
confirmations: z.ZodNumber;
|
|
@@ -6191,7 +6191,7 @@ declare const wrapSetConfParser: z.ZodObject<{
|
|
|
6191
6191
|
confirmations: number;
|
|
6192
6192
|
wrap_hash: string;
|
|
6193
6193
|
}>;
|
|
6194
|
-
type WrapSetConf = z.infer<typeof wrapSetConfParser>;
|
|
6194
|
+
declare type WrapSetConf = z.infer<typeof wrapSetConfParser>;
|
|
6195
6195
|
declare const wrapParser: z.ZodObject<{
|
|
6196
6196
|
index: z.ZodNumber;
|
|
6197
6197
|
proton_account: z.ZodString;
|
|
@@ -6244,10 +6244,10 @@ declare const wrapParser: z.ZodObject<{
|
|
|
6244
6244
|
proton_account: string;
|
|
6245
6245
|
finish_txid: string;
|
|
6246
6246
|
}>;
|
|
6247
|
-
type Wrap = z.infer<typeof wrapParser>;
|
|
6247
|
+
declare type Wrap = z.infer<typeof wrapParser>;
|
|
6248
6248
|
|
|
6249
6249
|
declare const sortDirectionEnum: z.ZodEnum<["asc", "desc"]>;
|
|
6250
|
-
type SortDirection = z.input<typeof sortDirectionEnum>;
|
|
6250
|
+
declare type SortDirection = z.input<typeof sortDirectionEnum>;
|
|
6251
6251
|
/**
|
|
6252
6252
|
* OHLCV
|
|
6253
6253
|
*/
|
|
@@ -6279,7 +6279,7 @@ declare const ohlcvParser: z.ZodObject<{
|
|
|
6279
6279
|
volume_bid: number;
|
|
6280
6280
|
count: number;
|
|
6281
6281
|
}>;
|
|
6282
|
-
type OHLCV = z.infer<typeof ohlcvParser>;
|
|
6282
|
+
declare type OHLCV = z.infer<typeof ohlcvParser>;
|
|
6283
6283
|
declare const getOhlcvParser: z.ZodObject<{
|
|
6284
6284
|
interval: z.ZodString;
|
|
6285
6285
|
from: z.ZodString;
|
|
@@ -6299,8 +6299,8 @@ declare const getOhlcvParser: z.ZodObject<{
|
|
|
6299
6299
|
interval: string;
|
|
6300
6300
|
limit?: number | undefined;
|
|
6301
6301
|
}>;
|
|
6302
|
-
type GetOHLCV = z.input<typeof getOhlcvParser>;
|
|
6303
|
-
type GetOHLCVParsed = z.output<typeof getOhlcvParser>;
|
|
6302
|
+
declare type GetOHLCV = z.input<typeof getOhlcvParser>;
|
|
6303
|
+
declare type GetOHLCVParsed = z.output<typeof getOhlcvParser>;
|
|
6304
6304
|
declare const getOhlcvResponseParser: z.ZodObject<{
|
|
6305
6305
|
sync: z.ZodNumber;
|
|
6306
6306
|
data: z.ZodArray<z.ZodObject<{
|
|
@@ -6356,7 +6356,7 @@ declare const getOhlcvResponseParser: z.ZodObject<{
|
|
|
6356
6356
|
}[];
|
|
6357
6357
|
sync: number;
|
|
6358
6358
|
}>;
|
|
6359
|
-
type GetOHLCVResponse = z.infer<typeof getOhlcvResponseParser>;
|
|
6359
|
+
declare type GetOHLCVResponse = z.infer<typeof getOhlcvResponseParser>;
|
|
6360
6360
|
/**
|
|
6361
6361
|
* Order History
|
|
6362
6362
|
*/
|
|
@@ -6418,7 +6418,7 @@ declare const openOrderParser: z.ZodObject<{
|
|
|
6418
6418
|
filled_amount?: number | undefined;
|
|
6419
6419
|
filled_fee?: number | undefined;
|
|
6420
6420
|
}>;
|
|
6421
|
-
type OpenOrder = z.infer<typeof openOrderParser>;
|
|
6421
|
+
declare type OpenOrder = z.infer<typeof openOrderParser>;
|
|
6422
6422
|
declare const orderLogParser: z.ZodObject<{
|
|
6423
6423
|
seq: z.ZodString;
|
|
6424
6424
|
block_num: z.ZodString;
|
|
@@ -6468,7 +6468,7 @@ declare const orderLogParser: z.ZodObject<{
|
|
|
6468
6468
|
quantity_change: string;
|
|
6469
6469
|
trx_id: string;
|
|
6470
6470
|
}>;
|
|
6471
|
-
type OrderLog = z.infer<typeof orderLogParser>;
|
|
6471
|
+
declare type OrderLog = z.infer<typeof orderLogParser>;
|
|
6472
6472
|
declare const orderHistoryParser: z.ZodObject<{
|
|
6473
6473
|
block_num: z.ZodString;
|
|
6474
6474
|
block_time: z.ZodString;
|
|
@@ -6533,7 +6533,7 @@ declare const orderHistoryParser: z.ZodObject<{
|
|
|
6533
6533
|
filled_amount?: number | undefined;
|
|
6534
6534
|
filled_fee?: number | undefined;
|
|
6535
6535
|
}>;
|
|
6536
|
-
type OrderHistory = z.infer<typeof orderHistoryParser>;
|
|
6536
|
+
declare type OrderHistory = z.infer<typeof orderHistoryParser>;
|
|
6537
6537
|
declare const getOpenOrdersParser: z.ZodObject<{
|
|
6538
6538
|
account: z.ZodString;
|
|
6539
6539
|
symbol: z.ZodOptional<z.ZodString>;
|
|
@@ -6553,8 +6553,8 @@ declare const getOpenOrdersParser: z.ZodObject<{
|
|
|
6553
6553
|
offset?: number | undefined;
|
|
6554
6554
|
ordinal_order_ids?: string | string[] | undefined;
|
|
6555
6555
|
}>;
|
|
6556
|
-
type GetOpenOrders = z.input<typeof getOpenOrdersParser>;
|
|
6557
|
-
type GetOpenOrdersParsed = z.output<typeof getOpenOrdersParser>;
|
|
6556
|
+
declare type GetOpenOrders = z.input<typeof getOpenOrdersParser>;
|
|
6557
|
+
declare type GetOpenOrdersParsed = z.output<typeof getOpenOrdersParser>;
|
|
6558
6558
|
declare const getOpenOrdersResponseParser: z.ZodObject<{
|
|
6559
6559
|
sync: z.ZodNumber;
|
|
6560
6560
|
count: z.ZodNumber;
|
|
@@ -6663,7 +6663,7 @@ declare const getOpenOrdersResponseParser: z.ZodObject<{
|
|
|
6663
6663
|
count: number;
|
|
6664
6664
|
sync: number;
|
|
6665
6665
|
}>;
|
|
6666
|
-
type GetOpenOrdersResponse = z.infer<typeof getOpenOrdersResponseParser>;
|
|
6666
|
+
declare type GetOpenOrdersResponse = z.infer<typeof getOpenOrdersResponseParser>;
|
|
6667
6667
|
declare const getOrderHistoryParser: z.ZodObject<{
|
|
6668
6668
|
account: z.ZodString;
|
|
6669
6669
|
symbol: z.ZodOptional<z.ZodString>;
|
|
@@ -6689,8 +6689,8 @@ declare const getOrderHistoryParser: z.ZodObject<{
|
|
|
6689
6689
|
offset?: number | undefined;
|
|
6690
6690
|
ordinal_order_ids?: string | string[] | undefined;
|
|
6691
6691
|
}>;
|
|
6692
|
-
type GetOrderHistory = z.input<typeof getOrderHistoryParser>;
|
|
6693
|
-
type GetOrderHistoryParsed = z.output<typeof getOrderHistoryParser>;
|
|
6692
|
+
declare type GetOrderHistory = z.input<typeof getOrderHistoryParser>;
|
|
6693
|
+
declare type GetOrderHistoryParsed = z.output<typeof getOrderHistoryParser>;
|
|
6694
6694
|
declare const getOrderHistoryResponseParser: z.ZodObject<{
|
|
6695
6695
|
sync: z.ZodNumber;
|
|
6696
6696
|
count: z.ZodNumber;
|
|
@@ -6809,7 +6809,7 @@ declare const getOrderHistoryResponseParser: z.ZodObject<{
|
|
|
6809
6809
|
count: number;
|
|
6810
6810
|
sync: number;
|
|
6811
6811
|
}>;
|
|
6812
|
-
type GetOrderHistoryResponse = z.infer<typeof getOrderHistoryResponseParser>;
|
|
6812
|
+
declare type GetOrderHistoryResponse = z.infer<typeof getOrderHistoryResponseParser>;
|
|
6813
6813
|
declare const getOrderLifecycleParser: z.ZodObject<{
|
|
6814
6814
|
order_id: z.ZodOptional<z.ZodString>;
|
|
6815
6815
|
ordinal_order_id: z.ZodOptional<z.ZodString>;
|
|
@@ -6820,8 +6820,8 @@ declare const getOrderLifecycleParser: z.ZodObject<{
|
|
|
6820
6820
|
order_id?: string | undefined;
|
|
6821
6821
|
ordinal_order_id?: string | undefined;
|
|
6822
6822
|
}>;
|
|
6823
|
-
type GetOrderLifecycle = z.input<typeof getOrderLifecycleParser>;
|
|
6824
|
-
type GetOrderLifecycleParsed = z.output<typeof getOrderLifecycleParser>;
|
|
6823
|
+
declare type GetOrderLifecycle = z.input<typeof getOrderLifecycleParser>;
|
|
6824
|
+
declare type GetOrderLifecycleParsed = z.output<typeof getOrderLifecycleParser>;
|
|
6825
6825
|
declare const getOrderLifecycleResponseParser: z.ZodObject<{
|
|
6826
6826
|
sync: z.ZodNumber;
|
|
6827
6827
|
data: z.ZodArray<z.ZodObject<{
|
|
@@ -6937,7 +6937,7 @@ declare const getOrderLifecycleResponseParser: z.ZodObject<{
|
|
|
6937
6937
|
}[];
|
|
6938
6938
|
sync: number;
|
|
6939
6939
|
}>;
|
|
6940
|
-
type GetOrderLifecycleResponse = z.infer<typeof getOrderLifecycleResponseParser>;
|
|
6940
|
+
declare type GetOrderLifecycleResponse = z.infer<typeof getOrderLifecycleResponseParser>;
|
|
6941
6941
|
/**
|
|
6942
6942
|
* Submit Order
|
|
6943
6943
|
*/
|
|
@@ -6951,7 +6951,7 @@ declare const postSubmitOrderParser: z.ZodObject<{
|
|
|
6951
6951
|
signatures: string[];
|
|
6952
6952
|
serialized_tx_hex: string;
|
|
6953
6953
|
}>;
|
|
6954
|
-
type PostSubmitOrder = z.infer<typeof postSubmitOrderParser>;
|
|
6954
|
+
declare type PostSubmitOrder = z.infer<typeof postSubmitOrderParser>;
|
|
6955
6955
|
declare const postSubmitOrderResponseParser: z.ZodObject<{
|
|
6956
6956
|
sync: z.ZodNumber;
|
|
6957
6957
|
data: z.ZodObject<{
|
|
@@ -7010,7 +7010,7 @@ declare const postSubmitOrderResponseParser: z.ZodObject<{
|
|
|
7010
7010
|
};
|
|
7011
7011
|
sync: number;
|
|
7012
7012
|
}>;
|
|
7013
|
-
type PostSubmitOrderResponse = z.infer<typeof postSubmitOrderResponseParser>;
|
|
7013
|
+
declare type PostSubmitOrderResponse = z.infer<typeof postSubmitOrderResponseParser>;
|
|
7014
7014
|
/**
|
|
7015
7015
|
* Serialize Order
|
|
7016
7016
|
*/
|
|
@@ -7093,7 +7093,7 @@ declare const postSerializeOrderParser: z.ZodObject<{
|
|
|
7093
7093
|
}[];
|
|
7094
7094
|
};
|
|
7095
7095
|
}>;
|
|
7096
|
-
type PostSerializeOrder = z.infer<typeof postSerializeOrderParser>;
|
|
7096
|
+
declare type PostSerializeOrder = z.infer<typeof postSerializeOrderParser>;
|
|
7097
7097
|
declare const postSerializeOrderResponseParser: z.ZodObject<{
|
|
7098
7098
|
data: z.ZodObject<{
|
|
7099
7099
|
serialized_tx_hex: z.ZodString;
|
|
@@ -7116,7 +7116,7 @@ declare const postSerializeOrderResponseParser: z.ZodObject<{
|
|
|
7116
7116
|
digest_hex: string;
|
|
7117
7117
|
};
|
|
7118
7118
|
}>;
|
|
7119
|
-
type PostSerializeOrderResponse = z.infer<typeof postSerializeOrderResponseParser>;
|
|
7119
|
+
declare type PostSerializeOrderResponse = z.infer<typeof postSerializeOrderResponseParser>;
|
|
7120
7120
|
/**
|
|
7121
7121
|
* Depth
|
|
7122
7122
|
*/
|
|
@@ -7136,7 +7136,7 @@ declare const depthParser: z.ZodObject<{
|
|
|
7136
7136
|
ask: number;
|
|
7137
7137
|
bid: number;
|
|
7138
7138
|
}>;
|
|
7139
|
-
type Depth = z.infer<typeof depthParser>;
|
|
7139
|
+
declare type Depth = z.infer<typeof depthParser>;
|
|
7140
7140
|
declare const getDepthParser: z.ZodObject<{
|
|
7141
7141
|
symbol: z.ZodString;
|
|
7142
7142
|
step: z.ZodNumber;
|
|
@@ -7150,8 +7150,8 @@ declare const getDepthParser: z.ZodObject<{
|
|
|
7150
7150
|
step: number;
|
|
7151
7151
|
limit?: number | undefined;
|
|
7152
7152
|
}>;
|
|
7153
|
-
type GetDepth = z.input<typeof getDepthParser>;
|
|
7154
|
-
type GetDepthParsed = z.output<typeof getDepthParser>;
|
|
7153
|
+
declare type GetDepth = z.input<typeof getDepthParser>;
|
|
7154
|
+
declare type GetDepthParsed = z.output<typeof getDepthParser>;
|
|
7155
7155
|
declare const getDepthResponseParser: z.ZodObject<{
|
|
7156
7156
|
sync: z.ZodNumber;
|
|
7157
7157
|
data: z.ZodObject<{
|
|
@@ -7247,7 +7247,7 @@ declare const getDepthResponseParser: z.ZodObject<{
|
|
|
7247
7247
|
};
|
|
7248
7248
|
sync: number;
|
|
7249
7249
|
}>;
|
|
7250
|
-
type GetDepthResponse = z.infer<typeof getDepthResponseParser>;
|
|
7250
|
+
declare type GetDepthResponse = z.infer<typeof getDepthResponseParser>;
|
|
7251
7251
|
/**
|
|
7252
7252
|
* Daily
|
|
7253
7253
|
*/
|
|
@@ -7282,7 +7282,7 @@ declare const dailyParser: z.ZodObject<{
|
|
|
7282
7282
|
volume_ask: number;
|
|
7283
7283
|
change_percentage: number;
|
|
7284
7284
|
}>;
|
|
7285
|
-
type Daily = z.infer<typeof dailyParser>;
|
|
7285
|
+
declare type Daily = z.infer<typeof dailyParser>;
|
|
7286
7286
|
declare const getDailyResponseParser: z.ZodObject<{
|
|
7287
7287
|
sync: z.ZodNumber;
|
|
7288
7288
|
data: z.ZodArray<z.ZodObject<{
|
|
@@ -7343,7 +7343,7 @@ declare const getDailyResponseParser: z.ZodObject<{
|
|
|
7343
7343
|
}[];
|
|
7344
7344
|
sync: number;
|
|
7345
7345
|
}>;
|
|
7346
|
-
type GetDailyResponse = z.infer<typeof getDailyResponseParser>;
|
|
7346
|
+
declare type GetDailyResponse = z.infer<typeof getDailyResponseParser>;
|
|
7347
7347
|
/**
|
|
7348
7348
|
* Markets
|
|
7349
7349
|
*/
|
|
@@ -7428,7 +7428,7 @@ declare const marketParser: z.ZodObject<{
|
|
|
7428
7428
|
multiplier: number;
|
|
7429
7429
|
};
|
|
7430
7430
|
}>;
|
|
7431
|
-
type Market = z.infer<typeof marketParser>;
|
|
7431
|
+
declare type Market = z.infer<typeof marketParser>;
|
|
7432
7432
|
declare const dbMarketParser: z.ZodObject<{
|
|
7433
7433
|
market_id: z.ZodNumber;
|
|
7434
7434
|
order_min: z.ZodString;
|
|
@@ -7469,7 +7469,7 @@ declare const dbMarketParser: z.ZodObject<{
|
|
|
7469
7469
|
ask_token_s: string;
|
|
7470
7470
|
ask_token_m: string;
|
|
7471
7471
|
}>;
|
|
7472
|
-
type DbMarket = z.infer<typeof dbMarketParser>;
|
|
7472
|
+
declare type DbMarket = z.infer<typeof dbMarketParser>;
|
|
7473
7473
|
declare const getMarketsResponseParser: z.ZodObject<{
|
|
7474
7474
|
sync: z.ZodNumber;
|
|
7475
7475
|
data: z.ZodArray<z.ZodObject<{
|
|
@@ -7600,7 +7600,7 @@ declare const getMarketsResponseParser: z.ZodObject<{
|
|
|
7600
7600
|
}[];
|
|
7601
7601
|
sync: number;
|
|
7602
7602
|
}>;
|
|
7603
|
-
type GetMarketsResponse = z.infer<typeof getMarketsResponseParser>;
|
|
7603
|
+
declare type GetMarketsResponse = z.infer<typeof getMarketsResponseParser>;
|
|
7604
7604
|
/**
|
|
7605
7605
|
* Trades
|
|
7606
7606
|
*/
|
|
@@ -7671,7 +7671,7 @@ declare const tradeLogParser: z.ZodObject<{
|
|
|
7671
7671
|
ask_referrer: string;
|
|
7672
7672
|
ask_referrer_fee: string;
|
|
7673
7673
|
}>;
|
|
7674
|
-
type TradeLog = z.infer<typeof tradeLogParser>;
|
|
7674
|
+
declare type TradeLog = z.infer<typeof tradeLogParser>;
|
|
7675
7675
|
declare const tradeParser: z.ZodObject<{
|
|
7676
7676
|
block_num: z.ZodString;
|
|
7677
7677
|
block_time: z.ZodString;
|
|
@@ -7745,7 +7745,7 @@ declare const tradeParser: z.ZodObject<{
|
|
|
7745
7745
|
bid_user_ordinal_order_id: string;
|
|
7746
7746
|
ask_user_ordinal_order_id: string;
|
|
7747
7747
|
}>;
|
|
7748
|
-
type Trade = z.infer<typeof tradeParser>;
|
|
7748
|
+
declare type Trade = z.infer<typeof tradeParser>;
|
|
7749
7749
|
declare const getTradesParser: z.ZodObject<{
|
|
7750
7750
|
symbol: z.ZodString;
|
|
7751
7751
|
offset: z.ZodDefault<z.ZodNumber>;
|
|
@@ -7759,8 +7759,8 @@ declare const getTradesParser: z.ZodObject<{
|
|
|
7759
7759
|
limit?: number | undefined;
|
|
7760
7760
|
offset?: number | undefined;
|
|
7761
7761
|
}>;
|
|
7762
|
-
type GetTrades = z.input<typeof getTradesParser>;
|
|
7763
|
-
type GetTradesParsed = z.output<typeof getTradesParser>;
|
|
7762
|
+
declare type GetTrades = z.input<typeof getTradesParser>;
|
|
7763
|
+
declare type GetTradesParsed = z.output<typeof getTradesParser>;
|
|
7764
7764
|
declare const getTradesResponseParser: z.ZodObject<{
|
|
7765
7765
|
sync: z.ZodNumber;
|
|
7766
7766
|
data: z.ZodArray<z.ZodObject<{
|
|
@@ -7891,7 +7891,7 @@ declare const getTradesResponseParser: z.ZodObject<{
|
|
|
7891
7891
|
}[];
|
|
7892
7892
|
sync: number;
|
|
7893
7893
|
}>;
|
|
7894
|
-
type GetTradesResponse = z.infer<typeof getTradesResponseParser>;
|
|
7894
|
+
declare type GetTradesResponse = z.infer<typeof getTradesResponseParser>;
|
|
7895
7895
|
declare const getTradeHistoryParser: z.ZodObject<{
|
|
7896
7896
|
account: z.ZodString;
|
|
7897
7897
|
symbol: z.ZodOptional<z.ZodString>;
|
|
@@ -7911,8 +7911,8 @@ declare const getTradeHistoryParser: z.ZodObject<{
|
|
|
7911
7911
|
offset?: number | undefined;
|
|
7912
7912
|
ordinal_order_ids?: string | string[] | undefined;
|
|
7913
7913
|
}>;
|
|
7914
|
-
type GetTradeHistory = z.input<typeof getTradeHistoryParser>;
|
|
7915
|
-
type GetTradeHistoryParsed = z.output<typeof getTradeHistoryParser>;
|
|
7914
|
+
declare type GetTradeHistory = z.input<typeof getTradeHistoryParser>;
|
|
7915
|
+
declare type GetTradeHistoryParsed = z.output<typeof getTradeHistoryParser>;
|
|
7916
7916
|
declare const getTradeHistoryResponseParser: z.ZodObject<{
|
|
7917
7917
|
sync: z.ZodNumber;
|
|
7918
7918
|
count: z.ZodNumber;
|
|
@@ -8046,7 +8046,7 @@ declare const getTradeHistoryResponseParser: z.ZodObject<{
|
|
|
8046
8046
|
count: number;
|
|
8047
8047
|
sync: number;
|
|
8048
8048
|
}>;
|
|
8049
|
-
type GetTradeHistoryResponse = z.infer<typeof getTradeHistoryResponseParser>;
|
|
8049
|
+
declare type GetTradeHistoryResponse = z.infer<typeof getTradeHistoryResponseParser>;
|
|
8050
8050
|
/**
|
|
8051
8051
|
* SYNC
|
|
8052
8052
|
*/
|
|
@@ -8072,7 +8072,7 @@ declare const syncParser: z.ZodObject<{
|
|
|
8072
8072
|
is_master: number;
|
|
8073
8073
|
last_updated: string;
|
|
8074
8074
|
}>;
|
|
8075
|
-
type Sync = z.infer<typeof syncParser>;
|
|
8075
|
+
declare type Sync = z.infer<typeof syncParser>;
|
|
8076
8076
|
declare const getSyncResponseParser: z.ZodObject<{
|
|
8077
8077
|
dbSecondsBehind: z.ZodNumber;
|
|
8078
8078
|
chronicleSecondsBehind: z.ZodNumber;
|
|
@@ -8086,7 +8086,7 @@ declare const getSyncResponseParser: z.ZodObject<{
|
|
|
8086
8086
|
chronicleSecondsBehind: number;
|
|
8087
8087
|
maxSecondsBehind: number;
|
|
8088
8088
|
}>;
|
|
8089
|
-
type GetSyncResponse = z.infer<typeof getSyncResponseParser>;
|
|
8089
|
+
declare type GetSyncResponse = z.infer<typeof getSyncResponseParser>;
|
|
8090
8090
|
/**
|
|
8091
8091
|
* Referral Totals
|
|
8092
8092
|
*/
|
|
@@ -8112,7 +8112,7 @@ declare const refferalTotalParser: z.ZodObject<{
|
|
|
8112
8112
|
ask_fee: number;
|
|
8113
8113
|
referrer: string;
|
|
8114
8114
|
}>;
|
|
8115
|
-
type ReferralTotal = z.infer<typeof refferalTotalParser>;
|
|
8115
|
+
declare type ReferralTotal = z.infer<typeof refferalTotalParser>;
|
|
8116
8116
|
declare const getReferralTotalsParser: z.ZodObject<{
|
|
8117
8117
|
referrer: z.ZodString;
|
|
8118
8118
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -8120,8 +8120,8 @@ declare const getReferralTotalsParser: z.ZodObject<{
|
|
|
8120
8120
|
}, {
|
|
8121
8121
|
referrer: string;
|
|
8122
8122
|
}>;
|
|
8123
|
-
type GetReferralTotals = z.input<typeof getReferralTotalsParser>;
|
|
8124
|
-
type GetReferralTotalsParsed = z.output<typeof getReferralTotalsParser>;
|
|
8123
|
+
declare type GetReferralTotals = z.input<typeof getReferralTotalsParser>;
|
|
8124
|
+
declare type GetReferralTotalsParsed = z.output<typeof getReferralTotalsParser>;
|
|
8125
8125
|
declare const getReferralTotalsResponseParser: z.ZodObject<{
|
|
8126
8126
|
sync: z.ZodNumber;
|
|
8127
8127
|
data: z.ZodArray<z.ZodObject<{
|
|
@@ -8167,7 +8167,7 @@ declare const getReferralTotalsResponseParser: z.ZodObject<{
|
|
|
8167
8167
|
}[];
|
|
8168
8168
|
sync: number;
|
|
8169
8169
|
}>;
|
|
8170
|
-
type GetReferralTotalsResponse = z.infer<typeof getReferralTotalsResponseParser>;
|
|
8170
|
+
declare type GetReferralTotalsResponse = z.infer<typeof getReferralTotalsResponseParser>;
|
|
8171
8171
|
/**
|
|
8172
8172
|
* Referrals
|
|
8173
8173
|
*/
|
|
@@ -8178,7 +8178,7 @@ declare const refferalParser: z.ZodObject<{
|
|
|
8178
8178
|
}, {
|
|
8179
8179
|
referred_user: string;
|
|
8180
8180
|
}>;
|
|
8181
|
-
type Referral = z.infer<typeof refferalParser>;
|
|
8181
|
+
declare type Referral = z.infer<typeof refferalParser>;
|
|
8182
8182
|
declare const getReferralsParser: z.ZodObject<{
|
|
8183
8183
|
referrer: z.ZodString;
|
|
8184
8184
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -8186,8 +8186,8 @@ declare const getReferralsParser: z.ZodObject<{
|
|
|
8186
8186
|
}, {
|
|
8187
8187
|
referrer: string;
|
|
8188
8188
|
}>;
|
|
8189
|
-
type GetReferrals = z.input<typeof getReferralsParser>;
|
|
8190
|
-
type GetReferralsParsed = z.output<typeof getReferralsParser>;
|
|
8189
|
+
declare type GetReferrals = z.input<typeof getReferralsParser>;
|
|
8190
|
+
declare type GetReferralsParsed = z.output<typeof getReferralsParser>;
|
|
8191
8191
|
declare const getReferralsResponseParser: z.ZodObject<{
|
|
8192
8192
|
sync: z.ZodNumber;
|
|
8193
8193
|
data: z.ZodArray<z.ZodObject<{
|
|
@@ -8208,7 +8208,7 @@ declare const getReferralsResponseParser: z.ZodObject<{
|
|
|
8208
8208
|
}[];
|
|
8209
8209
|
sync: number;
|
|
8210
8210
|
}>;
|
|
8211
|
-
type GetReferralsResponse = z.infer<typeof getReferralsResponseParser>;
|
|
8211
|
+
declare type GetReferralsResponse = z.infer<typeof getReferralsResponseParser>;
|
|
8212
8212
|
/**
|
|
8213
8213
|
* Leaderboard
|
|
8214
8214
|
*/
|
|
@@ -8222,7 +8222,7 @@ declare const leaderboardParser: z.ZodObject<{
|
|
|
8222
8222
|
user: string;
|
|
8223
8223
|
total: number;
|
|
8224
8224
|
}>;
|
|
8225
|
-
type Leaderboard = z.infer<typeof leaderboardParser>;
|
|
8225
|
+
declare type Leaderboard = z.infer<typeof leaderboardParser>;
|
|
8226
8226
|
declare const getLeaderboardParser: z.ZodObject<{
|
|
8227
8227
|
market_ids: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodArray<z.ZodNumber, "many">, z.ZodNumber]>, number[], number | number[]>, number[], number | number[]>;
|
|
8228
8228
|
from: z.ZodString;
|
|
@@ -8239,8 +8239,8 @@ declare const getLeaderboardParser: z.ZodObject<{
|
|
|
8239
8239
|
market_ids: number | number[];
|
|
8240
8240
|
exclude_zero_fee?: boolean | "true" | "false" | undefined;
|
|
8241
8241
|
}>;
|
|
8242
|
-
type GetLeaderboard = z.input<typeof getLeaderboardParser>;
|
|
8243
|
-
type GetLeaderboardParsed = z.output<typeof getLeaderboardParser>;
|
|
8242
|
+
declare type GetLeaderboard = z.input<typeof getLeaderboardParser>;
|
|
8243
|
+
declare type GetLeaderboardParsed = z.output<typeof getLeaderboardParser>;
|
|
8244
8244
|
declare const getLeaderboardResponseParser: z.ZodObject<{
|
|
8245
8245
|
sync: z.ZodNumber;
|
|
8246
8246
|
data: z.ZodArray<z.ZodObject<{
|
|
@@ -8266,7 +8266,7 @@ declare const getLeaderboardResponseParser: z.ZodObject<{
|
|
|
8266
8266
|
}[];
|
|
8267
8267
|
sync: number;
|
|
8268
8268
|
}>;
|
|
8269
|
-
type GetLeaderboardResponse = z.infer<typeof getLeaderboardResponseParser>;
|
|
8269
|
+
declare type GetLeaderboardResponse = z.infer<typeof getLeaderboardResponseParser>;
|
|
8270
8270
|
/**
|
|
8271
8271
|
* History Transaction
|
|
8272
8272
|
*/
|
|
@@ -8311,7 +8311,7 @@ declare const historyPartialParser: z.ZodObject<{
|
|
|
8311
8311
|
signatures: string[];
|
|
8312
8312
|
context_free_data: unknown[];
|
|
8313
8313
|
}>;
|
|
8314
|
-
type HistoryPartial = z.infer<typeof historyPartialParser>;
|
|
8314
|
+
declare type HistoryPartial = z.infer<typeof historyPartialParser>;
|
|
8315
8315
|
declare const actParser: z.ZodObject<{
|
|
8316
8316
|
account: z.ZodString;
|
|
8317
8317
|
name: z.ZodString;
|
|
@@ -8343,7 +8343,7 @@ declare const actParser: z.ZodObject<{
|
|
|
8343
8343
|
}[];
|
|
8344
8344
|
data?: any;
|
|
8345
8345
|
}>;
|
|
8346
|
-
type HistoryAct = z.infer<typeof actParser>;
|
|
8346
|
+
declare type HistoryAct = z.infer<typeof actParser>;
|
|
8347
8347
|
declare const receiptParser: z.ZodObject<{
|
|
8348
8348
|
receiver: z.ZodString;
|
|
8349
8349
|
act_digest: z.ZodString;
|
|
@@ -8384,7 +8384,7 @@ declare const receiptParser: z.ZodObject<{
|
|
|
8384
8384
|
code_sequence: string;
|
|
8385
8385
|
abi_sequence: string;
|
|
8386
8386
|
}>;
|
|
8387
|
-
type HistoryReceipt = z.infer<typeof receiptParser>;
|
|
8387
|
+
declare type HistoryReceipt = z.infer<typeof receiptParser>;
|
|
8388
8388
|
declare const actionTraceParser: z.ZodObject<{
|
|
8389
8389
|
action_ordinal: z.ZodString;
|
|
8390
8390
|
creator_action_ordinal: z.ZodString;
|
|
@@ -8547,7 +8547,7 @@ declare const actionTraceParser: z.ZodObject<{
|
|
|
8547
8547
|
error_code: string | null;
|
|
8548
8548
|
return_value: string;
|
|
8549
8549
|
}>;
|
|
8550
|
-
type HistoryActionTrace = z.infer<typeof actionTraceParser>;
|
|
8550
|
+
declare type HistoryActionTrace = z.infer<typeof actionTraceParser>;
|
|
8551
8551
|
declare const traceParser: z.ZodObject<{
|
|
8552
8552
|
id: z.ZodString;
|
|
8553
8553
|
status: z.ZodString;
|
|
@@ -8901,7 +8901,7 @@ declare const traceParser: z.ZodObject<{
|
|
|
8901
8901
|
context_free_data: unknown[];
|
|
8902
8902
|
};
|
|
8903
8903
|
}>;
|
|
8904
|
-
type HistoryTrace = z.infer<typeof traceParser>;
|
|
8904
|
+
declare type HistoryTrace = z.infer<typeof traceParser>;
|
|
8905
8905
|
declare const historyTransactionParser: z.ZodObject<{
|
|
8906
8906
|
seq: z.ZodString;
|
|
8907
8907
|
block_num: z.ZodString;
|
|
@@ -9552,7 +9552,7 @@ declare const historyTransactionParser: z.ZodObject<{
|
|
|
9552
9552
|
block_timestamp: string;
|
|
9553
9553
|
};
|
|
9554
9554
|
}>;
|
|
9555
|
-
type HistoryTransaction = z.infer<typeof historyTransactionParser>;
|
|
9555
|
+
declare type HistoryTransaction = z.infer<typeof historyTransactionParser>;
|
|
9556
9556
|
declare const getHistoryTransactionResponseParser: z.ZodObject<{
|
|
9557
9557
|
data: z.ZodNullable<z.ZodObject<{
|
|
9558
9558
|
seq: z.ZodString;
|
|
@@ -10359,7 +10359,7 @@ declare const getHistoryTransactionResponseParser: z.ZodObject<{
|
|
|
10359
10359
|
};
|
|
10360
10360
|
} | null;
|
|
10361
10361
|
}>;
|
|
10362
|
-
type GetHistoryTransactionResponse = z.input<typeof getHistoryTransactionResponseParser>;
|
|
10362
|
+
declare type GetHistoryTransactionResponse = z.input<typeof getHistoryTransactionResponseParser>;
|
|
10363
10363
|
declare const chronicleTransactionParser: z.ZodObject<{
|
|
10364
10364
|
block_num: z.ZodString;
|
|
10365
10365
|
block_timestamp: z.ZodString;
|
|
@@ -10853,7 +10853,7 @@ declare const chronicleTransactionParser: z.ZodObject<{
|
|
|
10853
10853
|
};
|
|
10854
10854
|
block_timestamp: string;
|
|
10855
10855
|
}>;
|
|
10856
|
-
type ChronicleTransaction = z.infer<typeof chronicleTransactionParser>;
|
|
10856
|
+
declare type ChronicleTransaction = z.infer<typeof chronicleTransactionParser>;
|
|
10857
10857
|
declare const dbHistoryTransactionParser: z.ZodObject<{
|
|
10858
10858
|
seq: z.ZodString;
|
|
10859
10859
|
block_num: z.ZodString;
|
|
@@ -10873,7 +10873,7 @@ declare const dbHistoryTransactionParser: z.ZodObject<{
|
|
|
10873
10873
|
trx_id: string;
|
|
10874
10874
|
trace?: any;
|
|
10875
10875
|
}>;
|
|
10876
|
-
type DbHistoryTransaction = z.infer<typeof dbHistoryTransactionParser>;
|
|
10876
|
+
declare type DbHistoryTransaction = z.infer<typeof dbHistoryTransactionParser>;
|
|
10877
10877
|
/**
|
|
10878
10878
|
* History Actions
|
|
10879
10879
|
*/
|
|
@@ -10905,8 +10905,8 @@ declare const getHistoryActionsParser: z.ZodObject<{
|
|
|
10905
10905
|
date_to?: string | undefined;
|
|
10906
10906
|
direction?: "asc" | "desc" | undefined;
|
|
10907
10907
|
}>;
|
|
10908
|
-
type GetHistoryActions = z.input<typeof getHistoryActionsParser>;
|
|
10909
|
-
type GetHistoryActionsParsed = z.output<typeof getHistoryActionsParser>;
|
|
10908
|
+
declare type GetHistoryActions = z.input<typeof getHistoryActionsParser>;
|
|
10909
|
+
declare type GetHistoryActionsParsed = z.output<typeof getHistoryActionsParser>;
|
|
10910
10910
|
declare const historyActionParser: z.ZodObject<{
|
|
10911
10911
|
block_num: z.ZodNumber;
|
|
10912
10912
|
block_time: z.ZodString;
|
|
@@ -11163,7 +11163,7 @@ declare const historyActionParser: z.ZodObject<{
|
|
|
11163
11163
|
return_value: string;
|
|
11164
11164
|
};
|
|
11165
11165
|
}>;
|
|
11166
|
-
type HistoryAction = z.infer<typeof historyActionParser>;
|
|
11166
|
+
declare type HistoryAction = z.infer<typeof historyActionParser>;
|
|
11167
11167
|
declare const getHistoryActionsResponseParser: z.ZodObject<{
|
|
11168
11168
|
sync: z.ZodNumber;
|
|
11169
11169
|
last_irreversible_block_num: z.ZodNumber;
|
|
@@ -11518,7 +11518,7 @@ declare const getHistoryActionsResponseParser: z.ZodObject<{
|
|
|
11518
11518
|
sync: number;
|
|
11519
11519
|
last_irreversible_block_num: number;
|
|
11520
11520
|
}>;
|
|
11521
|
-
type GetHistoryActionsResponse = z.infer<typeof getHistoryActionsResponseParser>;
|
|
11521
|
+
declare type GetHistoryActionsResponse = z.infer<typeof getHistoryActionsResponseParser>;
|
|
11522
11522
|
/**
|
|
11523
11523
|
* History transfers
|
|
11524
11524
|
*/
|
|
@@ -11565,8 +11565,8 @@ declare const getHistoryTransfersParser: z.ZodObject<{
|
|
|
11565
11565
|
global_seq_from?: string | undefined;
|
|
11566
11566
|
global_seq_to?: string | undefined;
|
|
11567
11567
|
}>;
|
|
11568
|
-
type GetHistoryTransfers = z.input<typeof getHistoryTransfersParser>;
|
|
11569
|
-
type GetHistoryTransfersParsed = z.output<typeof getHistoryTransfersParser>;
|
|
11568
|
+
declare type GetHistoryTransfers = z.input<typeof getHistoryTransfersParser>;
|
|
11569
|
+
declare type GetHistoryTransfersParsed = z.output<typeof getHistoryTransfersParser>;
|
|
11570
11570
|
declare const historyTransferParser: z.ZodObject<{
|
|
11571
11571
|
block_num: z.ZodNumber;
|
|
11572
11572
|
block_time: z.ZodString;
|
|
@@ -11823,7 +11823,7 @@ declare const historyTransferParser: z.ZodObject<{
|
|
|
11823
11823
|
return_value: string;
|
|
11824
11824
|
};
|
|
11825
11825
|
}>;
|
|
11826
|
-
type HistoryTransfer = z.infer<typeof historyTransferParser>;
|
|
11826
|
+
declare type HistoryTransfer = z.infer<typeof historyTransferParser>;
|
|
11827
11827
|
declare const getHistoryTransfersResponseParser: z.ZodObject<{
|
|
11828
11828
|
sync: z.ZodNumber;
|
|
11829
11829
|
last_irreversible_block_num: z.ZodNumber;
|
|
@@ -12178,7 +12178,7 @@ declare const getHistoryTransfersResponseParser: z.ZodObject<{
|
|
|
12178
12178
|
sync: number;
|
|
12179
12179
|
last_irreversible_block_num: number;
|
|
12180
12180
|
}>;
|
|
12181
|
-
type GetHistoryTransfersResponse = z.infer<typeof getHistoryTransfersResponseParser>;
|
|
12181
|
+
declare type GetHistoryTransfersResponse = z.infer<typeof getHistoryTransfersResponseParser>;
|
|
12182
12182
|
/**
|
|
12183
12183
|
* Open orders Balances
|
|
12184
12184
|
*/
|
|
@@ -12201,7 +12201,7 @@ declare const marketOpenOrdersBalanceParser: z.ZodObject<{
|
|
|
12201
12201
|
bid_token_quantity: number;
|
|
12202
12202
|
ask_token_quantity: number;
|
|
12203
12203
|
}>;
|
|
12204
|
-
type MarketOpenOrdersBalance = z.infer<typeof marketOpenOrdersBalanceParser>;
|
|
12204
|
+
declare type MarketOpenOrdersBalance = z.infer<typeof marketOpenOrdersBalanceParser>;
|
|
12205
12205
|
declare const getOpenOrdersBalancesResponseParser: z.ZodObject<{
|
|
12206
12206
|
sync: z.ZodNumber;
|
|
12207
12207
|
data: z.ZodArray<z.ZodObject<{
|
|
@@ -12242,7 +12242,7 @@ declare const getOpenOrdersBalancesResponseParser: z.ZodObject<{
|
|
|
12242
12242
|
}[];
|
|
12243
12243
|
sync: number;
|
|
12244
12244
|
}>;
|
|
12245
|
-
type GetOpenOrdersBalancesResponse = z.infer<typeof getOpenOrdersBalancesResponseParser>;
|
|
12245
|
+
declare type GetOpenOrdersBalancesResponse = z.infer<typeof getOpenOrdersBalancesResponseParser>;
|
|
12246
12246
|
/**
|
|
12247
12247
|
* Basic Types
|
|
12248
12248
|
*/
|
|
@@ -13172,7 +13172,7 @@ declare const loginAccountParamsV3Parser: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
13172
13172
|
email?: string | undefined;
|
|
13173
13173
|
verificationCode?: string | undefined;
|
|
13174
13174
|
}>;
|
|
13175
|
-
type LoginAccountParamsV3 = z.infer<typeof loginAccountParamsV3Parser>;
|
|
13175
|
+
declare type LoginAccountParamsV3 = z.infer<typeof loginAccountParamsV3Parser>;
|
|
13176
13176
|
|
|
13177
13177
|
declare const WRAP_CONTRACT = "proton.wrap";
|
|
13178
13178
|
declare const WRAP_AUTH_ACTION = "generateauth";
|
|
@@ -13260,9 +13260,9 @@ declare const median: (numbers: number[]) => number;
|
|
|
13260
13260
|
*
|
|
13261
13261
|
* result = term - (term * fee)
|
|
13262
13262
|
*/
|
|
13263
|
-
declare const compute_transfer: (pool1:
|
|
13264
|
-
declare const compute_transfer_curve: (reserve_in: number, reserve_out: number, amount_in: number, exchange_fee: number, precision: number, amplifier: number) =>
|
|
13265
|
-
declare const compute_liquidity: (amount_lt:
|
|
13263
|
+
declare const compute_transfer: (pool1: BN.Instance, pool2: BN.Instance, swap: BN.Instance, exchange_fee: number, precision: number) => BN;
|
|
13264
|
+
declare const compute_transfer_curve: (reserve_in: number, reserve_out: number, amount_in: number, exchange_fee: number, precision: number, amplifier: number) => BN;
|
|
13265
|
+
declare const compute_liquidity: (amount_lt: BN.Instance, pool: BN.Instance, lt_supply: BN.Instance, precision: number) => number;
|
|
13266
13266
|
declare const isInputInvalid: (data: string, value: string | number, pool: {
|
|
13267
13267
|
xtokenPrecision: number;
|
|
13268
13268
|
}) => boolean;
|