coreum-js 2.16.3 → 2.17.1
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/main/client/index.js +15 -16
- package/dist/main/coreum/asset/ft/v1/authz.d.ts +38 -0
- package/dist/main/coreum/asset/ft/v1/authz.js +122 -0
- package/dist/main/coreum/asset/ft/v1/event.d.ts +52 -28
- package/dist/main/coreum/asset/ft/v1/event.js +744 -138
- package/dist/main/coreum/asset/ft/v1/genesis.d.ts +31 -21
- package/dist/main/coreum/asset/ft/v1/genesis.js +273 -62
- package/dist/main/coreum/asset/ft/v1/params.d.ts +12 -11
- package/dist/main/coreum/asset/ft/v1/params.js +37 -33
- package/dist/main/coreum/asset/ft/v1/query.d.ts +87 -127
- package/dist/main/coreum/asset/ft/v1/query.js +697 -217
- package/dist/main/coreum/asset/ft/v1/token.d.ts +17 -51
- package/dist/main/coreum/asset/ft/v1/token.js +276 -200
- package/dist/main/coreum/asset/ft/v1/tx.d.ts +30 -147
- package/dist/main/coreum/asset/ft/v1/tx.js +502 -386
- package/dist/main/coreum/asset/index.d.ts +2 -3
- package/dist/main/coreum/asset/nft/v1/authz.d.ts +33 -0
- package/dist/main/coreum/asset/nft/v1/authz.js +137 -0
- package/dist/main/coreum/asset/nft/v1/event.d.ts +35 -43
- package/dist/main/coreum/asset/nft/v1/event.js +475 -147
- package/dist/main/coreum/asset/nft/v1/genesis.d.ts +27 -36
- package/dist/main/coreum/asset/nft/v1/genesis.js +311 -119
- package/dist/main/coreum/asset/nft/v1/nft.d.ts +20 -26
- package/dist/main/coreum/asset/nft/v1/nft.js +139 -104
- package/dist/main/coreum/asset/nft/v1/params.d.ts +12 -12
- package/dist/main/coreum/asset/nft/v1/params.js +17 -20
- package/dist/main/coreum/asset/nft/v1/query.d.ts +110 -88
- package/dist/main/coreum/asset/nft/v1/query.js +1079 -185
- package/dist/main/coreum/asset/nft/v1/tx.d.ts +96 -70
- package/dist/main/coreum/asset/nft/v1/tx.js +865 -234
- package/dist/main/coreum/asset/nft/v1/types.d.ts +38 -11
- package/dist/main/coreum/asset/nft/v1/types.js +273 -45
- package/dist/main/coreum/customparams/v1/genesis.d.ts +12 -12
- package/dist/main/coreum/customparams/v1/genesis.js +26 -22
- package/dist/main/coreum/customparams/v1/params.d.ts +11 -11
- package/dist/main/coreum/customparams/v1/params.js +23 -20
- package/dist/main/coreum/customparams/v1/query.d.ts +14 -20
- package/dist/main/coreum/customparams/v1/query.js +35 -29
- package/dist/main/coreum/dex/index.d.ts +2 -0
- package/dist/main/coreum/dex/index.js +11 -0
- package/dist/main/coreum/dex/v1/event.d.ts +73 -0
- package/dist/main/coreum/dex/v1/event.js +470 -0
- package/dist/main/coreum/dex/v1/genesis.d.ts +49 -0
- package/dist/main/coreum/dex/v1/genesis.js +318 -0
- package/dist/main/coreum/dex/v1/order.d.ts +172 -0
- package/dist/main/coreum/dex/v1/order.js +1137 -0
- package/dist/main/coreum/dex/v1/params.d.ts +34 -0
- package/dist/main/coreum/dex/v1/params.js +139 -0
- package/dist/main/coreum/dex/v1/query.d.ts +133 -0
- package/dist/main/coreum/dex/v1/query.js +873 -0
- package/dist/main/coreum/dex/v1/tx.d.ts +102 -0
- package/dist/main/coreum/dex/v1/tx.js +521 -0
- package/dist/main/coreum/extensions/dex.d.ts +12 -0
- package/dist/main/coreum/extensions/dex.js +32 -0
- package/dist/main/coreum/extensions/ft.js +2 -1
- package/dist/main/coreum/extensions/nft.js +2 -1
- package/dist/main/coreum/extensions/nftbeta.js +2 -1
- package/dist/main/coreum/feemodel/v1/genesis.d.ts +13 -13
- package/dist/main/coreum/feemodel/v1/genesis.js +23 -24
- package/dist/main/coreum/feemodel/v1/params.d.ts +14 -21
- package/dist/main/coreum/feemodel/v1/params.js +113 -66
- package/dist/main/coreum/feemodel/v1/query.d.ts +30 -37
- package/dist/main/coreum/feemodel/v1/query.js +196 -43
- package/dist/main/coreum/index.d.ts +46 -0
- package/dist/main/coreum/index.js +58 -1
- package/dist/main/coreum/nft/index.d.ts +1 -2
- package/dist/main/coreum/nft/v1beta1/event.d.ts +23 -27
- package/dist/main/coreum/nft/v1beta1/event.js +103 -77
- package/dist/main/coreum/nft/v1beta1/genesis.d.ts +13 -19
- package/dist/main/coreum/nft/v1beta1/genesis.js +50 -52
- package/dist/main/coreum/nft/v1beta1/nft.d.ts +15 -22
- package/dist/main/coreum/nft/v1beta1/nft.js +111 -81
- package/dist/main/coreum/nft/v1beta1/query.d.ts +54 -124
- package/dist/main/coreum/nft/v1beta1/query.js +259 -223
- package/dist/main/coreum/nft/v1beta1/tx.d.ts +13 -19
- package/dist/main/coreum/nft/v1beta1/tx.js +54 -43
- package/dist/main/cosmos/extensions/bank.js +2 -1
- package/dist/main/cosmos/extensions/distribution.d.ts +4 -4
- package/dist/main/cosmos/extensions/distribution.js +11 -10
- package/dist/main/cosmos/extensions/gov.d.ts +13 -13
- package/dist/main/cosmos/extensions/gov.js +16 -9
- package/dist/main/cosmos/index.d.ts +8 -8
- package/dist/main/google/api/http.d.ts +2636 -6
- package/dist/main/google/api/http.js +18 -21
- package/dist/main/google/protobuf/any.d.ts +14 -2
- package/dist/main/google/protobuf/any.js +6 -7
- package/dist/main/google/protobuf/duration.d.ts +14 -2
- package/dist/main/google/protobuf/duration.js +3 -4
- package/dist/main/google/protobuf/timestamp.d.ts +14 -2
- package/dist/main/google/protobuf/timestamp.js +3 -4
- package/dist/main/index.js +7 -17
- package/dist/main/services/cosmostation.js +1 -1
- package/dist/main/tendermint/abci/types.d.ts +6360 -92
- package/dist/main/tendermint/abci/types.js +195 -235
- package/dist/main/tendermint/crypto/keys.d.ts +14 -2
- package/dist/main/tendermint/crypto/keys.js +3 -4
- package/dist/main/tendermint/crypto/proof.d.ts +152 -10
- package/dist/main/tendermint/crypto/proof.js +19 -24
- package/dist/main/tendermint/types/params.d.ts +196 -12
- package/dist/main/tendermint/types/params.js +15 -20
- package/dist/main/tendermint/types/types.d.ts +1744 -26
- package/dist/main/tendermint/types/types.js +62 -73
- package/dist/main/tendermint/types/validator.d.ts +230 -6
- package/dist/main/tendermint/types/validator.js +10 -13
- package/dist/main/tendermint/version/types.d.ts +28 -4
- package/dist/main/tendermint/version/types.js +6 -8
- package/dist/main/types/core.d.ts +2 -1
- package/dist/main/types/core.js +2 -0
- package/dist/main/utils/convertStringToAny.d.ts +0 -1
- package/dist/main/utils/nft.js +2 -1
- package/dist/main/wasm/v1/authz.d.ts +20 -75
- package/dist/main/wasm/v1/authz.js +129 -148
- package/dist/main/wasm/v1/extensions/wasm.js +2 -1
- package/dist/main/wasm/v1/genesis.d.ts +14 -34
- package/dist/main/wasm/v1/genesis.js +169 -140
- package/dist/main/wasm/v1/ibc.d.ts +13 -26
- package/dist/main/wasm/v1/ibc.js +91 -76
- package/dist/main/wasm/v1/index.d.ts +1 -2
- package/dist/main/wasm/v1/pagination.d.ts +40 -4
- package/dist/main/wasm/v1/pagination.js +9 -11
- package/dist/main/wasm/v1/proposal.d.ts +23 -106
- package/dist/main/wasm/v1/proposal.js +634 -465
- package/dist/main/wasm/v1/query.d.ts +35 -187
- package/dist/main/wasm/v1/query.js +370 -363
- package/dist/main/wasm/v1/tx.d.ts +37 -210
- package/dist/main/wasm/v1/tx.js +621 -497
- package/dist/main/wasm/v1/types.d.ts +19 -67
- package/dist/main/wasm/v1/types.js +224 -195
- package/dist/module/client/index.js +2 -1
- package/dist/module/coreum/asset/ft/v1/authz.d.ts +38 -0
- package/dist/module/coreum/asset/ft/v1/authz.js +119 -0
- package/dist/module/coreum/asset/ft/v1/event.d.ts +52 -28
- package/dist/module/coreum/asset/ft/v1/event.js +721 -109
- package/dist/module/coreum/asset/ft/v1/genesis.d.ts +31 -21
- package/dist/module/coreum/asset/ft/v1/genesis.js +266 -50
- package/dist/module/coreum/asset/ft/v1/params.d.ts +12 -11
- package/dist/module/coreum/asset/ft/v1/params.js +35 -27
- package/dist/module/coreum/asset/ft/v1/query.d.ts +87 -127
- package/dist/module/coreum/asset/ft/v1/query.js +672 -180
- package/dist/module/coreum/asset/ft/v1/token.d.ts +17 -51
- package/dist/module/coreum/asset/ft/v1/token.js +236 -152
- package/dist/module/coreum/asset/ft/v1/tx.d.ts +30 -147
- package/dist/module/coreum/asset/ft/v1/tx.js +437 -301
- package/dist/module/coreum/asset/index.d.ts +2 -3
- package/dist/module/coreum/asset/nft/v1/authz.d.ts +33 -0
- package/dist/module/coreum/asset/nft/v1/authz.js +134 -0
- package/dist/module/coreum/asset/nft/v1/event.d.ts +35 -43
- package/dist/module/coreum/asset/nft/v1/event.js +448 -112
- package/dist/module/coreum/asset/nft/v1/genesis.d.ts +27 -36
- package/dist/module/coreum/asset/nft/v1/genesis.js +299 -100
- package/dist/module/coreum/asset/nft/v1/nft.d.ts +20 -26
- package/dist/module/coreum/asset/nft/v1/nft.js +121 -81
- package/dist/module/coreum/asset/nft/v1/params.d.ts +12 -12
- package/dist/module/coreum/asset/nft/v1/params.js +16 -16
- package/dist/module/coreum/asset/nft/v1/query.d.ts +110 -88
- package/dist/module/coreum/asset/nft/v1/query.js +1057 -153
- package/dist/module/coreum/asset/nft/v1/tx.d.ts +96 -70
- package/dist/module/coreum/asset/nft/v1/tx.js +825 -184
- package/dist/module/coreum/asset/nft/v1/types.d.ts +38 -11
- package/dist/module/coreum/asset/nft/v1/types.js +269 -39
- package/dist/module/coreum/customparams/v1/genesis.d.ts +12 -12
- package/dist/module/coreum/customparams/v1/genesis.js +25 -18
- package/dist/module/coreum/customparams/v1/params.d.ts +11 -11
- package/dist/module/coreum/customparams/v1/params.js +21 -14
- package/dist/module/coreum/customparams/v1/query.d.ts +14 -20
- package/dist/module/coreum/customparams/v1/query.js +32 -23
- package/dist/module/coreum/dex/index.d.ts +2 -0
- package/dist/module/coreum/dex/index.js +8 -0
- package/dist/module/coreum/dex/v1/event.d.ts +73 -0
- package/dist/module/coreum/dex/v1/event.js +467 -0
- package/dist/module/coreum/dex/v1/genesis.d.ts +49 -0
- package/dist/module/coreum/dex/v1/genesis.js +315 -0
- package/dist/module/coreum/dex/v1/order.d.ts +172 -0
- package/dist/module/coreum/dex/v1/order.js +1128 -0
- package/dist/module/coreum/dex/v1/params.d.ts +34 -0
- package/dist/module/coreum/dex/v1/params.js +136 -0
- package/dist/module/coreum/dex/v1/query.d.ts +133 -0
- package/dist/module/coreum/dex/v1/query.js +871 -0
- package/dist/module/coreum/dex/v1/tx.d.ts +102 -0
- package/dist/module/coreum/dex/v1/tx.js +519 -0
- package/dist/module/coreum/extensions/dex.d.ts +12 -0
- package/dist/module/coreum/extensions/dex.js +28 -0
- package/dist/module/coreum/feemodel/v1/genesis.d.ts +13 -13
- package/dist/module/coreum/feemodel/v1/genesis.js +22 -20
- package/dist/module/coreum/feemodel/v1/params.d.ts +14 -21
- package/dist/module/coreum/feemodel/v1/params.js +105 -54
- package/dist/module/coreum/feemodel/v1/query.d.ts +30 -37
- package/dist/module/coreum/feemodel/v1/query.js +191 -35
- package/dist/module/coreum/index.d.ts +46 -0
- package/dist/module/coreum/index.js +57 -0
- package/dist/module/coreum/nft/index.d.ts +1 -2
- package/dist/module/coreum/nft/v1beta1/event.d.ts +23 -27
- package/dist/module/coreum/nft/v1beta1/event.js +90 -58
- package/dist/module/coreum/nft/v1beta1/genesis.d.ts +13 -19
- package/dist/module/coreum/nft/v1beta1/genesis.js +44 -41
- package/dist/module/coreum/nft/v1beta1/nft.d.ts +15 -22
- package/dist/module/coreum/nft/v1beta1/nft.js +99 -64
- package/dist/module/coreum/nft/v1beta1/query.d.ts +54 -124
- package/dist/module/coreum/nft/v1beta1/query.js +231 -183
- package/dist/module/coreum/nft/v1beta1/tx.d.ts +13 -19
- package/dist/module/coreum/nft/v1beta1/tx.js +47 -32
- package/dist/module/cosmos/extensions/distribution.d.ts +4 -4
- package/dist/module/cosmos/extensions/gov.d.ts +13 -13
- package/dist/module/cosmos/index.d.ts +8 -8
- package/dist/module/google/api/http.d.ts +2636 -6
- package/dist/module/google/protobuf/any.d.ts +14 -2
- package/dist/module/google/protobuf/duration.d.ts +14 -2
- package/dist/module/google/protobuf/timestamp.d.ts +14 -2
- package/dist/module/services/cosmostation.js +1 -1
- package/dist/module/tendermint/abci/types.d.ts +6360 -92
- package/dist/module/tendermint/crypto/keys.d.ts +14 -2
- package/dist/module/tendermint/crypto/proof.d.ts +152 -10
- package/dist/module/tendermint/types/params.d.ts +196 -12
- package/dist/module/tendermint/types/types.d.ts +1744 -26
- package/dist/module/tendermint/types/validator.d.ts +230 -6
- package/dist/module/tendermint/version/types.d.ts +28 -4
- package/dist/module/types/core.d.ts +2 -1
- package/dist/module/types/core.js +2 -0
- package/dist/module/utils/convertStringToAny.d.ts +0 -1
- package/dist/module/wasm/v1/authz.d.ts +20 -75
- package/dist/module/wasm/v1/authz.js +111 -119
- package/dist/module/wasm/v1/genesis.d.ts +14 -34
- package/dist/module/wasm/v1/genesis.js +161 -125
- package/dist/module/wasm/v1/ibc.d.ts +13 -26
- package/dist/module/wasm/v1/ibc.js +83 -62
- package/dist/module/wasm/v1/index.d.ts +1 -2
- package/dist/module/wasm/v1/pagination.d.ts +40 -4
- package/dist/module/wasm/v1/proposal.d.ts +23 -106
- package/dist/module/wasm/v1/proposal.js +562 -377
- package/dist/module/wasm/v1/query.d.ts +35 -187
- package/dist/module/wasm/v1/query.js +330 -301
- package/dist/module/wasm/v1/tx.d.ts +37 -210
- package/dist/module/wasm/v1/tx.js +551 -404
- package/dist/module/wasm/v1/types.d.ts +19 -67
- package/dist/module/wasm/v1/types.js +196 -156
- package/package.json +11 -10
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import _m0 from "protobufjs/minimal";
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "cosmjs-types/binary";
|
|
3
2
|
import { StakingParams } from "./params";
|
|
4
3
|
export declare const protobufPackage = "coreum.customparams.v1";
|
|
5
4
|
/** QueryStakingParamsRequest defines the request type for querying x/customparams staking parameters. */
|
|
@@ -7,29 +6,16 @@ export interface QueryStakingParamsRequest {
|
|
|
7
6
|
}
|
|
8
7
|
/** QueryStakingParamsResponse defines the response type for querying x/customparams staking parameters. */
|
|
9
8
|
export interface QueryStakingParamsResponse {
|
|
10
|
-
params
|
|
9
|
+
params: StakingParams | undefined;
|
|
11
10
|
}
|
|
12
|
-
export declare const QueryStakingParamsRequest:
|
|
13
|
-
|
|
14
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): QueryStakingParamsRequest;
|
|
15
|
-
fromJSON(_: any): QueryStakingParamsRequest;
|
|
16
|
-
toJSON(_: QueryStakingParamsRequest): unknown;
|
|
17
|
-
create<I extends Exact<DeepPartial<QueryStakingParamsRequest>, I>>(base?: I): QueryStakingParamsRequest;
|
|
18
|
-
fromPartial<I extends Exact<DeepPartial<QueryStakingParamsRequest>, I>>(_: I): QueryStakingParamsRequest;
|
|
19
|
-
};
|
|
20
|
-
export declare const QueryStakingParamsResponse: {
|
|
21
|
-
encode(message: QueryStakingParamsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
22
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): QueryStakingParamsResponse;
|
|
23
|
-
fromJSON(object: any): QueryStakingParamsResponse;
|
|
24
|
-
toJSON(message: QueryStakingParamsResponse): unknown;
|
|
25
|
-
create<I extends Exact<DeepPartial<QueryStakingParamsResponse>, I>>(base?: I): QueryStakingParamsResponse;
|
|
26
|
-
fromPartial<I extends Exact<DeepPartial<QueryStakingParamsResponse>, I>>(object: I): QueryStakingParamsResponse;
|
|
27
|
-
};
|
|
11
|
+
export declare const QueryStakingParamsRequest: MessageFns<QueryStakingParamsRequest>;
|
|
12
|
+
export declare const QueryStakingParamsResponse: MessageFns<QueryStakingParamsResponse>;
|
|
28
13
|
/** Query defines the gRPC querier service. */
|
|
29
14
|
export interface Query {
|
|
30
15
|
/** StakingParams queries the staking parameters of the module. */
|
|
31
16
|
StakingParams(request: QueryStakingParamsRequest): Promise<QueryStakingParamsResponse>;
|
|
32
17
|
}
|
|
18
|
+
export declare const QueryServiceName = "coreum.customparams.v1.Query";
|
|
33
19
|
export declare class QueryClientImpl implements Query {
|
|
34
20
|
private readonly rpc;
|
|
35
21
|
private readonly service;
|
|
@@ -42,7 +28,7 @@ interface Rpc {
|
|
|
42
28
|
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
43
29
|
}
|
|
44
30
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
45
|
-
export type DeepPartial<T> = T extends Builtin ? T : T extends
|
|
31
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
46
32
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
47
33
|
} : Partial<T>;
|
|
48
34
|
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
@@ -51,4 +37,12 @@ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
|
51
37
|
} & {
|
|
52
38
|
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
53
39
|
};
|
|
40
|
+
export interface MessageFns<T> {
|
|
41
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
42
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
43
|
+
fromJSON(object: any): T;
|
|
44
|
+
toJSON(message: T): unknown;
|
|
45
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
46
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
47
|
+
}
|
|
54
48
|
export {};
|
|
@@ -1,27 +1,31 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.7.0
|
|
4
|
+
// protoc v3.21.12
|
|
5
|
+
// source: coreum-protos/customparams/query.proto
|
|
1
6
|
/* eslint-disable */
|
|
2
|
-
import
|
|
3
|
-
import _m0 from "protobufjs/minimal";
|
|
7
|
+
import { BinaryReader, BinaryWriter } from "cosmjs-types/binary";
|
|
4
8
|
import { StakingParams } from "./params";
|
|
5
9
|
export const protobufPackage = "coreum.customparams.v1";
|
|
6
10
|
function createBaseQueryStakingParamsRequest() {
|
|
7
11
|
return {};
|
|
8
12
|
}
|
|
9
13
|
export const QueryStakingParamsRequest = {
|
|
10
|
-
encode(_, writer =
|
|
14
|
+
encode(_, writer = new BinaryWriter()) {
|
|
11
15
|
return writer;
|
|
12
16
|
},
|
|
13
17
|
decode(input, length) {
|
|
14
|
-
const reader = input instanceof
|
|
18
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
15
19
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
16
20
|
const message = createBaseQueryStakingParamsRequest();
|
|
17
21
|
while (reader.pos < end) {
|
|
18
22
|
const tag = reader.uint32();
|
|
19
23
|
switch (tag >>> 3) {
|
|
20
24
|
}
|
|
21
|
-
if ((tag & 7)
|
|
25
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
22
26
|
break;
|
|
23
27
|
}
|
|
24
|
-
reader.
|
|
28
|
+
reader.skip(tag & 7);
|
|
25
29
|
}
|
|
26
30
|
return message;
|
|
27
31
|
},
|
|
@@ -44,39 +48,46 @@ function createBaseQueryStakingParamsResponse() {
|
|
|
44
48
|
return { params: undefined };
|
|
45
49
|
}
|
|
46
50
|
export const QueryStakingParamsResponse = {
|
|
47
|
-
encode(message, writer =
|
|
51
|
+
encode(message, writer = new BinaryWriter()) {
|
|
48
52
|
if (message.params !== undefined) {
|
|
49
53
|
StakingParams.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
50
54
|
}
|
|
51
55
|
return writer;
|
|
52
56
|
},
|
|
53
57
|
decode(input, length) {
|
|
54
|
-
const reader = input instanceof
|
|
58
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
55
59
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
56
60
|
const message = createBaseQueryStakingParamsResponse();
|
|
57
61
|
while (reader.pos < end) {
|
|
58
62
|
const tag = reader.uint32();
|
|
59
63
|
switch (tag >>> 3) {
|
|
60
|
-
case 1:
|
|
61
|
-
if (tag
|
|
64
|
+
case 1: {
|
|
65
|
+
if (tag !== 10) {
|
|
62
66
|
break;
|
|
63
67
|
}
|
|
64
68
|
message.params = StakingParams.decode(reader, reader.uint32());
|
|
65
69
|
continue;
|
|
70
|
+
}
|
|
66
71
|
}
|
|
67
|
-
if ((tag & 7)
|
|
72
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
68
73
|
break;
|
|
69
74
|
}
|
|
70
|
-
reader.
|
|
75
|
+
reader.skip(tag & 7);
|
|
71
76
|
}
|
|
72
77
|
return message;
|
|
73
78
|
},
|
|
74
79
|
fromJSON(object) {
|
|
75
|
-
return {
|
|
80
|
+
return {
|
|
81
|
+
params: isSet(object.params)
|
|
82
|
+
? StakingParams.fromJSON(object.params)
|
|
83
|
+
: undefined,
|
|
84
|
+
};
|
|
76
85
|
},
|
|
77
86
|
toJSON(message) {
|
|
78
87
|
const obj = {};
|
|
79
|
-
message.params !== undefined
|
|
88
|
+
if (message.params !== undefined) {
|
|
89
|
+
obj.params = StakingParams.toJSON(message.params);
|
|
90
|
+
}
|
|
80
91
|
return obj;
|
|
81
92
|
},
|
|
82
93
|
create(base) {
|
|
@@ -84,30 +95,28 @@ export const QueryStakingParamsResponse = {
|
|
|
84
95
|
},
|
|
85
96
|
fromPartial(object) {
|
|
86
97
|
const message = createBaseQueryStakingParamsResponse();
|
|
87
|
-
message.params =
|
|
88
|
-
|
|
89
|
-
|
|
98
|
+
message.params =
|
|
99
|
+
object.params !== undefined && object.params !== null
|
|
100
|
+
? StakingParams.fromPartial(object.params)
|
|
101
|
+
: undefined;
|
|
90
102
|
return message;
|
|
91
103
|
},
|
|
92
104
|
};
|
|
105
|
+
export const QueryServiceName = "coreum.customparams.v1.Query";
|
|
93
106
|
export class QueryClientImpl {
|
|
94
107
|
rpc;
|
|
95
108
|
service;
|
|
96
109
|
constructor(rpc, opts) {
|
|
97
|
-
this.service = opts?.service ||
|
|
110
|
+
this.service = opts?.service || QueryServiceName;
|
|
98
111
|
this.rpc = rpc;
|
|
99
112
|
this.StakingParams = this.StakingParams.bind(this);
|
|
100
113
|
}
|
|
101
114
|
StakingParams(request) {
|
|
102
115
|
const data = QueryStakingParamsRequest.encode(request).finish();
|
|
103
116
|
const promise = this.rpc.request(this.service, "StakingParams", data);
|
|
104
|
-
return promise.then((data) => QueryStakingParamsResponse.decode(
|
|
117
|
+
return promise.then((data) => QueryStakingParamsResponse.decode(new BinaryReader(data)));
|
|
105
118
|
}
|
|
106
119
|
}
|
|
107
|
-
if (_m0.util.Long !== Long) {
|
|
108
|
-
_m0.util.Long = Long;
|
|
109
|
-
_m0.configure();
|
|
110
|
-
}
|
|
111
120
|
function isSet(value) {
|
|
112
121
|
return value !== null && value !== undefined;
|
|
113
122
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CoreumTypeUrl } from "../../types";
|
|
2
|
+
import { MsgCancelOrder, MsgPlaceOrder, MsgUpdateParams, MsgCancelOrdersByDenom, } from "./v1/tx";
|
|
3
|
+
export const dexRegistry = [
|
|
4
|
+
[CoreumTypeUrl.DEX + "MsgCancelOrder", MsgCancelOrder],
|
|
5
|
+
[CoreumTypeUrl.DEX + "MsgPlaceOrder", MsgPlaceOrder],
|
|
6
|
+
[CoreumTypeUrl.DEX + "MsgUpdateParams", MsgUpdateParams],
|
|
7
|
+
[CoreumTypeUrl.DEX + "MsgCancelOrdersByDenom", MsgCancelOrdersByDenom],
|
|
8
|
+
];
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
export declare const protobufPackage = "coreum.dex.v1";
|
|
3
|
+
/** EventOrderPlaced is emitted when a new order is placed and new sequence is generated for it. */
|
|
4
|
+
export interface EventOrderPlaced {
|
|
5
|
+
/** creator is order creator address. */
|
|
6
|
+
creator: string;
|
|
7
|
+
/** id is unique order ID. */
|
|
8
|
+
id: string;
|
|
9
|
+
/** sequence is unique order sequence. */
|
|
10
|
+
sequence: number;
|
|
11
|
+
}
|
|
12
|
+
/** EventOrderReduced is emitted when the order is reduced during the matching. */
|
|
13
|
+
export interface EventOrderReduced {
|
|
14
|
+
/** creator is order creator address. */
|
|
15
|
+
creator: string;
|
|
16
|
+
/** id is unique order ID. */
|
|
17
|
+
id: string;
|
|
18
|
+
/** sequence is unique order sequence. */
|
|
19
|
+
sequence: number;
|
|
20
|
+
/** sent_coin is coin sent during matching. */
|
|
21
|
+
sentCoin: string;
|
|
22
|
+
/** received_coin is coin received during matching. */
|
|
23
|
+
receivedCoin: string;
|
|
24
|
+
}
|
|
25
|
+
/** EventOrderCreated is emitted when the limit order is saved to the order book. */
|
|
26
|
+
export interface EventOrderCreated {
|
|
27
|
+
/** creator is order creator address. */
|
|
28
|
+
creator: string;
|
|
29
|
+
/** id is unique order ID. */
|
|
30
|
+
id: string;
|
|
31
|
+
/** sequence is unique order sequence. */
|
|
32
|
+
sequence: number;
|
|
33
|
+
/** remaining_base_quantity - is remaining quantity of base denom which user wants to sell or buy. */
|
|
34
|
+
remainingBaseQuantity: string;
|
|
35
|
+
/** remaining_spendable_balance - is balance up to which user wants to spend to execute the order. */
|
|
36
|
+
remainingSpendableBalance: string;
|
|
37
|
+
}
|
|
38
|
+
/** EventOrderClosed is emitted when the order is closed during matching or manually, and removed from the order book. */
|
|
39
|
+
export interface EventOrderClosed {
|
|
40
|
+
/** creator is order creator address. */
|
|
41
|
+
creator: string;
|
|
42
|
+
/** id is unique order ID. */
|
|
43
|
+
id: string;
|
|
44
|
+
/** sequence is unique order sequence. */
|
|
45
|
+
sequence: number;
|
|
46
|
+
/** remaining_base_quantity - is remaining quantity of base denom which user wants to sell or buy. */
|
|
47
|
+
remainingBaseQuantity: string;
|
|
48
|
+
/** remaining_spendable_balance - is balance up to which user wants to spend to execute the order. */
|
|
49
|
+
remainingSpendableBalance: string;
|
|
50
|
+
}
|
|
51
|
+
export declare const EventOrderPlaced: MessageFns<EventOrderPlaced>;
|
|
52
|
+
export declare const EventOrderReduced: MessageFns<EventOrderReduced>;
|
|
53
|
+
export declare const EventOrderCreated: MessageFns<EventOrderCreated>;
|
|
54
|
+
export declare const EventOrderClosed: MessageFns<EventOrderClosed>;
|
|
55
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
56
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
57
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
58
|
+
} : Partial<T>;
|
|
59
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
60
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
61
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
62
|
+
} & {
|
|
63
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
64
|
+
};
|
|
65
|
+
export interface MessageFns<T> {
|
|
66
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
67
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
68
|
+
fromJSON(object: any): T;
|
|
69
|
+
toJSON(message: T): unknown;
|
|
70
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
71
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
72
|
+
}
|
|
73
|
+
export {};
|