@bze/bzejs 1.8.3 → 1.8.4

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.
Files changed (48) hide show
  1. package/bze/bundle.d.ts +67 -53
  2. package/bze/bundle.js +70 -70
  3. package/bze/lcd.d.ts +3 -0
  4. package/bze/lcd.js +5 -0
  5. package/bze/rpc.query.d.ts +11 -0
  6. package/bze/rpc.query.js +3 -0
  7. package/cosmos/base/tendermint/v1beta1/query.d.ts +924 -0
  8. package/cosmos/base/tendermint/v1beta1/query.js +1716 -0
  9. package/cosmos/base/tendermint/v1beta1/query.lcd.d.ts +15 -0
  10. package/cosmos/base/tendermint/v1beta1/query.lcd.js +87 -0
  11. package/cosmos/base/tendermint/v1beta1/query.rpc.Service.d.ts +46 -0
  12. package/cosmos/base/tendermint/v1beta1/query.rpc.Service.js +85 -0
  13. package/cosmos/base/tendermint/v1beta1/types.d.ts +185 -0
  14. package/cosmos/base/tendermint/v1beta1/types.js +340 -0
  15. package/cosmos/bundle.d.ts +6360 -6054
  16. package/cosmos/bundle.js +366 -353
  17. package/cosmos/lcd.d.ts +3 -0
  18. package/cosmos/lcd.js +5 -0
  19. package/cosmos/rpc.query.d.ts +11 -0
  20. package/cosmos/rpc.query.js +3 -0
  21. package/esm/bze/bundle.js +70 -70
  22. package/esm/bze/lcd.js +5 -0
  23. package/esm/bze/rpc.query.js +3 -0
  24. package/esm/cosmos/base/tendermint/v1beta1/query.js +1713 -0
  25. package/esm/cosmos/base/tendermint/v1beta1/query.lcd.js +83 -0
  26. package/esm/cosmos/base/tendermint/v1beta1/query.rpc.Service.js +80 -0
  27. package/esm/cosmos/base/tendermint/v1beta1/types.js +337 -0
  28. package/esm/cosmos/bundle.js +366 -353
  29. package/esm/cosmos/lcd.js +5 -0
  30. package/esm/cosmos/rpc.query.js +3 -0
  31. package/esm/gogoproto/bundle.js +2 -2
  32. package/esm/google/bundle.js +7 -7
  33. package/esm/ibc/bundle.js +189 -189
  34. package/esm/ibc/lcd.js +5 -0
  35. package/esm/ibc/rpc.query.js +3 -0
  36. package/esm/tendermint/bundle.js +18 -18
  37. package/gogoproto/bundle.js +2 -2
  38. package/google/bundle.d.ts +438 -438
  39. package/google/bundle.js +7 -7
  40. package/ibc/bundle.d.ts +3670 -3656
  41. package/ibc/bundle.js +189 -189
  42. package/ibc/lcd.d.ts +3 -0
  43. package/ibc/lcd.js +5 -0
  44. package/ibc/rpc.query.d.ts +11 -0
  45. package/ibc/rpc.query.js +3 -0
  46. package/package.json +1 -1
  47. package/tendermint/bundle.d.ts +852 -852
  48. package/tendermint/bundle.js +18 -18
@@ -0,0 +1,15 @@
1
+ import { LCDClient } from "@cosmology/lcd";
2
+ import { GetNodeInfoRequest, GetNodeInfoResponseSDKType, GetSyncingRequest, GetSyncingResponseSDKType, GetLatestBlockRequest, GetLatestBlockResponseSDKType, GetBlockByHeightRequest, GetBlockByHeightResponseSDKType, GetLatestValidatorSetRequest, GetLatestValidatorSetResponseSDKType, GetValidatorSetByHeightRequest, GetValidatorSetByHeightResponseSDKType, ABCIQueryRequest, ABCIQueryResponseSDKType } from "./query";
3
+ export declare class LCDQueryClient {
4
+ req: LCDClient;
5
+ constructor({ requestClient }: {
6
+ requestClient: LCDClient;
7
+ });
8
+ getNodeInfo(_params?: GetNodeInfoRequest): Promise<GetNodeInfoResponseSDKType>;
9
+ getSyncing(_params?: GetSyncingRequest): Promise<GetSyncingResponseSDKType>;
10
+ getLatestBlock(_params?: GetLatestBlockRequest): Promise<GetLatestBlockResponseSDKType>;
11
+ getBlockByHeight(params: GetBlockByHeightRequest): Promise<GetBlockByHeightResponseSDKType>;
12
+ getLatestValidatorSet(params?: GetLatestValidatorSetRequest): Promise<GetLatestValidatorSetResponseSDKType>;
13
+ getValidatorSetByHeight(params: GetValidatorSetByHeightRequest): Promise<GetValidatorSetByHeightResponseSDKType>;
14
+ aBCIQuery(params: ABCIQueryRequest): Promise<ABCIQueryResponseSDKType>;
15
+ }
@@ -0,0 +1,87 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LCDQueryClient = void 0;
4
+ //@ts-nocheck
5
+ const helpers_1 = require("../../../../helpers");
6
+ class LCDQueryClient {
7
+ req;
8
+ constructor({ requestClient }) {
9
+ this.req = requestClient;
10
+ this.getNodeInfo = this.getNodeInfo.bind(this);
11
+ this.getSyncing = this.getSyncing.bind(this);
12
+ this.getLatestBlock = this.getLatestBlock.bind(this);
13
+ this.getBlockByHeight = this.getBlockByHeight.bind(this);
14
+ this.getLatestValidatorSet = this.getLatestValidatorSet.bind(this);
15
+ this.getValidatorSetByHeight = this.getValidatorSetByHeight.bind(this);
16
+ this.aBCIQuery = this.aBCIQuery.bind(this);
17
+ }
18
+ /* GetNodeInfo queries the current node info. */
19
+ async getNodeInfo(_params = {}) {
20
+ const endpoint = `cosmos/base/tendermint/v1beta1/node_info`;
21
+ return await this.req.get(endpoint);
22
+ }
23
+ /* GetSyncing queries node syncing. */
24
+ async getSyncing(_params = {}) {
25
+ const endpoint = `cosmos/base/tendermint/v1beta1/syncing`;
26
+ return await this.req.get(endpoint);
27
+ }
28
+ /* GetLatestBlock returns the latest block. */
29
+ async getLatestBlock(_params = {}) {
30
+ const endpoint = `cosmos/base/tendermint/v1beta1/blocks/latest`;
31
+ return await this.req.get(endpoint);
32
+ }
33
+ /* GetBlockByHeight queries block for given height. */
34
+ async getBlockByHeight(params) {
35
+ const endpoint = `cosmos/base/tendermint/v1beta1/blocks/${params.height}`;
36
+ return await this.req.get(endpoint);
37
+ }
38
+ /* GetLatestValidatorSet queries latest validator-set. */
39
+ async getLatestValidatorSet(params = {
40
+ pagination: undefined
41
+ }) {
42
+ const options = {
43
+ params: {}
44
+ };
45
+ if (typeof params?.pagination !== "undefined") {
46
+ (0, helpers_1.setPaginationParams)(options, params.pagination);
47
+ }
48
+ const endpoint = `cosmos/base/tendermint/v1beta1/validatorsets/latest`;
49
+ return await this.req.get(endpoint, options);
50
+ }
51
+ /* GetValidatorSetByHeight queries validator-set at a given height. */
52
+ async getValidatorSetByHeight(params) {
53
+ const options = {
54
+ params: {}
55
+ };
56
+ if (typeof params?.pagination !== "undefined") {
57
+ (0, helpers_1.setPaginationParams)(options, params.pagination);
58
+ }
59
+ const endpoint = `cosmos/base/tendermint/v1beta1/validatorsets/${params.height}`;
60
+ return await this.req.get(endpoint, options);
61
+ }
62
+ /* ABCIQuery defines a query handler that supports ABCI queries directly to the
63
+ application, bypassing Tendermint completely. The ABCI query must contain
64
+ a valid and supported path, including app, custom, p2p, and store.
65
+
66
+ Since: cosmos-sdk 0.46 */
67
+ async aBCIQuery(params) {
68
+ const options = {
69
+ params: {}
70
+ };
71
+ if (typeof params?.data !== "undefined") {
72
+ options.params.data = params.data;
73
+ }
74
+ if (typeof params?.path !== "undefined") {
75
+ options.params.path = params.path;
76
+ }
77
+ if (typeof params?.height !== "undefined") {
78
+ options.params.height = params.height;
79
+ }
80
+ if (typeof params?.prove !== "undefined") {
81
+ options.params.prove = params.prove;
82
+ }
83
+ const endpoint = `cosmos/base/tendermint/v1beta1/abci_query`;
84
+ return await this.req.get(endpoint, options);
85
+ }
86
+ }
87
+ exports.LCDQueryClient = LCDQueryClient;
@@ -0,0 +1,46 @@
1
+ import { Rpc } from "../../../../helpers";
2
+ import { QueryClient } from "@cosmjs/stargate";
3
+ import { GetNodeInfoRequest, GetNodeInfoResponse, GetSyncingRequest, GetSyncingResponse, GetLatestBlockRequest, GetLatestBlockResponse, GetBlockByHeightRequest, GetBlockByHeightResponse, GetLatestValidatorSetRequest, GetLatestValidatorSetResponse, GetValidatorSetByHeightRequest, GetValidatorSetByHeightResponse, ABCIQueryRequest, ABCIQueryResponse } from "./query";
4
+ /** Service defines the gRPC querier service for tendermint queries. */
5
+ export interface Service {
6
+ /** GetNodeInfo queries the current node info. */
7
+ getNodeInfo(request?: GetNodeInfoRequest): Promise<GetNodeInfoResponse>;
8
+ /** GetSyncing queries node syncing. */
9
+ getSyncing(request?: GetSyncingRequest): Promise<GetSyncingResponse>;
10
+ /** GetLatestBlock returns the latest block. */
11
+ getLatestBlock(request?: GetLatestBlockRequest): Promise<GetLatestBlockResponse>;
12
+ /** GetBlockByHeight queries block for given height. */
13
+ getBlockByHeight(request: GetBlockByHeightRequest): Promise<GetBlockByHeightResponse>;
14
+ /** GetLatestValidatorSet queries latest validator-set. */
15
+ getLatestValidatorSet(request?: GetLatestValidatorSetRequest): Promise<GetLatestValidatorSetResponse>;
16
+ /** GetValidatorSetByHeight queries validator-set at a given height. */
17
+ getValidatorSetByHeight(request: GetValidatorSetByHeightRequest): Promise<GetValidatorSetByHeightResponse>;
18
+ /**
19
+ * ABCIQuery defines a query handler that supports ABCI queries directly to the
20
+ * application, bypassing Tendermint completely. The ABCI query must contain
21
+ * a valid and supported path, including app, custom, p2p, and store.
22
+ *
23
+ * Since: cosmos-sdk 0.46
24
+ */
25
+ aBCIQuery(request: ABCIQueryRequest): Promise<ABCIQueryResponse>;
26
+ }
27
+ export declare class ServiceClientImpl implements Service {
28
+ private readonly rpc;
29
+ constructor(rpc: Rpc);
30
+ getNodeInfo(request?: GetNodeInfoRequest): Promise<GetNodeInfoResponse>;
31
+ getSyncing(request?: GetSyncingRequest): Promise<GetSyncingResponse>;
32
+ getLatestBlock(request?: GetLatestBlockRequest): Promise<GetLatestBlockResponse>;
33
+ getBlockByHeight(request: GetBlockByHeightRequest): Promise<GetBlockByHeightResponse>;
34
+ getLatestValidatorSet(request?: GetLatestValidatorSetRequest): Promise<GetLatestValidatorSetResponse>;
35
+ getValidatorSetByHeight(request: GetValidatorSetByHeightRequest): Promise<GetValidatorSetByHeightResponse>;
36
+ aBCIQuery(request: ABCIQueryRequest): Promise<ABCIQueryResponse>;
37
+ }
38
+ export declare const createRpcQueryExtension: (base: QueryClient) => {
39
+ getNodeInfo(request?: GetNodeInfoRequest): Promise<GetNodeInfoResponse>;
40
+ getSyncing(request?: GetSyncingRequest): Promise<GetSyncingResponse>;
41
+ getLatestBlock(request?: GetLatestBlockRequest): Promise<GetLatestBlockResponse>;
42
+ getBlockByHeight(request: GetBlockByHeightRequest): Promise<GetBlockByHeightResponse>;
43
+ getLatestValidatorSet(request?: GetLatestValidatorSetRequest): Promise<GetLatestValidatorSetResponse>;
44
+ getValidatorSetByHeight(request: GetValidatorSetByHeightRequest): Promise<GetValidatorSetByHeightResponse>;
45
+ aBCIQuery(request: ABCIQueryRequest): Promise<ABCIQueryResponse>;
46
+ };
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createRpcQueryExtension = exports.ServiceClientImpl = void 0;
4
+ const binary_1 = require("../../../../binary");
5
+ const stargate_1 = require("@cosmjs/stargate");
6
+ const query_1 = require("./query");
7
+ class ServiceClientImpl {
8
+ rpc;
9
+ constructor(rpc) {
10
+ this.rpc = rpc;
11
+ this.getNodeInfo = this.getNodeInfo.bind(this);
12
+ this.getSyncing = this.getSyncing.bind(this);
13
+ this.getLatestBlock = this.getLatestBlock.bind(this);
14
+ this.getBlockByHeight = this.getBlockByHeight.bind(this);
15
+ this.getLatestValidatorSet = this.getLatestValidatorSet.bind(this);
16
+ this.getValidatorSetByHeight = this.getValidatorSetByHeight.bind(this);
17
+ this.aBCIQuery = this.aBCIQuery.bind(this);
18
+ }
19
+ getNodeInfo(request = {}) {
20
+ const data = query_1.GetNodeInfoRequest.encode(request).finish();
21
+ const promise = this.rpc.request("cosmos.base.tendermint.v1beta1.Service", "GetNodeInfo", data);
22
+ return promise.then(data => query_1.GetNodeInfoResponse.decode(new binary_1.BinaryReader(data)));
23
+ }
24
+ getSyncing(request = {}) {
25
+ const data = query_1.GetSyncingRequest.encode(request).finish();
26
+ const promise = this.rpc.request("cosmos.base.tendermint.v1beta1.Service", "GetSyncing", data);
27
+ return promise.then(data => query_1.GetSyncingResponse.decode(new binary_1.BinaryReader(data)));
28
+ }
29
+ getLatestBlock(request = {}) {
30
+ const data = query_1.GetLatestBlockRequest.encode(request).finish();
31
+ const promise = this.rpc.request("cosmos.base.tendermint.v1beta1.Service", "GetLatestBlock", data);
32
+ return promise.then(data => query_1.GetLatestBlockResponse.decode(new binary_1.BinaryReader(data)));
33
+ }
34
+ getBlockByHeight(request) {
35
+ const data = query_1.GetBlockByHeightRequest.encode(request).finish();
36
+ const promise = this.rpc.request("cosmos.base.tendermint.v1beta1.Service", "GetBlockByHeight", data);
37
+ return promise.then(data => query_1.GetBlockByHeightResponse.decode(new binary_1.BinaryReader(data)));
38
+ }
39
+ getLatestValidatorSet(request = {
40
+ pagination: undefined
41
+ }) {
42
+ const data = query_1.GetLatestValidatorSetRequest.encode(request).finish();
43
+ const promise = this.rpc.request("cosmos.base.tendermint.v1beta1.Service", "GetLatestValidatorSet", data);
44
+ return promise.then(data => query_1.GetLatestValidatorSetResponse.decode(new binary_1.BinaryReader(data)));
45
+ }
46
+ getValidatorSetByHeight(request) {
47
+ const data = query_1.GetValidatorSetByHeightRequest.encode(request).finish();
48
+ const promise = this.rpc.request("cosmos.base.tendermint.v1beta1.Service", "GetValidatorSetByHeight", data);
49
+ return promise.then(data => query_1.GetValidatorSetByHeightResponse.decode(new binary_1.BinaryReader(data)));
50
+ }
51
+ aBCIQuery(request) {
52
+ const data = query_1.ABCIQueryRequest.encode(request).finish();
53
+ const promise = this.rpc.request("cosmos.base.tendermint.v1beta1.Service", "ABCIQuery", data);
54
+ return promise.then(data => query_1.ABCIQueryResponse.decode(new binary_1.BinaryReader(data)));
55
+ }
56
+ }
57
+ exports.ServiceClientImpl = ServiceClientImpl;
58
+ const createRpcQueryExtension = (base) => {
59
+ const rpc = (0, stargate_1.createProtobufRpcClient)(base);
60
+ const queryService = new ServiceClientImpl(rpc);
61
+ return {
62
+ getNodeInfo(request) {
63
+ return queryService.getNodeInfo(request);
64
+ },
65
+ getSyncing(request) {
66
+ return queryService.getSyncing(request);
67
+ },
68
+ getLatestBlock(request) {
69
+ return queryService.getLatestBlock(request);
70
+ },
71
+ getBlockByHeight(request) {
72
+ return queryService.getBlockByHeight(request);
73
+ },
74
+ getLatestValidatorSet(request) {
75
+ return queryService.getLatestValidatorSet(request);
76
+ },
77
+ getValidatorSetByHeight(request) {
78
+ return queryService.getValidatorSetByHeight(request);
79
+ },
80
+ aBCIQuery(request) {
81
+ return queryService.aBCIQuery(request);
82
+ }
83
+ };
84
+ };
85
+ exports.createRpcQueryExtension = createRpcQueryExtension;
@@ -0,0 +1,185 @@
1
+ import { Data, DataAmino, DataSDKType, Commit, CommitAmino, CommitSDKType, BlockID, BlockIDAmino, BlockIDSDKType } from "../../../../tendermint/types/types";
2
+ import { EvidenceList, EvidenceListAmino, EvidenceListSDKType } from "../../../../tendermint/types/evidence";
3
+ import { Consensus, ConsensusAmino, ConsensusSDKType } from "../../../../tendermint/version/types";
4
+ import { BinaryReader, BinaryWriter } from "../../../../binary";
5
+ /**
6
+ * Block is tendermint type Block, with the Header proposer address
7
+ * field converted to bech32 string.
8
+ */
9
+ export interface Block {
10
+ header: Header;
11
+ data: Data;
12
+ evidence: EvidenceList;
13
+ lastCommit?: Commit;
14
+ }
15
+ export interface BlockProtoMsg {
16
+ typeUrl: "/cosmos.base.tendermint.v1beta1.Block";
17
+ value: Uint8Array;
18
+ }
19
+ /**
20
+ * Block is tendermint type Block, with the Header proposer address
21
+ * field converted to bech32 string.
22
+ * @name BlockAmino
23
+ * @package cosmos.base.tendermint.v1beta1
24
+ * @see proto type: cosmos.base.tendermint.v1beta1.Block
25
+ */
26
+ export interface BlockAmino {
27
+ header: HeaderAmino;
28
+ data: DataAmino;
29
+ evidence: EvidenceListAmino;
30
+ last_commit?: CommitAmino;
31
+ }
32
+ export interface BlockAminoMsg {
33
+ type: "cosmos-sdk/Block";
34
+ value: BlockAmino;
35
+ }
36
+ /**
37
+ * Block is tendermint type Block, with the Header proposer address
38
+ * field converted to bech32 string.
39
+ */
40
+ export interface BlockSDKType {
41
+ header: HeaderSDKType;
42
+ data: DataSDKType;
43
+ evidence: EvidenceListSDKType;
44
+ last_commit?: CommitSDKType;
45
+ }
46
+ /** Header defines the structure of a Tendermint block header. */
47
+ export interface Header {
48
+ /** basic block info */
49
+ version: Consensus;
50
+ chainId: string;
51
+ height: bigint;
52
+ time: Date;
53
+ /** prev block info */
54
+ lastBlockId: BlockID;
55
+ /** hashes of block data */
56
+ lastCommitHash: Uint8Array;
57
+ /** transactions */
58
+ dataHash: Uint8Array;
59
+ /** hashes from the app output from the prev block */
60
+ validatorsHash: Uint8Array;
61
+ /** validators for the next block */
62
+ nextValidatorsHash: Uint8Array;
63
+ /** consensus params for current block */
64
+ consensusHash: Uint8Array;
65
+ /** state after txs from the previous block */
66
+ appHash: Uint8Array;
67
+ /** root hash of all results from the txs from the previous block */
68
+ lastResultsHash: Uint8Array;
69
+ /** consensus info */
70
+ evidenceHash: Uint8Array;
71
+ /**
72
+ * proposer_address is the original block proposer address, formatted as a Bech32 string.
73
+ * In Tendermint, this type is `bytes`, but in the SDK, we convert it to a Bech32 string
74
+ * for better UX.
75
+ */
76
+ proposerAddress: string;
77
+ }
78
+ export interface HeaderProtoMsg {
79
+ typeUrl: "/cosmos.base.tendermint.v1beta1.Header";
80
+ value: Uint8Array;
81
+ }
82
+ /**
83
+ * Header defines the structure of a Tendermint block header.
84
+ * @name HeaderAmino
85
+ * @package cosmos.base.tendermint.v1beta1
86
+ * @see proto type: cosmos.base.tendermint.v1beta1.Header
87
+ */
88
+ export interface HeaderAmino {
89
+ /**
90
+ * basic block info
91
+ */
92
+ version: ConsensusAmino;
93
+ chain_id?: string;
94
+ height?: string;
95
+ time: string;
96
+ /**
97
+ * prev block info
98
+ */
99
+ last_block_id: BlockIDAmino;
100
+ /**
101
+ * hashes of block data
102
+ */
103
+ last_commit_hash?: string;
104
+ /**
105
+ * transactions
106
+ */
107
+ data_hash?: string;
108
+ /**
109
+ * hashes from the app output from the prev block
110
+ */
111
+ validators_hash?: string;
112
+ /**
113
+ * validators for the next block
114
+ */
115
+ next_validators_hash?: string;
116
+ /**
117
+ * consensus params for current block
118
+ */
119
+ consensus_hash?: string;
120
+ /**
121
+ * state after txs from the previous block
122
+ */
123
+ app_hash?: string;
124
+ /**
125
+ * root hash of all results from the txs from the previous block
126
+ */
127
+ last_results_hash?: string;
128
+ /**
129
+ * consensus info
130
+ */
131
+ evidence_hash?: string;
132
+ /**
133
+ * proposer_address is the original block proposer address, formatted as a Bech32 string.
134
+ * In Tendermint, this type is `bytes`, but in the SDK, we convert it to a Bech32 string
135
+ * for better UX.
136
+ */
137
+ proposer_address?: string;
138
+ }
139
+ export interface HeaderAminoMsg {
140
+ type: "cosmos-sdk/Header";
141
+ value: HeaderAmino;
142
+ }
143
+ /** Header defines the structure of a Tendermint block header. */
144
+ export interface HeaderSDKType {
145
+ version: ConsensusSDKType;
146
+ chain_id: string;
147
+ height: bigint;
148
+ time: Date;
149
+ last_block_id: BlockIDSDKType;
150
+ last_commit_hash: Uint8Array;
151
+ data_hash: Uint8Array;
152
+ validators_hash: Uint8Array;
153
+ next_validators_hash: Uint8Array;
154
+ consensus_hash: Uint8Array;
155
+ app_hash: Uint8Array;
156
+ last_results_hash: Uint8Array;
157
+ evidence_hash: Uint8Array;
158
+ proposer_address: string;
159
+ }
160
+ export declare const Block: {
161
+ typeUrl: string;
162
+ encode(message: Block, writer?: BinaryWriter): BinaryWriter;
163
+ decode(input: BinaryReader | Uint8Array, length?: number): Block;
164
+ fromPartial(object: Partial<Block>): Block;
165
+ fromAmino(object: BlockAmino): Block;
166
+ toAmino(message: Block): BlockAmino;
167
+ fromAminoMsg(object: BlockAminoMsg): Block;
168
+ toAminoMsg(message: Block): BlockAminoMsg;
169
+ fromProtoMsg(message: BlockProtoMsg): Block;
170
+ toProto(message: Block): Uint8Array;
171
+ toProtoMsg(message: Block): BlockProtoMsg;
172
+ };
173
+ export declare const Header: {
174
+ typeUrl: string;
175
+ encode(message: Header, writer?: BinaryWriter): BinaryWriter;
176
+ decode(input: BinaryReader | Uint8Array, length?: number): Header;
177
+ fromPartial(object: Partial<Header>): Header;
178
+ fromAmino(object: HeaderAmino): Header;
179
+ toAmino(message: Header): HeaderAmino;
180
+ fromAminoMsg(object: HeaderAminoMsg): Header;
181
+ toAminoMsg(message: Header): HeaderAminoMsg;
182
+ fromProtoMsg(message: HeaderProtoMsg): Header;
183
+ toProto(message: Header): Uint8Array;
184
+ toProtoMsg(message: Header): HeaderProtoMsg;
185
+ };