@dydxprotocol/v4-client-js 1.5.0 → 1.6.0
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/CHANGELOG.md +2 -2
- package/__native__/__ios__/v4-native-client.js +10407 -7511
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/bundle.d.ts +158 -158
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/cosmos/bundle.js +126 -126
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/accountplus/genesis.d.ts +44 -1
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/accountplus/genesis.js +75 -4
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/accountplus/models.d.ts +40 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/accountplus/models.js +81 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/accountplus/params.d.ts +20 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/accountplus/params.js +64 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/accountplus/query.d.ts +85 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/accountplus/query.js +243 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/accountplus/query.lcd.d.ts +11 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/accountplus/query.lcd.js +28 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/accountplus/query.rpc.Query.d.ts +24 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/accountplus/query.rpc.Query.js +70 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/accountplus/tx.d.ts +128 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/accountplus/tx.js +313 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/accountplus/tx.rpc.msg.d.ts +21 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/accountplus/tx.rpc.msg.js +53 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/affiliates/affiliates.d.ts +76 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/affiliates/affiliates.js +197 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/affiliates/genesis.d.ts +17 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/affiliates/genesis.js +64 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/affiliates/query.d.ts +161 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/affiliates/query.js +327 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/affiliates/query.rpc.Query.d.ts +28 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/affiliates/query.rpc.Query.js +79 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/affiliates/tx.d.ts +87 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/affiliates/tx.js +239 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/affiliates/tx.rpc.msg.d.ts +18 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/affiliates/tx.rpc.msg.js +53 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/bundle.d.ts +2929 -1778
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/bundle.js +321 -284
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/clob/order.d.ts +39 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/clob/order.js +71 -2
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/clob/query.d.ts +87 -11
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/clob/query.js +157 -28
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/clob/streaming.d.ts +19 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/clob/streaming.js +73 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/indexer/events/events.d.ts +41 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/indexer/events/events.js +107 -3
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/indexer/protocol/v1/vault.d.ts +17 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/indexer/protocol/v1/vault.js +62 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/lcd.d.ts +2 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/lcd.js +7 -1
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/listing/params.d.ts +25 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/listing/params.js +80 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/listing/query.d.ts +25 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/listing/query.js +64 -2
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/listing/query.lcd.d.ts +9 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/listing/query.lcd.js +16 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/listing/query.rpc.Query.d.ts +5 -1
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/listing/query.rpc.Query.js +10 -1
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/listing/tx.d.ts +81 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/listing/tx.js +144 -2
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/listing/tx.rpc.msg.d.ts +7 -1
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/listing/tx.rpc.msg.js +13 -1
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/revshare/revshare.d.ts +37 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/revshare/revshare.js +82 -2
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/revshare/tx.d.ts +28 -1
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/revshare/tx.js +72 -2
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/revshare/tx.rpc.msg.d.ts +4 -1
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/revshare/tx.rpc.msg.js +7 -1
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/rpc.query.d.ts +17 -1
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/rpc.query.js +3 -1
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/rpc.tx.d.ts +2 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/rpc.tx.js +3 -1
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/stats/stats.d.ts +20 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/stats/stats.js +46 -2
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/subaccounts/streaming.d.ts +86 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/subaccounts/streaming.js +178 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/vault/genesis.d.ts +69 -8
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/vault/genesis.js +153 -15
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/vault/params.d.ts +31 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/vault/params.js +82 -2
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/vault/query.d.ts +214 -26
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/vault/query.js +385 -37
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/vault/query.lcd.d.ts +6 -2
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/vault/query.lcd.js +37 -5
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/vault/query.rpc.Query.d.ts +21 -5
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/vault/query.rpc.Query.js +46 -8
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/vault/share.d.ts +44 -4
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/vault/share.js +90 -2
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/vault/tx.d.ts +230 -45
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/vault/tx.js +476 -37
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/vault/tx.rpc.msg.d.ts +25 -7
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/vault/tx.rpc.msg.js +41 -11
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/vault/vault.d.ts +20 -0
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/dydxprotocol/vault/vault.js +63 -2
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/gogoproto/bundle.js +2 -2
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/google/bundle.d.ts +174 -174
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/google/bundle.js +12 -12
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/tendermint/bundle.d.ts +365 -365
- package/build/node_modules/@dydxprotocol/v4-proto/src/codegen/tendermint/bundle.js +22 -22
- package/build/src/clients/composite-client.d.ts +11 -7
- package/build/src/clients/composite-client.js +23 -9
- package/build/src/clients/constants.d.ts +3 -0
- package/build/src/clients/constants.js +7 -2
- package/build/src/clients/helpers/chain-helpers.d.ts +1 -0
- package/build/src/clients/helpers/chain-helpers.js +11 -3
- package/build/src/clients/lib/registry.js +5 -1
- package/build/src/clients/modules/composer.d.ts +2 -0
- package/build/src/clients/modules/composer.js +31 -1
- package/build/src/clients/modules/get.d.ts +3 -1
- package/build/src/clients/modules/get.js +22 -4
- package/build/src/clients/modules/post.d.ts +4 -0
- package/build/src/clients/modules/post.js +16 -1
- package/build/src/clients/modules/proto-includes.d.ts +1 -0
- package/build/src/clients/modules/proto-includes.js +3 -2
- package/build/src/lib/helpers.d.ts +1 -0
- package/build/src/lib/helpers.js +11 -2
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/clients/composite-client.ts +81 -29
- package/src/clients/constants.ts +7 -2
- package/src/clients/helpers/chain-helpers.ts +12 -2
- package/src/clients/lib/registry.ts +9 -0
- package/src/clients/modules/composer.ts +50 -0
- package/src/clients/modules/get.ts +45 -4
- package/src/clients/modules/post.ts +55 -0
- package/src/clients/modules/proto-includes.ts +1 -0
- package/src/lib/helpers.ts +10 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { VaultType, VaultId, VaultIdSDKType } from "./vault";
|
|
2
2
|
import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../cosmos/base/query/v1beta1/pagination";
|
|
3
|
-
import {
|
|
3
|
+
import { NumShares, NumSharesSDKType, ShareUnlock, ShareUnlockSDKType, OwnerShare, OwnerShareSDKType } from "./share";
|
|
4
|
+
import { Params, ParamsSDKType, QuotingParams, QuotingParamsSDKType, OperatorParams, OperatorParamsSDKType, VaultParams, VaultParamsSDKType } from "./params";
|
|
4
5
|
import { SubaccountId, SubaccountIdSDKType } from "../subaccounts/subaccount";
|
|
5
|
-
import { NumShares, NumSharesSDKType, OwnerShare, OwnerShareSDKType } from "./share";
|
|
6
6
|
import * as _m0 from "protobufjs/minimal";
|
|
7
7
|
import { DeepPartial } from "../../helpers";
|
|
8
8
|
/** QueryParamsRequest is a request type for the Params RPC method. */
|
|
@@ -17,12 +17,14 @@ export interface QueryParamsResponse {
|
|
|
17
17
|
/** @deprecated */
|
|
18
18
|
params?: Params;
|
|
19
19
|
defaultQuotingParams?: QuotingParams;
|
|
20
|
+
operatorParams?: OperatorParams;
|
|
20
21
|
}
|
|
21
22
|
/** QueryParamsResponse is a response type for the Params RPC method. */
|
|
22
23
|
export interface QueryParamsResponseSDKType {
|
|
23
24
|
/** @deprecated */
|
|
24
25
|
params?: ParamsSDKType;
|
|
25
26
|
default_quoting_params?: QuotingParamsSDKType;
|
|
27
|
+
operator_params?: OperatorParamsSDKType;
|
|
26
28
|
}
|
|
27
29
|
/** QueryVaultRequest is a request type for the Vault RPC method. */
|
|
28
30
|
export interface QueryVaultRequest {
|
|
@@ -40,8 +42,8 @@ export interface QueryVaultResponse {
|
|
|
40
42
|
subaccountId?: SubaccountId;
|
|
41
43
|
equity: Uint8Array;
|
|
42
44
|
inventory: Uint8Array;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
+
vaultParams?: VaultParams;
|
|
46
|
+
mostRecentClientIds: number[];
|
|
45
47
|
}
|
|
46
48
|
/** QueryVaultResponse is a response type for the Vault RPC method. */
|
|
47
49
|
export interface QueryVaultResponseSDKType {
|
|
@@ -49,8 +51,8 @@ export interface QueryVaultResponseSDKType {
|
|
|
49
51
|
subaccount_id?: SubaccountIdSDKType;
|
|
50
52
|
equity: Uint8Array;
|
|
51
53
|
inventory: Uint8Array;
|
|
52
|
-
|
|
53
|
-
|
|
54
|
+
vault_params?: VaultParamsSDKType;
|
|
55
|
+
most_recent_client_ids: number[];
|
|
54
56
|
}
|
|
55
57
|
/** QueryAllVaultsRequest is a request type for the AllVaults RPC method. */
|
|
56
58
|
export interface QueryAllVaultsRequest {
|
|
@@ -70,28 +72,174 @@ export interface QueryAllVaultsResponseSDKType {
|
|
|
70
72
|
vaults: QueryVaultResponseSDKType[];
|
|
71
73
|
pagination?: PageResponseSDKType;
|
|
72
74
|
}
|
|
73
|
-
/**
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
/**
|
|
76
|
+
* QueryMegavaultTotalSharesRequest is a request type for the
|
|
77
|
+
* MegavaultTotalShares RPC method.
|
|
78
|
+
*/
|
|
79
|
+
export interface QueryMegavaultTotalSharesRequest {
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* QueryMegavaultTotalSharesRequest is a request type for the
|
|
83
|
+
* MegavaultTotalShares RPC method.
|
|
84
|
+
*/
|
|
85
|
+
export interface QueryMegavaultTotalSharesRequestSDKType {
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* QueryMegavaultTotalSharesResponse is a response type for the
|
|
89
|
+
* MegavaultTotalShares RPC method.
|
|
90
|
+
*/
|
|
91
|
+
export interface QueryMegavaultTotalSharesResponse {
|
|
92
|
+
/**
|
|
93
|
+
* QueryMegavaultTotalSharesResponse is a response type for the
|
|
94
|
+
* MegavaultTotalShares RPC method.
|
|
95
|
+
*/
|
|
96
|
+
totalShares?: NumShares;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* QueryMegavaultTotalSharesResponse is a response type for the
|
|
100
|
+
* MegavaultTotalShares RPC method.
|
|
101
|
+
*/
|
|
102
|
+
export interface QueryMegavaultTotalSharesResponseSDKType {
|
|
103
|
+
total_shares?: NumSharesSDKType;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* QueryMegavaultOwnerSharesRequest is a request type for the
|
|
107
|
+
* MegavaultOwnerShares RPC method.
|
|
108
|
+
*/
|
|
109
|
+
export interface QueryMegavaultOwnerSharesRequest {
|
|
110
|
+
address: string;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* QueryMegavaultOwnerSharesRequest is a request type for the
|
|
114
|
+
* MegavaultOwnerShares RPC method.
|
|
115
|
+
*/
|
|
116
|
+
export interface QueryMegavaultOwnerSharesRequestSDKType {
|
|
117
|
+
address: string;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* QueryMegavaultOwnerSharesResponse is a response type for the
|
|
121
|
+
* MegavaultOwnerShares RPC method.
|
|
122
|
+
*/
|
|
123
|
+
export interface QueryMegavaultOwnerSharesResponse {
|
|
124
|
+
/** Owner address. */
|
|
125
|
+
address: string;
|
|
126
|
+
/** Total number of shares that belong to the owner. */
|
|
127
|
+
shares?: NumShares;
|
|
128
|
+
/** All share unlocks. */
|
|
129
|
+
shareUnlocks: ShareUnlock[];
|
|
130
|
+
/** Owner equity in megavault (in quote quantums). */
|
|
131
|
+
equity: Uint8Array;
|
|
132
|
+
/**
|
|
133
|
+
* Equity that owner can withdraw in quote quantums (as one cannot
|
|
134
|
+
* withdraw locked shares).
|
|
135
|
+
*/
|
|
136
|
+
withdrawableEquity: Uint8Array;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* QueryMegavaultOwnerSharesResponse is a response type for the
|
|
140
|
+
* MegavaultOwnerShares RPC method.
|
|
141
|
+
*/
|
|
142
|
+
export interface QueryMegavaultOwnerSharesResponseSDKType {
|
|
143
|
+
address: string;
|
|
144
|
+
shares?: NumSharesSDKType;
|
|
145
|
+
share_unlocks: ShareUnlockSDKType[];
|
|
146
|
+
equity: Uint8Array;
|
|
147
|
+
withdrawable_equity: Uint8Array;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* QueryMegavaultAllOwnerSharesRequest is a request type for the
|
|
151
|
+
* MegavaultAllOwnerShares RPC method.
|
|
152
|
+
*/
|
|
153
|
+
export interface QueryMegavaultAllOwnerSharesRequest {
|
|
77
154
|
pagination?: PageRequest;
|
|
78
155
|
}
|
|
79
|
-
/**
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
156
|
+
/**
|
|
157
|
+
* QueryMegavaultAllOwnerSharesRequest is a request type for the
|
|
158
|
+
* MegavaultAllOwnerShares RPC method.
|
|
159
|
+
*/
|
|
160
|
+
export interface QueryMegavaultAllOwnerSharesRequestSDKType {
|
|
83
161
|
pagination?: PageRequestSDKType;
|
|
84
162
|
}
|
|
85
|
-
/**
|
|
86
|
-
|
|
163
|
+
/**
|
|
164
|
+
* QueryMegavaultAllOwnerSharesResponse is a response type for the
|
|
165
|
+
* MegavaultAllOwnerShares RPC method.
|
|
166
|
+
*/
|
|
167
|
+
export interface QueryMegavaultAllOwnerSharesResponse {
|
|
87
168
|
ownerShares: OwnerShare[];
|
|
88
169
|
pagination?: PageResponse;
|
|
89
170
|
}
|
|
90
|
-
/**
|
|
91
|
-
|
|
171
|
+
/**
|
|
172
|
+
* QueryMegavaultAllOwnerSharesResponse is a response type for the
|
|
173
|
+
* MegavaultAllOwnerShares RPC method.
|
|
174
|
+
*/
|
|
175
|
+
export interface QueryMegavaultAllOwnerSharesResponseSDKType {
|
|
92
176
|
owner_shares: OwnerShareSDKType[];
|
|
93
177
|
pagination?: PageResponseSDKType;
|
|
94
178
|
}
|
|
179
|
+
/** QueryVaultParamsRequest is a request for the VaultParams RPC method. */
|
|
180
|
+
export interface QueryVaultParamsRequest {
|
|
181
|
+
type: VaultType;
|
|
182
|
+
number: number;
|
|
183
|
+
}
|
|
184
|
+
/** QueryVaultParamsRequest is a request for the VaultParams RPC method. */
|
|
185
|
+
export interface QueryVaultParamsRequestSDKType {
|
|
186
|
+
type: VaultType;
|
|
187
|
+
number: number;
|
|
188
|
+
}
|
|
189
|
+
/** QueryVaultParamsResponse is a response for the VaultParams RPC method. */
|
|
190
|
+
export interface QueryVaultParamsResponse {
|
|
191
|
+
vaultId?: VaultId;
|
|
192
|
+
vaultParams?: VaultParams;
|
|
193
|
+
}
|
|
194
|
+
/** QueryVaultParamsResponse is a response for the VaultParams RPC method. */
|
|
195
|
+
export interface QueryVaultParamsResponseSDKType {
|
|
196
|
+
vault_id?: VaultIdSDKType;
|
|
197
|
+
vault_params?: VaultParamsSDKType;
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* QueryMegavaultWithdrawalInfoRequest is a request type for the
|
|
201
|
+
* MegavaultWithdrawalInfo RPC method.
|
|
202
|
+
*/
|
|
203
|
+
export interface QueryMegavaultWithdrawalInfoRequest {
|
|
204
|
+
/** Number of shares to withdraw. */
|
|
205
|
+
sharesToWithdraw?: NumShares;
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* QueryMegavaultWithdrawalInfoRequest is a request type for the
|
|
209
|
+
* MegavaultWithdrawalInfo RPC method.
|
|
210
|
+
*/
|
|
211
|
+
export interface QueryMegavaultWithdrawalInfoRequestSDKType {
|
|
212
|
+
shares_to_withdraw?: NumSharesSDKType;
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* QueryMegavaultWithdrawalInfoResponse is a response type for the
|
|
216
|
+
* MegavaultWithdrawalInfo RPC method.
|
|
217
|
+
*/
|
|
218
|
+
export interface QueryMegavaultWithdrawalInfoResponse {
|
|
219
|
+
/** Number of shares to withdraw. */
|
|
220
|
+
sharesToWithdraw?: NumShares;
|
|
221
|
+
/**
|
|
222
|
+
* Number of quote quantums above `shares` are expected to redeem.
|
|
223
|
+
* Withdrawl slippage can be calculated by comparing
|
|
224
|
+
* `expected_quote_quantums` with
|
|
225
|
+
* `megavault_equity * shares_to_withdraw / total_shares`
|
|
226
|
+
*/
|
|
227
|
+
expectedQuoteQuantums: Uint8Array;
|
|
228
|
+
/** Equity of megavault (in quote quantums). */
|
|
229
|
+
megavaultEquity: Uint8Array;
|
|
230
|
+
/** Total shares in megavault. */
|
|
231
|
+
totalShares?: NumShares;
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* QueryMegavaultWithdrawalInfoResponse is a response type for the
|
|
235
|
+
* MegavaultWithdrawalInfo RPC method.
|
|
236
|
+
*/
|
|
237
|
+
export interface QueryMegavaultWithdrawalInfoResponseSDKType {
|
|
238
|
+
shares_to_withdraw?: NumSharesSDKType;
|
|
239
|
+
expected_quote_quantums: Uint8Array;
|
|
240
|
+
megavault_equity: Uint8Array;
|
|
241
|
+
total_shares?: NumSharesSDKType;
|
|
242
|
+
}
|
|
95
243
|
export declare const QueryParamsRequest: {
|
|
96
244
|
encode(_: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
97
245
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest;
|
|
@@ -122,13 +270,53 @@ export declare const QueryAllVaultsResponse: {
|
|
|
122
270
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllVaultsResponse;
|
|
123
271
|
fromPartial(object: DeepPartial<QueryAllVaultsResponse>): QueryAllVaultsResponse;
|
|
124
272
|
};
|
|
125
|
-
export declare const
|
|
126
|
-
encode(
|
|
127
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
128
|
-
fromPartial(
|
|
273
|
+
export declare const QueryMegavaultTotalSharesRequest: {
|
|
274
|
+
encode(_: QueryMegavaultTotalSharesRequest, writer?: _m0.Writer): _m0.Writer;
|
|
275
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryMegavaultTotalSharesRequest;
|
|
276
|
+
fromPartial(_: DeepPartial<QueryMegavaultTotalSharesRequest>): QueryMegavaultTotalSharesRequest;
|
|
277
|
+
};
|
|
278
|
+
export declare const QueryMegavaultTotalSharesResponse: {
|
|
279
|
+
encode(message: QueryMegavaultTotalSharesResponse, writer?: _m0.Writer): _m0.Writer;
|
|
280
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryMegavaultTotalSharesResponse;
|
|
281
|
+
fromPartial(object: DeepPartial<QueryMegavaultTotalSharesResponse>): QueryMegavaultTotalSharesResponse;
|
|
282
|
+
};
|
|
283
|
+
export declare const QueryMegavaultOwnerSharesRequest: {
|
|
284
|
+
encode(message: QueryMegavaultOwnerSharesRequest, writer?: _m0.Writer): _m0.Writer;
|
|
285
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryMegavaultOwnerSharesRequest;
|
|
286
|
+
fromPartial(object: DeepPartial<QueryMegavaultOwnerSharesRequest>): QueryMegavaultOwnerSharesRequest;
|
|
287
|
+
};
|
|
288
|
+
export declare const QueryMegavaultOwnerSharesResponse: {
|
|
289
|
+
encode(message: QueryMegavaultOwnerSharesResponse, writer?: _m0.Writer): _m0.Writer;
|
|
290
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryMegavaultOwnerSharesResponse;
|
|
291
|
+
fromPartial(object: DeepPartial<QueryMegavaultOwnerSharesResponse>): QueryMegavaultOwnerSharesResponse;
|
|
292
|
+
};
|
|
293
|
+
export declare const QueryMegavaultAllOwnerSharesRequest: {
|
|
294
|
+
encode(message: QueryMegavaultAllOwnerSharesRequest, writer?: _m0.Writer): _m0.Writer;
|
|
295
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryMegavaultAllOwnerSharesRequest;
|
|
296
|
+
fromPartial(object: DeepPartial<QueryMegavaultAllOwnerSharesRequest>): QueryMegavaultAllOwnerSharesRequest;
|
|
297
|
+
};
|
|
298
|
+
export declare const QueryMegavaultAllOwnerSharesResponse: {
|
|
299
|
+
encode(message: QueryMegavaultAllOwnerSharesResponse, writer?: _m0.Writer): _m0.Writer;
|
|
300
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryMegavaultAllOwnerSharesResponse;
|
|
301
|
+
fromPartial(object: DeepPartial<QueryMegavaultAllOwnerSharesResponse>): QueryMegavaultAllOwnerSharesResponse;
|
|
302
|
+
};
|
|
303
|
+
export declare const QueryVaultParamsRequest: {
|
|
304
|
+
encode(message: QueryVaultParamsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
305
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryVaultParamsRequest;
|
|
306
|
+
fromPartial(object: DeepPartial<QueryVaultParamsRequest>): QueryVaultParamsRequest;
|
|
307
|
+
};
|
|
308
|
+
export declare const QueryVaultParamsResponse: {
|
|
309
|
+
encode(message: QueryVaultParamsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
310
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryVaultParamsResponse;
|
|
311
|
+
fromPartial(object: DeepPartial<QueryVaultParamsResponse>): QueryVaultParamsResponse;
|
|
312
|
+
};
|
|
313
|
+
export declare const QueryMegavaultWithdrawalInfoRequest: {
|
|
314
|
+
encode(message: QueryMegavaultWithdrawalInfoRequest, writer?: _m0.Writer): _m0.Writer;
|
|
315
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryMegavaultWithdrawalInfoRequest;
|
|
316
|
+
fromPartial(object: DeepPartial<QueryMegavaultWithdrawalInfoRequest>): QueryMegavaultWithdrawalInfoRequest;
|
|
129
317
|
};
|
|
130
|
-
export declare const
|
|
131
|
-
encode(message:
|
|
132
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
133
|
-
fromPartial(object: DeepPartial<
|
|
318
|
+
export declare const QueryMegavaultWithdrawalInfoResponse: {
|
|
319
|
+
encode(message: QueryMegavaultWithdrawalInfoResponse, writer?: _m0.Writer): _m0.Writer;
|
|
320
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryMegavaultWithdrawalInfoResponse;
|
|
321
|
+
fromPartial(object: DeepPartial<QueryMegavaultWithdrawalInfoResponse>): QueryMegavaultWithdrawalInfoResponse;
|
|
134
322
|
};
|