@injectivelabs/sdk-ts 1.17.2 → 1.17.3-alpha.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/dist/cjs/{AbacusGrpcApi-DXSuhb6R.cjs → AbacusGrpcApi-ieWvx9Pk.cjs} +6 -5
- package/dist/cjs/BaseGrpcConsumer-TjcGQpif.d.cts +89 -0
- package/dist/cjs/{BaseGrpcConsumer-EtEQfhmo.cjs → BaseGrpcConsumer-hNH10qOJ.cjs} +22 -3
- package/dist/cjs/{BaseIndexerGrpcConsumer-CW1kTn-_.cjs → BaseIndexerGrpcConsumer-E9xi3hs8.cjs} +1 -1
- package/dist/cjs/{ChainGrpcExchangeApi-CF9ATYqN.cjs → ChainGrpcExchangeApi-C1v-xxCh.cjs} +7 -6
- package/dist/cjs/{ChainRestTendermintApi-vL0g-BF-.cjs → ChainRestTendermintApi-BtxXFstT.cjs} +11 -9
- package/dist/cjs/{IndexerGrpcWeb3GwApi-C7kkr4Il.cjs → IndexerGrpcWeb3GwApi-C5AlN6KV.cjs} +8 -7
- package/dist/cjs/{MsgSetDenomMetadata-CKvxIq_t.cjs → MsgSetDenomMetadata-BHkIa3K_.cjs} +1 -1
- package/dist/cjs/{OLPGrpcApi-BCCb6fBZ.cjs → OLPGrpcApi-D_o2P-SZ.cjs} +6 -5
- package/dist/cjs/{QueryTradingStrategyContractTotalStrategies-Ayot_18R.cjs → QueryTradingStrategyContractTotalStrategies-DY_tydyG.cjs} +3 -3
- package/dist/cjs/{StreamManagerV2-igv0mn2I.cjs → StreamManagerV2-BxM7w64U.cjs} +78 -63
- package/dist/cjs/{chain-CGHrf7gg.cjs → chain-C_8R5bBd.cjs} +92 -74
- package/dist/cjs/client/abacus.cjs +2 -2
- package/dist/cjs/client/abacus.d.cts +4 -2
- package/dist/cjs/client/chain.cjs +4 -4
- package/dist/cjs/client/chain.d.cts +8 -9
- package/dist/cjs/client/indexer.cjs +4 -4
- package/dist/cjs/client/indexer.d.cts +8 -9
- package/dist/cjs/client/olp.cjs +3 -3
- package/dist/cjs/client/olp.d.cts +4 -2
- package/dist/cjs/client/wasm.cjs +5 -5
- package/dist/cjs/client/wasm.d.cts +3 -2
- package/dist/cjs/core/accounts.d.cts +8 -9
- package/dist/cjs/core/modules.cjs +7 -7
- package/dist/cjs/core/modules.d.cts +8 -9
- package/dist/cjs/core/tx.cjs +5 -5
- package/dist/cjs/core/tx.d.cts +8 -9
- package/dist/cjs/cosmjs.cjs +5 -5
- package/dist/cjs/cosmjs.d.cts +2 -3
- package/dist/cjs/exports.cjs +5 -5
- package/dist/cjs/exports.d.cts +2 -3
- package/dist/{esm/index-DOyiZiUK.d.ts → cjs/index-1xa-4b0j.d.cts} +2 -3
- package/dist/cjs/{index-D6ubyMlR.d.cts → index-B-ODtCMF.d.cts} +7 -7
- package/dist/{esm/index-Dn4OxoMy.d.ts → cjs/index-Btix6ZFg.d.cts} +4 -3
- package/dist/{esm/index-BJQt8IpY.d.ts → cjs/index-ByWM_5hr.d.cts} +2 -3
- package/dist/cjs/{index-DemZnO3c.d.cts → index-D9jzqFzT.d.cts} +81 -175
- package/dist/cjs/{index-DjRtDAy5.d.cts → index-Dems0piS.d.cts} +2924 -1125
- package/dist/{esm/index-C_3bL-y4.d.ts → cjs/index-nMOqRjvi.d.cts} +1 -1
- package/dist/cjs/index.cjs +12 -12
- package/dist/cjs/index.d.cts +9 -10
- package/dist/cjs/service.d.cts +3 -4
- package/dist/cjs/{tx-VwbP3UdI.cjs → tx-D3CYce5M.cjs} +8 -7
- package/dist/{esm/tx_pb-zz4o4hHG.d.ts → cjs/tx_pb-Wr-aZfKH.d.cts} +186 -6
- package/dist/cjs/types.d.cts +3 -4
- package/dist/cjs/utils.d.cts +8 -9
- package/dist/esm/{AbacusGrpcApi-Ce1hRKuD.js → AbacusGrpcApi-4J7beM6Y.js} +6 -5
- package/dist/esm/{BaseGrpcConsumer-BTWyD665.js → BaseGrpcConsumer-ByL34muR.js} +22 -3
- package/dist/esm/BaseGrpcConsumer-CQEK92MB.d.ts +89 -0
- package/dist/esm/{BaseIndexerGrpcConsumer-BTZzA_Eg.js → BaseIndexerGrpcConsumer-CUx8BFq4.js} +1 -1
- package/dist/esm/{ChainGrpcExchangeApi-DqdCst2Z.js → ChainGrpcExchangeApi-BxTTr_-W.js} +7 -6
- package/dist/esm/{ChainRestTendermintApi-BT_yOkAV.js → ChainRestTendermintApi-DpVPQNSn.js} +11 -9
- package/dist/esm/{IndexerGrpcWeb3GwApi-B2mgt9tE.js → IndexerGrpcWeb3GwApi-BHz_bM42.js} +8 -7
- package/dist/esm/{MsgSetDenomMetadata-CXgkQ3LF.js → MsgSetDenomMetadata-hxd0v-JN.js} +1 -1
- package/dist/esm/{OLPGrpcApi-DUCfcca_.js → OLPGrpcApi-BNGEcbpR.js} +6 -5
- package/dist/esm/{QueryTradingStrategyContractTotalStrategies-CZWdw3BE.js → QueryTradingStrategyContractTotalStrategies-DqCEu1NJ.js} +3 -3
- package/dist/esm/{StreamManagerV2-B9xiJYLj.js → StreamManagerV2-Dp2D7FL4.js} +78 -63
- package/dist/esm/{chain-CHX5uSpc.js → chain-BGq_0n_H.js} +92 -74
- package/dist/esm/client/abacus.d.ts +4 -2
- package/dist/esm/client/abacus.js +2 -2
- package/dist/esm/client/chain.d.ts +8 -9
- package/dist/esm/client/chain.js +4 -4
- package/dist/esm/client/indexer.d.ts +8 -9
- package/dist/esm/client/indexer.js +4 -4
- package/dist/esm/client/olp.d.ts +4 -2
- package/dist/esm/client/olp.js +3 -3
- package/dist/esm/client/wasm.d.ts +3 -2
- package/dist/esm/client/wasm.js +5 -5
- package/dist/esm/core/accounts.d.ts +8 -9
- package/dist/esm/core/modules.d.ts +8 -9
- package/dist/esm/core/modules.js +7 -7
- package/dist/esm/core/tx.d.ts +8 -9
- package/dist/esm/core/tx.js +5 -5
- package/dist/esm/cosmjs.d.ts +2 -3
- package/dist/esm/cosmjs.js +5 -5
- package/dist/esm/exports.d.ts +2 -3
- package/dist/esm/exports.js +5 -5
- package/dist/{cjs/index-DWbxb1AB.d.cts → esm/index-BJg6-o6s.d.ts} +4 -3
- package/dist/esm/{index--sg5xbEP.d.ts → index-BqYLsIZe.d.ts} +1 -1
- package/dist/esm/{index-Ch477yfL.d.ts → index-BzG_rDxK.d.ts} +80 -174
- package/dist/{cjs/index-lRWP4rKg.d.cts → esm/index-DXl4Xl74.d.ts} +2 -3
- package/dist/{cjs/index-CO3Y9drx.d.cts → esm/index-DbxF8Vb3.d.ts} +2 -3
- package/dist/esm/{index-B-SD0p02.d.ts → index-ICIQoqaU.d.ts} +2924 -1125
- package/dist/{cjs/index-CGvISJoE.d.cts → esm/index-T3rAmwhz.d.ts} +1 -1
- package/dist/esm/index.d.ts +9 -10
- package/dist/esm/index.js +12 -12
- package/dist/esm/service.d.ts +3 -4
- package/dist/esm/{tx-DsGG15fH.js → tx-Bgy5FhAu.js} +8 -7
- package/dist/{cjs/tx_pb-D-cNmrlO.d.cts → esm/tx_pb-DiV92WM9.d.ts} +186 -6
- package/dist/esm/types.d.ts +3 -4
- package/dist/esm/utils.d.ts +8 -9
- package/package.json +5 -5
- package/dist/cjs/BaseGrpcConsumer-Vvj4lzyS.d.cts +0 -1841
- package/dist/cjs/any_pb-CutLnOUR.d.cts +0 -187
- package/dist/esm/BaseGrpcConsumer-6x4RlZ16.d.ts +0 -1841
- package/dist/esm/any_pb-DBt7qvTr.d.ts +0 -187
|
@@ -1,1262 +1,3276 @@
|
|
|
1
|
-
import { i as SignDoc$1, s as TxRaw$1 } from "./tx_pb-
|
|
2
|
-
import { n as Coin$1 } from "./any_pb-DBt7qvTr.js";
|
|
1
|
+
import { d as Coin$1, i as SignDoc$1, s as TxRaw$1 } from "./tx_pb-DiV92WM9.js";
|
|
3
2
|
import { AminoSignResponse as AminoSignResponse$1 } from "@cosmjs/amino";
|
|
4
3
|
import { DirectSignResponse as DirectSignResponse$1 } from "@cosmjs/proto-signing";
|
|
5
4
|
|
|
6
|
-
//#region ../../node_modules/.pnpm/@
|
|
5
|
+
//#region ../../node_modules/.pnpm/@protobuf-ts+runtime@2.11.1/node_modules/@protobuf-ts/runtime/build/types/json-typings.d.ts
|
|
7
6
|
|
|
8
7
|
/**
|
|
9
|
-
*
|
|
8
|
+
* Represents any possible JSON value:
|
|
9
|
+
* - number
|
|
10
|
+
* - string
|
|
11
|
+
* - boolean
|
|
12
|
+
* - null
|
|
13
|
+
* - object (with any JSON value as property)
|
|
14
|
+
* - array (with any JSON value as element)
|
|
10
15
|
*/
|
|
11
|
-
|
|
16
|
+
declare type JsonValue = number | string | boolean | null | JsonObject | JsonArray;
|
|
17
|
+
/**
|
|
18
|
+
* Represents a JSON object.
|
|
19
|
+
*/
|
|
20
|
+
declare type JsonObject = {
|
|
21
|
+
[k: string]: JsonValue;
|
|
22
|
+
};
|
|
23
|
+
interface JsonArray extends Array<JsonValue> {}
|
|
24
|
+
/**
|
|
25
|
+
* Get the type of a JSON value.
|
|
26
|
+
* Distinguishes between array, null and object.
|
|
27
|
+
*/
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region ../../node_modules/.pnpm/@protobuf-ts+runtime@2.11.1/node_modules/@protobuf-ts/runtime/build/types/pb-long.d.ts
|
|
30
|
+
declare abstract class SharedPbLong {
|
|
12
31
|
/**
|
|
13
|
-
*
|
|
32
|
+
* Low 32 bits.
|
|
14
33
|
*/
|
|
15
|
-
|
|
34
|
+
readonly lo: number;
|
|
35
|
+
/**
|
|
36
|
+
* High 32 bits.
|
|
37
|
+
*/
|
|
38
|
+
readonly hi: number;
|
|
39
|
+
/**
|
|
40
|
+
* Create a new instance with the given bits.
|
|
41
|
+
*/
|
|
42
|
+
constructor(lo: number, hi: number);
|
|
43
|
+
/**
|
|
44
|
+
* Is this instance equal to 0?
|
|
45
|
+
*/
|
|
46
|
+
isZero(): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Convert to a native number.
|
|
49
|
+
*/
|
|
50
|
+
toNumber(): number;
|
|
51
|
+
/**
|
|
52
|
+
* Convert to decimal string.
|
|
53
|
+
*/
|
|
54
|
+
abstract toString(): string;
|
|
55
|
+
/**
|
|
56
|
+
* Convert to native bigint.
|
|
57
|
+
*/
|
|
58
|
+
abstract toBigInt(): bigint;
|
|
16
59
|
}
|
|
17
60
|
/**
|
|
18
|
-
*
|
|
61
|
+
* 64-bit unsigned integer as two 32-bit values.
|
|
62
|
+
* Converts between `string`, `number` and `bigint` representations.
|
|
19
63
|
*/
|
|
20
|
-
|
|
64
|
+
declare class PbULong extends SharedPbLong {
|
|
21
65
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* @generated from protobuf field: uint64 request_id = 1
|
|
66
|
+
* ulong 0 singleton.
|
|
25
67
|
*/
|
|
26
|
-
|
|
68
|
+
static ZERO: PbULong;
|
|
27
69
|
/**
|
|
28
|
-
*
|
|
29
|
-
* executed.
|
|
30
|
-
*
|
|
31
|
-
* @generated from protobuf field: int64 oracle_script_id = 2
|
|
70
|
+
* Create instance from a `string`, `number` or `bigint`.
|
|
32
71
|
*/
|
|
33
|
-
|
|
72
|
+
static from(value: string | number | bigint): PbULong;
|
|
34
73
|
/**
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* @generated from protobuf field: repeated string symbols = 3
|
|
74
|
+
* Convert to decimal string.
|
|
38
75
|
*/
|
|
39
|
-
|
|
76
|
+
toString(): string;
|
|
40
77
|
/**
|
|
41
|
-
*
|
|
42
|
-
* oracle request. Higher value means more security, at a higher gas cost.
|
|
43
|
-
*
|
|
44
|
-
* @generated from protobuf field: uint64 ask_count = 4
|
|
78
|
+
* Convert to native bigint.
|
|
45
79
|
*/
|
|
46
|
-
|
|
80
|
+
toBigInt(): bigint;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* 64-bit signed integer as two 32-bit values.
|
|
84
|
+
* Converts between `string`, `number` and `bigint` representations.
|
|
85
|
+
*/
|
|
86
|
+
declare class PbLong extends SharedPbLong {
|
|
47
87
|
/**
|
|
48
|
-
*
|
|
49
|
-
* proceed to the execution phase. Higher value means more security, at the
|
|
50
|
-
* cost of liveness.
|
|
51
|
-
*
|
|
52
|
-
* @generated from protobuf field: uint64 min_count = 5
|
|
88
|
+
* long 0 singleton.
|
|
53
89
|
*/
|
|
54
|
-
|
|
90
|
+
static ZERO: PbLong;
|
|
55
91
|
/**
|
|
56
|
-
*
|
|
57
|
-
* providers.
|
|
58
|
-
*
|
|
59
|
-
* @generated from protobuf field: repeated cosmos.base.v1beta1.Coin fee_limit = 6
|
|
92
|
+
* Create instance from a `string`, `number` or `bigint`.
|
|
60
93
|
*/
|
|
61
|
-
|
|
94
|
+
static from(value: string | number | bigint): PbLong;
|
|
62
95
|
/**
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
* @generated from protobuf field: uint64 prepare_gas = 7
|
|
96
|
+
* Do we have a minus sign?
|
|
66
97
|
*/
|
|
67
|
-
|
|
98
|
+
isNegative(): boolean;
|
|
68
99
|
/**
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
* @generated from protobuf field: uint64 execute_gas = 8
|
|
100
|
+
* Negate two's complement.
|
|
101
|
+
* Invert all the bits and add one to the result.
|
|
72
102
|
*/
|
|
73
|
-
|
|
103
|
+
negate(): PbLong;
|
|
74
104
|
/**
|
|
75
|
-
*
|
|
76
|
-
* each validator
|
|
77
|
-
*
|
|
78
|
-
* @generated from protobuf field: uint64 min_source_count = 9
|
|
105
|
+
* Convert to decimal string.
|
|
79
106
|
*/
|
|
80
|
-
|
|
107
|
+
toString(): string;
|
|
108
|
+
/**
|
|
109
|
+
* Convert to native bigint.
|
|
110
|
+
*/
|
|
111
|
+
toBigInt(): bigint;
|
|
81
112
|
}
|
|
113
|
+
//#endregion
|
|
114
|
+
//#region ../../node_modules/.pnpm/@protobuf-ts+runtime@2.11.1/node_modules/@protobuf-ts/runtime/build/types/binary-format-contract.d.ts
|
|
82
115
|
/**
|
|
83
|
-
*
|
|
116
|
+
* Options for writing binary data.
|
|
84
117
|
*/
|
|
85
|
-
interface
|
|
118
|
+
interface BinaryWriteOptions {
|
|
86
119
|
/**
|
|
87
|
-
*
|
|
120
|
+
* Shall unknown fields be written back on wire?
|
|
88
121
|
*
|
|
89
|
-
*
|
|
90
|
-
|
|
91
|
-
bandIbcEnabled: boolean;
|
|
92
|
-
/**
|
|
93
|
-
* block request interval to send Band IBC prices
|
|
122
|
+
* `true`: unknown fields stored in a symbol property of the message
|
|
123
|
+
* are written back. This is the default behaviour.
|
|
94
124
|
*
|
|
95
|
-
*
|
|
96
|
-
*/
|
|
97
|
-
ibcRequestInterval: bigint;
|
|
98
|
-
/**
|
|
99
|
-
* band IBC source channel
|
|
125
|
+
* `false`: unknown fields are not written.
|
|
100
126
|
*
|
|
101
|
-
*
|
|
127
|
+
* `UnknownFieldWriter`: Your own behaviour for unknown fields.
|
|
102
128
|
*/
|
|
103
|
-
|
|
129
|
+
writeUnknownFields: boolean | UnknownFieldWriter;
|
|
104
130
|
/**
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
* @generated from protobuf field: string ibc_version = 4
|
|
131
|
+
* Allows to use a custom implementation to encode binary data.
|
|
108
132
|
*/
|
|
109
|
-
|
|
133
|
+
writerFactory: () => IBinaryWriter;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Options for reading binary data.
|
|
137
|
+
*/
|
|
138
|
+
interface BinaryReadOptions {
|
|
110
139
|
/**
|
|
111
|
-
*
|
|
140
|
+
* Shall unknown fields be read, ignored or raise an error?
|
|
112
141
|
*
|
|
113
|
-
*
|
|
142
|
+
* `true`: stores the unknown field on a symbol property of the
|
|
143
|
+
* message. This is the default behaviour.
|
|
144
|
+
*
|
|
145
|
+
* `false`: ignores the unknown field.
|
|
146
|
+
*
|
|
147
|
+
* `"throw"`: throws an error.
|
|
148
|
+
*
|
|
149
|
+
* `UnknownFieldReader`: Your own behaviour for unknown fields.
|
|
114
150
|
*/
|
|
115
|
-
|
|
151
|
+
readUnknownField: boolean | 'throw' | UnknownFieldReader;
|
|
116
152
|
/**
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
* @generated from protobuf field: repeated int64 legacy_oracle_ids = 6
|
|
153
|
+
* Allows to use a custom implementation to parse binary data.
|
|
120
154
|
*/
|
|
121
|
-
|
|
155
|
+
readerFactory: (bytes: Uint8Array) => IBinaryReader;
|
|
122
156
|
}
|
|
123
157
|
/**
|
|
124
|
-
*
|
|
158
|
+
* Store an unknown field for a message somewhere.
|
|
125
159
|
*/
|
|
126
|
-
declare
|
|
160
|
+
declare type UnknownFieldReader = (typeName: string, message: any, fieldNo: number, wireType: WireType, data: Uint8Array) => void;
|
|
161
|
+
/**
|
|
162
|
+
* Write unknown fields stored for the message to the writer.
|
|
163
|
+
*/
|
|
164
|
+
declare type UnknownFieldWriter = (typeName: string, message: any, writer: IBinaryWriter) => void;
|
|
165
|
+
/**
|
|
166
|
+
* This handler implements the default behaviour for unknown fields.
|
|
167
|
+
* When reading data, unknown fields are stored on the message, in a
|
|
168
|
+
* symbol property.
|
|
169
|
+
* When writing data, the symbol property is queried and unknown fields
|
|
170
|
+
* are serialized into the output again.
|
|
171
|
+
*/
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* This interface is used throughout @protobuf-ts to read
|
|
175
|
+
* protobuf binary format.
|
|
176
|
+
*
|
|
177
|
+
* While not completely compatible, this interface is closely aligned
|
|
178
|
+
* with the `Reader` class of `protobufjs` to make it easier to swap
|
|
179
|
+
* the implementation.
|
|
180
|
+
*/
|
|
181
|
+
interface IBinaryReader {
|
|
127
182
|
/**
|
|
128
|
-
*
|
|
183
|
+
* Current position.
|
|
129
184
|
*/
|
|
130
|
-
|
|
185
|
+
readonly pos: number;
|
|
131
186
|
/**
|
|
132
|
-
*
|
|
187
|
+
* Number of bytes available in this reader.
|
|
133
188
|
*/
|
|
134
|
-
|
|
189
|
+
readonly len: number;
|
|
135
190
|
/**
|
|
136
|
-
*
|
|
191
|
+
* Reads a tag - field number and wire type.
|
|
137
192
|
*/
|
|
138
|
-
|
|
193
|
+
tag(): [number, WireType];
|
|
139
194
|
/**
|
|
140
|
-
*
|
|
195
|
+
* Skip one element on the wire and return the skipped data.
|
|
141
196
|
*/
|
|
142
|
-
|
|
197
|
+
skip(wireType: WireType): Uint8Array;
|
|
143
198
|
/**
|
|
144
|
-
*
|
|
199
|
+
* Read a `int32` field, a signed 32 bit varint.
|
|
145
200
|
*/
|
|
146
|
-
|
|
201
|
+
uint32(): number;
|
|
147
202
|
/**
|
|
148
|
-
*
|
|
203
|
+
* Read a `sint32` field, a signed, zigzag-encoded 32-bit varint.
|
|
149
204
|
*/
|
|
150
|
-
|
|
205
|
+
int32(): number;
|
|
151
206
|
/**
|
|
152
|
-
*
|
|
207
|
+
* Read a `sint32` field, a signed, zigzag-encoded 32-bit varint.
|
|
153
208
|
*/
|
|
154
|
-
|
|
209
|
+
sint32(): number;
|
|
155
210
|
/**
|
|
156
|
-
*
|
|
211
|
+
* Read a `int64` field, a signed 64-bit varint.
|
|
157
212
|
*/
|
|
158
|
-
|
|
213
|
+
int64(): PbLong;
|
|
159
214
|
/**
|
|
160
|
-
*
|
|
215
|
+
* Read a `sint64` field, a signed, zig-zag-encoded 64-bit varint.
|
|
161
216
|
*/
|
|
162
|
-
|
|
217
|
+
sint64(): PbLong;
|
|
163
218
|
/**
|
|
164
|
-
*
|
|
219
|
+
* Read a `fixed64` field, a signed, fixed-length 64-bit integer.
|
|
165
220
|
*/
|
|
166
|
-
|
|
221
|
+
sfixed64(): PbLong;
|
|
167
222
|
/**
|
|
168
|
-
*
|
|
223
|
+
* Read a `uint64` field, an unsigned 64-bit varint.
|
|
169
224
|
*/
|
|
170
|
-
|
|
225
|
+
uint64(): PbULong;
|
|
171
226
|
/**
|
|
172
|
-
*
|
|
227
|
+
* Read a `fixed64` field, an unsigned, fixed-length 64 bit integer.
|
|
173
228
|
*/
|
|
174
|
-
|
|
229
|
+
fixed64(): PbULong;
|
|
175
230
|
/**
|
|
176
|
-
*
|
|
231
|
+
* Read a `bool` field, a variant.
|
|
177
232
|
*/
|
|
178
|
-
|
|
179
|
-
}
|
|
180
|
-
/**
|
|
181
|
-
* @generated MessageType for protobuf message injective.oracle.v1beta1.Params
|
|
182
|
-
*/
|
|
183
|
-
declare const Params$1 = new Params$Type();
|
|
184
|
-
/**
|
|
185
|
-
* @generated MessageType for protobuf message injective.oracle.v1beta1.BandOracleRequest
|
|
186
|
-
*/
|
|
187
|
-
declare const BandOracleRequest = new BandOracleRequest$Type();
|
|
188
|
-
/**
|
|
189
|
-
* @generated MessageType for protobuf message injective.oracle.v1beta1.BandIBCParams
|
|
190
|
-
*/
|
|
191
|
-
declare const BandIBCParams = new BandIBCParams$Type();
|
|
192
|
-
//#endregion
|
|
193
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.17.3/node_modules/@injectivelabs/core-proto-ts-v2/esm/generated/injective/exchange/v1beta1/exchange_pb.d.ts
|
|
194
|
-
/**
|
|
195
|
-
* @generated from protobuf message injective.exchange.v1beta1.OpenNotionalCap
|
|
196
|
-
*/
|
|
197
|
-
interface OpenNotionalCap {
|
|
233
|
+
bool(): boolean;
|
|
198
234
|
/**
|
|
199
|
-
*
|
|
235
|
+
* Read a `fixed32` field, an unsigned, fixed-length 32-bit integer.
|
|
200
236
|
*/
|
|
201
|
-
|
|
202
|
-
oneofKind: "uncapped";
|
|
203
|
-
/**
|
|
204
|
-
* @generated from protobuf field: injective.exchange.v1beta1.OpenNotionalCapUncapped uncapped = 1
|
|
205
|
-
*/
|
|
206
|
-
uncapped: OpenNotionalCapUncapped;
|
|
207
|
-
} | {
|
|
208
|
-
oneofKind: "capped";
|
|
209
|
-
/**
|
|
210
|
-
* @generated from protobuf field: injective.exchange.v1beta1.OpenNotionalCapCapped capped = 2
|
|
211
|
-
*/
|
|
212
|
-
capped: OpenNotionalCapCapped;
|
|
213
|
-
} | {
|
|
214
|
-
oneofKind: undefined;
|
|
215
|
-
};
|
|
216
|
-
}
|
|
217
|
-
/**
|
|
218
|
-
* @generated from protobuf message injective.exchange.v1beta1.OpenNotionalCapUncapped
|
|
219
|
-
*/
|
|
220
|
-
interface OpenNotionalCapUncapped {}
|
|
221
|
-
/**
|
|
222
|
-
* @generated from protobuf message injective.exchange.v1beta1.OpenNotionalCapCapped
|
|
223
|
-
*/
|
|
224
|
-
interface OpenNotionalCapCapped {
|
|
237
|
+
fixed32(): number;
|
|
225
238
|
/**
|
|
226
|
-
*
|
|
239
|
+
* Read a `sfixed32` field, a signed, fixed-length 32-bit integer.
|
|
227
240
|
*/
|
|
228
|
-
|
|
241
|
+
sfixed32(): number;
|
|
242
|
+
/**
|
|
243
|
+
* Read a `float` field, 32-bit floating point number.
|
|
244
|
+
*/
|
|
245
|
+
float(): number;
|
|
246
|
+
/**
|
|
247
|
+
* Read a `double` field, a 64-bit floating point number.
|
|
248
|
+
*/
|
|
249
|
+
double(): number;
|
|
250
|
+
/**
|
|
251
|
+
* Read a `bytes` field, length-delimited arbitrary data.
|
|
252
|
+
*/
|
|
253
|
+
bytes(): Uint8Array;
|
|
254
|
+
/**
|
|
255
|
+
* Read a `string` field, length-delimited data converted to UTF-8 text.
|
|
256
|
+
*/
|
|
257
|
+
string(): string;
|
|
229
258
|
}
|
|
230
259
|
/**
|
|
231
|
-
*
|
|
260
|
+
* This interface is used throughout @protobuf-ts to write
|
|
261
|
+
* protobuf binary format.
|
|
262
|
+
*
|
|
263
|
+
* While not completely compatible, this interface is closely aligned
|
|
264
|
+
* with the `Writer` class of `protobufjs` to make it easier to swap
|
|
265
|
+
* the implementation.
|
|
232
266
|
*/
|
|
233
|
-
interface
|
|
267
|
+
interface IBinaryWriter {
|
|
234
268
|
/**
|
|
235
|
-
*
|
|
236
|
-
* to create a spot market by bypassing governance
|
|
237
|
-
*
|
|
238
|
-
* @generated from protobuf field: cosmos.base.v1beta1.Coin spot_market_instant_listing_fee = 1
|
|
269
|
+
* Return all bytes written and reset this writer.
|
|
239
270
|
*/
|
|
240
|
-
|
|
271
|
+
finish(): Uint8Array;
|
|
241
272
|
/**
|
|
242
|
-
*
|
|
243
|
-
*
|
|
273
|
+
* Start a new fork for length-delimited data like a message
|
|
274
|
+
* or a packed repeated field.
|
|
244
275
|
*
|
|
245
|
-
*
|
|
276
|
+
* Must be joined later with `join()`.
|
|
246
277
|
*/
|
|
247
|
-
|
|
278
|
+
fork(): IBinaryWriter;
|
|
248
279
|
/**
|
|
249
|
-
*
|
|
250
|
-
*
|
|
251
|
-
*
|
|
252
|
-
* @generated from protobuf field: string default_spot_maker_fee_rate = 3
|
|
280
|
+
* Join the last fork. Write its length and bytes, then
|
|
281
|
+
* return to the previous state.
|
|
253
282
|
*/
|
|
254
|
-
|
|
283
|
+
join(): IBinaryWriter;
|
|
255
284
|
/**
|
|
256
|
-
*
|
|
257
|
-
* takers on a new spot market
|
|
285
|
+
* Writes a tag (field number and wire type).
|
|
258
286
|
*
|
|
259
|
-
*
|
|
287
|
+
* Equivalent to `uint32( (fieldNo << 3 | type) >>> 0 )`
|
|
288
|
+
*
|
|
289
|
+
* Generated code should compute the tag ahead of time and call `uint32()`.
|
|
260
290
|
*/
|
|
261
|
-
|
|
291
|
+
tag(fieldNo: number, type: WireType): IBinaryWriter;
|
|
262
292
|
/**
|
|
263
|
-
*
|
|
264
|
-
* makers on a new derivative market
|
|
265
|
-
*
|
|
266
|
-
* @generated from protobuf field: string default_derivative_maker_fee_rate = 5
|
|
293
|
+
* Write a chunk of raw bytes.
|
|
267
294
|
*/
|
|
268
|
-
|
|
295
|
+
raw(chunk: Uint8Array): IBinaryWriter;
|
|
269
296
|
/**
|
|
270
|
-
*
|
|
271
|
-
* takers on a new derivative market
|
|
272
|
-
*
|
|
273
|
-
* @generated from protobuf field: string default_derivative_taker_fee_rate = 6
|
|
297
|
+
* Write a `uint32` value, an unsigned 32 bit varint.
|
|
274
298
|
*/
|
|
275
|
-
|
|
299
|
+
uint32(value: number): IBinaryWriter;
|
|
276
300
|
/**
|
|
277
|
-
*
|
|
278
|
-
* new derivative market
|
|
279
|
-
*
|
|
280
|
-
* @generated from protobuf field: string default_initial_margin_ratio = 7
|
|
301
|
+
* Write a `int32` value, a signed 32 bit varint.
|
|
281
302
|
*/
|
|
282
|
-
|
|
303
|
+
int32(value: number): IBinaryWriter;
|
|
283
304
|
/**
|
|
284
|
-
*
|
|
285
|
-
* ratio on a new derivative market
|
|
286
|
-
*
|
|
287
|
-
* @generated from protobuf field: string default_maintenance_margin_ratio = 8
|
|
305
|
+
* Write a `sint32` value, a signed, zigzag-encoded 32-bit varint.
|
|
288
306
|
*/
|
|
289
|
-
|
|
307
|
+
sint32(value: number): IBinaryWriter;
|
|
290
308
|
/**
|
|
291
|
-
*
|
|
292
|
-
* derivative market
|
|
293
|
-
*
|
|
294
|
-
* @generated from protobuf field: int64 default_funding_interval = 9
|
|
309
|
+
* Write a `int64` value, a signed 64-bit varint.
|
|
295
310
|
*/
|
|
296
|
-
|
|
311
|
+
int64(value: string | number | bigint): IBinaryWriter;
|
|
297
312
|
/**
|
|
298
|
-
*
|
|
299
|
-
* should be a multiple of
|
|
300
|
-
*
|
|
301
|
-
* @generated from protobuf field: int64 funding_multiple = 10
|
|
313
|
+
* Write a `uint64` value, an unsigned 64-bit varint.
|
|
302
314
|
*/
|
|
303
|
-
|
|
315
|
+
uint64(value: string | number | bigint): IBinaryWriter;
|
|
304
316
|
/**
|
|
305
|
-
*
|
|
306
|
-
* relayers
|
|
307
|
-
*
|
|
308
|
-
* @generated from protobuf field: string relayer_fee_share_rate = 11
|
|
317
|
+
* Write a `sint64` value, a signed, zig-zag-encoded 64-bit varint.
|
|
309
318
|
*/
|
|
310
|
-
|
|
319
|
+
sint64(value: string | number | bigint): IBinaryWriter;
|
|
311
320
|
/**
|
|
312
|
-
*
|
|
313
|
-
* of the hourly funding rate
|
|
314
|
-
*
|
|
315
|
-
* @generated from protobuf field: string default_hourly_funding_rate_cap = 12
|
|
321
|
+
* Write a `fixed64` value, an unsigned, fixed-length 64 bit integer.
|
|
316
322
|
*/
|
|
317
|
-
|
|
318
|
-
/**
|
|
319
|
-
* hourly_interest_rate defines the hourly interest rate
|
|
320
|
-
*
|
|
321
|
-
* @generated from protobuf field: string default_hourly_interest_rate = 13
|
|
322
|
-
*/
|
|
323
|
-
defaultHourlyInterestRate: string;
|
|
323
|
+
fixed64(value: string | number | bigint): IBinaryWriter;
|
|
324
324
|
/**
|
|
325
|
-
*
|
|
326
|
-
* active orders a subaccount can have for a given orderbook side
|
|
327
|
-
*
|
|
328
|
-
* @generated from protobuf field: uint32 max_derivative_order_side_count = 14
|
|
325
|
+
* Write a `fixed64` value, a signed, fixed-length 64-bit integer.
|
|
329
326
|
*/
|
|
330
|
-
|
|
327
|
+
sfixed64(value: string | number | bigint): IBinaryWriter;
|
|
331
328
|
/**
|
|
332
|
-
*
|
|
333
|
-
* rewards after which one also needs staked INJ to receive more
|
|
334
|
-
*
|
|
335
|
-
* @generated from protobuf field: string inj_reward_staked_requirement_threshold = 15
|
|
329
|
+
* Write a `bool` value, a variant.
|
|
336
330
|
*/
|
|
337
|
-
|
|
331
|
+
bool(value: boolean): IBinaryWriter;
|
|
338
332
|
/**
|
|
339
|
-
*
|
|
340
|
-
* rewards
|
|
341
|
-
*
|
|
342
|
-
* @generated from protobuf field: int64 trading_rewards_vesting_duration = 16
|
|
333
|
+
* Write a `fixed32` value, an unsigned, fixed-length 32-bit integer.
|
|
343
334
|
*/
|
|
344
|
-
|
|
335
|
+
fixed32(value: number): IBinaryWriter;
|
|
345
336
|
/**
|
|
346
|
-
*
|
|
347
|
-
* collateral that goes to the liquidator
|
|
348
|
-
*
|
|
349
|
-
* @generated from protobuf field: string liquidator_reward_share_rate = 17
|
|
337
|
+
* Write a `sfixed32` value, a signed, fixed-length 32-bit integer.
|
|
350
338
|
*/
|
|
351
|
-
|
|
339
|
+
sfixed32(value: number): IBinaryWriter;
|
|
352
340
|
/**
|
|
353
|
-
*
|
|
354
|
-
* required to create a derivative market by bypassing governance
|
|
355
|
-
*
|
|
356
|
-
* @generated from protobuf field: cosmos.base.v1beta1.Coin binary_options_market_instant_listing_fee = 18
|
|
341
|
+
* Write a `float` value, 32-bit floating point number.
|
|
357
342
|
*/
|
|
358
|
-
|
|
343
|
+
float(value: number): IBinaryWriter;
|
|
359
344
|
/**
|
|
360
|
-
*
|
|
361
|
-
* for executing atomic market orders
|
|
362
|
-
*
|
|
363
|
-
* @generated from protobuf field: injective.exchange.v1beta1.AtomicMarketOrderAccessLevel atomic_market_order_access_level = 19
|
|
345
|
+
* Write a `double` value, a 64-bit floating point number.
|
|
364
346
|
*/
|
|
365
|
-
|
|
347
|
+
double(value: number): IBinaryWriter;
|
|
366
348
|
/**
|
|
367
|
-
*
|
|
368
|
-
* executing atomic market orders in spot markets
|
|
369
|
-
*
|
|
370
|
-
* @generated from protobuf field: string spot_atomic_market_order_fee_multiplier = 20
|
|
349
|
+
* Write a `bytes` value, length-delimited arbitrary data.
|
|
371
350
|
*/
|
|
372
|
-
|
|
351
|
+
bytes(value: Uint8Array): IBinaryWriter;
|
|
373
352
|
/**
|
|
374
|
-
*
|
|
375
|
-
* multiplier for executing atomic market orders in derivative markets
|
|
376
|
-
*
|
|
377
|
-
* @generated from protobuf field: string derivative_atomic_market_order_fee_multiplier = 21
|
|
353
|
+
* Write a `string` value, length-delimited data converted to UTF-8 text.
|
|
378
354
|
*/
|
|
379
|
-
|
|
355
|
+
string(value: string): IBinaryWriter;
|
|
356
|
+
}
|
|
357
|
+
/**
|
|
358
|
+
* Protobuf binary format wire types.
|
|
359
|
+
*
|
|
360
|
+
* A wire type provides just enough information to find the length of the
|
|
361
|
+
* following value.
|
|
362
|
+
*
|
|
363
|
+
* See https://developers.google.com/protocol-buffers/docs/encoding#structure
|
|
364
|
+
*/
|
|
365
|
+
declare enum WireType {
|
|
380
366
|
/**
|
|
381
|
-
*
|
|
382
|
-
* multiplier for executing atomic market orders in binary markets
|
|
383
|
-
*
|
|
384
|
-
* @generated from protobuf field: string binary_options_atomic_market_order_fee_multiplier = 22
|
|
367
|
+
* Used for int32, int64, uint32, uint64, sint32, sint64, bool, enum
|
|
385
368
|
*/
|
|
386
|
-
|
|
369
|
+
Varint = 0,
|
|
387
370
|
/**
|
|
388
|
-
*
|
|
389
|
-
*
|
|
390
|
-
* @generated from protobuf field: string minimal_protocol_fee_rate = 23
|
|
371
|
+
* Used for fixed64, sfixed64, double.
|
|
372
|
+
* Always 8 bytes with little-endian byte order.
|
|
391
373
|
*/
|
|
392
|
-
|
|
374
|
+
Bit64 = 1,
|
|
393
375
|
/**
|
|
394
|
-
*
|
|
395
|
-
* derivative market launch is enabled
|
|
376
|
+
* Used for string, bytes, embedded messages, packed repeated fields
|
|
396
377
|
*
|
|
397
|
-
*
|
|
378
|
+
* Only repeated numeric types (types which use the varint, 32-bit,
|
|
379
|
+
* or 64-bit wire types) can be packed. In proto3, such fields are
|
|
380
|
+
* packed by default.
|
|
398
381
|
*/
|
|
399
|
-
|
|
382
|
+
LengthDelimited = 2,
|
|
400
383
|
/**
|
|
401
|
-
*
|
|
384
|
+
* Used for groups
|
|
385
|
+
* @deprecated
|
|
402
386
|
*/
|
|
403
|
-
|
|
387
|
+
StartGroup = 3,
|
|
404
388
|
/**
|
|
405
|
-
*
|
|
406
|
-
*
|
|
407
|
-
*
|
|
408
|
-
* @generated from protobuf field: int64 margin_decrease_price_timestamp_threshold_seconds = 26
|
|
389
|
+
* Used for groups
|
|
390
|
+
* @deprecated
|
|
409
391
|
*/
|
|
410
|
-
|
|
392
|
+
EndGroup = 4,
|
|
411
393
|
/**
|
|
412
|
-
*
|
|
413
|
-
*
|
|
414
|
-
* @generated from protobuf field: repeated string exchange_admins = 27
|
|
394
|
+
* Used for fixed32, sfixed32, float.
|
|
395
|
+
* Always 4 bytes with little-endian byte order.
|
|
415
396
|
*/
|
|
416
|
-
|
|
397
|
+
Bit32 = 5,
|
|
398
|
+
}
|
|
399
|
+
//#endregion
|
|
400
|
+
//#region ../../node_modules/.pnpm/@protobuf-ts+runtime@2.11.1/node_modules/@protobuf-ts/runtime/build/types/reflection-info.d.ts
|
|
401
|
+
/**
|
|
402
|
+
* Describes a protobuf enum for runtime reflection.
|
|
403
|
+
*
|
|
404
|
+
* The tuple consists of:
|
|
405
|
+
*
|
|
406
|
+
*
|
|
407
|
+
* [0] the protobuf type name
|
|
408
|
+
*
|
|
409
|
+
* The type name follows the same rules as message type names.
|
|
410
|
+
* See `MessageInfo` for details.
|
|
411
|
+
*
|
|
412
|
+
*
|
|
413
|
+
* [1] the enum object generated by Typescript
|
|
414
|
+
*
|
|
415
|
+
* We generate standard Typescript enums for protobuf enums. They are compiled
|
|
416
|
+
* to lookup objects that map from numerical value to name strings and vice
|
|
417
|
+
* versa and can also contain alias names.
|
|
418
|
+
*
|
|
419
|
+
* See https://www.typescriptlang.org/docs/handbook/enums.html#reverse-mappings
|
|
420
|
+
*
|
|
421
|
+
* We use this lookup feature to when encoding / decoding JSON format. The
|
|
422
|
+
* enum is guaranteed to have a value for 0. We generate an entry for 0 if
|
|
423
|
+
* none was declared in .proto because we would need to support custom default
|
|
424
|
+
* values if we didn't.
|
|
425
|
+
*
|
|
426
|
+
*
|
|
427
|
+
* [2] the prefix shared by all original enum values (optional)
|
|
428
|
+
*
|
|
429
|
+
* If all values of a protobuf enum share a prefix, it is dropped in the
|
|
430
|
+
* generated enum. For example, the protobuf enum `enum My { MY_FOO, MY_BAR }`
|
|
431
|
+
* becomes the typescript enum `enum My { FOO, BAR }`.
|
|
432
|
+
*
|
|
433
|
+
* Because the JSON format requires the original value name, we store the
|
|
434
|
+
* dropped prefix here, so that the JSON format implementation can restore
|
|
435
|
+
* the original value names.
|
|
436
|
+
*/
|
|
437
|
+
declare type EnumInfo = readonly [
|
|
438
|
+
/**
|
|
439
|
+
* The protobuf type name of the enum
|
|
440
|
+
*/
|
|
441
|
+
string,
|
|
442
|
+
/**
|
|
443
|
+
* The enum object generated by Typescript
|
|
444
|
+
*/
|
|
445
|
+
{
|
|
446
|
+
[key: number]: string;
|
|
447
|
+
[k: string]: number | string;
|
|
448
|
+
},
|
|
449
|
+
/**
|
|
450
|
+
* The prefix shared by all original enum values
|
|
451
|
+
*/
|
|
452
|
+
string?];
|
|
453
|
+
/**
|
|
454
|
+
* Describes a protobuf message for runtime reflection.
|
|
455
|
+
*/
|
|
456
|
+
interface MessageInfo {
|
|
417
457
|
/**
|
|
418
|
-
*
|
|
458
|
+
* The protobuf type name of the message, including package and
|
|
459
|
+
* parent types if present.
|
|
419
460
|
*
|
|
420
|
-
*
|
|
421
|
-
|
|
422
|
-
injAuctionMaxCap: string;
|
|
423
|
-
/**
|
|
424
|
-
* fixed_gas_enabled indicates if msg server will consume fixed gas amount for
|
|
425
|
-
* certain msg types
|
|
461
|
+
* If the .proto file included a `package` statement, the type name
|
|
462
|
+
* starts with '.'.
|
|
426
463
|
*
|
|
427
|
-
*
|
|
464
|
+
* Examples:
|
|
465
|
+
* 'MyNamespaceLessMessage'
|
|
466
|
+
* '.my_package.MyMessage'
|
|
467
|
+
* '.my_package.ParentMessage.ChildMessage'
|
|
428
468
|
*/
|
|
429
|
-
|
|
430
|
-
}
|
|
431
|
-
/**
|
|
432
|
-
* @generated from protobuf message injective.exchange.v1beta1.MarketFeeMultiplier
|
|
433
|
-
*/
|
|
434
|
-
interface MarketFeeMultiplier {
|
|
469
|
+
readonly typeName: string;
|
|
435
470
|
/**
|
|
436
|
-
*
|
|
471
|
+
* Simple information for each message field, in the order
|
|
472
|
+
* of declaration in the source .proto.
|
|
437
473
|
*/
|
|
438
|
-
|
|
474
|
+
readonly fields: readonly FieldInfo[];
|
|
439
475
|
/**
|
|
440
|
-
*
|
|
476
|
+
* Contains custom message options from the .proto source in JSON format.
|
|
441
477
|
*/
|
|
442
|
-
|
|
478
|
+
readonly options: {
|
|
479
|
+
[extensionName: string]: JsonValue;
|
|
480
|
+
};
|
|
443
481
|
}
|
|
444
482
|
/**
|
|
445
|
-
*
|
|
483
|
+
* Describes a field of a protobuf message for runtime
|
|
484
|
+
* reflection. We distinguish between the following
|
|
485
|
+
* kinds of fields:
|
|
486
|
+
*
|
|
487
|
+
* "scalar": string, bool, float, int32, etc.
|
|
488
|
+
* See https://developers.google.com/protocol-buffers/docs/proto3#scalar
|
|
489
|
+
*
|
|
490
|
+
* "enum": field was declared with an enum type.
|
|
491
|
+
*
|
|
492
|
+
* "message": field was declared with a message type.
|
|
493
|
+
*
|
|
494
|
+
* "map": field was declared with map<K,V>.
|
|
495
|
+
*
|
|
496
|
+
*
|
|
497
|
+
* Every field, regardless of it's kind, always has the following properties:
|
|
498
|
+
*
|
|
499
|
+
* "no": The field number of the .proto field.
|
|
500
|
+
* "name": The original name of the .proto field.
|
|
501
|
+
* "localName": The name of the field as used in generated code.
|
|
502
|
+
* "jsonName": The name for JSON serialization / deserialization.
|
|
503
|
+
* "options": Custom field options from the .proto source in JSON format.
|
|
504
|
+
*
|
|
505
|
+
*
|
|
506
|
+
* Other properties:
|
|
507
|
+
*
|
|
508
|
+
* - Fields of kind "scalar", "enum" and "message" can have a "repeat" type.
|
|
509
|
+
* - Fields of kind "scalar" and "enum" can have a "repeat" type.
|
|
510
|
+
* - Fields of kind "scalar", "enum" and "message" can be member of a "oneof".
|
|
511
|
+
*
|
|
512
|
+
* A field can be only have one of the above properties set.
|
|
513
|
+
*
|
|
514
|
+
* Options for "scalar" fields:
|
|
515
|
+
*
|
|
516
|
+
* - 64 bit integral types can provide "L" - the JavaScript representation
|
|
517
|
+
* type.
|
|
446
518
|
*
|
|
447
|
-
* @generated from protobuf message injective.exchange.v1beta1.DerivativeMarket
|
|
448
519
|
*/
|
|
449
|
-
|
|
520
|
+
declare type FieldInfo = fiRules<fiScalar> | fiRules<fiEnum> | fiRules<fiMessage> | fiRules<fiMap>;
|
|
521
|
+
interface fiShared {
|
|
450
522
|
/**
|
|
451
|
-
*
|
|
452
|
-
*
|
|
453
|
-
* @generated from protobuf field: string ticker = 1
|
|
454
|
-
*/
|
|
455
|
-
ticker: string;
|
|
456
|
-
/**
|
|
457
|
-
* Oracle base currency
|
|
458
|
-
*
|
|
459
|
-
* @generated from protobuf field: string oracle_base = 2
|
|
523
|
+
* The field number of the .proto field.
|
|
460
524
|
*/
|
|
461
|
-
|
|
525
|
+
no: number;
|
|
462
526
|
/**
|
|
463
|
-
*
|
|
464
|
-
*
|
|
465
|
-
* @generated from protobuf field: string oracle_quote = 3
|
|
527
|
+
* The original name of the .proto field.
|
|
466
528
|
*/
|
|
467
|
-
|
|
529
|
+
name: string;
|
|
468
530
|
/**
|
|
469
|
-
*
|
|
470
|
-
*
|
|
471
|
-
* @generated from protobuf field: injective.oracle.v1beta1.OracleType oracle_type = 4
|
|
531
|
+
* The name of the field as used in generated code.
|
|
472
532
|
*/
|
|
473
|
-
|
|
533
|
+
localName: string;
|
|
474
534
|
/**
|
|
475
|
-
*
|
|
476
|
-
*
|
|
477
|
-
* @generated from protobuf field: uint32 oracle_scale_factor = 5
|
|
535
|
+
* The name for JSON serialization / deserialization.
|
|
478
536
|
*/
|
|
479
|
-
|
|
537
|
+
jsonName: string;
|
|
480
538
|
/**
|
|
481
|
-
*
|
|
482
|
-
*
|
|
483
|
-
* @generated from protobuf field: string quote_denom = 6
|
|
539
|
+
* The name of the `oneof` group, if this field belongs to one.
|
|
484
540
|
*/
|
|
485
|
-
|
|
541
|
+
oneof: string | undefined;
|
|
486
542
|
/**
|
|
487
|
-
*
|
|
488
|
-
*
|
|
489
|
-
* @generated from protobuf field: string market_id = 7
|
|
543
|
+
* Contains custom field options from the .proto source in JSON format.
|
|
490
544
|
*/
|
|
491
|
-
|
|
545
|
+
options?: {
|
|
546
|
+
[extensionName: string]: JsonValue;
|
|
547
|
+
};
|
|
548
|
+
}
|
|
549
|
+
interface fiScalar extends fiShared {
|
|
550
|
+
kind: 'scalar';
|
|
492
551
|
/**
|
|
493
|
-
*
|
|
494
|
-
* market
|
|
495
|
-
*
|
|
496
|
-
* @generated from protobuf field: string initial_margin_ratio = 8
|
|
552
|
+
* Scalar type of the field.
|
|
497
553
|
*/
|
|
498
|
-
|
|
554
|
+
T: ScalarType;
|
|
499
555
|
/**
|
|
500
|
-
*
|
|
501
|
-
*
|
|
556
|
+
* Representation of 64 bit integral types (int64, uint64, sint64,
|
|
557
|
+
* fixed64, sfixed64).
|
|
502
558
|
*
|
|
503
|
-
*
|
|
559
|
+
* If this option is set for other scalar types, it is ignored.
|
|
560
|
+
* Omitting this option is equivalent to `STRING`.
|
|
504
561
|
*/
|
|
505
|
-
|
|
562
|
+
L?: LongType;
|
|
506
563
|
/**
|
|
507
|
-
*
|
|
508
|
-
*
|
|
509
|
-
* @generated from protobuf field: string maker_fee_rate = 10
|
|
564
|
+
* Is the field repeated?
|
|
510
565
|
*/
|
|
511
|
-
|
|
566
|
+
repeat: RepeatType;
|
|
512
567
|
/**
|
|
513
|
-
*
|
|
514
|
-
*
|
|
515
|
-
* @generated from protobuf field: string taker_fee_rate = 11
|
|
568
|
+
* Is the field optional?
|
|
516
569
|
*/
|
|
517
|
-
|
|
570
|
+
opt: boolean;
|
|
571
|
+
}
|
|
572
|
+
interface fiMessage extends fiShared {
|
|
573
|
+
kind: 'message';
|
|
518
574
|
/**
|
|
519
|
-
*
|
|
520
|
-
* with the relayer in a derivative market
|
|
521
|
-
*
|
|
522
|
-
* @generated from protobuf field: string relayer_fee_share_rate = 12
|
|
575
|
+
* Message handler for the field.
|
|
523
576
|
*/
|
|
524
|
-
|
|
577
|
+
T: () => IMessageType<any>;
|
|
525
578
|
/**
|
|
526
|
-
*
|
|
527
|
-
* futures market
|
|
528
|
-
*
|
|
529
|
-
* @generated from protobuf field: bool isPerpetual = 13
|
|
579
|
+
* Is the field repeated?
|
|
530
580
|
*/
|
|
531
|
-
|
|
581
|
+
repeat: RepeatType;
|
|
582
|
+
}
|
|
583
|
+
interface fiEnum extends fiShared {
|
|
584
|
+
kind: 'enum';
|
|
532
585
|
/**
|
|
533
|
-
*
|
|
534
|
-
*
|
|
535
|
-
* @generated from protobuf field: injective.exchange.v1beta1.MarketStatus status = 14
|
|
586
|
+
* Enum type information for the field.
|
|
536
587
|
*/
|
|
537
|
-
|
|
588
|
+
T: () => EnumInfo;
|
|
538
589
|
/**
|
|
539
|
-
*
|
|
540
|
-
* required for orders in the market (in chain format)
|
|
541
|
-
*
|
|
542
|
-
* @generated from protobuf field: string min_price_tick_size = 15
|
|
590
|
+
* Is the field repeated?
|
|
543
591
|
*/
|
|
544
|
-
|
|
592
|
+
repeat: RepeatType;
|
|
545
593
|
/**
|
|
546
|
-
*
|
|
547
|
-
* required for orders in the market (in chain format)
|
|
548
|
-
*
|
|
549
|
-
* @generated from protobuf field: string min_quantity_tick_size = 16
|
|
594
|
+
* Is the field optional?
|
|
550
595
|
*/
|
|
551
|
-
|
|
596
|
+
opt: boolean;
|
|
597
|
+
}
|
|
598
|
+
interface fiMap extends fiShared {
|
|
599
|
+
kind: 'map';
|
|
552
600
|
/**
|
|
553
|
-
*
|
|
554
|
-
* orders in the market (in chain format)
|
|
601
|
+
* Map key type.
|
|
555
602
|
*
|
|
556
|
-
*
|
|
603
|
+
* The key_type can be any integral or string type
|
|
604
|
+
* (so, any scalar type except for floating point
|
|
605
|
+
* types and bytes)
|
|
557
606
|
*/
|
|
558
|
-
|
|
607
|
+
K: Exclude<ScalarType, ScalarType.FLOAT | ScalarType.DOUBLE | ScalarType.BYTES>;
|
|
559
608
|
/**
|
|
560
|
-
*
|
|
561
|
-
*
|
|
562
|
-
* @generated from protobuf field: string admin = 18
|
|
609
|
+
* Map value type. Can be a `ScalarType`, enum type information,
|
|
610
|
+
* or type handler for a message.
|
|
563
611
|
*/
|
|
564
|
-
|
|
612
|
+
V: {
|
|
613
|
+
kind: 'scalar';
|
|
614
|
+
T: ScalarType;
|
|
615
|
+
L?: LongType;
|
|
616
|
+
} | {
|
|
617
|
+
kind: 'enum';
|
|
618
|
+
T: () => EnumInfo;
|
|
619
|
+
} | {
|
|
620
|
+
kind: 'message';
|
|
621
|
+
T: () => IMessageType<any>;
|
|
622
|
+
};
|
|
623
|
+
}
|
|
624
|
+
declare type fiRules<T> = Omit<T, 'oneof' | 'repeat' | 'opt'> & ({
|
|
625
|
+
repeat: RepeatType.NO;
|
|
626
|
+
opt: false;
|
|
627
|
+
oneof: undefined;
|
|
628
|
+
} | {
|
|
629
|
+
repeat: RepeatType.NO;
|
|
630
|
+
opt: true;
|
|
631
|
+
oneof: undefined;
|
|
632
|
+
} | {
|
|
633
|
+
repeat: RepeatType.PACKED | RepeatType.UNPACKED;
|
|
634
|
+
opt: false;
|
|
635
|
+
oneof: undefined;
|
|
636
|
+
} | {
|
|
637
|
+
repeat: RepeatType.NO;
|
|
638
|
+
opt: false;
|
|
639
|
+
oneof: string;
|
|
640
|
+
});
|
|
641
|
+
/**
|
|
642
|
+
* Scalar value types. This is a subset of field types declared by protobuf
|
|
643
|
+
* enum google.protobuf.FieldDescriptorProto.Type The types GROUP and MESSAGE
|
|
644
|
+
* are omitted, but the numerical values are identical.
|
|
645
|
+
*/
|
|
646
|
+
declare enum ScalarType {
|
|
647
|
+
DOUBLE = 1,
|
|
648
|
+
FLOAT = 2,
|
|
649
|
+
INT64 = 3,
|
|
650
|
+
UINT64 = 4,
|
|
651
|
+
INT32 = 5,
|
|
652
|
+
FIXED64 = 6,
|
|
653
|
+
FIXED32 = 7,
|
|
654
|
+
BOOL = 8,
|
|
655
|
+
STRING = 9,
|
|
656
|
+
BYTES = 12,
|
|
657
|
+
UINT32 = 13,
|
|
658
|
+
SFIXED32 = 15,
|
|
659
|
+
SFIXED64 = 16,
|
|
660
|
+
SINT32 = 17,
|
|
661
|
+
SINT64 = 18,
|
|
662
|
+
}
|
|
663
|
+
/**
|
|
664
|
+
* JavaScript representation of 64 bit integral types. Equivalent to the
|
|
665
|
+
* field option "jstype".
|
|
666
|
+
*
|
|
667
|
+
* By default, protobuf-ts represents 64 bit types as `bigint`.
|
|
668
|
+
*
|
|
669
|
+
* You can change the default behaviour by enabling the plugin parameter
|
|
670
|
+
* `long_type_string`, which will represent 64 bit types as `string`.
|
|
671
|
+
*
|
|
672
|
+
* Alternatively, you can change the behaviour for individual fields
|
|
673
|
+
* with the field option "jstype":
|
|
674
|
+
*
|
|
675
|
+
* ```protobuf
|
|
676
|
+
* uint64 my_field = 1 [jstype = JS_STRING];
|
|
677
|
+
* uint64 other_field = 2 [jstype = JS_NUMBER];
|
|
678
|
+
* ```
|
|
679
|
+
*/
|
|
680
|
+
declare enum LongType {
|
|
565
681
|
/**
|
|
566
|
-
*
|
|
682
|
+
* Use JavaScript `bigint`.
|
|
567
683
|
*
|
|
568
|
-
*
|
|
684
|
+
* Field option `[jstype = JS_NORMAL]`.
|
|
569
685
|
*/
|
|
570
|
-
|
|
686
|
+
BIGINT = 0,
|
|
571
687
|
/**
|
|
572
|
-
*
|
|
688
|
+
* Use JavaScript `string`.
|
|
573
689
|
*
|
|
574
|
-
*
|
|
690
|
+
* Field option `[jstype = JS_STRING]`.
|
|
575
691
|
*/
|
|
576
|
-
|
|
692
|
+
STRING = 1,
|
|
577
693
|
/**
|
|
578
|
-
*
|
|
694
|
+
* Use JavaScript `number`.
|
|
579
695
|
*
|
|
580
|
-
*
|
|
581
|
-
*/
|
|
582
|
-
reduceMarginRatio: string;
|
|
583
|
-
/**
|
|
584
|
-
* open_notional_cap defines the maximum open notional for the market
|
|
696
|
+
* Large values will loose precision.
|
|
585
697
|
*
|
|
586
|
-
*
|
|
698
|
+
* Field option `[jstype = JS_NUMBER]`.
|
|
587
699
|
*/
|
|
588
|
-
|
|
700
|
+
NUMBER = 2,
|
|
589
701
|
}
|
|
590
702
|
/**
|
|
591
|
-
*
|
|
703
|
+
* Protobuf 2.1.0 introduced packed repeated fields.
|
|
704
|
+
* Setting the field option `[packed = true]` enables packing.
|
|
592
705
|
*
|
|
593
|
-
*
|
|
706
|
+
* In proto3, all repeated fields are packed by default.
|
|
707
|
+
* Setting the field option `[packed = false]` disables packing.
|
|
708
|
+
*
|
|
709
|
+
* Packed repeated fields are encoded with a single tag,
|
|
710
|
+
* then a length-delimiter, then the element values.
|
|
711
|
+
*
|
|
712
|
+
* Unpacked repeated fields are encoded with a tag and
|
|
713
|
+
* value for each element.
|
|
714
|
+
*
|
|
715
|
+
* `bytes` and `string` cannot be packed.
|
|
594
716
|
*/
|
|
595
|
-
|
|
717
|
+
declare enum RepeatType {
|
|
596
718
|
/**
|
|
597
|
-
*
|
|
598
|
-
*
|
|
599
|
-
* @generated from protobuf field: string ticker = 1
|
|
719
|
+
* The field is not repeated.
|
|
600
720
|
*/
|
|
601
|
-
|
|
721
|
+
NO = 0,
|
|
602
722
|
/**
|
|
603
|
-
*
|
|
604
|
-
*
|
|
605
|
-
* @generated from protobuf field: string oracle_symbol = 2
|
|
723
|
+
* The field is repeated and should be packed.
|
|
724
|
+
* Invalid for `bytes` and `string`, they cannot be packed.
|
|
606
725
|
*/
|
|
607
|
-
|
|
726
|
+
PACKED = 1,
|
|
608
727
|
/**
|
|
609
|
-
*
|
|
610
|
-
*
|
|
611
|
-
* @generated from protobuf field: string oracle_provider = 3
|
|
728
|
+
* The field is repeated but should not be packed.
|
|
729
|
+
* The only valid repeat type for repeated `bytes` and `string`.
|
|
612
730
|
*/
|
|
613
|
-
|
|
731
|
+
UNPACKED = 2,
|
|
732
|
+
}
|
|
733
|
+
//#endregion
|
|
734
|
+
//#region ../../node_modules/.pnpm/@protobuf-ts+runtime@2.11.1/node_modules/@protobuf-ts/runtime/build/types/message-type-contract.d.ts
|
|
735
|
+
/**
|
|
736
|
+
* Similar to `Partial<T>`, but recursive, and keeps `oneof` groups
|
|
737
|
+
* intact.
|
|
738
|
+
*/
|
|
739
|
+
declare type PartialMessage<T extends object> = { [K in keyof T]?: PartialField<T[K]> };
|
|
740
|
+
declare type PartialField<T> = T extends (Date | Uint8Array | bigint | boolean | string | number) ? T : T extends Array<infer U> ? Array<PartialField<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<PartialField<U>> : T extends {
|
|
741
|
+
oneofKind: string;
|
|
742
|
+
} ? T : T extends {
|
|
743
|
+
oneofKind: undefined;
|
|
744
|
+
} ? T : T extends object ? PartialMessage<T> : T;
|
|
745
|
+
/**
|
|
746
|
+
* A message type provides an API to work with messages of a specific type.
|
|
747
|
+
* It also exposes reflection information that can be used to work with a
|
|
748
|
+
* message of unknown type.
|
|
749
|
+
*/
|
|
750
|
+
interface IMessageType<T extends object> extends MessageInfo {
|
|
614
751
|
/**
|
|
615
|
-
*
|
|
752
|
+
* The protobuf type name of the message, including package and
|
|
753
|
+
* parent types if present.
|
|
616
754
|
*
|
|
617
|
-
*
|
|
755
|
+
* Examples:
|
|
756
|
+
* 'MyNamespaceLessMessage'
|
|
757
|
+
* 'my_package.MyMessage'
|
|
758
|
+
* 'my_package.ParentMessage.ChildMessage'
|
|
618
759
|
*/
|
|
619
|
-
|
|
760
|
+
readonly typeName: string;
|
|
620
761
|
/**
|
|
621
|
-
*
|
|
622
|
-
*
|
|
623
|
-
* @generated from protobuf field: uint32 oracle_scale_factor = 5
|
|
762
|
+
* Simple information for each message field, in the order
|
|
763
|
+
* of declaration in the .proto.
|
|
624
764
|
*/
|
|
625
|
-
|
|
765
|
+
readonly fields: readonly FieldInfo[];
|
|
626
766
|
/**
|
|
627
|
-
*
|
|
628
|
-
*
|
|
629
|
-
* @generated from protobuf field: int64 expiration_timestamp = 6
|
|
767
|
+
* Contains custom message options from the .proto source in JSON format.
|
|
630
768
|
*/
|
|
631
|
-
|
|
769
|
+
readonly options: {
|
|
770
|
+
[extensionName: string]: JsonValue;
|
|
771
|
+
};
|
|
632
772
|
/**
|
|
633
|
-
*
|
|
634
|
-
*
|
|
635
|
-
* @generated from protobuf field: int64 settlement_timestamp = 7
|
|
773
|
+
* Contains the prototype for messages returned by create() which
|
|
774
|
+
* includes the `MESSAGE_TYPE` symbol pointing back to `this`.
|
|
636
775
|
*/
|
|
637
|
-
|
|
776
|
+
readonly messagePrototype?: Readonly<{}> | undefined;
|
|
638
777
|
/**
|
|
639
|
-
*
|
|
778
|
+
* Create a new message with default values.
|
|
640
779
|
*
|
|
641
|
-
*
|
|
780
|
+
* For example, a protobuf `string name = 1;` has the default value `""`.
|
|
642
781
|
*/
|
|
643
|
-
|
|
782
|
+
create(): T;
|
|
644
783
|
/**
|
|
645
|
-
*
|
|
784
|
+
* Create a new message from partial data.
|
|
646
785
|
*
|
|
647
|
-
*
|
|
648
|
-
*/
|
|
649
|
-
quoteDenom: string;
|
|
650
|
-
/**
|
|
651
|
-
* Unique market ID.
|
|
786
|
+
* Unknown fields are discarded.
|
|
652
787
|
*
|
|
653
|
-
*
|
|
788
|
+
* `PartialMessage<T>` is similar to `Partial<T>`,
|
|
789
|
+
* but it is recursive, and it keeps `oneof` groups
|
|
790
|
+
* intact.
|
|
654
791
|
*/
|
|
655
|
-
|
|
792
|
+
create(value: PartialMessage<T>): T;
|
|
656
793
|
/**
|
|
657
|
-
*
|
|
658
|
-
*
|
|
659
|
-
* @generated from protobuf field: string maker_fee_rate = 11
|
|
794
|
+
* Create a new message from binary format.
|
|
660
795
|
*/
|
|
661
|
-
|
|
796
|
+
fromBinary(data: Uint8Array, options?: Partial<BinaryReadOptions>): T;
|
|
662
797
|
/**
|
|
663
|
-
*
|
|
664
|
-
*
|
|
665
|
-
* @generated from protobuf field: string taker_fee_rate = 12
|
|
798
|
+
* Write the message to binary format.
|
|
666
799
|
*/
|
|
667
|
-
|
|
800
|
+
toBinary(message: T, options?: Partial<BinaryWriteOptions>): Uint8Array;
|
|
668
801
|
/**
|
|
669
|
-
*
|
|
670
|
-
* with the relayer in a derivative market
|
|
671
|
-
*
|
|
672
|
-
* @generated from protobuf field: string relayer_fee_share_rate = 13
|
|
802
|
+
* Read a new message from a JSON value.
|
|
673
803
|
*/
|
|
674
|
-
|
|
804
|
+
fromJson(json: JsonValue, options?: Partial<JsonReadOptions>): T;
|
|
675
805
|
/**
|
|
676
|
-
*
|
|
677
|
-
*
|
|
678
|
-
* @generated from protobuf field: injective.exchange.v1beta1.MarketStatus status = 14
|
|
806
|
+
* Read a new message from a JSON string.
|
|
807
|
+
* This is equivalent to `T.fromJson(JSON.parse(json))`.
|
|
679
808
|
*/
|
|
680
|
-
|
|
809
|
+
fromJsonString(json: string, options?: Partial<JsonReadOptions>): T;
|
|
681
810
|
/**
|
|
682
|
-
*
|
|
683
|
-
* required for orders in the market
|
|
684
|
-
*
|
|
685
|
-
* @generated from protobuf field: string min_price_tick_size = 15
|
|
811
|
+
* Convert the message to canonical JSON value.
|
|
686
812
|
*/
|
|
687
|
-
|
|
813
|
+
toJson(message: T, options?: Partial<JsonWriteOptions>): JsonValue;
|
|
688
814
|
/**
|
|
689
|
-
*
|
|
690
|
-
*
|
|
691
|
-
*
|
|
692
|
-
* @generated from protobuf field: string min_quantity_tick_size = 16
|
|
815
|
+
* Convert the message to canonical JSON string.
|
|
816
|
+
* This is equivalent to `JSON.stringify(T.toJson(t))`
|
|
693
817
|
*/
|
|
694
|
-
|
|
818
|
+
toJsonString(message: T, options?: Partial<JsonWriteStringOptions>): string;
|
|
695
819
|
/**
|
|
696
|
-
*
|
|
820
|
+
* Clone the message.
|
|
821
|
+
*
|
|
822
|
+
* Unknown fields are discarded.
|
|
697
823
|
*/
|
|
698
|
-
|
|
824
|
+
clone(message: T): T;
|
|
699
825
|
/**
|
|
700
|
-
*
|
|
701
|
-
* orders in the market
|
|
826
|
+
* Copy partial data into the target message.
|
|
702
827
|
*
|
|
703
|
-
*
|
|
828
|
+
* If a singular scalar or enum field is present in the source, it
|
|
829
|
+
* replaces the field in the target.
|
|
830
|
+
*
|
|
831
|
+
* If a singular message field is present in the source, it is merged
|
|
832
|
+
* with the target field by calling mergePartial() of the responsible
|
|
833
|
+
* message type.
|
|
834
|
+
*
|
|
835
|
+
* If a repeated field is present in the source, its values replace
|
|
836
|
+
* all values in the target array, removing extraneous values.
|
|
837
|
+
* Repeated message fields are copied, not merged.
|
|
838
|
+
*
|
|
839
|
+
* If a map field is present in the source, entries are added to the
|
|
840
|
+
* target map, replacing entries with the same key. Entries that only
|
|
841
|
+
* exist in the target remain. Entries with message values are copied,
|
|
842
|
+
* not merged.
|
|
843
|
+
*
|
|
844
|
+
* Note that this function differs from protobuf merge semantics,
|
|
845
|
+
* which appends repeated fields.
|
|
704
846
|
*/
|
|
705
|
-
|
|
847
|
+
mergePartial(target: T, source: PartialMessage<T>): void;
|
|
706
848
|
/**
|
|
707
|
-
*
|
|
708
|
-
*
|
|
709
|
-
*
|
|
849
|
+
* Determines whether two message of the same type have the same field values.
|
|
850
|
+
* Checks for deep equality, traversing repeated fields, oneof groups, maps
|
|
851
|
+
* and messages recursively.
|
|
852
|
+
* Will also return true if both messages are `undefined`.
|
|
710
853
|
*/
|
|
711
|
-
|
|
854
|
+
equals(a: T | undefined, b: T | undefined): boolean;
|
|
712
855
|
/**
|
|
713
|
-
*
|
|
714
|
-
*
|
|
715
|
-
* @generated from protobuf field: uint32 quote_decimals = 20
|
|
856
|
+
* Is the given value assignable to our message type
|
|
857
|
+
* and contains no [excess properties](https://www.typescriptlang.org/docs/handbook/interfaces.html#excess-property-checks)?
|
|
716
858
|
*/
|
|
717
|
-
|
|
718
|
-
}
|
|
719
|
-
/**
|
|
720
|
-
* @generated from protobuf message injective.exchange.v1beta1.ExpiryFuturesMarketInfo
|
|
721
|
-
*/
|
|
722
|
-
interface ExpiryFuturesMarketInfo {
|
|
859
|
+
is(arg: any, depth?: number): arg is T;
|
|
723
860
|
/**
|
|
724
|
-
*
|
|
725
|
-
*
|
|
726
|
-
* @generated from protobuf field: string market_id = 1
|
|
861
|
+
* Is the given value assignable to our message type,
|
|
862
|
+
* regardless of [excess properties](https://www.typescriptlang.org/docs/handbook/interfaces.html#excess-property-checks)?
|
|
727
863
|
*/
|
|
728
|
-
|
|
864
|
+
isAssignable(arg: any, depth?: number): arg is T;
|
|
729
865
|
/**
|
|
730
|
-
*
|
|
731
|
-
*
|
|
866
|
+
* This is an internal method. If you just want to read a message from
|
|
867
|
+
* JSON, use `fromJson()` or `fromJsonString()`.
|
|
732
868
|
*
|
|
733
|
-
*
|
|
869
|
+
* Reads JSON value and merges the fields into the target
|
|
870
|
+
* according to protobuf rules. If the target is omitted,
|
|
871
|
+
* a new instance is created first.
|
|
734
872
|
*/
|
|
735
|
-
|
|
873
|
+
internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: T): T;
|
|
736
874
|
/**
|
|
737
|
-
*
|
|
738
|
-
*
|
|
875
|
+
* This is an internal method. If you just want to write a message
|
|
876
|
+
* to JSON, use `toJson()` or `toJsonString().
|
|
739
877
|
*
|
|
740
|
-
*
|
|
878
|
+
* Writes JSON value and returns it.
|
|
741
879
|
*/
|
|
742
|
-
|
|
880
|
+
internalJsonWrite(message: T, options: JsonWriteOptions): JsonValue;
|
|
743
881
|
/**
|
|
744
|
-
*
|
|
745
|
-
*
|
|
882
|
+
* This is an internal method. If you just want to write a message
|
|
883
|
+
* in binary format, use `toBinary()`.
|
|
746
884
|
*
|
|
747
|
-
*
|
|
885
|
+
* Serializes the message in binary format and appends it to the given
|
|
886
|
+
* writer. Returns passed writer.
|
|
748
887
|
*/
|
|
749
|
-
|
|
888
|
+
internalBinaryWrite(message: T, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
750
889
|
/**
|
|
751
|
-
*
|
|
752
|
-
*
|
|
890
|
+
* This is an internal method. If you just want to read a message from
|
|
891
|
+
* binary data, use `fromBinary()`.
|
|
753
892
|
*
|
|
754
|
-
*
|
|
893
|
+
* Reads data from binary format and merges the fields into
|
|
894
|
+
* the target according to protobuf rules. If the target is
|
|
895
|
+
* omitted, a new instance is created first.
|
|
755
896
|
*/
|
|
756
|
-
|
|
897
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: T): T;
|
|
757
898
|
}
|
|
899
|
+
//#endregion
|
|
900
|
+
//#region ../../node_modules/.pnpm/@protobuf-ts+runtime@2.11.1/node_modules/@protobuf-ts/runtime/build/types/json-format-contract.d.ts
|
|
758
901
|
/**
|
|
759
|
-
*
|
|
902
|
+
* Options for parsing JSON data.
|
|
903
|
+
* All boolean options default to `false`.
|
|
760
904
|
*/
|
|
761
|
-
interface
|
|
905
|
+
interface JsonReadOptions {
|
|
762
906
|
/**
|
|
763
|
-
*
|
|
764
|
-
*
|
|
765
|
-
*
|
|
907
|
+
* Ignore unknown fields: Proto3 JSON parser should reject unknown fields
|
|
908
|
+
* by default. This option ignores unknown fields in parsing, as well as
|
|
909
|
+
* unrecognized enum string representations.
|
|
766
910
|
*/
|
|
767
|
-
|
|
911
|
+
ignoreUnknownFields: boolean;
|
|
768
912
|
/**
|
|
769
|
-
*
|
|
770
|
-
*
|
|
771
|
-
*
|
|
772
|
-
* @generated from protobuf field: string hourly_funding_rate_cap = 2
|
|
913
|
+
* This option is required to read `google.protobuf.Any`
|
|
914
|
+
* from JSON format.
|
|
773
915
|
*/
|
|
774
|
-
|
|
916
|
+
typeRegistry?: readonly IMessageType<any>[];
|
|
917
|
+
}
|
|
918
|
+
/**
|
|
919
|
+
* Options for serializing to JSON object.
|
|
920
|
+
* All boolean options default to `false`.
|
|
921
|
+
*/
|
|
922
|
+
interface JsonWriteOptions {
|
|
775
923
|
/**
|
|
776
|
-
*
|
|
777
|
-
*
|
|
778
|
-
*
|
|
924
|
+
* Emit fields with default values: Fields with default values are omitted
|
|
925
|
+
* by default in proto3 JSON output. This option overrides this behavior
|
|
926
|
+
* and outputs fields with their default values.
|
|
779
927
|
*/
|
|
780
|
-
|
|
928
|
+
emitDefaultValues: boolean;
|
|
781
929
|
/**
|
|
782
|
-
*
|
|
783
|
-
*
|
|
784
|
-
*
|
|
785
|
-
* @generated from protobuf field: int64 next_funding_timestamp = 4
|
|
930
|
+
* Emit enum values as integers instead of strings: The name of an enum
|
|
931
|
+
* value is used by default in JSON output. An option may be provided to
|
|
932
|
+
* use the numeric value of the enum value instead.
|
|
786
933
|
*/
|
|
787
|
-
|
|
934
|
+
enumAsInteger: boolean;
|
|
788
935
|
/**
|
|
789
|
-
*
|
|
790
|
-
*
|
|
791
|
-
*
|
|
792
|
-
*
|
|
936
|
+
* Use proto field name instead of lowerCamelCase name: By default proto3
|
|
937
|
+
* JSON printer should convert the field name to lowerCamelCase and use
|
|
938
|
+
* that as the JSON name. An implementation may provide an option to use
|
|
939
|
+
* proto field name as the JSON name instead. Proto3 JSON parsers are
|
|
940
|
+
* required to accept both the converted lowerCamelCase name and the proto
|
|
941
|
+
* field name.
|
|
793
942
|
*/
|
|
794
|
-
|
|
943
|
+
useProtoFieldName: boolean;
|
|
944
|
+
/**
|
|
945
|
+
* This option is required to write `google.protobuf.Any`
|
|
946
|
+
* to JSON format.
|
|
947
|
+
*/
|
|
948
|
+
typeRegistry?: readonly IMessageType<any>[];
|
|
795
949
|
}
|
|
796
950
|
/**
|
|
797
|
-
*
|
|
951
|
+
* Options for serializing to JSON string.
|
|
952
|
+
* All options default to `false` or `0`.
|
|
798
953
|
*/
|
|
799
|
-
interface
|
|
954
|
+
interface JsonWriteStringOptions extends JsonWriteOptions {
|
|
955
|
+
prettySpaces: number;
|
|
956
|
+
}
|
|
957
|
+
//#endregion
|
|
958
|
+
//#region ../../node_modules/.pnpm/@protobuf-ts+runtime-rpc@2.11.1/node_modules/@protobuf-ts/runtime-rpc/build/types/reflection-info.d.ts
|
|
959
|
+
/**
|
|
960
|
+
* Describes a protobuf service for runtime reflection.
|
|
961
|
+
*/
|
|
962
|
+
interface ServiceInfo {
|
|
800
963
|
/**
|
|
801
|
-
*
|
|
802
|
-
*
|
|
803
|
-
* @generated from protobuf field: string cumulative_funding = 1
|
|
964
|
+
* The protobuf type name of the service, including package name if
|
|
965
|
+
* present.
|
|
804
966
|
*/
|
|
805
|
-
|
|
967
|
+
readonly typeName: string;
|
|
806
968
|
/**
|
|
807
|
-
*
|
|
808
|
-
*
|
|
809
|
-
* used to compute the interval’s average premium for funding
|
|
810
|
-
*
|
|
811
|
-
* @generated from protobuf field: string cumulative_price = 2
|
|
969
|
+
* Information for each rpc method of the service, in the order of
|
|
970
|
+
* declaration in the source .proto.
|
|
812
971
|
*/
|
|
813
|
-
|
|
972
|
+
readonly methods: MethodInfo[];
|
|
814
973
|
/**
|
|
815
|
-
* the
|
|
816
|
-
*
|
|
817
|
-
* @generated from protobuf field: int64 last_timestamp = 3
|
|
974
|
+
* Contains custom service options from the .proto source in JSON format.
|
|
818
975
|
*/
|
|
819
|
-
|
|
976
|
+
readonly options: {
|
|
977
|
+
[extensionName: string]: JsonValue;
|
|
978
|
+
};
|
|
820
979
|
}
|
|
821
980
|
/**
|
|
822
|
-
*
|
|
981
|
+
* Describes a protobuf service method for runtime reflection.
|
|
823
982
|
*/
|
|
824
|
-
interface
|
|
983
|
+
interface MethodInfo<I extends object = any, O extends object = any> {
|
|
825
984
|
/**
|
|
826
|
-
*
|
|
827
|
-
*
|
|
828
|
-
* @generated from protobuf field: string market_id = 1
|
|
985
|
+
* The service this method belongs to.
|
|
829
986
|
*/
|
|
830
|
-
|
|
987
|
+
readonly service: ServiceInfo;
|
|
831
988
|
/**
|
|
832
|
-
*
|
|
833
|
-
*
|
|
834
|
-
* @generated from protobuf field: string settlement_price = 2
|
|
989
|
+
* The name of the method as declared in .proto
|
|
835
990
|
*/
|
|
836
|
-
|
|
837
|
-
}
|
|
838
|
-
/**
|
|
839
|
-
* @generated from protobuf message injective.exchange.v1beta1.MidPriceAndTOB
|
|
840
|
-
*/
|
|
841
|
-
interface MidPriceAndTOB {
|
|
991
|
+
readonly name: string;
|
|
842
992
|
/**
|
|
843
|
-
*
|
|
993
|
+
* The name of the method in the runtime.
|
|
994
|
+
*/
|
|
995
|
+
readonly localName: string;
|
|
996
|
+
/**
|
|
997
|
+
* The idempotency level as specified in .proto.
|
|
844
998
|
*
|
|
845
|
-
*
|
|
999
|
+
* For example, the following method declaration will set
|
|
1000
|
+
* `idempotency` to 'NO_SIDE_EFFECTS'.
|
|
1001
|
+
*
|
|
1002
|
+
* ```proto
|
|
1003
|
+
* rpc Foo (FooRequest) returns (FooResponse) {
|
|
1004
|
+
* option idempotency_level = NO_SIDE_EFFECTS
|
|
1005
|
+
* }
|
|
1006
|
+
* ```
|
|
1007
|
+
*
|
|
1008
|
+
* See `google/protobuf/descriptor.proto`, `MethodOptions`.
|
|
846
1009
|
*/
|
|
847
|
-
|
|
1010
|
+
readonly idempotency: undefined | 'NO_SIDE_EFFECTS' | 'IDEMPOTENT';
|
|
848
1011
|
/**
|
|
849
|
-
*
|
|
1012
|
+
* Was the rpc declared with server streaming?
|
|
850
1013
|
*
|
|
851
|
-
*
|
|
1014
|
+
* Example declaration:
|
|
1015
|
+
*
|
|
1016
|
+
* ```proto
|
|
1017
|
+
* rpc Foo (FooRequest) returns (stream FooResponse);
|
|
1018
|
+
* ```
|
|
852
1019
|
*/
|
|
853
|
-
|
|
1020
|
+
readonly serverStreaming: boolean;
|
|
854
1021
|
/**
|
|
855
|
-
*
|
|
1022
|
+
* Was the rpc declared with client streaming?
|
|
856
1023
|
*
|
|
857
|
-
*
|
|
1024
|
+
* Example declaration:
|
|
1025
|
+
*
|
|
1026
|
+
* ```proto
|
|
1027
|
+
* rpc Foo (stream FooRequest) returns (FooResponse);
|
|
1028
|
+
* ```
|
|
858
1029
|
*/
|
|
859
|
-
|
|
1030
|
+
readonly clientStreaming: boolean;
|
|
1031
|
+
/**
|
|
1032
|
+
* The generated type handler for the input message.
|
|
1033
|
+
* Provides methods to encode / decode binary or JSON format.
|
|
1034
|
+
*/
|
|
1035
|
+
readonly I: IMessageType<I>;
|
|
1036
|
+
/**
|
|
1037
|
+
* The generated type handler for the output message.
|
|
1038
|
+
* Provides methods to encode / decode binary or JSON format.
|
|
1039
|
+
*/
|
|
1040
|
+
readonly O: IMessageType<O>;
|
|
1041
|
+
/**
|
|
1042
|
+
* Contains custom method options from the .proto source in JSON format.
|
|
1043
|
+
*/
|
|
1044
|
+
readonly options: {
|
|
1045
|
+
[extensionName: string]: JsonValue;
|
|
1046
|
+
};
|
|
860
1047
|
}
|
|
1048
|
+
//#endregion
|
|
1049
|
+
//#region ../../node_modules/.pnpm/@protobuf-ts+runtime-rpc@2.11.1/node_modules/@protobuf-ts/runtime-rpc/build/types/rpc-metadata.d.ts
|
|
861
1050
|
/**
|
|
862
|
-
*
|
|
1051
|
+
* RPC metadata provide optional additional information about a request or
|
|
1052
|
+
* response.
|
|
863
1053
|
*
|
|
864
|
-
*
|
|
1054
|
+
* They can be transmitted at:
|
|
1055
|
+
* - the start of a request (a.k.a. request headers)
|
|
1056
|
+
* - the start of a response (a.k.a. response headers)
|
|
1057
|
+
* - the end of a response (a.k.a. response trailers)
|
|
1058
|
+
*
|
|
1059
|
+
* Keys should only contain the characters a-z 0-9 _ . -
|
|
1060
|
+
*
|
|
1061
|
+
* Values can be US ASCII or binary. If a key ends with `-bin`, it contains
|
|
1062
|
+
* binary data in base64 encoding.
|
|
1063
|
+
*
|
|
1064
|
+
* You can encode protobuf messages as binary metadata values, including
|
|
1065
|
+
* `google.protobuf.Any`.
|
|
865
1066
|
*/
|
|
866
|
-
interface
|
|
1067
|
+
interface RpcMetadata {
|
|
1068
|
+
[key: string]: string | string[];
|
|
1069
|
+
}
|
|
1070
|
+
//#endregion
|
|
1071
|
+
//#region ../../node_modules/.pnpm/@protobuf-ts+runtime-rpc@2.11.1/node_modules/@protobuf-ts/runtime-rpc/build/types/rpc-status.d.ts
|
|
1072
|
+
/**
|
|
1073
|
+
* A RPC status consists of a code and a text message.
|
|
1074
|
+
*
|
|
1075
|
+
* The status is usually returned from the server as a response trailer,
|
|
1076
|
+
* but a `RpcTransport` may also read the status from response headers.
|
|
1077
|
+
*/
|
|
1078
|
+
interface RpcStatus {
|
|
867
1079
|
/**
|
|
868
|
-
* A
|
|
869
|
-
*
|
|
1080
|
+
* A status code as a string. The value depends on the `RpcTransport` being
|
|
1081
|
+
* used.
|
|
1082
|
+
*
|
|
1083
|
+
* For gRPC, it will be the string value of a StatusCode enum value
|
|
1084
|
+
* https://github.com/grpc/grpc/blob/a19d8dcfb50caa81cddc25bc1a6afdd7a2f497b7/include/grpcpp/impl/codegen/status_code_enum.h#L24
|
|
1085
|
+
*
|
|
1086
|
+
* For Twirp, it will be one of the Twirp error codes as string:
|
|
1087
|
+
* https://twitchtv.github.io/twirp/docs/spec_v5.html#error-codes
|
|
870
1088
|
*
|
|
871
|
-
* @generated from protobuf field: string ticker = 1
|
|
872
1089
|
*/
|
|
873
|
-
|
|
1090
|
+
code: string;
|
|
874
1091
|
/**
|
|
875
|
-
*
|
|
876
|
-
*
|
|
877
|
-
* @generated from protobuf field: string base_denom = 2
|
|
1092
|
+
* A text message that may describe the condition.
|
|
878
1093
|
*/
|
|
879
|
-
|
|
1094
|
+
detail: string;
|
|
1095
|
+
}
|
|
1096
|
+
//#endregion
|
|
1097
|
+
//#region ../../node_modules/.pnpm/@protobuf-ts+runtime-rpc@2.11.1/node_modules/@protobuf-ts/runtime-rpc/build/types/rpc-call-shared.d.ts
|
|
1098
|
+
interface RpcCallShared<I extends object, O extends object> {
|
|
880
1099
|
/**
|
|
881
|
-
*
|
|
882
|
-
*
|
|
883
|
-
* @generated from protobuf field: string quote_denom = 3
|
|
1100
|
+
* Reflection information about this call.
|
|
884
1101
|
*/
|
|
885
|
-
|
|
1102
|
+
readonly method: MethodInfo<I, O>;
|
|
886
1103
|
/**
|
|
887
|
-
*
|
|
1104
|
+
* Request headers being sent with the request.
|
|
888
1105
|
*
|
|
889
|
-
*
|
|
1106
|
+
* Request headers are provided in the `meta` property of the
|
|
1107
|
+
* `RpcOptions` passed to a call.
|
|
890
1108
|
*/
|
|
891
|
-
|
|
1109
|
+
readonly requestHeaders: Readonly<RpcMetadata>;
|
|
892
1110
|
/**
|
|
893
|
-
*
|
|
1111
|
+
* The response headers that the server sent.
|
|
894
1112
|
*
|
|
895
|
-
*
|
|
1113
|
+
* This promise will reject with a `RpcError` when the server sends an
|
|
1114
|
+
* error status code.
|
|
896
1115
|
*/
|
|
897
|
-
|
|
1116
|
+
readonly headers: Promise<RpcMetadata>;
|
|
898
1117
|
/**
|
|
899
|
-
*
|
|
900
|
-
* with the relayer in a derivative market
|
|
1118
|
+
* The response status the server replied with.
|
|
901
1119
|
*
|
|
902
|
-
*
|
|
1120
|
+
* This promise will resolve when the server has finished the request
|
|
1121
|
+
* successfully.
|
|
1122
|
+
*
|
|
1123
|
+
* If the server replies with an error status, this promise will
|
|
1124
|
+
* reject with a `RpcError`.
|
|
903
1125
|
*/
|
|
904
|
-
|
|
1126
|
+
readonly status: Promise<RpcStatus>;
|
|
905
1127
|
/**
|
|
906
|
-
*
|
|
1128
|
+
* The trailers the server attached to the response.
|
|
907
1129
|
*
|
|
908
|
-
*
|
|
1130
|
+
* This promise will resolve when the server has finished the request
|
|
1131
|
+
* successfully.
|
|
1132
|
+
*
|
|
1133
|
+
* If the server replies with an error status, this promise will
|
|
1134
|
+
* reject with a `RpcError`.
|
|
909
1135
|
*/
|
|
910
|
-
|
|
1136
|
+
readonly trailers: Promise<RpcMetadata>;
|
|
1137
|
+
}
|
|
1138
|
+
//#endregion
|
|
1139
|
+
//#region ../../node_modules/.pnpm/@protobuf-ts+runtime-rpc@2.11.1/node_modules/@protobuf-ts/runtime-rpc/build/types/rpc-output-stream.d.ts
|
|
1140
|
+
/**
|
|
1141
|
+
* A stream of response messages. Messages can be read from the stream via
|
|
1142
|
+
* the AsyncIterable interface:
|
|
1143
|
+
*
|
|
1144
|
+
* ```typescript
|
|
1145
|
+
* for await (let message of response) {...
|
|
1146
|
+
* ```
|
|
1147
|
+
*
|
|
1148
|
+
* Some things to note:
|
|
1149
|
+
* - If an error occurs, the `for await` will throw it.
|
|
1150
|
+
* - If an error occurred before the `for await` was started, `for await`
|
|
1151
|
+
* will re-throw it.
|
|
1152
|
+
* - If the stream is already complete, the `for await` will be empty.
|
|
1153
|
+
* - If your `for await` consumes slower than the stream produces,
|
|
1154
|
+
* for example because you are relaying messages in a slow operation,
|
|
1155
|
+
* messages are queued.
|
|
1156
|
+
*/
|
|
1157
|
+
interface RpcOutputStream<T extends object = object> extends AsyncIterable<T> {
|
|
911
1158
|
/**
|
|
912
|
-
*
|
|
913
|
-
*
|
|
914
|
-
*
|
|
1159
|
+
* Add a callback for every new datum.
|
|
1160
|
+
* If a new message arrived, the "message" argument is set.
|
|
1161
|
+
* If an error occurred, the "error" argument is set.
|
|
1162
|
+
* If the stream is complete, the "complete" argument is `true`.
|
|
1163
|
+
* Only one of the arguments is used at a time.
|
|
915
1164
|
*/
|
|
916
|
-
|
|
1165
|
+
onNext(callback: NextCallback<T>): RemoveListenerFn;
|
|
917
1166
|
/**
|
|
918
|
-
*
|
|
919
|
-
* for orders in the market (in chain format)
|
|
920
|
-
*
|
|
921
|
-
* @generated from protobuf field: string min_price_tick_size = 9
|
|
1167
|
+
* Add a callback for every new message.
|
|
922
1168
|
*/
|
|
923
|
-
|
|
1169
|
+
onMessage(callback: MessageCallback<T>): RemoveListenerFn;
|
|
924
1170
|
/**
|
|
925
|
-
*
|
|
926
|
-
*
|
|
927
|
-
*
|
|
928
|
-
* @generated from protobuf field: string min_quantity_tick_size = 10
|
|
1171
|
+
* Add a callback for stream completion.
|
|
1172
|
+
* Called only when all messages have been read without error.
|
|
1173
|
+
* The stream is closed when this callback is called.
|
|
929
1174
|
*/
|
|
930
|
-
|
|
1175
|
+
onComplete(callback: CompleteCallback): RemoveListenerFn;
|
|
931
1176
|
/**
|
|
932
|
-
*
|
|
933
|
-
*
|
|
934
|
-
*
|
|
935
|
-
* @generated from protobuf field: string min_notional = 11
|
|
1177
|
+
* Add a callback for errors.
|
|
1178
|
+
* The stream is closed when this callback is called.
|
|
936
1179
|
*/
|
|
937
|
-
|
|
1180
|
+
onError(callback: ErrorCallback): RemoveListenerFn;
|
|
1181
|
+
}
|
|
1182
|
+
declare type NextCallback<T extends object> = (message: T | undefined, error: Error | undefined, complete: boolean) => void;
|
|
1183
|
+
declare type MessageCallback<T extends object> = (message: T) => void;
|
|
1184
|
+
declare type CompleteCallback = () => void;
|
|
1185
|
+
declare type ErrorCallback = (reason: Error) => void;
|
|
1186
|
+
declare type RemoveListenerFn = () => void;
|
|
1187
|
+
/**
|
|
1188
|
+
* A `RpcOutputStream` that you control.
|
|
1189
|
+
*/
|
|
1190
|
+
//#endregion
|
|
1191
|
+
//#region ../../node_modules/.pnpm/@protobuf-ts+runtime-rpc@2.11.1/node_modules/@protobuf-ts/runtime-rpc/build/types/server-streaming-call.d.ts
|
|
1192
|
+
/**
|
|
1193
|
+
* A server streaming RPC call. The client provides exactly one input message
|
|
1194
|
+
* but the server may respond with 0, 1, or more messages.
|
|
1195
|
+
*/
|
|
1196
|
+
declare class ServerStreamingCall<I extends object = object, O extends object = object> implements RpcCallShared<I, O>, PromiseLike<FinishedServerStreamingCall<I, O>> {
|
|
938
1197
|
/**
|
|
939
|
-
*
|
|
1198
|
+
* Reflection information about this call.
|
|
1199
|
+
*/
|
|
1200
|
+
readonly method: MethodInfo<I, O>;
|
|
1201
|
+
/**
|
|
1202
|
+
* Request headers being sent with the request.
|
|
940
1203
|
*
|
|
941
|
-
*
|
|
1204
|
+
* Request headers are provided in the `meta` property of the
|
|
1205
|
+
* `RpcOptions` passed to a call.
|
|
942
1206
|
*/
|
|
943
|
-
|
|
1207
|
+
readonly requestHeaders: Readonly<RpcMetadata>;
|
|
944
1208
|
/**
|
|
945
|
-
*
|
|
1209
|
+
* The request message being sent.
|
|
1210
|
+
*/
|
|
1211
|
+
readonly request: Readonly<I>;
|
|
1212
|
+
/**
|
|
1213
|
+
* The response headers that the server sent.
|
|
946
1214
|
*
|
|
947
|
-
*
|
|
1215
|
+
* This promise will reject with a `RpcError` when the server sends a
|
|
1216
|
+
* error status code.
|
|
948
1217
|
*/
|
|
949
|
-
|
|
1218
|
+
readonly headers: Promise<RpcMetadata>;
|
|
950
1219
|
/**
|
|
951
|
-
*
|
|
1220
|
+
* Response messages from the server.
|
|
1221
|
+
* This is an AsyncIterable that can be iterated with `await for .. of`.
|
|
1222
|
+
*/
|
|
1223
|
+
readonly responses: RpcOutputStream<O>;
|
|
1224
|
+
/**
|
|
1225
|
+
* The response status the server replied with.
|
|
952
1226
|
*
|
|
953
|
-
*
|
|
1227
|
+
* This promise will resolve when the server has finished the request
|
|
1228
|
+
* successfully.
|
|
1229
|
+
*
|
|
1230
|
+
* If the server replies with an error status, this promise will
|
|
1231
|
+
* reject with a `RpcError`.
|
|
954
1232
|
*/
|
|
955
|
-
|
|
1233
|
+
readonly status: Promise<RpcStatus>;
|
|
956
1234
|
/**
|
|
957
|
-
*
|
|
1235
|
+
* The trailers the server attached to the response.
|
|
958
1236
|
*
|
|
959
|
-
*
|
|
1237
|
+
* This promise will resolve when the server has finished the request
|
|
1238
|
+
* successfully.
|
|
1239
|
+
*
|
|
1240
|
+
* If the server replies with an error status, this promise will
|
|
1241
|
+
* reject with a `RpcError`.
|
|
960
1242
|
*/
|
|
961
|
-
|
|
1243
|
+
readonly trailers: Promise<RpcMetadata>;
|
|
1244
|
+
constructor(method: MethodInfo<I, O>, requestHeaders: Readonly<RpcMetadata>, request: Readonly<I>, headers: Promise<RpcMetadata>, response: RpcOutputStream<O>, status: Promise<RpcStatus>, trailers: Promise<RpcMetadata>);
|
|
1245
|
+
/**
|
|
1246
|
+
* Instead of awaiting the response status and trailers, you can
|
|
1247
|
+
* just as well await this call itself to receive the server outcome.
|
|
1248
|
+
* You should first setup some listeners to the `request` to
|
|
1249
|
+
* see the actual messages the server replied with.
|
|
1250
|
+
*/
|
|
1251
|
+
then<TResult1 = FinishedServerStreamingCall<I, O>, TResult2 = never>(onfulfilled?: ((value: FinishedServerStreamingCall<I, O>) => (PromiseLike<TResult1> | TResult1)) | undefined | null, onrejected?: ((reason: any) => (PromiseLike<TResult2> | TResult2)) | undefined | null): Promise<TResult1 | TResult2>;
|
|
1252
|
+
private promiseFinished;
|
|
962
1253
|
}
|
|
963
1254
|
/**
|
|
964
|
-
* A
|
|
965
|
-
*
|
|
966
|
-
* @generated from protobuf message injective.exchange.v1beta1.Deposit
|
|
1255
|
+
* A completed server streaming RPC call. The server will not send any more
|
|
1256
|
+
* messages.
|
|
967
1257
|
*/
|
|
968
|
-
interface
|
|
1258
|
+
interface FinishedServerStreamingCall<I extends object, O extends object> {
|
|
969
1259
|
/**
|
|
970
|
-
*
|
|
1260
|
+
* Reflection information about this call.
|
|
971
1261
|
*/
|
|
972
|
-
|
|
1262
|
+
readonly method: MethodInfo<I, O>;
|
|
973
1263
|
/**
|
|
974
|
-
*
|
|
1264
|
+
* Request headers being sent with the request.
|
|
975
1265
|
*/
|
|
976
|
-
|
|
1266
|
+
readonly requestHeaders: Readonly<RpcMetadata>;
|
|
1267
|
+
/**
|
|
1268
|
+
* The request message being sent.
|
|
1269
|
+
*/
|
|
1270
|
+
readonly request: Readonly<I>;
|
|
1271
|
+
/**
|
|
1272
|
+
* The response headers that the server sent.
|
|
1273
|
+
*/
|
|
1274
|
+
readonly headers: RpcMetadata;
|
|
1275
|
+
/**
|
|
1276
|
+
* The response status the server replied with.
|
|
1277
|
+
* The status code will always be OK.
|
|
1278
|
+
*/
|
|
1279
|
+
readonly status: RpcStatus;
|
|
1280
|
+
/**
|
|
1281
|
+
* The trailers the server attached to the response.
|
|
1282
|
+
*/
|
|
1283
|
+
readonly trailers: RpcMetadata;
|
|
977
1284
|
}
|
|
1285
|
+
//#endregion
|
|
1286
|
+
//#region ../../node_modules/.pnpm/@protobuf-ts+runtime-rpc@2.11.1/node_modules/@protobuf-ts/runtime-rpc/build/types/rpc-input-stream.d.ts
|
|
978
1287
|
/**
|
|
979
|
-
*
|
|
1288
|
+
* A stream of input messages.
|
|
980
1289
|
*/
|
|
981
|
-
interface
|
|
1290
|
+
interface RpcInputStream<T> {
|
|
982
1291
|
/**
|
|
983
|
-
*
|
|
1292
|
+
* Send a message down the stream.
|
|
1293
|
+
* Only one message can be send at a time.
|
|
984
1294
|
*/
|
|
985
|
-
|
|
1295
|
+
send(message: T): Promise<void>;
|
|
1296
|
+
/**
|
|
1297
|
+
* Complete / close the stream.
|
|
1298
|
+
* Can only be called if there is no pending send().
|
|
1299
|
+
* No send() should follow this call.
|
|
1300
|
+
*/
|
|
1301
|
+
complete(): Promise<void>;
|
|
986
1302
|
}
|
|
1303
|
+
//#endregion
|
|
1304
|
+
//#region ../../node_modules/.pnpm/@protobuf-ts+runtime-rpc@2.11.1/node_modules/@protobuf-ts/runtime-rpc/build/types/client-streaming-call.d.ts
|
|
987
1305
|
/**
|
|
988
|
-
*
|
|
1306
|
+
* A client streaming RPC call. This means that the clients sends 0, 1, or
|
|
1307
|
+
* more messages to the server, and the server replies with exactly one
|
|
1308
|
+
* message.
|
|
989
1309
|
*/
|
|
990
|
-
|
|
1310
|
+
declare class ClientStreamingCall<I extends object = object, O extends object = object> implements RpcCallShared<I, O> {
|
|
991
1311
|
/**
|
|
992
|
-
*
|
|
993
|
-
*
|
|
994
|
-
* @generated from protobuf field: string subaccount_id = 1
|
|
1312
|
+
* Reflection information about this call.
|
|
995
1313
|
*/
|
|
996
|
-
|
|
1314
|
+
readonly method: MethodInfo<I, O>;
|
|
997
1315
|
/**
|
|
998
|
-
*
|
|
1316
|
+
* Request headers being sent with the request.
|
|
999
1317
|
*
|
|
1000
|
-
*
|
|
1318
|
+
* Request headers are provided in the `meta` property of the
|
|
1319
|
+
* `RpcOptions` passed to a call.
|
|
1001
1320
|
*/
|
|
1002
|
-
|
|
1321
|
+
readonly requestHeaders: Readonly<RpcMetadata>;
|
|
1003
1322
|
/**
|
|
1004
|
-
*
|
|
1005
|
-
*
|
|
1006
|
-
* @generated from protobuf field: string price = 3
|
|
1323
|
+
* Request messages from the client.
|
|
1007
1324
|
*/
|
|
1008
|
-
|
|
1325
|
+
readonly requests: RpcInputStream<I>;
|
|
1009
1326
|
/**
|
|
1010
|
-
*
|
|
1327
|
+
* The response headers that the server sent.
|
|
1011
1328
|
*
|
|
1012
|
-
*
|
|
1329
|
+
* This promise will reject with a `RpcError` when the server sends a
|
|
1330
|
+
* error status code.
|
|
1013
1331
|
*/
|
|
1014
|
-
|
|
1332
|
+
readonly headers: Promise<RpcMetadata>;
|
|
1015
1333
|
/**
|
|
1016
|
-
*
|
|
1334
|
+
* The message the server replied with.
|
|
1017
1335
|
*/
|
|
1018
|
-
|
|
1019
|
-
}
|
|
1020
|
-
/**
|
|
1021
|
-
* @generated from protobuf message injective.exchange.v1beta1.SpotOrder
|
|
1022
|
-
*/
|
|
1023
|
-
interface SpotOrder {
|
|
1336
|
+
readonly response: Promise<O>;
|
|
1024
1337
|
/**
|
|
1025
|
-
*
|
|
1338
|
+
* The response status the server replied with.
|
|
1026
1339
|
*
|
|
1027
|
-
*
|
|
1028
|
-
|
|
1029
|
-
marketId: string;
|
|
1030
|
-
/**
|
|
1031
|
-
* order_info contains the information of the order
|
|
1340
|
+
* This promise will resolve when the server has finished the request
|
|
1341
|
+
* successfully.
|
|
1032
1342
|
*
|
|
1033
|
-
*
|
|
1343
|
+
* If the server replies with an error status, this promise will
|
|
1344
|
+
* reject with a `RpcError`.
|
|
1034
1345
|
*/
|
|
1035
|
-
|
|
1346
|
+
readonly status: Promise<RpcStatus>;
|
|
1036
1347
|
/**
|
|
1037
|
-
*
|
|
1348
|
+
* The trailers the server attached to the response.
|
|
1038
1349
|
*
|
|
1039
|
-
*
|
|
1350
|
+
* This promise will resolve when the server has finished the request
|
|
1351
|
+
* successfully.
|
|
1352
|
+
*
|
|
1353
|
+
* If the server replies with an error status, this promise will
|
|
1354
|
+
* reject with a `RpcError`.
|
|
1040
1355
|
*/
|
|
1041
|
-
|
|
1356
|
+
readonly trailers: Promise<RpcMetadata>;
|
|
1357
|
+
constructor(method: MethodInfo<I, O>, requestHeaders: Readonly<RpcMetadata>, request: RpcInputStream<I>, headers: Promise<RpcMetadata>, response: Promise<O>, status: Promise<RpcStatus>, trailers: Promise<RpcMetadata>);
|
|
1042
1358
|
/**
|
|
1043
|
-
*
|
|
1044
|
-
*
|
|
1045
|
-
*
|
|
1359
|
+
* Instead of awaiting the response status and trailers, you can
|
|
1360
|
+
* just as well await this call itself to receive the server outcome.
|
|
1361
|
+
* Note that it may still be valid to send more request messages.
|
|
1046
1362
|
*/
|
|
1047
|
-
|
|
1363
|
+
then<TResult1 = FinishedClientStreamingCall<I, O>, TResult2 = never>(onfulfilled?: ((value: FinishedClientStreamingCall<I, O>) => (PromiseLike<TResult1> | TResult1)) | undefined | null, onrejected?: ((reason: any) => (PromiseLike<TResult2> | TResult2)) | undefined | null): Promise<TResult1 | TResult2>;
|
|
1364
|
+
private promiseFinished;
|
|
1048
1365
|
}
|
|
1049
1366
|
/**
|
|
1050
|
-
* A
|
|
1051
|
-
*
|
|
1052
|
-
* @generated from protobuf message injective.exchange.v1beta1.SpotLimitOrder
|
|
1367
|
+
* A completed client streaming RPC call. The server will not send any more
|
|
1368
|
+
* messages, but it may still be valid to send request messages.
|
|
1053
1369
|
*/
|
|
1054
|
-
interface
|
|
1370
|
+
interface FinishedClientStreamingCall<I extends object, O extends object> {
|
|
1055
1371
|
/**
|
|
1056
|
-
*
|
|
1057
|
-
*
|
|
1058
|
-
* @generated from protobuf field: injective.exchange.v1beta1.OrderInfo order_info = 1
|
|
1372
|
+
* Reflection information about this call.
|
|
1059
1373
|
*/
|
|
1060
|
-
|
|
1374
|
+
readonly method: MethodInfo<I, O>;
|
|
1061
1375
|
/**
|
|
1062
|
-
*
|
|
1063
|
-
*
|
|
1064
|
-
* @generated from protobuf field: injective.exchange.v1beta1.OrderType order_type = 2
|
|
1376
|
+
* Request headers being sent with the request.
|
|
1065
1377
|
*/
|
|
1066
|
-
|
|
1378
|
+
readonly requestHeaders: Readonly<RpcMetadata>;
|
|
1067
1379
|
/**
|
|
1068
|
-
*
|
|
1069
|
-
*
|
|
1070
|
-
* @generated from protobuf field: string fillable = 3
|
|
1380
|
+
* The response headers that the server sent.
|
|
1071
1381
|
*/
|
|
1072
|
-
|
|
1382
|
+
readonly headers: RpcMetadata;
|
|
1073
1383
|
/**
|
|
1074
|
-
*
|
|
1075
|
-
*
|
|
1076
|
-
* @generated from protobuf field: string trigger_price = 4
|
|
1384
|
+
* The message the server replied with.
|
|
1077
1385
|
*/
|
|
1078
|
-
|
|
1386
|
+
readonly response: O;
|
|
1079
1387
|
/**
|
|
1080
|
-
*
|
|
1388
|
+
* The response status the server replied with.
|
|
1389
|
+
* The status code will always be OK.
|
|
1081
1390
|
*/
|
|
1082
|
-
|
|
1391
|
+
readonly status: RpcStatus;
|
|
1392
|
+
/**
|
|
1393
|
+
* The trailers the server attached to the response.
|
|
1394
|
+
*/
|
|
1395
|
+
readonly trailers: RpcMetadata;
|
|
1083
1396
|
}
|
|
1397
|
+
//#endregion
|
|
1398
|
+
//#region ../../node_modules/.pnpm/@protobuf-ts+runtime-rpc@2.11.1/node_modules/@protobuf-ts/runtime-rpc/build/types/duplex-streaming-call.d.ts
|
|
1084
1399
|
/**
|
|
1085
|
-
* A
|
|
1086
|
-
*
|
|
1087
|
-
*
|
|
1400
|
+
* A duplex streaming RPC call. This means that the clients sends an
|
|
1401
|
+
* arbitrary amount of messages to the server, while at the same time,
|
|
1402
|
+
* the server sends an arbitrary amount of messages to the client.
|
|
1088
1403
|
*/
|
|
1089
|
-
|
|
1404
|
+
declare class DuplexStreamingCall<I extends object = object, O extends object = object> implements RpcCallShared<I, O> {
|
|
1090
1405
|
/**
|
|
1091
|
-
*
|
|
1406
|
+
* Reflection information about this call.
|
|
1407
|
+
*/
|
|
1408
|
+
readonly method: MethodInfo<I, O>;
|
|
1409
|
+
/**
|
|
1410
|
+
* Request headers being sent with the request.
|
|
1092
1411
|
*
|
|
1093
|
-
*
|
|
1412
|
+
* Request headers are provided in the `meta` property of the
|
|
1413
|
+
* `RpcOptions` passed to a call.
|
|
1094
1414
|
*/
|
|
1095
|
-
|
|
1415
|
+
readonly requestHeaders: Readonly<RpcMetadata>;
|
|
1096
1416
|
/**
|
|
1097
|
-
*
|
|
1417
|
+
* Request messages from the client.
|
|
1098
1418
|
*/
|
|
1099
|
-
|
|
1419
|
+
readonly requests: RpcInputStream<I>;
|
|
1100
1420
|
/**
|
|
1101
|
-
*
|
|
1421
|
+
* The response headers that the server sent.
|
|
1422
|
+
*
|
|
1423
|
+
* This promise will reject with a `RpcError` when the server sends a
|
|
1424
|
+
* error status code.
|
|
1102
1425
|
*/
|
|
1103
|
-
|
|
1426
|
+
readonly headers: Promise<RpcMetadata>;
|
|
1104
1427
|
/**
|
|
1105
|
-
*
|
|
1428
|
+
* Response messages from the server.
|
|
1429
|
+
*/
|
|
1430
|
+
readonly responses: RpcOutputStream<O>;
|
|
1431
|
+
/**
|
|
1432
|
+
* The response status the server replied with.
|
|
1106
1433
|
*
|
|
1107
|
-
*
|
|
1434
|
+
* This promise will resolve when the server has finished the request
|
|
1435
|
+
* successfully.
|
|
1436
|
+
*
|
|
1437
|
+
* If the server replies with an error status, this promise will
|
|
1438
|
+
* reject with a `RpcError`.
|
|
1108
1439
|
*/
|
|
1109
|
-
|
|
1440
|
+
readonly status: Promise<RpcStatus>;
|
|
1110
1441
|
/**
|
|
1111
|
-
*
|
|
1442
|
+
* The trailers the server attached to the response.
|
|
1112
1443
|
*
|
|
1113
|
-
*
|
|
1444
|
+
* This promise will resolve when the server has finished the request
|
|
1445
|
+
* successfully.
|
|
1446
|
+
*
|
|
1447
|
+
* If the server replies with an error status, this promise will
|
|
1448
|
+
* reject with a `RpcError`.
|
|
1114
1449
|
*/
|
|
1115
|
-
|
|
1450
|
+
readonly trailers: Promise<RpcMetadata>;
|
|
1451
|
+
constructor(method: MethodInfo<I, O>, requestHeaders: Readonly<RpcMetadata>, request: RpcInputStream<I>, headers: Promise<RpcMetadata>, response: RpcOutputStream<O>, status: Promise<RpcStatus>, trailers: Promise<RpcMetadata>);
|
|
1452
|
+
/**
|
|
1453
|
+
* Instead of awaiting the response status and trailers, you can
|
|
1454
|
+
* just as well await this call itself to receive the server outcome.
|
|
1455
|
+
* Note that it may still be valid to send more request messages.
|
|
1456
|
+
*/
|
|
1457
|
+
then<TResult1 = FinishedDuplexStreamingCall<I, O>, TResult2 = never>(onfulfilled?: ((value: FinishedDuplexStreamingCall<I, O>) => (PromiseLike<TResult1> | TResult1)) | undefined | null, onrejected?: ((reason: any) => (PromiseLike<TResult2> | TResult2)) | undefined | null): Promise<TResult1 | TResult2>;
|
|
1458
|
+
private promiseFinished;
|
|
1116
1459
|
}
|
|
1117
1460
|
/**
|
|
1118
|
-
*
|
|
1461
|
+
* A completed duplex streaming RPC call. The server will not send any more
|
|
1462
|
+
* messages, but it may still be valid to send request messages.
|
|
1119
1463
|
*/
|
|
1120
|
-
interface
|
|
1464
|
+
interface FinishedDuplexStreamingCall<I extends object, O extends object> {
|
|
1121
1465
|
/**
|
|
1122
|
-
*
|
|
1123
|
-
*
|
|
1124
|
-
* @generated from protobuf field: string market_id = 1
|
|
1466
|
+
* Reflection information about this call.
|
|
1125
1467
|
*/
|
|
1126
|
-
|
|
1468
|
+
readonly method: MethodInfo<I, O>;
|
|
1127
1469
|
/**
|
|
1128
|
-
*
|
|
1129
|
-
*
|
|
1130
|
-
* @generated from protobuf field: injective.exchange.v1beta1.OrderInfo order_info = 2
|
|
1470
|
+
* Request headers being sent with the request.
|
|
1131
1471
|
*/
|
|
1132
|
-
|
|
1472
|
+
readonly requestHeaders: Readonly<RpcMetadata>;
|
|
1133
1473
|
/**
|
|
1134
|
-
*
|
|
1135
|
-
*
|
|
1136
|
-
* @generated from protobuf field: injective.exchange.v1beta1.OrderType order_type = 3
|
|
1474
|
+
* The response headers that the server sent.
|
|
1137
1475
|
*/
|
|
1138
|
-
|
|
1476
|
+
readonly headers: RpcMetadata;
|
|
1139
1477
|
/**
|
|
1140
|
-
*
|
|
1141
|
-
*
|
|
1142
|
-
* @generated from protobuf field: string margin = 4
|
|
1478
|
+
* The response status the server replied with.
|
|
1479
|
+
* The status code will always be OK.
|
|
1143
1480
|
*/
|
|
1144
|
-
|
|
1481
|
+
readonly status: RpcStatus;
|
|
1145
1482
|
/**
|
|
1146
|
-
*
|
|
1147
|
-
*
|
|
1148
|
-
* @generated from protobuf field: string trigger_price = 5
|
|
1483
|
+
* The trailers the server attached to the response.
|
|
1149
1484
|
*/
|
|
1150
|
-
|
|
1485
|
+
readonly trailers: RpcMetadata;
|
|
1151
1486
|
}
|
|
1487
|
+
//#endregion
|
|
1488
|
+
//#region ../../node_modules/.pnpm/@protobuf-ts+runtime-rpc@2.11.1/node_modules/@protobuf-ts/runtime-rpc/build/types/unary-call.d.ts
|
|
1152
1489
|
/**
|
|
1153
|
-
* A
|
|
1154
|
-
*
|
|
1155
|
-
* @generated from protobuf message injective.exchange.v1beta1.DerivativeLimitOrder
|
|
1490
|
+
* A unary RPC call. Unary means there is exactly one input message and
|
|
1491
|
+
* exactly one output message unless an error occurred.
|
|
1156
1492
|
*/
|
|
1157
|
-
|
|
1493
|
+
declare class UnaryCall<I extends object = object, O extends object = object> implements RpcCallShared<I, O>, PromiseLike<FinishedUnaryCall<I, O>> {
|
|
1158
1494
|
/**
|
|
1159
|
-
*
|
|
1495
|
+
* Reflection information about this call.
|
|
1496
|
+
*/
|
|
1497
|
+
readonly method: MethodInfo<I, O>;
|
|
1498
|
+
/**
|
|
1499
|
+
* Request headers being sent with the request.
|
|
1160
1500
|
*
|
|
1161
|
-
*
|
|
1501
|
+
* Request headers are provided in the `meta` property of the
|
|
1502
|
+
* `RpcOptions` passed to a call.
|
|
1162
1503
|
*/
|
|
1163
|
-
|
|
1504
|
+
readonly requestHeaders: Readonly<RpcMetadata>;
|
|
1164
1505
|
/**
|
|
1165
|
-
*
|
|
1506
|
+
* The request message being sent.
|
|
1507
|
+
*/
|
|
1508
|
+
readonly request: Readonly<I>;
|
|
1509
|
+
/**
|
|
1510
|
+
* The response headers that the server sent.
|
|
1166
1511
|
*
|
|
1167
|
-
*
|
|
1512
|
+
* This promise will reject with a `RpcError` when the server sends an
|
|
1513
|
+
* error status code.
|
|
1168
1514
|
*/
|
|
1169
|
-
|
|
1515
|
+
readonly headers: Promise<RpcMetadata>;
|
|
1170
1516
|
/**
|
|
1171
|
-
*
|
|
1517
|
+
* The message the server replied with.
|
|
1172
1518
|
*
|
|
1173
|
-
*
|
|
1519
|
+
* If the server does not send a message, this promise will reject with a
|
|
1520
|
+
* `RpcError`.
|
|
1174
1521
|
*/
|
|
1175
|
-
|
|
1522
|
+
readonly response: Promise<O>;
|
|
1176
1523
|
/**
|
|
1177
|
-
*
|
|
1524
|
+
* The response status the server replied with.
|
|
1178
1525
|
*
|
|
1179
|
-
*
|
|
1526
|
+
* This promise will resolve when the server has finished the request
|
|
1527
|
+
* successfully.
|
|
1528
|
+
*
|
|
1529
|
+
* If the server replies with an error status, this promise will
|
|
1530
|
+
* reject with a `RpcError`.
|
|
1180
1531
|
*/
|
|
1181
|
-
|
|
1532
|
+
readonly status: Promise<RpcStatus>;
|
|
1182
1533
|
/**
|
|
1183
|
-
*
|
|
1534
|
+
* The trailers the server attached to the response.
|
|
1184
1535
|
*
|
|
1185
|
-
*
|
|
1536
|
+
* This promise will resolve when the server has finished the request
|
|
1537
|
+
* successfully.
|
|
1538
|
+
*
|
|
1539
|
+
* If the server replies with an error status, this promise will
|
|
1540
|
+
* reject with a `RpcError`.
|
|
1186
1541
|
*/
|
|
1187
|
-
|
|
1542
|
+
readonly trailers: Promise<RpcMetadata>;
|
|
1543
|
+
constructor(method: MethodInfo<I, O>, requestHeaders: RpcMetadata, request: I, headers: Promise<RpcMetadata>, response: Promise<O>, status: Promise<RpcStatus>, trailers: Promise<RpcMetadata>);
|
|
1188
1544
|
/**
|
|
1189
|
-
*
|
|
1545
|
+
* If you are only interested in the final outcome of this call,
|
|
1546
|
+
* you can await it to receive a `FinishedUnaryCall`.
|
|
1190
1547
|
*/
|
|
1191
|
-
|
|
1548
|
+
then<TResult1 = FinishedUnaryCall<I, O>, TResult2 = never>(onfulfilled?: ((value: FinishedUnaryCall<I, O>) => (PromiseLike<TResult1> | TResult1)) | undefined | null, onrejected?: ((reason: any) => (PromiseLike<TResult2> | TResult2)) | undefined | null): Promise<TResult1 | TResult2>;
|
|
1549
|
+
private promiseFinished;
|
|
1192
1550
|
}
|
|
1193
1551
|
/**
|
|
1194
|
-
* A
|
|
1195
|
-
*
|
|
1196
|
-
* @generated from protobuf message injective.exchange.v1beta1.DerivativeMarketOrder
|
|
1552
|
+
* A completed unary RPC call. This will only exists if the RPC was
|
|
1553
|
+
* successful.
|
|
1197
1554
|
*/
|
|
1198
|
-
interface
|
|
1555
|
+
interface FinishedUnaryCall<I extends object, O extends object> {
|
|
1199
1556
|
/**
|
|
1200
|
-
*
|
|
1201
|
-
*
|
|
1202
|
-
* @generated from protobuf field: injective.exchange.v1beta1.OrderInfo order_info = 1
|
|
1557
|
+
* Reflection information about this call.
|
|
1203
1558
|
*/
|
|
1204
|
-
|
|
1559
|
+
readonly method: MethodInfo<I, O>;
|
|
1205
1560
|
/**
|
|
1206
|
-
*
|
|
1207
|
-
*
|
|
1208
|
-
* @generated from protobuf field: injective.exchange.v1beta1.OrderType order_type = 2
|
|
1561
|
+
* Request headers being sent with the request.
|
|
1209
1562
|
*/
|
|
1210
|
-
|
|
1563
|
+
readonly requestHeaders: Readonly<RpcMetadata>;
|
|
1211
1564
|
/**
|
|
1212
|
-
*
|
|
1565
|
+
* The request message that has been sent.
|
|
1213
1566
|
*/
|
|
1214
|
-
|
|
1567
|
+
readonly request: Readonly<I>;
|
|
1215
1568
|
/**
|
|
1216
|
-
*
|
|
1569
|
+
* The response headers that the server sent.
|
|
1217
1570
|
*/
|
|
1218
|
-
|
|
1571
|
+
readonly headers: RpcMetadata;
|
|
1219
1572
|
/**
|
|
1220
|
-
*
|
|
1221
|
-
*
|
|
1222
|
-
* @generated from protobuf field: string trigger_price = 5
|
|
1573
|
+
* The message the server replied with.
|
|
1223
1574
|
*/
|
|
1224
|
-
|
|
1575
|
+
readonly response: O;
|
|
1225
1576
|
/**
|
|
1226
|
-
*
|
|
1577
|
+
* The response status the server replied with.
|
|
1578
|
+
* The status code will always be OK.
|
|
1227
1579
|
*/
|
|
1228
|
-
|
|
1580
|
+
readonly status: RpcStatus;
|
|
1581
|
+
/**
|
|
1582
|
+
* The trailers the server attached to the response.
|
|
1583
|
+
*/
|
|
1584
|
+
readonly trailers: RpcMetadata;
|
|
1229
1585
|
}
|
|
1586
|
+
//#endregion
|
|
1587
|
+
//#region ../../node_modules/.pnpm/@protobuf-ts+runtime-rpc@2.11.1/node_modules/@protobuf-ts/runtime-rpc/build/types/rpc-transport.d.ts
|
|
1230
1588
|
/**
|
|
1231
|
-
*
|
|
1589
|
+
* A `RpcTransport` executes Remote Procedure Calls defined by a protobuf
|
|
1590
|
+
* service.
|
|
1591
|
+
*
|
|
1592
|
+
* This interface is the contract between a generated service client and
|
|
1593
|
+
* some wire protocol like grpc, grpc-web, Twirp or other.
|
|
1594
|
+
*
|
|
1595
|
+
* The transport receives reflection information about the service and
|
|
1596
|
+
* method being called.
|
|
1597
|
+
*
|
|
1598
|
+
* Some rules:
|
|
1599
|
+
*
|
|
1600
|
+
* a) An implementation **should** accept default `RpcOptions` (or an
|
|
1601
|
+
* interface that extends `RpcOptions`) in the constructor.
|
|
1602
|
+
*
|
|
1603
|
+
* b) An implementation **must** merge the options given to `mergeOptions()`
|
|
1604
|
+
* with its default options. If no extra options are implemented, or only
|
|
1605
|
+
* primitive option values are used, using `mergeRpcOptions()` will
|
|
1606
|
+
* produce the required behaviour.
|
|
1607
|
+
*
|
|
1608
|
+
* c) An implementation **must** pass `RpcOptions.jsonOptions` and
|
|
1609
|
+
* `RpcOptions.binaryOptions` to the `fromBinary`, `toBinary`, `fromJson`
|
|
1610
|
+
* and `toJson` methods when preparing a request or parsing a response.
|
|
1611
|
+
*
|
|
1612
|
+
* d) An implementation may support arbitrary other options, but they **must
|
|
1613
|
+
* not** interfere with options keys of the binary or JSON options.
|
|
1232
1614
|
*/
|
|
1233
|
-
interface
|
|
1615
|
+
interface RpcTransport {
|
|
1234
1616
|
/**
|
|
1235
|
-
*
|
|
1236
|
-
*
|
|
1237
|
-
*
|
|
1617
|
+
* Merge call options with default options.
|
|
1618
|
+
* Generated service clients will call this method with the users'
|
|
1619
|
+
* call options and pass the result to the execute-method below.
|
|
1238
1620
|
*/
|
|
1239
|
-
|
|
1621
|
+
mergeOptions(options?: Partial<RpcOptions>): RpcOptions;
|
|
1240
1622
|
/**
|
|
1241
|
-
*
|
|
1242
|
-
*
|
|
1243
|
-
* @generated from protobuf field: string quantity = 2
|
|
1623
|
+
* Execute an unary RPC.
|
|
1244
1624
|
*/
|
|
1245
|
-
|
|
1625
|
+
unary<I extends object, O extends object>(method: MethodInfo<I, O>, input: I, options: RpcOptions): UnaryCall<I, O>;
|
|
1246
1626
|
/**
|
|
1247
|
-
*
|
|
1248
|
-
*
|
|
1249
|
-
* @generated from protobuf field: string entry_price = 3
|
|
1627
|
+
* Execute a server streaming RPC.
|
|
1250
1628
|
*/
|
|
1251
|
-
|
|
1629
|
+
serverStreaming<I extends object, O extends object>(method: MethodInfo<I, O>, input: I, options: RpcOptions): ServerStreamingCall<I, O>;
|
|
1252
1630
|
/**
|
|
1253
|
-
*
|
|
1254
|
-
*
|
|
1255
|
-
* @generated from protobuf field: string margin = 4
|
|
1631
|
+
* Execute a client streaming RPC.
|
|
1256
1632
|
*/
|
|
1257
|
-
|
|
1633
|
+
clientStreaming<I extends object, O extends object>(method: MethodInfo<I, O>, options: RpcOptions): ClientStreamingCall<I, O>;
|
|
1258
1634
|
/**
|
|
1259
|
-
*
|
|
1635
|
+
* Execute a duplex streaming RPC.
|
|
1636
|
+
*/
|
|
1637
|
+
duplex<I extends object, O extends object>(method: MethodInfo<I, O>, options: RpcOptions): DuplexStreamingCall<I, O>;
|
|
1638
|
+
}
|
|
1639
|
+
//#endregion
|
|
1640
|
+
//#region ../../node_modules/.pnpm/@protobuf-ts+runtime-rpc@2.11.1/node_modules/@protobuf-ts/runtime-rpc/build/types/rpc-interceptor.d.ts
|
|
1641
|
+
/**
|
|
1642
|
+
* Interceptors can be used to manipulate request and response data.
|
|
1643
|
+
*
|
|
1644
|
+
* They are commonly used to add authentication metadata, log requests
|
|
1645
|
+
* or implement client side caching.
|
|
1646
|
+
*
|
|
1647
|
+
* Interceptors are stacked. Call next() to invoke the next interceptor
|
|
1648
|
+
* on the stack. To manipulate the request, change the data passed to
|
|
1649
|
+
* next(). To manipulate a response, change the data returned by next().
|
|
1650
|
+
*
|
|
1651
|
+
* The following example adds an 'Authorization' header to unary calls:
|
|
1652
|
+
*
|
|
1653
|
+
* ```typescript
|
|
1654
|
+
* interceptUnary(next, method, input, options): UnaryCall {
|
|
1655
|
+
* if (!options.meta) {
|
|
1656
|
+
* options.meta = {};
|
|
1657
|
+
* }
|
|
1658
|
+
* options.meta['Authorization'] = 'xxx';
|
|
1659
|
+
* return next(method, input, options);
|
|
1660
|
+
* }
|
|
1661
|
+
* ```
|
|
1662
|
+
*
|
|
1663
|
+
* The following example intercepts server streaming calls. Every
|
|
1664
|
+
* message that the server sends is emitted twice to the client:
|
|
1665
|
+
*
|
|
1666
|
+
* ```typescript
|
|
1667
|
+
* interceptServerStreaming(next, method, input, options) {
|
|
1668
|
+
* let original = next(method, input, options);
|
|
1669
|
+
* let response = new RpcOutputStreamController();
|
|
1670
|
+
* original.response.onNext((message, error, done) => {
|
|
1671
|
+
* if (message) {
|
|
1672
|
+
* response.notifyMessage(message);
|
|
1673
|
+
* response.notifyMessage(message);
|
|
1674
|
+
* }
|
|
1675
|
+
* if (error)
|
|
1676
|
+
* response.notifyError(error);
|
|
1677
|
+
* if (done)
|
|
1678
|
+
* response.notifyComplete();
|
|
1679
|
+
* });
|
|
1680
|
+
* return new ServerStreamingCall(
|
|
1681
|
+
* original.method,
|
|
1682
|
+
* original.requestHeaders,
|
|
1683
|
+
* original.request,
|
|
1684
|
+
* original.headers,
|
|
1685
|
+
* response,
|
|
1686
|
+
* original.status,
|
|
1687
|
+
* original.trailers
|
|
1688
|
+
* );
|
|
1689
|
+
* }
|
|
1690
|
+
* ```
|
|
1691
|
+
*
|
|
1692
|
+
*/
|
|
1693
|
+
interface RpcInterceptor {
|
|
1694
|
+
interceptUnary?(next: NextUnaryFn, method: MethodInfo, input: object, options: RpcOptions): UnaryCall;
|
|
1695
|
+
interceptServerStreaming?(next: NextServerStreamingFn, method: MethodInfo, input: object, options: RpcOptions): ServerStreamingCall;
|
|
1696
|
+
interceptClientStreaming?(next: NextClientStreamingFn, method: MethodInfo, options: RpcOptions): ClientStreamingCall;
|
|
1697
|
+
interceptDuplex?(next: NextDuplexStreamingFn, method: MethodInfo, options: RpcOptions): DuplexStreamingCall;
|
|
1698
|
+
}
|
|
1699
|
+
/**
|
|
1700
|
+
* Invokes the next interceptor on the stack and returns its result.
|
|
1701
|
+
*/
|
|
1702
|
+
declare type NextUnaryFn = (method: MethodInfo, input: object, options: RpcOptions) => UnaryCall;
|
|
1703
|
+
/**
|
|
1704
|
+
* Invokes the next interceptor on the stack and returns its result.
|
|
1705
|
+
*/
|
|
1706
|
+
declare type NextServerStreamingFn = (method: MethodInfo, input: object, options: RpcOptions) => ServerStreamingCall;
|
|
1707
|
+
/**
|
|
1708
|
+
* Invokes the next interceptor on the stack and returns its result.
|
|
1709
|
+
*/
|
|
1710
|
+
declare type NextClientStreamingFn = (method: MethodInfo, options: RpcOptions) => ClientStreamingCall;
|
|
1711
|
+
/**
|
|
1712
|
+
* Invokes the next interceptor on the stack and returns its result.
|
|
1713
|
+
*/
|
|
1714
|
+
declare type NextDuplexStreamingFn = (method: MethodInfo, options: RpcOptions) => DuplexStreamingCall;
|
|
1715
|
+
//#endregion
|
|
1716
|
+
//#region ../../node_modules/.pnpm/@protobuf-ts+runtime-rpc@2.11.1/node_modules/@protobuf-ts/runtime-rpc/build/types/rpc-options.d.ts
|
|
1717
|
+
/**
|
|
1718
|
+
* User-provided options for Remote Procedure Calls.
|
|
1719
|
+
*
|
|
1720
|
+
* Every generated service method accepts these options.
|
|
1721
|
+
* They are passed on to the `RpcTransport` and can be evaluated there.
|
|
1722
|
+
*/
|
|
1723
|
+
interface RpcOptions {
|
|
1724
|
+
/**
|
|
1725
|
+
* Meta data for the call.
|
|
1726
|
+
*
|
|
1727
|
+
* RPC meta data are simple key-value pairs that usually translate
|
|
1728
|
+
* directly to HTTP request headers.
|
|
1729
|
+
*
|
|
1730
|
+
* If a key ends with `-bin`, it should contain binary data in base64
|
|
1731
|
+
* encoding, allowing you to send serialized messages.
|
|
1732
|
+
*/
|
|
1733
|
+
meta?: RpcMetadata;
|
|
1734
|
+
/**
|
|
1735
|
+
* Timeout for the call in milliseconds.
|
|
1736
|
+
* If a Date object is given, it is used as a deadline.
|
|
1737
|
+
*/
|
|
1738
|
+
timeout?: number | Date;
|
|
1739
|
+
/**
|
|
1740
|
+
* Interceptors can be used to manipulate request and response data.
|
|
1741
|
+
* The most common use case is adding a "Authorization" header.
|
|
1742
|
+
*/
|
|
1743
|
+
interceptors?: RpcInterceptor[];
|
|
1744
|
+
/**
|
|
1745
|
+
* Options for the JSON wire format.
|
|
1746
|
+
*
|
|
1747
|
+
* To send or receive `google.protobuf.Any` in JSON format, you must
|
|
1748
|
+
* provide `jsonOptions.typeRegistry` so that the runtime can discriminate
|
|
1749
|
+
* the packed type.
|
|
1750
|
+
*/
|
|
1751
|
+
jsonOptions?: Partial<JsonReadOptions & JsonWriteOptions>;
|
|
1752
|
+
/**
|
|
1753
|
+
* Options for the binary wire format.
|
|
1754
|
+
*/
|
|
1755
|
+
binaryOptions?: Partial<BinaryReadOptions & BinaryWriteOptions>;
|
|
1756
|
+
/**
|
|
1757
|
+
* A signal to cancel a call. Can be created with an [AbortController](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
|
|
1758
|
+
* The npm package `abort-controller` provides a polyfill for Node.js.
|
|
1759
|
+
*/
|
|
1760
|
+
abort?: AbortSignal;
|
|
1761
|
+
/**
|
|
1762
|
+
* A `RpcTransport` implementation may allow arbitrary
|
|
1763
|
+
* other options.
|
|
1764
|
+
*/
|
|
1765
|
+
[extra: string]: unknown;
|
|
1766
|
+
}
|
|
1767
|
+
//#endregion
|
|
1768
|
+
//#region src/types/token.d.ts
|
|
1769
|
+
declare const TokenType: {
|
|
1770
|
+
readonly Ibc: "ibc";
|
|
1771
|
+
readonly Cw20: "cw20";
|
|
1772
|
+
readonly Spl: "spl";
|
|
1773
|
+
readonly Erc20: "erc20";
|
|
1774
|
+
readonly Lp: "lp";
|
|
1775
|
+
readonly Evm: "evm";
|
|
1776
|
+
readonly Native: "native";
|
|
1777
|
+
readonly Symbol: "symbol";
|
|
1778
|
+
readonly TokenFactory: "tokenFactory";
|
|
1779
|
+
readonly InsuranceFund: "insuranceFund";
|
|
1780
|
+
readonly Unknown: "unknown";
|
|
1781
|
+
};
|
|
1782
|
+
type TokenType = (typeof TokenType)[keyof typeof TokenType];
|
|
1783
|
+
declare const TokenVerification: {
|
|
1784
|
+
readonly Verified: "verified";
|
|
1785
|
+
readonly Submitted: "submitted";
|
|
1786
|
+
readonly Internal: "internal";
|
|
1787
|
+
readonly External: "external";
|
|
1788
|
+
readonly Unverified: "unverified";
|
|
1789
|
+
};
|
|
1790
|
+
type TokenVerification = (typeof TokenVerification)[keyof typeof TokenVerification];
|
|
1791
|
+
declare const TokenSource: {
|
|
1792
|
+
readonly Aptos: "aptos";
|
|
1793
|
+
readonly Solana: "solana";
|
|
1794
|
+
readonly Cosmos: "cosmos";
|
|
1795
|
+
readonly Ethereum: "ethereum";
|
|
1796
|
+
readonly EthereumWh: "ethereum-wormhole";
|
|
1797
|
+
readonly Polygon: "polygon";
|
|
1798
|
+
readonly Klaytn: "klaytn";
|
|
1799
|
+
readonly Arbitrum: "arbitrum";
|
|
1800
|
+
readonly Sui: "sui";
|
|
1801
|
+
readonly Ibc: "ibc";
|
|
1802
|
+
readonly BinanceSmartChain: "binance-smart-chain";
|
|
1803
|
+
readonly Axelar: "axelar";
|
|
1804
|
+
};
|
|
1805
|
+
type TokenSource = (typeof TokenSource)[keyof typeof TokenSource];
|
|
1806
|
+
interface TokenStatic {
|
|
1807
|
+
name: string;
|
|
1808
|
+
logo: string;
|
|
1809
|
+
symbol: string;
|
|
1810
|
+
decimals: number;
|
|
1811
|
+
coinGeckoId: string;
|
|
1812
|
+
denom: string;
|
|
1813
|
+
address: string;
|
|
1814
|
+
tokenType: TokenType;
|
|
1815
|
+
tokenVerification: TokenVerification;
|
|
1816
|
+
isNative?: boolean;
|
|
1817
|
+
source?: TokenSource;
|
|
1818
|
+
hash?: string;
|
|
1819
|
+
path?: string;
|
|
1820
|
+
channelId?: string;
|
|
1821
|
+
baseDenom?: string;
|
|
1822
|
+
description?: string;
|
|
1823
|
+
externalLogo?: string;
|
|
1824
|
+
overrideSymbol?: string;
|
|
1825
|
+
}
|
|
1826
|
+
interface TokenMeta {
|
|
1827
|
+
name: string;
|
|
1828
|
+
logo: string;
|
|
1829
|
+
symbol: string;
|
|
1830
|
+
decimals: number;
|
|
1831
|
+
tokenType: TokenType;
|
|
1832
|
+
coinGeckoId: string;
|
|
1833
|
+
}
|
|
1834
|
+
//#endregion
|
|
1835
|
+
//#region src/types/stream.d.ts
|
|
1836
|
+
/**
|
|
1837
|
+
* Subscription interface for stream management with event-based lifecycle
|
|
1838
|
+
*/
|
|
1839
|
+
/**
|
|
1840
|
+
* gRPC Status Codes
|
|
1841
|
+
* @see https://grpc.io/docs/guides/status-codes/
|
|
1842
|
+
*/
|
|
1843
|
+
declare const GrpcStatusCode: {
|
|
1844
|
+
readonly OK: 0;
|
|
1845
|
+
readonly CANCELLED: 1;
|
|
1846
|
+
readonly UNKNOWN: 2;
|
|
1847
|
+
readonly INVALID_ARGUMENT: 3;
|
|
1848
|
+
readonly DEADLINE_EXCEEDED: 4;
|
|
1849
|
+
readonly NOT_FOUND: 5;
|
|
1850
|
+
readonly ALREADY_EXISTS: 6;
|
|
1851
|
+
readonly PERMISSION_DENIED: 7;
|
|
1852
|
+
readonly RESOURCE_EXHAUSTED: 8;
|
|
1853
|
+
readonly FAILED_PRECONDITION: 9;
|
|
1854
|
+
readonly ABORTED: 10;
|
|
1855
|
+
readonly OUT_OF_RANGE: 11;
|
|
1856
|
+
readonly UNIMPLEMENTED: 12;
|
|
1857
|
+
readonly INTERNAL: 13;
|
|
1858
|
+
readonly UNAVAILABLE: 14;
|
|
1859
|
+
readonly DATA_LOSS: 15;
|
|
1860
|
+
readonly UNAUTHENTICATED: 16;
|
|
1861
|
+
};
|
|
1862
|
+
type GrpcStatusCode = (typeof GrpcStatusCode)[keyof typeof GrpcStatusCode];
|
|
1863
|
+
/**
|
|
1864
|
+
* Enhanced disconnect reasons with gRPC error code mapping
|
|
1865
|
+
*/
|
|
1866
|
+
declare const StreamDisconnectReason: {
|
|
1867
|
+
/** User explicitly called stop() */
|
|
1868
|
+
readonly UserStopped: "user-stopped";
|
|
1869
|
+
/** Stream encountered an error */
|
|
1870
|
+
readonly StreamError: "stream-error";
|
|
1871
|
+
/** Network unavailable (gRPC code 14) */
|
|
1872
|
+
readonly NetworkError: "network-error";
|
|
1873
|
+
/** Request timeout (gRPC code 4) */
|
|
1874
|
+
readonly Timeout: "timeout";
|
|
1875
|
+
/** Authentication/authorization failed (gRPC code 7 or 16) */
|
|
1876
|
+
readonly AuthenticationError: "authentication-error";
|
|
1877
|
+
/** Invalid request - non-retryable (gRPC code 3, 5, 6, 11, 12) */
|
|
1878
|
+
readonly InvalidRequest: "invalid-request";
|
|
1879
|
+
/** Rate limited (gRPC code 8) */
|
|
1880
|
+
readonly RateLimited: "rate-limited";
|
|
1881
|
+
/** Max retry attempts reached */
|
|
1882
|
+
readonly MaxRetries: "max-retries";
|
|
1883
|
+
/** Stream ended normally */
|
|
1884
|
+
readonly StreamEnded: "stream-ended";
|
|
1885
|
+
};
|
|
1886
|
+
type StreamDisconnectReason = (typeof StreamDisconnectReason)[keyof typeof StreamDisconnectReason];
|
|
1887
|
+
declare const StreamEvent: {
|
|
1888
|
+
readonly Data: "data";
|
|
1889
|
+
readonly Connect: "connect";
|
|
1890
|
+
readonly Disconnect: "disconnect";
|
|
1891
|
+
readonly Retry: "retry";
|
|
1892
|
+
readonly StateChange: "state:change";
|
|
1893
|
+
readonly Error: "error";
|
|
1894
|
+
readonly Warn: "warn";
|
|
1895
|
+
};
|
|
1896
|
+
type StreamEvent = (typeof StreamEvent)[keyof typeof StreamEvent];
|
|
1897
|
+
interface StreamSubscription {
|
|
1898
|
+
/** Unsubscribe from the stream and cancel it */
|
|
1899
|
+
unsubscribe(): void;
|
|
1900
|
+
/** Listen for stream errors */
|
|
1901
|
+
on(event: 'error', handler: (error: StreamError) => void): void;
|
|
1902
|
+
/** Listen for stream completion (ended normally) */
|
|
1903
|
+
on(event: 'complete', handler: () => void): void;
|
|
1904
|
+
/** Remove event listener */
|
|
1905
|
+
off(event: 'error' | 'complete', handler: (...args: any[]) => void): void;
|
|
1906
|
+
}
|
|
1907
|
+
/**
|
|
1908
|
+
* Error information from stream with gRPC error codes
|
|
1909
|
+
*
|
|
1910
|
+
* Common gRPC Status Codes:
|
|
1911
|
+
* - 0: OK
|
|
1912
|
+
* - 1: CANCELLED
|
|
1913
|
+
* - 2: UNKNOWN
|
|
1914
|
+
* - 3: INVALID_ARGUMENT
|
|
1915
|
+
* - 4: DEADLINE_EXCEEDED
|
|
1916
|
+
* - 5: NOT_FOUND
|
|
1917
|
+
* - 7: PERMISSION_DENIED
|
|
1918
|
+
* - 8: RESOURCE_EXHAUSTED
|
|
1919
|
+
* - 13: INTERNAL
|
|
1920
|
+
* - 14: UNAVAILABLE
|
|
1921
|
+
* - 16: UNAUTHENTICATED
|
|
1922
|
+
*/
|
|
1923
|
+
interface StreamError {
|
|
1924
|
+
/** gRPC status code */
|
|
1925
|
+
code: number;
|
|
1926
|
+
/** Human-readable error message */
|
|
1927
|
+
details: string;
|
|
1928
|
+
/** Additional error metadata */
|
|
1929
|
+
metadata?: any;
|
|
1930
|
+
}
|
|
1931
|
+
/**
|
|
1932
|
+
* StreamManager
|
|
1933
|
+
*/
|
|
1934
|
+
declare const StreamState: {
|
|
1935
|
+
readonly Idle: "idle";
|
|
1936
|
+
readonly Connecting: "connecting";
|
|
1937
|
+
readonly Connected: "connected";
|
|
1938
|
+
readonly Reconnecting: "reconnecting";
|
|
1939
|
+
readonly Stopped: "stopped";
|
|
1940
|
+
};
|
|
1941
|
+
type StreamState = (typeof StreamState)[keyof typeof StreamState];
|
|
1942
|
+
/**
|
|
1943
|
+
* Stream manager retry configuration
|
|
1944
|
+
*/
|
|
1945
|
+
interface StreamManagerRetryConfig {
|
|
1946
|
+
/** Enable retry on failure (default: true) */
|
|
1947
|
+
enabled: boolean;
|
|
1948
|
+
/** Max retry attempts before giving up (default: 5, 0 = infinite) */
|
|
1949
|
+
maxAttempts: number;
|
|
1950
|
+
/** Initial backoff delay in ms (default: 1000) */
|
|
1951
|
+
initialDelayMs: number;
|
|
1952
|
+
/** Max backoff delay in ms (default: 30000) */
|
|
1953
|
+
maxDelayMs: number;
|
|
1954
|
+
/** Backoff multiplier (default: 2 for exponential) */
|
|
1955
|
+
backoffMultiplier: number;
|
|
1956
|
+
/**
|
|
1957
|
+
* Persistent retry mode - continues retrying at maxDelayMs intervals
|
|
1958
|
+
* after exhausting exponential backoff (default: true)
|
|
1959
|
+
*/
|
|
1960
|
+
persistent: boolean;
|
|
1961
|
+
}
|
|
1962
|
+
/**
|
|
1963
|
+
* Stream manager configuration
|
|
1964
|
+
*/
|
|
1965
|
+
interface StreamManagerConfig<TResponse> {
|
|
1966
|
+
/** Unique identifier for this stream (for logging) */
|
|
1967
|
+
id: string;
|
|
1968
|
+
/**
|
|
1969
|
+
* Factory function to create the stream subscription
|
|
1970
|
+
* Called on initial connect and every retry
|
|
1971
|
+
* The subscription will emit 'error' and 'complete' events for stream lifecycle
|
|
1972
|
+
*/
|
|
1973
|
+
streamFactory: () => StreamSubscription;
|
|
1974
|
+
/** Callback to handle stream data */
|
|
1975
|
+
onData: (response: TResponse) => void;
|
|
1976
|
+
/** Retry configuration */
|
|
1977
|
+
retryConfig?: Partial<StreamManagerRetryConfig>;
|
|
1978
|
+
}
|
|
1979
|
+
/**
|
|
1980
|
+
* Internal resolved configuration with all required types
|
|
1981
|
+
*/
|
|
1982
|
+
interface ResolvedStreamManagerConfig<TResponse> {
|
|
1983
|
+
id: string;
|
|
1984
|
+
streamFactory: () => StreamSubscription;
|
|
1985
|
+
onData: (response: TResponse) => void;
|
|
1986
|
+
retryConfig: StreamManagerRetryConfig;
|
|
1987
|
+
}
|
|
1988
|
+
/**
|
|
1989
|
+
* Event payload types for StreamManager
|
|
1990
|
+
*/
|
|
1991
|
+
interface StreamManagerEvents<TResponse> {
|
|
1992
|
+
data: TResponse;
|
|
1993
|
+
connect: {
|
|
1994
|
+
isReconnect: boolean;
|
|
1995
|
+
attempt: number;
|
|
1996
|
+
};
|
|
1997
|
+
disconnect: {
|
|
1998
|
+
reason: StreamDisconnectReason;
|
|
1999
|
+
willRetry: boolean;
|
|
2000
|
+
attempt?: number;
|
|
2001
|
+
};
|
|
2002
|
+
retry: {
|
|
2003
|
+
attempt: number;
|
|
2004
|
+
delayMs: number;
|
|
2005
|
+
nextBackoff: number | null;
|
|
2006
|
+
};
|
|
2007
|
+
'state:change': {
|
|
2008
|
+
from: StreamState;
|
|
2009
|
+
to: StreamState;
|
|
2010
|
+
};
|
|
2011
|
+
error: {
|
|
2012
|
+
message: string;
|
|
2013
|
+
code?: number;
|
|
2014
|
+
details?: any;
|
|
2015
|
+
};
|
|
2016
|
+
warn: {
|
|
2017
|
+
message: string;
|
|
2018
|
+
};
|
|
2019
|
+
}
|
|
2020
|
+
//#endregion
|
|
2021
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.17.3/node_modules/@injectivelabs/core-proto-ts-v2/esm/generated/injective/oracle/v1beta1/oracle_pb.d.ts
|
|
2022
|
+
/**
|
|
2023
|
+
* @generated from protobuf message injective.oracle.v1beta1.Params
|
|
2024
|
+
*/
|
|
2025
|
+
interface Params$1 {
|
|
2026
|
+
/**
|
|
2027
|
+
* @generated from protobuf field: string pyth_contract = 1
|
|
2028
|
+
*/
|
|
2029
|
+
pythContract: string;
|
|
2030
|
+
}
|
|
2031
|
+
/**
|
|
2032
|
+
* @generated from protobuf message injective.oracle.v1beta1.BandOracleRequest
|
|
2033
|
+
*/
|
|
2034
|
+
interface BandOracleRequest {
|
|
2035
|
+
/**
|
|
2036
|
+
* Unique Identifier for band ibc oracle request
|
|
2037
|
+
*
|
|
2038
|
+
* @generated from protobuf field: uint64 request_id = 1
|
|
2039
|
+
*/
|
|
2040
|
+
requestId: bigint;
|
|
2041
|
+
/**
|
|
2042
|
+
* OracleScriptID is the unique identifier of the oracle script to be
|
|
2043
|
+
* executed.
|
|
2044
|
+
*
|
|
2045
|
+
* @generated from protobuf field: int64 oracle_script_id = 2
|
|
2046
|
+
*/
|
|
2047
|
+
oracleScriptId: bigint;
|
|
2048
|
+
/**
|
|
2049
|
+
* Symbols is the list of symbols to prepare in the calldata
|
|
2050
|
+
*
|
|
2051
|
+
* @generated from protobuf field: repeated string symbols = 3
|
|
2052
|
+
*/
|
|
2053
|
+
symbols: string[];
|
|
2054
|
+
/**
|
|
2055
|
+
* AskCount is the number of validators that are requested to respond to this
|
|
2056
|
+
* oracle request. Higher value means more security, at a higher gas cost.
|
|
2057
|
+
*
|
|
2058
|
+
* @generated from protobuf field: uint64 ask_count = 4
|
|
2059
|
+
*/
|
|
2060
|
+
askCount: bigint;
|
|
2061
|
+
/**
|
|
2062
|
+
* MinCount is the minimum number of validators necessary for the request to
|
|
2063
|
+
* proceed to the execution phase. Higher value means more security, at the
|
|
2064
|
+
* cost of liveness.
|
|
2065
|
+
*
|
|
2066
|
+
* @generated from protobuf field: uint64 min_count = 5
|
|
2067
|
+
*/
|
|
2068
|
+
minCount: bigint;
|
|
2069
|
+
/**
|
|
2070
|
+
* FeeLimit is the maximum tokens that will be paid to all data source
|
|
2071
|
+
* providers.
|
|
2072
|
+
*
|
|
2073
|
+
* @generated from protobuf field: repeated cosmos.base.v1beta1.Coin fee_limit = 6
|
|
2074
|
+
*/
|
|
2075
|
+
feeLimit: Coin$1[];
|
|
2076
|
+
/**
|
|
2077
|
+
* PrepareGas is amount of gas to pay to prepare raw requests
|
|
2078
|
+
*
|
|
2079
|
+
* @generated from protobuf field: uint64 prepare_gas = 7
|
|
2080
|
+
*/
|
|
2081
|
+
prepareGas: bigint;
|
|
2082
|
+
/**
|
|
2083
|
+
* ExecuteGas is amount of gas to reserve for executing
|
|
2084
|
+
*
|
|
2085
|
+
* @generated from protobuf field: uint64 execute_gas = 8
|
|
2086
|
+
*/
|
|
2087
|
+
executeGas: bigint;
|
|
2088
|
+
/**
|
|
2089
|
+
* MinSourceCount is the minimum number of data sources that must be used by
|
|
2090
|
+
* each validator
|
|
2091
|
+
*
|
|
2092
|
+
* @generated from protobuf field: uint64 min_source_count = 9
|
|
2093
|
+
*/
|
|
2094
|
+
minSourceCount: bigint;
|
|
2095
|
+
}
|
|
2096
|
+
/**
|
|
2097
|
+
* @generated from protobuf message injective.oracle.v1beta1.BandIBCParams
|
|
2098
|
+
*/
|
|
2099
|
+
interface BandIBCParams {
|
|
2100
|
+
/**
|
|
2101
|
+
* true if Band IBC should be enabled
|
|
2102
|
+
*
|
|
2103
|
+
* @generated from protobuf field: bool band_ibc_enabled = 1
|
|
2104
|
+
*/
|
|
2105
|
+
bandIbcEnabled: boolean;
|
|
2106
|
+
/**
|
|
2107
|
+
* block request interval to send Band IBC prices
|
|
2108
|
+
*
|
|
2109
|
+
* @generated from protobuf field: int64 ibc_request_interval = 2
|
|
2110
|
+
*/
|
|
2111
|
+
ibcRequestInterval: bigint;
|
|
2112
|
+
/**
|
|
2113
|
+
* band IBC source channel
|
|
2114
|
+
*
|
|
2115
|
+
* @generated from protobuf field: string ibc_source_channel = 3
|
|
2116
|
+
*/
|
|
2117
|
+
ibcSourceChannel: string;
|
|
2118
|
+
/**
|
|
2119
|
+
* band IBC version
|
|
2120
|
+
*
|
|
2121
|
+
* @generated from protobuf field: string ibc_version = 4
|
|
2122
|
+
*/
|
|
2123
|
+
ibcVersion: string;
|
|
2124
|
+
/**
|
|
2125
|
+
* band IBC portID
|
|
2126
|
+
*
|
|
2127
|
+
* @generated from protobuf field: string ibc_port_id = 5
|
|
2128
|
+
*/
|
|
2129
|
+
ibcPortId: string;
|
|
2130
|
+
/**
|
|
2131
|
+
* legacy oracle scheme ids
|
|
2132
|
+
*
|
|
2133
|
+
* @generated from protobuf field: repeated int64 legacy_oracle_ids = 6
|
|
2134
|
+
*/
|
|
2135
|
+
legacyOracleIds: bigint[];
|
|
2136
|
+
}
|
|
2137
|
+
/**
|
|
2138
|
+
* @generated from protobuf enum injective.oracle.v1beta1.OracleType
|
|
2139
|
+
*/
|
|
2140
|
+
declare enum OracleType {
|
|
2141
|
+
/**
|
|
2142
|
+
* @generated from protobuf enum value: Unspecified = 0;
|
|
2143
|
+
*/
|
|
2144
|
+
Unspecified = 0,
|
|
2145
|
+
/**
|
|
2146
|
+
* @generated from protobuf enum value: Band = 1;
|
|
2147
|
+
*/
|
|
2148
|
+
Band = 1,
|
|
2149
|
+
/**
|
|
2150
|
+
* @generated from protobuf enum value: PriceFeed = 2;
|
|
2151
|
+
*/
|
|
2152
|
+
PriceFeed = 2,
|
|
2153
|
+
/**
|
|
2154
|
+
* @generated from protobuf enum value: Coinbase = 3;
|
|
2155
|
+
*/
|
|
2156
|
+
Coinbase = 3,
|
|
2157
|
+
/**
|
|
2158
|
+
* @generated from protobuf enum value: Chainlink = 4;
|
|
2159
|
+
*/
|
|
2160
|
+
Chainlink = 4,
|
|
2161
|
+
/**
|
|
2162
|
+
* @generated from protobuf enum value: Razor = 5;
|
|
2163
|
+
*/
|
|
2164
|
+
Razor = 5,
|
|
2165
|
+
/**
|
|
2166
|
+
* @generated from protobuf enum value: Dia = 6;
|
|
2167
|
+
*/
|
|
2168
|
+
Dia = 6,
|
|
2169
|
+
/**
|
|
2170
|
+
* @generated from protobuf enum value: API3 = 7;
|
|
2171
|
+
*/
|
|
2172
|
+
API3 = 7,
|
|
2173
|
+
/**
|
|
2174
|
+
* @generated from protobuf enum value: Uma = 8;
|
|
2175
|
+
*/
|
|
2176
|
+
Uma = 8,
|
|
2177
|
+
/**
|
|
2178
|
+
* @generated from protobuf enum value: Pyth = 9;
|
|
2179
|
+
*/
|
|
2180
|
+
Pyth = 9,
|
|
2181
|
+
/**
|
|
2182
|
+
* @generated from protobuf enum value: BandIBC = 10;
|
|
2183
|
+
*/
|
|
2184
|
+
BandIBC = 10,
|
|
2185
|
+
/**
|
|
2186
|
+
* @generated from protobuf enum value: Provider = 11;
|
|
2187
|
+
*/
|
|
2188
|
+
Provider = 11,
|
|
2189
|
+
/**
|
|
2190
|
+
* @generated from protobuf enum value: Stork = 12;
|
|
2191
|
+
*/
|
|
2192
|
+
Stork = 12,
|
|
2193
|
+
}
|
|
2194
|
+
/**
|
|
2195
|
+
* @generated MessageType for protobuf message injective.oracle.v1beta1.Params
|
|
2196
|
+
*/
|
|
2197
|
+
declare const Params$1 = new Params$Type();
|
|
2198
|
+
/**
|
|
2199
|
+
* @generated MessageType for protobuf message injective.oracle.v1beta1.BandOracleRequest
|
|
2200
|
+
*/
|
|
2201
|
+
declare const BandOracleRequest = new BandOracleRequest$Type();
|
|
2202
|
+
/**
|
|
2203
|
+
* @generated MessageType for protobuf message injective.oracle.v1beta1.BandIBCParams
|
|
2204
|
+
*/
|
|
2205
|
+
declare const BandIBCParams = new BandIBCParams$Type();
|
|
2206
|
+
//#endregion
|
|
2207
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.17.3/node_modules/@injectivelabs/core-proto-ts-v2/esm/generated/injective/exchange/v1beta1/exchange_pb.d.ts
|
|
2208
|
+
/**
|
|
2209
|
+
* @generated from protobuf message injective.exchange.v1beta1.OpenNotionalCap
|
|
2210
|
+
*/
|
|
2211
|
+
interface OpenNotionalCap {
|
|
2212
|
+
/**
|
|
2213
|
+
* @generated from protobuf oneof: cap
|
|
2214
|
+
*/
|
|
2215
|
+
cap: {
|
|
2216
|
+
oneofKind: "uncapped";
|
|
2217
|
+
/**
|
|
2218
|
+
* @generated from protobuf field: injective.exchange.v1beta1.OpenNotionalCapUncapped uncapped = 1
|
|
2219
|
+
*/
|
|
2220
|
+
uncapped: OpenNotionalCapUncapped;
|
|
2221
|
+
} | {
|
|
2222
|
+
oneofKind: "capped";
|
|
2223
|
+
/**
|
|
2224
|
+
* @generated from protobuf field: injective.exchange.v1beta1.OpenNotionalCapCapped capped = 2
|
|
2225
|
+
*/
|
|
2226
|
+
capped: OpenNotionalCapCapped;
|
|
2227
|
+
} | {
|
|
2228
|
+
oneofKind: undefined;
|
|
2229
|
+
};
|
|
2230
|
+
}
|
|
2231
|
+
/**
|
|
2232
|
+
* @generated from protobuf message injective.exchange.v1beta1.OpenNotionalCapUncapped
|
|
2233
|
+
*/
|
|
2234
|
+
interface OpenNotionalCapUncapped {}
|
|
2235
|
+
/**
|
|
2236
|
+
* @generated from protobuf message injective.exchange.v1beta1.OpenNotionalCapCapped
|
|
2237
|
+
*/
|
|
2238
|
+
interface OpenNotionalCapCapped {
|
|
2239
|
+
/**
|
|
2240
|
+
* @generated from protobuf field: string value = 1
|
|
2241
|
+
*/
|
|
2242
|
+
value: string;
|
|
2243
|
+
}
|
|
2244
|
+
/**
|
|
2245
|
+
* @generated from protobuf message injective.exchange.v1beta1.Params
|
|
2246
|
+
*/
|
|
2247
|
+
interface Params {
|
|
2248
|
+
/**
|
|
2249
|
+
* spot_market_instant_listing_fee defines the expedited fee in INJ required
|
|
2250
|
+
* to create a spot market by bypassing governance
|
|
2251
|
+
*
|
|
2252
|
+
* @generated from protobuf field: cosmos.base.v1beta1.Coin spot_market_instant_listing_fee = 1
|
|
2253
|
+
*/
|
|
2254
|
+
spotMarketInstantListingFee?: Coin$1;
|
|
2255
|
+
/**
|
|
2256
|
+
* derivative_market_instant_listing_fee defines the expedited fee in INJ
|
|
2257
|
+
* required to create a derivative market by bypassing governance
|
|
2258
|
+
*
|
|
2259
|
+
* @generated from protobuf field: cosmos.base.v1beta1.Coin derivative_market_instant_listing_fee = 2
|
|
2260
|
+
*/
|
|
2261
|
+
derivativeMarketInstantListingFee?: Coin$1;
|
|
2262
|
+
/**
|
|
2263
|
+
* default_spot_maker_fee defines the default exchange trade fee for makers on
|
|
2264
|
+
* a spot market
|
|
2265
|
+
*
|
|
2266
|
+
* @generated from protobuf field: string default_spot_maker_fee_rate = 3
|
|
2267
|
+
*/
|
|
2268
|
+
defaultSpotMakerFeeRate: string;
|
|
2269
|
+
/**
|
|
2270
|
+
* default_spot_taker_fee_rate defines the default exchange trade fee rate for
|
|
2271
|
+
* takers on a new spot market
|
|
2272
|
+
*
|
|
2273
|
+
* @generated from protobuf field: string default_spot_taker_fee_rate = 4
|
|
2274
|
+
*/
|
|
2275
|
+
defaultSpotTakerFeeRate: string;
|
|
2276
|
+
/**
|
|
2277
|
+
* default_derivative_maker_fee defines the default exchange trade fee for
|
|
2278
|
+
* makers on a new derivative market
|
|
2279
|
+
*
|
|
2280
|
+
* @generated from protobuf field: string default_derivative_maker_fee_rate = 5
|
|
2281
|
+
*/
|
|
2282
|
+
defaultDerivativeMakerFeeRate: string;
|
|
2283
|
+
/**
|
|
2284
|
+
* default_derivative_taker_fee defines the default exchange trade fee for
|
|
2285
|
+
* takers on a new derivative market
|
|
2286
|
+
*
|
|
2287
|
+
* @generated from protobuf field: string default_derivative_taker_fee_rate = 6
|
|
2288
|
+
*/
|
|
2289
|
+
defaultDerivativeTakerFeeRate: string;
|
|
2290
|
+
/**
|
|
2291
|
+
* default_initial_margin_ratio defines the default initial margin ratio on a
|
|
2292
|
+
* new derivative market
|
|
2293
|
+
*
|
|
2294
|
+
* @generated from protobuf field: string default_initial_margin_ratio = 7
|
|
2295
|
+
*/
|
|
2296
|
+
defaultInitialMarginRatio: string;
|
|
2297
|
+
/**
|
|
2298
|
+
* default_maintenance_margin_ratio defines the default maintenance margin
|
|
2299
|
+
* ratio on a new derivative market
|
|
2300
|
+
*
|
|
2301
|
+
* @generated from protobuf field: string default_maintenance_margin_ratio = 8
|
|
2302
|
+
*/
|
|
2303
|
+
defaultMaintenanceMarginRatio: string;
|
|
2304
|
+
/**
|
|
2305
|
+
* default_funding_interval defines the default funding interval on a
|
|
2306
|
+
* derivative market
|
|
2307
|
+
*
|
|
2308
|
+
* @generated from protobuf field: int64 default_funding_interval = 9
|
|
2309
|
+
*/
|
|
2310
|
+
defaultFundingInterval: bigint;
|
|
2311
|
+
/**
|
|
2312
|
+
* funding_multiple defines the timestamp multiple that the funding timestamp
|
|
2313
|
+
* should be a multiple of
|
|
2314
|
+
*
|
|
2315
|
+
* @generated from protobuf field: int64 funding_multiple = 10
|
|
2316
|
+
*/
|
|
2317
|
+
fundingMultiple: bigint;
|
|
2318
|
+
/**
|
|
2319
|
+
* relayer_fee_share_rate defines the trade fee share percentage that goes to
|
|
2320
|
+
* relayers
|
|
2321
|
+
*
|
|
2322
|
+
* @generated from protobuf field: string relayer_fee_share_rate = 11
|
|
2323
|
+
*/
|
|
2324
|
+
relayerFeeShareRate: string;
|
|
2325
|
+
/**
|
|
2326
|
+
* default_hourly_funding_rate_cap defines the default maximum absolute value
|
|
2327
|
+
* of the hourly funding rate
|
|
2328
|
+
*
|
|
2329
|
+
* @generated from protobuf field: string default_hourly_funding_rate_cap = 12
|
|
2330
|
+
*/
|
|
2331
|
+
defaultHourlyFundingRateCap: string;
|
|
2332
|
+
/**
|
|
2333
|
+
* hourly_interest_rate defines the hourly interest rate
|
|
2334
|
+
*
|
|
2335
|
+
* @generated from protobuf field: string default_hourly_interest_rate = 13
|
|
2336
|
+
*/
|
|
2337
|
+
defaultHourlyInterestRate: string;
|
|
2338
|
+
/**
|
|
2339
|
+
* max_derivative_order_side_count defines the maximum number of derivative
|
|
2340
|
+
* active orders a subaccount can have for a given orderbook side
|
|
2341
|
+
*
|
|
2342
|
+
* @generated from protobuf field: uint32 max_derivative_order_side_count = 14
|
|
2343
|
+
*/
|
|
2344
|
+
maxDerivativeOrderSideCount: number;
|
|
2345
|
+
/**
|
|
2346
|
+
* inj_reward_staked_requirement_threshold defines the threshold on INJ
|
|
2347
|
+
* rewards after which one also needs staked INJ to receive more
|
|
2348
|
+
*
|
|
2349
|
+
* @generated from protobuf field: string inj_reward_staked_requirement_threshold = 15
|
|
2350
|
+
*/
|
|
2351
|
+
injRewardStakedRequirementThreshold: string;
|
|
2352
|
+
/**
|
|
2353
|
+
* the trading_rewards_vesting_duration defines the vesting times for trading
|
|
2354
|
+
* rewards
|
|
2355
|
+
*
|
|
2356
|
+
* @generated from protobuf field: int64 trading_rewards_vesting_duration = 16
|
|
2357
|
+
*/
|
|
2358
|
+
tradingRewardsVestingDuration: bigint;
|
|
2359
|
+
/**
|
|
2360
|
+
* liquidator_reward_share_rate defines the ratio of the split of the surplus
|
|
2361
|
+
* collateral that goes to the liquidator
|
|
2362
|
+
*
|
|
2363
|
+
* @generated from protobuf field: string liquidator_reward_share_rate = 17
|
|
2364
|
+
*/
|
|
2365
|
+
liquidatorRewardShareRate: string;
|
|
2366
|
+
/**
|
|
2367
|
+
* binary_options_market_instant_listing_fee defines the expedited fee in INJ
|
|
2368
|
+
* required to create a derivative market by bypassing governance
|
|
2369
|
+
*
|
|
2370
|
+
* @generated from protobuf field: cosmos.base.v1beta1.Coin binary_options_market_instant_listing_fee = 18
|
|
2371
|
+
*/
|
|
2372
|
+
binaryOptionsMarketInstantListingFee?: Coin$1;
|
|
2373
|
+
/**
|
|
2374
|
+
* atomic_market_order_access_level defines the required access permissions
|
|
2375
|
+
* for executing atomic market orders
|
|
2376
|
+
*
|
|
2377
|
+
* @generated from protobuf field: injective.exchange.v1beta1.AtomicMarketOrderAccessLevel atomic_market_order_access_level = 19
|
|
2378
|
+
*/
|
|
2379
|
+
atomicMarketOrderAccessLevel: AtomicMarketOrderAccessLevel;
|
|
2380
|
+
/**
|
|
2381
|
+
* spot_atomic_market_order_fee_multiplier defines the default multiplier for
|
|
2382
|
+
* executing atomic market orders in spot markets
|
|
2383
|
+
*
|
|
2384
|
+
* @generated from protobuf field: string spot_atomic_market_order_fee_multiplier = 20
|
|
2385
|
+
*/
|
|
2386
|
+
spotAtomicMarketOrderFeeMultiplier: string;
|
|
2387
|
+
/**
|
|
2388
|
+
* derivative_atomic_market_order_fee_multiplier defines the default
|
|
2389
|
+
* multiplier for executing atomic market orders in derivative markets
|
|
2390
|
+
*
|
|
2391
|
+
* @generated from protobuf field: string derivative_atomic_market_order_fee_multiplier = 21
|
|
2392
|
+
*/
|
|
2393
|
+
derivativeAtomicMarketOrderFeeMultiplier: string;
|
|
2394
|
+
/**
|
|
2395
|
+
* binary_options_atomic_market_order_fee_multiplier defines the default
|
|
2396
|
+
* multiplier for executing atomic market orders in binary markets
|
|
2397
|
+
*
|
|
2398
|
+
* @generated from protobuf field: string binary_options_atomic_market_order_fee_multiplier = 22
|
|
2399
|
+
*/
|
|
2400
|
+
binaryOptionsAtomicMarketOrderFeeMultiplier: string;
|
|
2401
|
+
/**
|
|
2402
|
+
* minimal_protocol_fee_rate defines the minimal protocol fee rate
|
|
2403
|
+
*
|
|
2404
|
+
* @generated from protobuf field: string minimal_protocol_fee_rate = 23
|
|
2405
|
+
*/
|
|
2406
|
+
minimalProtocolFeeRate: string;
|
|
2407
|
+
/**
|
|
2408
|
+
* is_instant_derivative_market_launch_enabled defines whether instant
|
|
2409
|
+
* derivative market launch is enabled
|
|
2410
|
+
*
|
|
2411
|
+
* @generated from protobuf field: bool is_instant_derivative_market_launch_enabled = 24
|
|
2412
|
+
*/
|
|
2413
|
+
isInstantDerivativeMarketLaunchEnabled: boolean;
|
|
2414
|
+
/**
|
|
2415
|
+
* @generated from protobuf field: int64 post_only_mode_height_threshold = 25
|
|
2416
|
+
*/
|
|
2417
|
+
postOnlyModeHeightThreshold: bigint;
|
|
2418
|
+
/**
|
|
2419
|
+
* Maximum time in seconds since the last mark price update to allow a
|
|
2420
|
+
* decrease in margin
|
|
2421
|
+
*
|
|
2422
|
+
* @generated from protobuf field: int64 margin_decrease_price_timestamp_threshold_seconds = 26
|
|
2423
|
+
*/
|
|
2424
|
+
marginDecreasePriceTimestampThresholdSeconds: bigint;
|
|
2425
|
+
/**
|
|
2426
|
+
* List of addresses that are allowed to perform exchange admin operations
|
|
2427
|
+
*
|
|
2428
|
+
* @generated from protobuf field: repeated string exchange_admins = 27
|
|
2429
|
+
*/
|
|
2430
|
+
exchangeAdmins: string[];
|
|
2431
|
+
/**
|
|
2432
|
+
* inj_auction_max_cap defines the maximum cap for INJ sent to auction
|
|
2433
|
+
*
|
|
2434
|
+
* @generated from protobuf field: string inj_auction_max_cap = 28
|
|
2435
|
+
*/
|
|
2436
|
+
injAuctionMaxCap: string;
|
|
2437
|
+
/**
|
|
2438
|
+
* fixed_gas_enabled indicates if msg server will consume fixed gas amount for
|
|
2439
|
+
* certain msg types
|
|
2440
|
+
*
|
|
2441
|
+
* @generated from protobuf field: bool fixed_gas_enabled = 29
|
|
2442
|
+
*/
|
|
2443
|
+
fixedGasEnabled: boolean;
|
|
2444
|
+
}
|
|
2445
|
+
/**
|
|
2446
|
+
* @generated from protobuf message injective.exchange.v1beta1.MarketFeeMultiplier
|
|
2447
|
+
*/
|
|
2448
|
+
interface MarketFeeMultiplier {
|
|
2449
|
+
/**
|
|
2450
|
+
* @generated from protobuf field: string market_id = 1
|
|
2451
|
+
*/
|
|
2452
|
+
marketId: string;
|
|
2453
|
+
/**
|
|
2454
|
+
* @generated from protobuf field: string fee_multiplier = 2
|
|
2455
|
+
*/
|
|
2456
|
+
feeMultiplier: string;
|
|
2457
|
+
}
|
|
2458
|
+
/**
|
|
2459
|
+
* An object describing a derivative market in the Injective Futures Protocol.
|
|
2460
|
+
*
|
|
2461
|
+
* @generated from protobuf message injective.exchange.v1beta1.DerivativeMarket
|
|
2462
|
+
*/
|
|
2463
|
+
interface DerivativeMarket {
|
|
2464
|
+
/**
|
|
2465
|
+
* Ticker for the derivative contract.
|
|
2466
|
+
*
|
|
2467
|
+
* @generated from protobuf field: string ticker = 1
|
|
2468
|
+
*/
|
|
2469
|
+
ticker: string;
|
|
2470
|
+
/**
|
|
2471
|
+
* Oracle base currency
|
|
2472
|
+
*
|
|
2473
|
+
* @generated from protobuf field: string oracle_base = 2
|
|
2474
|
+
*/
|
|
2475
|
+
oracleBase: string;
|
|
2476
|
+
/**
|
|
2477
|
+
* Oracle quote currency
|
|
2478
|
+
*
|
|
2479
|
+
* @generated from protobuf field: string oracle_quote = 3
|
|
2480
|
+
*/
|
|
2481
|
+
oracleQuote: string;
|
|
2482
|
+
/**
|
|
2483
|
+
* Oracle type
|
|
2484
|
+
*
|
|
2485
|
+
* @generated from protobuf field: injective.oracle.v1beta1.OracleType oracle_type = 4
|
|
2486
|
+
*/
|
|
2487
|
+
oracleType: OracleType;
|
|
2488
|
+
/**
|
|
2489
|
+
* Scale factor for oracle prices.
|
|
2490
|
+
*
|
|
2491
|
+
* @generated from protobuf field: uint32 oracle_scale_factor = 5
|
|
2492
|
+
*/
|
|
2493
|
+
oracleScaleFactor: number;
|
|
2494
|
+
/**
|
|
2495
|
+
* Address of the quote currency denomination for the derivative contract
|
|
2496
|
+
*
|
|
2497
|
+
* @generated from protobuf field: string quote_denom = 6
|
|
2498
|
+
*/
|
|
2499
|
+
quoteDenom: string;
|
|
2500
|
+
/**
|
|
2501
|
+
* Unique market ID.
|
|
2502
|
+
*
|
|
2503
|
+
* @generated from protobuf field: string market_id = 7
|
|
2504
|
+
*/
|
|
2505
|
+
marketId: string;
|
|
2506
|
+
/**
|
|
2507
|
+
* initial_margin_ratio defines the initial margin ratio of a derivative
|
|
2508
|
+
* market
|
|
2509
|
+
*
|
|
2510
|
+
* @generated from protobuf field: string initial_margin_ratio = 8
|
|
2511
|
+
*/
|
|
2512
|
+
initialMarginRatio: string;
|
|
2513
|
+
/**
|
|
2514
|
+
* maintenance_margin_ratio defines the maintenance margin ratio of a
|
|
2515
|
+
* derivative market
|
|
2516
|
+
*
|
|
2517
|
+
* @generated from protobuf field: string maintenance_margin_ratio = 9
|
|
2518
|
+
*/
|
|
2519
|
+
maintenanceMarginRatio: string;
|
|
2520
|
+
/**
|
|
2521
|
+
* maker_fee_rate defines the maker fee rate of a derivative market
|
|
2522
|
+
*
|
|
2523
|
+
* @generated from protobuf field: string maker_fee_rate = 10
|
|
2524
|
+
*/
|
|
2525
|
+
makerFeeRate: string;
|
|
2526
|
+
/**
|
|
2527
|
+
* taker_fee_rate defines the taker fee rate of a derivative market
|
|
2528
|
+
*
|
|
2529
|
+
* @generated from protobuf field: string taker_fee_rate = 11
|
|
2530
|
+
*/
|
|
2531
|
+
takerFeeRate: string;
|
|
2532
|
+
/**
|
|
2533
|
+
* relayer_fee_share_rate defines the percentage of the transaction fee shared
|
|
2534
|
+
* with the relayer in a derivative market
|
|
2535
|
+
*
|
|
2536
|
+
* @generated from protobuf field: string relayer_fee_share_rate = 12
|
|
2537
|
+
*/
|
|
2538
|
+
relayerFeeShareRate: string;
|
|
2539
|
+
/**
|
|
2540
|
+
* true if the market is a perpetual market. false if the market is an expiry
|
|
2541
|
+
* futures market
|
|
2542
|
+
*
|
|
2543
|
+
* @generated from protobuf field: bool isPerpetual = 13
|
|
2544
|
+
*/
|
|
2545
|
+
isPerpetual: boolean;
|
|
2546
|
+
/**
|
|
2547
|
+
* Status of the market
|
|
2548
|
+
*
|
|
2549
|
+
* @generated from protobuf field: injective.exchange.v1beta1.MarketStatus status = 14
|
|
2550
|
+
*/
|
|
2551
|
+
status: MarketStatus;
|
|
2552
|
+
/**
|
|
2553
|
+
* min_price_tick_size defines the minimum tick size that the price and margin
|
|
2554
|
+
* required for orders in the market (in chain format)
|
|
2555
|
+
*
|
|
2556
|
+
* @generated from protobuf field: string min_price_tick_size = 15
|
|
2557
|
+
*/
|
|
2558
|
+
minPriceTickSize: string;
|
|
2559
|
+
/**
|
|
2560
|
+
* min_quantity_tick_size defines the minimum tick size of the quantity
|
|
2561
|
+
* required for orders in the market (in chain format)
|
|
2562
|
+
*
|
|
2563
|
+
* @generated from protobuf field: string min_quantity_tick_size = 16
|
|
2564
|
+
*/
|
|
2565
|
+
minQuantityTickSize: string;
|
|
2566
|
+
/**
|
|
2567
|
+
* min_notional defines the minimum notional (in quote asset) required for
|
|
2568
|
+
* orders in the market (in chain format)
|
|
2569
|
+
*
|
|
2570
|
+
* @generated from protobuf field: string min_notional = 17
|
|
2571
|
+
*/
|
|
2572
|
+
minNotional: string;
|
|
2573
|
+
/**
|
|
2574
|
+
* current market admin
|
|
2575
|
+
*
|
|
2576
|
+
* @generated from protobuf field: string admin = 18
|
|
2577
|
+
*/
|
|
2578
|
+
admin: string;
|
|
2579
|
+
/**
|
|
2580
|
+
* level of admin permissions
|
|
2581
|
+
*
|
|
2582
|
+
* @generated from protobuf field: uint32 admin_permissions = 19
|
|
2583
|
+
*/
|
|
2584
|
+
adminPermissions: number;
|
|
2585
|
+
/**
|
|
2586
|
+
* quote token decimals
|
|
2587
|
+
*
|
|
2588
|
+
* @generated from protobuf field: uint32 quote_decimals = 20
|
|
2589
|
+
*/
|
|
2590
|
+
quoteDecimals: number;
|
|
2591
|
+
/**
|
|
2592
|
+
* reduce_margin_ratio defines the ratio of the margin that is reduced
|
|
2593
|
+
*
|
|
2594
|
+
* @generated from protobuf field: string reduce_margin_ratio = 21
|
|
2595
|
+
*/
|
|
2596
|
+
reduceMarginRatio: string;
|
|
2597
|
+
/**
|
|
2598
|
+
* open_notional_cap defines the maximum open notional for the market
|
|
2599
|
+
*
|
|
2600
|
+
* @generated from protobuf field: injective.exchange.v1beta1.OpenNotionalCap open_notional_cap = 22
|
|
2601
|
+
*/
|
|
2602
|
+
openNotionalCap?: OpenNotionalCap;
|
|
2603
|
+
}
|
|
2604
|
+
/**
|
|
2605
|
+
* An object describing a binary options market in Injective Protocol.
|
|
2606
|
+
*
|
|
2607
|
+
* @generated from protobuf message injective.exchange.v1beta1.BinaryOptionsMarket
|
|
2608
|
+
*/
|
|
2609
|
+
interface BinaryOptionsMarket {
|
|
2610
|
+
/**
|
|
2611
|
+
* Ticker for the derivative contract.
|
|
2612
|
+
*
|
|
2613
|
+
* @generated from protobuf field: string ticker = 1
|
|
2614
|
+
*/
|
|
2615
|
+
ticker: string;
|
|
2616
|
+
/**
|
|
2617
|
+
* Oracle symbol
|
|
2618
|
+
*
|
|
2619
|
+
* @generated from protobuf field: string oracle_symbol = 2
|
|
2620
|
+
*/
|
|
2621
|
+
oracleSymbol: string;
|
|
2622
|
+
/**
|
|
2623
|
+
* Oracle Provider
|
|
2624
|
+
*
|
|
2625
|
+
* @generated from protobuf field: string oracle_provider = 3
|
|
2626
|
+
*/
|
|
2627
|
+
oracleProvider: string;
|
|
2628
|
+
/**
|
|
2629
|
+
* Oracle type
|
|
2630
|
+
*
|
|
2631
|
+
* @generated from protobuf field: injective.oracle.v1beta1.OracleType oracle_type = 4
|
|
2632
|
+
*/
|
|
2633
|
+
oracleType: OracleType;
|
|
2634
|
+
/**
|
|
2635
|
+
* Scale factor for oracle prices.
|
|
2636
|
+
*
|
|
2637
|
+
* @generated from protobuf field: uint32 oracle_scale_factor = 5
|
|
2638
|
+
*/
|
|
2639
|
+
oracleScaleFactor: number;
|
|
2640
|
+
/**
|
|
2641
|
+
* expiration timestamp
|
|
2642
|
+
*
|
|
2643
|
+
* @generated from protobuf field: int64 expiration_timestamp = 6
|
|
2644
|
+
*/
|
|
2645
|
+
expirationTimestamp: bigint;
|
|
2646
|
+
/**
|
|
2647
|
+
* expiration timestamp
|
|
2648
|
+
*
|
|
2649
|
+
* @generated from protobuf field: int64 settlement_timestamp = 7
|
|
2650
|
+
*/
|
|
2651
|
+
settlementTimestamp: bigint;
|
|
2652
|
+
/**
|
|
2653
|
+
* admin of the market
|
|
2654
|
+
*
|
|
2655
|
+
* @generated from protobuf field: string admin = 8
|
|
2656
|
+
*/
|
|
2657
|
+
admin: string;
|
|
2658
|
+
/**
|
|
2659
|
+
* Address of the quote currency denomination for the binary options contract
|
|
2660
|
+
*
|
|
2661
|
+
* @generated from protobuf field: string quote_denom = 9
|
|
2662
|
+
*/
|
|
2663
|
+
quoteDenom: string;
|
|
2664
|
+
/**
|
|
2665
|
+
* Unique market ID.
|
|
2666
|
+
*
|
|
2667
|
+
* @generated from protobuf field: string market_id = 10
|
|
2668
|
+
*/
|
|
2669
|
+
marketId: string;
|
|
2670
|
+
/**
|
|
2671
|
+
* maker_fee_rate defines the maker fee rate of a binary options market
|
|
2672
|
+
*
|
|
2673
|
+
* @generated from protobuf field: string maker_fee_rate = 11
|
|
2674
|
+
*/
|
|
2675
|
+
makerFeeRate: string;
|
|
2676
|
+
/**
|
|
2677
|
+
* taker_fee_rate defines the taker fee rate of a derivative market
|
|
2678
|
+
*
|
|
2679
|
+
* @generated from protobuf field: string taker_fee_rate = 12
|
|
2680
|
+
*/
|
|
2681
|
+
takerFeeRate: string;
|
|
2682
|
+
/**
|
|
2683
|
+
* relayer_fee_share_rate defines the percentage of the transaction fee shared
|
|
2684
|
+
* with the relayer in a derivative market
|
|
2685
|
+
*
|
|
2686
|
+
* @generated from protobuf field: string relayer_fee_share_rate = 13
|
|
2687
|
+
*/
|
|
2688
|
+
relayerFeeShareRate: string;
|
|
2689
|
+
/**
|
|
2690
|
+
* Status of the market
|
|
2691
|
+
*
|
|
2692
|
+
* @generated from protobuf field: injective.exchange.v1beta1.MarketStatus status = 14
|
|
2693
|
+
*/
|
|
2694
|
+
status: MarketStatus;
|
|
2695
|
+
/**
|
|
2696
|
+
* min_price_tick_size defines the minimum tick size that the price and margin
|
|
2697
|
+
* required for orders in the market
|
|
2698
|
+
*
|
|
2699
|
+
* @generated from protobuf field: string min_price_tick_size = 15
|
|
2700
|
+
*/
|
|
2701
|
+
minPriceTickSize: string;
|
|
2702
|
+
/**
|
|
2703
|
+
* min_quantity_tick_size defines the minimum tick size of the quantity
|
|
2704
|
+
* required for orders in the market
|
|
2705
|
+
*
|
|
2706
|
+
* @generated from protobuf field: string min_quantity_tick_size = 16
|
|
2707
|
+
*/
|
|
2708
|
+
minQuantityTickSize: string;
|
|
2709
|
+
/**
|
|
2710
|
+
* @generated from protobuf field: string settlement_price = 17
|
|
2711
|
+
*/
|
|
2712
|
+
settlementPrice: string;
|
|
2713
|
+
/**
|
|
2714
|
+
* min_notional defines the minimum notional (in quote asset) required for
|
|
2715
|
+
* orders in the market
|
|
2716
|
+
*
|
|
2717
|
+
* @generated from protobuf field: string min_notional = 18
|
|
2718
|
+
*/
|
|
2719
|
+
minNotional: string;
|
|
2720
|
+
/**
|
|
2721
|
+
* level of admin permissions
|
|
2722
|
+
*
|
|
2723
|
+
* @generated from protobuf field: uint32 admin_permissions = 19
|
|
2724
|
+
*/
|
|
2725
|
+
adminPermissions: number;
|
|
2726
|
+
/**
|
|
2727
|
+
* quote token decimals
|
|
2728
|
+
*
|
|
2729
|
+
* @generated from protobuf field: uint32 quote_decimals = 20
|
|
2730
|
+
*/
|
|
2731
|
+
quoteDecimals: number;
|
|
2732
|
+
}
|
|
2733
|
+
/**
|
|
2734
|
+
* @generated from protobuf message injective.exchange.v1beta1.ExpiryFuturesMarketInfo
|
|
2735
|
+
*/
|
|
2736
|
+
interface ExpiryFuturesMarketInfo {
|
|
2737
|
+
/**
|
|
2738
|
+
* market ID.
|
|
2739
|
+
*
|
|
2740
|
+
* @generated from protobuf field: string market_id = 1
|
|
2741
|
+
*/
|
|
2742
|
+
marketId: string;
|
|
2743
|
+
/**
|
|
2744
|
+
* expiration_timestamp defines the expiration time for a time expiry futures
|
|
2745
|
+
* market.
|
|
2746
|
+
*
|
|
2747
|
+
* @generated from protobuf field: int64 expiration_timestamp = 2
|
|
2748
|
+
*/
|
|
2749
|
+
expirationTimestamp: bigint;
|
|
2750
|
+
/**
|
|
2751
|
+
* expiration_twap_start_timestamp defines the start time of the TWAP
|
|
2752
|
+
* calculation window
|
|
2753
|
+
*
|
|
2754
|
+
* @generated from protobuf field: int64 twap_start_timestamp = 3
|
|
2755
|
+
*/
|
|
2756
|
+
twapStartTimestamp: bigint;
|
|
2757
|
+
/**
|
|
2758
|
+
* expiration_twap_start_price_cumulative defines the cumulative price for the
|
|
2759
|
+
* start of the TWAP window (in chain format)
|
|
2760
|
+
*
|
|
2761
|
+
* @generated from protobuf field: string expiration_twap_start_price_cumulative = 4
|
|
2762
|
+
*/
|
|
2763
|
+
expirationTwapStartPriceCumulative: string;
|
|
2764
|
+
/**
|
|
2765
|
+
* settlement_price defines the settlement price for a time expiry futures
|
|
2766
|
+
* market (in chain format)
|
|
2767
|
+
*
|
|
2768
|
+
* @generated from protobuf field: string settlement_price = 5
|
|
2769
|
+
*/
|
|
2770
|
+
settlementPrice: string;
|
|
2771
|
+
}
|
|
2772
|
+
/**
|
|
2773
|
+
* @generated from protobuf message injective.exchange.v1beta1.PerpetualMarketInfo
|
|
2774
|
+
*/
|
|
2775
|
+
interface PerpetualMarketInfo {
|
|
2776
|
+
/**
|
|
2777
|
+
* market ID.
|
|
2778
|
+
*
|
|
2779
|
+
* @generated from protobuf field: string market_id = 1
|
|
2780
|
+
*/
|
|
2781
|
+
marketId: string;
|
|
2782
|
+
/**
|
|
2783
|
+
* hourly_funding_rate_cap defines the maximum absolute value of the hourly
|
|
2784
|
+
* funding rate
|
|
2785
|
+
*
|
|
2786
|
+
* @generated from protobuf field: string hourly_funding_rate_cap = 2
|
|
2787
|
+
*/
|
|
2788
|
+
hourlyFundingRateCap: string;
|
|
2789
|
+
/**
|
|
2790
|
+
* hourly_interest_rate defines the hourly interest rate
|
|
2791
|
+
*
|
|
2792
|
+
* @generated from protobuf field: string hourly_interest_rate = 3
|
|
2793
|
+
*/
|
|
2794
|
+
hourlyInterestRate: string;
|
|
2795
|
+
/**
|
|
2796
|
+
* next_funding_timestamp defines the next funding timestamp in seconds of a
|
|
2797
|
+
* perpetual market
|
|
2798
|
+
*
|
|
2799
|
+
* @generated from protobuf field: int64 next_funding_timestamp = 4
|
|
2800
|
+
*/
|
|
2801
|
+
nextFundingTimestamp: bigint;
|
|
2802
|
+
/**
|
|
2803
|
+
* funding_interval defines the next funding interval in seconds of a
|
|
2804
|
+
* perpetual market.
|
|
2805
|
+
*
|
|
2806
|
+
* @generated from protobuf field: int64 funding_interval = 5
|
|
2807
|
+
*/
|
|
2808
|
+
fundingInterval: bigint;
|
|
2809
|
+
}
|
|
2810
|
+
/**
|
|
2811
|
+
* @generated from protobuf message injective.exchange.v1beta1.PerpetualMarketFunding
|
|
2812
|
+
*/
|
|
2813
|
+
interface PerpetualMarketFunding {
|
|
2814
|
+
/**
|
|
2815
|
+
* cumulative_funding defines the cumulative funding of a perpetual market.
|
|
2816
|
+
*
|
|
2817
|
+
* @generated from protobuf field: string cumulative_funding = 1
|
|
2818
|
+
*/
|
|
2819
|
+
cumulativeFunding: string;
|
|
2820
|
+
/**
|
|
2821
|
+
* cumulative_price defines the running time-integral of the perp premium
|
|
2822
|
+
* ((VWAP - mark_price) / mark_price) i.e., sum(premium * seconds)
|
|
2823
|
+
* used to compute the interval’s average premium for funding
|
|
2824
|
+
*
|
|
2825
|
+
* @generated from protobuf field: string cumulative_price = 2
|
|
2826
|
+
*/
|
|
2827
|
+
cumulativePrice: string;
|
|
2828
|
+
/**
|
|
2829
|
+
* the last timestamp in seconds
|
|
2830
|
+
*
|
|
2831
|
+
* @generated from protobuf field: int64 last_timestamp = 3
|
|
2832
|
+
*/
|
|
2833
|
+
lastTimestamp: bigint;
|
|
2834
|
+
}
|
|
2835
|
+
/**
|
|
2836
|
+
* @generated from protobuf message injective.exchange.v1beta1.DerivativeMarketSettlementInfo
|
|
2837
|
+
*/
|
|
2838
|
+
interface DerivativeMarketSettlementInfo {
|
|
2839
|
+
/**
|
|
2840
|
+
* market ID.
|
|
2841
|
+
*
|
|
2842
|
+
* @generated from protobuf field: string market_id = 1
|
|
2843
|
+
*/
|
|
2844
|
+
marketId: string;
|
|
2845
|
+
/**
|
|
2846
|
+
* settlement_price defines the settlement price
|
|
2847
|
+
*
|
|
2848
|
+
* @generated from protobuf field: string settlement_price = 2
|
|
2849
|
+
*/
|
|
2850
|
+
settlementPrice: string;
|
|
2851
|
+
}
|
|
2852
|
+
/**
|
|
2853
|
+
* @generated from protobuf message injective.exchange.v1beta1.MidPriceAndTOB
|
|
2854
|
+
*/
|
|
2855
|
+
interface MidPriceAndTOB {
|
|
2856
|
+
/**
|
|
2857
|
+
* mid price of the market (in chain format)
|
|
2858
|
+
*
|
|
2859
|
+
* @generated from protobuf field: string mid_price = 1
|
|
2860
|
+
*/
|
|
2861
|
+
midPrice: string;
|
|
2862
|
+
/**
|
|
2863
|
+
* best buy price of the market (in chain format)
|
|
2864
|
+
*
|
|
2865
|
+
* @generated from protobuf field: string best_buy_price = 2
|
|
2866
|
+
*/
|
|
2867
|
+
bestBuyPrice: string;
|
|
2868
|
+
/**
|
|
2869
|
+
* best sell price of the market (in chain format)
|
|
2870
|
+
*
|
|
2871
|
+
* @generated from protobuf field: string best_sell_price = 3
|
|
2872
|
+
*/
|
|
2873
|
+
bestSellPrice: string;
|
|
2874
|
+
}
|
|
2875
|
+
/**
|
|
2876
|
+
* An object describing trade pair of two assets.
|
|
2877
|
+
*
|
|
2878
|
+
* @generated from protobuf message injective.exchange.v1beta1.SpotMarket
|
|
2879
|
+
*/
|
|
2880
|
+
interface SpotMarket {
|
|
2881
|
+
/**
|
|
2882
|
+
* A name of the pair in format AAA/BBB, where AAA is base asset, BBB is quote
|
|
2883
|
+
* asset.
|
|
2884
|
+
*
|
|
2885
|
+
* @generated from protobuf field: string ticker = 1
|
|
2886
|
+
*/
|
|
2887
|
+
ticker: string;
|
|
2888
|
+
/**
|
|
2889
|
+
* Coin denom used for the base asset
|
|
2890
|
+
*
|
|
2891
|
+
* @generated from protobuf field: string base_denom = 2
|
|
2892
|
+
*/
|
|
2893
|
+
baseDenom: string;
|
|
2894
|
+
/**
|
|
2895
|
+
* Coin used for the quote asset
|
|
2896
|
+
*
|
|
2897
|
+
* @generated from protobuf field: string quote_denom = 3
|
|
2898
|
+
*/
|
|
2899
|
+
quoteDenom: string;
|
|
2900
|
+
/**
|
|
2901
|
+
* maker_fee_rate defines the fee percentage makers pay when trading
|
|
2902
|
+
*
|
|
2903
|
+
* @generated from protobuf field: string maker_fee_rate = 4
|
|
2904
|
+
*/
|
|
2905
|
+
makerFeeRate: string;
|
|
2906
|
+
/**
|
|
2907
|
+
* taker_fee_rate defines the fee percentage takers pay when trading
|
|
2908
|
+
*
|
|
2909
|
+
* @generated from protobuf field: string taker_fee_rate = 5
|
|
2910
|
+
*/
|
|
2911
|
+
takerFeeRate: string;
|
|
2912
|
+
/**
|
|
2913
|
+
* relayer_fee_share_rate defines the percentage of the transaction fee shared
|
|
2914
|
+
* with the relayer in a derivative market
|
|
2915
|
+
*
|
|
2916
|
+
* @generated from protobuf field: string relayer_fee_share_rate = 6
|
|
2917
|
+
*/
|
|
2918
|
+
relayerFeeShareRate: string;
|
|
2919
|
+
/**
|
|
2920
|
+
* Unique market ID.
|
|
2921
|
+
*
|
|
2922
|
+
* @generated from protobuf field: string market_id = 7
|
|
2923
|
+
*/
|
|
2924
|
+
marketId: string;
|
|
2925
|
+
/**
|
|
2926
|
+
* Status of the market
|
|
2927
|
+
*
|
|
2928
|
+
* @generated from protobuf field: injective.exchange.v1beta1.MarketStatus status = 8
|
|
2929
|
+
*/
|
|
2930
|
+
status: MarketStatus;
|
|
2931
|
+
/**
|
|
2932
|
+
* min_price_tick_size defines the minimum tick size that the price required
|
|
2933
|
+
* for orders in the market (in chain format)
|
|
2934
|
+
*
|
|
2935
|
+
* @generated from protobuf field: string min_price_tick_size = 9
|
|
2936
|
+
*/
|
|
2937
|
+
minPriceTickSize: string;
|
|
2938
|
+
/**
|
|
2939
|
+
* min_quantity_tick_size defines the minimum tick size of the quantity
|
|
2940
|
+
* required for orders in the market (in chain format)
|
|
2941
|
+
*
|
|
2942
|
+
* @generated from protobuf field: string min_quantity_tick_size = 10
|
|
2943
|
+
*/
|
|
2944
|
+
minQuantityTickSize: string;
|
|
2945
|
+
/**
|
|
2946
|
+
* min_notional defines the minimum notional (in quote asset) required for
|
|
2947
|
+
* orders in the market (in chain format)
|
|
2948
|
+
*
|
|
2949
|
+
* @generated from protobuf field: string min_notional = 11
|
|
2950
|
+
*/
|
|
2951
|
+
minNotional: string;
|
|
2952
|
+
/**
|
|
2953
|
+
* current market admin
|
|
2954
|
+
*
|
|
2955
|
+
* @generated from protobuf field: string admin = 12
|
|
2956
|
+
*/
|
|
2957
|
+
admin: string;
|
|
2958
|
+
/**
|
|
2959
|
+
* level of admin permissions
|
|
2960
|
+
*
|
|
2961
|
+
* @generated from protobuf field: uint32 admin_permissions = 13
|
|
2962
|
+
*/
|
|
2963
|
+
adminPermissions: number;
|
|
2964
|
+
/**
|
|
2965
|
+
* base token decimals
|
|
2966
|
+
*
|
|
2967
|
+
* @generated from protobuf field: uint32 base_decimals = 14
|
|
2968
|
+
*/
|
|
2969
|
+
baseDecimals: number;
|
|
2970
|
+
/**
|
|
2971
|
+
* quote token decimals
|
|
2972
|
+
*
|
|
2973
|
+
* @generated from protobuf field: uint32 quote_decimals = 15
|
|
2974
|
+
*/
|
|
2975
|
+
quoteDecimals: number;
|
|
2976
|
+
}
|
|
2977
|
+
/**
|
|
2978
|
+
* A subaccount's deposit for a given base currency
|
|
2979
|
+
*
|
|
2980
|
+
* @generated from protobuf message injective.exchange.v1beta1.Deposit
|
|
2981
|
+
*/
|
|
2982
|
+
interface Deposit {
|
|
2983
|
+
/**
|
|
2984
|
+
* @generated from protobuf field: string available_balance = 1
|
|
2985
|
+
*/
|
|
2986
|
+
availableBalance: string;
|
|
2987
|
+
/**
|
|
2988
|
+
* @generated from protobuf field: string total_balance = 2
|
|
2989
|
+
*/
|
|
2990
|
+
totalBalance: string;
|
|
2991
|
+
}
|
|
2992
|
+
/**
|
|
2993
|
+
* @generated from protobuf message injective.exchange.v1beta1.SubaccountTradeNonce
|
|
2994
|
+
*/
|
|
2995
|
+
interface SubaccountTradeNonce {
|
|
2996
|
+
/**
|
|
2997
|
+
* @generated from protobuf field: uint32 nonce = 1
|
|
2998
|
+
*/
|
|
2999
|
+
nonce: number;
|
|
3000
|
+
}
|
|
3001
|
+
/**
|
|
3002
|
+
* @generated from protobuf message injective.exchange.v1beta1.OrderInfo
|
|
3003
|
+
*/
|
|
3004
|
+
interface OrderInfo {
|
|
3005
|
+
/**
|
|
3006
|
+
* bytes32 subaccount ID that created the order
|
|
3007
|
+
*
|
|
3008
|
+
* @generated from protobuf field: string subaccount_id = 1
|
|
3009
|
+
*/
|
|
3010
|
+
subaccountId: string;
|
|
3011
|
+
/**
|
|
3012
|
+
* address fee_recipient address that will receive fees for the order
|
|
3013
|
+
*
|
|
3014
|
+
* @generated from protobuf field: string fee_recipient = 2
|
|
3015
|
+
*/
|
|
3016
|
+
feeRecipient: string;
|
|
3017
|
+
/**
|
|
3018
|
+
* price of the order
|
|
3019
|
+
*
|
|
3020
|
+
* @generated from protobuf field: string price = 3
|
|
3021
|
+
*/
|
|
3022
|
+
price: string;
|
|
3023
|
+
/**
|
|
3024
|
+
* quantity of the order
|
|
3025
|
+
*
|
|
3026
|
+
* @generated from protobuf field: string quantity = 4
|
|
3027
|
+
*/
|
|
3028
|
+
quantity: string;
|
|
3029
|
+
/**
|
|
3030
|
+
* @generated from protobuf field: string cid = 5
|
|
3031
|
+
*/
|
|
3032
|
+
cid: string;
|
|
3033
|
+
}
|
|
3034
|
+
/**
|
|
3035
|
+
* @generated from protobuf message injective.exchange.v1beta1.SpotOrder
|
|
3036
|
+
*/
|
|
3037
|
+
interface SpotOrder {
|
|
3038
|
+
/**
|
|
3039
|
+
* market_id represents the unique ID of the market
|
|
3040
|
+
*
|
|
3041
|
+
* @generated from protobuf field: string market_id = 1
|
|
3042
|
+
*/
|
|
3043
|
+
marketId: string;
|
|
3044
|
+
/**
|
|
3045
|
+
* order_info contains the information of the order
|
|
3046
|
+
*
|
|
3047
|
+
* @generated from protobuf field: injective.exchange.v1beta1.OrderInfo order_info = 2
|
|
3048
|
+
*/
|
|
3049
|
+
orderInfo?: OrderInfo;
|
|
3050
|
+
/**
|
|
3051
|
+
* order types
|
|
3052
|
+
*
|
|
3053
|
+
* @generated from protobuf field: injective.exchange.v1beta1.OrderType order_type = 3
|
|
3054
|
+
*/
|
|
3055
|
+
orderType: OrderType;
|
|
3056
|
+
/**
|
|
3057
|
+
* trigger_price is the trigger price used by stop/take orders
|
|
3058
|
+
*
|
|
3059
|
+
* @generated from protobuf field: string trigger_price = 4
|
|
3060
|
+
*/
|
|
3061
|
+
triggerPrice: string;
|
|
3062
|
+
}
|
|
3063
|
+
/**
|
|
3064
|
+
* A valid Spot limit order with Metadata.
|
|
3065
|
+
*
|
|
3066
|
+
* @generated from protobuf message injective.exchange.v1beta1.SpotLimitOrder
|
|
3067
|
+
*/
|
|
3068
|
+
interface SpotLimitOrder {
|
|
3069
|
+
/**
|
|
3070
|
+
* order_info contains the information of the order
|
|
3071
|
+
*
|
|
3072
|
+
* @generated from protobuf field: injective.exchange.v1beta1.OrderInfo order_info = 1
|
|
3073
|
+
*/
|
|
3074
|
+
orderInfo?: OrderInfo;
|
|
3075
|
+
/**
|
|
3076
|
+
* order types
|
|
3077
|
+
*
|
|
3078
|
+
* @generated from protobuf field: injective.exchange.v1beta1.OrderType order_type = 2
|
|
3079
|
+
*/
|
|
3080
|
+
orderType: OrderType;
|
|
3081
|
+
/**
|
|
3082
|
+
* the amount of the quantity remaining fillable
|
|
3083
|
+
*
|
|
3084
|
+
* @generated from protobuf field: string fillable = 3
|
|
3085
|
+
*/
|
|
3086
|
+
fillable: string;
|
|
3087
|
+
/**
|
|
3088
|
+
* trigger_price is the trigger price used by stop/take orders
|
|
3089
|
+
*
|
|
3090
|
+
* @generated from protobuf field: string trigger_price = 4
|
|
3091
|
+
*/
|
|
3092
|
+
triggerPrice: string;
|
|
3093
|
+
/**
|
|
3094
|
+
* @generated from protobuf field: bytes order_hash = 5
|
|
3095
|
+
*/
|
|
3096
|
+
orderHash: Uint8Array;
|
|
3097
|
+
}
|
|
3098
|
+
/**
|
|
3099
|
+
* A valid Spot market order with Metadata.
|
|
3100
|
+
*
|
|
3101
|
+
* @generated from protobuf message injective.exchange.v1beta1.SpotMarketOrder
|
|
3102
|
+
*/
|
|
3103
|
+
interface SpotMarketOrder {
|
|
3104
|
+
/**
|
|
3105
|
+
* order_info contains the information of the order
|
|
3106
|
+
*
|
|
3107
|
+
* @generated from protobuf field: injective.exchange.v1beta1.OrderInfo order_info = 1
|
|
3108
|
+
*/
|
|
3109
|
+
orderInfo?: OrderInfo;
|
|
3110
|
+
/**
|
|
3111
|
+
* @generated from protobuf field: string balance_hold = 2
|
|
3112
|
+
*/
|
|
3113
|
+
balanceHold: string;
|
|
3114
|
+
/**
|
|
3115
|
+
* @generated from protobuf field: bytes order_hash = 3
|
|
3116
|
+
*/
|
|
3117
|
+
orderHash: Uint8Array;
|
|
3118
|
+
/**
|
|
3119
|
+
* order types
|
|
3120
|
+
*
|
|
3121
|
+
* @generated from protobuf field: injective.exchange.v1beta1.OrderType order_type = 4
|
|
3122
|
+
*/
|
|
3123
|
+
orderType: OrderType;
|
|
3124
|
+
/**
|
|
3125
|
+
* trigger_price is the trigger price used by stop/take orders
|
|
3126
|
+
*
|
|
3127
|
+
* @generated from protobuf field: string trigger_price = 5
|
|
3128
|
+
*/
|
|
3129
|
+
triggerPrice: string;
|
|
3130
|
+
}
|
|
3131
|
+
/**
|
|
3132
|
+
* @generated from protobuf message injective.exchange.v1beta1.DerivativeOrder
|
|
3133
|
+
*/
|
|
3134
|
+
interface DerivativeOrder {
|
|
3135
|
+
/**
|
|
3136
|
+
* market_id represents the unique ID of the market
|
|
3137
|
+
*
|
|
3138
|
+
* @generated from protobuf field: string market_id = 1
|
|
3139
|
+
*/
|
|
3140
|
+
marketId: string;
|
|
3141
|
+
/**
|
|
3142
|
+
* order_info contains the information of the order
|
|
3143
|
+
*
|
|
3144
|
+
* @generated from protobuf field: injective.exchange.v1beta1.OrderInfo order_info = 2
|
|
3145
|
+
*/
|
|
3146
|
+
orderInfo?: OrderInfo;
|
|
3147
|
+
/**
|
|
3148
|
+
* order types
|
|
3149
|
+
*
|
|
3150
|
+
* @generated from protobuf field: injective.exchange.v1beta1.OrderType order_type = 3
|
|
3151
|
+
*/
|
|
3152
|
+
orderType: OrderType;
|
|
3153
|
+
/**
|
|
3154
|
+
* margin is the margin used by the limit order
|
|
3155
|
+
*
|
|
3156
|
+
* @generated from protobuf field: string margin = 4
|
|
3157
|
+
*/
|
|
3158
|
+
margin: string;
|
|
3159
|
+
/**
|
|
3160
|
+
* trigger_price is the trigger price used by stop/take orders
|
|
3161
|
+
*
|
|
3162
|
+
* @generated from protobuf field: string trigger_price = 5
|
|
3163
|
+
*/
|
|
3164
|
+
triggerPrice: string;
|
|
3165
|
+
}
|
|
3166
|
+
/**
|
|
3167
|
+
* A valid Derivative limit order with Metadata.
|
|
3168
|
+
*
|
|
3169
|
+
* @generated from protobuf message injective.exchange.v1beta1.DerivativeLimitOrder
|
|
3170
|
+
*/
|
|
3171
|
+
interface DerivativeLimitOrder {
|
|
3172
|
+
/**
|
|
3173
|
+
* order_info contains the information of the order
|
|
3174
|
+
*
|
|
3175
|
+
* @generated from protobuf field: injective.exchange.v1beta1.OrderInfo order_info = 1
|
|
3176
|
+
*/
|
|
3177
|
+
orderInfo?: OrderInfo;
|
|
3178
|
+
/**
|
|
3179
|
+
* order types
|
|
3180
|
+
*
|
|
3181
|
+
* @generated from protobuf field: injective.exchange.v1beta1.OrderType order_type = 2
|
|
3182
|
+
*/
|
|
3183
|
+
orderType: OrderType;
|
|
3184
|
+
/**
|
|
3185
|
+
* margin is the margin used by the limit order
|
|
3186
|
+
*
|
|
3187
|
+
* @generated from protobuf field: string margin = 3
|
|
3188
|
+
*/
|
|
3189
|
+
margin: string;
|
|
3190
|
+
/**
|
|
3191
|
+
* the amount of the quantity remaining fillable
|
|
3192
|
+
*
|
|
3193
|
+
* @generated from protobuf field: string fillable = 4
|
|
3194
|
+
*/
|
|
3195
|
+
fillable: string;
|
|
3196
|
+
/**
|
|
3197
|
+
* trigger_price is the trigger price used by stop/take orders
|
|
3198
|
+
*
|
|
3199
|
+
* @generated from protobuf field: string trigger_price = 5
|
|
3200
|
+
*/
|
|
3201
|
+
triggerPrice: string;
|
|
3202
|
+
/**
|
|
3203
|
+
* @generated from protobuf field: bytes order_hash = 6
|
|
3204
|
+
*/
|
|
3205
|
+
orderHash: Uint8Array;
|
|
3206
|
+
}
|
|
3207
|
+
/**
|
|
3208
|
+
* A valid Derivative market order with Metadata.
|
|
3209
|
+
*
|
|
3210
|
+
* @generated from protobuf message injective.exchange.v1beta1.DerivativeMarketOrder
|
|
3211
|
+
*/
|
|
3212
|
+
interface DerivativeMarketOrder {
|
|
3213
|
+
/**
|
|
3214
|
+
* order_info contains the information of the order
|
|
3215
|
+
*
|
|
3216
|
+
* @generated from protobuf field: injective.exchange.v1beta1.OrderInfo order_info = 1
|
|
3217
|
+
*/
|
|
3218
|
+
orderInfo?: OrderInfo;
|
|
3219
|
+
/**
|
|
3220
|
+
* order types
|
|
3221
|
+
*
|
|
3222
|
+
* @generated from protobuf field: injective.exchange.v1beta1.OrderType order_type = 2
|
|
3223
|
+
*/
|
|
3224
|
+
orderType: OrderType;
|
|
3225
|
+
/**
|
|
3226
|
+
* @generated from protobuf field: string margin = 3
|
|
3227
|
+
*/
|
|
3228
|
+
margin: string;
|
|
3229
|
+
/**
|
|
3230
|
+
* @generated from protobuf field: string margin_hold = 4
|
|
3231
|
+
*/
|
|
3232
|
+
marginHold: string;
|
|
3233
|
+
/**
|
|
3234
|
+
* trigger_price is the trigger price used by stop/take orders
|
|
3235
|
+
*
|
|
3236
|
+
* @generated from protobuf field: string trigger_price = 5
|
|
3237
|
+
*/
|
|
3238
|
+
triggerPrice: string;
|
|
3239
|
+
/**
|
|
3240
|
+
* @generated from protobuf field: bytes order_hash = 6
|
|
3241
|
+
*/
|
|
3242
|
+
orderHash: Uint8Array;
|
|
3243
|
+
}
|
|
3244
|
+
/**
|
|
3245
|
+
* @generated from protobuf message injective.exchange.v1beta1.Position
|
|
3246
|
+
*/
|
|
3247
|
+
interface Position {
|
|
3248
|
+
/**
|
|
3249
|
+
* True if the position is long. False if the position is short.
|
|
3250
|
+
*
|
|
3251
|
+
* @generated from protobuf field: bool isLong = 1
|
|
3252
|
+
*/
|
|
3253
|
+
isLong: boolean;
|
|
3254
|
+
/**
|
|
3255
|
+
* The quantity of the position (in chain format)
|
|
3256
|
+
*
|
|
3257
|
+
* @generated from protobuf field: string quantity = 2
|
|
3258
|
+
*/
|
|
3259
|
+
quantity: string;
|
|
3260
|
+
/**
|
|
3261
|
+
* The entry price of the position (in chain format)
|
|
3262
|
+
*
|
|
3263
|
+
* @generated from protobuf field: string entry_price = 3
|
|
3264
|
+
*/
|
|
3265
|
+
entryPrice: string;
|
|
3266
|
+
/**
|
|
3267
|
+
* The margin of the position (in chain format)
|
|
3268
|
+
*
|
|
3269
|
+
* @generated from protobuf field: string margin = 4
|
|
3270
|
+
*/
|
|
3271
|
+
margin: string;
|
|
3272
|
+
/**
|
|
3273
|
+
* The cumulative funding
|
|
1260
3274
|
*
|
|
1261
3275
|
* @generated from protobuf field: string cumulative_funding_entry = 5
|
|
1262
3276
|
*/
|
|
@@ -1807,348 +3821,65 @@ declare const PointsMultiplier = new PointsMultiplier$Type();
|
|
|
1807
3821
|
*/
|
|
1808
3822
|
declare const TradingRewardCampaignBoostInfo = new TradingRewardCampaignBoostInfo$Type();
|
|
1809
3823
|
/**
|
|
1810
|
-
* @generated MessageType for protobuf message injective.exchange.v1beta1.CampaignRewardPool
|
|
1811
|
-
*/
|
|
1812
|
-
declare const CampaignRewardPool = new CampaignRewardPool$Type();
|
|
1813
|
-
/**
|
|
1814
|
-
* @generated MessageType for protobuf message injective.exchange.v1beta1.TradingRewardCampaignInfo
|
|
1815
|
-
*/
|
|
1816
|
-
declare const TradingRewardCampaignInfo = new TradingRewardCampaignInfo$Type();
|
|
1817
|
-
/**
|
|
1818
|
-
* @generated MessageType for protobuf message injective.exchange.v1beta1.FeeDiscountTierInfo
|
|
1819
|
-
*/
|
|
1820
|
-
declare const FeeDiscountTierInfo = new FeeDiscountTierInfo$Type();
|
|
1821
|
-
/**
|
|
1822
|
-
* @generated MessageType for protobuf message injective.exchange.v1beta1.FeeDiscountSchedule
|
|
1823
|
-
*/
|
|
1824
|
-
declare const FeeDiscountSchedule = new FeeDiscountSchedule$Type();
|
|
1825
|
-
/**
|
|
1826
|
-
* @generated MessageType for protobuf message injective.exchange.v1beta1.FeeDiscountTierTTL
|
|
1827
|
-
*/
|
|
1828
|
-
declare const FeeDiscountTierTTL = new FeeDiscountTierTTL$Type();
|
|
1829
|
-
/**
|
|
1830
|
-
* @generated MessageType for protobuf message injective.exchange.v1beta1.VolumeRecord
|
|
1831
|
-
*/
|
|
1832
|
-
declare const VolumeRecord = new VolumeRecord$Type();
|
|
1833
|
-
/**
|
|
1834
|
-
* @generated MessageType for protobuf message injective.exchange.v1beta1.TradeRecords
|
|
1835
|
-
*/
|
|
1836
|
-
declare const TradeRecords = new TradeRecords$Type();
|
|
1837
|
-
/**
|
|
1838
|
-
* @generated MessageType for protobuf message injective.exchange.v1beta1.TradeRecord
|
|
1839
|
-
*/
|
|
1840
|
-
declare const TradeRecord = new TradeRecord$Type();
|
|
1841
|
-
/**
|
|
1842
|
-
* @generated MessageType for protobuf message injective.exchange.v1beta1.AggregateSubaccountVolumeRecord
|
|
1843
|
-
*/
|
|
1844
|
-
declare const AggregateSubaccountVolumeRecord = new AggregateSubaccountVolumeRecord$Type();
|
|
1845
|
-
/**
|
|
1846
|
-
* @generated MessageType for protobuf message injective.exchange.v1beta1.MarketVolume
|
|
1847
|
-
*/
|
|
1848
|
-
declare const MarketVolume = new MarketVolume$Type();
|
|
1849
|
-
/**
|
|
1850
|
-
* @generated MessageType for protobuf message injective.exchange.v1beta1.DenomDecimals
|
|
1851
|
-
*/
|
|
1852
|
-
declare const DenomDecimals = new DenomDecimals$Type();
|
|
1853
|
-
/**
|
|
1854
|
-
* @generated MessageType for protobuf message injective.exchange.v1beta1.GrantAuthorization
|
|
1855
|
-
*/
|
|
1856
|
-
declare const GrantAuthorization = new GrantAuthorization$Type();
|
|
1857
|
-
/**
|
|
1858
|
-
* @generated MessageType for protobuf message injective.exchange.v1beta1.ActiveGrant
|
|
1859
|
-
*/
|
|
1860
|
-
declare const ActiveGrant = new ActiveGrant$Type();
|
|
1861
|
-
/**
|
|
1862
|
-
* @generated MessageType for protobuf message injective.exchange.v1beta1.EffectiveGrant
|
|
1863
|
-
*/
|
|
1864
|
-
declare const EffectiveGrant = new EffectiveGrant$Type();
|
|
1865
|
-
/**
|
|
1866
|
-
* @generated MessageType for protobuf message injective.exchange.v1beta1.DenomMinNotional
|
|
1867
|
-
*/
|
|
1868
|
-
declare const DenomMinNotional = new DenomMinNotional$Type();
|
|
1869
|
-
//#endregion
|
|
1870
|
-
//#region src/types/pagination.d.ts
|
|
1871
|
-
interface PaginationOption {
|
|
1872
|
-
key?: string;
|
|
1873
|
-
offset?: number;
|
|
1874
|
-
skip?: number;
|
|
1875
|
-
limit?: number;
|
|
1876
|
-
reverse?: boolean;
|
|
1877
|
-
countTotal?: boolean;
|
|
1878
|
-
endTime?: number;
|
|
1879
|
-
startTime?: number;
|
|
1880
|
-
fromNumber?: number;
|
|
1881
|
-
toNumber?: number;
|
|
1882
|
-
}
|
|
1883
|
-
interface PagePagination {
|
|
1884
|
-
next: string | null;
|
|
1885
|
-
prev: string | null;
|
|
1886
|
-
current: string | null;
|
|
1887
|
-
}
|
|
1888
|
-
interface Pagination {
|
|
1889
|
-
next: string | null;
|
|
1890
|
-
total: number;
|
|
1891
|
-
}
|
|
1892
|
-
interface ExchangePagination {
|
|
1893
|
-
to: number;
|
|
1894
|
-
from: number;
|
|
1895
|
-
total: number;
|
|
1896
|
-
countBySubaccount?: number;
|
|
1897
|
-
next?: string[];
|
|
1898
|
-
}
|
|
1899
|
-
//#endregion
|
|
1900
|
-
//#region src/types/token.d.ts
|
|
1901
|
-
declare const TokenType: {
|
|
1902
|
-
readonly Ibc: "ibc";
|
|
1903
|
-
readonly Cw20: "cw20";
|
|
1904
|
-
readonly Spl: "spl";
|
|
1905
|
-
readonly Erc20: "erc20";
|
|
1906
|
-
readonly Lp: "lp";
|
|
1907
|
-
readonly Evm: "evm";
|
|
1908
|
-
readonly Native: "native";
|
|
1909
|
-
readonly Symbol: "symbol";
|
|
1910
|
-
readonly TokenFactory: "tokenFactory";
|
|
1911
|
-
readonly InsuranceFund: "insuranceFund";
|
|
1912
|
-
readonly Unknown: "unknown";
|
|
1913
|
-
};
|
|
1914
|
-
type TokenType = (typeof TokenType)[keyof typeof TokenType];
|
|
1915
|
-
declare const TokenVerification: {
|
|
1916
|
-
readonly Verified: "verified";
|
|
1917
|
-
readonly Submitted: "submitted";
|
|
1918
|
-
readonly Internal: "internal";
|
|
1919
|
-
readonly External: "external";
|
|
1920
|
-
readonly Unverified: "unverified";
|
|
1921
|
-
};
|
|
1922
|
-
type TokenVerification = (typeof TokenVerification)[keyof typeof TokenVerification];
|
|
1923
|
-
declare const TokenSource: {
|
|
1924
|
-
readonly Aptos: "aptos";
|
|
1925
|
-
readonly Solana: "solana";
|
|
1926
|
-
readonly Cosmos: "cosmos";
|
|
1927
|
-
readonly Ethereum: "ethereum";
|
|
1928
|
-
readonly EthereumWh: "ethereum-wormhole";
|
|
1929
|
-
readonly Polygon: "polygon";
|
|
1930
|
-
readonly Klaytn: "klaytn";
|
|
1931
|
-
readonly Arbitrum: "arbitrum";
|
|
1932
|
-
readonly Sui: "sui";
|
|
1933
|
-
readonly Ibc: "ibc";
|
|
1934
|
-
readonly BinanceSmartChain: "binance-smart-chain";
|
|
1935
|
-
readonly Axelar: "axelar";
|
|
1936
|
-
};
|
|
1937
|
-
type TokenSource = (typeof TokenSource)[keyof typeof TokenSource];
|
|
1938
|
-
interface TokenStatic {
|
|
1939
|
-
name: string;
|
|
1940
|
-
logo: string;
|
|
1941
|
-
symbol: string;
|
|
1942
|
-
decimals: number;
|
|
1943
|
-
coinGeckoId: string;
|
|
1944
|
-
denom: string;
|
|
1945
|
-
address: string;
|
|
1946
|
-
tokenType: TokenType;
|
|
1947
|
-
tokenVerification: TokenVerification;
|
|
1948
|
-
isNative?: boolean;
|
|
1949
|
-
source?: TokenSource;
|
|
1950
|
-
hash?: string;
|
|
1951
|
-
path?: string;
|
|
1952
|
-
channelId?: string;
|
|
1953
|
-
baseDenom?: string;
|
|
1954
|
-
description?: string;
|
|
1955
|
-
externalLogo?: string;
|
|
1956
|
-
overrideSymbol?: string;
|
|
1957
|
-
}
|
|
1958
|
-
interface TokenMeta {
|
|
1959
|
-
name: string;
|
|
1960
|
-
logo: string;
|
|
1961
|
-
symbol: string;
|
|
1962
|
-
decimals: number;
|
|
1963
|
-
tokenType: TokenType;
|
|
1964
|
-
coinGeckoId: string;
|
|
1965
|
-
}
|
|
1966
|
-
//#endregion
|
|
1967
|
-
//#region src/types/stream.d.ts
|
|
1968
|
-
/**
|
|
1969
|
-
* Subscription interface for stream management with event-based lifecycle
|
|
3824
|
+
* @generated MessageType for protobuf message injective.exchange.v1beta1.CampaignRewardPool
|
|
1970
3825
|
*/
|
|
3826
|
+
declare const CampaignRewardPool = new CampaignRewardPool$Type();
|
|
1971
3827
|
/**
|
|
1972
|
-
*
|
|
1973
|
-
* @see https://grpc.io/docs/guides/status-codes/
|
|
3828
|
+
* @generated MessageType for protobuf message injective.exchange.v1beta1.TradingRewardCampaignInfo
|
|
1974
3829
|
*/
|
|
1975
|
-
declare const
|
|
1976
|
-
readonly OK: 0;
|
|
1977
|
-
readonly CANCELLED: 1;
|
|
1978
|
-
readonly UNKNOWN: 2;
|
|
1979
|
-
readonly INVALID_ARGUMENT: 3;
|
|
1980
|
-
readonly DEADLINE_EXCEEDED: 4;
|
|
1981
|
-
readonly NOT_FOUND: 5;
|
|
1982
|
-
readonly ALREADY_EXISTS: 6;
|
|
1983
|
-
readonly PERMISSION_DENIED: 7;
|
|
1984
|
-
readonly RESOURCE_EXHAUSTED: 8;
|
|
1985
|
-
readonly FAILED_PRECONDITION: 9;
|
|
1986
|
-
readonly ABORTED: 10;
|
|
1987
|
-
readonly OUT_OF_RANGE: 11;
|
|
1988
|
-
readonly UNIMPLEMENTED: 12;
|
|
1989
|
-
readonly INTERNAL: 13;
|
|
1990
|
-
readonly UNAVAILABLE: 14;
|
|
1991
|
-
readonly DATA_LOSS: 15;
|
|
1992
|
-
readonly UNAUTHENTICATED: 16;
|
|
1993
|
-
};
|
|
1994
|
-
type GrpcStatusCode = (typeof GrpcStatusCode)[keyof typeof GrpcStatusCode];
|
|
3830
|
+
declare const TradingRewardCampaignInfo = new TradingRewardCampaignInfo$Type();
|
|
1995
3831
|
/**
|
|
1996
|
-
*
|
|
3832
|
+
* @generated MessageType for protobuf message injective.exchange.v1beta1.FeeDiscountTierInfo
|
|
1997
3833
|
*/
|
|
1998
|
-
declare const
|
|
1999
|
-
/** User explicitly called stop() */
|
|
2000
|
-
readonly UserStopped: "user-stopped";
|
|
2001
|
-
/** Stream encountered an error */
|
|
2002
|
-
readonly StreamError: "stream-error";
|
|
2003
|
-
/** Network unavailable (gRPC code 14) */
|
|
2004
|
-
readonly NetworkError: "network-error";
|
|
2005
|
-
/** Request timeout (gRPC code 4) */
|
|
2006
|
-
readonly Timeout: "timeout";
|
|
2007
|
-
/** Authentication/authorization failed (gRPC code 7 or 16) */
|
|
2008
|
-
readonly AuthenticationError: "authentication-error";
|
|
2009
|
-
/** Invalid request - non-retryable (gRPC code 3, 5, 6, 11, 12) */
|
|
2010
|
-
readonly InvalidRequest: "invalid-request";
|
|
2011
|
-
/** Rate limited (gRPC code 8) */
|
|
2012
|
-
readonly RateLimited: "rate-limited";
|
|
2013
|
-
/** Max retry attempts reached */
|
|
2014
|
-
readonly MaxRetries: "max-retries";
|
|
2015
|
-
/** Stream ended normally */
|
|
2016
|
-
readonly StreamEnded: "stream-ended";
|
|
2017
|
-
};
|
|
2018
|
-
type StreamDisconnectReason = (typeof StreamDisconnectReason)[keyof typeof StreamDisconnectReason];
|
|
2019
|
-
declare const StreamEvent: {
|
|
2020
|
-
readonly Data: "data";
|
|
2021
|
-
readonly Connect: "connect";
|
|
2022
|
-
readonly Disconnect: "disconnect";
|
|
2023
|
-
readonly Retry: "retry";
|
|
2024
|
-
readonly StateChange: "state:change";
|
|
2025
|
-
readonly Error: "error";
|
|
2026
|
-
readonly Warn: "warn";
|
|
2027
|
-
};
|
|
2028
|
-
type StreamEvent = (typeof StreamEvent)[keyof typeof StreamEvent];
|
|
2029
|
-
interface StreamSubscription {
|
|
2030
|
-
/** Unsubscribe from the stream and cancel it */
|
|
2031
|
-
unsubscribe(): void;
|
|
2032
|
-
/** Listen for stream errors */
|
|
2033
|
-
on(event: 'error', handler: (error: StreamError) => void): void;
|
|
2034
|
-
/** Listen for stream completion (ended normally) */
|
|
2035
|
-
on(event: 'complete', handler: () => void): void;
|
|
2036
|
-
/** Remove event listener */
|
|
2037
|
-
off(event: 'error' | 'complete', handler: (...args: any[]) => void): void;
|
|
2038
|
-
}
|
|
3834
|
+
declare const FeeDiscountTierInfo = new FeeDiscountTierInfo$Type();
|
|
2039
3835
|
/**
|
|
2040
|
-
*
|
|
2041
|
-
*
|
|
2042
|
-
* Common gRPC Status Codes:
|
|
2043
|
-
* - 0: OK
|
|
2044
|
-
* - 1: CANCELLED
|
|
2045
|
-
* - 2: UNKNOWN
|
|
2046
|
-
* - 3: INVALID_ARGUMENT
|
|
2047
|
-
* - 4: DEADLINE_EXCEEDED
|
|
2048
|
-
* - 5: NOT_FOUND
|
|
2049
|
-
* - 7: PERMISSION_DENIED
|
|
2050
|
-
* - 8: RESOURCE_EXHAUSTED
|
|
2051
|
-
* - 13: INTERNAL
|
|
2052
|
-
* - 14: UNAVAILABLE
|
|
2053
|
-
* - 16: UNAUTHENTICATED
|
|
3836
|
+
* @generated MessageType for protobuf message injective.exchange.v1beta1.FeeDiscountSchedule
|
|
2054
3837
|
*/
|
|
2055
|
-
|
|
2056
|
-
/** gRPC status code */
|
|
2057
|
-
code: number;
|
|
2058
|
-
/** Human-readable error message */
|
|
2059
|
-
details: string;
|
|
2060
|
-
/** Additional error metadata */
|
|
2061
|
-
metadata?: any;
|
|
2062
|
-
}
|
|
3838
|
+
declare const FeeDiscountSchedule = new FeeDiscountSchedule$Type();
|
|
2063
3839
|
/**
|
|
2064
|
-
*
|
|
3840
|
+
* @generated MessageType for protobuf message injective.exchange.v1beta1.FeeDiscountTierTTL
|
|
2065
3841
|
*/
|
|
2066
|
-
declare const
|
|
2067
|
-
readonly Idle: "idle";
|
|
2068
|
-
readonly Connecting: "connecting";
|
|
2069
|
-
readonly Connected: "connected";
|
|
2070
|
-
readonly Reconnecting: "reconnecting";
|
|
2071
|
-
readonly Stopped: "stopped";
|
|
2072
|
-
};
|
|
2073
|
-
type StreamState = (typeof StreamState)[keyof typeof StreamState];
|
|
3842
|
+
declare const FeeDiscountTierTTL = new FeeDiscountTierTTL$Type();
|
|
2074
3843
|
/**
|
|
2075
|
-
*
|
|
3844
|
+
* @generated MessageType for protobuf message injective.exchange.v1beta1.VolumeRecord
|
|
2076
3845
|
*/
|
|
2077
|
-
|
|
2078
|
-
/** Enable retry on failure (default: true) */
|
|
2079
|
-
enabled: boolean;
|
|
2080
|
-
/** Max retry attempts before giving up (default: 5, 0 = infinite) */
|
|
2081
|
-
maxAttempts: number;
|
|
2082
|
-
/** Initial backoff delay in ms (default: 1000) */
|
|
2083
|
-
initialDelayMs: number;
|
|
2084
|
-
/** Max backoff delay in ms (default: 30000) */
|
|
2085
|
-
maxDelayMs: number;
|
|
2086
|
-
/** Backoff multiplier (default: 2 for exponential) */
|
|
2087
|
-
backoffMultiplier: number;
|
|
2088
|
-
/**
|
|
2089
|
-
* Persistent retry mode - continues retrying at maxDelayMs intervals
|
|
2090
|
-
* after exhausting exponential backoff (default: true)
|
|
2091
|
-
*/
|
|
2092
|
-
persistent: boolean;
|
|
2093
|
-
}
|
|
3846
|
+
declare const VolumeRecord = new VolumeRecord$Type();
|
|
2094
3847
|
/**
|
|
2095
|
-
*
|
|
3848
|
+
* @generated MessageType for protobuf message injective.exchange.v1beta1.TradeRecords
|
|
2096
3849
|
*/
|
|
2097
|
-
|
|
2098
|
-
/** Unique identifier for this stream (for logging) */
|
|
2099
|
-
id: string;
|
|
2100
|
-
/**
|
|
2101
|
-
* Factory function to create the stream subscription
|
|
2102
|
-
* Called on initial connect and every retry
|
|
2103
|
-
* The subscription will emit 'error' and 'complete' events for stream lifecycle
|
|
2104
|
-
*/
|
|
2105
|
-
streamFactory: () => StreamSubscription;
|
|
2106
|
-
/** Callback to handle stream data */
|
|
2107
|
-
onData: (response: TResponse) => void;
|
|
2108
|
-
/** Retry configuration */
|
|
2109
|
-
retryConfig?: Partial<StreamManagerRetryConfig>;
|
|
2110
|
-
}
|
|
3850
|
+
declare const TradeRecords = new TradeRecords$Type();
|
|
2111
3851
|
/**
|
|
2112
|
-
*
|
|
3852
|
+
* @generated MessageType for protobuf message injective.exchange.v1beta1.TradeRecord
|
|
2113
3853
|
*/
|
|
2114
|
-
|
|
2115
|
-
id: string;
|
|
2116
|
-
streamFactory: () => StreamSubscription;
|
|
2117
|
-
onData: (response: TResponse) => void;
|
|
2118
|
-
retryConfig: StreamManagerRetryConfig;
|
|
2119
|
-
}
|
|
3854
|
+
declare const TradeRecord = new TradeRecord$Type();
|
|
2120
3855
|
/**
|
|
2121
|
-
*
|
|
3856
|
+
* @generated MessageType for protobuf message injective.exchange.v1beta1.AggregateSubaccountVolumeRecord
|
|
2122
3857
|
*/
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
warn: {
|
|
2149
|
-
message: string;
|
|
2150
|
-
};
|
|
2151
|
-
}
|
|
3858
|
+
declare const AggregateSubaccountVolumeRecord = new AggregateSubaccountVolumeRecord$Type();
|
|
3859
|
+
/**
|
|
3860
|
+
* @generated MessageType for protobuf message injective.exchange.v1beta1.MarketVolume
|
|
3861
|
+
*/
|
|
3862
|
+
declare const MarketVolume = new MarketVolume$Type();
|
|
3863
|
+
/**
|
|
3864
|
+
* @generated MessageType for protobuf message injective.exchange.v1beta1.DenomDecimals
|
|
3865
|
+
*/
|
|
3866
|
+
declare const DenomDecimals = new DenomDecimals$Type();
|
|
3867
|
+
/**
|
|
3868
|
+
* @generated MessageType for protobuf message injective.exchange.v1beta1.GrantAuthorization
|
|
3869
|
+
*/
|
|
3870
|
+
declare const GrantAuthorization = new GrantAuthorization$Type();
|
|
3871
|
+
/**
|
|
3872
|
+
* @generated MessageType for protobuf message injective.exchange.v1beta1.ActiveGrant
|
|
3873
|
+
*/
|
|
3874
|
+
declare const ActiveGrant = new ActiveGrant$Type();
|
|
3875
|
+
/**
|
|
3876
|
+
* @generated MessageType for protobuf message injective.exchange.v1beta1.EffectiveGrant
|
|
3877
|
+
*/
|
|
3878
|
+
declare const EffectiveGrant = new EffectiveGrant$Type();
|
|
3879
|
+
/**
|
|
3880
|
+
* @generated MessageType for protobuf message injective.exchange.v1beta1.DenomMinNotional
|
|
3881
|
+
*/
|
|
3882
|
+
declare const DenomMinNotional = new DenomMinNotional$Type();
|
|
2152
3883
|
//#endregion
|
|
2153
3884
|
//#region src/types/exchange.d.ts
|
|
2154
3885
|
/**
|
|
@@ -2201,6 +3932,44 @@ type OrderSide = (typeof OrderSide)[keyof typeof OrderSide];
|
|
|
2201
3932
|
type OrderMask = OrderMask$1;
|
|
2202
3933
|
declare const OrderMaskMap: typeof OrderMask$1;
|
|
2203
3934
|
//#endregion
|
|
3935
|
+
//#region ../../node_modules/.pnpm/@protobuf-ts+grpcweb-transport@2.11.1/node_modules/@protobuf-ts/grpcweb-transport/build/types/grpc-web-options.d.ts
|
|
3936
|
+
/**
|
|
3937
|
+
* RPC options for the grpc-web transport.
|
|
3938
|
+
*/
|
|
3939
|
+
interface GrpcWebOptions extends RpcOptions {
|
|
3940
|
+
/**
|
|
3941
|
+
* Send binary or text format?
|
|
3942
|
+
* Defaults to text.
|
|
3943
|
+
*/
|
|
3944
|
+
format?: "text" | "binary";
|
|
3945
|
+
/**
|
|
3946
|
+
* Base URI for all HTTP requests.
|
|
3947
|
+
*
|
|
3948
|
+
* Requests will be made to <baseUrl>/<package>.<service>/method
|
|
3949
|
+
*
|
|
3950
|
+
* Example: `baseUrl: "https://example.com/my-api"`
|
|
3951
|
+
*
|
|
3952
|
+
* This will make a `POST /my-api/my_package.MyService/Foo` to
|
|
3953
|
+
* `example.com` via HTTPS.
|
|
3954
|
+
*/
|
|
3955
|
+
baseUrl: string;
|
|
3956
|
+
/**
|
|
3957
|
+
* Extra options to pass through to the fetch when doing a request.
|
|
3958
|
+
*
|
|
3959
|
+
* Example: `fetchInit: { credentials: 'include' }`
|
|
3960
|
+
*
|
|
3961
|
+
* This will make requests include cookies for cross-origin calls.
|
|
3962
|
+
*/
|
|
3963
|
+
fetchInit?: Omit<RequestInit, 'body' | 'headers' | 'method' | 'signal'>;
|
|
3964
|
+
/**
|
|
3965
|
+
* A `fetch` function to use in place of `globalThis.fetch`
|
|
3966
|
+
*/
|
|
3967
|
+
fetch?: typeof fetch;
|
|
3968
|
+
}
|
|
3969
|
+
//#endregion
|
|
3970
|
+
//#region src/types/grpc.d.ts
|
|
3971
|
+
type GrpcWebTransportAdditionalOptions = Omit<GrpcWebOptions, 'baseUrl'>;
|
|
3972
|
+
//#endregion
|
|
2204
3973
|
//#region src/types/cosmos.d.ts
|
|
2205
3974
|
interface Coin {
|
|
2206
3975
|
denom: string;
|
|
@@ -2224,4 +3993,34 @@ declare const StreamOperation: {
|
|
|
2224
3993
|
};
|
|
2225
3994
|
type StreamOperation = (typeof StreamOperation)[keyof typeof StreamOperation];
|
|
2226
3995
|
//#endregion
|
|
2227
|
-
|
|
3996
|
+
//#region src/types/pagination.d.ts
|
|
3997
|
+
interface PaginationOption {
|
|
3998
|
+
key?: string;
|
|
3999
|
+
offset?: number;
|
|
4000
|
+
skip?: number;
|
|
4001
|
+
limit?: number;
|
|
4002
|
+
reverse?: boolean;
|
|
4003
|
+
countTotal?: boolean;
|
|
4004
|
+
endTime?: number;
|
|
4005
|
+
startTime?: number;
|
|
4006
|
+
fromNumber?: number;
|
|
4007
|
+
toNumber?: number;
|
|
4008
|
+
}
|
|
4009
|
+
interface PagePagination {
|
|
4010
|
+
next: string | null;
|
|
4011
|
+
prev: string | null;
|
|
4012
|
+
current: string | null;
|
|
4013
|
+
}
|
|
4014
|
+
interface Pagination {
|
|
4015
|
+
next: string | null;
|
|
4016
|
+
total: number;
|
|
4017
|
+
}
|
|
4018
|
+
interface ExchangePagination {
|
|
4019
|
+
to: number;
|
|
4020
|
+
from: number;
|
|
4021
|
+
total: number;
|
|
4022
|
+
countBySubaccount?: number;
|
|
4023
|
+
next?: string[];
|
|
4024
|
+
}
|
|
4025
|
+
//#endregion
|
|
4026
|
+
export { SpotMarketOrder as $, DerivativeMarketOrder as A, MethodInfo as At, MarketStatus as B, BinaryOptionsMarket as C, TokenVerification as Ct, Deposit as D, DuplexStreamingCall as Dt, DenomMinNotional as E, UnaryCall as Et, FeeDiscountSchedule as F, OrderType as G, MidPriceAndTOB as H, FeeDiscountTierInfo as I, PerpetualMarketInfo as J, Params as K, FeeDiscountTierTTL as L, DerivativeOrder as M, EffectiveGrant as N, DerivativeLimitOrder as O, ClientStreamingCall as Ot, ExpiryFuturesMarketInfo as P, SpotMarket as Q, GrantAuthorization as R, AggregateSubaccountVolumeRecord as S, TokenType as St, DenomDecimals as T, RpcTransport as Tt, OrderInfo as U, MarketVolume as V, OrderMask$1 as W, Position as X, PointsMultiplier as Y, SpotLimitOrder as Z, OrderState as _, StreamState as _t, StreamOperation as a, BandIBCParams as at, TradeExecutionType as b, TokenSource as bt, DirectSignResponse$1 as c, Params$1 as ct, TxRaw as d, StreamDisconnectReason as dt, SpotOrder as et, GrpcWebTransportAdditionalOptions as f, StreamError as ft, OrderSide as g, StreamManagerRetryConfig as gt, OrderMaskMap as h, StreamManagerEvents as ht, PaginationOption as i, TradingRewardCampaignInfo as it, DerivativeMarketSettlementInfo as j, DerivativeMarket as k, ServerStreamingCall as kt, GrpcCoin as l, GrpcStatusCode as lt, OrderMask as m, StreamManagerConfig as mt, PagePagination as n, TradeRecords as nt, AminoSignResponse$1 as o, BandOracleRequest as ot, GrpcWebOptions as p, StreamEvent as pt, PerpetualMarketFunding as q, Pagination as r, TradingRewardCampaignBoostInfo as rt, Coin as s, OracleType as st, ExchangePagination as t, SubaccountTradeNonce as tt, SignDoc as u, ResolvedStreamManagerConfig as ut, TradeDirection as v, StreamSubscription as vt, CampaignRewardPool as w, RpcOptions as wt, ActiveGrant as x, TokenStatic as xt, TradeExecutionSide as y, TokenMeta as yt, MarketFeeMultiplier as z };
|