PageSourceSearch

https://subtopia.io/_next/static/chunks/f2e1b070-44b8125d0f9b96c2.js

js subtopia.io collected 2026-09-25 22:09:48 UTC 90,898 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[334],{9291:(e,t,a)=>{a.r(t),a.d(t,{Account:()=>r,AccountParticipation:()=>d,AccountResponse:()=>h,AccountStateDelta:()=>m,AccountsResponse:()=>g,Application:()=>u,ApplicationLocalState:()=>l,ApplicationLocalStatesResponse:()=>p,ApplicationLogData:()=>v,ApplicationLogsResponse:()=>S,ApplicationParams:()=>w,ApplicationResponse:()=>y,ApplicationStateSchema:()=>E,ApplicationsResponse:()=>f,Asset:()=>k,AssetBalancesResponse:()=>V,AssetHolding:()=>D,AssetHoldingsResponse:()=>x,AssetParams:()=>K,AssetResponse:()=>b,AssetsResponse:()=>N,Block:()=>M,BlockHeadersResponse:()=>A,BlockRewards:()=>R,BlockUpgradeState:()=>P,BlockUpgradeVote:()=>T,Box:()=>q,BoxDescriptor:()=>I,BoxReference:()=>H,BoxesResponse:()=>Z,ErrorResponse:()=>$,EvalDelta:()=>B,EvalDeltaKeyValue:()=>Y,HashFactory:()=>z,HbProofFields:()=>C,HealthCheck:()=>G,IndexerStateProofMessage:()=>F,MerkleArrayProof:()=>L,MiniAssetHolding:()=>O,ParticipationUpdates:()=>U,StateProofFields:()=>W,StateProofParticipant:()=>j,StateProofReveal:()=>_,StateProofSigSlot:()=>J,StateProofSignature:()=>Q,StateProofTracking:()=>X,StateProofVerifier:()=>ee,StateSchema:()=>et,TealKeyValue:()=>ea,TealValue:()=>en,Transaction:()=>ei,TransactionApplication:()=>eo,TransactionAssetConfig:()=>es,TransactionAssetFreeze:()=>ec,TransactionAssetTransfer:()=>er,TransactionHeartbeat:()=>ed,TransactionKeyreg:()=>eh,TransactionPayment:()=>em,TransactionResponse:()=>eg,TransactionSignature:()=>eu,TransactionSignatureLogicsig:()=>el,TransactionSignatureMultisig:()=>ep,TransactionSignatureMultisigSubsignature:()=>ev,TransactionStateProof:()=>eS,TransactionsResponse:()=>ew});var n=a(46085),i=a(12929),o=a(30841),s=a(68724),c=a(72705);class r{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"address",valueSchema:new i.nY,omitEmpty:!0},{key:"amount",valueSchema:new i.qc,omitEmpty:!0},{key:"amount-without-pending-rewards",valueSchema:new i.qc,omitEmpty:!0},{key:"min-balance",valueSchema:new i.qc,omitEmpty:!0},{key:"pending-rewards",valueSchema:new i.qc,omitEmpty:!0},{key:"rewards",valueSchema:new i.qc,omitEmpty:!0},{key:"round",valueSchema:new i.qc,omitEmpty:!0},{key:"status",valueSchema:new i.nY,omitEmpty:!0},{key:"total-apps-opted-in",valueSchema:new i.qc,omitEmpty:!0},{key:"total-assets-opted-in",valueSchema:new i.qc,omitEmpty:!0},{key:"total-box-bytes",valueSchema:new i.qc,omitEmpty:!0},{key:"total-boxes",valueSchema:new i.qc,omitEmpty:!0},{key:"total-created-apps",valueSchema:new i.qc,omitEmpty:!0},{key:"total-created-assets",valueSchema:new i.qc,omitEmpty:!0},{key:"apps-local-state",valueSchema:new i.KN(new i.vf(l.encodingSchema)),omitEmpty:!0},{key:"apps-total-extra-pages",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"apps-total-schema",valueSchema:new i.KN(E.encodingSchema),omitEmpty:!0},{key:"assets",valueSchema:new i.KN(new i.vf(D.encodingSchema)),omitEmpty:!0},{key:"auth-addr",valueSchema:new i.KN(new i.nY),omitEmpty:!0},{key:"closed-at-round",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"created-apps",valueSchema:new i.KN(new i.vf(u.encodingSchema)),omitEmpty:!0},{key:"created-assets",valueSchema:new i.KN(new i.vf(k.encodingSchema)),omitEmpty:!0},{key:"created-at-round",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"deleted",valueSchema:new i.KN(new i.od),omitEmpty:!0},{key:"incentive-eligible",valueSchema:new i.KN(new i.od),omitEmpty:!0},{key:"last-heartbeat",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"last-proposed",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"participation",valueSchema:new i.KN(d.encodingSchema),omitEmpty:!0},{key:"reward-base",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"sig-type",valueSchema:new i.KN(new i.nY),omitEmpty:!0})),this.encodingSchemaValue}constructor({address:e,amount:t,amountWithoutPendingRewards:a,minBalance:i,pendingRewards:o,rewards:c,round:r,status:d,totalAppsOptedIn:h,totalAssetsOptedIn:m,totalBoxBytes:g,totalBoxes:u,totalCreatedApps:l,totalCreatedAssets:p,appsLocalState:v,appsTotalExtraPages:S,appsTotalSchema:w,assets:y,authAddr:E,closedAtRound:f,createdApps:k,createdAssets:V,createdAtRound:D,deleted:x,incentiveEligible:K,lastHeartbeat:b,lastProposed:N,participation:M,rewardBase:A,sigType:R}){this.address=e,this.amount=(0,n.wx)(t),this.amountWithoutPendingRewards=(0,n.wx)(a),this.minBalance=(0,n.GE)(i),this.pendingRewards=(0,n.wx)(o),this.rewards=(0,n.wx)(c),this.round=(0,n.wx)(r),this.status=d,this.totalAppsOptedIn=(0,n.GE)(h),this.totalAssetsOptedIn=(0,n.GE)(m),this.totalBoxBytes=(0,n.GE)(g),this.totalBoxes=(0,n.GE)(u),this.totalCreatedApps=(0,n.GE)(l),this.totalCreatedAssets=(0,n.GE)(p),this.appsLocalState=v,this.appsTotalExtraPages=void 0===S?void 0:(0,n.GE)(S),this.appsTotalSchema=w,this.assets=y,this.authAddr="string"==typeof E?s.pV.fromString(E):E,this.closedAtRound=void 0===f?void 0:(0,n.wx)(f),this.createdApps=k,this.createdAssets=V,this.createdAtRound=void 0===D?void 0:(0,n.wx)(D),this.deleted=x,this.incentiveEligible=K,this.lastHeartbeat=void 0===b?void 0:(0,n.GE)(b),this.lastProposed=void 0===N?void 0:(0,n.GE)(N),this.participation=M,this.rewardBase=void 0===A?void 0:(0,n.wx)(A),this.sigType=R}getEncodingSchema(){return r.encodingSchema}toEncodingData(){return new Map([["address",this.address],["amount",this.amount],["amount-without-pending-rewards",this.amountWithoutPendingRewards],["min-balance",this.minBalance],["pending-rewards",this.pendingRewards],["rewards",this.rewards],["round",this.round],["status",this.status],["total-apps-opted-in",this.totalAppsOptedIn],["total-assets-opted-in",this.totalAssetsOptedIn],["total-box-bytes",this.totalBoxBytes],["total-boxes",this.totalBoxes],["total-created-apps",this.totalCreatedApps],["total-created-assets",this.totalCreatedAssets],["apps-local-state",void 0!==this.appsLocalState?this.appsLocalState.map(e=>e.toEncodingData()):void 0],["apps-total-extra-pages",this.appsTotalExtraPages],["apps-total-schema",void 0!==this.appsTotalSchema?this.appsTotalSchema.toEncodingData():void 0],["assets",void 0!==this.assets?this.assets.map(e=>e.toEncodingData()):void 0],["auth-addr",void 0!==this.authAddr?this.authAddr.toString():void 0],["closed-at-round",this.closedAtRound],["created-apps",void 0!==this.createdApps?this.createdApps.map(e=>e.toEncodingData()):void 0],["created-assets",void 0!==this.createdAssets?this.createdAssets.map(e=>e.toEncodingData()):void 0],["created-at-round",this.createdAtRound],["deleted",this.deleted],["incentive-eligible",this.incentiveEligible],["last-heartbeat",this.lastHeartbeat],["last-proposed",this.lastProposed],["participation",void 0!==this.participation?this.participation.toEncodingData():void 0],["reward-base",this.rewardBase],["sig-type",this.sigType]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded Account: ${e}`);return new r({address:e.get("address"),amount:e.get("amount"),amountWithoutPendingRewards:e.get("amount-without-pending-rewards"),minBalance:e.get("min-balance"),pendingRewards:e.get("pending-rewards"),rewards:e.get("rewards"),round:e.get("round"),status:e.get("status"),totalAppsOptedIn:e.get("total-apps-opted-in"),totalAssetsOptedIn:e.get("total-assets-opted-in"),totalBoxBytes:e.get("total-box-bytes"),totalBoxes:e.get("total-boxes"),totalCreatedApps:e.get("total-created-apps"),totalCreatedAssets:e.get("total-created-assets"),appsLocalState:void 0!==e.get("apps-local-state")?e.get("apps-local-state").map(e=>l.fromEncodingData(e)):void 0,appsTotalExtraPages:e.get("apps-total-extra-pages"),appsTotalSchema:void 0!==e.get("apps-total-schema")?E.fromEncodingData(e.get("apps-total-schema")):void 0,assets:void 0!==e.get("assets")?e.get("assets").map(e=>D.fromEncodingData(e)):void 0,authAddr:e.get("auth-addr"),closedAtRound:e.get("
1closed-at-round"),createdApps:void 0!==e.get("created-apps")?e.get("created-apps").map(e=>u.fromEncodingData(e)):void 0,createdAssets:void 0!==e.get("created-assets")?e.get("created-assets").map(e=>k.fromEncodingData(e)):void 0,createdAtRound:e.get("created-at-round"),deleted:e.get("deleted"),incentiveEligible:e.get("incentive-eligible"),lastHeartbeat:e.get("last-heartbeat"),lastProposed:e.get("last-proposed"),participation:void 0!==e.get("participation")?d.fromEncodingData(e.get("participation")):void 0,rewardBase:e.get("reward-base"),sigType:e.get("sig-type")})}}class d{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"selection-participation-key",valueSchema:new i.HM,omitEmpty:!0},{key:"vote-first-valid",valueSchema:new i.qc,omitEmpty:!0},{key:"vote-key-dilution",valueSchema:new i.qc,omitEmpty:!0},{key:"vote-last-valid",valueSchema:new i.qc,omitEmpty:!0},{key:"vote-participation-key",valueSchema:new i.HM,omitEmpty:!0},{key:"state-proof-key",valueSchema:new i.KN(new i.HM),omitEmpty:!0})),this.encodingSchemaValue}constructor({selectionParticipationKey:e,voteFirstValid:t,voteKeyDilution:a,voteLastValid:i,voteParticipationKey:s,stateProofKey:c}){this.selectionParticipationKey="string"==typeof e?(0,o.Kp)(e):e,this.voteFirstValid=(0,n.wx)(t),this.voteKeyDilution=(0,n.wx)(a),this.voteLastValid=(0,n.wx)(i),this.voteParticipationKey="string"==typeof s?(0,o.Kp)(s):s,this.stateProofKey="string"==typeof c?(0,o.Kp)(c):c}getEncodingSchema(){return d.encodingSchema}toEncodingData(){return new Map([["selection-participation-key",this.selectionParticipationKey],["vote-first-valid",this.voteFirstValid],["vote-key-dilution",this.voteKeyDilution],["vote-last-valid",this.voteLastValid],["vote-participation-key",this.voteParticipationKey],["state-proof-key",this.stateProofKey]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded AccountParticipation: ${e}`);return new d({selectionParticipationKey:e.get("selection-participation-key"),voteFirstValid:e.get("vote-first-valid"),voteKeyDilution:e.get("vote-key-dilution"),voteLastValid:e.get("vote-last-valid"),voteParticipationKey:e.get("vote-participation-key"),stateProofKey:e.get("state-proof-key")})}}class h{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"account",valueSchema:r.encodingSchema,omitEmpty:!0},{key:"current-round",valueSchema:new i.qc,omitEmpty:!0})),this.encodingSchemaValue}constructor({account:e,currentRound:t}){this.account=e,this.currentRound=(0,n.wx)(t)}getEncodingSchema(){return h.encodingSchema}toEncodingData(){return new Map([["account",this.account.toEncodingData()],["current-round",this.currentRound]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded AccountResponse: ${e}`);return new h({account:r.fromEncodingData(e.get("account")??new Map),currentRound:e.get("current-round")})}}class m{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"address",valueSchema:new i.nY,omitEmpty:!0},{key:"delta",valueSchema:new i.vf(Y.encodingSchema),omitEmpty:!0})),this.encodingSchemaValue}constructor({address:e,delta:t}){this.address=e,this.delta=t}getEncodingSchema(){return m.encodingSchema}toEncodingData(){return new Map([["address",this.address],["delta",this.delta.map(e=>e.toEncodingData())]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded AccountStateDelta: ${e}`);return new m({address:e.get("address"),delta:(e.get("delta")??[]).map(e=>Y.fromEncodingData(e))})}}class g{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"accounts",valueSchema:new i.vf(r.encodingSchema),omitEmpty:!0},{key:"current-round",valueSchema:new i.qc,omitEmpty:!0},{key:"next-token",valueSchema:new i.KN(new i.nY),omitEmpty:!0})),this.encodingSchemaValue}constructor({accounts:e,currentRound:t,nextToken:a}){this.accounts=e,this.currentRound=(0,n.wx)(t),this.nextToken=a}getEncodingSchema(){return g.encodingSchema}toEncodingData(){return new Map([["accounts",this.accounts.map(e=>e.toEncodingData())],["current-round",this.currentRound],["next-token",this.nextToken]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded AccountsResponse: ${e}`);return new g({accounts:(e.get("accounts")??[]).map(e=>
1r.fromEncodingData(e)),currentRound:e.get("current-round"),nextToken:e.get("next-token")})}}class u{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"id",valueSchema:new i.qc,omitEmpty:!0},{key:"params",valueSchema:w.encodingSchema,omitEmpty:!0},{key:"created-at-round",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"deleted",valueSchema:new i.KN(new i.od),omitEmpty:!0},{key:"deleted-at-round",valueSchema:new i.KN(new i.qc),omitEmpty:!0})),this.encodingSchemaValue}constructor({id:e,params:t,createdAtRound:a,deleted:i,deletedAtRound:o}){this.id=(0,n.wx)(e),this.params=t,this.createdAtRound=void 0===a?void 0:(0,n.wx)(a),this.deleted=i,this.deletedAtRound=void 0===o?void 0:(0,n.wx)(o)}getEncodingSchema(){return u.encodingSchema}toEncodingData(){return new Map([["id",this.id],["params",this.params.toEncodingData()],["created-at-round",this.createdAtRound],["deleted",this.deleted],["deleted-at-round",this.deletedAtRound]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded Application: ${e}`);return new u({id:e.get("id"),params:w.fromEncodingData(e.get("params")??new Map),createdAtRound:e.get("created-at-round"),deleted:e.get("deleted"),deletedAtRound:e.get("deleted-at-round")})}}class l{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"id",valueSchema:new i.qc,omitEmpty:!0},{key:"schema",valueSchema:E.encodingSchema,omitEmpty:!0},{key:"closed-out-at-round",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"deleted",valueSchema:new i.KN(new i.od),omitEmpty:!0},{key:"key-value",valueSchema:new i.KN(new i.vf(ea.encodingSchema)),omitEmpty:!0},{key:"opted-in-at-round",valueSchema:new i.KN(new i.qc),omitEmpty:!0})),this.encodingSchemaValue}constructor({id:e,schema:t,closedOutAtRound:a,deleted:i,keyValue:o,optedInAtRound:s}){this.id=(0,n.wx)(e),this.schema=t,this.closedOutAtRound=void 0===a?void 0:(0,n.wx)(a),this.deleted=i,this.keyValue=o,this.optedInAtRound=void 0===s?void 0:(0,n.wx)(s)}getEncodingSchema(){return l.encodingSchema}toEncodingData(){return new Map([["id",this.id],["schema",this.schema.toEncodingData()],["closed-out-at-round",this.closedOutAtRound],["deleted",this.deleted],["key-value",void 0!==this.keyValue?this.keyValue.map(e=>e.toEncodingData()):void 0],["opted-in-at-round",this.optedInAtRound]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded ApplicationLocalState: ${e}`);return new l({id:e.get("id"),schema:E.fromEncodingData(e.get("schema")??new Map),closedOutAtRound:e.get("closed-out-at-round"),deleted:e.get("deleted"),keyValue:void 0!==e.get("key-value")?e.get("key-value").map(e=>ea.fromEncodingData(e)):void 0,optedInAtRound:e.get("opted-in-at-round")})}}class p{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"apps-local-states",valueSchema:new i.vf(l.encodingSchema),omitEmpty:!0},{key:"current-round",valueSchema:new i.qc,omitEmpty:!0},{key:"next-token",valueSchema:new i.KN(new i.nY),omitEmpty:!0})),this.encodingSchemaValue}constructor({appsLocalStates:e,currentRound:t,nextToken:a}){this.appsLocalStates=e,this.currentRound=(0,n.wx)(t),this.nextToken=a}getEncodingSchema(){return p.encodingSchema}toEncodingData(){return new Map([["apps-local-states",this.appsLocalStates.map(e=>e.toEncodingData())],["current-round",this.currentRound],["next-token",this.nextToken]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded ApplicationLocalStatesResponse: ${e}`);return new p({appsLocalStates:(e.get("apps-local-states")??[]).map(e=>l.fromEncodingData(e)),currentRound:e.get("current-round"),nextToken:e.get("next-token")})}}class v{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"logs",valueSchema:new i.vf(new i.HM),omitEmpty:!0},{key:"txid",valueSchema:new i.nY,omitEmpty:!0})),this.encodingSchemaValue}constructor({logs:e,txid:t}){this.logs=e,this.txid=t}getEncodingSchema(){return v.encodingSchema}toEncodingData(){return new Map([["logs",this.logs],["txid",this.txid]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded ApplicationLogData: ${e}`);return new v({logs:e.get("logs"),txid:e.get("txid")})}}class S{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"application-id",valueSchema:new i.qc,omitEmpty:!0},{key:"current-round",valueSchema:new i.qc,omitEmpty:!0},{key:"log-data",valueSchema:new i.KN(new i.vf(v.encodingSchema)),omitEmpty:!0},{key:"next-token",valueSchema:new i.KN(new i.nY),omitEmpty:!0})),this.encodingSchemaValue}constructor({applicationId:e,currentRound:t,logData:a,nextToken:i}){this.applicationId=(0,n.wx)(e),this.currentRound=(0,n.wx)(t),this.logData=a,this.nextToken=i}getEncodingSchema(){return S.encodingSchema}toEncodingData(){return new Map([["application-id",this.applicationId],["current-round",this.currentRound],["log-data",void 0!==this.logData?this.logData.map(e=>e.toEncodingData()):void 0],["next-token",this.nextToken]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded ApplicationLogsResponse: ${e}`);return new S({applicationId:e.get("application-id"),currentRound:e.get("
1current-round"),logData:void 0!==e.get("log-data")?e.get("log-data").map(e=>v.fromEncodingData(e)):void 0,nextToken:e.get("next-token")})}}class w{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"approval-program",valueSchema:new i.HM,omitEmpty:!0},{key:"clear-state-program",valueSchema:new i.HM,omitEmpty:!0},{key:"creator",valueSchema:new i.KN(new i.nY),omitEmpty:!0},{key:"extra-program-pages",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"global-state",valueSchema:new i.KN(new i.vf(ea.encodingSchema)),omitEmpty:!0},{key:"global-state-schema",valueSchema:new i.KN(E.encodingSchema),omitEmpty:!0},{key:"local-state-schema",valueSchema:new i.KN(E.encodingSchema),omitEmpty:!0},{key:"version",valueSchema:new i.KN(new i.qc),omitEmpty:!0})),this.encodingSchemaValue}constructor({approvalProgram:e,clearStateProgram:t,creator:a,extraProgramPages:i,globalState:c,globalStateSchema:r,localStateSchema:d,version:h}){this.approvalProgram="string"==typeof e?(0,o.Kp)(e):e,this.clearStateProgram="string"==typeof t?(0,o.Kp)(t):t,this.creator="string"==typeof a?s.pV.fromString(a):a,this.extraProgramPages=void 0===i?void 0:(0,n.GE)(i),this.globalState=c,this.globalStateSchema=r,this.localStateSchema=d,this.version=void 0===h?void 0:(0,n.GE)(h)}getEncodingSchema(){return w.encodingSchema}toEncodingData(){return new Map([["approval-program",this.approvalProgram],["clear-state-program",this.clearStateProgram],["creator",void 0!==this.creator?this.creator.toString():void 0],["extra-program-pages",this.extraProgramPages],["global-state",void 0!==this.globalState?this.globalState.map(e=>e.toEncodingData()):void 0],["global-state-schema",void 0!==this.globalStateSchema?this.globalStateSchema.toEncodingData():void 0],["local-state-schema",void 0!==this.localStateSchema?this.localStateSchema.toEncodingData():void 0],["version",this.version]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded ApplicationParams: ${e}`);return new w({approvalProgram:e.get("approval-program"),clearStateProgram:e.get("clear-state-program"),creator:e.get("creator"),extraProgramPages:e.get("extra-program-pages"),globalState:void 0!==e.get("global-state")?e.get("global-state").map(e=>ea.fromEncodingData(e)):void 0,globalStateSchema:void 0!==e.get("global-state-schema")?E.fromEncodingData(e.get("global-state-schema")):void 0,localStateSchema:void 0!==e.get("local-state-schema")?E.fromEncodingData(e.get("local-state-schema")):void 0,version:e.get("version")})}}class y{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"current-round",valueSchema:new i.qc,omitEmpty:!0},{key:"application",valueSchema:new i.KN(u.encodingSchema),omitEmpty:!0})),this.encodingSchemaValue}constructor({currentRound:e,application:t}){this.currentRound=(0,n.wx)(e),this.application=t}getEncodingSchema(){return y.encodingSchema}toEncodingData(){return new Map([["current-round",this.currentRound],["application",void 0!==this.application?this.application.toEncodingData():void 0]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded ApplicationResponse: ${e}`);return new y({currentRound:e.get("current-round"),application:void 0!==e.get("application")?u.fromEncodingData(e.get("application")):void 0})}}class E{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"num-byte-slice",valueSchema:new i.qc,omitEmpty:!0},{key:"num-uint",valueSchema:new i.qc,omitEmpty:!0})),this.encodingSchemaValue}constructor({numByteSlice:e,numUint:t}){this.numByteSlice=(0,n.GE)(e),this.numUint=(0,n.GE)(t)}getEncodingSchema(){return E.encodingSchema}toEncodingData(){return new Map([["num-byte-slice",this.numByteSlice],["num-uint",this.numUint]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded ApplicationStateSchema: ${e}`);return new E({numByteSlice:e.get("num-byte-slice"),numUint:e.get("num-uint")})}}class f{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"applications",valueSchema:new i.vf(u.encodingSchema),omitEmpty:!0},{key:"current-round",valueSchema:new i.qc,omitEmpty:!0},{key:"next-token",valueSchema:new i.KN(new i.nY),omitEmpty:!0})),this.encodingSchemaValue}constructor({applications:e,currentRound:t,nextToken:a}){this.applications=e,this.currentRound=(0,n.wx)(t),this.nextToken=a}getEncodingSchema(){return f.encodingSchema}toEncodingData(){return new Map([["applications",this.applications.map(e=>e.toEncodingData())],["current-round",this.currentRound],["next-token",this.nextToken]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded ApplicationsResponse: ${e}`);return new f({applications:(e.get("applications")??[]).map(e=>
1u.fromEncodingData(e)),currentRound:e.get("current-round"),nextToken:e.get("next-token")})}}class k{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"index",valueSchema:new i.qc,omitEmpty:!0},{key:"params",valueSchema:K.encodingSchema,omitEmpty:!0},{key:"created-at-round",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"deleted",valueSchema:new i.KN(new i.od),omitEmpty:!0},{key:"destroyed-at-round",valueSchema:new i.KN(new i.qc),omitEmpty:!0})),this.encodingSchemaValue}constructor({index:e,params:t,createdAtRound:a,deleted:i,destroyedAtRound:o}){this.index=(0,n.wx)(e),this.params=t,this.createdAtRound=void 0===a?void 0:(0,n.wx)(a),this.deleted=i,this.destroyedAtRound=void 0===o?void 0:(0,n.wx)(o)}getEncodingSchema(){return k.encodingSchema}toEncodingData(){return new Map([["index",this.index],["params",this.params.toEncodingData()],["created-at-round",this.createdAtRound],["deleted",this.deleted],["destroyed-at-round",this.destroyedAtRound]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded Asset: ${e}`);return new k({index:e.get("index"),params:K.fromEncodingData(e.get("params")??new Map),createdAtRound:e.get("created-at-round"),deleted:e.get("deleted"),destroyedAtRound:e.get("destroyed-at-round")})}}class V{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"balances",valueSchema:new i.vf(O.encodingSchema),omitEmpty:!0},{key:"current-round",valueSchema:new i.qc,omitEmpty:!0},{key:"next-token",valueSchema:new i.KN(new i.nY),omitEmpty:!0})),this.encodingSchemaValue}constructor({balances:e,currentRound:t,nextToken:a}){this.balances=e,this.currentRound=(0,n.wx)(t),this.nextToken=a}getEncodingSchema(){return V.encodingSchema}toEncodingData(){return new Map([["balances",this.balances.map(e=>e.toEncodingData())],["current-round",this.currentRound],["next-token",this.nextToken]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded AssetBalancesResponse: ${e}`);return new V({balances:(e.get("balances")??[]).map(e=>O.fromEncodingData(e)),currentRound:e.get("current-round"),nextToken:e.get("next-token")})}}class D{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"amount",valueSchema:new i.qc,omitEmpty:!0},{key:"asset-id",valueSchema:new i.qc,omitEmpty:!0},{key:"is-frozen",valueSchema:new i.od,omitEmpty:!0},{key:"deleted",valueSchema:new i.KN(new i.od),omitEmpty:!0},{key:"opted-in-at-round",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"opted-out-at-round",valueSchema:new i.KN(new i.qc),omitEmpty:!0})),this.encodingSchemaValue}constructor({amount:e,assetId:t,isFrozen:a,deleted:i,optedInAtRound:o,optedOutAtRound:s}){this.amount=(0,n.wx)(e),this.assetId=(0,n.wx)(t),this.isFrozen=a,this.deleted=i,this.optedInAtRound=void 0===o?void 0:(0,n.wx)(o),this.optedOutAtRound=void 0===s?void 0:(0,n.wx)(s)}getEncodingSchema(){return D.encodingSchema}toEncodingData(){return new Map([["amount",this.amount],["asset-id",this.assetId],["is-frozen",this.isFrozen],["deleted",this.deleted],["opted-in-at-round",this.optedInAtRound],["opted-out-at-round",this.optedOutAtRound]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded AssetHolding: ${e}`);return new D({amount:e.get("amount"),assetId:e.get("asset-id"),isFrozen:e.get("is-frozen"),deleted:e.get("deleted"),optedInAtRound:e.get("opted-in-at-round"),optedOutAtRound:e.get("opted-out-at-round")})}}class x{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"assets",valueSchema:new i.vf(D.encodingSchema),omitEmpty:!0},{key:"current-round",valueSchema:new i.qc,omitEmpty:!0},{key:"next-token",valueSchema:new i.KN(new i.nY),omitEmpty:!0})),this.encodingSchemaValue}constructor({assets:e,currentRound:t,nextToken:a}){this.assets=e,this.currentRound=(0,n.wx)(t),this.nextToken=a}getEncodingSchema(){return x.encodingSchema}toEncodingData(){return new Map([["assets",this.assets.map(e=>e.toEncodingData())],["current-round",this.currentRound],["next-token",this.nextToken]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded AssetHoldingsResponse: ${e}`);return new x({assets:(e.get("assets")??[]).map(e=>
1D.fromEncodingData(e)),currentRound:e.get("current-round"),nextToken:e.get("next-token")})}}class K{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"creator",valueSchema:new i.nY,omitEmpty:!0},{key:"decimals",valueSchema:new i.qc,omitEmpty:!0},{key:"total",valueSchema:new i.qc,omitEmpty:!0},{key:"clawback",valueSchema:new i.KN(new i.nY),omitEmpty:!0},{key:"default-frozen",valueSchema:new i.KN(new i.od),omitEmpty:!0},{key:"freeze",valueSchema:new i.KN(new i.nY),omitEmpty:!0},{key:"manager",valueSchema:new i.KN(new i.nY),omitEmpty:!0},{key:"metadata-hash",valueSchema:new i.KN(new i.HM),omitEmpty:!0},{key:"name",valueSchema:new i.KN(new i.nY),omitEmpty:!0},{key:"name-b64",valueSchema:new i.KN(new i.HM),omitEmpty:!0},{key:"reserve",valueSchema:new i.KN(new i.nY),omitEmpty:!0},{key:"unit-name",valueSchema:new i.KN(new i.nY),omitEmpty:!0},{key:"unit-name-b64",valueSchema:new i.KN(new i.HM),omitEmpty:!0},{key:"url",valueSchema:new i.KN(new i.nY),omitEmpty:!0},{key:"url-b64",valueSchema:new i.KN(new i.HM),omitEmpty:!0})),this.encodingSchemaValue}constructor({creator:e,decimals:t,total:a,clawback:i,defaultFrozen:s,freeze:c,manager:r,metadataHash:d,name:h,nameB64:m,reserve:g,unitName:u,unitNameB64:l,url:p,urlB64:v}){this.creator=e,this.decimals=(0,n.GE)(t),this.total=(0,n.wx)(a),this.clawback=i,this.defaultFrozen=s,this.freeze=c,this.manager=r,this.metadataHash="string"==typeof d?(0,o.Kp)(d):d,this.name=h,this.nameB64="string"==typeof m?(0,o.Kp)(m):m,this.reserve=g,this.unitName=u,this.unitNameB64="string"==typeof l?(0,o.Kp)(l):l,this.url=p,this.urlB64="string"==typeof v?(0,o.Kp)(v):v}getEncodingSchema(){return K.encodingSchema}toEncodingData(){return new Map([["creator",this.creator],["decimals",this.decimals],["total",this.total],["clawback",this.clawback],["default-frozen",this.defaultFrozen],["freeze",this.freeze],["manager",this.manager],["metadata-hash",this.metadataHash],["name",this.name],["name-b64",this.nameB64],["reserve",this.reserve],["unit-name",this.unitName],["unit-name-b64",this.unitNameB64],["url",this.url],["url-b64",this.urlB64]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded AssetParams: ${e}`);return new K({creator:e.get("creator"),decimals:e.get("decimals"),total:e.get("total"),clawback:e.get("clawback"),defaultFrozen:e.get("default-frozen"),freeze:e.get("freeze"),manager:e.get("manager"),metadataHash:e.get("metadata-hash"),name:e.get("name"),nameB64:e.get("name-b64"),reserve:e.get("reserve"),unitName:e.get("unit-name"),unitNameB64:e.get("unit-name-b64"),url:e.get("url"),urlB64:e.get("url-b64")})}}class b{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"asset",valueSchema:k.encodingSchema,omitEmpty:!0},{key:"current-round",valueSchema:new i.qc,omitEmpty:!0})),this.encodingSchemaValue}constructor({asset:e,currentRound:t}){this.asset=e,this.currentRound=(0,n.wx)(t)}getEncodingSchema(){return b.encodingSchema}toEncodingData(){return new Map([["asset",this.asset.toEncodingData()],["current-round",this.currentRound]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded AssetResponse: ${e}`);return new b({asset:k.fromEncodingData(e.get("asset")??new Map),currentRound:e.get("current-round")})}}class N{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"assets",valueSchema:new i.vf(k.encodingSchema),omitEmpty:!0},{key:"current-round",valueSchema:new i.qc,omitEmpty:!0},{key:"next-token",valueSchema:new i.KN(new i.nY),omitEmpty:!0})),this.encodingSchemaValue}constructor({assets:e,currentRound:t,nextToken:a}){this.assets=e,this.currentRound=(0,n.wx)(t),this.nextToken=a}getEncodingSchema(){return N.encodingSchema}toEncodingData(){return new Map([["assets",this.assets.map(e=>e.toEncodingData())],["current-round",this.currentRound],["next-token",this.nextToken]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded AssetsResponse: ${e}`);return new N({assets:(e.get("assets")??[]).map(e=>
1k.fromEncodingData(e)),currentRound:e.get("current-round"),nextToken:e.get("next-token")})}}class M{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"genesis-hash",valueSchema:new i.HM,omitEmpty:!0},{key:"genesis-id",valueSchema:new i.nY,omitEmpty:!0},{key:"previous-block-hash",valueSchema:new i.HM,omitEmpty:!0},{key:"round",valueSchema:new i.qc,omitEmpty:!0},{key:"seed",valueSchema:new i.HM,omitEmpty:!0},{key:"timestamp",valueSchema:new i.qc,omitEmpty:!0},{key:"transactions-root",valueSchema:new i.HM,omitEmpty:!0},{key:"transactions-root-sha256",valueSchema:new i.HM,omitEmpty:!0},{key:"bonus",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"fees-collected",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"participation-updates",valueSchema:new i.KN(U.encodingSchema),omitEmpty:!0},{key:"proposer",valueSchema:new i.KN(new i.nY),omitEmpty:!0},{key:"proposer-payout",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"rewards",valueSchema:new i.KN(R.encodingSchema),omitEmpty:!0},{key:"state-proof-tracking",valueSchema:new i.KN(new i.vf(X.encodingSchema)),omitEmpty:!0},{key:"transactions",valueSchema:new i.KN(new i.vf(ei.encodingSchema)),omitEmpty:!0},{key:"txn-counter",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"upgrade-state",valueSchema:new i.KN(P.encodingSchema),omitEmpty:!0},{key:"upgrade-vote",valueSchema:new i.KN(T.encodingSchema),omitEmpty:!0})),this.encodingSchemaValue}constructor({genesisHash:e,genesisId:t,previousBlockHash:a,round:i,seed:c,timestamp:r,transactionsRoot:d,transactionsRootSha256:h,bonus:m,feesCollected:g,participationUpdates:u,proposer:l,proposerPayout:p,rewards:v,stateProofTracking:S,transactions:w,txnCounter:y,upgradeState:E,upgradeVote:f}){this.genesisHash="string"==typeof e?(0,o.Kp)(e):e,this.genesisId=t,this.previousBlockHash="string"==typeof a?(0,o.Kp)(a):a,this.round=(0,n.wx)(i),this.seed="string"==typeof c?(0,o.Kp)(c):c,this.timestamp=(0,n.GE)(r),this.transactionsRoot="string"==typeof d?(0,o.Kp)(d):d,this.transactionsRootSha256="string"==typeof h?(0,o.Kp)(h):h,this.bonus=void 0===m?void 0:(0,n.GE)(m),this.feesCollected=void 0===g?void 0:(0,n.GE)(g),this.participationUpdates=u,this.proposer="string"==typeof l?s.pV.fromString(l):l,this.proposerPayout=void 0===p?void 0:(0,n.GE)(p),this.rewards=v,this.stateProofTracking=S,this.transactions=w,this.txnCounter=void 0===y?void 0:(0,n.GE)(y),this.upgradeState=E,this.upgradeVote=f}getEncodingSchema(){return M.encodingSchema}toEncodingData(){return new Map([["genesis-hash",this.genesisHash],["genesis-id",this.genesisId],["previous-block-hash",this.previousBlockHash],["round",this.round],["seed",this.seed],["timestamp",this.timestamp],["transactions-root",this.transactionsRoot],["transactions-root-sha256",this.transactionsRootSha256],["bonus",this.bonus],["fees-collected",this.feesCollected],["participation-updates",void 0!==this.participationUpdates?this.participationUpdates.toEncodingData():void 0],["proposer",void 0!==this.proposer?this.proposer.toString():void 0],["proposer-payout",this.proposerPayout],["rewards",void 0!==this.rewards?this.rewards.toEncodingData():void 0],["state-proof-tracking",void 0!==this.stateProofTracking?this.stateProofTracking.map(e=>e.toEncodingData()):void 0],["transactions",void 0!==this.transactions?this.transactions.map(e=>e.toEncodingData()):void 0],["txn-counter",this.txnCounter],["upgrade-state",void 0!==this.upgradeState?this.upgradeState.toEncodingData():void 0],["upgrade-vote",void 0!==this.upgradeVote?this.upgradeVote.toEncodingData():void 0]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded Block: ${e}`);return new M({genesisHash:e.get("genesis-hash"),genesisId:e.get("genesis-id"),previousBlockHash:e.get("previous-block-hash"),round:e.get("round"),seed:e.get("seed"),timestamp:e.get("timestamp"),transactionsRoot:e.get("transactions-root"),transactionsRootSha256:e.get("transactions-root-sha256"),bonus:e.get("bonus"),feesCollected:e.get("fees-collected"),participationUpdates:void 0!==e.get("participation-updates")?U.fromEncodingData(e.get("participation-updates")):void 0,proposer:e.get("proposer"),proposerPayout:e.get("proposer-payout"),rewards:void 0!==e.get("rewards")?R.fromEncodingData(e.get("rewards")):void 0,stateProofTracking:void 0!==e.get("state-proof-tracking")?e.get("state-proof-tracking").map(e=>X.fromEncodingData(e)):void 0,transactions:void 0!==e.get("transactions")?e.get("transactions").map(e=>ei.fromEncodingData(e)):void 0,txnCounter:e.get("txn-counter"),upgradeState:void 0!==e.get("upgrade-state")?P.fromEncodingData(e.get("upgrade-state")):void 0,upgradeVote:void 0!==e.get("upgrade-vote")?T.fromEncodingData(e.get("upgrade-vote")):void 0})}}class A{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"blocks",valueSchema:new i.vf(M.encodingSchema),omitEmpty:!0},{key:"current-round",valueSchema:new i.qc,omitEmpty:!0},{key:"next-token",valueSchema:new i.KN(new i.nY),omitEmpty:!0})),this.encodingSchemaValue}constructor({blocks:e,currentRound:t,nextToken:a}){this.blocks=e,this.currentRound=(0,n.wx)(t),this.nextToken=a}getEncodingSchema(){return A.encodingSchema}toEncodingData(){return new Map([["blocks",this.blocks.map(e=>e.toEncodingData())],["current-round",this.currentRound],["next-token",this.nextToken]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded BlockHeadersResponse: ${e}`);return new A({blocks:(e.get("blocks")??[]).map(e=>
1M.fromEncodingData(e)),currentRound:e.get("current-round"),nextToken:e.get("next-token")})}}class R{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"fee-sink",valueSchema:new i.nY,omitEmpty:!0},{key:"rewards-calculation-round",valueSchema:new i.qc,omitEmpty:!0},{key:"rewards-level",valueSchema:new i.qc,omitEmpty:!0},{key:"rewards-pool",valueSchema:new i.nY,omitEmpty:!0},{key:"rewards-rate",valueSchema:new i.qc,omitEmpty:!0},{key:"rewards-residue",valueSchema:new i.qc,omitEmpty:!0})),this.encodingSchemaValue}constructor({feeSink:e,rewardsCalculationRound:t,rewardsLevel:a,rewardsPool:i,rewardsRate:o,rewardsResidue:s}){this.feeSink=e,this.rewardsCalculationRound=(0,n.wx)(t),this.rewardsLevel=(0,n.wx)(a),this.rewardsPool=i,this.rewardsRate=(0,n.wx)(o),this.rewardsResidue=(0,n.wx)(s)}getEncodingSchema(){return R.encodingSchema}toEncodingData(){return new Map([["fee-sink",this.feeSink],["rewards-calculation-round",this.rewardsCalculationRound],["rewards-level",this.rewardsLevel],["rewards-pool",this.rewardsPool],["rewards-rate",this.rewardsRate],["rewards-residue",this.rewardsResidue]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded BlockRewards: ${e}`);return new R({feeSink:e.get("fee-sink"),rewardsCalculationRound:e.get("rewards-calculation-round"),rewardsLevel:e.get("rewards-level"),rewardsPool:e.get("rewards-pool"),rewardsRate:e.get("rewards-rate"),rewardsResidue:e.get("rewards-residue")})}}class P{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"current-protocol",valueSchema:new i.nY,omitEmpty:!0},{key:"next-protocol",valueSchema:new i.KN(new i.nY),omitEmpty:!0},{key:"next-protocol-approvals",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"next-protocol-switch-on",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"next-protocol-vote-before",valueSchema:new i.KN(new i.qc),omitEmpty:!0})),this.encodingSchemaValue}constructor({currentProtocol:e,nextProtocol:t,nextProtocolApprovals:a,nextProtocolSwitchOn:i,nextProtocolVoteBefore:o}){this.currentProtocol=e,this.nextProtocol=t,this.nextProtocolApprovals=void 0===a?void 0:(0,n.GE)(a),this.nextProtocolSwitchOn=void 0===i?void 0:(0,n.wx)(i),this.nextProtocolVoteBefore=void 0===o?void 0:(0,n.wx)(o)}getEncodingSchema(){return P.encodingSchema}toEncodingData(){return new Map([["current-protocol",this.currentProtocol],["next-protocol",this.nextProtocol],["next-protocol-approvals",this.nextProtocolApprovals],["next-protocol-switch-on",this.nextProtocolSwitchOn],["next-protocol-vote-before",this.nextProtocolVoteBefore]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded BlockUpgradeState: ${e}`);return new P({currentProtocol:e.get("current-protocol"),nextProtocol:e.get("next-protocol"),nextProtocolApprovals:e.get("next-protocol-approvals"),nextProtocolSwitchOn:e.get("next-protocol-switch-on"),nextProtocolVoteBefore:e.get("next-protocol-vote-before")})}}class T{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"upgrade-approve",valueSchema:new i.KN(new i.od),omitEmpty:!0},{key:"upgrade-delay",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"upgrade-propose",valueSchema:new i.KN(new i.nY),omitEmpty:!0})),this.encodingSchemaValue}constructor({upgradeApprove:e,upgradeDelay:t,upgradePropose:a}){this.upgradeApprove=e,this.upgradeDelay=void 0===t?void 0:(0,n.wx)(t),this.upgradePropose=a}getEncodingSchema(){return T.encodingSchema}toEncodingData(){return new Map([["upgrade-approve",this.upgradeApprove],["upgrade-delay",this.upgradeDelay],["upgrade-propose",this.upgradePropose]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded BlockUpgradeVote: ${e}`);return new T({upgradeApprove:e.get("upgrade-approve"),upgradeDelay:e.get("upgrade-delay"),upgradePropose:e.get("upgrade-propose")})}}class q{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"name",valueSchema:new i.HM,omitEmpty:!0}
1,{key:"round",valueSchema:new i.qc,omitEmpty:!0},{key:"value",valueSchema:new i.HM,omitEmpty:!0})),this.encodingSchemaValue}constructor({name:e,round:t,value:a}){this.name="string"==typeof e?(0,o.Kp)(e):e,this.round=(0,n.wx)(t),this.value="string"==typeof a?(0,o.Kp)(a):a}getEncodingSchema(){return q.encodingSchema}toEncodingData(){return new Map([["name",this.name],["round",this.round],["value",this.value]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded Box: ${e}`);return new q({name:e.get("name"),round:e.get("round"),value:e.get("value")})}}class I{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"name",valueSchema:new i.HM,omitEmpty:!0})),this.encodingSchemaValue}constructor({name:e}){this.name="string"==typeof e?(0,o.Kp)(e):e}getEncodingSchema(){return I.encodingSchema}toEncodingData(){return new Map([["name",this.name]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded BoxDescriptor: ${e}`);return new I({name:e.get("name")})}}class H{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"app",valueSchema:new i.qc,omitEmpty:!0},{key:"name",valueSchema:new i.HM,omitEmpty:!0})),this.encodingSchemaValue}constructor({app:e,name:t}){this.app=(0,n.GE)(e),this.name="string"==typeof t?(0,o.Kp)(t):t}getEncodingSchema(){return H.encodingSchema}toEncodingData(){return new Map([["app",this.app],["name",this.name]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded BoxReference: ${e}`);return new H({app:e.get("app"),name:e.get("name")})}}class Z{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"application-id",valueSchema:new i.qc,omitEmpty:!0},{key:"boxes",valueSchema:new i.vf(I.encodingSchema),omitEmpty:!0},{key:"next-token",valueSchema:new i.KN(new i.nY),omitEmpty:!0})),this.encodingSchemaValue}constructor({applicationId:e,boxes:t,nextToken:a}){this.applicationId=(0,n.wx)(e),this.boxes=t,this.nextToken=a}getEncodingSchema(){return Z.encodingSchema}toEncodingData(){return new Map([["application-id",this.applicationId],["boxes",this.boxes.map(e=>e.toEncodingData())],["next-token",this.nextToken]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded BoxesResponse: ${e}`);return new Z({applicationId:e.get("application-id"),boxes:(e.get("boxes")??[]).map(e=>I.fromEncodingData(e)),nextToken:e.get("next-token")})}}class ${static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"message",valueSchema:new i.nY,omitEmpty:!0},{key:"data",valueSchema:new i.KN(c.N.encodingSchema),omitEmpty:!0})),this.encodingSchemaValue}constructor({message:e,data:t}){this.message=e,this.data=t}getEncodingSchema(){return $.encodingSchema}toEncodingData(){return new Map([["message",this.message],["data",void 0!==this.data?this.data.toEncodingData():void 0]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded ErrorResponse: ${e}`);return new $({message:e.get("message"),data:void 0!==e.get("data")?c.N.fromEncodingData(e.get("data")):void 0})}}class B{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"action",valueSchema:new i.qc,omitEmpty:!0},{key:"bytes",valueSchema:new i.KN(new i.nY),omitEmpty:!0},{key:"uint",valueSchema:new i.KN(new i.qc),omitEmpty:!0})),this.encodingSchemaValue}constructor({action:e,bytes:t,uint:a}){this.action=(0,n.GE)(e),this.bytes=t,this.uint=void 0===a?void 0:(0,n.wx)(a)}getEncodingSchema(){return B.encodingSchema}toEncodingData(){return new Map([["action",this.action],["bytes",this.bytes],["uint",this.uint]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded EvalDelta: ${e}`);return new B({action:e.get("action"),bytes:e.get("bytes"),uint:e.get("uint")})}}class Y{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"key",valueSchema:new i.nY,omitEmpty:!0},{key:"value",valueSchema:B.encodingSchema,omitEmpty:!0})),this.encodingSchemaValue}constructor({key:e,value:t}){this.key=e,this.value=t}getEncodingSchema(){return Y.encodingSchema}toEncodingData(){return new Map([["key",this.key],["value",this.value.toEncodingData()]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded EvalDeltaKeyValue: ${e}`);return new Y({key:e.get("key"),value:B.fromEncodingData(e.get("value")??new Map)})}}class z{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"hash-type",valueSchema:new i.KN(new i.qc),omitEmpty:!0})),this.encodingSchemaValue}constructor({hashType:e}){this.hashType=void 0===e?void 0:(0,n.GE)(e)}getEncodingSchema(){return z.encodingSchema}
1toEncodingData(){return new Map([["hash-type",this.hashType]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded HashFactory: ${e}`);return new z({hashType:e.get("hash-type")})}}class C{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"hb-pk",valueSchema:new i.KN(new i.HM),omitEmpty:!0},{key:"hb-pk1sig",valueSchema:new i.KN(new i.HM),omitEmpty:!0},{key:"hb-pk2",valueSchema:new i.KN(new i.HM),omitEmpty:!0},{key:"hb-pk2sig",valueSchema:new i.KN(new i.HM),omitEmpty:!0},{key:"hb-sig",valueSchema:new i.KN(new i.HM),omitEmpty:!0})),this.encodingSchemaValue}constructor({hbPk:e,hbPk1sig:t,hbPk2:a,hbPk2sig:n,hbSig:i}){this.hbPk="string"==typeof e?(0,o.Kp)(e):e,this.hbPk1sig="string"==typeof t?(0,o.Kp)(t):t,this.hbPk2="string"==typeof a?(0,o.Kp)(a):a,this.hbPk2sig="string"==typeof n?(0,o.Kp)(n):n,this.hbSig="string"==typeof i?(0,o.Kp)(i):i}getEncodingSchema(){return C.encodingSchema}toEncodingData(){return new Map([["hb-pk",this.hbPk],["hb-pk1sig",this.hbPk1sig],["hb-pk2",this.hbPk2],["hb-pk2sig",this.hbPk2sig],["hb-sig",this.hbSig]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded HbProofFields: ${e}`);return new C({hbPk:e.get("hb-pk"),hbPk1sig:e.get("hb-pk1sig"),hbPk2:e.get("hb-pk2"),hbPk2sig:e.get("hb-pk2sig"),hbSig:e.get("hb-sig")})}}class G{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"db-available",valueSchema:new i.od,omitEmpty:!0},{key:"is-migrating",valueSchema:new i.od,omitEmpty:!0},{key:"message",valueSchema:new i.nY,omitEmpty:!0},{key:"round",valueSchema:new i.qc,omitEmpty:!0},{key:"version",valueSchema:new i.nY,omitEmpty:!0},{key:"data",valueSchema:new i.KN(c.N.encodingSchema),omitEmpty:!0},{key:"errors",valueSchema:new i.KN(new i.vf(new i.nY)),omitEmpty:!0})),this.encodingSchemaValue}constructor({dbAvailable:e,isMigrating:t,message:a,round:i,version:o,data:s,errors:c}){this.dbAvailable=e,this.isMigrating=t,this.message=a,this.round=(0,n.wx)(i),this.version=o,this.data=s,this.errors=c}getEncodingSchema(){return G.encodingSchema}toEncodingData(){return new Map([["db-available",this.dbAvailable],["
1is-migrating",this.isMigrating],["message",this.message],["round",this.round],["version",this.version],["data",void 0!==this.data?this.data.toEncodingData():void 0],["errors",this.errors]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded HealthCheck: ${e}`);return new G({dbAvailable:e.get("db-available"),isMigrating:e.get("is-migrating"),message:e.get("message"),round:e.get("round"),version:e.get("version"),data:void 0!==e.get("data")?c.N.fromEncodingData(e.get("data")):void 0,errors:e.get("errors")})}}class F{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"block-headers-commitment",valueSchema:new i.KN(new i.HM),omitEmpty:!0},{key:"first-attested-round",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"latest-attested-round",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"ln-proven-weight",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"voters-commitment",valueSchema:new i.KN(new i.HM),omitEmpty:!0})),this.encodingSchemaValue}constructor({blockHeadersCommitment:e,firstAttestedRound:t,latestAttestedRound:a,lnProvenWeight:i,votersCommitment:s}){this.blockHeadersCommitment="string"==typeof e?(0,o.Kp)(e):e,this.firstAttestedRound=void 0===t?void 0:(0,n.wx)(t),this.latestAttestedRound=void 0===a?void 0:(0,n.wx)(a),this.lnProvenWeight=void 0===i?void 0:(0,n.wx)(i),this.votersCommitment="string"==typeof s?(0,o.Kp)(s):s}getEncodingSchema(){return F.encodingSchema}toEncodingData(){return new Map([["block-headers-commitment",this.blockHeadersCommitment],["first-attested-round",this.firstAttestedRound],["latest-attested-round",this.latestAttestedRound],["ln-proven-weight",this.lnProvenWeight],["voters-commitment",this.votersCommitment]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded IndexerStateProofMessage: ${e}`);return new F({blockHeadersCommitment:e.get("block-headers-commitment"),firstAttestedRound:e.get("first-attested-round"),latestAttestedRound:e.get("latest-attested-round"),lnProvenWeight:e.get("ln-proven-weight"),votersCommitment:e.get("voters-commitment")})}}class L{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"hash-factory",valueSchema:new i.KN(z.encodingSchema),omitEmpty:!0},{key:"path",valueSchema:new i.KN(new i.vf(new i.HM)),omitEmpty:!0},{key:"tree-depth",valueSchema:new i.KN(new i.qc),omitEmpty:!0})),this.encodingSchemaValue}constructor({hashFactory:e,path:t,treeDepth:a}){this.hashFactory=e,this.path=t,this.treeDepth=void 0===a?void 0:(0,n.GE)(a)}getEncodingSchema(){return L.encodingSchema}toEncodingData(){return new Map([["hash-factory",void 0!==this.hashFactory?this.hashFactory.toEncodingData():void 0],["path",this.path],["tree-depth",this.treeDepth]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded MerkleArrayProof: ${e}`);return new L({hashFactory:void 0!==e.get("hash-factory")?z.fromEncodingData(e.get("hash-factory")):void 0,path:e.get("path"),treeDepth:e.get("tree-depth")})}}class O{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"address",valueSchema:new i.nY,omitEmpty:!0},{key:"amount",valueSchema:new i.qc,omitEmpty:!0},{key:"is-frozen",valueSchema:new i.od,omitEmpty:!0},{key:"deleted",valueSchema:new i.KN(new i.od),omitEmpty:!0},{key:"opted-in-at-round",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"opted-out-at-round",valueSchema:new i.KN(new i.qc),omitEmpty:!0})),this.encodingSchemaValue}constructor({address:e,amount:t,isFrozen:a,deleted:i,optedInAtRound:o,optedOutAtRound:s}){this.address=e,this.amount=(0,n.wx)(t),this.isFrozen=a,this.deleted=i,this.optedInAtRound=void 0===o?void 0:(0,n.wx)(o),this.optedOutAtRound=void 0===s?void 0:(0,n.wx)(s)}getEncodingSchema(){return O.encodingSchema}toEncodingData(){return new Map([["address",this.address],["amount",this.amount],["is-frozen",this.isFrozen],["deleted",this.deleted],["opted-in-at-round",this.optedInAtRound],["opted-out-at-round",this.optedOutAtRound]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded MiniAssetHolding: ${e}`);return new O({address:e.get("address"),amount:e.get("amount"),isFrozen:e.get("is-frozen"),deleted:e.get("deleted"),optedInAtRound:e.get("opted-in-at-round"),optedOutAtRound:e.get("opted-out-at-round")})}}class U{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"absent-participation-accounts",valueSchema:new i.KN(new i.vf(new i.nY)),omitEmpty:!0},{key:"expired-participation-accounts",valueSchema:new i.KN(new i.vf(new i.nY)),omitEmpty:!0})),this.encodingSchemaValue}constructor({absentParticipationAccounts:e,expiredParticipationAccounts:t}){this.absentParticipationAccounts=e,this.expiredParticipationAccounts=t}getEncodingSchema(){return U.encodingSchema}toEncodingData(){return new Map([["absent-participation-accounts",this.absentParticipationAccounts],["expired-participation-accounts",this.expiredParticipationAccounts]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded ParticipationUpdates: ${e}`);return new U({absentParticipationAccounts:e.get("absent-participation-accounts"),expiredParticipationAccounts:e.get("expired-participation-accounts")})}}class W{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"part-proofs",valueSchema:new i.KN(L.encodingSchema),omitEmpty:!0},{key:"positions-to-reveal",valueSchema:new i.KN(new i.vf(new i.qc)),omitEmpty:!0},{key:"reveals",valueSchema:new i.KN(new i.vf(_.encodingSchema)),omitEmpty:!0},{key:"salt-version",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"sig-commit",valueSchema:new i.KN(new i.HM),omitEmpty:!0},{key:"sig-proofs",valueSchema:new i.KN(L.encodingSchema),omitEmpty:!0},{key:"signed-weight",valueSchema:new i.KN(new i.qc),omitEmpty:!0})),this.encodingSchemaValue}constructor({partProofs:e,positionsToReveal:t,reveals:a,saltVersion:i,sigCommit:s,sigProofs:c,signedWeight:r}){this.partProofs=e,this.positionsToReveal=void 0===t?void 0:t.map(n.wx),this.reveals=a,this.saltVersion=void 0===i?void 0:(0,n.GE)(i),this.sigCommit="string"==typeof s?(0,o.Kp)(s):s,this.sigProofs=c,this.signedWeight=void 0===r?void 0:(0,n.wx)(r)}getEncodingSchema(){return W.encodingSchema}toEncodingData(){return new Map([["part-proofs",void 0!==this.partProofs?this.partProofs.toEncodingData():void 0],["positions-to-reveal",this.positionsToReveal],["reveals",void 0!==this.reveals?this.reveals.map(e=>e.toEncodingData()):void 0],["salt-version",this.saltVersion],["sig-commit",this.sigCommit],["sig-proofs",void 0!==this.sigProofs?this.sigProofs.toEncodingData():void 0],["signed-weight",this.signedWeight]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded StateProofFields: ${e}`);return new W({partProofs:void 0!==e.get("part-proofs")?L.fromEncodingData(e.get("part-proofs")):void 0,positionsToReveal:e.get("positions-to-reveal"),reveals:void 0!==e.get("reveals")?e.get("reveals").map(e=>_.fromEncodingData(e)):void 0,saltVersion:e.get("salt-version"),sigCommit:e.get("sig-commit"),sigProofs:void 0!==e.get("sig-proofs")?L.fromEncodingData(e.get("sig-proofs")):void 0,signedWeight:e.get("signed-weight")})}}class j{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"verifier",valueSchema:new i.KN(ee.encodingSchema),omitEmpty:!0},{key:"weight",valueSchema:new i.KN(new i.qc),omitEmpty:!0})),this.encodingSchemaValue}constructor({verifier:e,weight:t}){this.verifier=e,this.weight=void 0===t?void 0:(0,n.wx)(t)}getEncodingSchema(){return j.encodingSchema}toEncodingData(){return new Map([["verifier",void 0!==this.verifier?this.verifier.toEncodingData():void 0],["weight",this.weight]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded StateProofParticipant: ${e}`);
1return new j({verifier:void 0!==e.get("verifier")?ee.fromEncodingData(e.get("verifier")):void 0,weight:e.get("weight")})}}class _{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"participant",valueSchema:new i.KN(j.encodingSchema),omitEmpty:!0},{key:"position",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"sig-slot",valueSchema:new i.KN(J.encodingSchema),omitEmpty:!0})),this.encodingSchemaValue}constructor({participant:e,position:t,sigSlot:a}){this.participant=e,this.position=void 0===t?void 0:(0,n.wx)(t),this.sigSlot=a}getEncodingSchema(){return _.encodingSchema}toEncodingData(){return new Map([["participant",void 0!==this.participant?this.participant.toEncodingData():void 0],["position",this.position],["sig-slot",void 0!==this.sigSlot?this.sigSlot.toEncodingData():void 0]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded StateProofReveal: ${e}`);return new _({participant:void 0!==e.get("participant")?j.fromEncodingData(e.get("participant")):void 0,position:e.get("position"),sigSlot:void 0!==e.get("sig-slot")?J.fromEncodingData(e.get("sig-slot")):void 0})}}class J{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"lower-sig-weight",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"signature",valueSchema:new i.KN(Q.encodingSchema),omitEmpty:!0})),this.encodingSchemaValue}constructor({lowerSigWeight:e,signature:t}){this.lowerSigWeight=void 0===e?void 0:(0,n.wx)(e),this.signature=t}getEncodingSchema(){return J.encodingSchema}toEncodingData(){return new Map([["lower-sig-weight",this.lowerSigWeight],["signature",void 0!==this.signature?this.signature.toEncodingData():void 0]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded StateProofSigSlot: ${e}`);return new J({lowerSigWeight:e.get("lower-sig-weight"),signature:void 0!==e.get("signature")?Q.fromEncodingData(e.get("signature")):void 0})}}class Q{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"falcon-signature",valueSchema:new i.KN(new i.HM),omitEmpty:!0},{key:"merkle-array-index",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"proof",valueSchema:new i.KN(L.encodingSchema),omitEmpty:!0},{key:"verifying-key",valueSchema:new i.KN(new i.HM),omitEmpty:!0})),this.encodingSchemaValue}constructor({falconSignature:e,merkleArrayIndex:t,proof:a,verifyingKey:i}){this.falconSignature="string"==typeof e?(0,o.Kp)(e):e,this.merkleArrayIndex=void 0===t?void 0:(0,n.GE)(t),this.proof=a,this.verifyingKey="string"==typeof i?(0,o.Kp)(i):i}getEncodingSchema(){return Q.encodingSchema}toEncodingData(){return new Map([["falcon-signature",this.falconSignature],["merkle-array-index",this.merkleArrayIndex],["proof",void 0!==this.proof?this.proof.toEncodingData():void 0],["verifying-key",this.verifyingKey]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded StateProofSignature: ${e}`);return new Q({falconSignature:e.get("falcon-signature"),merkleArrayIndex:e.get("merkle-array-index"),proof:void 0!==e.get("proof")?L.fromEncodingData(e.get("proof")):void 0,verifyingKey:e.get("verifying-key")})}}class X{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"next-round",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"online-total-weight",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"type",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"voters-commitment",valueSchema:new i.KN(new i.HM),omitEmpty:!0})),this.encodingSchemaValue}constructor({nextRound:e,onlineTotalWeight:t,type:a,votersCommitment:i}){this.nextRound=void 0===e?void 0:(0,n.wx)(e),this.onlineTotalWeight=void 0===t?void 0:(0,n.wx)(t),this.type=void 0===a?void 0:(0,n.GE)(a),this.votersCommitment="string"==typeof i?(0,o.Kp)(i):i}getEncodingSchema(){return X.encodingSchema}toEncodingData(){return new Map([["next-round",this.nextRound],["online-total-weight",this.onlineTotalWeight],["type",this.type],["voters-commitment",this.votersCommitment]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded StateProofTracking: ${e}`);return new X({nextRound:e.get("next-round"),onlineTotalWeight:e.get("online-total-weight"),type:e.get("type"),votersCommitment:e.get("voters-commitment")})}}class ee{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"commitment",valueSchema:new i.KN(new i.HM),omitEmpty:!0},{key:"key-lifetime",valueSchema:new i.KN(new i.qc),omitEmpty:!0})),this.encodingSchemaValue}constructor({commitment:e,keyLifetime:t}){this.commitment="string"==typeof e?(0,o.Kp)(e):e,this.keyLifetime=void 0===t?void 0:(0,n.wx)(t)}getEncodingSchema(){return ee.encodingSchema}toEncodingData(){return new Map([["commitment",this.commitment],["key-lifetime",this.keyLifetime]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded StateProofVerifier: ${e}`);return new ee({commitment:e.get("commitment"),keyLifetime:e.get("key-lifetime")}
1)}}class et{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"num-byte-slice",valueSchema:new i.qc,omitEmpty:!0},{key:"num-uint",valueSchema:new i.qc,omitEmpty:!0})),this.encodingSchemaValue}constructor({numByteSlice:e,numUint:t}){this.numByteSlice=(0,n.GE)(e),this.numUint=(0,n.GE)(t)}getEncodingSchema(){return et.encodingSchema}toEncodingData(){return new Map([["num-byte-slice",this.numByteSlice],["num-uint",this.numUint]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded StateSchema: ${e}`);return new et({numByteSlice:e.get("num-byte-slice"),numUint:e.get("num-uint")})}}class ea{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"key",valueSchema:new i.HM,omitEmpty:!0},{key:"value",valueSchema:en.encodingSchema,omitEmpty:!0})),this.encodingSchemaValue}constructor({key:e,value:t}){this.key="string"==typeof e?(0,o.Kp)(e):e,this.value=t}getEncodingSchema(){return ea.encodingSchema}toEncodingData(){return new Map([["key",this.key],["value",this.value.toEncodingData()]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded TealKeyValue: ${e}`);return new ea({key:e.get("key"),value:en.fromEncodingData(e.get("value")??new Map)})}}class en{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"bytes",valueSchema:new i.HM,omitEmpty:!0},{key:"type",valueSchema:new i.qc,omitEmpty:!0},{key:"uint",valueSchema:new i.qc,omitEmpty:!0})),this.encodingSchemaValue}constructor({bytes:e,type:t,uint:a}){this.bytes="string"==typeof e?(0,o.Kp)(e):e,this.type=(0,n.GE)(t),this.uint=(0,n.wx)(a)}getEncodingSchema(){return en.encodingSchema}toEncodingData(){return new Map([["bytes",this.bytes],["type",this.type],["uint",this.uint]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded TealValue: ${e}`);return new en({bytes:e.get("bytes"),type:e.get("type"),uint:e.get("uint")})}}class ei{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"fee",valueSchema:new i.qc,omitEmpty:!0},{key:"first-valid",valueSchema:new i.qc,omitEmpty:!0},{key:"last-valid",valueSchema:new i.qc,omitEmpty:!0},{key:"sender",valueSchema:new i.nY,omitEmpty:!0},{key:"application-transaction",valueSchema:new i.KN(eo.encodingSchema),omitEmpty:!0},{key:"asset-config-transaction",valueSchema:new i.KN(es.encodingSchema),omitEmpty:!0},{key:"asset-freeze-transaction",valueSchema:new i.KN(ec.encodingSchema),omitEmpty:!0},{key:"asset-transfer-transaction",valueSchema:new i.KN(er.encodingSchema),omitEmpty:!0},{key:"auth-addr",valueSchema:new i.KN(new i.nY),omitEmpty:!0},{key:"close-rewards",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"closing-amount",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"confirmed-round",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"created-application-index",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"created-asset-index",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"genesis-hash",valueSchema:new i.KN(new i.HM),omitEmpty:!0},{key:"genesis-id",valueSchema:new i.KN(new i.nY),omitEmpty:!0},{key:"global-state-delta",valueSchema:new i.KN(new i.vf(Y.encodingSchema)),omitEmpty:!0},{key:"group",valueSchema:new i.KN(new i.HM),omitEmpty:!0},{key:"heartbeat-transaction",valueSchema:new i.KN(ed.encodingSchema),omitEmpty:!0},{key:"id",valueSchema:new i.KN(new i.nY),omitEmpty:!0},{key:"inner-txns",valueSchema:new i.KN(new i.vf(ei.encodingSchema)),omitEmpty:!0},{key:"intra-round-offset",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"keyreg-transaction",valueSchema:new i.KN(eh.encodingSchema),omitEmpty:!0},{key:"lease",valueSchema:new i.KN(new i.HM),omitEmpty:!0},{key:"local-state-delta",valueSchema:new i.KN(new i.vf(m.encodingSchema)),omitEmpty:!0},{key:"logs",valueSchema:new i.KN(new i.vf(new i.HM)),omitEmpty:!0},{key:"note",valueSchema:new i.KN(new i.HM),omitEmpty:!0},{key:"payment-transaction",valueSchema:new i.KN(em.encodingSchema),omitEmpty:!0},{key:"receiver-rewards",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"rekey-to",valueSchema:new i.KN(new i.nY),omitEmpty:!0}
1,{key:"round-time",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"sender-rewards",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"signature",valueSchema:new i.KN(eu.encodingSchema),omitEmpty:!0},{key:"state-proof-transaction",valueSchema:new i.KN(eS.encodingSchema),omitEmpty:!0},{key:"tx-type",valueSchema:new i.KN(new i.nY),omitEmpty:!0})),this.encodingSchemaValue}constructor({fee:e,firstValid:t,lastValid:a,sender:i,applicationTransaction:c,assetConfigTransaction:r,assetFreezeTransaction:d,assetTransferTransaction:h,authAddr:m,closeRewards:g,closingAmount:u,confirmedRound:l,createdApplicationIndex:p,createdAssetIndex:v,genesisHash:S,genesisId:w,globalStateDelta:y,group:E,heartbeatTransaction:f,id:k,innerTxns:V,intraRoundOffset:D,keyregTransaction:x,lease:K,localStateDelta:b,logs:N,note:M,paymentTransaction:A,receiverRewards:R,rekeyTo:P,roundTime:T,senderRewards:q,signature:I,stateProofTransaction:H,txType:Z}){this.fee=(0,n.wx)(e),this.firstValid=(0,n.wx)(t),this.lastValid=(0,n.wx)(a),this.sender=i,this.applicationTransaction=c,this.assetConfigTransaction=r,this.assetFreezeTransaction=d,this.assetTransferTransaction=h,this.authAddr="string"==typeof m?s.pV.fromString(m):m,this.closeRewards=void 0===g?void 0:(0,n.wx)(g),this.closingAmount=void 0===u?void 0:(0,n.wx)(u),this.confirmedRound=void 0===l?void 0:(0,n.wx)(l),this.createdApplicationIndex=void 0===p?void 0:(0,n.wx)(p),this.createdAssetIndex=void 0===v?void 0:(0,n.wx)(v),this.genesisHash="string"==typeof S?(0,o.Kp)(S):S,this.genesisId=w,this.globalStateDelta=y,this.group="string"==typeof E?(0,o.Kp)(E):E,this.heartbeatTransaction=f,this.id=k,this.innerTxns=V,this.intraRoundOffset=void 0===D?void 0:(0,n.GE)(D),this.keyregTransaction=x,this.lease="string"==typeof K?(0,o.Kp)(K):K,this.localStateDelta=b,this.logs=N,this.note="string"==typeof M?(0,o.Kp)(M):M,this.paymentTransaction=A,this.receiverRewards=void 0===R?void 0:(0,n.wx)(R),this.rekeyTo="str
1ing"==typeof P?s.pV.fromString(P):P,this.roundTime=void 0===T?void 0:(0,n.GE)(T),this.senderRewards=void 0===q?void 0:(0,n.wx)(q),this.signature=I,this.stateProofTransaction=H,this.txType=Z}getEncodingSchema(){return ei.encodingSchema}toEncodingData(){return new Map([["fee",this.fee],["first-valid",this.firstValid],["last-valid",this.lastValid],["sender",this.sender],["application-transaction",void 0!==this.applicationTransaction?this.applicationTransaction.toEncodingData():void 0],["asset-config-transaction",void 0!==this.assetConfigTransaction?this.assetConfigTransaction.toEncodingData():void 0],["asset-freeze-transaction",void 0!==this.assetFreezeTransaction?this.assetFreezeTransaction.toEncodingData():void 0],["asset-transfer-transaction",void 0!==this.assetTransferTransaction?this.assetTransferTransaction.toEncodingData():void 0],["auth-addr",void 0!==this.authAddr?this.authAddr.toString():void 0],["close-rewards",this.closeRewards],["closing-amount",this.closingAmount],["confirmed-round",this.confirmedRound],["created-application-index",this.createdApplicationIndex],["created-asset-index",this.createdAssetIndex],["genesis-hash",this.genesisHash],["genesis-id",this.genesisId],["global-state-delta",void 0!==this.globalStateDelta?this.globalStateDelta.map(e=>e.toEncodingData()):void 0],["group",this.group],["heartbeat-transaction",void 0!==this.heartbeatTransaction?this.heartbeatTransaction.toEncodingData():void 0],["id",this.id],["inner-txns",void 0!==this.innerTxns?this.innerTxns.map(e=>e.toEncodingData()):void 0],["intra-round-offset",this.intraRoundOffset],["keyreg-transaction",void 0!==this.keyregTransaction?this.keyregTransaction.toEncodingData():void 0],["lease",this.lease],["local-state-delta",void 0!==this.localStateDelta?this.localStateDelta.map(e=>e.toEncodingData()):void 0],["logs",this.logs],["note",this.note],["payment-transaction",void 0!==this.paymentTransaction?this.paymentTransaction.toEncodingData():void 0],["receiver-rewards",this.receiverRewards],["rekey-to",void 0!==this.rekeyTo?this.rekeyTo.toString():void 0],["round-time",this.roundTime],["sender-rewards",this.senderRewards],["signature",void 0!==this.signature?this.signature.toEncodingData():void 0],["state-proof-transaction",void 0!==this.stateProofTransaction?this.stateProofTransaction.toEncodingData():void 0],["tx-type",this.txType]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded Transaction: ${e}`);return new ei({fee:e.get("fee"),firstValid:e.get("first-valid"),lastValid:e.get("last-valid"),sender:e.get("sender"),applicationTransaction:void 0!==e.get("application-transaction")?eo.fromEncodingData(e.get("application-transaction")):void 0,assetConfigTransaction:void 0!==e.get("asset-config-transaction")?es.fromEncodingData(e.get("asset-config-transaction")):void 0,assetFreezeTransaction:void 0!==e.get("asset-freeze-transaction")?ec.fromEncodingData(e.get("asset-freeze-transaction")):void 0,assetTransferTransaction:void 0!==e.get("asset-transfer-transaction")?er.fromEncodingData(e.get("asset-transfer-transaction")):void 0,authAddr:e.get("auth-addr"),closeRewards:e.get("close-rewards"),closingAmount:e.get("closing-amount"),confirmedRound:e.get("confirmed-round"),createdApplicationIndex:e.get("created-application-index"),createdAssetIndex:e.get("created-asset-index"),genesisHash:e.get("genesis-hash"),genesisId:e.get("genesis-id"),globalStateDelta:void 0!==e.get("global-state-delta")?e.get("global-state-delta").map(e=>Y.fromEncodingData(e)):void 0,group:e.get("group"),heartbeatTransaction:void 0!==e.get("heartbeat-transaction")?ed.fromEncodingData(e.get("heartbeat-transaction")):void 0,id:e.get("id"),innerTxns:void 0!==e.get("inner-txns")?e.get("inner-txns").map(e=>ei.fromEncodingData(e)):void 0,intraRoundOffset:e.get("intra-round-offset"),keyregTransaction:void 0!==e.get("keyreg-transaction")?eh.fromEncodingData(e.get("keyreg-transaction")):void 0,lease:e.get("lease"),localStateDelta:void 0!==e.get("local-state-delta")?e.get("local-state-delta").map(e=>m.fromEncodingData(e)):void 0,logs:e.get("logs"),note:e.get("note"),paymentTransaction:void 0!==e.get("payment-transaction")?em.fromEncodingData(e.get("payment-transaction")):void 0,receiverRewards:e.get("receiver-rewards"),rekeyTo:e.get("rekey-to"),roundTime:e.get("round-time"),senderRewards:e.get("sender-rewards"),signature:void 0!==e.get("signature")?eu.fromEncodingData(e.get("signature")):void 0,stateProofTransaction:void 0!==e.get("state-proof-transaction")?eS.fromEncodingData(e.get("state-proof-transaction")):void 0,txType:e.get("tx-type")})}}class eo{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"application-id",valueSchema:new i.qc,omitEmpty:!0},{key:"accounts",valueSchema:new i.KN(new i.vf(new i.nY)),omitEmpty:!0},{key:"application-args",valueSchema:new i.KN(new i.vf(new i.HM)),omitEmpty:!0},{key:"approval-program",valueSchema:new i.KN(new i.HM),omitEmpty:!0},{key:"box-references",valueSchema:new i.KN(new i.vf(H.encodingSchema)),omitEmpty:!0},{key:"clear-state-program",valueSchema:new i.KN(new i.HM),omitEmpty:!0},{key:"extra-program-pages",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"foreign-apps",valueSchema:new i.KN(new i.vf(new i.qc)),omitEmpty:!0},{key:"foreign-assets",valueSchema:new i.KN(new i.vf(new i.qc)),omitEmpty:!0},{key:"global-state-schema",valueSchema:new i.KN(et.encodingSchema),omitEmpty:!0},{key:"local-state-schema",valueSchema:new i.KN(et.encodingSchema),omitEmpty:!0},{key:"on-completion",valueSchema:new i.KN(new i.nY),omitEmpty:!0},{key:"reject-version",valueSchema:new i.KN(new i.qc),omitEmpty:!0})),this.encodingSchemaValue}constructor({applicationId:e,accounts:t,applicationArgs:a,approvalProgram:i,boxReferences:c,clearStateProgram:r,extraProgramPages:d,foreignApps:h,foreignAssets:m,globalStateSchema:g,localStateSchema:u,onCompletion:l,rejectVersion:p}){this.applicationId=(0,n.wx)(e),this.accounts=void 0!==t?t.map(e=>"string"==typeof e?s.pV.fromString(e):e):void 0,this.applicationArgs=a,this.approvalProgram="string"==typeof i?(0,o.Kp)(i):i,this.boxReferences=c,this.clearStateProgram="string"==typeof r?(0,o.Kp)(r):r,this.extraProgramPages=void 0===d?void 0:(0,n.GE)(d),this.foreignApps=void 0===h?void 0:h.map(n.wx),this.foreignAssets=void 0===m?void 0:m.map(n.wx),this.globalStateSchema=g,this.localStateSchema=u,this.onCompletion=l,this.rejectVersion=void 0===p?void 0:(0,n.GE)(p)}getEncodingSchema(){return eo.encodingSchema}toEncodingData(){return new Map([["application-id",this.applicationId],["accounts",void 0!==this.accounts?this.accounts.map(e=>e.toString()):void 0],["application-args",this.applicationArgs],["approval-program",this.approvalProgram],["box-references",void 0!==this.boxReferences?this.boxReferences.map(e=>e.toEncodingData()):void 0],["clear-state-program",this.clearStateProgram],["extra-program-pages",this.extraProgramPages],["foreign-apps",this.foreignApps],["foreign-assets",this.foreignAssets],["global-state-schema",void 0!==this.globalStateSchema?this.globalStateSchema.toEncodingData():void 0],["local-state-schema",void 0!==this.localStateSchema?this.localStateSchema.toEncodingData():void 0],["on-completion",this.onCompletion],["reject-version",this.rejectVersion]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded TransactionApplication: ${e}`);return new eo({applicationId:e.get("application-id"),accounts:e.get("accounts"),applicationArgs:e.get("application-args"),approvalProgram:e.get("approval-program"),boxReferences:void 0!==e.get("box-references")?e.get("box-references").map(e=>H.fromEncodingData(e)):void 0,clearStateProgram:e.get("clear-state-program"),extraProgramPages:e.get("extra-program-pages"),foreignApps:e.get("foreign-apps"),foreignAssets:e.get("foreign-assets"),globalStateSchema:void 0!==e.get("global-state-schema")?et.fromEncodingData(e.get("global-state-schema")):void 0,localStateSchema:void 0!==e.get("local-state-schema")?et.fromEncodingData(e.get("local-state-schema")):void 0,onCompletion:e.get("on-completion"),rejectVersion:e.get("reject-version")})}}class es{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"asset-id",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"params",valueSchema:new i.KN(K.encodingSchema),omitEmpty:!0})),this.encodingSchemaValue}constructor({assetId:e,params:t}){this.assetId=void 0===e?void 0:(0,n.wx)(e),this.params=t}getEncodingSchema(){return es.encodingSchema}toEncodingData(){return new Map([["asset-id",this.assetId],["params",void 0!==this.params?this.params.toEncodingData():void 0]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded TransactionAssetConfig: ${e}`);return new es({assetId:e.get("asset-id"),params:void 0!==e.get("params")?K.fromEncodingData(e.get("params")):void 0})}}class ec{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"address",valueSchema:new i.nY,omitEmpty:!0},{key:"asset-id",valueSchema:new i.qc,omitEmpty:!0},{key:"new-freeze-status",valueSchema:new i.od,omitEmpty:!0})),this.encodingSchemaValue}constructor({address:e,assetId:t,newFreezeStatus:a}){this.address=e,this.assetId=(0,n.wx)(t),this.newFreezeStatus=a}getEncodingSchema(){return ec.encodingSchema}toEncodingData(){return new Map([["address",this.address],["asset-id",this.assetId],["new-freeze-status",this.newFreezeStatus]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded TransactionAssetFreeze: ${e}`);return new ec({address:e.get("address"),assetId:e.get("asset-id"),newFreezeStatus:e.get("new-freeze-status")})}}class er{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"amount",valueSchema:new i.qc,omitEmpty:!0},{key:"asset-id",valueSchema:new i.qc,omitEmpty:!0},{key:"receiver",valueSchema:new i.nY,omitEmpty:!0},{key:"close-amount",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"close-to",valueSchema:new i.KN(new i.nY),omitEmpty:!0},{key:"sender",valueSchema:new i.KN(new i.nY),omitEmpty:!0})),this.encodingSchemaValue}constructor({amount:e,assetId:t,receiver:a,closeAmount:i,closeTo:o,sender:s}){this.amount=(0,n.wx)(e),this.assetId=(0,n.wx)(t),this.receiver=a,this.closeAmount=void 0===i?void 0:(0,n.wx)(i),this.closeTo=o,this.sender=s}getEncodingSchema(){return er.encodingSchema}toEncodingData(){return new Map([["amount",this.amount],["asset-id",this.assetId],["receiver",this.receiver],["close-amount",this.closeAmount],["close-to",this.closeTo],["sender",this.sender]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded TransactionAssetTransfer: ${e}`);return new er({amount:e.get("amount"),assetId:e.get("asset-id"),receiver:e.get("receiver"),closeAmount:e.get("close-amount"),closeTo:e.get("
1close-to"),sender:e.get("sender")})}}class ed{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"hb-address",valueSchema:new i.nY,omitEmpty:!0},{key:"hb-key-dilution",valueSchema:new i.qc,omitEmpty:!0},{key:"hb-proof",valueSchema:C.encodingSchema,omitEmpty:!0},{key:"hb-seed",valueSchema:new i.HM,omitEmpty:!0},{key:"hb-vote-id",valueSchema:new i.HM,omitEmpty:!0})),this.encodingSchemaValue}constructor({hbAddress:e,hbKeyDilution:t,hbProof:a,hbSeed:i,hbVoteId:s}){this.hbAddress=e,this.hbKeyDilution=(0,n.wx)(t),this.hbProof=a,this.hbSeed="string"==typeof i?(0,o.Kp)(i):i,this.hbVoteId="string"==typeof s?(0,o.Kp)(s):s}getEncodingSchema(){return ed.encodingSchema}toEncodingData(){return new Map([["hb-address",this.hbAddress],["hb-key-dilution",this.hbKeyDilution],["hb-proof",this.hbProof.toEncodingData()],["hb-seed",this.hbSeed],["hb-vote-id",this.hbVoteId]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded TransactionHeartbeat: ${e}`);return new ed({hbAddress:e.get("hb-address"),hbKeyDilution:e.get("hb-key-dilution"),hbProof:C.fromEncodingData(e.get("hb-proof")??new Map),hbSeed:e.get("hb-seed"),hbVoteId:e.get("hb-vote-id")})}}class eh{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"non-participation",valueSchema:new i.KN(new i.od),omitEmpty:!0},{key:"selection-participation-key",valueSchema:new i.KN(new i.HM),omitEmpty:!0},{key:"state-proof-key",valueSchema:new i.KN(new i.HM),omitEmpty:!0},{key:"vote-first-valid",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"vote-key-dilution",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"vote-last-valid",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"vote-participation-key",valueSchema:new i.KN(new i.HM),omitEmpty:!0})),this.encodingSchemaValue}constructor({nonParticipation:e,selectionParticipationKey:t,stateProofKey:a,voteFirstValid:i,voteKeyDilution:s,voteLastValid:c,voteParticipationKey:r}){this.nonParticipation=e,this.selectionParticipationKey="string"==typeof t?(0,o.Kp)(t):t,this.stateProofKey="string"==typeof a?(0,o.Kp)(a):a,this.voteFirstValid=void 0===i?void 0:(0,n.wx)(i),this.voteKeyDilution=void 0===s?void 0:(0,n.wx)(s),this.voteLastValid=void 0===c?void 0:(0,n.wx)(c),this.voteParticipationKey="string"==typeof r?(0,o.Kp)(r):r}getEncodingSchema(){return eh.encodingSchema}toEncodingData(){return new Map([["non-participation",this.nonParticipation],["selection-participation-key",this.selectionParticipationKey],["state-proof-key",this.stateProofKey],["vote-first-valid",this.voteFirstValid],["vote-key-dilution",this.voteKeyDilution],["vote-last-valid",this.voteLastValid],["vote-participation-key",this.voteParticipationKey]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded TransactionKeyreg: ${e}`);return new eh({nonParticipation:e.get("non-participation"),selectionParticipationKey:e.get("selection-participation-key"),stateProofKey:e.get("state-proof-key"),voteFirstValid:e.get("vote-first-valid"),voteKeyDilution:e.get("vote-key-dilution"),voteLastValid:e.get("vote-last-valid"),voteParticipationKey:e.get("vote-participation-key")})}}class em{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"amount",valueSchema:new i.qc,omitEmpty:!0},{key:"receiver",valueSchema:new i.nY,omitEmpty:!0},{key:"close-amount",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"close-remainder-to",valueSchema:new i.KN(new i.nY),omitEmpty:!0})),this.encodingSchemaValue}constructor({amount:e,receiver:t,closeAmount:a,closeRemainderTo:i}){this.amount=(0,n.wx)(e),this.receiver=t,this.closeAmount=void 0===a?void 0:(0,n.wx)(a),this.closeRemainderTo=i}getEncodingSchema(){return em.encodingSchema}toEncodingData(){return new Map([["amount",this.amount],["receiver",this.receiver],["close-amount",this.closeAmount],["close-remainder-to",this.closeRemainderTo]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded TransactionPayment: ${e}`);return new em({amount:e.get("amount"),receiver:e.get("receiver"),closeAmount:e.get("close-amount"),closeRemainderTo:e.get("
1close-remainder-to")})}}class eg{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"current-round",valueSchema:new i.qc,omitEmpty:!0},{key:"transaction",valueSchema:ei.encodingSchema,omitEmpty:!0})),this.encodingSchemaValue}constructor({currentRound:e,transaction:t}){this.currentRound=(0,n.wx)(e),this.transaction=t}getEncodingSchema(){return eg.encodingSchema}toEncodingData(){return new Map([["current-round",this.currentRound],["transaction",this.transaction.toEncodingData()]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded TransactionResponse: ${e}`);return new eg({currentRound:e.get("current-round"),transaction:ei.fromEncodingData(e.get("transaction")??new Map)})}}class eu{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"logicsig",valueSchema:new i.KN(el.encodingSchema),omitEmpty:!0},{key:"multisig",valueSchema:new i.KN(ep.encodingSchema),omitEmpty:!0},{key:"sig",valueSchema:new i.KN(new i.HM),omitEmpty:!0})),this.encodingSchemaValue}constructor({logicsig:e,multisig:t,sig:a}){this.logicsig=e,this.multisig=t,this.sig="string"==typeof a?(0,o.Kp)(a):a}getEncodingSchema(){return eu.encodingSchema}toEncodingData(){return new Map([["logicsig",void 0!==this.logicsig?this.logicsig.toEncodingData():void 0],["multisig",void 0!==this.multisig?this.multisig.toEncodingData():void 0],["sig",this.sig]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded TransactionSignature: ${e}`);
1return new eu({logicsig:void 0!==e.get("logicsig")?el.fromEncodingData(e.get("logicsig")):void 0,multisig:void 0!==e.get("multisig")?ep.fromEncodingData(e.get("multisig")):void 0,sig:e.get("sig")})}}class el{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"logic",valueSchema:new i.HM,omitEmpty:!0},{key:"args",valueSchema:new i.KN(new i.vf(new i.HM)),omitEmpty:!0},{key:"multisig-signature",valueSchema:new i.KN(ep.encodingSchema),omitEmpty:!0},{key:"signature",valueSchema:new i.KN(new i.HM),omitEmpty:!0})),this.encodingSchemaValue}constructor({logic:e,args:t,multisigSignature:a,signature:n}){this.logic="string"==typeof e?(0,o.Kp)(e):e,this.args=t,this.multisigSignature=a,this.signature="string"==typeof n?(0,o.Kp)(n):n}getEncodingSchema(){return el.encodingSchema}toEncodingData(){return new Map([["logic",this.logic],["args",this.args],["multisig-signature",void 0!==this.multisigSignature?this.multisigSignature.toEncodingData():void 0],["signature",this.signature]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded TransactionSignatureLogicsig: ${e}`);return new el({logic:e.get("logic"),args:e.get("args"),multisigSignature:void 0!==e.get("multisig-signature")?ep.fromEncodingData(e.get("multisig-signature")):void 0,signature:e.get("signature")})}}class ep{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"subsignature",valueSchema:new i.KN(new i.vf(ev.encodingSchema)),omitEmpty:!0},{key:"threshold",valueSchema:new i.KN(new i.qc),omitEmpty:!0},{key:"version",valueSchema:new i.KN(new i.qc),omitEmpty:!0})),this.encodingSchemaValue}constructor({subsignature:e,threshold:t,version:a}){this.subsignature=e,this.threshold=void 0===t?void 0:(0,n.GE)(t),this.version=void 0===a?void 0:(0,n.GE)(a)}getEncodingSchema(){return ep.encodingSchema}toEncodingData(){return new Map([["subsignature",void 0!==this.subsignature?this.subsignature.map(e=>e.toEncodingData()):void 0],["threshold",this.threshold],["version",this.version]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded TransactionSignatureMultisig: ${e}`);return new ep({subsignature:void 0!==e.get("subsignature")?e.get("subsignature").map(e=>ev.fromEncodingData(e)):void 0,threshold:e.get("threshold"),version:e.get("version")})}}class ev{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"public-key",valueSchema:new i.KN(new i.HM),omitEmpty:!0},{key:"signature",valueSchema:new i.KN(new i.HM),omitEmpty:!0})),this.encodingSchemaValue}constructor({publicKey:e,signature:t}){this.publicKey="string"==typeof e?(0,o.Kp)(e):e,this.signature="string"==typeof t?(0,o.Kp)(t):t}getEncodingSchema(){return ev.encodingSchema}toEncodingData(){return new Map([["public-key",this.publicKey],["signature",this.signature]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded TransactionSignatureMultisigSubsignature: ${e}`);return new ev({publicKey:e.get("public-key"),signature:e.get("signature")})}}class eS{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"message",valueSchema:new i.KN(F.encodingSchema),omitEmpty:!0},{key:"state-proof",valueSchema:new i.KN(W.encodingSchema),omitEmpty:!0},{key:"state-proof-type",valueSchema:new i.KN(new i.qc),omitEmpty:!0})),this.encodingSchemaValue}constructor({message:e,stateProof:t,stateProofType:a}){this.message=e,this.stateProof=t,this.stateProofType=void 0===a?void 0:(0,n.GE)(a)}getEncodingSchema(){return eS.encodingSchema}toEncodingData(){return new Map([["message",void 0!==this.message?this.message.toEncodingData():void 0],["state-proof",void 0!==this.stateProof?this.stateProof.toEncodingData():void 0],["state-proof-type",this.stateProofType]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded TransactionStateProof: ${e}`);return new eS({message:void 0!==e.get("message")?F.fromEncodingData(e.get("message")):void 0,stateProof:void 0!==e.get("state-proof")?W.fromEncodingData(e.get("state-proof")):void 0,stateProofType:e.get("state-proof-type")})}}class ew{static get encodingSchema(){return this.encodingSchemaValue||(this.encodingSchemaValue=new i.pZ([]),this.encodingSchemaValue.pushEntries({key:"current-round",valueSchema:new i.qc,omitEmpty:!0},{key:"transactions",valueSchema:new i.vf(ei.encodingSchema),omitEmpty:!0},{key:"next-token",valueSchema:new i.KN(new i.nY),omitEmpty:!0})),this.encodingSchemaValue}constructor({currentRound:e,transactions:t,nextToken:a}){this.currentRound=(0,n.wx)(e),this.transactions=t,this.nextToken=a}getEncodingSchema(){return ew.encodingSchema}toEncodingData(){return new Map([["current-round",this.currentRound],["transactions",this.transactions.map(e=>e.toEncodingData())],["next-token",this.nextToken]])}static fromEncodingData(e){if(!(e instanceof Map))throw Error(`Invalid decoded TransactionsResponse: ${e}`);
1return new ew({currentRound:e.get("current-round"),transactions:(e.get("transactions")??[]).map(e=>ei.fromEncodingData(e)),nextToken:e.get("next-token")})}}}}]);

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.