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,245 +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 {
|
|
19
|
-
params?: {
|
|
20
|
-
model?: {
|
|
21
|
-
initialGasPrice?: string;
|
|
22
|
-
maxGasPriceMultiplier?: string;
|
|
23
|
-
maxDiscount?: string;
|
|
24
|
-
escalationStartFraction?: string;
|
|
25
|
-
maxBlockGas?: string | number | Long.Long;
|
|
26
|
-
shortEmaBlockLength?: number;
|
|
27
|
-
longEmaBlockLength?: number;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
minGasPrice?: {
|
|
31
|
-
denom?: string;
|
|
32
|
-
amount?: string;
|
|
33
|
-
};
|
|
34
|
-
} & {
|
|
35
|
-
params?: {
|
|
36
|
-
model?: {
|
|
37
|
-
initialGasPrice?: string;
|
|
38
|
-
maxGasPriceMultiplier?: string;
|
|
39
|
-
maxDiscount?: string;
|
|
40
|
-
escalationStartFraction?: string;
|
|
41
|
-
maxBlockGas?: string | number | Long.Long;
|
|
42
|
-
shortEmaBlockLength?: number;
|
|
43
|
-
longEmaBlockLength?: number;
|
|
44
|
-
};
|
|
45
|
-
} & {
|
|
46
|
-
model?: {
|
|
47
|
-
initialGasPrice?: string;
|
|
48
|
-
maxGasPriceMultiplier?: string;
|
|
49
|
-
maxDiscount?: string;
|
|
50
|
-
escalationStartFraction?: string;
|
|
51
|
-
maxBlockGas?: string | number | Long.Long;
|
|
52
|
-
shortEmaBlockLength?: number;
|
|
53
|
-
longEmaBlockLength?: number;
|
|
54
|
-
} & {
|
|
55
|
-
initialGasPrice?: string;
|
|
56
|
-
maxGasPriceMultiplier?: string;
|
|
57
|
-
maxDiscount?: string;
|
|
58
|
-
escalationStartFraction?: string;
|
|
59
|
-
maxBlockGas?: string | number | (Long.Long & {
|
|
60
|
-
high: number;
|
|
61
|
-
low: number;
|
|
62
|
-
unsigned: boolean;
|
|
63
|
-
add: (addend: string | number | Long.Long) => Long.Long;
|
|
64
|
-
and: (other: string | number | Long.Long) => Long.Long;
|
|
65
|
-
compare: (other: string | number | Long.Long) => number;
|
|
66
|
-
comp: (other: string | number | Long.Long) => number;
|
|
67
|
-
divide: (divisor: string | number | Long.Long) => Long.Long;
|
|
68
|
-
div: (divisor: string | number | Long.Long) => Long.Long;
|
|
69
|
-
equals: (other: string | number | Long.Long) => boolean;
|
|
70
|
-
eq: (other: string | number | Long.Long) => boolean;
|
|
71
|
-
getHighBits: () => number;
|
|
72
|
-
getHighBitsUnsigned: () => number;
|
|
73
|
-
getLowBits: () => number;
|
|
74
|
-
getLowBitsUnsigned: () => number;
|
|
75
|
-
getNumBitsAbs: () => number;
|
|
76
|
-
greaterThan: (other: string | number | Long.Long) => boolean;
|
|
77
|
-
gt: (other: string | number | Long.Long) => boolean;
|
|
78
|
-
greaterThanOrEqual: (other: string | number | Long.Long) => boolean;
|
|
79
|
-
gte: (other: string | number | Long.Long) => boolean;
|
|
80
|
-
isEven: () => boolean;
|
|
81
|
-
isNegative: () => boolean;
|
|
82
|
-
isOdd: () => boolean;
|
|
83
|
-
isPositive: () => boolean;
|
|
84
|
-
isZero: () => boolean;
|
|
85
|
-
lessThan: (other: string | number | Long.Long) => boolean;
|
|
86
|
-
lt: (other: string | number | Long.Long) => boolean;
|
|
87
|
-
lessThanOrEqual: (other: string | number | Long.Long) => boolean;
|
|
88
|
-
lte: (other: string | number | Long.Long) => boolean;
|
|
89
|
-
modulo: (other: string | number | Long.Long) => Long.Long;
|
|
90
|
-
mod: (other: string | number | Long.Long) => Long.Long;
|
|
91
|
-
multiply: (multiplier: string | number | Long.Long) => Long.Long;
|
|
92
|
-
mul: (multiplier: string | number | Long.Long) => Long.Long;
|
|
93
|
-
negate: () => Long.Long;
|
|
94
|
-
neg: () => Long.Long;
|
|
95
|
-
not: () => Long.Long;
|
|
96
|
-
notEquals: (other: string | number | Long.Long) => boolean;
|
|
97
|
-
neq: (other: string | number | Long.Long) => boolean;
|
|
98
|
-
or: (other: string | number | Long.Long) => Long.Long;
|
|
99
|
-
shiftLeft: (numBits: number | Long.Long) => Long.Long;
|
|
100
|
-
shl: (numBits: number | Long.Long) => Long.Long;
|
|
101
|
-
shiftRight: (numBits: number | Long.Long) => Long.Long;
|
|
102
|
-
shr: (numBits: number | Long.Long) => Long.Long;
|
|
103
|
-
shiftRightUnsigned: (numBits: number | Long.Long) => Long.Long;
|
|
104
|
-
shru: (numBits: number | Long.Long) => Long.Long;
|
|
105
|
-
subtract: (subtrahend: string | number | Long.Long) => Long.Long;
|
|
106
|
-
sub: (subtrahend: string | number | Long.Long) => Long.Long;
|
|
107
|
-
toInt: () => number;
|
|
108
|
-
toNumber: () => number;
|
|
109
|
-
toBytes: (le?: boolean) => number[];
|
|
110
|
-
toBytesLE: () => number[];
|
|
111
|
-
toBytesBE: () => number[];
|
|
112
|
-
toSigned: () => Long.Long;
|
|
113
|
-
toString: (radix?: number) => string;
|
|
114
|
-
toUnsigned: () => Long.Long;
|
|
115
|
-
xor: (other: string | number | Long.Long) => Long.Long;
|
|
116
|
-
} & { [K in Exclude<keyof I["params"]["model"]["maxBlockGas"], keyof Long.Long>]: never; });
|
|
117
|
-
shortEmaBlockLength?: number;
|
|
118
|
-
longEmaBlockLength?: number;
|
|
119
|
-
} & { [K_1 in Exclude<keyof I["params"]["model"], keyof import("./params").ModelParams>]: never; };
|
|
120
|
-
} & { [K_2 in Exclude<keyof I["params"], "model">]: never; };
|
|
121
|
-
minGasPrice?: {
|
|
122
|
-
denom?: string;
|
|
123
|
-
amount?: string;
|
|
124
|
-
} & {
|
|
125
|
-
denom?: string;
|
|
126
|
-
amount?: string;
|
|
127
|
-
} & { [K_3 in Exclude<keyof I["minGasPrice"], keyof DecCoin>]: never; };
|
|
128
|
-
} & { [K_4 in Exclude<keyof I, keyof GenesisState>]: never; }>(base?: I): GenesisState;
|
|
129
|
-
fromPartial<I_1 extends {
|
|
130
|
-
params?: {
|
|
131
|
-
model?: {
|
|
132
|
-
initialGasPrice?: string;
|
|
133
|
-
maxGasPriceMultiplier?: string;
|
|
134
|
-
maxDiscount?: string;
|
|
135
|
-
escalationStartFraction?: string;
|
|
136
|
-
maxBlockGas?: string | number | Long.Long;
|
|
137
|
-
shortEmaBlockLength?: number;
|
|
138
|
-
longEmaBlockLength?: number;
|
|
139
|
-
};
|
|
140
|
-
};
|
|
141
|
-
minGasPrice?: {
|
|
142
|
-
denom?: string;
|
|
143
|
-
amount?: string;
|
|
144
|
-
};
|
|
145
|
-
} & {
|
|
146
|
-
params?: {
|
|
147
|
-
model?: {
|
|
148
|
-
initialGasPrice?: string;
|
|
149
|
-
maxGasPriceMultiplier?: string;
|
|
150
|
-
maxDiscount?: string;
|
|
151
|
-
escalationStartFraction?: string;
|
|
152
|
-
maxBlockGas?: string | number | Long.Long;
|
|
153
|
-
shortEmaBlockLength?: number;
|
|
154
|
-
longEmaBlockLength?: number;
|
|
155
|
-
};
|
|
156
|
-
} & {
|
|
157
|
-
model?: {
|
|
158
|
-
initialGasPrice?: string;
|
|
159
|
-
maxGasPriceMultiplier?: string;
|
|
160
|
-
maxDiscount?: string;
|
|
161
|
-
escalationStartFraction?: string;
|
|
162
|
-
maxBlockGas?: string | number | Long.Long;
|
|
163
|
-
shortEmaBlockLength?: number;
|
|
164
|
-
longEmaBlockLength?: number;
|
|
165
|
-
} & {
|
|
166
|
-
initialGasPrice?: string;
|
|
167
|
-
maxGasPriceMultiplier?: string;
|
|
168
|
-
maxDiscount?: string;
|
|
169
|
-
escalationStartFraction?: string;
|
|
170
|
-
maxBlockGas?: string | number | (Long.Long & {
|
|
171
|
-
high: number;
|
|
172
|
-
low: number;
|
|
173
|
-
unsigned: boolean;
|
|
174
|
-
add: (addend: string | number | Long.Long) => Long.Long;
|
|
175
|
-
and: (other: string | number | Long.Long) => Long.Long;
|
|
176
|
-
compare: (other: string | number | Long.Long) => number;
|
|
177
|
-
comp: (other: string | number | Long.Long) => number;
|
|
178
|
-
divide: (divisor: string | number | Long.Long) => Long.Long;
|
|
179
|
-
div: (divisor: string | number | Long.Long) => Long.Long;
|
|
180
|
-
equals: (other: string | number | Long.Long) => boolean;
|
|
181
|
-
eq: (other: string | number | Long.Long) => boolean;
|
|
182
|
-
getHighBits: () => number;
|
|
183
|
-
getHighBitsUnsigned: () => number;
|
|
184
|
-
getLowBits: () => number;
|
|
185
|
-
getLowBitsUnsigned: () => number;
|
|
186
|
-
getNumBitsAbs: () => number;
|
|
187
|
-
greaterThan: (other: string | number | Long.Long) => boolean;
|
|
188
|
-
gt: (other: string | number | Long.Long) => boolean;
|
|
189
|
-
greaterThanOrEqual: (other: string | number | Long.Long) => boolean;
|
|
190
|
-
gte: (other: string | number | Long.Long) => boolean;
|
|
191
|
-
isEven: () => boolean;
|
|
192
|
-
isNegative: () => boolean;
|
|
193
|
-
isOdd: () => boolean;
|
|
194
|
-
isPositive: () => boolean;
|
|
195
|
-
isZero: () => boolean;
|
|
196
|
-
lessThan: (other: string | number | Long.Long) => boolean;
|
|
197
|
-
lt: (other: string | number | Long.Long) => boolean;
|
|
198
|
-
lessThanOrEqual: (other: string | number | Long.Long) => boolean;
|
|
199
|
-
lte: (other: string | number | Long.Long) => boolean;
|
|
200
|
-
modulo: (other: string | number | Long.Long) => Long.Long;
|
|
201
|
-
mod: (other: string | number | Long.Long) => Long.Long;
|
|
202
|
-
multiply: (multiplier: string | number | Long.Long) => Long.Long;
|
|
203
|
-
mul: (multiplier: string | number | Long.Long) => Long.Long;
|
|
204
|
-
negate: () => Long.Long;
|
|
205
|
-
neg: () => Long.Long;
|
|
206
|
-
not: () => Long.Long;
|
|
207
|
-
notEquals: (other: string | number | Long.Long) => boolean;
|
|
208
|
-
neq: (other: string | number | Long.Long) => boolean;
|
|
209
|
-
or: (other: string | number | Long.Long) => Long.Long;
|
|
210
|
-
shiftLeft: (numBits: number | Long.Long) => Long.Long;
|
|
211
|
-
shl: (numBits: number | Long.Long) => Long.Long;
|
|
212
|
-
shiftRight: (numBits: number | Long.Long) => Long.Long;
|
|
213
|
-
shr: (numBits: number | Long.Long) => Long.Long;
|
|
214
|
-
shiftRightUnsigned: (numBits: number | Long.Long) => Long.Long;
|
|
215
|
-
shru: (numBits: number | Long.Long) => Long.Long;
|
|
216
|
-
subtract: (subtrahend: string | number | Long.Long) => Long.Long;
|
|
217
|
-
sub: (subtrahend: string | number | Long.Long) => Long.Long;
|
|
218
|
-
toInt: () => number;
|
|
219
|
-
toNumber: () => number;
|
|
220
|
-
toBytes: (le?: boolean) => number[];
|
|
221
|
-
toBytesLE: () => number[];
|
|
222
|
-
toBytesBE: () => number[];
|
|
223
|
-
toSigned: () => Long.Long;
|
|
224
|
-
toString: (radix?: number) => string;
|
|
225
|
-
toUnsigned: () => Long.Long;
|
|
226
|
-
xor: (other: string | number | Long.Long) => Long.Long;
|
|
227
|
-
} & { [K_5 in Exclude<keyof I_1["params"]["model"]["maxBlockGas"], keyof Long.Long>]: never; });
|
|
228
|
-
shortEmaBlockLength?: number;
|
|
229
|
-
longEmaBlockLength?: number;
|
|
230
|
-
} & { [K_6 in Exclude<keyof I_1["params"]["model"], keyof import("./params").ModelParams>]: never; };
|
|
231
|
-
} & { [K_7 in Exclude<keyof I_1["params"], "model">]: never; };
|
|
232
|
-
minGasPrice?: {
|
|
233
|
-
denom?: string;
|
|
234
|
-
amount?: string;
|
|
235
|
-
} & {
|
|
236
|
-
denom?: string;
|
|
237
|
-
amount?: string;
|
|
238
|
-
} & { [K_8 in Exclude<keyof I_1["minGasPrice"], keyof DecCoin>]: never; };
|
|
239
|
-
} & { [K_9 in Exclude<keyof I_1, keyof GenesisState>]: never; }>(object: I_1): GenesisState;
|
|
240
|
-
};
|
|
12
|
+
export declare const GenesisState: MessageFns<GenesisState>;
|
|
241
13
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
242
|
-
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 {} ? {
|
|
243
15
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
244
16
|
} : Partial<T>;
|
|
245
17
|
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
@@ -248,4 +20,12 @@ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
|
248
20
|
} & {
|
|
249
21
|
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
250
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
|
+
}
|
|
251
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
|
}
|