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
|
@@ -3,18 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
exports.ABCIApplicationClientImpl = exports.Snapshot = exports.Misbehavior = void 0;
|
|
8
|
-
exports.checkTxTypeFromJSON = checkTxTypeFromJSON;
|
|
9
|
-
exports.checkTxTypeToJSON = checkTxTypeToJSON;
|
|
10
|
-
exports.misbehaviorTypeFromJSON = misbehaviorTypeFromJSON;
|
|
11
|
-
exports.misbehaviorTypeToJSON = misbehaviorTypeToJSON;
|
|
12
|
-
exports.responseOfferSnapshot_ResultFromJSON = responseOfferSnapshot_ResultFromJSON;
|
|
13
|
-
exports.responseOfferSnapshot_ResultToJSON = responseOfferSnapshot_ResultToJSON;
|
|
14
|
-
exports.responseApplySnapshotChunk_ResultFromJSON = responseApplySnapshotChunk_ResultFromJSON;
|
|
15
|
-
exports.responseApplySnapshotChunk_ResultToJSON = responseApplySnapshotChunk_ResultToJSON;
|
|
16
|
-
exports.responseProcessProposal_ProposalStatusFromJSON = responseProcessProposal_ProposalStatusFromJSON;
|
|
17
|
-
exports.responseProcessProposal_ProposalStatusToJSON = responseProcessProposal_ProposalStatusToJSON;
|
|
6
|
+
exports.ResponsePrepareProposal = exports.ResponseApplySnapshotChunk = exports.ResponseLoadSnapshotChunk = exports.ResponseOfferSnapshot = exports.ResponseListSnapshots = exports.ResponseCommit = exports.ResponseEndBlock = exports.ResponseDeliverTx = exports.ResponseCheckTx = exports.ResponseBeginBlock = exports.ResponseQuery = exports.ResponseInitChain = exports.ResponseInfo = exports.ResponseFlush = exports.ResponseEcho = exports.ResponseException = exports.Response = exports.RequestProcessProposal = exports.RequestPrepareProposal = exports.RequestApplySnapshotChunk = exports.RequestLoadSnapshotChunk = exports.RequestOfferSnapshot = exports.RequestListSnapshots = exports.RequestCommit = exports.RequestEndBlock = exports.RequestDeliverTx = exports.RequestCheckTx = exports.RequestBeginBlock = exports.RequestQuery = exports.RequestInitChain = exports.RequestInfo = exports.RequestFlush = exports.RequestEcho = exports.Request = exports.responseProcessProposal_ProposalStatusToJSON = exports.responseProcessProposal_ProposalStatusFromJSON = exports.ResponseProcessProposal_ProposalStatus = exports.responseApplySnapshotChunk_ResultToJSON = exports.responseApplySnapshotChunk_ResultFromJSON = exports.ResponseApplySnapshotChunk_Result = exports.responseOfferSnapshot_ResultToJSON = exports.responseOfferSnapshot_ResultFromJSON = exports.ResponseOfferSnapshot_Result = exports.misbehaviorTypeToJSON = exports.misbehaviorTypeFromJSON = exports.MisbehaviorType = exports.checkTxTypeToJSON = exports.checkTxTypeFromJSON = exports.CheckTxType = exports.protobufPackage = void 0;
|
|
7
|
+
exports.ABCIApplicationClientImpl = exports.Snapshot = exports.Misbehavior = exports.ExtendedVoteInfo = exports.VoteInfo = exports.ValidatorUpdate = exports.Validator = exports.TxResult = exports.EventAttribute = exports.Event = exports.ExtendedCommitInfo = exports.CommitInfo = exports.ResponseProcessProposal = void 0;
|
|
18
8
|
/* eslint-disable */
|
|
19
9
|
const long_1 = __importDefault(require("long"));
|
|
20
10
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
@@ -44,6 +34,7 @@ function checkTxTypeFromJSON(object) {
|
|
|
44
34
|
return CheckTxType.UNRECOGNIZED;
|
|
45
35
|
}
|
|
46
36
|
}
|
|
37
|
+
exports.checkTxTypeFromJSON = checkTxTypeFromJSON;
|
|
47
38
|
function checkTxTypeToJSON(object) {
|
|
48
39
|
switch (object) {
|
|
49
40
|
case CheckTxType.NEW:
|
|
@@ -55,6 +46,7 @@ function checkTxTypeToJSON(object) {
|
|
|
55
46
|
return "UNRECOGNIZED";
|
|
56
47
|
}
|
|
57
48
|
}
|
|
49
|
+
exports.checkTxTypeToJSON = checkTxTypeToJSON;
|
|
58
50
|
var MisbehaviorType;
|
|
59
51
|
(function (MisbehaviorType) {
|
|
60
52
|
MisbehaviorType[MisbehaviorType["UNKNOWN"] = 0] = "UNKNOWN";
|
|
@@ -79,6 +71,7 @@ function misbehaviorTypeFromJSON(object) {
|
|
|
79
71
|
return MisbehaviorType.UNRECOGNIZED;
|
|
80
72
|
}
|
|
81
73
|
}
|
|
74
|
+
exports.misbehaviorTypeFromJSON = misbehaviorTypeFromJSON;
|
|
82
75
|
function misbehaviorTypeToJSON(object) {
|
|
83
76
|
switch (object) {
|
|
84
77
|
case MisbehaviorType.UNKNOWN:
|
|
@@ -92,6 +85,7 @@ function misbehaviorTypeToJSON(object) {
|
|
|
92
85
|
return "UNRECOGNIZED";
|
|
93
86
|
}
|
|
94
87
|
}
|
|
88
|
+
exports.misbehaviorTypeToJSON = misbehaviorTypeToJSON;
|
|
95
89
|
var ResponseOfferSnapshot_Result;
|
|
96
90
|
(function (ResponseOfferSnapshot_Result) {
|
|
97
91
|
/** UNKNOWN - Unknown result, abort all snapshot restoration */
|
|
@@ -134,6 +128,7 @@ function responseOfferSnapshot_ResultFromJSON(object) {
|
|
|
134
128
|
return ResponseOfferSnapshot_Result.UNRECOGNIZED;
|
|
135
129
|
}
|
|
136
130
|
}
|
|
131
|
+
exports.responseOfferSnapshot_ResultFromJSON = responseOfferSnapshot_ResultFromJSON;
|
|
137
132
|
function responseOfferSnapshot_ResultToJSON(object) {
|
|
138
133
|
switch (object) {
|
|
139
134
|
case ResponseOfferSnapshot_Result.UNKNOWN:
|
|
@@ -153,6 +148,7 @@ function responseOfferSnapshot_ResultToJSON(object) {
|
|
|
153
148
|
return "UNRECOGNIZED";
|
|
154
149
|
}
|
|
155
150
|
}
|
|
151
|
+
exports.responseOfferSnapshot_ResultToJSON = responseOfferSnapshot_ResultToJSON;
|
|
156
152
|
var ResponseApplySnapshotChunk_Result;
|
|
157
153
|
(function (ResponseApplySnapshotChunk_Result) {
|
|
158
154
|
/** UNKNOWN - Unknown result, abort all snapshot restoration */
|
|
@@ -195,6 +191,7 @@ function responseApplySnapshotChunk_ResultFromJSON(object) {
|
|
|
195
191
|
return ResponseApplySnapshotChunk_Result.UNRECOGNIZED;
|
|
196
192
|
}
|
|
197
193
|
}
|
|
194
|
+
exports.responseApplySnapshotChunk_ResultFromJSON = responseApplySnapshotChunk_ResultFromJSON;
|
|
198
195
|
function responseApplySnapshotChunk_ResultToJSON(object) {
|
|
199
196
|
switch (object) {
|
|
200
197
|
case ResponseApplySnapshotChunk_Result.UNKNOWN:
|
|
@@ -214,6 +211,7 @@ function responseApplySnapshotChunk_ResultToJSON(object) {
|
|
|
214
211
|
return "UNRECOGNIZED";
|
|
215
212
|
}
|
|
216
213
|
}
|
|
214
|
+
exports.responseApplySnapshotChunk_ResultToJSON = responseApplySnapshotChunk_ResultToJSON;
|
|
217
215
|
var ResponseProcessProposal_ProposalStatus;
|
|
218
216
|
(function (ResponseProcessProposal_ProposalStatus) {
|
|
219
217
|
ResponseProcessProposal_ProposalStatus[ResponseProcessProposal_ProposalStatus["UNKNOWN"] = 0] = "UNKNOWN";
|
|
@@ -238,6 +236,7 @@ function responseProcessProposal_ProposalStatusFromJSON(object) {
|
|
|
238
236
|
return ResponseProcessProposal_ProposalStatus.UNRECOGNIZED;
|
|
239
237
|
}
|
|
240
238
|
}
|
|
239
|
+
exports.responseProcessProposal_ProposalStatusFromJSON = responseProcessProposal_ProposalStatusFromJSON;
|
|
241
240
|
function responseProcessProposal_ProposalStatusToJSON(object) {
|
|
242
241
|
switch (object) {
|
|
243
242
|
case ResponseProcessProposal_ProposalStatus.UNKNOWN:
|
|
@@ -251,6 +250,7 @@ function responseProcessProposal_ProposalStatusToJSON(object) {
|
|
|
251
250
|
return "UNRECOGNIZED";
|
|
252
251
|
}
|
|
253
252
|
}
|
|
253
|
+
exports.responseProcessProposal_ProposalStatusToJSON = responseProcessProposal_ProposalStatusToJSON;
|
|
254
254
|
function createBaseRequest() {
|
|
255
255
|
return {
|
|
256
256
|
echo: undefined,
|
|
@@ -547,7 +547,7 @@ exports.Request = {
|
|
|
547
547
|
return obj;
|
|
548
548
|
},
|
|
549
549
|
create(base) {
|
|
550
|
-
return exports.Request.fromPartial(base
|
|
550
|
+
return exports.Request.fromPartial(base ?? {});
|
|
551
551
|
},
|
|
552
552
|
fromPartial(object) {
|
|
553
553
|
const message = createBaseRequest();
|
|
@@ -660,12 +660,11 @@ exports.RequestEcho = {
|
|
|
660
660
|
return obj;
|
|
661
661
|
},
|
|
662
662
|
create(base) {
|
|
663
|
-
return exports.RequestEcho.fromPartial(base
|
|
663
|
+
return exports.RequestEcho.fromPartial(base ?? {});
|
|
664
664
|
},
|
|
665
665
|
fromPartial(object) {
|
|
666
|
-
var _a;
|
|
667
666
|
const message = createBaseRequestEcho();
|
|
668
|
-
message.message =
|
|
667
|
+
message.message = object.message ?? "";
|
|
669
668
|
return message;
|
|
670
669
|
},
|
|
671
670
|
};
|
|
@@ -699,7 +698,7 @@ exports.RequestFlush = {
|
|
|
699
698
|
return obj;
|
|
700
699
|
},
|
|
701
700
|
create(base) {
|
|
702
|
-
return exports.RequestFlush.fromPartial(base
|
|
701
|
+
return exports.RequestFlush.fromPartial(base ?? {});
|
|
703
702
|
},
|
|
704
703
|
fromPartial(_) {
|
|
705
704
|
const message = createBaseRequestFlush();
|
|
@@ -786,15 +785,14 @@ exports.RequestInfo = {
|
|
|
786
785
|
return obj;
|
|
787
786
|
},
|
|
788
787
|
create(base) {
|
|
789
|
-
return exports.RequestInfo.fromPartial(base
|
|
788
|
+
return exports.RequestInfo.fromPartial(base ?? {});
|
|
790
789
|
},
|
|
791
790
|
fromPartial(object) {
|
|
792
|
-
var _a, _b, _c, _d;
|
|
793
791
|
const message = createBaseRequestInfo();
|
|
794
|
-
message.version =
|
|
795
|
-
message.blockVersion =
|
|
796
|
-
message.p2pVersion =
|
|
797
|
-
message.abciVersion =
|
|
792
|
+
message.version = object.version ?? "";
|
|
793
|
+
message.blockVersion = object.blockVersion ?? 0;
|
|
794
|
+
message.p2pVersion = object.p2pVersion ?? 0;
|
|
795
|
+
message.abciVersion = object.abciVersion ?? "";
|
|
798
796
|
return message;
|
|
799
797
|
},
|
|
800
798
|
};
|
|
@@ -888,7 +886,7 @@ exports.RequestInitChain = {
|
|
|
888
886
|
consensusParams: isSet(object.consensusParams)
|
|
889
887
|
? params_1.ConsensusParams.fromJSON(object.consensusParams)
|
|
890
888
|
: undefined,
|
|
891
|
-
validators: Array.isArray(object
|
|
889
|
+
validators: Array.isArray(object?.validators)
|
|
892
890
|
? object.validators.map((e) => exports.ValidatorUpdate.fromJSON(e))
|
|
893
891
|
: [],
|
|
894
892
|
appStateBytes: isSet(object.appStateBytes)
|
|
@@ -922,21 +920,20 @@ exports.RequestInitChain = {
|
|
|
922
920
|
return obj;
|
|
923
921
|
},
|
|
924
922
|
create(base) {
|
|
925
|
-
return exports.RequestInitChain.fromPartial(base
|
|
923
|
+
return exports.RequestInitChain.fromPartial(base ?? {});
|
|
926
924
|
},
|
|
927
925
|
fromPartial(object) {
|
|
928
|
-
var _a, _b, _c, _d, _e;
|
|
929
926
|
const message = createBaseRequestInitChain();
|
|
930
|
-
message.time =
|
|
931
|
-
message.chainId =
|
|
927
|
+
message.time = object.time ?? undefined;
|
|
928
|
+
message.chainId = object.chainId ?? "";
|
|
932
929
|
message.consensusParams =
|
|
933
930
|
object.consensusParams !== undefined && object.consensusParams !== null
|
|
934
931
|
? params_1.ConsensusParams.fromPartial(object.consensusParams)
|
|
935
932
|
: undefined;
|
|
936
933
|
message.validators =
|
|
937
|
-
|
|
938
|
-
message.appStateBytes =
|
|
939
|
-
message.initialHeight =
|
|
934
|
+
object.validators?.map((e) => exports.ValidatorUpdate.fromPartial(e)) || [];
|
|
935
|
+
message.appStateBytes = object.appStateBytes ?? new Uint8Array();
|
|
936
|
+
message.initialHeight = object.initialHeight ?? 0;
|
|
940
937
|
return message;
|
|
941
938
|
},
|
|
942
939
|
};
|
|
@@ -1018,15 +1015,14 @@ exports.RequestQuery = {
|
|
|
1018
1015
|
return obj;
|
|
1019
1016
|
},
|
|
1020
1017
|
create(base) {
|
|
1021
|
-
return exports.RequestQuery.fromPartial(base
|
|
1018
|
+
return exports.RequestQuery.fromPartial(base ?? {});
|
|
1022
1019
|
},
|
|
1023
1020
|
fromPartial(object) {
|
|
1024
|
-
var _a, _b, _c, _d;
|
|
1025
1021
|
const message = createBaseRequestQuery();
|
|
1026
|
-
message.data =
|
|
1027
|
-
message.path =
|
|
1028
|
-
message.height =
|
|
1029
|
-
message.prove =
|
|
1022
|
+
message.data = object.data ?? new Uint8Array();
|
|
1023
|
+
message.path = object.path ?? "";
|
|
1024
|
+
message.height = object.height ?? 0;
|
|
1025
|
+
message.prove = object.prove ?? false;
|
|
1030
1026
|
return message;
|
|
1031
1027
|
},
|
|
1032
1028
|
};
|
|
@@ -1102,7 +1098,7 @@ exports.RequestBeginBlock = {
|
|
|
1102
1098
|
lastCommitInfo: isSet(object.lastCommitInfo)
|
|
1103
1099
|
? exports.CommitInfo.fromJSON(object.lastCommitInfo)
|
|
1104
1100
|
: undefined,
|
|
1105
|
-
byzantineValidators: Array.isArray(object
|
|
1101
|
+
byzantineValidators: Array.isArray(object?.byzantineValidators)
|
|
1106
1102
|
? object.byzantineValidators.map((e) => exports.Misbehavior.fromJSON(e))
|
|
1107
1103
|
: [],
|
|
1108
1104
|
};
|
|
@@ -1126,12 +1122,11 @@ exports.RequestBeginBlock = {
|
|
|
1126
1122
|
return obj;
|
|
1127
1123
|
},
|
|
1128
1124
|
create(base) {
|
|
1129
|
-
return exports.RequestBeginBlock.fromPartial(base
|
|
1125
|
+
return exports.RequestBeginBlock.fromPartial(base ?? {});
|
|
1130
1126
|
},
|
|
1131
1127
|
fromPartial(object) {
|
|
1132
|
-
var _a, _b;
|
|
1133
1128
|
const message = createBaseRequestBeginBlock();
|
|
1134
|
-
message.hash =
|
|
1129
|
+
message.hash = object.hash ?? new Uint8Array();
|
|
1135
1130
|
message.header =
|
|
1136
1131
|
object.header !== undefined && object.header !== null
|
|
1137
1132
|
? types_1.Header.fromPartial(object.header)
|
|
@@ -1141,7 +1136,7 @@ exports.RequestBeginBlock = {
|
|
|
1141
1136
|
? exports.CommitInfo.fromPartial(object.lastCommitInfo)
|
|
1142
1137
|
: undefined;
|
|
1143
1138
|
message.byzantineValidators =
|
|
1144
|
-
|
|
1139
|
+
object.byzantineValidators?.map((e) => exports.Misbehavior.fromPartial(e)) || [];
|
|
1145
1140
|
return message;
|
|
1146
1141
|
},
|
|
1147
1142
|
};
|
|
@@ -1199,13 +1194,12 @@ exports.RequestCheckTx = {
|
|
|
1199
1194
|
return obj;
|
|
1200
1195
|
},
|
|
1201
1196
|
create(base) {
|
|
1202
|
-
return exports.RequestCheckTx.fromPartial(base
|
|
1197
|
+
return exports.RequestCheckTx.fromPartial(base ?? {});
|
|
1203
1198
|
},
|
|
1204
1199
|
fromPartial(object) {
|
|
1205
|
-
var _a, _b;
|
|
1206
1200
|
const message = createBaseRequestCheckTx();
|
|
1207
|
-
message.tx =
|
|
1208
|
-
message.type =
|
|
1201
|
+
message.tx = object.tx ?? new Uint8Array();
|
|
1202
|
+
message.type = object.type ?? 0;
|
|
1209
1203
|
return message;
|
|
1210
1204
|
},
|
|
1211
1205
|
};
|
|
@@ -1252,12 +1246,11 @@ exports.RequestDeliverTx = {
|
|
|
1252
1246
|
return obj;
|
|
1253
1247
|
},
|
|
1254
1248
|
create(base) {
|
|
1255
|
-
return exports.RequestDeliverTx.fromPartial(base
|
|
1249
|
+
return exports.RequestDeliverTx.fromPartial(base ?? {});
|
|
1256
1250
|
},
|
|
1257
1251
|
fromPartial(object) {
|
|
1258
|
-
var _a;
|
|
1259
1252
|
const message = createBaseRequestDeliverTx();
|
|
1260
|
-
message.tx =
|
|
1253
|
+
message.tx = object.tx ?? new Uint8Array();
|
|
1261
1254
|
return message;
|
|
1262
1255
|
},
|
|
1263
1256
|
};
|
|
@@ -1301,12 +1294,11 @@ exports.RequestEndBlock = {
|
|
|
1301
1294
|
return obj;
|
|
1302
1295
|
},
|
|
1303
1296
|
create(base) {
|
|
1304
|
-
return exports.RequestEndBlock.fromPartial(base
|
|
1297
|
+
return exports.RequestEndBlock.fromPartial(base ?? {});
|
|
1305
1298
|
},
|
|
1306
1299
|
fromPartial(object) {
|
|
1307
|
-
var _a;
|
|
1308
1300
|
const message = createBaseRequestEndBlock();
|
|
1309
|
-
message.height =
|
|
1301
|
+
message.height = object.height ?? 0;
|
|
1310
1302
|
return message;
|
|
1311
1303
|
},
|
|
1312
1304
|
};
|
|
@@ -1340,7 +1332,7 @@ exports.RequestCommit = {
|
|
|
1340
1332
|
return obj;
|
|
1341
1333
|
},
|
|
1342
1334
|
create(base) {
|
|
1343
|
-
return exports.RequestCommit.fromPartial(base
|
|
1335
|
+
return exports.RequestCommit.fromPartial(base ?? {});
|
|
1344
1336
|
},
|
|
1345
1337
|
fromPartial(_) {
|
|
1346
1338
|
const message = createBaseRequestCommit();
|
|
@@ -1377,7 +1369,7 @@ exports.RequestListSnapshots = {
|
|
|
1377
1369
|
return obj;
|
|
1378
1370
|
},
|
|
1379
1371
|
create(base) {
|
|
1380
|
-
return exports.RequestListSnapshots.fromPartial(base
|
|
1372
|
+
return exports.RequestListSnapshots.fromPartial(base ?? {});
|
|
1381
1373
|
},
|
|
1382
1374
|
fromPartial(_) {
|
|
1383
1375
|
const message = createBaseRequestListSnapshots();
|
|
@@ -1445,16 +1437,15 @@ exports.RequestOfferSnapshot = {
|
|
|
1445
1437
|
return obj;
|
|
1446
1438
|
},
|
|
1447
1439
|
create(base) {
|
|
1448
|
-
return exports.RequestOfferSnapshot.fromPartial(base
|
|
1440
|
+
return exports.RequestOfferSnapshot.fromPartial(base ?? {});
|
|
1449
1441
|
},
|
|
1450
1442
|
fromPartial(object) {
|
|
1451
|
-
var _a;
|
|
1452
1443
|
const message = createBaseRequestOfferSnapshot();
|
|
1453
1444
|
message.snapshot =
|
|
1454
1445
|
object.snapshot !== undefined && object.snapshot !== null
|
|
1455
1446
|
? exports.Snapshot.fromPartial(object.snapshot)
|
|
1456
1447
|
: undefined;
|
|
1457
|
-
message.appHash =
|
|
1448
|
+
message.appHash = object.appHash ?? new Uint8Array();
|
|
1458
1449
|
return message;
|
|
1459
1450
|
},
|
|
1460
1451
|
};
|
|
@@ -1522,14 +1513,13 @@ exports.RequestLoadSnapshotChunk = {
|
|
|
1522
1513
|
return obj;
|
|
1523
1514
|
},
|
|
1524
1515
|
create(base) {
|
|
1525
|
-
return exports.RequestLoadSnapshotChunk.fromPartial(base
|
|
1516
|
+
return exports.RequestLoadSnapshotChunk.fromPartial(base ?? {});
|
|
1526
1517
|
},
|
|
1527
1518
|
fromPartial(object) {
|
|
1528
|
-
var _a, _b, _c;
|
|
1529
1519
|
const message = createBaseRequestLoadSnapshotChunk();
|
|
1530
|
-
message.height =
|
|
1531
|
-
message.format =
|
|
1532
|
-
message.chunk =
|
|
1520
|
+
message.height = object.height ?? 0;
|
|
1521
|
+
message.format = object.format ?? 0;
|
|
1522
|
+
message.chunk = object.chunk ?? 0;
|
|
1533
1523
|
return message;
|
|
1534
1524
|
},
|
|
1535
1525
|
};
|
|
@@ -1600,14 +1590,13 @@ exports.RequestApplySnapshotChunk = {
|
|
|
1600
1590
|
return obj;
|
|
1601
1591
|
},
|
|
1602
1592
|
create(base) {
|
|
1603
|
-
return exports.RequestApplySnapshotChunk.fromPartial(base
|
|
1593
|
+
return exports.RequestApplySnapshotChunk.fromPartial(base ?? {});
|
|
1604
1594
|
},
|
|
1605
1595
|
fromPartial(object) {
|
|
1606
|
-
var _a, _b, _c;
|
|
1607
1596
|
const message = createBaseRequestApplySnapshotChunk();
|
|
1608
|
-
message.index =
|
|
1609
|
-
message.chunk =
|
|
1610
|
-
message.sender =
|
|
1597
|
+
message.index = object.index ?? 0;
|
|
1598
|
+
message.chunk = object.chunk ?? new Uint8Array();
|
|
1599
|
+
message.sender = object.sender ?? "";
|
|
1611
1600
|
return message;
|
|
1612
1601
|
},
|
|
1613
1602
|
};
|
|
@@ -1717,13 +1706,13 @@ exports.RequestPrepareProposal = {
|
|
|
1717
1706
|
fromJSON(object) {
|
|
1718
1707
|
return {
|
|
1719
1708
|
maxTxBytes: isSet(object.maxTxBytes) ? Number(object.maxTxBytes) : 0,
|
|
1720
|
-
txs: Array.isArray(object
|
|
1709
|
+
txs: Array.isArray(object?.txs)
|
|
1721
1710
|
? object.txs.map((e) => bytesFromBase64(e))
|
|
1722
1711
|
: [],
|
|
1723
1712
|
localLastCommit: isSet(object.localLastCommit)
|
|
1724
1713
|
? exports.ExtendedCommitInfo.fromJSON(object.localLastCommit)
|
|
1725
1714
|
: undefined,
|
|
1726
|
-
misbehavior: Array.isArray(object
|
|
1715
|
+
misbehavior: Array.isArray(object?.misbehavior)
|
|
1727
1716
|
? object.misbehavior.map((e) => exports.Misbehavior.fromJSON(e))
|
|
1728
1717
|
: [],
|
|
1729
1718
|
height: isSet(object.height) ? Number(object.height) : 0,
|
|
@@ -1769,23 +1758,22 @@ exports.RequestPrepareProposal = {
|
|
|
1769
1758
|
return obj;
|
|
1770
1759
|
},
|
|
1771
1760
|
create(base) {
|
|
1772
|
-
return exports.RequestPrepareProposal.fromPartial(base
|
|
1761
|
+
return exports.RequestPrepareProposal.fromPartial(base ?? {});
|
|
1773
1762
|
},
|
|
1774
1763
|
fromPartial(object) {
|
|
1775
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
1776
1764
|
const message = createBaseRequestPrepareProposal();
|
|
1777
|
-
message.maxTxBytes =
|
|
1778
|
-
message.txs =
|
|
1765
|
+
message.maxTxBytes = object.maxTxBytes ?? 0;
|
|
1766
|
+
message.txs = object.txs?.map((e) => e) || [];
|
|
1779
1767
|
message.localLastCommit =
|
|
1780
1768
|
object.localLastCommit !== undefined && object.localLastCommit !== null
|
|
1781
1769
|
? exports.ExtendedCommitInfo.fromPartial(object.localLastCommit)
|
|
1782
1770
|
: undefined;
|
|
1783
1771
|
message.misbehavior =
|
|
1784
|
-
|
|
1785
|
-
message.height =
|
|
1786
|
-
message.time =
|
|
1787
|
-
message.nextValidatorsHash =
|
|
1788
|
-
message.proposerAddress =
|
|
1772
|
+
object.misbehavior?.map((e) => exports.Misbehavior.fromPartial(e)) || [];
|
|
1773
|
+
message.height = object.height ?? 0;
|
|
1774
|
+
message.time = object.time ?? undefined;
|
|
1775
|
+
message.nextValidatorsHash = object.nextValidatorsHash ?? new Uint8Array();
|
|
1776
|
+
message.proposerAddress = object.proposerAddress ?? new Uint8Array();
|
|
1789
1777
|
return message;
|
|
1790
1778
|
},
|
|
1791
1779
|
};
|
|
@@ -1894,13 +1882,13 @@ exports.RequestProcessProposal = {
|
|
|
1894
1882
|
},
|
|
1895
1883
|
fromJSON(object) {
|
|
1896
1884
|
return {
|
|
1897
|
-
txs: Array.isArray(object
|
|
1885
|
+
txs: Array.isArray(object?.txs)
|
|
1898
1886
|
? object.txs.map((e) => bytesFromBase64(e))
|
|
1899
1887
|
: [],
|
|
1900
1888
|
proposedLastCommit: isSet(object.proposedLastCommit)
|
|
1901
1889
|
? exports.CommitInfo.fromJSON(object.proposedLastCommit)
|
|
1902
1890
|
: undefined,
|
|
1903
|
-
misbehavior: Array.isArray(object
|
|
1891
|
+
misbehavior: Array.isArray(object?.misbehavior)
|
|
1904
1892
|
? object.misbehavior.map((e) => exports.Misbehavior.fromJSON(e))
|
|
1905
1893
|
: [],
|
|
1906
1894
|
hash: isSet(object.hash)
|
|
@@ -1949,24 +1937,23 @@ exports.RequestProcessProposal = {
|
|
|
1949
1937
|
return obj;
|
|
1950
1938
|
},
|
|
1951
1939
|
create(base) {
|
|
1952
|
-
return exports.RequestProcessProposal.fromPartial(base
|
|
1940
|
+
return exports.RequestProcessProposal.fromPartial(base ?? {});
|
|
1953
1941
|
},
|
|
1954
1942
|
fromPartial(object) {
|
|
1955
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
1956
1943
|
const message = createBaseRequestProcessProposal();
|
|
1957
|
-
message.txs =
|
|
1944
|
+
message.txs = object.txs?.map((e) => e) || [];
|
|
1958
1945
|
message.proposedLastCommit =
|
|
1959
1946
|
object.proposedLastCommit !== undefined &&
|
|
1960
1947
|
object.proposedLastCommit !== null
|
|
1961
1948
|
? exports.CommitInfo.fromPartial(object.proposedLastCommit)
|
|
1962
1949
|
: undefined;
|
|
1963
1950
|
message.misbehavior =
|
|
1964
|
-
|
|
1965
|
-
message.hash =
|
|
1966
|
-
message.height =
|
|
1967
|
-
message.time =
|
|
1968
|
-
message.nextValidatorsHash =
|
|
1969
|
-
message.proposerAddress =
|
|
1951
|
+
object.misbehavior?.map((e) => exports.Misbehavior.fromPartial(e)) || [];
|
|
1952
|
+
message.hash = object.hash ?? new Uint8Array();
|
|
1953
|
+
message.height = object.height ?? 0;
|
|
1954
|
+
message.time = object.time ?? undefined;
|
|
1955
|
+
message.nextValidatorsHash = object.nextValidatorsHash ?? new Uint8Array();
|
|
1956
|
+
message.proposerAddress = object.proposerAddress ?? new Uint8Array();
|
|
1970
1957
|
return message;
|
|
1971
1958
|
},
|
|
1972
1959
|
};
|
|
@@ -2283,7 +2270,7 @@ exports.Response = {
|
|
|
2283
2270
|
return obj;
|
|
2284
2271
|
},
|
|
2285
2272
|
create(base) {
|
|
2286
|
-
return exports.Response.fromPartial(base
|
|
2273
|
+
return exports.Response.fromPartial(base ?? {});
|
|
2287
2274
|
},
|
|
2288
2275
|
fromPartial(object) {
|
|
2289
2276
|
const message = createBaseResponse();
|
|
@@ -2400,12 +2387,11 @@ exports.ResponseException = {
|
|
|
2400
2387
|
return obj;
|
|
2401
2388
|
},
|
|
2402
2389
|
create(base) {
|
|
2403
|
-
return exports.ResponseException.fromPartial(base
|
|
2390
|
+
return exports.ResponseException.fromPartial(base ?? {});
|
|
2404
2391
|
},
|
|
2405
2392
|
fromPartial(object) {
|
|
2406
|
-
var _a;
|
|
2407
2393
|
const message = createBaseResponseException();
|
|
2408
|
-
message.error =
|
|
2394
|
+
message.error = object.error ?? "";
|
|
2409
2395
|
return message;
|
|
2410
2396
|
},
|
|
2411
2397
|
};
|
|
@@ -2449,12 +2435,11 @@ exports.ResponseEcho = {
|
|
|
2449
2435
|
return obj;
|
|
2450
2436
|
},
|
|
2451
2437
|
create(base) {
|
|
2452
|
-
return exports.ResponseEcho.fromPartial(base
|
|
2438
|
+
return exports.ResponseEcho.fromPartial(base ?? {});
|
|
2453
2439
|
},
|
|
2454
2440
|
fromPartial(object) {
|
|
2455
|
-
var _a;
|
|
2456
2441
|
const message = createBaseResponseEcho();
|
|
2457
|
-
message.message =
|
|
2442
|
+
message.message = object.message ?? "";
|
|
2458
2443
|
return message;
|
|
2459
2444
|
},
|
|
2460
2445
|
};
|
|
@@ -2488,7 +2473,7 @@ exports.ResponseFlush = {
|
|
|
2488
2473
|
return obj;
|
|
2489
2474
|
},
|
|
2490
2475
|
create(base) {
|
|
2491
|
-
return exports.ResponseFlush.fromPartial(base
|
|
2476
|
+
return exports.ResponseFlush.fromPartial(base ?? {});
|
|
2492
2477
|
},
|
|
2493
2478
|
fromPartial(_) {
|
|
2494
2479
|
const message = createBaseResponseFlush();
|
|
@@ -2596,16 +2581,15 @@ exports.ResponseInfo = {
|
|
|
2596
2581
|
return obj;
|
|
2597
2582
|
},
|
|
2598
2583
|
create(base) {
|
|
2599
|
-
return exports.ResponseInfo.fromPartial(base
|
|
2584
|
+
return exports.ResponseInfo.fromPartial(base ?? {});
|
|
2600
2585
|
},
|
|
2601
2586
|
fromPartial(object) {
|
|
2602
|
-
var _a, _b, _c, _d, _e;
|
|
2603
2587
|
const message = createBaseResponseInfo();
|
|
2604
|
-
message.data =
|
|
2605
|
-
message.version =
|
|
2606
|
-
message.appVersion =
|
|
2607
|
-
message.lastBlockHeight =
|
|
2608
|
-
message.lastBlockAppHash =
|
|
2588
|
+
message.data = object.data ?? "";
|
|
2589
|
+
message.version = object.version ?? "";
|
|
2590
|
+
message.appVersion = object.appVersion ?? 0;
|
|
2591
|
+
message.lastBlockHeight = object.lastBlockHeight ?? 0;
|
|
2592
|
+
message.lastBlockAppHash = object.lastBlockAppHash ?? new Uint8Array();
|
|
2609
2593
|
return message;
|
|
2610
2594
|
},
|
|
2611
2595
|
};
|
|
@@ -2667,7 +2651,7 @@ exports.ResponseInitChain = {
|
|
|
2667
2651
|
consensusParams: isSet(object.consensusParams)
|
|
2668
2652
|
? params_1.ConsensusParams.fromJSON(object.consensusParams)
|
|
2669
2653
|
: undefined,
|
|
2670
|
-
validators: Array.isArray(object
|
|
2654
|
+
validators: Array.isArray(object?.validators)
|
|
2671
2655
|
? object.validators.map((e) => exports.ValidatorUpdate.fromJSON(e))
|
|
2672
2656
|
: [],
|
|
2673
2657
|
appHash: isSet(object.appHash)
|
|
@@ -2692,18 +2676,17 @@ exports.ResponseInitChain = {
|
|
|
2692
2676
|
return obj;
|
|
2693
2677
|
},
|
|
2694
2678
|
create(base) {
|
|
2695
|
-
return exports.ResponseInitChain.fromPartial(base
|
|
2679
|
+
return exports.ResponseInitChain.fromPartial(base ?? {});
|
|
2696
2680
|
},
|
|
2697
2681
|
fromPartial(object) {
|
|
2698
|
-
var _a, _b;
|
|
2699
2682
|
const message = createBaseResponseInitChain();
|
|
2700
2683
|
message.consensusParams =
|
|
2701
2684
|
object.consensusParams !== undefined && object.consensusParams !== null
|
|
2702
2685
|
? params_1.ConsensusParams.fromPartial(object.consensusParams)
|
|
2703
2686
|
: undefined;
|
|
2704
2687
|
message.validators =
|
|
2705
|
-
|
|
2706
|
-
message.appHash =
|
|
2688
|
+
object.validators?.map((e) => exports.ValidatorUpdate.fromPartial(e)) || [];
|
|
2689
|
+
message.appHash = object.appHash ?? new Uint8Array();
|
|
2707
2690
|
return message;
|
|
2708
2691
|
},
|
|
2709
2692
|
};
|
|
@@ -2856,23 +2839,22 @@ exports.ResponseQuery = {
|
|
|
2856
2839
|
return obj;
|
|
2857
2840
|
},
|
|
2858
2841
|
create(base) {
|
|
2859
|
-
return exports.ResponseQuery.fromPartial(base
|
|
2842
|
+
return exports.ResponseQuery.fromPartial(base ?? {});
|
|
2860
2843
|
},
|
|
2861
2844
|
fromPartial(object) {
|
|
2862
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
2863
2845
|
const message = createBaseResponseQuery();
|
|
2864
|
-
message.code =
|
|
2865
|
-
message.log =
|
|
2866
|
-
message.info =
|
|
2867
|
-
message.index =
|
|
2868
|
-
message.key =
|
|
2869
|
-
message.value =
|
|
2846
|
+
message.code = object.code ?? 0;
|
|
2847
|
+
message.log = object.log ?? "";
|
|
2848
|
+
message.info = object.info ?? "";
|
|
2849
|
+
message.index = object.index ?? 0;
|
|
2850
|
+
message.key = object.key ?? new Uint8Array();
|
|
2851
|
+
message.value = object.value ?? new Uint8Array();
|
|
2870
2852
|
message.proofOps =
|
|
2871
2853
|
object.proofOps !== undefined && object.proofOps !== null
|
|
2872
2854
|
? proof_1.ProofOps.fromPartial(object.proofOps)
|
|
2873
2855
|
: undefined;
|
|
2874
|
-
message.height =
|
|
2875
|
-
message.codespace =
|
|
2856
|
+
message.height = object.height ?? 0;
|
|
2857
|
+
message.codespace = object.codespace ?? "";
|
|
2876
2858
|
return message;
|
|
2877
2859
|
},
|
|
2878
2860
|
};
|
|
@@ -2909,7 +2891,7 @@ exports.ResponseBeginBlock = {
|
|
|
2909
2891
|
},
|
|
2910
2892
|
fromJSON(object) {
|
|
2911
2893
|
return {
|
|
2912
|
-
events: Array.isArray(object
|
|
2894
|
+
events: Array.isArray(object?.events)
|
|
2913
2895
|
? object.events.map((e) => exports.Event.fromJSON(e))
|
|
2914
2896
|
: [],
|
|
2915
2897
|
};
|
|
@@ -2925,12 +2907,11 @@ exports.ResponseBeginBlock = {
|
|
|
2925
2907
|
return obj;
|
|
2926
2908
|
},
|
|
2927
2909
|
create(base) {
|
|
2928
|
-
return exports.ResponseBeginBlock.fromPartial(base
|
|
2910
|
+
return exports.ResponseBeginBlock.fromPartial(base ?? {});
|
|
2929
2911
|
},
|
|
2930
2912
|
fromPartial(object) {
|
|
2931
|
-
var _a;
|
|
2932
2913
|
const message = createBaseResponseBeginBlock();
|
|
2933
|
-
message.events =
|
|
2914
|
+
message.events = object.events?.map((e) => exports.Event.fromPartial(e)) || [];
|
|
2934
2915
|
return message;
|
|
2935
2916
|
},
|
|
2936
2917
|
};
|
|
@@ -3077,7 +3058,7 @@ exports.ResponseCheckTx = {
|
|
|
3077
3058
|
info: isSet(object.info) ? String(object.info) : "",
|
|
3078
3059
|
gasWanted: isSet(object.gas_wanted) ? Number(object.gas_wanted) : 0,
|
|
3079
3060
|
gasUsed: isSet(object.gas_used) ? Number(object.gas_used) : 0,
|
|
3080
|
-
events: Array.isArray(object
|
|
3061
|
+
events: Array.isArray(object?.events)
|
|
3081
3062
|
? object.events.map((e) => exports.Event.fromJSON(e))
|
|
3082
3063
|
: [],
|
|
3083
3064
|
codespace: isSet(object.codespace) ? String(object.codespace) : "",
|
|
@@ -3114,22 +3095,21 @@ exports.ResponseCheckTx = {
|
|
|
3114
3095
|
return obj;
|
|
3115
3096
|
},
|
|
3116
3097
|
create(base) {
|
|
3117
|
-
return exports.ResponseCheckTx.fromPartial(base
|
|
3098
|
+
return exports.ResponseCheckTx.fromPartial(base ?? {});
|
|
3118
3099
|
},
|
|
3119
3100
|
fromPartial(object) {
|
|
3120
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
3121
3101
|
const message = createBaseResponseCheckTx();
|
|
3122
|
-
message.code =
|
|
3123
|
-
message.data =
|
|
3124
|
-
message.log =
|
|
3125
|
-
message.info =
|
|
3126
|
-
message.gasWanted =
|
|
3127
|
-
message.gasUsed =
|
|
3128
|
-
message.events =
|
|
3129
|
-
message.codespace =
|
|
3130
|
-
message.sender =
|
|
3131
|
-
message.priority =
|
|
3132
|
-
message.mempoolError =
|
|
3102
|
+
message.code = object.code ?? 0;
|
|
3103
|
+
message.data = object.data ?? new Uint8Array();
|
|
3104
|
+
message.log = object.log ?? "";
|
|
3105
|
+
message.info = object.info ?? "";
|
|
3106
|
+
message.gasWanted = object.gasWanted ?? 0;
|
|
3107
|
+
message.gasUsed = object.gasUsed ?? 0;
|
|
3108
|
+
message.events = object.events?.map((e) => exports.Event.fromPartial(e)) || [];
|
|
3109
|
+
message.codespace = object.codespace ?? "";
|
|
3110
|
+
message.sender = object.sender ?? "";
|
|
3111
|
+
message.priority = object.priority ?? 0;
|
|
3112
|
+
message.mempoolError = object.mempoolError ?? "";
|
|
3133
3113
|
return message;
|
|
3134
3114
|
},
|
|
3135
3115
|
};
|
|
@@ -3246,7 +3226,7 @@ exports.ResponseDeliverTx = {
|
|
|
3246
3226
|
info: isSet(object.info) ? String(object.info) : "",
|
|
3247
3227
|
gasWanted: isSet(object.gas_wanted) ? Number(object.gas_wanted) : 0,
|
|
3248
3228
|
gasUsed: isSet(object.gas_used) ? Number(object.gas_used) : 0,
|
|
3249
|
-
events: Array.isArray(object
|
|
3229
|
+
events: Array.isArray(object?.events)
|
|
3250
3230
|
? object.events.map((e) => exports.Event.fromJSON(e))
|
|
3251
3231
|
: [],
|
|
3252
3232
|
codespace: isSet(object.codespace) ? String(object.codespace) : "",
|
|
@@ -3273,19 +3253,18 @@ exports.ResponseDeliverTx = {
|
|
|
3273
3253
|
return obj;
|
|
3274
3254
|
},
|
|
3275
3255
|
create(base) {
|
|
3276
|
-
return exports.ResponseDeliverTx.fromPartial(base
|
|
3256
|
+
return exports.ResponseDeliverTx.fromPartial(base ?? {});
|
|
3277
3257
|
},
|
|
3278
3258
|
fromPartial(object) {
|
|
3279
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
3280
3259
|
const message = createBaseResponseDeliverTx();
|
|
3281
|
-
message.code =
|
|
3282
|
-
message.data =
|
|
3283
|
-
message.log =
|
|
3284
|
-
message.info =
|
|
3285
|
-
message.gasWanted =
|
|
3286
|
-
message.gasUsed =
|
|
3287
|
-
message.events =
|
|
3288
|
-
message.codespace =
|
|
3260
|
+
message.code = object.code ?? 0;
|
|
3261
|
+
message.data = object.data ?? new Uint8Array();
|
|
3262
|
+
message.log = object.log ?? "";
|
|
3263
|
+
message.info = object.info ?? "";
|
|
3264
|
+
message.gasWanted = object.gasWanted ?? 0;
|
|
3265
|
+
message.gasUsed = object.gasUsed ?? 0;
|
|
3266
|
+
message.events = object.events?.map((e) => exports.Event.fromPartial(e)) || [];
|
|
3267
|
+
message.codespace = object.codespace ?? "";
|
|
3289
3268
|
return message;
|
|
3290
3269
|
},
|
|
3291
3270
|
};
|
|
@@ -3340,13 +3319,13 @@ exports.ResponseEndBlock = {
|
|
|
3340
3319
|
},
|
|
3341
3320
|
fromJSON(object) {
|
|
3342
3321
|
return {
|
|
3343
|
-
validatorUpdates: Array.isArray(object
|
|
3322
|
+
validatorUpdates: Array.isArray(object?.validatorUpdates)
|
|
3344
3323
|
? object.validatorUpdates.map((e) => exports.ValidatorUpdate.fromJSON(e))
|
|
3345
3324
|
: [],
|
|
3346
3325
|
consensusParamUpdates: isSet(object.consensusParamUpdates)
|
|
3347
3326
|
? params_1.ConsensusParams.fromJSON(object.consensusParamUpdates)
|
|
3348
3327
|
: undefined,
|
|
3349
|
-
events: Array.isArray(object
|
|
3328
|
+
events: Array.isArray(object?.events)
|
|
3350
3329
|
? object.events.map((e) => exports.Event.fromJSON(e))
|
|
3351
3330
|
: [],
|
|
3352
3331
|
};
|
|
@@ -3372,19 +3351,18 @@ exports.ResponseEndBlock = {
|
|
|
3372
3351
|
return obj;
|
|
3373
3352
|
},
|
|
3374
3353
|
create(base) {
|
|
3375
|
-
return exports.ResponseEndBlock.fromPartial(base
|
|
3354
|
+
return exports.ResponseEndBlock.fromPartial(base ?? {});
|
|
3376
3355
|
},
|
|
3377
3356
|
fromPartial(object) {
|
|
3378
|
-
var _a, _b;
|
|
3379
3357
|
const message = createBaseResponseEndBlock();
|
|
3380
3358
|
message.validatorUpdates =
|
|
3381
|
-
|
|
3359
|
+
object.validatorUpdates?.map((e) => exports.ValidatorUpdate.fromPartial(e)) || [];
|
|
3382
3360
|
message.consensusParamUpdates =
|
|
3383
3361
|
object.consensusParamUpdates !== undefined &&
|
|
3384
3362
|
object.consensusParamUpdates !== null
|
|
3385
3363
|
? params_1.ConsensusParams.fromPartial(object.consensusParamUpdates)
|
|
3386
3364
|
: undefined;
|
|
3387
|
-
message.events =
|
|
3365
|
+
message.events = object.events?.map((e) => exports.Event.fromPartial(e)) || [];
|
|
3388
3366
|
return message;
|
|
3389
3367
|
},
|
|
3390
3368
|
};
|
|
@@ -3447,13 +3425,12 @@ exports.ResponseCommit = {
|
|
|
3447
3425
|
return obj;
|
|
3448
3426
|
},
|
|
3449
3427
|
create(base) {
|
|
3450
|
-
return exports.ResponseCommit.fromPartial(base
|
|
3428
|
+
return exports.ResponseCommit.fromPartial(base ?? {});
|
|
3451
3429
|
},
|
|
3452
3430
|
fromPartial(object) {
|
|
3453
|
-
var _a, _b;
|
|
3454
3431
|
const message = createBaseResponseCommit();
|
|
3455
|
-
message.data =
|
|
3456
|
-
message.retainHeight =
|
|
3432
|
+
message.data = object.data ?? new Uint8Array();
|
|
3433
|
+
message.retainHeight = object.retainHeight ?? 0;
|
|
3457
3434
|
return message;
|
|
3458
3435
|
},
|
|
3459
3436
|
};
|
|
@@ -3490,7 +3467,7 @@ exports.ResponseListSnapshots = {
|
|
|
3490
3467
|
},
|
|
3491
3468
|
fromJSON(object) {
|
|
3492
3469
|
return {
|
|
3493
|
-
snapshots: Array.isArray(object
|
|
3470
|
+
snapshots: Array.isArray(object?.snapshots)
|
|
3494
3471
|
? object.snapshots.map((e) => exports.Snapshot.fromJSON(e))
|
|
3495
3472
|
: [],
|
|
3496
3473
|
};
|
|
@@ -3506,13 +3483,12 @@ exports.ResponseListSnapshots = {
|
|
|
3506
3483
|
return obj;
|
|
3507
3484
|
},
|
|
3508
3485
|
create(base) {
|
|
3509
|
-
return exports.ResponseListSnapshots.fromPartial(base
|
|
3486
|
+
return exports.ResponseListSnapshots.fromPartial(base ?? {});
|
|
3510
3487
|
},
|
|
3511
3488
|
fromPartial(object) {
|
|
3512
|
-
var _a;
|
|
3513
3489
|
const message = createBaseResponseListSnapshots();
|
|
3514
3490
|
message.snapshots =
|
|
3515
|
-
|
|
3491
|
+
object.snapshots?.map((e) => exports.Snapshot.fromPartial(e)) || [];
|
|
3516
3492
|
return message;
|
|
3517
3493
|
},
|
|
3518
3494
|
};
|
|
@@ -3561,12 +3537,11 @@ exports.ResponseOfferSnapshot = {
|
|
|
3561
3537
|
return obj;
|
|
3562
3538
|
},
|
|
3563
3539
|
create(base) {
|
|
3564
|
-
return exports.ResponseOfferSnapshot.fromPartial(base
|
|
3540
|
+
return exports.ResponseOfferSnapshot.fromPartial(base ?? {});
|
|
3565
3541
|
},
|
|
3566
3542
|
fromPartial(object) {
|
|
3567
|
-
var _a;
|
|
3568
3543
|
const message = createBaseResponseOfferSnapshot();
|
|
3569
|
-
message.result =
|
|
3544
|
+
message.result = object.result ?? 0;
|
|
3570
3545
|
return message;
|
|
3571
3546
|
},
|
|
3572
3547
|
};
|
|
@@ -3615,12 +3590,11 @@ exports.ResponseLoadSnapshotChunk = {
|
|
|
3615
3590
|
return obj;
|
|
3616
3591
|
},
|
|
3617
3592
|
create(base) {
|
|
3618
|
-
return exports.ResponseLoadSnapshotChunk.fromPartial(base
|
|
3593
|
+
return exports.ResponseLoadSnapshotChunk.fromPartial(base ?? {});
|
|
3619
3594
|
},
|
|
3620
3595
|
fromPartial(object) {
|
|
3621
|
-
var _a;
|
|
3622
3596
|
const message = createBaseResponseLoadSnapshotChunk();
|
|
3623
|
-
message.chunk =
|
|
3597
|
+
message.chunk = object.chunk ?? new Uint8Array();
|
|
3624
3598
|
return message;
|
|
3625
3599
|
},
|
|
3626
3600
|
};
|
|
@@ -3687,10 +3661,10 @@ exports.ResponseApplySnapshotChunk = {
|
|
|
3687
3661
|
result: isSet(object.result)
|
|
3688
3662
|
? responseApplySnapshotChunk_ResultFromJSON(object.result)
|
|
3689
3663
|
: 0,
|
|
3690
|
-
refetchChunks: Array.isArray(object
|
|
3664
|
+
refetchChunks: Array.isArray(object?.refetchChunks)
|
|
3691
3665
|
? object.refetchChunks.map((e) => Number(e))
|
|
3692
3666
|
: [],
|
|
3693
|
-
rejectSenders: Array.isArray(object
|
|
3667
|
+
rejectSenders: Array.isArray(object?.rejectSenders)
|
|
3694
3668
|
? object.rejectSenders.map((e) => String(e))
|
|
3695
3669
|
: [],
|
|
3696
3670
|
};
|
|
@@ -3714,14 +3688,13 @@ exports.ResponseApplySnapshotChunk = {
|
|
|
3714
3688
|
return obj;
|
|
3715
3689
|
},
|
|
3716
3690
|
create(base) {
|
|
3717
|
-
return exports.ResponseApplySnapshotChunk.fromPartial(base
|
|
3691
|
+
return exports.ResponseApplySnapshotChunk.fromPartial(base ?? {});
|
|
3718
3692
|
},
|
|
3719
3693
|
fromPartial(object) {
|
|
3720
|
-
var _a, _b, _c;
|
|
3721
3694
|
const message = createBaseResponseApplySnapshotChunk();
|
|
3722
|
-
message.result =
|
|
3723
|
-
message.refetchChunks =
|
|
3724
|
-
message.rejectSenders =
|
|
3695
|
+
message.result = object.result ?? 0;
|
|
3696
|
+
message.refetchChunks = object.refetchChunks?.map((e) => e) || [];
|
|
3697
|
+
message.rejectSenders = object.rejectSenders?.map((e) => e) || [];
|
|
3725
3698
|
return message;
|
|
3726
3699
|
},
|
|
3727
3700
|
};
|
|
@@ -3758,7 +3731,7 @@ exports.ResponsePrepareProposal = {
|
|
|
3758
3731
|
},
|
|
3759
3732
|
fromJSON(object) {
|
|
3760
3733
|
return {
|
|
3761
|
-
txs: Array.isArray(object
|
|
3734
|
+
txs: Array.isArray(object?.txs)
|
|
3762
3735
|
? object.txs.map((e) => bytesFromBase64(e))
|
|
3763
3736
|
: [],
|
|
3764
3737
|
};
|
|
@@ -3774,12 +3747,11 @@ exports.ResponsePrepareProposal = {
|
|
|
3774
3747
|
return obj;
|
|
3775
3748
|
},
|
|
3776
3749
|
create(base) {
|
|
3777
|
-
return exports.ResponsePrepareProposal.fromPartial(base
|
|
3750
|
+
return exports.ResponsePrepareProposal.fromPartial(base ?? {});
|
|
3778
3751
|
},
|
|
3779
3752
|
fromPartial(object) {
|
|
3780
|
-
var _a;
|
|
3781
3753
|
const message = createBaseResponsePrepareProposal();
|
|
3782
|
-
message.txs =
|
|
3754
|
+
message.txs = object.txs?.map((e) => e) || [];
|
|
3783
3755
|
return message;
|
|
3784
3756
|
},
|
|
3785
3757
|
};
|
|
@@ -3828,12 +3800,11 @@ exports.ResponseProcessProposal = {
|
|
|
3828
3800
|
return obj;
|
|
3829
3801
|
},
|
|
3830
3802
|
create(base) {
|
|
3831
|
-
return exports.ResponseProcessProposal.fromPartial(base
|
|
3803
|
+
return exports.ResponseProcessProposal.fromPartial(base ?? {});
|
|
3832
3804
|
},
|
|
3833
3805
|
fromPartial(object) {
|
|
3834
|
-
var _a;
|
|
3835
3806
|
const message = createBaseResponseProcessProposal();
|
|
3836
|
-
message.status =
|
|
3807
|
+
message.status = object.status ?? 0;
|
|
3837
3808
|
return message;
|
|
3838
3809
|
},
|
|
3839
3810
|
};
|
|
@@ -3880,7 +3851,7 @@ exports.CommitInfo = {
|
|
|
3880
3851
|
fromJSON(object) {
|
|
3881
3852
|
return {
|
|
3882
3853
|
round: isSet(object.round) ? Number(object.round) : 0,
|
|
3883
|
-
votes: Array.isArray(object
|
|
3854
|
+
votes: Array.isArray(object?.votes)
|
|
3884
3855
|
? object.votes.map((e) => exports.VoteInfo.fromJSON(e))
|
|
3885
3856
|
: [],
|
|
3886
3857
|
};
|
|
@@ -3897,13 +3868,12 @@ exports.CommitInfo = {
|
|
|
3897
3868
|
return obj;
|
|
3898
3869
|
},
|
|
3899
3870
|
create(base) {
|
|
3900
|
-
return exports.CommitInfo.fromPartial(base
|
|
3871
|
+
return exports.CommitInfo.fromPartial(base ?? {});
|
|
3901
3872
|
},
|
|
3902
3873
|
fromPartial(object) {
|
|
3903
|
-
var _a, _b;
|
|
3904
3874
|
const message = createBaseCommitInfo();
|
|
3905
|
-
message.round =
|
|
3906
|
-
message.votes =
|
|
3875
|
+
message.round = object.round ?? 0;
|
|
3876
|
+
message.votes = object.votes?.map((e) => exports.VoteInfo.fromPartial(e)) || [];
|
|
3907
3877
|
return message;
|
|
3908
3878
|
},
|
|
3909
3879
|
};
|
|
@@ -3950,7 +3920,7 @@ exports.ExtendedCommitInfo = {
|
|
|
3950
3920
|
fromJSON(object) {
|
|
3951
3921
|
return {
|
|
3952
3922
|
round: isSet(object.round) ? Number(object.round) : 0,
|
|
3953
|
-
votes: Array.isArray(object
|
|
3923
|
+
votes: Array.isArray(object?.votes)
|
|
3954
3924
|
? object.votes.map((e) => exports.ExtendedVoteInfo.fromJSON(e))
|
|
3955
3925
|
: [],
|
|
3956
3926
|
};
|
|
@@ -3967,14 +3937,13 @@ exports.ExtendedCommitInfo = {
|
|
|
3967
3937
|
return obj;
|
|
3968
3938
|
},
|
|
3969
3939
|
create(base) {
|
|
3970
|
-
return exports.ExtendedCommitInfo.fromPartial(base
|
|
3940
|
+
return exports.ExtendedCommitInfo.fromPartial(base ?? {});
|
|
3971
3941
|
},
|
|
3972
3942
|
fromPartial(object) {
|
|
3973
|
-
var _a, _b;
|
|
3974
3943
|
const message = createBaseExtendedCommitInfo();
|
|
3975
|
-
message.round =
|
|
3944
|
+
message.round = object.round ?? 0;
|
|
3976
3945
|
message.votes =
|
|
3977
|
-
|
|
3946
|
+
object.votes?.map((e) => exports.ExtendedVoteInfo.fromPartial(e)) || [];
|
|
3978
3947
|
return message;
|
|
3979
3948
|
},
|
|
3980
3949
|
};
|
|
@@ -4021,7 +3990,7 @@ exports.Event = {
|
|
|
4021
3990
|
fromJSON(object) {
|
|
4022
3991
|
return {
|
|
4023
3992
|
type: isSet(object.type) ? String(object.type) : "",
|
|
4024
|
-
attributes: Array.isArray(object
|
|
3993
|
+
attributes: Array.isArray(object?.attributes)
|
|
4025
3994
|
? object.attributes.map((e) => exports.EventAttribute.fromJSON(e))
|
|
4026
3995
|
: [],
|
|
4027
3996
|
};
|
|
@@ -4038,14 +4007,13 @@ exports.Event = {
|
|
|
4038
4007
|
return obj;
|
|
4039
4008
|
},
|
|
4040
4009
|
create(base) {
|
|
4041
|
-
return exports.Event.fromPartial(base
|
|
4010
|
+
return exports.Event.fromPartial(base ?? {});
|
|
4042
4011
|
},
|
|
4043
4012
|
fromPartial(object) {
|
|
4044
|
-
var _a, _b;
|
|
4045
4013
|
const message = createBaseEvent();
|
|
4046
|
-
message.type =
|
|
4014
|
+
message.type = object.type ?? "";
|
|
4047
4015
|
message.attributes =
|
|
4048
|
-
|
|
4016
|
+
object.attributes?.map((e) => exports.EventAttribute.fromPartial(e)) || [];
|
|
4049
4017
|
return message;
|
|
4050
4018
|
},
|
|
4051
4019
|
};
|
|
@@ -4113,14 +4081,13 @@ exports.EventAttribute = {
|
|
|
4113
4081
|
return obj;
|
|
4114
4082
|
},
|
|
4115
4083
|
create(base) {
|
|
4116
|
-
return exports.EventAttribute.fromPartial(base
|
|
4084
|
+
return exports.EventAttribute.fromPartial(base ?? {});
|
|
4117
4085
|
},
|
|
4118
4086
|
fromPartial(object) {
|
|
4119
|
-
var _a, _b, _c;
|
|
4120
4087
|
const message = createBaseEventAttribute();
|
|
4121
|
-
message.key =
|
|
4122
|
-
message.value =
|
|
4123
|
-
message.index =
|
|
4088
|
+
message.key = object.key ?? "";
|
|
4089
|
+
message.value = object.value ?? "";
|
|
4090
|
+
message.index = object.index ?? false;
|
|
4124
4091
|
return message;
|
|
4125
4092
|
},
|
|
4126
4093
|
};
|
|
@@ -4205,14 +4172,13 @@ exports.TxResult = {
|
|
|
4205
4172
|
return obj;
|
|
4206
4173
|
},
|
|
4207
4174
|
create(base) {
|
|
4208
|
-
return exports.TxResult.fromPartial(base
|
|
4175
|
+
return exports.TxResult.fromPartial(base ?? {});
|
|
4209
4176
|
},
|
|
4210
4177
|
fromPartial(object) {
|
|
4211
|
-
var _a, _b, _c;
|
|
4212
4178
|
const message = createBaseTxResult();
|
|
4213
|
-
message.height =
|
|
4214
|
-
message.index =
|
|
4215
|
-
message.tx =
|
|
4179
|
+
message.height = object.height ?? 0;
|
|
4180
|
+
message.index = object.index ?? 0;
|
|
4181
|
+
message.tx = object.tx ?? new Uint8Array();
|
|
4216
4182
|
message.result =
|
|
4217
4183
|
object.result !== undefined && object.result !== null
|
|
4218
4184
|
? exports.ResponseDeliverTx.fromPartial(object.result)
|
|
@@ -4276,13 +4242,12 @@ exports.Validator = {
|
|
|
4276
4242
|
return obj;
|
|
4277
4243
|
},
|
|
4278
4244
|
create(base) {
|
|
4279
|
-
return exports.Validator.fromPartial(base
|
|
4245
|
+
return exports.Validator.fromPartial(base ?? {});
|
|
4280
4246
|
},
|
|
4281
4247
|
fromPartial(object) {
|
|
4282
|
-
var _a, _b;
|
|
4283
4248
|
const message = createBaseValidator();
|
|
4284
|
-
message.address =
|
|
4285
|
-
message.power =
|
|
4249
|
+
message.address = object.address ?? new Uint8Array();
|
|
4250
|
+
message.power = object.power ?? 0;
|
|
4286
4251
|
return message;
|
|
4287
4252
|
},
|
|
4288
4253
|
};
|
|
@@ -4344,16 +4309,15 @@ exports.ValidatorUpdate = {
|
|
|
4344
4309
|
return obj;
|
|
4345
4310
|
},
|
|
4346
4311
|
create(base) {
|
|
4347
|
-
return exports.ValidatorUpdate.fromPartial(base
|
|
4312
|
+
return exports.ValidatorUpdate.fromPartial(base ?? {});
|
|
4348
4313
|
},
|
|
4349
4314
|
fromPartial(object) {
|
|
4350
|
-
var _a;
|
|
4351
4315
|
const message = createBaseValidatorUpdate();
|
|
4352
4316
|
message.pubKey =
|
|
4353
4317
|
object.pubKey !== undefined && object.pubKey !== null
|
|
4354
4318
|
? keys_1.PublicKey.fromPartial(object.pubKey)
|
|
4355
4319
|
: undefined;
|
|
4356
|
-
message.power =
|
|
4320
|
+
message.power = object.power ?? 0;
|
|
4357
4321
|
return message;
|
|
4358
4322
|
},
|
|
4359
4323
|
};
|
|
@@ -4418,16 +4382,15 @@ exports.VoteInfo = {
|
|
|
4418
4382
|
return obj;
|
|
4419
4383
|
},
|
|
4420
4384
|
create(base) {
|
|
4421
|
-
return exports.VoteInfo.fromPartial(base
|
|
4385
|
+
return exports.VoteInfo.fromPartial(base ?? {});
|
|
4422
4386
|
},
|
|
4423
4387
|
fromPartial(object) {
|
|
4424
|
-
var _a;
|
|
4425
4388
|
const message = createBaseVoteInfo();
|
|
4426
4389
|
message.validator =
|
|
4427
4390
|
object.validator !== undefined && object.validator !== null
|
|
4428
4391
|
? exports.Validator.fromPartial(object.validator)
|
|
4429
4392
|
: undefined;
|
|
4430
|
-
message.signedLastBlock =
|
|
4393
|
+
message.signedLastBlock = object.signedLastBlock ?? false;
|
|
4431
4394
|
return message;
|
|
4432
4395
|
},
|
|
4433
4396
|
};
|
|
@@ -4512,17 +4475,16 @@ exports.ExtendedVoteInfo = {
|
|
|
4512
4475
|
return obj;
|
|
4513
4476
|
},
|
|
4514
4477
|
create(base) {
|
|
4515
|
-
return exports.ExtendedVoteInfo.fromPartial(base
|
|
4478
|
+
return exports.ExtendedVoteInfo.fromPartial(base ?? {});
|
|
4516
4479
|
},
|
|
4517
4480
|
fromPartial(object) {
|
|
4518
|
-
var _a, _b;
|
|
4519
4481
|
const message = createBaseExtendedVoteInfo();
|
|
4520
4482
|
message.validator =
|
|
4521
4483
|
object.validator !== undefined && object.validator !== null
|
|
4522
4484
|
? exports.Validator.fromPartial(object.validator)
|
|
4523
4485
|
: undefined;
|
|
4524
|
-
message.signedLastBlock =
|
|
4525
|
-
message.voteExtension =
|
|
4486
|
+
message.signedLastBlock = object.signedLastBlock ?? false;
|
|
4487
|
+
message.voteExtension = object.voteExtension ?? new Uint8Array();
|
|
4526
4488
|
return message;
|
|
4527
4489
|
},
|
|
4528
4490
|
};
|
|
@@ -4627,19 +4589,18 @@ exports.Misbehavior = {
|
|
|
4627
4589
|
return obj;
|
|
4628
4590
|
},
|
|
4629
4591
|
create(base) {
|
|
4630
|
-
return exports.Misbehavior.fromPartial(base
|
|
4592
|
+
return exports.Misbehavior.fromPartial(base ?? {});
|
|
4631
4593
|
},
|
|
4632
4594
|
fromPartial(object) {
|
|
4633
|
-
var _a, _b, _c, _d;
|
|
4634
4595
|
const message = createBaseMisbehavior();
|
|
4635
|
-
message.type =
|
|
4596
|
+
message.type = object.type ?? 0;
|
|
4636
4597
|
message.validator =
|
|
4637
4598
|
object.validator !== undefined && object.validator !== null
|
|
4638
4599
|
? exports.Validator.fromPartial(object.validator)
|
|
4639
4600
|
: undefined;
|
|
4640
|
-
message.height =
|
|
4641
|
-
message.time =
|
|
4642
|
-
message.totalVotingPower =
|
|
4601
|
+
message.height = object.height ?? 0;
|
|
4602
|
+
message.time = object.time ?? undefined;
|
|
4603
|
+
message.totalVotingPower = object.totalVotingPower ?? 0;
|
|
4643
4604
|
return message;
|
|
4644
4605
|
},
|
|
4645
4606
|
};
|
|
@@ -4741,22 +4702,21 @@ exports.Snapshot = {
|
|
|
4741
4702
|
return obj;
|
|
4742
4703
|
},
|
|
4743
4704
|
create(base) {
|
|
4744
|
-
return exports.Snapshot.fromPartial(base
|
|
4705
|
+
return exports.Snapshot.fromPartial(base ?? {});
|
|
4745
4706
|
},
|
|
4746
4707
|
fromPartial(object) {
|
|
4747
|
-
var _a, _b, _c, _d, _e;
|
|
4748
4708
|
const message = createBaseSnapshot();
|
|
4749
|
-
message.height =
|
|
4750
|
-
message.format =
|
|
4751
|
-
message.chunks =
|
|
4752
|
-
message.hash =
|
|
4753
|
-
message.metadata =
|
|
4709
|
+
message.height = object.height ?? 0;
|
|
4710
|
+
message.format = object.format ?? 0;
|
|
4711
|
+
message.chunks = object.chunks ?? 0;
|
|
4712
|
+
message.hash = object.hash ?? new Uint8Array();
|
|
4713
|
+
message.metadata = object.metadata ?? new Uint8Array();
|
|
4754
4714
|
return message;
|
|
4755
4715
|
},
|
|
4756
4716
|
};
|
|
4757
4717
|
class ABCIApplicationClientImpl {
|
|
4758
4718
|
constructor(rpc, opts) {
|
|
4759
|
-
this.service =
|
|
4719
|
+
this.service = opts?.service || "tendermint.abci.ABCIApplication";
|
|
4760
4720
|
this.rpc = rpc;
|
|
4761
4721
|
this.Echo = this.Echo.bind(this);
|
|
4762
4722
|
this.Flush = this.Flush.bind(this);
|