1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6035],{9492:function(e,o,t){var s,r,a,n,i,d,p,l,c,u,h=this&&this.__createBinding||(Object.create?function(e,o,t,s){void 0===s&&(s=t);var r=Object.getOwnPropertyDescriptor(o,t);(!r||("get"in r?!o.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return o[t]}}),Object.defineProperty(e,s,r)}:function(e,o,t,s){void 0===s&&(s=t),e[s]=o[t]}),m=this&&this.__setModuleDefault||(Object.create?function(e,o){Object.defineProperty(e,"default",{enumerable:!0,value:o})}:function(e,o){e.default=o}),f=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var o={};if(null!=e)for(var t in e)"default"!==t&&Object.prototype.hasOwnProperty.call(e,t)&&h(o,e,t);return m(o,e),o};Object.defineProperty(o,"__esModule",{value:!0}),o.ResponsePrepareProposal=o.ResponseApplySnapshotChunk=o.ResponseLoadSnapshotChunk=o.ResponseOfferSnapshot=o.ResponseListSnapshots=o.ResponseCommit=o.ResponseEndBlock=o.ResponseDeliverTx=o.ResponseCheckTx=o.ResponseBeginBlock=o.ResponseQuery=o.ResponseInitChain=o.ResponseInfo=o.ResponseFlush=o.ResponseEcho=o.ResponseException=o.Response=o.RequestProcessProposal=o.RequestPrepareProposal=o.RequestApplySnapshotChunk=o.RequestLoadSnapshotChunk=o.RequestOfferSnapshot=o.RequestListSnapshots=o.RequestCommit=o.RequestEndBlock=o.RequestDeliverTx=o.RequestCheckTx=o.RequestBeginBlock=o.RequestQuery=o.RequestInitChain=o.RequestInfo=o.RequestFlush=o.RequestEcho=o.Request=o.misbehaviorTypeToJSON=o.misbehaviorTypeFromJSON=o.MisbehaviorType=o.responseProcessProposal_ProposalStatusToJSON=o.responseProcessProposal_ProposalStatusFromJSON=o.ResponseProcessProposal_ProposalStatus=o.responseApplySnapshotChunk_ResultToJSON=o.responseApplySnapshotChunk_ResultFromJSON=o.ResponseApplySnapshotChunk_Result=o.responseOfferSnapshot_ResultToJSON=o.responseOfferSnapshot_ResultFromJSON=o.ResponseOfferSnapshot_Result=o.checkTxTypeToJSON=o.checkTxTypeFromJSON=o.CheckTxType=o.protobufPackage=void 0,o.ABCIApplicationClientImpl=o.Snapshot=o.Misbehavior=o.ExtendedVoteInfo=o.VoteInfo=o.ValidatorUpdate=o.Validator=o.TxResult=o.EventAttribute=o.Event=o.ExtendedCommitInfo=o.CommitInfo=o.ResponseProcessProposal=void 0;let v=t(85522),S=t(87134),k=t(31258),R=t(31494),g=t(30984),y=t(81457),O=f(t(83789));function checkTxTypeFromJSON(e){switch(e){case 0:case"NEW":return d.NEW;case 1:case"RECHECK":return d.RECHECK;default:return d.UNRECOGNIZED}}function checkTxTypeToJSON(e){switch(e){case d.NEW:return"NEW";case d.RECHECK:return"RECHECK";case d.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function responseOfferSnapshot_ResultFromJSON(e){switch(e){case 0:case"UNKNOWN":return p.UNKNOWN;case 1:case"ACCEPT":return p.ACCEPT;case 2:case"ABORT":return p.ABORT;case 3:case"REJECT":return p.REJECT;case 4:case"REJECT_FORMAT":return p.REJECT_FORMAT;case 5:case"REJECT_SENDER":return p.REJECT_SENDER;default:return p.UNRECOGNIZED}}function responseOfferSnapshot_ResultToJSON(e){switch(e){case p.UNKNOWN:return"UNKNOWN";case p.ACCEPT:return"ACCEPT";case p.ABORT:return"ABORT";case p.REJECT:return"REJECT";case p.REJECT_FORMAT:return"REJECT_FORMAT";case p.REJECT_SENDER:return"REJECT_SENDER";case p.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function responseApplySnapshotChunk_ResultFromJSON(e){switch(e){case 0:case"UNKNOWN":return l.UNKNOWN;case 1:case"ACCEPT":return l.ACCEPT;case 2:case"ABORT":return l.ABORT;case 3:case"RETRY":return l.RETRY;case 4:case"RETRY_SNAPSHOT":return l.RETRY_SNAPSHOT;case 5:case"REJECT_SNAPSHOT":return l.REJECT_SNAPSHOT;default:return l.UNRECOGNIZED}}function responseApplySnapshotChunk_ResultToJSON(e){switch(e){case l.UNKNOWN:return"UNKNOWN";case l.ACCEPT:return"ACCEPT";case l.ABORT:return"ABORT";case l.RETRY:return"RETRY";case l.RETRY_SNAPSHOT:return"RETRY_SNAPSHOT";case l.REJECT_SNAPSHOT:return"REJECT_SNAPSHOT";case l.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function responseProcessProposal_ProposalStatusFromJSON(e){switch(e){case 0:case"UNKNOWN":return c.UNKNOWN;case 1:case"ACCEPT":return c.ACCEPT;case 2:case"REJECT":return c.REJECT;default:return c.UNRECOGNIZED}}function responseProcessProposal_ProposalStatusToJSON(e){switch(e){case c.UNKNOWN:return"UNKNOWN";case c.ACCEPT:return"ACCEPT";case c.REJECT:return"REJECT";case c.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function misbehaviorTypeFromJSON(e){switch(e){case 0:case"UNKNOWN":return u.UNKNOWN;case 1:case"DUPLICATE_VOTE":return u.DUPLICATE_VOTE;case 2:case"LIGHT_CLIENT_ATTACK":return u.LIGHT_CLIENT_ATTACK;default:return u.UNRECOGNIZED}}function misbehaviorTypeToJSON(e){switch(e){case u.UNKNOWN:return"UNKNOWN";
1case u.DUPLICATE_VOTE:return"DUPLICATE_VOTE";case u.LIGHT_CLIENT_ATTACK:return"LIGHT_CLIENT_ATTACK";case u.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function createBaseRequest(){return{echo:void 0,flush:void 0,info:void 0,initChain:void 0,query:void 0,beginBlock:void 0,checkTx:void 0,deliverTx:void 0,endBlock:void 0,commit:void 0,listSnapshots:void 0,offerSnapshot:void 0,loadSnapshotChunk:void 0,applySnapshotChunk:void 0,prepareProposal:void 0,processProposal:void 0}}function createBaseRequestEcho(){return{message:""}}function createBaseRequestInfo(){return{version:"",blockVersion:y.Long.UZERO,p2pVersion:y.Long.UZERO,abciVersion:""}}function createBaseRequestInitChain(){return{time:void 0,chainId:"",consensusParams:void 0,validators:[],appStateBytes:new Uint8Array,initialHeight:y.Long.ZERO}}function createBaseRequestQuery(){return{data:new Uint8Array,path:"",height:y.Long.ZERO,prove:!1}}function createBaseRequestBeginBlock(){return{hash:new Uint8Array,header:void 0,lastCommitInfo:void 0,byzantineValidators:[]}}function createBaseRequestCheckTx(){return{tx:new Uint8Array,type:0}}function createBaseRequestDeliverTx(){return{tx:new Uint8Array}}function createBaseRequestEndBlock(){return{height:y.Long.ZERO}}function createBaseRequestOfferSnapshot(){return{snapshot:void 0,appHash:new Uint8Array}}function createBaseRequestLoadSnapshotChunk(){return{height:y.Long.UZERO,format:0,chunk:0}}function createBaseRequestApplySnapshotChunk(){return{index:0,chunk:new Uint8Array,sender:""}}function createBaseRequestPrepareProposal(){return{maxTxBytes:y.Long.ZERO,txs:[],localLastCommit:void 0,misbehavior:[],height:y.Long.ZERO,time:void 0,nextValidatorsHash:new Uint8Array,proposerAddress:new Uint8Array}}function createBaseRequestProcessProposal(){return{txs:[],proposedLastCommit:void 0,misbehavior:[],hash:new Uint8Array,height:y.Long.ZERO,time:void 0,nextValidatorsHash:new Uint8Array,proposerAddress:new Uint8Array}}function createBaseResponse(){return{exception:void 0,echo:void 0,flush:void 0,info:void 0,initChain:void 0,query:void 0,beginBlock:void 0,checkTx:void 0,deliverTx:void 0,endBlock:void 0,commit:void 0,listSnapshots:void 0,offerSnapshot:void 0,loadSnapshotChunk:void 0,applySnapshotChunk:void 0,prepareProposal:void 0,processProposal:void 0}}function createBaseResponseException(){return{error:""}}function createBaseResponseEcho(){return{message:""}}function createBaseResponseInfo(){return{data:"",version:"",appVersion:y.Long.UZERO,lastBlockHeight:y.Long.ZERO,lastBlockAppHash:new Uint8Array}}function createBaseResponseInitChain(){return{consensusParams:void 0,validators:[],appHash:new Uint8Array}}function createBaseResponseQuery(){return{code:0,log:"",info:"",index:y.Long.ZERO,key:new Uint8Array,value:new Uint8Array,proofOps:void 0,height:y.Long.ZERO,codespace:""}}function createBaseResponseBeginBlock(){return{events:[]}}function createBaseResponseCheckTx(){return{code:0,data:new Uint8Array,log:"",info:"",gasWanted:y.Long.ZERO,gasUsed:y.Long.ZERO,events:[],codespace:"",sender:"",priority:y.Long.ZERO,mempoolError:""}}function createBaseResponseDeliverTx(){return{code:0,data:new Uint8Array,log:"",info:"",gasWanted:y.Long.ZERO,gasUsed:y.Long.ZERO,events:[],codespace:""}}function createBaseResponseEndBlock(){return{validatorUpdates:[],consensusParamUpdates:void 0,events:[]}}function createBaseResponseCommit(){return{data:new Uint8Array,retainHeight:y.Long.ZERO}}function createBaseResponseListSnapshots(){return{snapshots:[]}}function createBaseResponseOfferSnapshot(){return{result:0}}
1function createBaseResponseLoadSnapshotChunk(){return{chunk:new Uint8Array}}function createBaseResponseApplySnapshotChunk(){return{result:0,refetchChunks:[],rejectSenders:[]}}function createBaseResponseProcessProposal(){return{status:0}}function createBaseCommitInfo(){return{round:0,votes:[]}}function createBaseExtendedCommitInfo(){return{round:0,votes:[]}}function createBaseEvent(){return{type:"",attributes:[]}}function createBaseEventAttribute(){return{key:"",value:"",index:!1}}function createBaseTxResult(){return{height:y.Long.ZERO,index:0,tx:new Uint8Array,result:void 0}}function createBaseValidator(){return{address:new Uint8Array,power:y.Long.ZERO}}function createBaseValidatorUpdate(){return{pubKey:void 0,power:y.Long.ZERO}}function createBaseVoteInfo(){return{validator:void 0,signedLastBlock:!1}}function createBaseExtendedVoteInfo(){return{validator:void 0,signedLastBlock:!1,voteExtension:new Uint8Array}}function createBaseMisbehavior(){return{type:0,validator:void 0,height:y.Long.ZERO,time:void 0,totalVotingPower:y.Long.ZERO}}function createBaseSnapshot(){return{height:y.Long.UZERO,format:0,chunks:0,hash:new Uint8Array,metadata:new Uint8Array}}o.protobufPackage="tendermint.abci",(s=d=o.CheckTxType||(o.CheckTxType={}))[s.NEW=0]="NEW",s[s.RECHECK=1]="RECHECK",s[s.UNRECOGNIZED=-1]="UNRECOGNIZED",o.checkTxTypeFromJSON=checkTxTypeFromJSON,o.checkTxTypeToJSON=checkTxTypeToJSON,(r=p=o.ResponseOfferSnapshot_Result||(o.ResponseOfferSnapshot_Result={}))[r.UNKNOWN=0]="UNKNOWN",r[r.ACCEPT=1]="ACCEPT",r[r.ABORT=2]="ABORT",r[r.REJECT=3]="REJECT",r[r.REJECT_FORMAT=4]="REJECT_FORMAT",r[r.REJECT_SENDER=5]="REJECT_SENDER",r[r.UNRECOGNIZED=-1]="UNRECOGNIZED",o.responseOfferSnapshot_ResultFromJSON=responseOfferSnapshot_ResultFromJSON,o.responseOfferSnapshot_ResultToJSON=responseOfferSnapshot_ResultToJSON,(a=l=o.ResponseApplySnapshotChunk_Result||(o.ResponseApplySnapshotChunk_Result={}))[a.UNKNOWN=0]="UNKNOWN",a[a.ACCEPT=1]="ACCEPT",a[a.ABORT=2]="ABORT",a[a.RETRY=3]="RETRY",a[a.RETRY_SNAPSHOT=4]="RETRY_SNAPSHOT",a[a.REJECT_SNAPSHOT=5]="REJECT_SNAPSHOT",a[a.UNRECOGNIZED=-1]="UNRECOGNIZED",o.responseApplySnapshotChunk_ResultFromJSON=responseApplySnapshotChunk_ResultFromJSON,o.responseApplySnapshotChunk_ResultToJSON=responseApplySnapshotChunk_ResultToJSON,(n=c=o.ResponseProcessProposal_ProposalStatus||(o.ResponseProcessProposal_ProposalStatus={}))[n.UNKNOWN=0]="UNKNOWN",n[n.ACCEPT=1]="ACCEPT",n[n.REJECT=2]="REJECT",n[n.UNRECOGNIZED=-1]="UNRECOGNIZED",o.responseProcessProposal_ProposalStatusFromJSON=responseProcessProposal_ProposalStatusFromJSON,o.responseProcessProposal_ProposalStatusToJSON=responseProcessProposal_ProposalStatusToJSON,(i=u=o.MisbehaviorType||(o.MisbehaviorType={}))[i.UNKNOWN=0]="UNKNOWN",i[i.DUPLICATE_VOTE=1]="DUPLICATE_VOTE",i[i.LIGHT_CLIENT_ATTACK=2]="LIGHT_CLIENT_ATTACK",i[i.UNRECOGNIZED=-1]="UNRECOGNIZED",o.misbehaviorTypeFromJSON=misbehaviorTypeFromJSON,o.misbehaviorTypeToJSON=misbehaviorTypeToJSON,o.Request={encode:(e,t=O.Writer.create())=>(void 0!==e.echo&&o.RequestEcho.encode(e.echo,t.uint32(10).fork()).ldelim(),void 0!==e.flush&&o.RequestFlush.encode(e.flush,t.uint32(18).fork()).ldelim(),void 0!==e.info&&o.RequestInfo.encode(e.info,t.uint32(26).fork()).ldelim(),void 0!==e.initChain&&o.RequestInitChain.encode(e.initChain,t.uint32(42).fork()).ldelim(),void 0!==e.query&&o.RequestQuery.encode(e.query,t.uint32(50).fork()).ldelim(),void 0!==e.beginBlock&&o.RequestBeginBlock.encode(e.beginBlock,t.uint32(58).fork()).ldelim(),void 0!==e.checkTx&&o.RequestCheckTx.encode(e.checkTx,t.uint32(66).fork()).ldelim(),void 0!==e.deliverTx&&o.RequestDeliverTx.encode(e.deliverTx,t.uint32(74).fork()).ldelim(),void 0!==e.endBlock&&o.RequestEndBlock.encode(e.endBlock,t.uint32(82).fork()).ldelim(),void 0!==e.commit&&o.RequestCommit.encode(e.commit,t.uint32(90).fork()).ldelim(),void 0!==e.listSnapshots&&o.RequestListSnapshots.encode(e.listSnapshots,t.uint32(98).fork()).ldelim(),void 0!==e.offerSnapshot&&o.RequestOfferSnapshot.encode(e.offerSnapshot,t.uint32(106).fork()).ldelim(),void 0!==e.loadSnapshotChunk&&o.RequestLoadSnapshotChunk.encode(e.loadSnapsh
1otChunk,t.uint32(114).fork()).ldelim(),void 0!==e.applySnapshotChunk&&o.RequestApplySnapshotChunk.encode(e.applySnapshotChunk,t.uint32(122).fork()).ldelim(),void 0!==e.prepareProposal&&o.RequestPrepareProposal.encode(e.prepareProposal,t.uint32(130).fork()).ldelim(),void 0!==e.processProposal&&o.RequestProcessProposal.encode(e.processProposal,t.uint32(138).fork()).ldelim(),t),decode(e,t){let s=e instanceof O.Reader?e:new O.Reader(e),r=void 0===t?s.len:s.pos+t,a=createBaseRequest();for(;s.pos<r;){let e=s.uint32();switch(e>>>3){case 1:a.echo=o.RequestEcho.decode(s,s.uint32());break;case 2:a.flush=o.RequestFlush.decode(s,s.uint32());break;case 3:a.info=o.RequestInfo.decode(s,s.uint32());break;case 5:a.initChain=o.RequestInitChain.decode(s,s.uint32());break;case 6:a.query=o.RequestQuery.decode(s,s.uint32());break;case 7:a.beginBlock=o.RequestBeginBlock.decode(s,s.uint32());break;case 8:a.checkTx=o.RequestCheckTx.decode(s,s.uint32());break;case 9:a.deliverTx=o.RequestDeliverTx.decode(s,s.uint32());break;case 10:a.endBlock=o.RequestEndBlock.decode(s,s.uint32());break;case 11:a.commit=o.RequestCommit.decode(s,s.uint32());break;case 12:a.listSnapshots=o.RequestListSnapshots.decode(s,s.uint32());break;case 13:a.offerSnapshot=o.RequestOfferSnapshot.decode(s,s.uint32());break;case 14:a.loadSnapshotChunk=o.RequestLoadSnapshotChunk.decode(s,s.uint32());break;case 15:a.applySnapshotChunk=o.RequestApplySnapshotChunk.decode(s,s.uint32());break;case 16:a.prepareProposal=o.RequestPrepareProposal.decode(s,s.uint32());break;case 17:a.processProposal=o.RequestProcessProposal.decode(s,s.uint32());break;default:s.skipType(7&e)}}return a},fromJSON:e=>({echo:(0,y.isSet)(e.echo)?o.RequestEcho.fromJSON(e.echo):void 0,flush:(0,y.isSet)(e.flush)?o.RequestFlush.fromJSON(e.flush):void 0,info:(0,y.isSet)(e.info)?o.RequestInfo.fromJSON(e.info):void 0,initChain:(0,y.isSet)(e.initChain)?o.RequestInitChain.fromJSON(e.initChain):void 0,query:(0,y.isSet)(e.query)?o.RequestQuery.fromJSON(e.query):void 0,beginBlock:(0,y.isSet)(e.beginBlock)?o.RequestBeginBlock.fromJSON(e.beginBlock):void 0,checkTx:(0,y.isSet)(e.checkTx)?o.RequestCheckTx.fromJSON(e.checkTx):void 0,deliverTx:(0,y.isSet)(e.deliverTx)?o.RequestDeliverTx.fromJSON(e.deliverTx):void 0,endBlock:(0,y.isSet)(e.endBlock)?o.RequestEndBlock.fromJSON(e.endBlock):void 0,commit:(0,y.isSet)(e.commit)?o.RequestCommit.fromJSON(e.commit):void 0,listSnapshots:(0,y.isSet)(e.listSnapshots)?o.RequestListSnapshots.fromJSON(e.listSnapshots):void 0,offerSnapshot:(0,y.isSet)(e.offerSnapshot)?o.RequestOfferSnapshot.fromJSON(e.offerSnapshot):void 0,loadSnapshotChunk:(0,y.isSet)(e.loadSnapshotChunk)?o.RequestLoadSnapshotChunk.fromJSON(e.loadSnapshotChunk):void 0,applySnapshotChunk:(0,y.isSet)(e.applySnapshotChunk)?o.RequestApplySnapshotChunk.fromJSON(e.applySnapshotChunk):void 0,prepareProposal:(0,y.isSet)(e.prepareProposal)?o.RequestPrepareProposal.fromJSON(e.prepareProposal):void 0,processProposal:(0,y.isSet)(e.processProposal)?o.RequestProcessProposal.fromJSON(e.processProposal):void 0}),toJSON(e){let t={};return void 0!==e.echo&&(t.echo=e.echo?o.RequestEcho.toJSON(e.echo):void 0),void 0!==e.flush&&(t.flush=e.flush?o.RequestFlush.toJSON(e.flush):void 0),void 0!==e.info&&(t.info=e.info?o.RequestInfo.toJSON(e.info):void 0),void 0!==e.initChain&&(t.initChain=e.initChain?o.RequestInitChain.toJSON(e.initChain):void 0),void 0!==e.query&&(t.query=e.query?o.RequestQuery.toJSON(e.query):void 0),void 0!==e.beginBlock&&(t.beginBlock=e.beginBlock?o.RequestBeginBlock.toJSON(e.beginBlock):void 0),void 0!==e.checkTx&&(t.checkTx=e.checkTx?o.RequestCheckTx.toJSON(e.checkTx):void 0),void 0!==e.deliverTx&&(t.deliverTx=e.deliverTx?o.RequestDeliverTx.toJSON(e.deliverTx):void 0),void 0!==e.endBlock&&(t.endBlock=e.endBlock?o.RequestEndBlock.toJSON(e.endBlock):void 0),void 0!==e.commit&&(t.commit=e.commit?o.RequestCommit.toJSON(e.commit):void 0),void 0!==e.listSnapshots&&(t.listSnapshots=e.listSnapshots?o.RequestListSnapshots.toJSON(e.listSnapshots):void 0),void 0!==e.offerSnapshot&&(t.offerSnapshot=e.offerSnapshot?o.RequestOfferSnapshot.toJSON(e.offerSnapshot):void 0),void 0!==e.loadSnapsh
1otChunk&&(t.loadSnapshotChunk=e.loadSnapshotChunk?o.RequestLoadSnapshotChunk.toJSON(e.loadSnapshotChunk):void 0),void 0!==e.applySnapshotChunk&&(t.applySnapshotChunk=e.applySnapshotChunk?o.RequestApplySnapshotChunk.toJSON(e.applySnapshotChunk):void 0),void 0!==e.prepareProposal&&(t.prepareProposal=e.prepareProposal?o.RequestPrepareProposal.toJSON(e.prepareProposal):void 0),void 0!==e.processProposal&&(t.processProposal=e.processProposal?o.RequestProcessProposal.toJSON(e.processProposal):void 0),t},fromPartial(e){let t=createBaseRequest();return t.echo=void 0!==e.echo&&null!==e.echo?o.RequestEcho.fromPartial(e.echo):void 0,t.flush=void 0!==e.flush&&null!==e.flush?o.RequestFlush.fromPartial(e.flush):void 0,t.info=void 0!==e.info&&null!==e.info?o.RequestInfo.fromPartial(e.info):void 0,t.initChain=void 0!==e.initChain&&null!==e.initChain?o.RequestInitChain.fromPartial(e.initChain):void 0,t.query=void 0!==e.query&&null!==e.query?o.RequestQuery.fromPartial(e.query):void 0,t.beginBlock=void 0!==e.beginBlock&&null!==e.beginBlock?o.RequestBeginBlock.fromPartial(e.beginBlock):void 0,t.checkTx=void 0!==e.checkTx&&null!==e.checkTx?o.RequestCheckTx.fromPartial(e.checkTx):void 0,t.deliverTx=void 0!==e.deliverTx&&null!==e.deliverTx?o.RequestDeliverTx.fromPartial(e.deliverTx):void 0,t.endBlock=void 0!==e.endBlock&&null!==e.endBlock?o.RequestEndBlock.fromPartial(e.endBlock):void 0,t.commit=void 0!==e.commit&&null!==e.commit?o.RequestCommit.fromPartial(e.commit):void 0,t.listSnapshots=void 0!==e.listSnapshots&&null!==e.listSnapshots?o.RequestListSnapshots.fromPartial(e.listSnapshots):void 0,t.offerSnapshot=void 0!==e.offerSnapshot&&null!==e.offerSnapshot?o.RequestOfferSnapshot.fromPartial(e.offerSnapshot):void 0,t.loadSnapshotChunk=void 0!==e.loadSnapshotChunk&&null!==e.loadSnapshotChunk?o.RequestLoadSnapshotChunk.fromPartial(e.loadSnapshotChunk):void 0,t.applySnapshotChunk=void 0!==e.applySnapshotChunk&&null!==e.applySnapshotChunk?o.RequestApplySnapshotChunk.fromPartial(e.applySnapshotChunk):void 0,t.prepareProposal=void 0!==e.prepareProposal&&null!==e.prepareProposal?o.RequestPrepareProposal.fromPartial(e.prepareProposal):void 0,t.processProposal=void 0!==e.processProposal&&null!==e.processProposal?o.RequestProcessProposal.fromPartial(e.processProposal):void 0,t}},o.RequestEcho={encode:(e,o=O.Writer.create())=>(""!==e.message&&o.uint32(10).string(e.message),o),decode(e,o){let t=e instanceof O.Reader?e:new O.Reader(e),s=void 0===o?t.len:t.pos+o,r=createBaseRequestEcho();for(;t.pos<s;){let e=t.uint32();e>>>3==1?r.message=t.string():t.skipType(7&e)}return r},fromJSON:e=>({message:(0,y.isSet)(e.message)?String(e.message):""}),toJSON(e){let o={};return void 0!==e.message&&(o.message=e.message),o},fromPartial(e){let o=createBaseRequestEcho();return o.message=e.message??"",o}},o.RequestFlush={encode:(e,o=O.Writer.create())=>o,decode(e,o){let t=e instanceof O.Reader?e:new O.Reader(e),s=void 0===o?t.len:t.pos+o;for(;t.pos<s;){let e=t.uint32();t.skipType(7&e)}return{}},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},o.RequestInfo={encode:(e,o=O.Writer.create())=>(""!==e.version&&o.uint32(10).string(e.version),e.blockVersion.isZero()||o.uint32(16).uint64(e.blockVersion),e.p2pVersion.isZero()||o.uint32(24).uint64(e.p2pVersion),""!==e.abciVersion&&o.uint32(34).string(e.abciVersion),o),decode(e,o){let t=e instanceof O.Reader?e:new O.Reader(e),s=void 0===o?t.len:t.pos+o,r=createBaseRequestInfo();for(;t.pos<s;){let e=t.uint32();switch(e>>>3){case 1:r.version=t.string();break;case 2:r.blockVersion=t.uint64();break;case 3:r.p2pVersion=t.uint64();break;case 4:r.abciVersion=t.string();break;default:t.skipType(7&e)}}return r},fromJSON:e=>({version:(0,y.isSet)(e.version)?String(e.version):"",blockVersion:(0,y.isSet)(e.blockVersion)?y.Long.fromValue(e.blockVersion):y.Long.UZERO,p2pVersion:(0,y.isSet)(e.p2pVersion)?y.Long.fromValue(e.p2pVersion):y.Long.UZERO,abciVersion:(0,y.isSet)(e.abciVersion)?String(e.abciVersion):""}),toJSON(e){let o={};return void 0!==e.version&&(o.version=e.version),void 0!==e.blockVersion&&(o.blockVersion=(e.blockVersion||y.Long.UZERO).toString()),void 0!==e.p2pVersion&&(o.p2pVersion=(e.p2pVersion||y.Long.UZERO).toString()),void 0!==e.abciVersion&&(o.abciVersion=e.abciVersion),o},fromPartial(e){let o=createBaseRequestInfo();return o.version=e.version??"",o.blockVersion=void 0!==e.blockVersion&&null!==e.blockVersion?y.Long.fromValue(e.blockVersion):y.Long.UZERO,o.p2pVersion=void 0!==e.p2pVersion&&null!==e.p2pVersion?y.Long.fromValue(e.p2pVersion):y.Long.UZERO,o.abciVersion=e.abciVersion??"",o}},o.RequestInitChain={encode(e,t=O.Writer.create()){for(let s of(void 0!==e.time&&v.Timestamp.encode(e.time,t.uint32(10).fork()).ldelim(),""!==e.chainId&&t.uint32(18).string(e.chainId),void 0!==e.consensusParams&&S.ConsensusParams.encode(e.consensusParams,t.uint32(26).fork()).ldelim(),e.validators))o.ValidatorUpdate.encode(s,t.uint32(34).fork()).ldelim();return 0!==e.appStateBytes.length&&t.uint32(42).bytes(e.appStateBytes),e.
1initialHeight.isZero()||t.uint32(48).int64(e.initialHeight),t},decode(e,t){let s=e instanceof O.Reader?e:new O.Reader(e),r=void 0===t?s.len:s.pos+t,a=createBaseRequestInitChain();for(;s.pos<r;){let e=s.uint32();switch(e>>>3){case 1:a.time=v.Timestamp.decode(s,s.uint32());break;case 2:a.chainId=s.string();break;case 3:a.consensusParams=S.ConsensusParams.decode(s,s.uint32());break;case 4:a.validators.push(o.ValidatorUpdate.decode(s,s.uint32()));break;case 5:a.appStateBytes=s.bytes();break;case 6:a.initialHeight=s.int64();break;default:s.skipType(7&e)}}return a},fromJSON:e=>({time:(0,y.isSet)(e.time)?(0,y.fromJsonTimestamp)(e.time):void 0,chainId:(0,y.isSet)(e.chainId)?String(e.chainId):"",consensusParams:(0,y.isSet)(e.consensusParams)?S.ConsensusParams.fromJSON(e.consensusParams):void 0,validators:Array.isArray(e?.validators)?e.validators.map(e=>o.ValidatorUpdate.fromJSON(e)):[],appStateBytes:(0,y.isSet)(e.appStateBytes)?(0,y.bytesFromBase64)(e.appStateBytes):new Uint8Array,initialHeight:(0,y.isSet)(e.initialHeight)?y.Long.fromValue(e.initialHeight):y.Long.ZERO}),toJSON(e){let t={};return void 0!==e.time&&(t.time=(0,y.fromTimestamp)(e.time).toISOString()),void 0!==e.chainId&&(t.chainId=e.chainId),void 0!==e.consensusParams&&(t.consensusParams=e.consensusParams?S.ConsensusParams.toJSON(e.consensusParams):void 0),e.validators?t.validators=e.validators.map(e=>e?o.ValidatorUpdate.toJSON(e):void 0):t.validators=[],void 0!==e.appStateBytes&&(t.appStateBytes=(0,y.base64FromBytes)(void 0!==e.appStateBytes?e.appStateBytes:new Uint8Array)),void 0!==e.initialHeight&&(t.initialHeight=(e.initialHeight||y.Long.ZERO).toString()),t},fromPartial(e){let t=createBaseRequestInitChain();return t.time=void 0!==e.time&&null!==e.time?v.Timestamp.fromPartial(e.time):void 0,t.chainId=e.chainId??"",t.consensusParams=void 0!==e.consensusParams&&null!==e.consensusParams?S.ConsensusParams.fromPartial(e.consensusParams):void 0,t.validators=e.validators?.map(e=>o.ValidatorUpdate.fromPartial(e))||[],t.appStateBytes=e.appStateBytes??new Uint8Array,t.initialHeight=void 0!==e.initialHeight&&null!==e.initialHeight?y.Long.fromValue(e.initialHeight):y.Long.ZERO,t}},o.RequestQuery={encode:(e,o=O.Writer.create())=>(0!==e.data.length&&o.uint32(10).bytes(e.data),""!==e.path&&o.uint32(18).string(e.path),e.height.isZero()||o.uint32(24).int64(e.height),!0===e.prove&&o.uint32(32).bool(e.prove),o),decode(e,o){let t=e instanceof O.Reader?e:new O.Reader(e),s=void 0===o?t.len:t.pos+o,r=createBaseRequestQuery();for(;t.pos<s;){let e=t.uint32();switch(e>>>3){case 1:r.data=t.bytes();break;case 2:r.path=t.string();break;case 3:r.height=t.int64();break;case 4:r.prove=t.bool();break;default:t.skipType(7&e)}}return r},fromJSON:e=>({data:(0,y.isSet)(e.data)?(0,y.bytesFromBase64)(e.data):new Uint8Array,path:(0,y.isSet)(e.path)?String(e.path):"",height:(0,y.isSet)(e.height)?y.Long.fromValue(e.height):y.Long.ZERO,prove:!!(0,y.isSet)(e.prove)&&!!e.prove}),toJSON(e){let o={};return void 0!==e.data&&(o.data=(0,y.base64FromBytes)(void 0!==e.data?e.data:new Uint8Array)),void 0!==e.path&&(o.path=e.path),void 0!==e.height&&(o.height=(e.height||y.Long.ZERO).toString()),void 0!==e.prove&&(o.prove=e.prove),o},fromPartial(e){let o=createBaseRequestQuery();return o.data=e.data??new Uint8Array,o.path=e.path??"",o.height=void 0!==e.height&&null!==e.height?y.Long.fromValue(e.height):y.Long.ZERO,o.prove=e.prove??!1,o}},o.RequestBeginBlock={encode(e,t=O.Writer.create()){for(let s of(0!==e.hash.length&&t.uint32(10).bytes(e.hash),void 0!==e.header&&k.Header.encode(e.header,t.uint32(18).fork()).ldelim(),void 0!==e.lastCommitInfo&&o.CommitInfo.encode(e.lastCommitInfo,t.uint32(26).fork()).ldelim(),e.byzantineValidators))o.Misbehavior.encode(s,t.uint32(34).fork()).ldelim();return t},decode(e,t){let s=e instanceof O.Reader?e:new O.Reader(e),r=void 0===t?s.len:s.pos+t,a=createBaseRequestBeginBlock();for(;s.pos<r;){let e=s.uint32();switch(e>>>3){case 1:a.hash=s.bytes();break;case 2:a.header=k.Header.decode(s,s.uint32());break;case 3:a.lastCommitInfo=o.CommitInfo.decode(s,s.uint32());break;case 4:a.byzantineValidators.push(o.Misbehavior.decode(s,s.uint32()));break;default:s.skipType(7&e)}}return a},fromJSON:e=>({hash:(0,y.isSet)(e.hash)?(0,y.bytesFromBase64)(e.hash):new Uint8Array,header:(0,y.isSet)(e.header)?k.Header.fromJSON(e.header):void 0,lastCommitInfo:(0,y.isSet)(e.lastCommitInfo)?o.CommitInfo.fromJSON(e.last
1CommitInfo):void 0,byzantineValidators:Array.isArray(e?.byzantineValidators)?e.byzantineValidators.map(e=>o.Misbehavior.fromJSON(e)):[]}),toJSON(e){let t={};return void 0!==e.hash&&(t.hash=(0,y.base64FromBytes)(void 0!==e.hash?e.hash:new Uint8Array)),void 0!==e.header&&(t.header=e.header?k.Header.toJSON(e.header):void 0),void 0!==e.lastCommitInfo&&(t.lastCommitInfo=e.lastCommitInfo?o.CommitInfo.toJSON(e.lastCommitInfo):void 0),e.byzantineValidators?t.byzantineValidators=e.byzantineValidators.map(e=>e?o.Misbehavior.toJSON(e):void 0):t.byzantineValidators=[],t},fromPartial(e){let t=createBaseRequestBeginBlock();return t.hash=e.hash??new Uint8Array,t.header=void 0!==e.header&&null!==e.header?k.Header.fromPartial(e.header):void 0,t.lastCommitInfo=void 0!==e.lastCommitInfo&&null!==e.lastCommitInfo?o.CommitInfo.fromPartial(e.lastCommitInfo):void 0,t.byzantineValidators=e.byzantineValidators?.map(e=>o.Misbehavior.fromPartial(e))||[],t}},o.RequestCheckTx={encode:(e,o=O.Writer.create())=>(0!==e.tx.length&&o.uint32(10).bytes(e.tx),0!==e.type&&o.uint32(16).int32(e.type),o),decode(e,o){let t=e instanceof O.Reader?e:new O.Reader(e),s=void 0===o?t.len:t.pos+o,r=createBaseRequestCheckTx();for(;t.pos<s;){let e=t.uint32();switch(e>>>3){case 1:r.tx=t.bytes();break;case 2:r.type=t.int32();break;default:t.skipType(7&e)}}return r},fromJSON:e=>({tx:(0,y.isSet)(e.tx)?(0,y.bytesFromBase64)(e.tx):new Uint8Array,type:(0,y.isSet)(e.type)?checkTxTypeFromJSON(e.type):0}),toJSON(e){let o={};return void 0!==e.tx&&(o.tx=(0,y.base64FromBytes)(void 0!==e.tx?e.tx:new Uint8Array)),void 0!==e.type&&(o.type=checkTxTypeToJSON(e.type)),o},fromPartial(e){let o=createBaseRequestCheckTx();return o.tx=e.tx??new Uint8Array,o.type=e.type??0,o}},o.RequestDeliverTx={encode:(e,o=O.Writer.create())=>(0!==e.tx.length&&o.uint32(10).bytes(e.tx),o),decode(e,o){let t=e instanceof O.Reader?e:new O.Reader(e),s=void 0===o?t.len:t.pos+o,r=createBaseRequestDeliverTx();for(;t.pos<s;){let e=t.uint32();e>>>3==1?r.tx=t.bytes():t.skipType(7&e)}return r},fromJSON:e=>({tx:(0,y.isSet)(e.tx)?(0,y.bytesFromBase64)(e.tx):new Uint8Array}),toJSON(e){let o={};return void 0!==e.tx&&(o.tx=(0,y.base64FromBytes)(void 0!==e.tx?e.tx:new Uint8Array)),o},fromPartial(e){let o=createBaseRequestDeliverTx();return o.tx=e.tx??new Uint8Array,o}},o.RequestEndBlock={encode:(e,o=O.Writer.create())=>(e.height.isZero()||o.uint32(8).int64(e.height),o),decode(e,o){let t=e instanceof O.Reader?e:new O.Reader(e),s=void 0===o?t.len:t.pos+o,r=createBaseRequestEndBlock();for(;t.pos<s;){let e=t.uint32();e>>>3==1?r.height=t.int64():t.skipType(7&e)}return r},fromJSON:e=>({height:(0,y.isSet)(e.height)?y.Long.fromValue(e.height):y.Long.ZERO}),toJSON(e){let o={};return void 0!==e.height&&(o.height=(e.height||y.Long.ZERO).toString()),o},fromPartial(e){let o=createBaseRequestEndBlock();return o.height=void 0!==e.height&&null!==e.height?y.Long.fromValue(e.height):y.Long.ZERO,o}},o.RequestCommit={encode:(e,o=O.Writer.create())=>o,decode(e,o){let t=e instanceof O.Reader?e:new O.Reader(e),s=void 0===o?t.len:t.pos+o;for(;t.pos<s;){let e=t.uint32();t.skipType(7&e)}return{}},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},o.RequestListSnapshots={encode:(e,o=O.Writer.create())=>o,decode(e,o){let t=e instanceof O.Reader?e:new O.Reader(e),s=void 0===o?t.len:t.pos+o;for(;t.pos<s;){let e=t.uint32();t.skipType(7&e)}return{}},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},o.RequestOfferSnapshot={encode:(e,t=O.Writer.create())=>(void 0!==e.snapshot&&o.Snapshot.encode(e.snapshot,t.uint32(10).fork()).ldelim(),0!==e.appHash.length&&t.uint32(18).bytes(e.appHash),t),decode(e,t){let s=e instanceof O.Reader?e:new O.Reader(e),r=void 0===t?s.len:s.pos+t,a=createBaseRequestOfferSnapshot();for(;s.pos<r;){let e=s.uint32();switch(e>>>3){case 1:a.snapshot=o.Snapshot.decode(s,s.uint32());break;case 2:a.appHash=s.bytes();break;default:s.skipType(7&e)}}return a},fromJSON:e=>({snapshot:(0,y.isSet)(e.snapshot)?o.Snapshot.fromJSON(e.snapshot):void 0,appHash:(0,y.isSet)(e.appHash)?(0,y.bytesFromBase64)(e.appHash):new Uint8Array}),toJSON(e){let t={};return void 0!==e.snapshot&&(t.snapshot=e.snapshot?o.Snapshot.toJSON(e.snapshot):void 0),void 0!==e.appHash&&(t.appHash=(0,y.base64FromBytes)(void 0!==e.appHash?e.appHash:new Uint8Array)),t},fromPartial(e){let t=createBaseRequestOfferSnapshot();return t.snapshot=void 0!==e.snapshot&&null!==e.snapshot?o.Snapshot.fromPartial(e.snapshot):void 0,t.appHash=e.appHash??new Uint8Array,t}}
1,o.RequestLoadSnapshotChunk={encode:(e,o=O.Writer.create())=>(e.height.isZero()||o.uint32(8).uint64(e.height),0!==e.format&&o.uint32(16).uint32(e.format),0!==e.chunk&&o.uint32(24).uint32(e.chunk),o),decode(e,o){let t=e instanceof O.Reader?e:new O.Reader(e),s=void 0===o?t.len:t.pos+o,r=createBaseRequestLoadSnapshotChunk();for(;t.pos<s;){let e=t.uint32();switch(e>>>3){case 1:r.height=t.uint64();break;case 2:r.format=t.uint32();break;case 3:r.chunk=t.uint32();break;default:t.skipType(7&e)}}return r},fromJSON:e=>({height:(0,y.isSet)(e.height)?y.Long.fromValue(e.height):y.Long.UZERO,format:(0,y.isSet)(e.format)?Number(e.format):0,chunk:(0,y.isSet)(e.chunk)?Number(e.chunk):0}),toJSON(e){let o={};return void 0!==e.height&&(o.height=(e.height||y.Long.UZERO).toString()),void 0!==e.format&&(o.format=Math.round(e.format)),void 0!==e.chunk&&(o.chunk=Math.round(e.chunk)),o},fromPartial(e){let o=createBaseRequestLoadSnapshotChunk();return o.height=void 0!==e.height&&null!==e.height?y.Long.fromValue(e.height):y.Long.UZERO,o.format=e.format??0,o.chunk=e.chunk??0,o}},o.RequestApplySnapshotChunk={encode:(e,o=O.Writer.create())=>(0!==e.index&&o.uint32(8).uint32(e.index),0!==e.chunk.length&&o.uint32(18).bytes(e.chunk),""!==e.sender&&o.uint32(26).string(e.sender),o),decode(e,o){let t=e instanceof O.Reader?e:new O.Reader(e),s=void 0===o?t.len:t.pos+o,r=createBaseRequestApplySnapshotChunk();for(;t.pos<s;){let e=t.uint32();switch(e>>>3){case 1:r.index=t.uint32();break;case 2:r.chunk=t.bytes();break;case 3:r.sender=t.string();break;default:t.skipType(7&e)}}return r},fromJSON:e=>({index:(0,y.isSet)(e.index)?Number(e.index):0,chunk:(0,y.isSet)(e.chunk)?(0,y.bytesFromBase64)(e.chunk):new Uint8Array,sender:(0,y.isSet)(e.sender)?String(e.sender):""}),toJSON(e){let o={};return void 0!==e.index&&(o.index=Math.round(e.index)),void 0!==e.chunk&&(o.chunk=(0,y.base64FromBytes)(void 0!==e.chunk?e.chunk:new Uint8Array)),void 0!==e.sender&&(o.sender=e.sender),o},fromPartial(e){let o=createBaseRequestApplySnapshotChunk();return o.index=e.index??0,o.chunk=e.chunk??new Uint8Array,o.sender=e.sender??"",o}},o.RequestPrepareProposal={encode(e,t=O.Writer.create()){for(let o of(e.maxTxBytes.isZero()||t.uint32(8).int64(e.maxTxBytes),e.txs))t.uint32(18).bytes(o);for(let s of(void 0!==e.localLastCommit&&o.ExtendedCommitInfo.encode(e.localLastCommit,t.uint32(26).fork()).ldelim(),e.misbehavior))o.Misbehavior.encode(s,t.uint32(34).fork()).ldelim();return e.height.isZero()||t.uint32(40).int64(e.height),void 0!==e.time&&v.Timestamp.encode(e.time,t.uint32(50).fork()).ldelim(),0!==e.nextValidatorsHash.length&&t.uint32(58).bytes(e.nextValidatorsHash),0!==e.proposerAddress.length&&t.uint32(66).bytes(e.proposerAddress),t},decode(e,t){let s=e instanceof O.Reader?e:new O.Reader(e),r=void 0===t?s.len:s.pos+t,a=createBaseRequestPrepareProposal();for(;s.pos<r;){let e=s.uint32();switch(e>>>3){case 1:a.maxTxBytes=s.int64();break;case 2:a.txs.push(s.bytes());break;case 3:a.localLastCommit=o.ExtendedCommitInfo.decode(s,s.uint32());break;case 4:a.misbehavior.push(o.Misbehavior.decode(s,s.uint32()));break;case 5:a.height=s.int64();break;case 6:a.time=v.Timestamp.decode(s,s.uint32());break;case 7:a.nextValidatorsHash=s.bytes();break;case 8:a.proposerAddress=s.bytes();break;default:s.skipType(7&e)}}return a},fromJSON:e=>({maxTxBytes:(0,y.isSet)(e.maxTxBytes)?y.Long.fromValue(e.maxTxBytes):y.Long.ZERO,txs:Array.isArray(e?.txs)?e.txs.map(e=>(0,y.bytesFromBase64)(e)):[],localLastCommit:(0,y.isSet)(e.localLastCommit)?o.ExtendedCommitInfo.fromJSON(e.localLastCommit):void 0,misbehavior:Array.isArray(e?.misbehavior)?e.misbehavior.map(e=>o.Misbehavior.fromJSON(e)):[],height:(0,y.isSet)(e.height)?y.Long.fromValue(e.height):y.Long.ZERO,time:(0,y.isSet)(e.time)?(0,y.fromJsonTimestamp)(e.time):void 0,nextValidatorsHash:(0,y.isSet)(e.nextValidatorsHash)?(0,y.bytesFromBase64)(e.nextValidatorsHash):new Uint8Array,proposerAddress:(0,y.isSet)(e.proposerAddress)?(0,y.bytesFromBase64)(e.proposerAddress):new Uint8Array}),toJSON(e){let t={};return void 0!==e.maxTxBytes&&(t.maxTxBytes=(e.maxTxBytes||y.Long.ZERO).toString()),e.txs?t.txs=e.txs.map(e=>(0,y.base64FromBytes)(void 0!==e?e:new Uint8Array)):t.txs=[],void 0!==e.localLastCommit&&(t.localLastCommit=e.localLastCommit?o.ExtendedCommitInfo.toJSON(e.localLastCommit):void 0),e.misbehavior?t.misbehavior=e.misbehavior.map(e=>e?o.Misbehavior.toJSON(e):void 0):t.misbehavior=[],void 0!==e.height&&(t.height=(e.height||y.Long.ZERO).toString()),void 0!==e.time&&(t.time=(0,y.fromTimestamp)(e.time).toISOString()),void 0!==e.nextValidatorsHash&&(t.nextValidatorsHash=(0,y.base64FromBytes)(void 0!==e.nextValidatorsHash?e.nextValidatorsHash:new Uint8Array)),void 0!==e.proposerAddress&&(t.proposerAddress=(0,y.base64FromBytes)(void 0!==e.proposerAddress?e.proposerAddress:new Uint8Array)),t},fromPartial(e){let t=createBaseRequestPrepareProposal();return t.maxTxBytes=void 0!==e.maxTxBytes&&null!==e.maxTxBytes?y.Long.fromValue(e.maxTxBytes):y.Long.ZERO,t.txs=e.txs?.map(e=>e)||[],t.localLastCommit=void 0!==e.localLastCommit&&null!==e.localLastCommit?o.ExtendedCommitInfo.fromPartial(e.localLastCommit):void 0,t.misbehavior=e.misbehavior?.map(e=>o.Misbehavior.fromPartial(e))||[],t.height=void 0!==e.height&&null!==e.height?y.Long.fromValue(e.height):y.Long.ZERO,t.time=void 0!==e.time&&null!==e.time?v.Timestamp.fromPartial(e.time):void 0,t.nextValidatorsHash=e.nextValidatorsHash??new Uint8Array,t.proposerAddress=e.proposerAddress??new Uint8Array,t}},o.RequestProcessProposal={encode(e,t=O.Writer.create()){for(let o of e.txs)t.uint32(10).bytes(o);for(let s of(void 0!==e.proposedLastCommit&&o.CommitInfo.encode(e.proposedLastCommit,t.uint32(18).fork()).ldelim(),e.misbehavior))o.Misbehavior.encode(s,t.uint32(26).fork()).ldelim();return 0!==e.hash.length&&t.uint32(34).bytes(e.hash),e.height.isZero()||t.uint32(40).int64(e.height),void 0!==e.time&&v.Timestamp.encode(e.time,t.uint32(50).fork()).ldelim(),0!==e.nextValidatorsHash.length&&t.uint32(58).bytes(e.nextValidatorsHash
1),0!==e.proposerAddress.length&&t.uint32(66).bytes(e.proposerAddress),t},decode(e,t){let s=e instanceof O.Reader?e:new O.Reader(e),r=void 0===t?s.len:s.pos+t,a=createBaseRequestProcessProposal();for(;s.pos<r;){let e=s.uint32();switch(e>>>3){case 1:a.txs.push(s.bytes());break;case 2:a.proposedLastCommit=o.CommitInfo.decode(s,s.uint32());break;case 3:a.misbehavior.push(o.Misbehavior.decode(s,s.uint32()));break;case 4:a.hash=s.bytes();break;case 5:a.height=s.int64();break;case 6:a.time=v.Timestamp.decode(s,s.uint32());break;case 7:a.nextValidatorsHash=s.bytes();break;case 8:a.proposerAddress=s.bytes();break;default:s.skipType(7&e)}}return a},fromJSON:e=>({txs:Array.isArray(e?.txs)?e.txs.map(e=>(0,y.bytesFromBase64)(e)):[],proposedLastCommit:(0,y.isSet)(e.proposedLastCommit)?o.CommitInfo.fromJSON(e.proposedLastCommit):void 0,misbehavior:Array.isArray(e?.misbehavior)?e.misbehavior.map(e=>o.Misbehavior.fromJSON(e)):[],hash:(0,y.isSet)(e.hash)?(0,y.bytesFromBase64)(e.hash):new Uint8Array,height:(0,y.isSet)(e.height)?y.Long.fromValue(e.height):y.Long.ZERO,time:(0,y.isSet)(e.time)?(0,y.fromJsonTimestamp)(e.time):void 0,nextValidatorsHash:(0,y.isSet)(e.nextValidatorsHash)?(0,y.bytesFromBase64)(e.nextValidatorsHash):new Uint8Array,proposerAddress:(0,y.isSet)(e.proposerAddress)?(0,y.bytesFromBase64)(e.proposerAddress):new Uint8Array}),toJSON(e){let t={};return e.txs?t.txs=e.txs.map(e=>(0,y.base64FromBytes)(void 0!==e?e:new Uint8Array)):t.txs=[],void 0!==e.proposedLastCommit&&(t.proposedLastCommit=e.proposedLastCommit?o.CommitInfo.toJSON(e.proposedLastCommit):void 0),e.misbehavior?t.misbehavior=e.misbehavior.map(e=>e?o.Misbehavior.toJSON(e):void 0):t.misbehavior=[],void 0!==e.hash&&(t.hash=(0,y.base64FromBytes)(void 0!==e.hash?e.hash:new Uint8Array)),void 0!==e.height&&(t.height=(e.height||y.Long.ZERO).toString()),void 0!==e.time&&(t.time=(0,y.fromTimestamp)(e.time).toISOString()),void 0!==e.nextValidatorsHash&&(t.nextValidatorsHash=(0,y.base64FromBytes)(void 0!==e.nextValidatorsHash?e.nextValidatorsHash:new Uint8Array)),void 0!==e.proposerAddress&&(t.proposerAddress=(0,y.base64FromBytes)(void 0!==e.proposerAddress?e.proposerAddress:new Uint8Array)),t},fromPartial(e){let t=createBaseRequestProcessProposal();return t.txs=e.txs?.map(e=>e)||[],t.proposedLastCommit=void 0!==e.proposedLastCommit&&null!==e.proposedLastCommit?o.CommitInfo.fromPartial(e.proposedLastCommit):void 0,t.misbehavior=e.misbehavior?.map(e=>o.Misbehavior.fromPartial(e))||[],t.hash=e.hash??new Uint8Array,t.height=void 0!==e.height&&null!==e.height?y.Long.fromValue(e.height):y.Long.ZERO,t.time=void 0!==e.time&&null!==e.time?v.Timestamp.fromPartial(e.time):void 0,t.nextValidatorsHash=e.nextValidatorsHash??new Uint8Array,t.proposerAddress=e.proposerAddress??new Uint8Array,t}},o.Response={encode:(e,t=O.Writer.create())=>(void 0!==e.exception&&o.ResponseException.encode(e.exception,t.uint32(10).fork()).ldelim(),void 0!==e.echo&&o.ResponseEcho.encode(e.echo,t.uint32(18).fork()).ldelim(),void 0!==e.flush&&o.ResponseFlush.encode(e.flush,t.uint32(26).fork()).ldelim(),void 0!==e.info&&o.ResponseInfo.encode(e.info,t.uint32(34).fork()).ldelim(),void 0!==e.initChain&&o.ResponseInitChain.encode(e.initChain,t.uint32(50).fork()).ldelim(),void 0!==e.query&&o.ResponseQuery.encode(e.query,t.uint32(58).fork()).ldelim(),void 0!==e.beginBlock&&o.ResponseBeginBlock.encode(e.beginBlock,t.uint32(66).fork()).ldelim(),void 0!==e.checkTx&&o.ResponseCheckTx.encode(e.checkTx,t.uint32(74).fork()).ldelim(),void 0!==e.deliverTx&&o.ResponseDeliverTx.encode(e.deliverTx,t.uint32(82).fork()).ldelim(),void 0!==e.endBlock&&o.ResponseEndBlock.encode(e.endBlock,t.uint32(90).fork()).ldelim(),void 0!==e.commit&&o.ResponseCommit.encode(e.commit,t.uint32(98).fork()).ldelim(),void 0!==e.listSnapshots&&o.ResponseListSnapshots.encode(e.listSnapshots,t.uint32(106).fork()).ldelim(),void 0!==e.offerSnapshot&&o.ResponseOfferSnapshot.encode(e.offerSnapshot,t.uint32(114).fork()).ldelim(),void 0!==e.loadSnapshotChunk&&o.ResponseLoadSnapsh
1otChunk.encode(e.loadSnapshotChunk,t.uint32(122).fork()).ldelim(),void 0!==e.applySnapshotChunk&&o.ResponseApplySnapshotChunk.encode(e.applySnapshotChunk,t.uint32(130).fork()).ldelim(),void 0!==e.prepareProposal&&o.ResponsePrepareProposal.encode(e.prepareProposal,t.uint32(138).fork()).ldelim(),void 0!==e.processProposal&&o.ResponseProcessProposal.encode(e.processProposal,t.uint32(146).fork()).ldelim(),t),decode(e,t){let s=e instanceof O.Reader?e:new O.Reader(e),r=void 0===t?s.len:s.pos+t,a=createBaseResponse();for(;s.pos<r;){let e=s.uint32();switch(e>>>3){case 1:a.exception=o.ResponseException.decode(s,s.uint32());break;case 2:a.echo=o.ResponseEcho.decode(s,s.uint32());break;case 3:a.flush=o.ResponseFlush.decode(s,s.uint32());break;case 4:a.info=o.ResponseInfo.decode(s,s.uint32());break;case 6:a.initChain=o.ResponseInitChain.decode(s,s.uint32());break;case 7:a.query=o.ResponseQuery.decode(s,s.uint32());break;case 8:a.beginBlock=o.ResponseBeginBlock.decode(s,s.uint32());break;case 9:a.checkTx=o.ResponseCheckTx.decode(s,s.uint32());break;case 10:a.deliverTx=o.ResponseDeliverTx.decode(s,s.uint32());break;case 11:a.endBlock=o.ResponseEndBlock.decode(s,s.uint32());break;case 12:a.commit=o.ResponseCommit.decode(s,s.uint32());break;case 13:a.listSnapshots=o.ResponseListSnapshots.decode(s,s.uint32());break;case 14:a.offerSnapshot=o.ResponseOfferSnapshot.decode(s,s.uint32());break;
1case 15:a.loadSnapshotChunk=o.ResponseLoadSnapshotChunk.decode(s,s.uint32());break;case 16:a.applySnapshotChunk=o.ResponseApplySnapshotChunk.decode(s,s.uint32());break;case 17:a.prepareProposal=o.ResponsePrepareProposal.decode(s,s.uint32());break;case 18:a.processProposal=o.ResponseProcessProposal.decode(s,s.uint32());break;default:s.skipType(7&e)}}return a},fromJSON:e=>({exception:(0,y.isSet)(e.exception)?o.ResponseException.fromJSON(e.exception):void 0,echo:(0,y.isSet)(e.echo)?o.ResponseEcho.fromJSON(e.echo):void 0,flush:(0,y.isSet)(e.flush)?o.ResponseFlush.fromJSON(e.flush):void 0,info:(0,y.isSet)(e.info)?o.ResponseInfo.fromJSON(e.info):void 0,initChain:(0,y.isSet)(e.initChain)?o.ResponseInitChain.fromJSON(e.initChain):void 0,query:(0,y.isSet)(e.query)?o.ResponseQuery.fromJSON(e.query):void 0,beginBlock:(0,y.isSet)(e.beginBlock)?o.ResponseBeginBlock.fromJSON(e.beginBlock):void 0,checkTx:(0,y.isSet)(e.checkTx)?o.ResponseCheckTx.fromJSON(e.checkTx):void 0,deliverTx:(0,y.isSet)(e.deliverTx)?o.ResponseDeliverTx.fromJSON(e.deliverTx):void 0,endBlock:(0,y.isSet)(e.endBlock)?o.ResponseEndBlock.fromJSON(e.endBlock):void 0,commit:(0,y.isSet)(e.commit)?o.ResponseCommit.fromJSON(e.commit):void 0,listSnapshots:(0,y.isSet)(e.listSnapshots)?o.ResponseListSnapshots.fromJSON(e.listSnapshots):void 0,offerSnapshot:(0,y.isSet)(e.offerSnapshot)?o.ResponseOfferSnapshot.fromJSON(e.offerSnapshot):void 0,loadSnapshotChunk:(0,y.isSet)(e.loadSnapshotChunk)?o.ResponseLoadSnapsh
1otChunk.fromJSON(e.loadSnapshotChunk):void 0,applySnapshotChunk:(0,y.isSet)(e.applySnapshotChunk)?o.ResponseApplySnapshotChunk.fromJSON(e.applySnapshotChunk):void 0,prepareProposal:(0,y.isSet)(e.prepareProposal)?o.ResponsePrepareProposal.fromJSON(e.prepareProposal):void 0,processProposal:(0,y.isSet)(e.processProposal)?o.ResponseProcessProposal.fromJSON(e.processProposal):void 0}),toJSON(e){let t={};return void 0!==e.exception&&(t.exception=e.exception?o.ResponseException.toJSON(e.exception):void 0),void 0!==e.echo&&(t.echo=e.echo?o.ResponseEcho.toJSON(e.echo):void 0),void 0!==e.flush&&(t.flush=e.flush?o.ResponseFlush.toJSON(e.flush):void 0),void 0!==e.info&&(t.info=e.info?o.ResponseInfo.toJSON(e.info):void 0),void 0!==e.initChain&&(t.initChain=e.initChain?o.ResponseInitChain.toJSON(e.initChain):void 0),void 0!==e.query&&(t.query=e.query?o.ResponseQuery.toJSON(e.query):void 0),void 0!==e.beginBlock&&(t.beginBlock=e.beginBlock?o.ResponseBeginBlock.toJSON(e.beginBlock):void 0),void 0!==e.checkTx&&(t.checkTx=e.checkTx?o.ResponseCheckTx.toJSON(e.checkTx):void 0),void 0!==e.deliverTx&&(t.deliverTx=e.deliverTx?o.ResponseDeliverTx.toJSON(e.deliverTx):void 0),void 0!==e.endBlock&&(t.endBlock=e.endBlock?o.ResponseEndBlock.toJSON(e.endBlock):void 0),void 0!==e.commit&&(t.commit=e.commit?o.ResponseCommit.toJSON(e.commit):void 0),void 0!==e.listSnapshots&&(t.listSnapshots=e.listSnapshots?o.ResponseListSnapshots.toJSON(e.listSnapshots):void 0),void 0!==e.offerSnapshot&&(t.offerSnapshot=e.offerSnapshot?o.ResponseOfferSnapshot.toJSON(e.offerSnapshot):void 0),void 0!==e.loadSnapshotChunk&&(t.loadSnapshotChunk=e.loadSnapshotChunk?o.ResponseLoadSnapsh
1otChunk.toJSON(e.loadSnapshotChunk):void 0),void 0!==e.applySnapshotChunk&&(t.applySnapshotChunk=e.applySnapshotChunk?o.ResponseApplySnapshotChunk.toJSON(e.applySnapshotChunk):void 0),void 0!==e.prepareProposal&&(t.prepareProposal=e.prepareProposal?o.ResponsePrepareProposal.toJSON(e.prepareProposal):void 0),void 0!==e.processProposal&&(t.processProposal=e.processProposal?o.ResponseProcessProposal.toJSON(e.processProposal):void 0),t},fromPartial(e){let t=createBaseResponse();return t.exception=void 0!==e.exception&&null!==e.exception?o.ResponseException.fromPartial(e.exception):void 0,t.echo=void 0!==e.echo&&null!==e.echo?o.ResponseEcho.fromPartial(e.echo):void 0,t.flush=void 0!==e.flush&&null!==e.flush?o.ResponseFlush.fromPartial(e.flush):void 0,t.info=void 0!==e.info&&null!==e.info?o.ResponseInfo.fromPartial(e.info):void 0,t.initChain=void 0!==e.initChain&&null!==e.initChain?o.ResponseInitChain.fromPartial(e.initChain):void 0,t.query=void 0!==e.query&&null!==e.query?o.ResponseQuery.fromPartial(e.query):void 0,t.beginBlock=void 0!==e.beginBlock&&null!==e.beginBlock?o.ResponseBeginBlock.fromPartial(e.beginBlock):void 0,t.checkTx=void 0!==e.checkTx&&null!==e.checkTx?o.ResponseCheckTx.fromPartial(e.checkTx):void 0,t.deliverTx=void 0!==e.deliverTx&&null!==e.deliverTx?o.ResponseDeliverTx.fromPartial(e.deliverTx):void 0,t.endBlock=void 0!==e.endBlock&&null!==e.endBlock?o.ResponseEndBlock.fromPartial(e.endBlock):void 0,t.commit=void 0!==e.commit&&null!==e.commit?o.ResponseCommit.fromPartial(e.commit):void 0,t.listSnapshots=void 0!==e.listSnapshots&&null!==e.listSnapshots?o.ResponseListSnapshots.fromPartial(e.listSnapshots):void 0,t.offerSnapshot=void 0!==e.offerSnapshot&&null!==e.offerSnapshot?o.ResponseOfferSnapshot.fromPartial(e.offerSnapshot):void 0,t.loadSnapshotChunk=void 0!==e.loadSnapshotChunk&&null!==e.loadSnapshotChunk?o.ResponseLoadSnapsh
1otChunk.fromPartial(e.loadSnapshotChunk):void 0,t.applySnapshotChunk=void 0!==e.applySnapshotChunk&&null!==e.applySnapshotChunk?o.ResponseApplySnapshotChunk.fromPartial(e.applySnapshotChunk):void 0,t.prepareProposal=void 0!==e.prepareProposal&&null!==e.prepareProposal?o.ResponsePrepareProposal.fromPartial(e.prepareProposal):void 0,t.processProposal=void 0!==e.processProposal&&null!==e.processProposal?o.ResponseProcessProposal.fromPartial(e.processProposal):void 0,t}},o.ResponseException={encode:(e,o=O.Writer.create())=>(""!==e.error&&o.uint32(10).string(e.error),o),decode(e,o){let t=e instanceof O.Reader?e:new O.Reader(e),s=void 0===o?t.len:t.pos+o,r=createBaseResponseException();for(;t.pos<s;){let e=t.uint32();e>>>3==1?r.error=t.string():t.skipType(7&e)}return r},fromJSON:e=>({error:(0,y.isSet)(e.error)?String(e.error):""}),toJSON(e){let o={};return void 0!==e.error&&(o.error=e.error),o},fromPartial(e){let o=createBaseResponseException();return o.error=e.error??"",o}},o.ResponseEcho={encode:(e,o=O.Writer.create())=>(""!==e.message&&o.uint32(10).string(e.message),o),decode(e,o){let t=e instanceof O.Reader?e:new O.Reader(e),s=void 0===o?t.len:t.pos+o,r=createBaseResponseEcho();for(;t.pos<s;){let e=t.uint32();e>>>3==1?r.message=t.string():t.skipType(7&e)}return r},fromJSON:e=>({message:(0,y.isSet)(e.message)?String(e.message):""}),toJSON(e){let o={};return void 0!==e.message&&(o.message=e.message),o},fromPartial(e){let o=createBaseResponseEcho();return o.message=e.message??"",o}},o.ResponseFlush={encode:(e,o=O.Writer.create())=>o,decode(e,o){let t=e instanceof O.Reader?e:new O.Reader(e),s=void 0===o?t.len:t.pos+o;for(;t.pos<s;){let e=t.uint32();t.skipType(7&e)}return{}},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},o.ResponseInfo={encode:(e,o=O.Writer.create())=>(""!==e.data&&o.uint32(10).string(e.data),""!==e.version&&o.uint32(18).string(e.version),e.appVersion.isZero()||o.uint32(24).uint64(e.appVersion),e.lastBlockHeight.isZero()||o.uint32(32).int64(e.lastBlockHeight),0!==e.lastBlockAppHash.length&&o.uint32(42).bytes(e.lastBlockAppHash),o),decode(e,o){let t=e instanceof O.Reader?e:new O.Reader(e),s=void 0===o?t.len:t.pos+o,r=createBaseResponseInfo();for(;t.pos<s;){let e=t.uint32();switch(e>>>3){case 1:r.data=t.string();break;case 2:r.version=t.string();break;case 3:r.appVersion=t.uint64();break;case 4:r.lastBlockHeight=t.int64();break;case 5:r.lastBlockAppHash=t.bytes();break;default:t.skipType(7&e)}}return r},fromJSON:e=>({data:(0,y.isSet)(e.data)?String(e.data):"",version:(0,y.isSet)(e.version)?String(e.version):"",appVersion:(0,y.isSet)(e.appVersion)?y.Long.fromValue(e.appVersion):y.Long.UZERO,lastBlockHeight:(0,y.isSet)(e.lastBlockHeight)?y.Long.fromValue(e.lastBlockHeight):y.Long.ZERO,lastBlockAppHash:(0,y.isSet)(e.lastBlockAppHash)?(0,y.bytesFromBase64)(e.lastBlockAppHash):new Uint8Array}),toJSON(e){let o={};return void 0!==e.data&&(o.data=e.data),void 0!==e.version&&(o.version=e.version),void 0!==e.appVersion&&(o.appVersion=(e.appVersion||y.Long.UZERO).toString()),void 0!==e.lastBlockHeight&&(o.lastBlockHeight=(e.lastBlockHeight||y.Long.ZERO).toString()),void 0!==e.lastBlockAppHash&&(o.lastBlockAppHash=(0,y.base64FromBytes)(void 0!==e.lastBlockAppHash?e.lastBlockAppHash:new Uint8Array)),o},fromPartial(e){let o=createBaseResponseInfo();return o.data=e.data??"",o.version=e.version??"",o.appVersion=void 0!==e.appVersion&&null!==e.appVersion?y.Long.fromValue(e.appVersion):y.Long.UZERO,o.lastBlockHeight=void 0!==e.lastBlockHeight&&null!==e.lastBlockHeight?y.Long.fromValue(e.lastBlockHeight):y.Long.ZERO,o.lastBlockAppHash=e.lastBlockAppHash??new Uint8Array,o}},o.ResponseInitChain={encode(e,t=O.Writer.create()){for(let s of(void 0!==e.consensusParams&&S.ConsensusParams.encode(e.consensusParams,t.uint32(10).fork()).ldelim(),e.validators))o.ValidatorUpdate.encode(s,t.uint32(18).fork()).ldelim();return 0!==e.appHash.length&&t.uint32(26).bytes(e.appHash),t},decode(e,t){let s=e instanceof O.Reader?e:new O.Reader(e),r=void 0===t?s.len:s.pos+t,a=createBaseResponseInitChain();for(;s.pos<r;){let e=s.uint32();switch(e>>>3){case 1:a.consensusParams=S.ConsensusParams.decode(s,s.uint32());break;case 2:a.validators.push(o.ValidatorUpdate.decode(s,s.uint32()));break;case 3:a.appHash=s.bytes();break;default:s.skipType(7&e)}}return a},fromJSON:e=>({consensusParams:(0,y.isSet)(e.consensusParams)?S.ConsensusParams.fromJSON(e.consensusParams):void 0,validators:Array.isArray(e?.validators)?e.validators.map(e=>o.ValidatorUpdate.fromJSON(e)):[],appHash:(0,y.isSet)(e.appHash)?(0,y.bytesFromBase64)(e.appHash):new Uint8Array}),toJSON(e){let t={};return void 0!==e.consensusParams&&(t.consensusParams=e.consensusParams?S.ConsensusParams.toJSON(e.consensusParams):void 0),e.validators?t.validators=e.validators.map(e=>e?o.ValidatorUpdate.toJSON(e):void 0):t.validators=[],void 0!==e.appHash&&(t.appHash=(0,y.base64FromBytes)(void 0!==e.appHash?e.appHash:new Uint8Array)),t},fromPartial(e){let t=createBaseResponseInitChain();return t.consensusParams=void 0!==e.consensusParams&&null!==e.consensusParams?S.ConsensusParams.fromPartial(e.consensusParams):void 0,t.validators=e.validators?.map(e=>o.ValidatorUpdate.fromPartial(e))||[],t.appHash=e.appHash??new Uint8Array,t}},o.ResponseQuery={encode:(e,o=O.Writer.create())=>(0!==e.code&&o.uint32(8).uint32(e.code),""!==e.log&&o.uint32(26).string(e.log),""!==e.info&&o.uint32(34).string(e.info),e.index.isZero()||o.uint32(40).int64(e.index),0!==e.ke
1y.length&&o.uint32(50).bytes(e.key),0!==e.value.length&&o.uint32(58).bytes(e.value),void 0!==e.proofOps&&R.ProofOps.encode(e.proofOps,o.uint32(66).fork()).ldelim(),e.height.isZero()||o.uint32(72).int64(e.height),""!==e.codespace&&o.uint32(82).string(e.codespace),o),decode(e,o){let t=e instanceof O.Reader?e:new O.Reader(e),s=void 0===o?t.len:t.pos+o,r=createBaseResponseQuery();for(;t.pos<s;){let e=t.uint32();switch(e>>>3){case 1:r.code=t.uint32();break;case 3:r.log=t.string();break;case 4:r.info=t.string();break;case 5:r.index=t.int64();break;case 6:r.key=t.bytes();break;case 7:r.value=t.bytes();break;case 8:r.proofOps=R.ProofOps.decode(t,t.uint32());break;case 9:r.height=t.int64();break;case 10:r.codespace=t.string();break;default:t.skipType(7&e)}}return r},fromJSON:e=>({code:(0,y.isSet)(e.code)?Number(e.code):0,log:(0,y.isSet)(e.log)?String(e.log):"",info:(0,y.isSet)(e.info)?String(e.info):"",index:(0,y.isSet)(e.index)?y.Long.fromValue(e.index):y.Long.ZERO,key:(0,y.isSet)(e.key)?(0,y.bytesFromBase64)(e.key):new Uint8Array,value:(0,y.isSet)(e.value)?(0,y.bytesFromBase64)(e.value):new Uint8Array,proofOps:(0,y.isSet)(e.proofOps)?R.ProofOps.fromJSON(e.proofOps):void 0,height:(0,y.isSet)(e.height)?y.Long.fromValue(e.height):y.Long.ZERO,codespace:(0,y.isSet)(e.codespace)?String(e.codespace):""}),toJSON(e){let o={};return void 0!==e.code&&(o.code=Math.round(e.code)),void 0!==e.log&&(o.log=e.log),void 0!==e.info&&(o.info=e.info),void 0!==e.index&&(o.index=(e.index||y.Long.ZERO).toString()),void 0!==e.ke
1y&&(o.key=(0,y.base64FromBytes)(void 0!==e.key?e.key:new Uint8Array)),void 0!==e.value&&(o.value=(0,y.base64FromBytes)(void 0!==e.value?e.value:new Uint8Array)),void 0!==e.proofOps&&(o.proofOps=e.proofOps?R.ProofOps.toJSON(e.proofOps):void 0),void 0!==e.height&&(o.height=(e.height||y.Long.ZERO).toString()),void 0!==e.codespace&&(o.codespace=e.codespace),o},fromPartial(e){let o=createBaseResponseQuery();return o.code=e.code??0,o.log=e.log??"",o.info=e.info??"",o.index=void 0!==e.index&&null!==e.index?y.Long.fromValue(e.index):y.Long.ZERO,o.key=e.key??new Uint8Array,o.value=e.value??new Uint8Array,o.proofOps=void 0!==e.proofOps&&null!==e.proofOps?R.ProofOps.fromPartial(e.proofOps):void 0,o.height=void 0!==e.height&&null!==e.height?y.Long.fromValue(e.height):y.Long.ZERO,o.codespace=e.codespace??"",o}},o.ResponseBeginBlock={encode(e,t=O.Writer.create()){for(let s of e.events)o.Event.encode(s,t.uint32(10).fork()).ldelim();return t},decode(e,t){let s=e instanceof O.Reader?e:new O.Reader(e),r=void 0===t?s.len:s.pos+t,a=createBaseResponseBeginBlock();for(;s.pos<r;){let e=s.uint32();e>>>3==1?a.events.push(o.Event.decode(s,s.uint32())):s.skipType(7&e)}return a},fromJSON:e=>({events:Array.isArray(e?.events)?e.events.map(e=>o.Event.fromJSON(e)):[]}),toJSON(e){let t={};return e.events?t.events=e.events.map(e=>e?o.Event.toJSON(e):void 0):t.events=[],t},fromPartial(e){let t=createBaseResponseBeginBlock();return t.events=e.events?.map(e=>o.Event.fromPartial(e))||[],t}},o.ResponseCheckTx={encode(e,t=O.Writer.create()){for(let s of(0!==e.code&&t.uint32(8).uint32(e.code),0!==e.data.length&&t.uint32(18).bytes(e.data),""!==e.log&&t.uint32(26).string(e.log),""!==e.info&&t.uint32(34).string(e.info),e.gasWanted.isZero()||t.uint32(40).int64(e.gasWanted),e.gasUsed.isZero()||t.uint32(48).int64(e.gasUsed),e.events))o.Event.encode(s,t.uint32(58).fork()).ldelim();return""!==e.codespace&&t.uint32(66).string(e.codespace),""!==e.sender&&t.uint32(74).string(e.sender),e.priority.isZero()||t.uint32(80).int64(e.priority),""!==e.mempoolError&&t.uint32(90).string(e.mempoolError),t},decode(e,t){let s=e instanceof O.Reader?e:new O.Reader(e),r=void 0===t?s.len:s.pos+t,a=createBaseResponseCheckTx();for(;s.pos<r;){let e=s.uint32();switch(e>>>3){case 1:a.code=s.uint32();break;case 2:a.data=s.bytes();break;case 3:a.log=s.string();break;case 4:a.info=s.string();break;case 5:a.gasWanted=s.int64();break;case 6:a.gasUsed=s.int64();break;case 7:a.events.push(o.Event.decode(s,s.uint32()));break;case 8:a.codespace=s.string();break;case 9:a.sender=s.string();break;case 10:a.priority=s.int64();break;case 11:a.mempoolError=s.string();break;default:s.skipType(7&e)}}return a},fromJSON:e=>({code:(0,y.isSet)(e.code)?Number(e.code):0,data:(0,y.isSet)(e.data)?(0,y.bytesFromBase64)(e.data):new Uint8Array,log:(0,y.isSet)(e.log)?String(e.log):"",info:(0,y.isSet)(e.info)?String(e.info):"",gasWanted:(0,y.isSet)(e.gas_wanted)?y.Long.fromValue(e.gas_wanted):y.Long.ZERO,gasUsed:(0,y.isSet)(e.gas_used)?y.Long.fromValue(e.gas_used):y.Long.ZERO,events:Array.isArray(e?.events)?e.events.map(e=>o.Event.fromJSON(e)):[],codespace:(0,y.isSet)(e.codespace)?String(e.codespace):"",sender:(0,y.isSet)(e.sender)?String(e.sender):"",priority:(0,y.isSet)(e.priority)?y.Long.fromValue(e.priority):y.Long.ZERO,mempoolError:(0,y.isSet)(e.mempoolError)?String(e.mempoolError):""}),toJSON(e){let t={};return void 0!==e.code&&(t.code=Math.round(e.code)),void 0!==e.data&&(t.data=(0,y.base64FromBytes)(void 0!==e.data?e.data:new Uint8Array)),void 0!==e.log&&(t.log=e.log),void 0!==e.info&&(t.info=e.info),void 0!==e.gasWanted&&(t.gas_wanted=(e.gasWanted||y.Long.ZERO).toString()),void 0!==e.gasUsed&&(t.gas_used=(e.gasUsed||y.Long.ZERO).toString()),e.events?t.events=e.events.map(e=>e?o.Event.toJSON(e):void 0):t.events=[],void 0!==e.codespace&&(t.codespace=e.codespace),void 0!==e.sender&&(t.sender=e.sender),void 0!==e.priority&&(t.priority=(e.priority||y.Long.ZERO).toString()),void 0!==e.mempoolError&&(t.mempoolError=e.mempoolError),t},fromPartial(e){let t=createBaseResponseCheckTx();return t.code=e.code??0,t.data=e.data??new Uint8Array,t.log=e.log??"",t.info=e.info??"",t.gasWanted=void 0!==e.gasWanted&&null!==e.gasWanted?y.Long.fromValue(e.gasWanted):y.Long.ZERO,t.gasUsed=void 0!==e.gasUsed&&null!==e.gasUsed?y.Long.fromValue(e.gasUsed):y.Long.ZERO,t.events=e.events?.map(e=>o.Event.fromPartial(e))||[],t.codespace=e.codespace??"",t.sender=e.sender??"",t.priority=void 0!==e.priority&&null!==e.priority?y.Long.fromValue(e.priority):y.Long.ZERO,t.mempoolError=e.mempoolError??"",t}},o.ResponseDeliverTx={encode(e,t=O.Writer.create()){for(let s of(0!==e.code&&t.uint32(8).uint32(e.code),0!==e.data.length&&t.uint32(18).bytes(e.data),""!==e.log&&t.uint32(26).string(e.log),""!==e.info&&t.uint32(34).string(e.info),e.gasWanted.isZero()||t.uint32(40).int64(e.gasWanted),e.gasUsed.isZero()||t.uint32(48).int64(e.gasUsed),e.events))o.Event.encode(s,t.uint32(58).fork()).ldelim();return""!==e.codespace&&t.uint32(66).string(e.codespace),t},decode(e,t){let s=e instanceof O.Reader?e:new O.Reader(e),r=void 0===t?s.len:s.pos+t,a=createBaseResponseDeliverTx();for(;s.pos<r;){let e=s.uint32();switch(e>>>3){case 1:a.code=s.uint32();break;case 2:a.data=s.bytes();break;case 3:a.log=s.string();break;case 4:a.info=s.string();break;case 5:a.gasWanted=s.int64();break;case 6:a.gasUsed=s.int64();break;case 7:a.events.push(o.Event.decode(s,s.uint32()));break;case 8:a.codespace=s.string();break;default:s.skipType(7&e)}}return a},fromJSON:e=>({code:(0,y.isSet)(e.code)?Number(e.code):0,data:(0,y.isSet)(e.data)?(0,y.bytesFromBase64)(e.data):new Uint8Array,log:(0,y.isSet)(e.log)?String(e.log):"",info:(0,y.isSet)(e.info)?String(e.info):"",gasWanted:(0,y.isSet)(e.gas_wanted)?y.Long.fromValue(e.gas_wanted):y.Long.ZERO,gasUsed:(0,y.isSet)(e.gas_used)?y.Long.fromValue(e.gas_used):y.Long.ZERO,events:Array.isArray(e?.events)?e.events.map(e=>o.Event.fromJSON(e)):[],codespace:(0,y.isSet)(e.codespace)?String(e.codespace):""}),toJSON(e){let t={};return void 0!==e.code&&(t.code=Math.round(e.code)),void 0!==e.data&&(t.data=(0,y.base64FromBytes)(void 0!==e.data?e.data:new Uint8Array)),void 0!==e.log&&(t.log=e.log),void 0!==e.info&&(t.info=e.info),void 0!==e.gasWanted&&(t.gas_wanted=(e.gasWanted||y.Long.ZERO).toString()),void 0!==e.gasUsed&&(t.gas_used=(e.gasUsed||y.Long.ZERO).toString()),e.events?t.events=e.events.map(e=>e?o.Event.toJSON(e):void 0):t.events=[],void 0!==e.codespace&&(t.codespace=e.codespace),t},fromPartial(e){let t=createBaseResponseDeliverTx();return t.code=e.code??0,t.data=e.data??new Uint8Array,t.log=e.log??"",t.info=e.info??"",t.gasWanted=void 0!==e.gasWanted&&null!==e.gasWanted?y.Long.fromValue(e.gasWanted):y.Long.ZERO,t.gasUsed=void 0!==e.gasUsed&&null!==e.gasUsed?y.Long.fromValue(e.gasUsed):y.Long.ZERO,t.events=e.events?.map(e=>o.Event.fromPartial(e))||[],t.codespace=e.codespace??"",t}},o.ResponseEndBlock={encode(e,t=O.Writer.create()){for(let s of e.validatorUpdates)o.ValidatorUpdate.encode(s,t.uint32(10).fork()).ldelim();for(let s of(void 0!==e.consensusParamUpdates&&S.ConsensusParams.encode(e.consensusParamUpdates,t.uint32(18).fork()).ldelim(),e.events))o.Event.encode(s,t.uint32(26).fork()).ldelim();return t},decode(e,t){let s=e instanceof O.Reader?e:new O.Reader(e),r=void 0===t?s.len:s.pos+t,a=createBaseResponseEndBlock();for(;s.pos<r;){let e=s.uint32();switch(e>>>3){case 1:a.validatorUpdates.push(o.ValidatorUpdate.decode(s,s.uint32()));break;case 2:a.consensusParamUpdates=S.ConsensusParams.decode(s,s.uint32());break;case 3:a.events.push(o.Event.decode(s,s.uint32()));break;default:s.skipType(7&e)}}return a},fromJSON:e=>({validatorUpdates:Array.isArray(e?.validatorUpdates)?e.validatorUpdates.map(e=>o.ValidatorUpdate.fromJSON(e)):[],consensusParamUpdates:(0,y.isSet)(e.consensusParamUpdates)?S.ConsensusParams.fromJSON(e.consensusParamUpdates):void 0,events:Array.isArray(e?.events)?e.events.map(e=>o.Event.fromJSON(e)):[]}),toJSON(e){let t={};return e.validatorUpdates?t.validatorUpdates=e.validatorUpdates.map(e=>e?o.ValidatorUpdate.toJSON(e):void 0):t.validatorUpdates=[],void 0!==e.consensusParamUpdates&&(t.consensusParamUpdates=e.consensusParamUpdates?S.ConsensusParams.toJSON(e.consensusParamUpdates):void 0),e.events?t.events=e.events.map(e=>e?o.Event.toJSON(e):void 0):t.events=[],t},fromPartial(e){let t=createBaseResponseEndBlock();return t.validatorUpdates=e.validatorUpdates?.map(e=>o.ValidatorUpdate.fromPartial(e))||[],t.consensusParamUpdates=void 0!==e.consensusParamUpdates&&null!==e.consensusParamUpdates?S.ConsensusParams.fromPartial(e.consensusParamUpdates):void 0,t.events=e.events?.map(e=>o.Event.fromPartial(e))||[],t}},o.ResponseCommit={encode:(e,o=O.Writer.create())=>(0!==e.data.length&&o.uint32(18).bytes(e.data),e.retainHeight.isZero()||o.uint32(24).int64(e.retainHeight),o),decode(e,o){let t=e instanceof O.Reader?e:new O.Reader(e),s=void 0===o?t.len:t.pos+o,r=createBaseResponseCommit();for(;t.pos<s;){let e=t.uint32();switch(e>>>3){case 2:r.data=t.bytes();break;case 3:r.retainHeight=t.int64();break;default:t.skipType(7&e)}}return r},fromJSON:e=>({data:(0,y.isSet)(e.data)?(0,y.bytesFromBase64)(e.data):new Uint8Array,retainHeight:(0,y.isSet)(e.retainHeight)?y.Long.fromValue(e.retainHeight):y.Long.ZERO}),toJSON(e){let o={};return void 0!==e.data&&(o.data=(0,y.base64FromBytes)(void 0!==e.data?e.data:new Uint8Array)),void 0!==e.retainHeight&&(o.retainHeight=(e.retainHeight||y.Long.ZERO).toString()),o},fromPartial(e){let o=createBaseResponseCommit();return o.data=e.data??new Uint8Array,o.retainHeight=void 0!==e.retainHeight&&null!==e.retainHeight?y.Long.fromValue(e.retainHeight):y.Long.ZERO,o}},o.ResponseListSnapshots={encode(e,t=O.Writer.create()){for(let s of e.snapshots)o.Snapshot.encode(s,t.uint32(10).fork()).ldelim();return t},decode(e,t){let s=e instanceof O.Reader?e:new O.Reader(e),r=void 0===t?s.len:s.pos+t,a=createBaseResponseListSnapshots();for(;s.pos<r;){let e=s.uint32();e>>>3==1?a.snapshots.push(o.Snapshot.decode(s,s.uint32())):s.skipType(7&e)}return a},fromJSON:e=>({snapshots:Array.isArray(e?.snapshots)?e.snapshots.map(e=>o.Snapshot.fromJSON(e)):[]}),toJSON(e){let t={};return e.snapshots?t.snapshots=e.snapshots.map(e=>e?o.Snapshot.toJSON(e):void 0):t.snapshots=[],t},fromPartial(e){let t=createBaseResponseListSnapshots();return t.snapshots=e.snapshots?.map(e=>o.Snapshot.fromPartial(e))||[],t}},o.ResponseOfferSnapshot={encode:(e,o=O.Writer.create())=>(0!==e.result&&o.uint32(8).int32(e.result),o),decode(e,o){let t=e instanceof O.Reader?e:new O.Reader(e),s=void 0===o?t.len:t.pos+o,r=createBaseResponseOfferSnapshot();for(;t.pos<s;){let e=t.uint32();e>>>3==1?r.result=t.int32():t.skipType(7&e)}return r},fromJSON:e=>({result:(0,y.isSet)(e.result)?responseOfferSnapshot_ResultFromJSON(e.result):0}),toJSON(e){let o={};return void 0!==e.result&&(o.result=responseOfferSnapshot_ResultToJSON(e.result)),o},fromPartial(e){let o=createBaseResponseOfferSnapshot();return o.result=e.result??0,o}}
1,o.ResponseLoadSnapshotChunk={encode:(e,o=O.Writer.create())=>(0!==e.chunk.length&&o.uint32(10).bytes(e.chunk),o),decode(e,o){let t=e instanceof O.Reader?e:new O.Reader(e),s=void 0===o?t.len:t.pos+o,r=createBaseResponseLoadSnapshotChunk();for(;t.pos<s;){let e=t.uint32();e>>>3==1?r.chunk=t.bytes():t.skipType(7&e)}return r},fromJSON:e=>({chunk:(0,y.isSet)(e.chunk)?(0,y.bytesFromBase64)(e.chunk):new Uint8Array}),toJSON(e){let o={};return void 0!==e.chunk&&(o.chunk=(0,y.base64FromBytes)(void 0!==e.chunk?e.chunk:new Uint8Array)),o},fromPartial(e){let o=createBaseResponseLoadSnapshotChunk();return o.chunk=e.chunk??new Uint8Array,o}},o.ResponseApplySnapshotChunk={encode(e,o=O.Writer.create()){for(let t of(0!==e.result&&o.uint32(8).int32(e.result),o.uint32(18).fork(),e.refetchChunks))o.uint32(t);for(let t of(o.ldelim(),e.rejectSenders))o.uint32(26).string(t);return o},decode(e,o){let t=e instanceof O.Reader?e:new O.Reader(e),s=void 0===o?t.len:t.pos+o,r=createBaseResponseApplySnapshotChunk();for(;t.pos<s;){let e=t.uint32();switch(e>>>3){case 1:r.result=t.int32();break;case 2:if((7&e)==2){let e=t.uint32()+t.pos;for(;t.pos<e;)r.refetchChunks.push(t.uint32())}else r.refetchChunks.push(t.uint32());break;case 3:r.rejectSenders.push(t.string());break;default:t.skipType(7&e)}}return r},fromJSON:e=>({result:(0,y.isSet)(e.result)?responseApplySnapshotChunk_ResultFromJSON(e.result):0,refetchChunks:Array.isArray(e?.refetchChunks)?e.refetchChunks.map(e=>Number(e)):[],rejectSenders:Array.isArray(e?.rejectSenders)?e.rejectSenders.map(e=>String(e)):[]}),toJSON(e){let o={};return void 0!==e.result&&(o.result=responseApplySnapshotChunk_ResultToJSON(e.result)),e.refetchChunks?o.refetchChunks=e.refetchChunks.map(e=>Math.round(e)):o.refetchChunks=[],e.rejectSenders?o.rejectSenders=e.rejectSenders.map(e=>e):o.rejectSenders=[],o},fromPartial(e){let o=createBaseResponseApplySnapshotChunk();return o.result=e.result??0,o.refetchChunks=e.refetchChunks?.map(e=>e)||[],o.rejectSenders=e.rejectSenders?.map(e=>e)||[],o}},o.ResponsePrepareProposal={encode(e,o=O.Writer.create()){for(let t of e.txs)o.uint32(10).bytes(t);return o},decode(e,o){let t=e instanceof O.Reader?e:new O.Reader(e),s=void 0===o?t.len:t.pos+o,r={txs:[]};for(;t.pos<s;){let e=t.uint32();e>>>3==1?r.txs.push(t.bytes()):t.skipType(7&e)}return r},fromJSON:e=>({txs:Array.isArray(e?.txs)?e.txs.map(e=>(0,y.bytesFromBase64)(e)):[]}),toJSON(e){let o={};return e.txs?o.txs=e.txs.map(e=>(0,y.base64FromBytes)(void 0!==e?e:new Uint8Array)):o.txs=[],o},fromPartial(e){let o={txs:[]};return o.txs=e.txs?.map(e=>e)||[],o}},o.ResponseProcessProposal={encode:(e,o=O.Writer.create())=>(0!==e.status&&o.uint32(8).int32(e.status),o),decode(e,o){let t=e instanceof O.Reader?e:new O.Reader(e),s=void 0===o?t.len:t.pos+o,r=createBaseResponseProcessProposal();for(;t.pos<s;){let e=t.uint32();e>>>3==1?r.status=t.int32():t.skipType(7&e)}return r},fromJSON:e=>({status:(0,y.isSet)(e.status)?responseProcessProposal_ProposalStatusFromJSON(e.status):0}),toJSON(e){let o={};return void 0!==e.status&&(o.status=responseProcessProposal_ProposalStatusToJSON(e.status)),o},fromPartial(e){let o=createBaseResponseProcessProposal();return o.status=e.status??0,o}},o.CommitInfo={encode(e,t=O.Writer.create()){for(let s of(0!==e.round&&t.uint32(8).int32(e.round),e.votes))o.VoteInfo.encode(s,t.uint32(18).fork()).ldelim();return t},decode(e,t){let s=e instanceof O.Reader?e:new O.Reader(e),r=void 0===t?s.len:s.pos+t,a=createBaseCommitInfo();for(;s.pos<r;){let e=s.uint32();switch(e>>>3){case 1:a.round=s.int32();break;case 2:a.votes.push(o.VoteInfo.decode(s,s.uint32()));break;default:s.skipType(7&e)}}return a},fromJSON:e=>({round:(0,y.isSet)(e.round)?Number(e.round):0,votes:Array.isArray(e?.votes)?e.votes.map(e=>o.VoteInfo.fromJSON(e)):[]}),toJSON(e){let t={};return void 0!==e.round&&(t.round=Math.round(e.round)),e.votes?t.votes=e.votes.map(e=>e?o.VoteInfo.toJSON(e):void 0):t.votes=[],t},fromPartial(e){let t=createBaseCommitInfo();return t.round=e.round??0,t.votes=e.votes?.map(e=>o.VoteInfo.fromPartial(e))||[],t}},o.ExtendedCommitInfo={encode(e,t=O.Writer.create()){for(let s of(0!==e.round&&t.uint32(8).int32(e.round),e.votes))o.ExtendedVoteInfo.encode(s,t.uint32(18).fork()).ldelim();return t},decode(e,t){let s=e instanceof O.Reader?e:new O.Reader(e),r=void 0===t?s.len:s.pos+t,a=createBaseExtendedCommitInfo();for(;s.pos<r;){let e=s.uint32();switch(e>>>
13){case 1:a.round=s.int32();break;case 2:a.votes.push(o.ExtendedVoteInfo.decode(s,s.uint32()));break;default:s.skipType(7&e)}}return a},fromJSON:e=>({round:(0,y.isSet)(e.round)?Number(e.round):0,votes:Array.isArray(e?.votes)?e.votes.map(e=>o.ExtendedVoteInfo.fromJSON(e)):[]}),toJSON(e){let t={};return void 0!==e.round&&(t.round=Math.round(e.round)),e.votes?t.votes=e.votes.map(e=>e?o.ExtendedVoteInfo.toJSON(e):void 0):t.votes=[],t},fromPartial(e){let t=createBaseExtendedCommitInfo();return t.round=e.round??0,t.votes=e.votes?.map(e=>o.ExtendedVoteInfo.fromPartial(e))||[],t}},o.Event={encode(e,t=O.Writer.create()){for(let s of(""!==e.type&&t.uint32(10).string(e.type),e.attributes))o.EventAttribute.encode(s,t.uint32(18).fork()).ldelim();return t},decode(e,t){let s=e instanceof O.Reader?e:new O.Reader(e),r=void 0===t?s.len:s.pos+t,a=createBaseEvent();for(;s.pos<r;){let e=s.uint32();switch(e>>>3){case 1:a.type=s.string();break;case 2:a.attributes.push(o.EventAttribute.decode(s,s.uint32()));break;default:s.skipType(7&e)}}return a},fromJSON:e=>({type:(0,y.isSet)(e.type)?String(e.type):"",attributes:Array.isArray(e?.attributes)?e.attributes.map(e=>o.EventAttribute.fromJSON(e)):[]}),toJSON(e){let t={};return void 0!==e.type&&(t.type=e.type),e.attributes?t.attributes=e.attributes.map(e=>e?o.EventAttribute.toJSON(e):void 0):t.attributes=[],t},fromPartial(e){let t=createBaseEvent();return t.type=e.type??"",t.attributes=e.attributes?.map(e=>o.EventAttribute.fromPartial(e))||[],t}},o.EventAttribute={encode:(e,o=O.Writer.create())=>(""!==e.key&&o.uint32(10).string(e.key),""!==e.value&&o.uint32(18).string(e.value),!0===e.index&&o.uint32(24).bool(e.index),o),decode(e,o){let t=e instanceof O.Reader?e:new O.Reader(e),s=void 0===o?t.len:t.pos+o,r=createBaseEventAttribute();for(;t.pos<s;){let e=t.uint32();switch(e>>>3){case 1:r.key=t.string();break;case 2:r.value=t.string();break;case 3:r.index=t.bool();break;default:t.skipType(7&e)}}return r},fromJSON:e=>({key:(0,y.isSet)(e.key)?String(e.key):"",value:(0,y.isSet)(e.value)?String(e.value):"",index:!!(0,y.isSet)(e.index)&&!!e.index}),toJSON(e){let o={};
1return void 0!==e.key&&(o.key=e.key),void 0!==e.value&&(o.value=e.value),void 0!==e.index&&(o.index=e.index),o},fromPartial(e){let o=createBaseEventAttribute();return o.key=e.key??"",o.value=e.value??"",o.index=e.index??!1,o}},o.TxResult={encode:(e,t=O.Writer.create())=>(e.height.isZero()||t.uint32(8).int64(e.height),0!==e.index&&t.uint32(16).uint32(e.index),0!==e.tx.length&&t.uint32(26).bytes(e.tx),void 0!==e.result&&o.ResponseDeliverTx.encode(e.result,t.uint32(34).fork()).ldelim(),t),decode(e,t){let s=e instanceof O.Reader?e:new O.Reader(e),r=void 0===t?s.len:s.pos+t,a=createBaseTxResult();for(;s.pos<r;){let e=s.uint32();switch(e>>>3){case 1:a.height=s.int64();break;case 2:a.index=s.uint32();break;case 3:a.tx=s.bytes();break;case 4:a.result=o.ResponseDeliverTx.decode(s,s.uint32());break;default:s.skipType(7&e)}}return a},fromJSON:e=>({height:(0,y.isSet)(e.height)?y.Long.fromValue(e.height):y.Long.ZERO,index:(0,y.isSet)(e.index)?Number(e.index):0,tx:(0,y.isSet)(e.tx)?(0,y.bytesFromBase64)(e.tx):new Uint8Array,result:(0,y.isSet)(e.result)?o.ResponseDeliverTx.fromJSON(e.result):void 0}),toJSON(e){let t={};return void 0!==e.height&&(t.height=(e.height||y.Long.ZERO).toString()),void 0!==e.index&&(t.index=Math.round(e.index)),void 0!==e.tx&&(t.tx=(0,y.base64FromBytes)(void 0!==e.tx?e.tx:new Uint8Array)),void 0!==e.result&&(t.result=e.result?o.ResponseDeliverTx.toJSON(e.result):void 0),t},fromPartial(e){let t=createBaseTxResult();return t.height=void 0!==e.height&&null!==e.height?y.Long.fromValue(e.height):y.Long.ZERO,t.index=e.index??0,t.tx=e.tx??new Uint8Array,t.result=void 0!==e.result&&null!==e.result?o.ResponseDeliverTx.fromPartial(e.result):void 0,t}},o.Validator={encode:(e,o=O.Writer.create())=>(0!==e.address.length&&o.uint32(10).bytes(e.address),e.power.isZero()||o.uint32(24).int64(e.power),o),decode(e,o){let t=e instanceof O.Reader?e:new O.Reader(e),s=void 0===o?t.len:t.pos+o,r=createBaseValidator();for(;t.pos<s;){let e=t.uint32();switch(e>>>3){case 1:r.address=t.bytes();break;case 3:r.power=t.int64();break;default:t.skipType(7&e)}}return r},fromJSON:e=>({address:(0,y.isSet)(e.address)?(0,y.bytesFromBase64)(e.address):new Uint8Array,power:(0,y.isSet)(e.power)?y.Long.fromValue(e.power):y.Long.ZERO}),toJSON(e){let o={};return void 0!==e.address&&(o.address=(0,y.base64FromBytes)(void 0!==e.address?e.address:new Uint8Array)),void 0!==e.power&&(o.power=(e.power||y.Long.ZERO).toString()),o},fromPartial(e){let o=createBaseValidator();return o.address=e.address??new Uint8Array,o.power=void 0!==e.power&&null!==e.power?y.Long.fromValue(e.power):y.Long.ZERO,o}},o.ValidatorUpdate={encode:(e,o=O.Writer.create())=>(void 0!==e.pubKey&&g.PublicKey.encode(e.pubKey,o.uint32(10).fork()).ldelim(),e.power.isZero()||o.uint32(16).int64(e.power),o),decode(e,o){let t=e instanceof O.Reader?e:new O.Reader(e),s=void 0===o?t.len:t.pos+o,r=createBaseValidatorUpdate();for(;t.pos<s;){let e=t.uint32();switch(e>>>3){case 1:r.pubKey=g.PublicKey.decode(t,t.uint32());break;case 2:r.power=t.int64();break;default:t.skipType(7&e)}}return r},fromJSON:e=>({pubKey:(0,y.isSet)(e.pubKey)?g.PublicKey.fromJSON(e.pubKey):void 0,power:(0,y.isSet)(e.power)?y.Long.fromValue(e.power):y.Long.ZERO}),toJSON(e){let o={};return void 0!==e.pubKey&&(o.pubKey=e.pubKey?g.PublicKey.toJSON(e.pubKey):void 0),void 0!==e.power&&(o.power=(e.power||y.Long.ZERO).toString()),o},fromPartial(e){let o=createBaseValidatorUpdate();return o.pubKey=void 0!==e.pubKey&&null!==e.pubKey?g.PublicKey.fromPartial(e.pubKey):void 0,o.power=void 0!==e.power&&null!==e.power?y.Long.fromValue(e.power):y.Long.ZERO,o}},o.VoteInfo={encode:(e,t=O.Writer.create())=>(void 0!==e.validator&&o.Validator.encode(e.validator,t.uint32(10).fork()).ldelim(),!0===e.signedLastBlock&&t.uint32(16).bool(e.signedLastBlock),t),decode(e,t){let s=e instanceof O.Reader?e:new O.Reader(e),r=void 0===t?s.len:s.pos+t,a=createBaseVoteInfo();for(;s.pos<r;){let e=s.uint32();switch(e>>>3){case 1:a.validator=o.Validator.decode(s,s.uint32());break;case 2:a.signedLastBlock=s.bool();break;default:s.skipType(7&e)}}return a},fromJSON:e=>({validator:(0,y.isSet)(e.validator)?o.Validator.fromJSON(e.validator):void 0,signedLastBlock:!!(0,y.isSet)(e.signedLastBlock)&&!!e.signedLastBlock}),toJSON(e){let t={};return void 0!==e.validator&&(t.validator=e.validator?o.Validator.toJSON(e.validator):void 0),void 0!==e.signedLastBlock&&(t.signedLastBlock=e.signedLastBlock),t},fromPartial(e){let t=createBaseVoteInfo();return t.validator=void 0!==e.validator&&null!==e.validator?o.Validator.fromPartial(e.validator):void 0,t.signedLastBlock=e.signedLastBlock??!1,t}},o.ExtendedVoteInfo={encode:(e,t=O.Writer.create())=>(void 0!==e.validator&&o.Validator.encode(e.validator,t.uint32(10).fork()).ldelim(),!0===e.signedLastBlock&&t.uint32(16).bool(e.signedLastBlock),0!==e.voteExtension.length&&t.uint32(26).bytes(e.voteExtension),t),decode(e,t){let s=e instanceof O.Reader?e:new O.Reader(e),r=void 0===t?s.len:s.pos+t,a=createBaseExtendedVoteInfo();for(;s.pos<r;){let e=s.uint32();switch(e>>>3){case 1:a.validator=o.Validator.decode(s,s.uint32());break;case 2:a.signedLastBlock=s.bool();break;case 3:a.voteExtension=s.bytes();break;default:s.skipType(7&e)}}return a},fromJSON:e=>({validator:(0,y.isSet)(e.validator)?o.Validator.fromJSON(e.validator):void 0,signedLastBlock:!!(0,y.isSet)(e.signedLastBlock)&&!!e.signedLastBlock,voteExtension:(0,y.isSet)(e.voteExtension)?(0,y.bytesFromBase64)(e.voteExtension):new Uint8Array}),toJSON(e){let t={};return void 0!==e.validator&&(t.validator=e.validator?o.Validator.toJSON(e.validator):void 0),void 0!==e.signedLastBlock&&(t.signedLastBlock=e.signedLastBlock),void 0!==e.voteExtension&&(t.voteExtension=(0,y.base64FromBytes)(void 0!==e.voteExtension?e.voteExtension:new Uint8Array)),t},fromPartial(e){let t=createBaseExtendedVoteInfo();return t.validator=void 0!==e.validator&&null!==e.validator?o.Validator.fromPartial(e.validator):void 0,t.signedLastBlock=e.signedLastBlock??!1,t.voteExtension=e.voteExtension??new Uint8Array,t}},o.Misbehavior={encode:(e,t=O.Writer.create())=>(0!==e.type&&t.uint32(8).int32(e.type),void 0!==e.validator&&o.Validator.encode(e.validator,t.uint32(18).fork()).ldelim(),e.height.isZero()||t.uint32(24).int64(e.height),void 0!==e.time&&v.Timestamp.encode(e.time,t.uint32(34).fork()).ldelim(),e.totalVotingPower.isZero()||t.uint32(40).int64(e.totalVotingPower),t),decode(e,t){let s=e instanceof O.Reader?e:new O.Reader(e),r=void 0===t?s.len:s.pos+t,a=createBaseMisbehavior();for(;s.pos<r;){let e=s.uint32();switch(e>>>3){case 1:a.type=s.int32();break;case 2:a.validator=o.Validator.decode(s,s.uint32());break;case 3:a.height=s.int64();break;case 4:a.time=v.Timestamp.decode(s,s.uint32());break;case 5:a.totalVotingPower=s.int64();break;default:s.skipType(7&e)}}return a},fromJSON:e=>({type:(0,y.isSet)(e.type)?misbehaviorTypeFromJSON(e.type):0,validator:(0,y.isSet)(e.validator)?o.Validator.fromJSON(e.validator):void 0,height:(0,y.isSet)(e.height)?y.Long.fromValue(e.height):y.Long.ZERO,time:(0,y.isSet)(e.time)?(0,y.fromJsonTimestamp)(e.time):void 0,totalVotingPower:(0,y.isSet)(e.totalVotingPower)?y.Long.fromValue(e.totalVotingPower):y.Long.ZERO}),toJSON(e){let t={};return void 0!==e.type&&(t.type=misbehaviorTypeToJSON(e.type)),void 0!==e.validator&&(t.validator=e.validator?o.Validator.toJSON(e.validator):void 0),void 0!==e.height&&(t.height=(e.height||y.Long.ZERO).toString()),void 0!==e.time&&(t.time=(0,y.fromTimestamp)(e.time).toISOString()),void 0!==e.totalVotingPower&&(t.totalVotingPower=(e.totalVotingPower||y.Long.ZERO).toString()),t},fromPartial(e){let t=createBaseMisbehavior();return t.type=e.type??0,t.validator=void 0!==e.validator&&null!==e.validator?o.Validator.fromPartial(e.validator):void 0,t.height=void 0!==e.height&&null!==e.height?y.Long.fromValue(e.height):y.Long.ZERO,t.time=void 0!==e.time&&null!==e.time?v.Timestamp.fromPartial(e.time):void 0,t.totalVotingPower=void 0!==e.totalVotingPower&&null!==e.totalVotingPower?y.Long.fromValue(e.totalVotingPower):y.Long.ZERO,t}},o.Snapshot={encode:(e,o=O.Writer.create())=>(e.height.isZero()||o.uint32(8).uint64(e.height),0!==e.format&&o.uint32(16).uint32(e.format),0!==e.chunks&&o.uint32(24).uint32(e.chunks),0!==e.hash.length&&o.uint32(34).bytes(e.hash),0!==e.metadata.length&&o.uint32(42).bytes(e.metadata),o),decode(e,o){let t=e instanceof O.Reader?e:new O.Reader(e),s=void 0===o?t.len:t.pos+o,r=createBaseSnapshot();for(;t.pos<s;){let e=t.uint32();switch(e>>>3){case 1:r.height=t.uint64();break;case 2:r.format=t.uint32();break;case 3:r.chunks=t.uint32();break;case 4:r.hash=t.bytes();break;case 5:r.metadata=t.bytes();break;default:t.skipType(7&e)}}return r},fromJSON:e=>({height:(0,y.isSet)(e.height)?y.Long.fromValue(e.height):y.Long.UZERO,format:(0,y.isSet)(e.format)?Number(e.format):0,chunks:(0,y.isSet)(e.chunks)?Number(e.chunks):0,hash:(0,y.isSet)(e.hash)?(0,y.bytesFromBase64)(e.hash):new Uint8Array,metadata:(0,y.isSet)(e.metadata)?(0,y.bytesFromBase64)(e.metadata):new Uint8Array}),toJSON(e){let o={};return void 0!==e.height&&(o.height=(e.height||y.Long.UZERO).toString()),void 0!==e.format&&(o.format=Math.round(e.format)),void 0!==e.chunks&&(o.chunks=Math.round(e.chunks)),void 0!==e.hash&&(o.hash=(0,y.base64FromBytes)(void 0!==e.hash?e.hash:new Uint8Array)),void 0!==e.metadata&&(o.metadata=(0,y.base64FromBytes)(void 0!==e.metadata?e.metadata:new Uint8Array)),o},fromPartial(e){let o=createBaseSnapshot();return o.height=void 0!==e.height&&null!==e.height?y.Long.fromValue(e.height):y.Long.UZERO,o.format=e.format??0,o.chunks=e.chunks??0,o.hash=e.hash??new Uint8Array,o.metadata=e.metadata??new Uint8Array,o}},o.ABCIApplicationClientImpl=class{constructor(e){this.rpc=e,this.Echo=this.Echo.bind(this),this.Flush=this.Flush.bind(this),this.Info=this.Info.bind(this),this.DeliverTx=this.DeliverTx.bind(this),this.CheckTx=this.CheckTx.bind(this),this.Query=this.Query.bind(this),this.Commit=this.Commit.bind(this),this.InitChain=this.InitChain.bind(this),this.BeginBlock=this.BeginBlock.bind(this),this.EndBlock=this.EndBlock.bind(this),this.ListSnapshots=this.ListSnapshots.bind(this),this.OfferSnapshot=this.OfferSnapshot.bind(this),this.LoadSnapsh
1otChunk=this.LoadSnapshotChunk.bind(this),this.ApplySnapshotChunk=this.ApplySnapshotChunk.bind(this),this.PrepareProposal=this.PrepareProposal.bind(this),this.ProcessProposal=this.ProcessProposal.bind(this)}Echo(e){let t=o.RequestEcho.encode(e).finish(),s=this.rpc.request("tendermint.abci.ABCIApplication","Echo",t);return s.then(e=>o.ResponseEcho.decode(new O.Reader(e)))}Flush(e={}){let t=o.RequestFlush.encode(e).finish(),s=this.rpc.request("tendermint.abci.ABCIApplication","Flush",t);return s.then(e=>o.ResponseFlush.decode(new O.Reader(e)))}Info(e){let t=o.RequestInfo.encode(e).finish(),s=this.rpc.request("tendermint.abci.ABCIApplication","Info",t);return s.then(e=>o.ResponseInfo.decode(new O.Reader(e)))}DeliverTx(e){let t=o.RequestDeliverTx.encode(e).finish(),s=this.rpc.request("tendermint.abci.ABCIApplication","DeliverTx",t);return s.then(e=>o.ResponseDeliverTx.decode(new O.Reader(e)))}CheckTx(e){let t=o.RequestCheckTx.encode(e).finish(),s=this.rpc.request("tendermint.abci.ABCIApplication","CheckTx",t);return s.then(e=>o.ResponseCheckTx.decode(new O.Reader(e)))}Query(e){let t=o.RequestQuery.encode(e).finish(),s=this.rpc.request("tendermint.abci.ABCIApplication","Query",t);return s.then(e=>o.ResponseQuery.decode(new O.Reader(e)))}Commit(e={}){let t=o.RequestCommit.encode(e).finish(),s=this.rpc.request("tendermint.abci.ABCIApplication","Commit",t);return s.then(e=>o.ResponseCommit.decode(new O.Reader(e)))}InitChain(e){let t=o.RequestInitChain.encode(e).finish(),s=this.rpc.request("tendermint.abci.ABCIApplication","InitChain",t);return s.then(e=>o.ResponseInitChain.decode(new O.Reader(e)))}BeginBlock(e){let t=o.RequestBeginBlock.encode(e).finish(),s=this.rpc.request("tendermint.abci.ABCIApplication","BeginBlock",t);return s.then(e=>o.ResponseBeginBlock.decode(new O.Reader(e)))}EndBlock(e){let t=o.RequestEndBlock.encode(e).finish(),s=this.rpc.request("tendermint.abci.ABCIApplication","EndBlock",t);return s.then(e=>o.ResponseEndBlock.decode(new O.Reader(e)))}ListSnapshots(e={}){let t=o.RequestListSnapshots.encode(e).finish(),s=this.rpc.request("tendermint.abci.ABCIApplication","ListSnapshots",t);return s.then(e=>o.ResponseListSnapshots.decode(new O.Reader(e)))}OfferSnapshot(e){let t=o.RequestOfferSnapshot.encode(e).finish(),s=this.rpc.request("tendermint.abci.ABCIApplication","OfferSnapshot",t);return s.then(e=>o.ResponseOfferSnapshot.decode(new O.Reader(e)))}LoadSnapshotChunk(e){let t=o.RequestLoadSnapshotChunk.encode(e).finish(),s=this.rpc.request("tendermint.abci.ABCIApplication","LoadSnapsh
1otChunk",t);return s.then(e=>o.ResponseLoadSnapshotChunk.decode(new O.Reader(e)))}ApplySnapshotChunk(e){let t=o.RequestApplySnapshotChunk.encode(e).finish(),s=this.rpc.request("tendermint.abci.ABCIApplication","ApplySnapshotChunk",t);return s.then(e=>o.ResponseApplySnapshotChunk.decode(new O.Reader(e)))}PrepareProposal(e){let t=o.RequestPrepareProposal.encode(e).finish(),s=this.rpc.request("tendermint.abci.ABCIApplication","PrepareProposal",t);return s.then(e=>o.ResponsePrepareProposal.decode(new O.Reader(e)))}ProcessProposal(e){let t=o.RequestProcessProposal.encode(e).finish(),s=this.rpc.request("tendermint.abci.ABCIApplication","ProcessProposal",t);return s.then(e=>o.ResponseProcessProposal.decode(new O.Reader(e)))}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.