coreum-js 2.16.2 → 2.17.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/main/client/index.js +16 -17
- 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 -120
- package/dist/main/coreum/asset/ft/v1/event.js +744 -138
- package/dist/main/coreum/asset/ft/v1/genesis.d.ts +31 -517
- package/dist/main/coreum/asset/ft/v1/genesis.js +273 -62
- package/dist/main/coreum/asset/ft/v1/params.d.ts +12 -63
- package/dist/main/coreum/asset/ft/v1/params.js +37 -33
- package/dist/main/coreum/asset/ft/v1/query.d.ts +86 -1950
- package/dist/main/coreum/asset/ft/v1/query.js +697 -217
- package/dist/main/coreum/asset/ft/v1/token.d.ts +17 -249
- package/dist/main/coreum/asset/ft/v1/token.js +273 -197
- package/dist/main/coreum/asset/ft/v1/tx.d.ts +30 -755
- 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 -147
- package/dist/main/coreum/asset/nft/v1/event.js +475 -147
- package/dist/main/coreum/asset/nft/v1/genesis.d.ts +27 -286
- package/dist/main/coreum/asset/nft/v1/genesis.js +311 -119
- package/dist/main/coreum/asset/nft/v1/nft.d.ts +20 -108
- package/dist/main/coreum/asset/nft/v1/nft.js +136 -101
- package/dist/main/coreum/asset/nft/v1/params.d.ts +12 -38
- package/dist/main/coreum/asset/nft/v1/params.js +17 -20
- package/dist/main/coreum/asset/nft/v1/query.d.ts +110 -706
- package/dist/main/coreum/asset/nft/v1/query.js +1079 -185
- package/dist/main/coreum/asset/nft/v1/tx.d.ts +96 -266
- package/dist/main/coreum/asset/nft/v1/tx.js +865 -234
- package/dist/main/coreum/asset/nft/v1/types.d.ts +38 -19
- package/dist/main/coreum/asset/nft/v1/types.js +273 -45
- package/dist/main/coreum/customparams/v1/genesis.d.ts +12 -32
- package/dist/main/coreum/customparams/v1/genesis.js +26 -22
- package/dist/main/coreum/customparams/v1/params.d.ts +11 -19
- package/dist/main/coreum/customparams/v1/params.js +23 -20
- package/dist/main/coreum/customparams/v1/query.d.ts +14 -40
- package/dist/main/coreum/customparams/v1/query.js +35 -29
- package/dist/main/coreum/dex/index.d.ts +1 -0
- package/dist/main/coreum/dex/index.js +12 -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/feemodel/v1/genesis.d.ts +13 -233
- package/dist/main/coreum/feemodel/v1/genesis.js +23 -24
- package/dist/main/coreum/feemodel/v1/params.d.ts +14 -337
- package/dist/main/coreum/feemodel/v1/params.js +113 -66
- package/dist/main/coreum/feemodel/v1/query.d.ts +30 -261
- 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 -79
- package/dist/main/coreum/nft/v1beta1/event.js +103 -77
- package/dist/main/coreum/nft/v1beta1/genesis.d.ts +13 -435
- package/dist/main/coreum/nft/v1beta1/genesis.js +50 -52
- package/dist/main/coreum/nft/v1beta1/nft.d.ts +15 -114
- package/dist/main/coreum/nft/v1beta1/nft.js +111 -81
- package/dist/main/coreum/nft/v1beta1/query.d.ts +54 -1628
- package/dist/main/coreum/nft/v1beta1/query.js +259 -223
- package/dist/main/coreum/nft/v1beta1/tx.d.ts +13 -39
- package/dist/main/coreum/nft/v1beta1/tx.js +54 -43
- package/dist/main/cosmos/extensions/distribution.d.ts +4 -4
- package/dist/main/cosmos/extensions/distribution.js +9 -9
- package/dist/main/cosmos/extensions/gov.d.ts +13 -13
- package/dist/main/cosmos/extensions/gov.js +14 -8
- package/dist/main/cosmos/index.d.ts +8 -8
- package/dist/main/google/api/http.js +18 -21
- package/dist/main/google/protobuf/any.js +3 -4
- package/dist/main/google/protobuf/duration.js +3 -4
- package/dist/main/google/protobuf/timestamp.js +3 -4
- package/dist/main/services/cosmostation.js +1 -1
- package/dist/main/tendermint/abci/types.js +183 -223
- package/dist/main/tendermint/crypto/keys.js +3 -4
- package/dist/main/tendermint/crypto/proof.js +19 -24
- package/dist/main/tendermint/types/params.js +15 -20
- package/dist/main/tendermint/types/types.js +57 -68
- package/dist/main/tendermint/types/validator.js +10 -13
- 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/wasm/v1/authz.d.ts +20 -471
- package/dist/main/wasm/v1/authz.js +129 -148
- package/dist/main/wasm/v1/genesis.d.ts +14 -1020
- package/dist/main/wasm/v1/genesis.js +169 -140
- package/dist/main/wasm/v1/ibc.d.ts +13 -62
- 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.js +9 -11
- package/dist/main/wasm/v1/proposal.d.ts +23 -720
- package/dist/main/wasm/v1/proposal.js +634 -465
- package/dist/main/wasm/v1/query.d.ts +35 -1201
- package/dist/main/wasm/v1/query.js +370 -363
- package/dist/main/wasm/v1/tx.d.ts +37 -788
- package/dist/main/wasm/v1/tx.js +621 -497
- package/dist/main/wasm/v1/types.d.ts +19 -297
- package/dist/main/wasm/v1/types.js +219 -190
- package/dist/module/client/index.js +4 -3
- 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 -120
- package/dist/module/coreum/asset/ft/v1/event.js +721 -109
- package/dist/module/coreum/asset/ft/v1/genesis.d.ts +31 -517
- package/dist/module/coreum/asset/ft/v1/genesis.js +266 -50
- package/dist/module/coreum/asset/ft/v1/params.d.ts +12 -63
- package/dist/module/coreum/asset/ft/v1/params.js +35 -27
- package/dist/module/coreum/asset/ft/v1/query.d.ts +86 -1950
- package/dist/module/coreum/asset/ft/v1/query.js +672 -180
- package/dist/module/coreum/asset/ft/v1/token.d.ts +17 -249
- package/dist/module/coreum/asset/ft/v1/token.js +236 -152
- package/dist/module/coreum/asset/ft/v1/tx.d.ts +30 -755
- 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 -147
- package/dist/module/coreum/asset/nft/v1/event.js +448 -112
- package/dist/module/coreum/asset/nft/v1/genesis.d.ts +27 -286
- package/dist/module/coreum/asset/nft/v1/genesis.js +299 -100
- package/dist/module/coreum/asset/nft/v1/nft.d.ts +20 -108
- package/dist/module/coreum/asset/nft/v1/nft.js +121 -81
- package/dist/module/coreum/asset/nft/v1/params.d.ts +12 -38
- package/dist/module/coreum/asset/nft/v1/params.js +16 -16
- package/dist/module/coreum/asset/nft/v1/query.d.ts +110 -706
- package/dist/module/coreum/asset/nft/v1/query.js +1057 -153
- package/dist/module/coreum/asset/nft/v1/tx.d.ts +96 -266
- package/dist/module/coreum/asset/nft/v1/tx.js +825 -184
- package/dist/module/coreum/asset/nft/v1/types.d.ts +38 -19
- package/dist/module/coreum/asset/nft/v1/types.js +269 -39
- package/dist/module/coreum/customparams/v1/genesis.d.ts +12 -32
- package/dist/module/coreum/customparams/v1/genesis.js +25 -18
- package/dist/module/coreum/customparams/v1/params.d.ts +11 -19
- package/dist/module/coreum/customparams/v1/params.js +21 -14
- package/dist/module/coreum/customparams/v1/query.d.ts +14 -40
- package/dist/module/coreum/customparams/v1/query.js +32 -23
- package/dist/module/coreum/dex/index.d.ts +1 -0
- package/dist/module/coreum/dex/index.js +9 -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 -233
- package/dist/module/coreum/feemodel/v1/genesis.js +22 -20
- package/dist/module/coreum/feemodel/v1/params.d.ts +14 -337
- package/dist/module/coreum/feemodel/v1/params.js +105 -54
- package/dist/module/coreum/feemodel/v1/query.d.ts +30 -261
- 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 -79
- package/dist/module/coreum/nft/v1beta1/event.js +90 -58
- package/dist/module/coreum/nft/v1beta1/genesis.d.ts +13 -435
- package/dist/module/coreum/nft/v1beta1/genesis.js +44 -41
- package/dist/module/coreum/nft/v1beta1/nft.d.ts +15 -114
- package/dist/module/coreum/nft/v1beta1/nft.js +99 -64
- package/dist/module/coreum/nft/v1beta1/query.d.ts +54 -1628
- package/dist/module/coreum/nft/v1beta1/query.js +231 -183
- package/dist/module/coreum/nft/v1beta1/tx.d.ts +13 -39
- 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/services/cosmostation.js +1 -1
- package/dist/module/types/core.d.ts +2 -1
- package/dist/module/types/core.js +2 -0
- package/dist/module/wasm/v1/authz.d.ts +20 -471
- package/dist/module/wasm/v1/authz.js +111 -119
- package/dist/module/wasm/v1/genesis.d.ts +14 -1020
- package/dist/module/wasm/v1/genesis.js +161 -125
- package/dist/module/wasm/v1/ibc.d.ts +13 -62
- package/dist/module/wasm/v1/ibc.js +83 -62
- package/dist/module/wasm/v1/index.d.ts +1 -2
- package/dist/module/wasm/v1/proposal.d.ts +23 -720
- package/dist/module/wasm/v1/proposal.js +562 -377
- package/dist/module/wasm/v1/query.d.ts +35 -1201
- package/dist/module/wasm/v1/query.js +330 -301
- package/dist/module/wasm/v1/tx.d.ts +37 -788
- package/dist/module/wasm/v1/tx.js +551 -404
- package/dist/module/wasm/v1/types.d.ts +19 -297
- 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 { DecCoin } from "cosmjs-types/cosmos/base/v1beta1/coin";
|
|
4
3
|
import { Params } from "./params";
|
|
5
4
|
export declare const protobufPackage = "coreum.feemodel.v1";
|
|
@@ -9,278 +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_1 extends {} & {} & { [K_1 in Exclude<keyof I_1, never>]: never; }>(_: I_1): 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 {
|
|
35
|
-
minGasPrice?: {
|
|
36
|
-
denom?: string;
|
|
37
|
-
amount?: string;
|
|
38
|
-
};
|
|
39
|
-
} & {
|
|
40
|
-
minGasPrice?: {
|
|
41
|
-
denom?: string;
|
|
42
|
-
amount?: string;
|
|
43
|
-
} & {
|
|
44
|
-
denom?: string;
|
|
45
|
-
amount?: string;
|
|
46
|
-
} & { [K in Exclude<keyof I["minGasPrice"], keyof DecCoin>]: never; };
|
|
47
|
-
} & { [K_1 in Exclude<keyof I, "minGasPrice">]: never; }>(base?: I): QueryMinGasPriceResponse;
|
|
48
|
-
fromPartial<I_1 extends {
|
|
49
|
-
minGasPrice?: {
|
|
50
|
-
denom?: string;
|
|
51
|
-
amount?: string;
|
|
52
|
-
};
|
|
53
|
-
} & {
|
|
54
|
-
minGasPrice?: {
|
|
55
|
-
denom?: string;
|
|
56
|
-
amount?: string;
|
|
57
|
-
} & {
|
|
58
|
-
denom?: string;
|
|
59
|
-
amount?: string;
|
|
60
|
-
} & { [K_2 in Exclude<keyof I_1["minGasPrice"], keyof DecCoin>]: never; };
|
|
61
|
-
} & { [K_3 in Exclude<keyof I_1, "minGasPrice">]: never; }>(object: I_1): QueryMinGasPriceResponse;
|
|
62
|
-
};
|
|
63
|
-
export declare const QueryParamsRequest: {
|
|
64
|
-
encode(_: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
65
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest;
|
|
66
|
-
fromJSON(_: any): QueryParamsRequest;
|
|
67
|
-
toJSON(_: QueryParamsRequest): unknown;
|
|
68
|
-
create<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(base?: I): QueryParamsRequest;
|
|
69
|
-
fromPartial<I_1 extends {} & {} & { [K_1 in Exclude<keyof I_1, never>]: never; }>(_: I_1): QueryParamsRequest;
|
|
70
|
-
};
|
|
71
|
-
export declare const QueryParamsResponse: {
|
|
72
|
-
encode(message: QueryParamsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
73
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse;
|
|
74
|
-
fromJSON(object: any): QueryParamsResponse;
|
|
75
|
-
toJSON(message: QueryParamsResponse): unknown;
|
|
76
|
-
create<I extends {
|
|
77
|
-
params?: {
|
|
78
|
-
model?: {
|
|
79
|
-
initialGasPrice?: string;
|
|
80
|
-
maxGasPriceMultiplier?: string;
|
|
81
|
-
maxDiscount?: string;
|
|
82
|
-
escalationStartFraction?: string;
|
|
83
|
-
maxBlockGas?: string | number | Long.Long;
|
|
84
|
-
shortEmaBlockLength?: number;
|
|
85
|
-
longEmaBlockLength?: number;
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
} & {
|
|
89
|
-
params?: {
|
|
90
|
-
model?: {
|
|
91
|
-
initialGasPrice?: string;
|
|
92
|
-
maxGasPriceMultiplier?: string;
|
|
93
|
-
maxDiscount?: string;
|
|
94
|
-
escalationStartFraction?: string;
|
|
95
|
-
maxBlockGas?: string | number | Long.Long;
|
|
96
|
-
shortEmaBlockLength?: number;
|
|
97
|
-
longEmaBlockLength?: number;
|
|
98
|
-
};
|
|
99
|
-
} & {
|
|
100
|
-
model?: {
|
|
101
|
-
initialGasPrice?: string;
|
|
102
|
-
maxGasPriceMultiplier?: string;
|
|
103
|
-
maxDiscount?: string;
|
|
104
|
-
escalationStartFraction?: string;
|
|
105
|
-
maxBlockGas?: string | number | Long.Long;
|
|
106
|
-
shortEmaBlockLength?: number;
|
|
107
|
-
longEmaBlockLength?: number;
|
|
108
|
-
} & {
|
|
109
|
-
initialGasPrice?: string;
|
|
110
|
-
maxGasPriceMultiplier?: string;
|
|
111
|
-
maxDiscount?: string;
|
|
112
|
-
escalationStartFraction?: string;
|
|
113
|
-
maxBlockGas?: string | number | (Long.Long & {
|
|
114
|
-
high: number;
|
|
115
|
-
low: number;
|
|
116
|
-
unsigned: boolean;
|
|
117
|
-
add: (addend: string | number | Long.Long) => Long.Long;
|
|
118
|
-
and: (other: string | number | Long.Long) => Long.Long;
|
|
119
|
-
compare: (other: string | number | Long.Long) => number;
|
|
120
|
-
comp: (other: string | number | Long.Long) => number;
|
|
121
|
-
divide: (divisor: string | number | Long.Long) => Long.Long;
|
|
122
|
-
div: (divisor: string | number | Long.Long) => Long.Long;
|
|
123
|
-
equals: (other: string | number | Long.Long) => boolean;
|
|
124
|
-
eq: (other: string | number | Long.Long) => boolean;
|
|
125
|
-
getHighBits: () => number;
|
|
126
|
-
getHighBitsUnsigned: () => number;
|
|
127
|
-
getLowBits: () => number;
|
|
128
|
-
getLowBitsUnsigned: () => number;
|
|
129
|
-
getNumBitsAbs: () => number;
|
|
130
|
-
greaterThan: (other: string | number | Long.Long) => boolean;
|
|
131
|
-
gt: (other: string | number | Long.Long) => boolean;
|
|
132
|
-
greaterThanOrEqual: (other: string | number | Long.Long) => boolean;
|
|
133
|
-
gte: (other: string | number | Long.Long) => boolean;
|
|
134
|
-
isEven: () => boolean;
|
|
135
|
-
isNegative: () => boolean;
|
|
136
|
-
isOdd: () => boolean;
|
|
137
|
-
isPositive: () => boolean;
|
|
138
|
-
isZero: () => boolean;
|
|
139
|
-
lessThan: (other: string | number | Long.Long) => boolean;
|
|
140
|
-
lt: (other: string | number | Long.Long) => boolean;
|
|
141
|
-
lessThanOrEqual: (other: string | number | Long.Long) => boolean;
|
|
142
|
-
lte: (other: string | number | Long.Long) => boolean;
|
|
143
|
-
modulo: (other: string | number | Long.Long) => Long.Long;
|
|
144
|
-
mod: (other: string | number | Long.Long) => Long.Long;
|
|
145
|
-
multiply: (multiplier: string | number | Long.Long) => Long.Long;
|
|
146
|
-
mul: (multiplier: string | number | Long.Long) => Long.Long;
|
|
147
|
-
negate: () => Long.Long;
|
|
148
|
-
neg: () => Long.Long;
|
|
149
|
-
not: () => Long.Long;
|
|
150
|
-
notEquals: (other: string | number | Long.Long) => boolean;
|
|
151
|
-
neq: (other: string | number | Long.Long) => boolean;
|
|
152
|
-
or: (other: string | number | Long.Long) => Long.Long;
|
|
153
|
-
shiftLeft: (numBits: number | Long.Long) => Long.Long;
|
|
154
|
-
shl: (numBits: number | Long.Long) => Long.Long;
|
|
155
|
-
shiftRight: (numBits: number | Long.Long) => Long.Long;
|
|
156
|
-
shr: (numBits: number | Long.Long) => Long.Long;
|
|
157
|
-
shiftRightUnsigned: (numBits: number | Long.Long) => Long.Long;
|
|
158
|
-
shru: (numBits: number | Long.Long) => Long.Long;
|
|
159
|
-
subtract: (subtrahend: string | number | Long.Long) => Long.Long;
|
|
160
|
-
sub: (subtrahend: string | number | Long.Long) => Long.Long;
|
|
161
|
-
toInt: () => number;
|
|
162
|
-
toNumber: () => number;
|
|
163
|
-
toBytes: (le?: boolean) => number[];
|
|
164
|
-
toBytesLE: () => number[];
|
|
165
|
-
toBytesBE: () => number[];
|
|
166
|
-
toSigned: () => Long.Long;
|
|
167
|
-
toString: (radix?: number) => string;
|
|
168
|
-
toUnsigned: () => Long.Long;
|
|
169
|
-
xor: (other: string | number | Long.Long) => Long.Long;
|
|
170
|
-
} & { [K in Exclude<keyof I["params"]["model"]["maxBlockGas"], keyof Long.Long>]: never; });
|
|
171
|
-
shortEmaBlockLength?: number;
|
|
172
|
-
longEmaBlockLength?: number;
|
|
173
|
-
} & { [K_1 in Exclude<keyof I["params"]["model"], keyof import("./params").ModelParams>]: never; };
|
|
174
|
-
} & { [K_2 in Exclude<keyof I["params"], "model">]: never; };
|
|
175
|
-
} & { [K_3 in Exclude<keyof I, "params">]: never; }>(base?: I): QueryParamsResponse;
|
|
176
|
-
fromPartial<I_1 extends {
|
|
177
|
-
params?: {
|
|
178
|
-
model?: {
|
|
179
|
-
initialGasPrice?: string;
|
|
180
|
-
maxGasPriceMultiplier?: string;
|
|
181
|
-
maxDiscount?: string;
|
|
182
|
-
escalationStartFraction?: string;
|
|
183
|
-
maxBlockGas?: string | number | Long.Long;
|
|
184
|
-
shortEmaBlockLength?: number;
|
|
185
|
-
longEmaBlockLength?: number;
|
|
186
|
-
};
|
|
187
|
-
};
|
|
188
|
-
} & {
|
|
189
|
-
params?: {
|
|
190
|
-
model?: {
|
|
191
|
-
initialGasPrice?: string;
|
|
192
|
-
maxGasPriceMultiplier?: string;
|
|
193
|
-
maxDiscount?: string;
|
|
194
|
-
escalationStartFraction?: string;
|
|
195
|
-
maxBlockGas?: string | number | Long.Long;
|
|
196
|
-
shortEmaBlockLength?: number;
|
|
197
|
-
longEmaBlockLength?: number;
|
|
198
|
-
};
|
|
199
|
-
} & {
|
|
200
|
-
model?: {
|
|
201
|
-
initialGasPrice?: string;
|
|
202
|
-
maxGasPriceMultiplier?: string;
|
|
203
|
-
maxDiscount?: string;
|
|
204
|
-
escalationStartFraction?: string;
|
|
205
|
-
maxBlockGas?: string | number | Long.Long;
|
|
206
|
-
shortEmaBlockLength?: number;
|
|
207
|
-
longEmaBlockLength?: number;
|
|
208
|
-
} & {
|
|
209
|
-
initialGasPrice?: string;
|
|
210
|
-
maxGasPriceMultiplier?: string;
|
|
211
|
-
maxDiscount?: string;
|
|
212
|
-
escalationStartFraction?: string;
|
|
213
|
-
maxBlockGas?: string | number | (Long.Long & {
|
|
214
|
-
high: number;
|
|
215
|
-
low: number;
|
|
216
|
-
unsigned: boolean;
|
|
217
|
-
add: (addend: string | number | Long.Long) => Long.Long;
|
|
218
|
-
and: (other: string | number | Long.Long) => Long.Long;
|
|
219
|
-
compare: (other: string | number | Long.Long) => number;
|
|
220
|
-
comp: (other: string | number | Long.Long) => number;
|
|
221
|
-
divide: (divisor: string | number | Long.Long) => Long.Long;
|
|
222
|
-
div: (divisor: string | number | Long.Long) => Long.Long;
|
|
223
|
-
equals: (other: string | number | Long.Long) => boolean;
|
|
224
|
-
eq: (other: string | number | Long.Long) => boolean;
|
|
225
|
-
getHighBits: () => number;
|
|
226
|
-
getHighBitsUnsigned: () => number;
|
|
227
|
-
getLowBits: () => number;
|
|
228
|
-
getLowBitsUnsigned: () => number;
|
|
229
|
-
getNumBitsAbs: () => number;
|
|
230
|
-
greaterThan: (other: string | number | Long.Long) => boolean;
|
|
231
|
-
gt: (other: string | number | Long.Long) => boolean;
|
|
232
|
-
greaterThanOrEqual: (other: string | number | Long.Long) => boolean;
|
|
233
|
-
gte: (other: string | number | Long.Long) => boolean;
|
|
234
|
-
isEven: () => boolean;
|
|
235
|
-
isNegative: () => boolean;
|
|
236
|
-
isOdd: () => boolean;
|
|
237
|
-
isPositive: () => boolean;
|
|
238
|
-
isZero: () => boolean;
|
|
239
|
-
lessThan: (other: string | number | Long.Long) => boolean;
|
|
240
|
-
lt: (other: string | number | Long.Long) => boolean;
|
|
241
|
-
lessThanOrEqual: (other: string | number | Long.Long) => boolean;
|
|
242
|
-
lte: (other: string | number | Long.Long) => boolean;
|
|
243
|
-
modulo: (other: string | number | Long.Long) => Long.Long;
|
|
244
|
-
mod: (other: string | number | Long.Long) => Long.Long;
|
|
245
|
-
multiply: (multiplier: string | number | Long.Long) => Long.Long;
|
|
246
|
-
mul: (multiplier: string | number | Long.Long) => Long.Long;
|
|
247
|
-
negate: () => Long.Long;
|
|
248
|
-
neg: () => Long.Long;
|
|
249
|
-
not: () => Long.Long;
|
|
250
|
-
notEquals: (other: string | number | Long.Long) => boolean;
|
|
251
|
-
neq: (other: string | number | Long.Long) => boolean;
|
|
252
|
-
or: (other: string | number | Long.Long) => Long.Long;
|
|
253
|
-
shiftLeft: (numBits: number | Long.Long) => Long.Long;
|
|
254
|
-
shl: (numBits: number | Long.Long) => Long.Long;
|
|
255
|
-
shiftRight: (numBits: number | Long.Long) => Long.Long;
|
|
256
|
-
shr: (numBits: number | Long.Long) => Long.Long;
|
|
257
|
-
shiftRightUnsigned: (numBits: number | Long.Long) => Long.Long;
|
|
258
|
-
shru: (numBits: number | Long.Long) => Long.Long;
|
|
259
|
-
subtract: (subtrahend: string | number | Long.Long) => Long.Long;
|
|
260
|
-
sub: (subtrahend: string | number | Long.Long) => Long.Long;
|
|
261
|
-
toInt: () => number;
|
|
262
|
-
toNumber: () => number;
|
|
263
|
-
toBytes: (le?: boolean) => number[];
|
|
264
|
-
toBytesLE: () => number[];
|
|
265
|
-
toBytesBE: () => number[];
|
|
266
|
-
toSigned: () => Long.Long;
|
|
267
|
-
toString: (radix?: number) => string;
|
|
268
|
-
toUnsigned: () => Long.Long;
|
|
269
|
-
xor: (other: string | number | Long.Long) => Long.Long;
|
|
270
|
-
} & { [K_4 in Exclude<keyof I_1["params"]["model"]["maxBlockGas"], keyof Long.Long>]: never; });
|
|
271
|
-
shortEmaBlockLength?: number;
|
|
272
|
-
longEmaBlockLength?: number;
|
|
273
|
-
} & { [K_5 in Exclude<keyof I_1["params"]["model"], keyof import("./params").ModelParams>]: never; };
|
|
274
|
-
} & { [K_6 in Exclude<keyof I_1["params"], "model">]: never; };
|
|
275
|
-
} & { [K_7 in Exclude<keyof I_1, "params">]: never; }>(object: I_1): QueryParamsResponse;
|
|
276
|
-
};
|
|
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>;
|
|
277
34
|
/** Query defines the gRPC querier service. */
|
|
278
35
|
export interface Query {
|
|
279
36
|
/** MinGasPrice queries the current minimum gas price required by the network. */
|
|
280
37
|
MinGasPrice(request: QueryMinGasPriceRequest): Promise<QueryMinGasPriceResponse>;
|
|
38
|
+
/** RecommendedGasPrice queries the recommended gas price for the next n blocks. */
|
|
39
|
+
RecommendedGasPrice(request: QueryRecommendedGasPriceRequest): Promise<QueryRecommendedGasPriceResponse>;
|
|
281
40
|
/** Params queries the parameters of x/feemodel module. */
|
|
282
41
|
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
283
42
|
}
|
|
43
|
+
export declare const QueryServiceName = "coreum.feemodel.v1.Query";
|
|
284
44
|
export declare class QueryClientImpl implements Query {
|
|
285
45
|
private readonly rpc;
|
|
286
46
|
private readonly service;
|
|
@@ -288,13 +48,14 @@ export declare class QueryClientImpl implements Query {
|
|
|
288
48
|
service?: string;
|
|
289
49
|
});
|
|
290
50
|
MinGasPrice(request: QueryMinGasPriceRequest): Promise<QueryMinGasPriceResponse>;
|
|
51
|
+
RecommendedGasPrice(request: QueryRecommendedGasPriceRequest): Promise<QueryRecommendedGasPriceResponse>;
|
|
291
52
|
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
292
53
|
}
|
|
293
54
|
interface Rpc {
|
|
294
55
|
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
295
56
|
}
|
|
296
57
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
297
|
-
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 {} ? {
|
|
298
59
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
299
60
|
} : Partial<T>;
|
|
300
61
|
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
@@ -303,4 +64,12 @@ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
|
303
64
|
} & {
|
|
304
65
|
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
305
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
|
+
}
|
|
306
75
|
export {};
|