coreum-js 2.16.3 → 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 +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 +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/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 +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 -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,19 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
import _m0 from "protobufjs/minimal";
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "cosmjs-types/binary";
|
|
3
2
|
import { Coin } from "cosmjs-types/cosmos/base/v1beta1/coin";
|
|
4
3
|
import { Params } from "./params";
|
|
5
|
-
import { Token } from "./token";
|
|
4
|
+
import { DEXSettings, Token } from "./token";
|
|
6
5
|
export declare const protobufPackage = "coreum.asset.ft.v1";
|
|
7
6
|
/** GenesisState defines the module genesis state. */
|
|
8
7
|
export interface GenesisState {
|
|
9
8
|
/** params defines all the parameters of the module. */
|
|
10
|
-
params
|
|
9
|
+
params: Params | undefined;
|
|
11
10
|
/** tokens keep the fungible token state */
|
|
12
11
|
tokens: Token[];
|
|
13
12
|
/** frozen_balances contains the frozen balances on all of the accounts */
|
|
14
13
|
frozenBalances: Balance[];
|
|
15
14
|
/** whitelisted_balances contains the whitelisted balances on all of the accounts */
|
|
16
15
|
whitelistedBalances: Balance[];
|
|
16
|
+
/** pending_token_upgrades contains pending token upgrades. */
|
|
17
|
+
pendingTokenUpgrades: PendingTokenUpgrade[];
|
|
18
|
+
/** dex_locked_balances contains the DEX locked balances on all of the accounts */
|
|
19
|
+
dexLockedBalances: Balance[];
|
|
20
|
+
dexExpectedToReceiveBalances: Balance[];
|
|
21
|
+
dexSettings: DEXSettingsWithDenom[];
|
|
17
22
|
}
|
|
18
23
|
/** Balance defines an account address and balance pair used module genesis genesis state. */
|
|
19
24
|
export interface Balance {
|
|
@@ -22,24 +27,21 @@ export interface Balance {
|
|
|
22
27
|
/** coins defines the different coins this balance holds. */
|
|
23
28
|
coins: Coin[];
|
|
24
29
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
create<I extends Exact<DeepPartial<Balance>, I>>(base?: I): Balance;
|
|
39
|
-
fromPartial<I extends Exact<DeepPartial<Balance>, I>>(object: I): Balance;
|
|
40
|
-
};
|
|
30
|
+
/** PendingTokenUpgrade stores the version of pending token upgrade. */
|
|
31
|
+
export interface PendingTokenUpgrade {
|
|
32
|
+
denom: string;
|
|
33
|
+
version: number;
|
|
34
|
+
}
|
|
35
|
+
export interface DEXSettingsWithDenom {
|
|
36
|
+
denom: string;
|
|
37
|
+
dexSettings: DEXSettings | undefined;
|
|
38
|
+
}
|
|
39
|
+
export declare const GenesisState: MessageFns<GenesisState>;
|
|
40
|
+
export declare const Balance: MessageFns<Balance>;
|
|
41
|
+
export declare const PendingTokenUpgrade: MessageFns<PendingTokenUpgrade>;
|
|
42
|
+
export declare const DEXSettingsWithDenom: MessageFns<DEXSettingsWithDenom>;
|
|
41
43
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
42
|
-
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 {} ? {
|
|
43
45
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
44
46
|
} : Partial<T>;
|
|
45
47
|
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
@@ -48,4 +50,12 @@ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
|
48
50
|
} & {
|
|
49
51
|
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
50
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
|
+
}
|
|
51
61
|
export {};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.7.0
|
|
5
|
+
// protoc v3.21.12
|
|
6
|
+
// source: coreum-protos/ft/genesis.proto
|
|
5
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.Balance = exports.GenesisState = exports.protobufPackage = void 0;
|
|
8
|
+
exports.DEXSettingsWithDenom = exports.PendingTokenUpgrade = exports.Balance = exports.GenesisState = exports.protobufPackage = void 0;
|
|
7
9
|
/* eslint-disable */
|
|
8
|
-
const
|
|
9
|
-
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
+
const binary_1 = require("cosmjs-types/binary");
|
|
10
11
|
const coin_1 = require("cosmjs-types/cosmos/base/v1beta1/coin");
|
|
11
12
|
const params_1 = require("./params");
|
|
12
13
|
const token_1 = require("./token");
|
|
@@ -17,10 +18,14 @@ function createBaseGenesisState() {
|
|
|
17
18
|
tokens: [],
|
|
18
19
|
frozenBalances: [],
|
|
19
20
|
whitelistedBalances: [],
|
|
21
|
+
pendingTokenUpgrades: [],
|
|
22
|
+
dexLockedBalances: [],
|
|
23
|
+
dexExpectedToReceiveBalances: [],
|
|
24
|
+
dexSettings: [],
|
|
20
25
|
};
|
|
21
26
|
}
|
|
22
27
|
exports.GenesisState = {
|
|
23
|
-
encode(message, writer =
|
|
28
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
24
29
|
if (message.params !== undefined) {
|
|
25
30
|
params_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
26
31
|
}
|
|
@@ -33,100 +38,169 @@ exports.GenesisState = {
|
|
|
33
38
|
for (const v of message.whitelistedBalances) {
|
|
34
39
|
exports.Balance.encode(v, writer.uint32(34).fork()).ldelim();
|
|
35
40
|
}
|
|
41
|
+
for (const v of message.pendingTokenUpgrades) {
|
|
42
|
+
exports.PendingTokenUpgrade.encode(v, writer.uint32(42).fork()).ldelim();
|
|
43
|
+
}
|
|
44
|
+
for (const v of message.dexLockedBalances) {
|
|
45
|
+
exports.Balance.encode(v, writer.uint32(50).fork()).ldelim();
|
|
46
|
+
}
|
|
47
|
+
for (const v of message.dexExpectedToReceiveBalances) {
|
|
48
|
+
exports.Balance.encode(v, writer.uint32(58).fork()).ldelim();
|
|
49
|
+
}
|
|
50
|
+
for (const v of message.dexSettings) {
|
|
51
|
+
exports.DEXSettingsWithDenom.encode(v, writer.uint32(66).fork()).ldelim();
|
|
52
|
+
}
|
|
36
53
|
return writer;
|
|
37
54
|
},
|
|
38
55
|
decode(input, length) {
|
|
39
|
-
const reader = input instanceof
|
|
56
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
40
57
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
41
58
|
const message = createBaseGenesisState();
|
|
42
59
|
while (reader.pos < end) {
|
|
43
60
|
const tag = reader.uint32();
|
|
44
61
|
switch (tag >>> 3) {
|
|
45
|
-
case 1:
|
|
46
|
-
if (tag
|
|
62
|
+
case 1: {
|
|
63
|
+
if (tag !== 10) {
|
|
47
64
|
break;
|
|
48
65
|
}
|
|
49
66
|
message.params = params_1.Params.decode(reader, reader.uint32());
|
|
50
67
|
continue;
|
|
51
|
-
|
|
52
|
-
|
|
68
|
+
}
|
|
69
|
+
case 2: {
|
|
70
|
+
if (tag !== 18) {
|
|
53
71
|
break;
|
|
54
72
|
}
|
|
55
73
|
message.tokens.push(token_1.Token.decode(reader, reader.uint32()));
|
|
56
74
|
continue;
|
|
57
|
-
|
|
58
|
-
|
|
75
|
+
}
|
|
76
|
+
case 3: {
|
|
77
|
+
if (tag !== 26) {
|
|
59
78
|
break;
|
|
60
79
|
}
|
|
61
80
|
message.frozenBalances.push(exports.Balance.decode(reader, reader.uint32()));
|
|
62
81
|
continue;
|
|
63
|
-
|
|
64
|
-
|
|
82
|
+
}
|
|
83
|
+
case 4: {
|
|
84
|
+
if (tag !== 34) {
|
|
65
85
|
break;
|
|
66
86
|
}
|
|
67
87
|
message.whitelistedBalances.push(exports.Balance.decode(reader, reader.uint32()));
|
|
68
88
|
continue;
|
|
89
|
+
}
|
|
90
|
+
case 5: {
|
|
91
|
+
if (tag !== 42) {
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
message.pendingTokenUpgrades.push(exports.PendingTokenUpgrade.decode(reader, reader.uint32()));
|
|
95
|
+
continue;
|
|
96
|
+
}
|
|
97
|
+
case 6: {
|
|
98
|
+
if (tag !== 50) {
|
|
99
|
+
break;
|
|
100
|
+
}
|
|
101
|
+
message.dexLockedBalances.push(exports.Balance.decode(reader, reader.uint32()));
|
|
102
|
+
continue;
|
|
103
|
+
}
|
|
104
|
+
case 7: {
|
|
105
|
+
if (tag !== 58) {
|
|
106
|
+
break;
|
|
107
|
+
}
|
|
108
|
+
message.dexExpectedToReceiveBalances.push(exports.Balance.decode(reader, reader.uint32()));
|
|
109
|
+
continue;
|
|
110
|
+
}
|
|
111
|
+
case 8: {
|
|
112
|
+
if (tag !== 66) {
|
|
113
|
+
break;
|
|
114
|
+
}
|
|
115
|
+
message.dexSettings.push(exports.DEXSettingsWithDenom.decode(reader, reader.uint32()));
|
|
116
|
+
continue;
|
|
117
|
+
}
|
|
69
118
|
}
|
|
70
|
-
if ((tag & 7)
|
|
119
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
71
120
|
break;
|
|
72
121
|
}
|
|
73
|
-
reader.
|
|
122
|
+
reader.skip(tag & 7);
|
|
74
123
|
}
|
|
75
124
|
return message;
|
|
76
125
|
},
|
|
77
126
|
fromJSON(object) {
|
|
78
127
|
return {
|
|
79
128
|
params: isSet(object.params) ? params_1.Params.fromJSON(object.params) : undefined,
|
|
80
|
-
tokens: Array.isArray(object
|
|
129
|
+
tokens: globalThis.Array.isArray(object?.tokens)
|
|
81
130
|
? object.tokens.map((e) => token_1.Token.fromJSON(e))
|
|
82
131
|
: [],
|
|
83
|
-
frozenBalances: Array.isArray(object
|
|
132
|
+
frozenBalances: globalThis.Array.isArray(object?.frozenBalances)
|
|
84
133
|
? object.frozenBalances.map((e) => exports.Balance.fromJSON(e))
|
|
85
134
|
: [],
|
|
86
|
-
whitelistedBalances: Array.isArray(object
|
|
135
|
+
whitelistedBalances: globalThis.Array.isArray(object?.whitelistedBalances)
|
|
87
136
|
? object.whitelistedBalances.map((e) => exports.Balance.fromJSON(e))
|
|
88
137
|
: [],
|
|
138
|
+
pendingTokenUpgrades: globalThis.Array.isArray(object?.pendingTokenUpgrades)
|
|
139
|
+
? object.pendingTokenUpgrades.map((e) => exports.PendingTokenUpgrade.fromJSON(e))
|
|
140
|
+
: [],
|
|
141
|
+
dexLockedBalances: globalThis.Array.isArray(object?.dexLockedBalances)
|
|
142
|
+
? object.dexLockedBalances.map((e) => exports.Balance.fromJSON(e))
|
|
143
|
+
: [],
|
|
144
|
+
dexExpectedToReceiveBalances: globalThis.Array.isArray(object?.dexExpectedToReceiveBalances)
|
|
145
|
+
? object.dexExpectedToReceiveBalances.map((e) => exports.Balance.fromJSON(e))
|
|
146
|
+
: [],
|
|
147
|
+
dexSettings: globalThis.Array.isArray(object?.dexSettings)
|
|
148
|
+
? object.dexSettings.map((e) => exports.DEXSettingsWithDenom.fromJSON(e))
|
|
149
|
+
: [],
|
|
89
150
|
};
|
|
90
151
|
},
|
|
91
152
|
toJSON(message) {
|
|
92
153
|
const obj = {};
|
|
93
|
-
message.params !== undefined
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
154
|
+
if (message.params !== undefined) {
|
|
155
|
+
obj.params = params_1.Params.toJSON(message.params);
|
|
156
|
+
}
|
|
157
|
+
if (message.tokens?.length) {
|
|
158
|
+
obj.tokens = message.tokens.map((e) => token_1.Token.toJSON(e));
|
|
97
159
|
}
|
|
98
|
-
|
|
99
|
-
obj.
|
|
160
|
+
if (message.frozenBalances?.length) {
|
|
161
|
+
obj.frozenBalances = message.frozenBalances.map((e) => exports.Balance.toJSON(e));
|
|
100
162
|
}
|
|
101
|
-
if (message.
|
|
102
|
-
obj.
|
|
163
|
+
if (message.whitelistedBalances?.length) {
|
|
164
|
+
obj.whitelistedBalances = message.whitelistedBalances.map((e) => exports.Balance.toJSON(e));
|
|
103
165
|
}
|
|
104
|
-
|
|
105
|
-
obj.
|
|
166
|
+
if (message.pendingTokenUpgrades?.length) {
|
|
167
|
+
obj.pendingTokenUpgrades = message.pendingTokenUpgrades.map((e) => exports.PendingTokenUpgrade.toJSON(e));
|
|
106
168
|
}
|
|
107
|
-
if (message.
|
|
108
|
-
obj.
|
|
169
|
+
if (message.dexLockedBalances?.length) {
|
|
170
|
+
obj.dexLockedBalances = message.dexLockedBalances.map((e) => exports.Balance.toJSON(e));
|
|
109
171
|
}
|
|
110
|
-
|
|
111
|
-
obj.
|
|
172
|
+
if (message.dexExpectedToReceiveBalances?.length) {
|
|
173
|
+
obj.dexExpectedToReceiveBalances =
|
|
174
|
+
message.dexExpectedToReceiveBalances.map((e) => exports.Balance.toJSON(e));
|
|
175
|
+
}
|
|
176
|
+
if (message.dexSettings?.length) {
|
|
177
|
+
obj.dexSettings = message.dexSettings.map((e) => exports.DEXSettingsWithDenom.toJSON(e));
|
|
112
178
|
}
|
|
113
179
|
return obj;
|
|
114
180
|
},
|
|
115
181
|
create(base) {
|
|
116
|
-
return exports.GenesisState.fromPartial(base
|
|
182
|
+
return exports.GenesisState.fromPartial(base ?? {});
|
|
117
183
|
},
|
|
118
184
|
fromPartial(object) {
|
|
119
|
-
var _a, _b, _c;
|
|
120
185
|
const message = createBaseGenesisState();
|
|
121
186
|
message.params =
|
|
122
187
|
object.params !== undefined && object.params !== null
|
|
123
188
|
? params_1.Params.fromPartial(object.params)
|
|
124
189
|
: undefined;
|
|
125
|
-
message.tokens =
|
|
190
|
+
message.tokens = object.tokens?.map((e) => token_1.Token.fromPartial(e)) || [];
|
|
126
191
|
message.frozenBalances =
|
|
127
|
-
|
|
192
|
+
object.frozenBalances?.map((e) => exports.Balance.fromPartial(e)) || [];
|
|
128
193
|
message.whitelistedBalances =
|
|
129
|
-
|
|
194
|
+
object.whitelistedBalances?.map((e) => exports.Balance.fromPartial(e)) || [];
|
|
195
|
+
message.pendingTokenUpgrades =
|
|
196
|
+
object.pendingTokenUpgrades?.map((e) => exports.PendingTokenUpgrade.fromPartial(e)) || [];
|
|
197
|
+
message.dexLockedBalances =
|
|
198
|
+
object.dexLockedBalances?.map((e) => exports.Balance.fromPartial(e)) || [];
|
|
199
|
+
message.dexExpectedToReceiveBalances =
|
|
200
|
+
object.dexExpectedToReceiveBalances?.map((e) => exports.Balance.fromPartial(e)) ||
|
|
201
|
+
[];
|
|
202
|
+
message.dexSettings =
|
|
203
|
+
object.dexSettings?.map((e) => exports.DEXSettingsWithDenom.fromPartial(e)) || [];
|
|
130
204
|
return message;
|
|
131
205
|
},
|
|
132
206
|
};
|
|
@@ -134,7 +208,7 @@ function createBaseBalance() {
|
|
|
134
208
|
return { address: "", coins: [] };
|
|
135
209
|
}
|
|
136
210
|
exports.Balance = {
|
|
137
|
-
encode(message, writer =
|
|
211
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
138
212
|
if (message.address !== "") {
|
|
139
213
|
writer.uint32(10).string(message.address);
|
|
140
214
|
}
|
|
@@ -144,66 +218,203 @@ exports.Balance = {
|
|
|
144
218
|
return writer;
|
|
145
219
|
},
|
|
146
220
|
decode(input, length) {
|
|
147
|
-
const reader = input instanceof
|
|
221
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
148
222
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
149
223
|
const message = createBaseBalance();
|
|
150
224
|
while (reader.pos < end) {
|
|
151
225
|
const tag = reader.uint32();
|
|
152
226
|
switch (tag >>> 3) {
|
|
153
|
-
case 1:
|
|
154
|
-
if (tag
|
|
227
|
+
case 1: {
|
|
228
|
+
if (tag !== 10) {
|
|
155
229
|
break;
|
|
156
230
|
}
|
|
157
231
|
message.address = reader.string();
|
|
158
232
|
continue;
|
|
159
|
-
|
|
160
|
-
|
|
233
|
+
}
|
|
234
|
+
case 2: {
|
|
235
|
+
if (tag !== 18) {
|
|
161
236
|
break;
|
|
162
237
|
}
|
|
163
238
|
message.coins.push(coin_1.Coin.decode(reader, reader.uint32()));
|
|
164
239
|
continue;
|
|
240
|
+
}
|
|
165
241
|
}
|
|
166
|
-
if ((tag & 7)
|
|
242
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
167
243
|
break;
|
|
168
244
|
}
|
|
169
|
-
reader.
|
|
245
|
+
reader.skip(tag & 7);
|
|
170
246
|
}
|
|
171
247
|
return message;
|
|
172
248
|
},
|
|
173
249
|
fromJSON(object) {
|
|
174
250
|
return {
|
|
175
|
-
address: isSet(object.address) ? String(object.address) : "",
|
|
176
|
-
coins: Array.isArray(object
|
|
251
|
+
address: isSet(object.address) ? globalThis.String(object.address) : "",
|
|
252
|
+
coins: globalThis.Array.isArray(object?.coins)
|
|
177
253
|
? object.coins.map((e) => coin_1.Coin.fromJSON(e))
|
|
178
254
|
: [],
|
|
179
255
|
};
|
|
180
256
|
},
|
|
181
257
|
toJSON(message) {
|
|
182
258
|
const obj = {};
|
|
183
|
-
message.address !==
|
|
184
|
-
|
|
185
|
-
obj.coins = message.coins.map((e) => (e ? coin_1.Coin.toJSON(e) : undefined));
|
|
259
|
+
if (message.address !== "") {
|
|
260
|
+
obj.address = message.address;
|
|
186
261
|
}
|
|
187
|
-
|
|
188
|
-
obj.coins =
|
|
262
|
+
if (message.coins?.length) {
|
|
263
|
+
obj.coins = message.coins.map((e) => coin_1.Coin.toJSON(e));
|
|
189
264
|
}
|
|
190
265
|
return obj;
|
|
191
266
|
},
|
|
192
267
|
create(base) {
|
|
193
|
-
return exports.Balance.fromPartial(base
|
|
268
|
+
return exports.Balance.fromPartial(base ?? {});
|
|
194
269
|
},
|
|
195
270
|
fromPartial(object) {
|
|
196
|
-
var _a, _b;
|
|
197
271
|
const message = createBaseBalance();
|
|
198
|
-
message.address =
|
|
199
|
-
message.coins =
|
|
272
|
+
message.address = object.address ?? "";
|
|
273
|
+
message.coins = object.coins?.map((e) => coin_1.Coin.fromPartial(e)) || [];
|
|
200
274
|
return message;
|
|
201
275
|
},
|
|
202
276
|
};
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
minimal_1.default.configure();
|
|
277
|
+
function createBasePendingTokenUpgrade() {
|
|
278
|
+
return { denom: "", version: 0 };
|
|
206
279
|
}
|
|
280
|
+
exports.PendingTokenUpgrade = {
|
|
281
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
282
|
+
if (message.denom !== "") {
|
|
283
|
+
writer.uint32(10).string(message.denom);
|
|
284
|
+
}
|
|
285
|
+
if (message.version !== 0) {
|
|
286
|
+
writer.uint32(16).uint32(message.version);
|
|
287
|
+
}
|
|
288
|
+
return writer;
|
|
289
|
+
},
|
|
290
|
+
decode(input, length) {
|
|
291
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
292
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
293
|
+
const message = createBasePendingTokenUpgrade();
|
|
294
|
+
while (reader.pos < end) {
|
|
295
|
+
const tag = reader.uint32();
|
|
296
|
+
switch (tag >>> 3) {
|
|
297
|
+
case 1: {
|
|
298
|
+
if (tag !== 10) {
|
|
299
|
+
break;
|
|
300
|
+
}
|
|
301
|
+
message.denom = reader.string();
|
|
302
|
+
continue;
|
|
303
|
+
}
|
|
304
|
+
case 2: {
|
|
305
|
+
if (tag !== 16) {
|
|
306
|
+
break;
|
|
307
|
+
}
|
|
308
|
+
message.version = reader.uint32();
|
|
309
|
+
continue;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
313
|
+
break;
|
|
314
|
+
}
|
|
315
|
+
reader.skip(tag & 7);
|
|
316
|
+
}
|
|
317
|
+
return message;
|
|
318
|
+
},
|
|
319
|
+
fromJSON(object) {
|
|
320
|
+
return {
|
|
321
|
+
denom: isSet(object.denom) ? globalThis.String(object.denom) : "",
|
|
322
|
+
version: isSet(object.version) ? globalThis.Number(object.version) : 0,
|
|
323
|
+
};
|
|
324
|
+
},
|
|
325
|
+
toJSON(message) {
|
|
326
|
+
const obj = {};
|
|
327
|
+
if (message.denom !== "") {
|
|
328
|
+
obj.denom = message.denom;
|
|
329
|
+
}
|
|
330
|
+
if (message.version !== 0) {
|
|
331
|
+
obj.version = Math.round(message.version);
|
|
332
|
+
}
|
|
333
|
+
return obj;
|
|
334
|
+
},
|
|
335
|
+
create(base) {
|
|
336
|
+
return exports.PendingTokenUpgrade.fromPartial(base ?? {});
|
|
337
|
+
},
|
|
338
|
+
fromPartial(object) {
|
|
339
|
+
const message = createBasePendingTokenUpgrade();
|
|
340
|
+
message.denom = object.denom ?? "";
|
|
341
|
+
message.version = object.version ?? 0;
|
|
342
|
+
return message;
|
|
343
|
+
},
|
|
344
|
+
};
|
|
345
|
+
function createBaseDEXSettingsWithDenom() {
|
|
346
|
+
return { denom: "", dexSettings: undefined };
|
|
347
|
+
}
|
|
348
|
+
exports.DEXSettingsWithDenom = {
|
|
349
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
350
|
+
if (message.denom !== "") {
|
|
351
|
+
writer.uint32(10).string(message.denom);
|
|
352
|
+
}
|
|
353
|
+
if (message.dexSettings !== undefined) {
|
|
354
|
+
token_1.DEXSettings.encode(message.dexSettings, writer.uint32(18).fork()).ldelim();
|
|
355
|
+
}
|
|
356
|
+
return writer;
|
|
357
|
+
},
|
|
358
|
+
decode(input, length) {
|
|
359
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
360
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
361
|
+
const message = createBaseDEXSettingsWithDenom();
|
|
362
|
+
while (reader.pos < end) {
|
|
363
|
+
const tag = reader.uint32();
|
|
364
|
+
switch (tag >>> 3) {
|
|
365
|
+
case 1: {
|
|
366
|
+
if (tag !== 10) {
|
|
367
|
+
break;
|
|
368
|
+
}
|
|
369
|
+
message.denom = reader.string();
|
|
370
|
+
continue;
|
|
371
|
+
}
|
|
372
|
+
case 2: {
|
|
373
|
+
if (tag !== 18) {
|
|
374
|
+
break;
|
|
375
|
+
}
|
|
376
|
+
message.dexSettings = token_1.DEXSettings.decode(reader, reader.uint32());
|
|
377
|
+
continue;
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
381
|
+
break;
|
|
382
|
+
}
|
|
383
|
+
reader.skip(tag & 7);
|
|
384
|
+
}
|
|
385
|
+
return message;
|
|
386
|
+
},
|
|
387
|
+
fromJSON(object) {
|
|
388
|
+
return {
|
|
389
|
+
denom: isSet(object.denom) ? globalThis.String(object.denom) : "",
|
|
390
|
+
dexSettings: isSet(object.dexSettings)
|
|
391
|
+
? token_1.DEXSettings.fromJSON(object.dexSettings)
|
|
392
|
+
: undefined,
|
|
393
|
+
};
|
|
394
|
+
},
|
|
395
|
+
toJSON(message) {
|
|
396
|
+
const obj = {};
|
|
397
|
+
if (message.denom !== "") {
|
|
398
|
+
obj.denom = message.denom;
|
|
399
|
+
}
|
|
400
|
+
if (message.dexSettings !== undefined) {
|
|
401
|
+
obj.dexSettings = token_1.DEXSettings.toJSON(message.dexSettings);
|
|
402
|
+
}
|
|
403
|
+
return obj;
|
|
404
|
+
},
|
|
405
|
+
create(base) {
|
|
406
|
+
return exports.DEXSettingsWithDenom.fromPartial(base ?? {});
|
|
407
|
+
},
|
|
408
|
+
fromPartial(object) {
|
|
409
|
+
const message = createBaseDEXSettingsWithDenom();
|
|
410
|
+
message.denom = object.denom ?? "";
|
|
411
|
+
message.dexSettings =
|
|
412
|
+
object.dexSettings !== undefined && object.dexSettings !== null
|
|
413
|
+
? token_1.DEXSettings.fromPartial(object.dexSettings)
|
|
414
|
+
: undefined;
|
|
415
|
+
return message;
|
|
416
|
+
},
|
|
417
|
+
};
|
|
207
418
|
function isSet(value) {
|
|
208
419
|
return value !== null && value !== undefined;
|
|
209
420
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "cosmjs-types/binary";
|
|
2
2
|
import { Coin } from "cosmjs-types/cosmos/base/v1beta1/coin";
|
|
3
|
-
import { Duration } from "
|
|
3
|
+
import { Duration } from "cosmjs-types/google/protobuf/duration";
|
|
4
4
|
export declare const protobufPackage = "coreum.asset.ft.v1";
|
|
5
5
|
/** Params store gov manageable parameters. */
|
|
6
6
|
export interface Params {
|
|
@@ -11,16 +11,9 @@ export interface Params {
|
|
|
11
11
|
/** token_upgrade_grace_period the period after which the token upgrade is executed effectively. */
|
|
12
12
|
tokenUpgradeGracePeriod: Duration | undefined;
|
|
13
13
|
}
|
|
14
|
-
export declare const Params:
|
|
15
|
-
encode(message: Params, writer?: _m0.Writer): _m0.Writer;
|
|
16
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): Params;
|
|
17
|
-
fromJSON(object: any): Params;
|
|
18
|
-
toJSON(message: Params): unknown;
|
|
19
|
-
create<I extends Exact<DeepPartial<Params>, I>>(base?: I): Params;
|
|
20
|
-
fromPartial<I extends Exact<DeepPartial<Params>, I>>(object: I): Params;
|
|
21
|
-
};
|
|
14
|
+
export declare const Params: MessageFns<Params>;
|
|
22
15
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
23
|
-
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
16
|
+
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 {} ? {
|
|
24
17
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
25
18
|
} : Partial<T>;
|
|
26
19
|
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
@@ -29,4 +22,12 @@ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
|
29
22
|
} & {
|
|
30
23
|
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
31
24
|
};
|
|
25
|
+
export interface MessageFns<T> {
|
|
26
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
27
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
28
|
+
fromJSON(object: any): T;
|
|
29
|
+
toJSON(message: T): unknown;
|
|
30
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
31
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
32
|
+
}
|
|
32
33
|
export {};
|