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,25 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import _m0 from "protobufjs/minimal";
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "cosmjs-types/binary";
|
|
3
2
|
import { DecCoin } from "cosmjs-types/cosmos/base/v1beta1/coin";
|
|
4
3
|
import { Params } from "./params";
|
|
5
4
|
export declare const protobufPackage = "coreum.feemodel.v1";
|
|
6
5
|
/** GenesisState defines the module's genesis state. */
|
|
7
6
|
export interface GenesisState {
|
|
8
7
|
/** params defines all the parameters of the module. */
|
|
9
|
-
params
|
|
8
|
+
params: Params | undefined;
|
|
10
9
|
/** min_gas_price is the current minimum gas price required by the chain. */
|
|
11
|
-
minGasPrice
|
|
10
|
+
minGasPrice: DecCoin | undefined;
|
|
12
11
|
}
|
|
13
|
-
export declare const GenesisState:
|
|
14
|
-
encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
|
|
15
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState;
|
|
16
|
-
fromJSON(object: any): GenesisState;
|
|
17
|
-
toJSON(message: GenesisState): unknown;
|
|
18
|
-
create<I extends Exact<DeepPartial<GenesisState>, I>>(base?: I): GenesisState;
|
|
19
|
-
fromPartial<I extends Exact<DeepPartial<GenesisState>, I>>(object: I): GenesisState;
|
|
20
|
-
};
|
|
12
|
+
export declare const GenesisState: MessageFns<GenesisState>;
|
|
21
13
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
22
|
-
export type DeepPartial<T> = T extends Builtin ? T : T extends
|
|
14
|
+
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 {} ? {
|
|
23
15
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
24
16
|
} : Partial<T>;
|
|
25
17
|
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
@@ -28,4 +20,12 @@ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
|
28
20
|
} & {
|
|
29
21
|
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
30
22
|
};
|
|
23
|
+
export interface MessageFns<T> {
|
|
24
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
25
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
26
|
+
fromJSON(object: any): T;
|
|
27
|
+
toJSON(message: T): unknown;
|
|
28
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
29
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
30
|
+
}
|
|
31
31
|
export {};
|
|
@@ -1,6 +1,10 @@
|
|
|
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/feemodel/genesis.proto
|
|
1
6
|
/* eslint-disable */
|
|
2
|
-
import
|
|
3
|
-
import _m0 from "protobufjs/minimal";
|
|
7
|
+
import { BinaryReader, BinaryWriter } from "cosmjs-types/binary";
|
|
4
8
|
import { DecCoin } from "cosmjs-types/cosmos/base/v1beta1/coin";
|
|
5
9
|
import { Params } from "./params";
|
|
6
10
|
export const protobufPackage = "coreum.feemodel.v1";
|
|
@@ -8,7 +12,7 @@ function createBaseGenesisState() {
|
|
|
8
12
|
return { params: undefined, minGasPrice: undefined };
|
|
9
13
|
}
|
|
10
14
|
export const GenesisState = {
|
|
11
|
-
encode(message, writer =
|
|
15
|
+
encode(message, writer = new BinaryWriter()) {
|
|
12
16
|
if (message.params !== undefined) {
|
|
13
17
|
Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
14
18
|
}
|
|
@@ -18,29 +22,31 @@ export const GenesisState = {
|
|
|
18
22
|
return writer;
|
|
19
23
|
},
|
|
20
24
|
decode(input, length) {
|
|
21
|
-
const reader = input instanceof
|
|
25
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
22
26
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
23
27
|
const message = createBaseGenesisState();
|
|
24
28
|
while (reader.pos < end) {
|
|
25
29
|
const tag = reader.uint32();
|
|
26
30
|
switch (tag >>> 3) {
|
|
27
|
-
case 1:
|
|
28
|
-
if (tag
|
|
31
|
+
case 1: {
|
|
32
|
+
if (tag !== 10) {
|
|
29
33
|
break;
|
|
30
34
|
}
|
|
31
35
|
message.params = Params.decode(reader, reader.uint32());
|
|
32
36
|
continue;
|
|
33
|
-
|
|
34
|
-
|
|
37
|
+
}
|
|
38
|
+
case 2: {
|
|
39
|
+
if (tag !== 18) {
|
|
35
40
|
break;
|
|
36
41
|
}
|
|
37
42
|
message.minGasPrice = DecCoin.decode(reader, reader.uint32());
|
|
38
43
|
continue;
|
|
44
|
+
}
|
|
39
45
|
}
|
|
40
|
-
if ((tag & 7)
|
|
46
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
41
47
|
break;
|
|
42
48
|
}
|
|
43
|
-
reader.
|
|
49
|
+
reader.skip(tag & 7);
|
|
44
50
|
}
|
|
45
51
|
return message;
|
|
46
52
|
},
|
|
@@ -54,12 +60,12 @@ export const GenesisState = {
|
|
|
54
60
|
},
|
|
55
61
|
toJSON(message) {
|
|
56
62
|
const obj = {};
|
|
57
|
-
message.params !== undefined
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
+
if (message.params !== undefined) {
|
|
64
|
+
obj.params = Params.toJSON(message.params);
|
|
65
|
+
}
|
|
66
|
+
if (message.minGasPrice !== undefined) {
|
|
67
|
+
obj.minGasPrice = DecCoin.toJSON(message.minGasPrice);
|
|
68
|
+
}
|
|
63
69
|
return obj;
|
|
64
70
|
},
|
|
65
71
|
create(base) {
|
|
@@ -78,10 +84,6 @@ export const GenesisState = {
|
|
|
78
84
|
return message;
|
|
79
85
|
},
|
|
80
86
|
};
|
|
81
|
-
if (_m0.util.Long !== Long) {
|
|
82
|
-
_m0.util.Long = Long;
|
|
83
|
-
_m0.configure();
|
|
84
|
-
}
|
|
85
87
|
function isSet(value) {
|
|
86
88
|
return value !== null && value !== undefined;
|
|
87
89
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import _m0 from "protobufjs/minimal";
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "cosmjs-types/binary";
|
|
3
2
|
export declare const protobufPackage = "coreum.feemodel.v1";
|
|
4
3
|
/**
|
|
5
4
|
* ModelParams define fee model params.
|
|
@@ -22,7 +21,7 @@ export interface ModelParams {
|
|
|
22
21
|
/** escalation_start_fraction defines fraction of max block gas usage where gas price escalation starts if short average block gas is higher than this value. */
|
|
23
22
|
escalationStartFraction: string;
|
|
24
23
|
/** max_block_gas sets the maximum capacity of block. This is enforced on tendermint level in genesis configuration. Once short average block gas goes above this value, gas price is a flat line equal to MaxGasPrice. */
|
|
25
|
-
maxBlockGas:
|
|
24
|
+
maxBlockGas: number;
|
|
26
25
|
/**
|
|
27
26
|
* short_ema_block_length defines inertia for short average long gas in EMA model. The equation is: NewAverage = ((ShortAverageBlockLength - 1)*PreviousAverage + GasUsedByCurrentBlock) / ShortAverageBlockLength
|
|
28
27
|
* The value might be interpreted as the number of blocks which are taken to calculate the average. It would be exactly like that in SMA model, in EMA this is an approximation.
|
|
@@ -37,26 +36,12 @@ export interface ModelParams {
|
|
|
37
36
|
/** Params store gov manageable feemodel parameters. */
|
|
38
37
|
export interface Params {
|
|
39
38
|
/** model is a fee model params. */
|
|
40
|
-
model
|
|
39
|
+
model: ModelParams | undefined;
|
|
41
40
|
}
|
|
42
|
-
export declare const ModelParams:
|
|
43
|
-
|
|
44
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): ModelParams;
|
|
45
|
-
fromJSON(object: any): ModelParams;
|
|
46
|
-
toJSON(message: ModelParams): unknown;
|
|
47
|
-
create<I extends Exact<DeepPartial<ModelParams>, I>>(base?: I): ModelParams;
|
|
48
|
-
fromPartial<I extends Exact<DeepPartial<ModelParams>, I>>(object: I): ModelParams;
|
|
49
|
-
};
|
|
50
|
-
export declare const Params: {
|
|
51
|
-
encode(message: Params, writer?: _m0.Writer): _m0.Writer;
|
|
52
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): Params;
|
|
53
|
-
fromJSON(object: any): Params;
|
|
54
|
-
toJSON(message: Params): unknown;
|
|
55
|
-
create<I extends Exact<DeepPartial<Params>, I>>(base?: I): Params;
|
|
56
|
-
fromPartial<I extends Exact<DeepPartial<Params>, I>>(object: I): Params;
|
|
57
|
-
};
|
|
41
|
+
export declare const ModelParams: MessageFns<ModelParams>;
|
|
42
|
+
export declare const Params: MessageFns<Params>;
|
|
58
43
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
59
|
-
export type DeepPartial<T> = T extends Builtin ? T : T extends
|
|
44
|
+
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 {} ? {
|
|
60
45
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
61
46
|
} : Partial<T>;
|
|
62
47
|
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
@@ -65,4 +50,12 @@ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
|
65
50
|
} & {
|
|
66
51
|
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
67
52
|
};
|
|
53
|
+
export interface MessageFns<T> {
|
|
54
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
55
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
56
|
+
fromJSON(object: any): T;
|
|
57
|
+
toJSON(message: T): unknown;
|
|
58
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
59
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
60
|
+
}
|
|
68
61
|
export {};
|
|
@@ -1,6 +1,10 @@
|
|
|
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/feemodel/params.proto
|
|
1
6
|
/* eslint-disable */
|
|
2
|
-
import
|
|
3
|
-
import _m0 from "protobufjs/minimal";
|
|
7
|
+
import { BinaryReader, BinaryWriter } from "cosmjs-types/binary";
|
|
4
8
|
export const protobufPackage = "coreum.feemodel.v1";
|
|
5
9
|
function createBaseModelParams() {
|
|
6
10
|
return {
|
|
@@ -8,13 +12,13 @@ function createBaseModelParams() {
|
|
|
8
12
|
maxGasPriceMultiplier: "",
|
|
9
13
|
maxDiscount: "",
|
|
10
14
|
escalationStartFraction: "",
|
|
11
|
-
maxBlockGas:
|
|
15
|
+
maxBlockGas: 0,
|
|
12
16
|
shortEmaBlockLength: 0,
|
|
13
17
|
longEmaBlockLength: 0,
|
|
14
18
|
};
|
|
15
19
|
}
|
|
16
20
|
export const ModelParams = {
|
|
17
|
-
encode(message, writer =
|
|
21
|
+
encode(message, writer = new BinaryWriter()) {
|
|
18
22
|
if (message.initialGasPrice !== "") {
|
|
19
23
|
writer.uint32(10).string(message.initialGasPrice);
|
|
20
24
|
}
|
|
@@ -27,7 +31,7 @@ export const ModelParams = {
|
|
|
27
31
|
if (message.escalationStartFraction !== "") {
|
|
28
32
|
writer.uint32(34).string(message.escalationStartFraction);
|
|
29
33
|
}
|
|
30
|
-
if (
|
|
34
|
+
if (message.maxBlockGas !== 0) {
|
|
31
35
|
writer.uint32(40).int64(message.maxBlockGas);
|
|
32
36
|
}
|
|
33
37
|
if (message.shortEmaBlockLength !== 0) {
|
|
@@ -39,82 +43,117 @@ export const ModelParams = {
|
|
|
39
43
|
return writer;
|
|
40
44
|
},
|
|
41
45
|
decode(input, length) {
|
|
42
|
-
const reader = input instanceof
|
|
46
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
43
47
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
44
48
|
const message = createBaseModelParams();
|
|
45
49
|
while (reader.pos < end) {
|
|
46
50
|
const tag = reader.uint32();
|
|
47
51
|
switch (tag >>> 3) {
|
|
48
|
-
case 1:
|
|
49
|
-
if (tag
|
|
52
|
+
case 1: {
|
|
53
|
+
if (tag !== 10) {
|
|
50
54
|
break;
|
|
51
55
|
}
|
|
52
56
|
message.initialGasPrice = reader.string();
|
|
53
57
|
continue;
|
|
54
|
-
|
|
55
|
-
|
|
58
|
+
}
|
|
59
|
+
case 2: {
|
|
60
|
+
if (tag !== 18) {
|
|
56
61
|
break;
|
|
57
62
|
}
|
|
58
63
|
message.maxGasPriceMultiplier = reader.string();
|
|
59
64
|
continue;
|
|
60
|
-
|
|
61
|
-
|
|
65
|
+
}
|
|
66
|
+
case 3: {
|
|
67
|
+
if (tag !== 26) {
|
|
62
68
|
break;
|
|
63
69
|
}
|
|
64
70
|
message.maxDiscount = reader.string();
|
|
65
71
|
continue;
|
|
66
|
-
|
|
67
|
-
|
|
72
|
+
}
|
|
73
|
+
case 4: {
|
|
74
|
+
if (tag !== 34) {
|
|
68
75
|
break;
|
|
69
76
|
}
|
|
70
77
|
message.escalationStartFraction = reader.string();
|
|
71
78
|
continue;
|
|
72
|
-
|
|
73
|
-
|
|
79
|
+
}
|
|
80
|
+
case 5: {
|
|
81
|
+
if (tag !== 40) {
|
|
74
82
|
break;
|
|
75
83
|
}
|
|
76
|
-
message.maxBlockGas = reader.int64();
|
|
84
|
+
message.maxBlockGas = longToNumber(reader.int64());
|
|
77
85
|
continue;
|
|
78
|
-
|
|
79
|
-
|
|
86
|
+
}
|
|
87
|
+
case 6: {
|
|
88
|
+
if (tag !== 48) {
|
|
80
89
|
break;
|
|
81
90
|
}
|
|
82
91
|
message.shortEmaBlockLength = reader.uint32();
|
|
83
92
|
continue;
|
|
84
|
-
|
|
85
|
-
|
|
93
|
+
}
|
|
94
|
+
case 7: {
|
|
95
|
+
if (tag !== 56) {
|
|
86
96
|
break;
|
|
87
97
|
}
|
|
88
98
|
message.longEmaBlockLength = reader.uint32();
|
|
89
99
|
continue;
|
|
100
|
+
}
|
|
90
101
|
}
|
|
91
|
-
if ((tag & 7)
|
|
102
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
92
103
|
break;
|
|
93
104
|
}
|
|
94
|
-
reader.
|
|
105
|
+
reader.skip(tag & 7);
|
|
95
106
|
}
|
|
96
107
|
return message;
|
|
97
108
|
},
|
|
98
109
|
fromJSON(object) {
|
|
99
110
|
return {
|
|
100
|
-
initialGasPrice: isSet(object.initialGasPrice)
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
111
|
+
initialGasPrice: isSet(object.initialGasPrice)
|
|
112
|
+
? globalThis.String(object.initialGasPrice)
|
|
113
|
+
: "",
|
|
114
|
+
maxGasPriceMultiplier: isSet(object.maxGasPriceMultiplier)
|
|
115
|
+
? globalThis.String(object.maxGasPriceMultiplier)
|
|
116
|
+
: "",
|
|
117
|
+
maxDiscount: isSet(object.maxDiscount)
|
|
118
|
+
? globalThis.String(object.maxDiscount)
|
|
119
|
+
: "",
|
|
120
|
+
escalationStartFraction: isSet(object.escalationStartFraction)
|
|
121
|
+
? globalThis.String(object.escalationStartFraction)
|
|
122
|
+
: "",
|
|
123
|
+
maxBlockGas: isSet(object.maxBlockGas)
|
|
124
|
+
? globalThis.Number(object.maxBlockGas)
|
|
125
|
+
: 0,
|
|
126
|
+
shortEmaBlockLength: isSet(object.shortEmaBlockLength)
|
|
127
|
+
? globalThis.Number(object.shortEmaBlockLength)
|
|
128
|
+
: 0,
|
|
129
|
+
longEmaBlockLength: isSet(object.longEmaBlockLength)
|
|
130
|
+
? globalThis.Number(object.longEmaBlockLength)
|
|
131
|
+
: 0,
|
|
107
132
|
};
|
|
108
133
|
},
|
|
109
134
|
toJSON(message) {
|
|
110
135
|
const obj = {};
|
|
111
|
-
message.initialGasPrice !==
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
message.
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
message.
|
|
136
|
+
if (message.initialGasPrice !== "") {
|
|
137
|
+
obj.initialGasPrice = message.initialGasPrice;
|
|
138
|
+
}
|
|
139
|
+
if (message.maxGasPriceMultiplier !== "") {
|
|
140
|
+
obj.maxGasPriceMultiplier = message.maxGasPriceMultiplier;
|
|
141
|
+
}
|
|
142
|
+
if (message.maxDiscount !== "") {
|
|
143
|
+
obj.maxDiscount = message.maxDiscount;
|
|
144
|
+
}
|
|
145
|
+
if (message.escalationStartFraction !== "") {
|
|
146
|
+
obj.escalationStartFraction = message.escalationStartFraction;
|
|
147
|
+
}
|
|
148
|
+
if (message.maxBlockGas !== 0) {
|
|
149
|
+
obj.maxBlockGas = Math.round(message.maxBlockGas);
|
|
150
|
+
}
|
|
151
|
+
if (message.shortEmaBlockLength !== 0) {
|
|
152
|
+
obj.shortEmaBlockLength = Math.round(message.shortEmaBlockLength);
|
|
153
|
+
}
|
|
154
|
+
if (message.longEmaBlockLength !== 0) {
|
|
155
|
+
obj.longEmaBlockLength = Math.round(message.longEmaBlockLength);
|
|
156
|
+
}
|
|
118
157
|
return obj;
|
|
119
158
|
},
|
|
120
159
|
create(base) {
|
|
@@ -126,9 +165,7 @@ export const ModelParams = {
|
|
|
126
165
|
message.maxGasPriceMultiplier = object.maxGasPriceMultiplier ?? "";
|
|
127
166
|
message.maxDiscount = object.maxDiscount ?? "";
|
|
128
167
|
message.escalationStartFraction = object.escalationStartFraction ?? "";
|
|
129
|
-
message.maxBlockGas =
|
|
130
|
-
? Long.fromValue(object.maxBlockGas)
|
|
131
|
-
: Long.ZERO;
|
|
168
|
+
message.maxBlockGas = object.maxBlockGas ?? 0;
|
|
132
169
|
message.shortEmaBlockLength = object.shortEmaBlockLength ?? 0;
|
|
133
170
|
message.longEmaBlockLength = object.longEmaBlockLength ?? 0;
|
|
134
171
|
return message;
|
|
@@ -138,39 +175,46 @@ function createBaseParams() {
|
|
|
138
175
|
return { model: undefined };
|
|
139
176
|
}
|
|
140
177
|
export const Params = {
|
|
141
|
-
encode(message, writer =
|
|
178
|
+
encode(message, writer = new BinaryWriter()) {
|
|
142
179
|
if (message.model !== undefined) {
|
|
143
180
|
ModelParams.encode(message.model, writer.uint32(10).fork()).ldelim();
|
|
144
181
|
}
|
|
145
182
|
return writer;
|
|
146
183
|
},
|
|
147
184
|
decode(input, length) {
|
|
148
|
-
const reader = input instanceof
|
|
185
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
149
186
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
150
187
|
const message = createBaseParams();
|
|
151
188
|
while (reader.pos < end) {
|
|
152
189
|
const tag = reader.uint32();
|
|
153
190
|
switch (tag >>> 3) {
|
|
154
|
-
case 1:
|
|
155
|
-
if (tag
|
|
191
|
+
case 1: {
|
|
192
|
+
if (tag !== 10) {
|
|
156
193
|
break;
|
|
157
194
|
}
|
|
158
195
|
message.model = ModelParams.decode(reader, reader.uint32());
|
|
159
196
|
continue;
|
|
197
|
+
}
|
|
160
198
|
}
|
|
161
|
-
if ((tag & 7)
|
|
199
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
162
200
|
break;
|
|
163
201
|
}
|
|
164
|
-
reader.
|
|
202
|
+
reader.skip(tag & 7);
|
|
165
203
|
}
|
|
166
204
|
return message;
|
|
167
205
|
},
|
|
168
206
|
fromJSON(object) {
|
|
169
|
-
return {
|
|
207
|
+
return {
|
|
208
|
+
model: isSet(object.model)
|
|
209
|
+
? ModelParams.fromJSON(object.model)
|
|
210
|
+
: undefined,
|
|
211
|
+
};
|
|
170
212
|
},
|
|
171
213
|
toJSON(message) {
|
|
172
214
|
const obj = {};
|
|
173
|
-
message.model !== undefined
|
|
215
|
+
if (message.model !== undefined) {
|
|
216
|
+
obj.model = ModelParams.toJSON(message.model);
|
|
217
|
+
}
|
|
174
218
|
return obj;
|
|
175
219
|
},
|
|
176
220
|
create(base) {
|
|
@@ -178,15 +222,22 @@ export const Params = {
|
|
|
178
222
|
},
|
|
179
223
|
fromPartial(object) {
|
|
180
224
|
const message = createBaseParams();
|
|
181
|
-
message.model =
|
|
182
|
-
|
|
183
|
-
|
|
225
|
+
message.model =
|
|
226
|
+
object.model !== undefined && object.model !== null
|
|
227
|
+
? ModelParams.fromPartial(object.model)
|
|
228
|
+
: undefined;
|
|
184
229
|
return message;
|
|
185
230
|
},
|
|
186
231
|
};
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
232
|
+
function longToNumber(int64) {
|
|
233
|
+
const num = globalThis.Number(int64.toString());
|
|
234
|
+
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
235
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
236
|
+
}
|
|
237
|
+
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
238
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
239
|
+
}
|
|
240
|
+
return num;
|
|
190
241
|
}
|
|
191
242
|
function isSet(value) {
|
|
192
243
|
return value !== null && value !== undefined;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import _m0 from "protobufjs/minimal";
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "cosmjs-types/binary";
|
|
3
2
|
import { DecCoin } from "cosmjs-types/cosmos/base/v1beta1/coin";
|
|
4
3
|
import { Params } from "./params";
|
|
5
4
|
export declare const protobufPackage = "coreum.feemodel.v1";
|
|
@@ -9,54 +8,39 @@ export interface QueryMinGasPriceRequest {
|
|
|
9
8
|
/** QueryMinGasPriceResponse is the response type for the Query/MinGasPrice RPC method. */
|
|
10
9
|
export interface QueryMinGasPriceResponse {
|
|
11
10
|
/** min_gas_price is the current minimum gas price required by the network. */
|
|
12
|
-
minGasPrice
|
|
11
|
+
minGasPrice: DecCoin | undefined;
|
|
12
|
+
}
|
|
13
|
+
export interface QueryRecommendedGasPriceRequest {
|
|
14
|
+
afterBlocks: number;
|
|
15
|
+
}
|
|
16
|
+
export interface QueryRecommendedGasPriceResponse {
|
|
17
|
+
low: DecCoin | undefined;
|
|
18
|
+
med: DecCoin | undefined;
|
|
19
|
+
high: DecCoin | undefined;
|
|
13
20
|
}
|
|
14
21
|
/** QueryParamsRequest defines the request type for querying x/feemodel parameters. */
|
|
15
22
|
export interface QueryParamsRequest {
|
|
16
23
|
}
|
|
17
24
|
/** QueryParamsResponse defines the response type for querying x/feemodel parameters. */
|
|
18
25
|
export interface QueryParamsResponse {
|
|
19
|
-
params
|
|
26
|
+
params: Params | undefined;
|
|
20
27
|
}
|
|
21
|
-
export declare const QueryMinGasPriceRequest:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
fromPartial<I extends Exact<DeepPartial<QueryMinGasPriceRequest>, I>>(_: I): QueryMinGasPriceRequest;
|
|
28
|
-
};
|
|
29
|
-
export declare const QueryMinGasPriceResponse: {
|
|
30
|
-
encode(message: QueryMinGasPriceResponse, writer?: _m0.Writer): _m0.Writer;
|
|
31
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): QueryMinGasPriceResponse;
|
|
32
|
-
fromJSON(object: any): QueryMinGasPriceResponse;
|
|
33
|
-
toJSON(message: QueryMinGasPriceResponse): unknown;
|
|
34
|
-
create<I extends Exact<DeepPartial<QueryMinGasPriceResponse>, I>>(base?: I): QueryMinGasPriceResponse;
|
|
35
|
-
fromPartial<I extends Exact<DeepPartial<QueryMinGasPriceResponse>, I>>(object: I): QueryMinGasPriceResponse;
|
|
36
|
-
};
|
|
37
|
-
export declare const QueryParamsRequest: {
|
|
38
|
-
encode(_: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
39
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest;
|
|
40
|
-
fromJSON(_: any): QueryParamsRequest;
|
|
41
|
-
toJSON(_: QueryParamsRequest): unknown;
|
|
42
|
-
create<I extends Exact<DeepPartial<QueryParamsRequest>, I>>(base?: I): QueryParamsRequest;
|
|
43
|
-
fromPartial<I extends Exact<DeepPartial<QueryParamsRequest>, I>>(_: I): QueryParamsRequest;
|
|
44
|
-
};
|
|
45
|
-
export declare const QueryParamsResponse: {
|
|
46
|
-
encode(message: QueryParamsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
47
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse;
|
|
48
|
-
fromJSON(object: any): QueryParamsResponse;
|
|
49
|
-
toJSON(message: QueryParamsResponse): unknown;
|
|
50
|
-
create<I extends Exact<DeepPartial<QueryParamsResponse>, I>>(base?: I): QueryParamsResponse;
|
|
51
|
-
fromPartial<I extends Exact<DeepPartial<QueryParamsResponse>, I>>(object: I): QueryParamsResponse;
|
|
52
|
-
};
|
|
28
|
+
export declare const QueryMinGasPriceRequest: MessageFns<QueryMinGasPriceRequest>;
|
|
29
|
+
export declare const QueryMinGasPriceResponse: MessageFns<QueryMinGasPriceResponse>;
|
|
30
|
+
export declare const QueryRecommendedGasPriceRequest: MessageFns<QueryRecommendedGasPriceRequest>;
|
|
31
|
+
export declare const QueryRecommendedGasPriceResponse: MessageFns<QueryRecommendedGasPriceResponse>;
|
|
32
|
+
export declare const QueryParamsRequest: MessageFns<QueryParamsRequest>;
|
|
33
|
+
export declare const QueryParamsResponse: MessageFns<QueryParamsResponse>;
|
|
53
34
|
/** Query defines the gRPC querier service. */
|
|
54
35
|
export interface Query {
|
|
55
36
|
/** MinGasPrice queries the current minimum gas price required by the network. */
|
|
56
37
|
MinGasPrice(request: QueryMinGasPriceRequest): Promise<QueryMinGasPriceResponse>;
|
|
38
|
+
/** RecommendedGasPrice queries the recommended gas price for the next n blocks. */
|
|
39
|
+
RecommendedGasPrice(request: QueryRecommendedGasPriceRequest): Promise<QueryRecommendedGasPriceResponse>;
|
|
57
40
|
/** Params queries the parameters of x/feemodel module. */
|
|
58
41
|
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
59
42
|
}
|
|
43
|
+
export declare const QueryServiceName = "coreum.feemodel.v1.Query";
|
|
60
44
|
export declare class QueryClientImpl implements Query {
|
|
61
45
|
private readonly rpc;
|
|
62
46
|
private readonly service;
|
|
@@ -64,13 +48,14 @@ export declare class QueryClientImpl implements Query {
|
|
|
64
48
|
service?: string;
|
|
65
49
|
});
|
|
66
50
|
MinGasPrice(request: QueryMinGasPriceRequest): Promise<QueryMinGasPriceResponse>;
|
|
51
|
+
RecommendedGasPrice(request: QueryRecommendedGasPriceRequest): Promise<QueryRecommendedGasPriceResponse>;
|
|
67
52
|
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
68
53
|
}
|
|
69
54
|
interface Rpc {
|
|
70
55
|
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
71
56
|
}
|
|
72
57
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
73
|
-
export type DeepPartial<T> = T extends Builtin ? T : T extends
|
|
58
|
+
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 {} ? {
|
|
74
59
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
75
60
|
} : Partial<T>;
|
|
76
61
|
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
@@ -79,4 +64,12 @@ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
|
79
64
|
} & {
|
|
80
65
|
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
81
66
|
};
|
|
67
|
+
export interface MessageFns<T> {
|
|
68
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
69
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
70
|
+
fromJSON(object: any): T;
|
|
71
|
+
toJSON(message: T): unknown;
|
|
72
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
73
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
74
|
+
}
|
|
82
75
|
export {};
|