UNPKG

@terra-classic-community/terra.js

Version:
2 lines 1.9 MB
/*! For license information please see bundle.node.js.LICENSE.txt */ (()=>{var __webpack_modules__={2599:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Params=t.ModuleAccount=t.BaseAccount=t.protobufPackage=void 0;const r=o(n(3720)),i=o(n(2100)),a=n(8304);t.protobufPackage="cosmos.auth.v1beta1";const s={address:"",accountNumber:r.default.UZERO,sequence:r.default.UZERO};t.BaseAccount={encode:(e,t=i.default.Writer.create())=>(""!==e.address&&t.uint32(10).string(e.address),void 0!==e.pubKey&&a.Any.encode(e.pubKey,t.uint32(18).fork()).ldelim(),e.accountNumber.isZero()||t.uint32(24).uint64(e.accountNumber),e.sequence.isZero()||t.uint32(32).uint64(e.sequence),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r=Object.assign({},s);for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.address=n.string();break;case 2:r.pubKey=a.Any.decode(n,n.uint32());break;case 3:r.accountNumber=n.uint64();break;case 4:r.sequence=n.uint64();break;default:n.skipType(7&e)}}return r},fromJSON(e){const t=Object.assign({},s);return void 0!==e.address&&null!==e.address?t.address=String(e.address):t.address="",void 0!==e.pubKey&&null!==e.pubKey?t.pubKey=a.Any.fromJSON(e.pubKey):t.pubKey=void 0,void 0!==e.accountNumber&&null!==e.accountNumber?t.accountNumber=r.default.fromString(e.accountNumber):t.accountNumber=r.default.UZERO,void 0!==e.sequence&&null!==e.sequence?t.sequence=r.default.fromString(e.sequence):t.sequence=r.default.UZERO,t},toJSON(e){const t={};return void 0!==e.address&&(t.address=e.address),void 0!==e.pubKey&&(t.pubKey=e.pubKey?a.Any.toJSON(e.pubKey):void 0),void 0!==e.accountNumber&&(t.accountNumber=(e.accountNumber||r.default.UZERO).toString()),void 0!==e.sequence&&(t.sequence=(e.sequence||r.default.UZERO).toString()),t},fromPartial(e){const t=Object.assign({},s);return void 0!==e.address&&null!==e.address?t.address=e.address:t.address="",void 0!==e.pubKey&&null!==e.pubKey?t.pubKey=a.Any.fromPartial(e.pubKey):t.pubKey=void 0,void 0!==e.accountNumber&&null!==e.accountNumber?t.accountNumber=e.accountNumber:t.accountNumber=r.default.UZERO,void 0!==e.sequence&&null!==e.sequence?t.sequence=e.sequence:t.sequence=r.default.UZERO,t}};const c={name:"",permissions:""};t.ModuleAccount={encode(e,n=i.default.Writer.create()){void 0!==e.baseAccount&&t.BaseAccount.encode(e.baseAccount,n.uint32(10).fork()).ldelim(),""!==e.name&&n.uint32(18).string(e.name);for(const t of e.permissions)n.uint32(26).string(t);return n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a=Object.assign({},c);for(a.permissions=[];o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:a.baseAccount=t.BaseAccount.decode(o,o.uint32());break;case 2:a.name=o.string();break;case 3:a.permissions.push(o.string());break;default:o.skipType(7&e)}}return a},fromJSON(e){const n=Object.assign({},c);if(n.permissions=[],void 0!==e.baseAccount&&null!==e.baseAccount?n.baseAccount=t.BaseAccount.fromJSON(e.baseAccount):n.baseAccount=void 0,void 0!==e.name&&null!==e.name?n.name=String(e.name):n.name="",void 0!==e.permissions&&null!==e.permissions)for(const t of e.permissions)n.permissions.push(String(t));return n},toJSON(e){const n={};return void 0!==e.baseAccount&&(n.baseAccount=e.baseAccount?t.BaseAccount.toJSON(e.baseAccount):void 0),void 0!==e.name&&(n.name=e.name),e.permissions?n.permissions=e.permissions.map((e=>e)):n.permissions=[],n},fromPartial(e){const n=Object.assign({},c);if(n.permissions=[],void 0!==e.baseAccount&&null!==e.baseAccount?n.baseAccount=t.BaseAccount.fromPartial(e.baseAccount):n.baseAccount=void 0,void 0!==e.name&&null!==e.name?n.name=e.name:n.name="",void 0!==e.permissions&&null!==e.permissions)for(const t of e.permissions)n.permissions.push(t);return n}};const u={maxMemoCharacters:r.default.UZERO,txSigLimit:r.default.UZERO,txSizeCostPerByte:r.default.UZERO,sigVerifyCostEd25519:r.default.UZERO,sigVerifyCostSecp256k1:r.default.UZERO};t.Params={encode:(e,t=i.default.Writer.create())=>(e.maxMemoCharacters.isZero()||t.uint32(8).uint64(e.maxMemoCharacters),e.txSigLimit.isZero()||t.uint32(16).uint64(e.txSigLimit),e.txSizeCostPerByte.isZero()||t.uint32(24).uint64(e.txSizeCostPerByte),e.sigVerifyCostEd25519.isZero()||t.uint32(32).uint64(e.sigVerifyCostEd25519),e.sigVerifyCostSecp256k1.isZero()||t.uint32(40).uint64(e.sigVerifyCostSecp256k1),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r=Object.assign({},u);for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.maxMemoCharacters=n.uint64();break;case 2:r.txSigLimit=n.uint64();break;case 3:r.txSizeCostPerByte=n.uint64();break;case 4:r.sigVerifyCostEd25519=n.uint64();break;case 5:r.sigVerifyCostSecp256k1=n.uint64();break;default:n.skipType(7&e)}}return r},fromJSON(e){const t=Object.assign({},u);return void 0!==e.maxMemoCharacters&&null!==e.maxMemoCharacters?t.maxMemoCharacters=r.default.fromString(e.maxMemoCharacters):t.maxMemoCharacters=r.default.UZERO,void 0!==e.txSigLimit&&null!==e.txSigLimit?t.txSigLimit=r.default.fromString(e.txSigLimit):t.txSigLimit=r.default.UZERO,void 0!==e.txSizeCostPerByte&&null!==e.txSizeCostPerByte?t.txSizeCostPerByte=r.default.fromString(e.txSizeCostPerByte):t.txSizeCostPerByte=r.default.UZERO,void 0!==e.sigVerifyCostEd25519&&null!==e.sigVerifyCostEd25519?t.sigVerifyCostEd25519=r.default.fromString(e.sigVerifyCostEd25519):t.sigVerifyCostEd25519=r.default.UZERO,void 0!==e.sigVerifyCostSecp256k1&&null!==e.sigVerifyCostSecp256k1?t.sigVerifyCostSecp256k1=r.default.fromString(e.sigVerifyCostSecp256k1):t.sigVerifyCostSecp256k1=r.default.UZERO,t},toJSON(e){const t={};return void 0!==e.maxMemoCharacters&&(t.maxMemoCharacters=(e.maxMemoCharacters||r.default.UZERO).toString()),void 0!==e.txSigLimit&&(t.txSigLimit=(e.txSigLimit||r.default.UZERO).toString()),void 0!==e.txSizeCostPerByte&&(t.txSizeCostPerByte=(e.txSizeCostPerByte||r.default.UZERO).toString()),void 0!==e.sigVerifyCostEd25519&&(t.sigVerifyCostEd25519=(e.sigVerifyCostEd25519||r.default.UZERO).toString()),void 0!==e.sigVerifyCostSecp256k1&&(t.sigVerifyCostSecp256k1=(e.sigVerifyCostSecp256k1||r.default.UZERO).toString()),t},fromPartial(e){const t=Object.assign({},u);return void 0!==e.maxMemoCharacters&&null!==e.maxMemoCharacters?t.maxMemoCharacters=e.maxMemoCharacters:t.maxMemoCharacters=r.default.UZERO,void 0!==e.txSigLimit&&null!==e.txSigLimit?t.txSigLimit=e.txSigLimit:t.txSigLimit=r.default.UZERO,void 0!==e.txSizeCostPerByte&&null!==e.txSizeCostPerByte?t.txSizeCostPerByte=e.txSizeCostPerByte:t.txSizeCostPerByte=r.default.UZERO,void 0!==e.sigVerifyCostEd25519&&null!==e.sigVerifyCostEd25519?t.sigVerifyCostEd25519=e.sigVerifyCostEd25519:t.sigVerifyCostEd25519=r.default.UZERO,void 0!==e.sigVerifyCostSecp256k1&&null!==e.sigVerifyCostSecp256k1?t.sigVerifyCostSecp256k1=e.sigVerifyCostSecp256k1:t.sigVerifyCostSecp256k1=r.default.UZERO,t}},i.default.util.Long!==r.default&&(i.default.util.Long=r.default,i.default.configure())},6056:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DecProto=t.IntProto=t.DecCoin=t.Coin=t.protobufPackage=void 0;const r=o(n(3720)),i=o(n(2100));t.protobufPackage="cosmos.base.v1beta1";const a={denom:"",amount:""};t.Coin={encode:(e,t=i.default.Writer.create())=>(""!==e.denom&&t.uint32(10).string(e.denom),""!==e.amount&&t.uint32(18).string(e.amount),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r=Object.assign({},a);for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.denom=n.string();break;case 2:r.amount=n.string();break;default:n.skipType(7&e)}}return r},fromJSON(e){const t=Object.assign({},a);return void 0!==e.denom&&null!==e.denom?t.denom=String(e.denom):t.denom="",void 0!==e.amount&&null!==e.amount?t.amount=String(e.amount):t.amount="",t},toJSON(e){const t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.amount&&(t.amount=e.amount),t},fromPartial(e){const t=Object.assign({},a);return void 0!==e.denom&&null!==e.denom?t.denom=e.denom:t.denom="",void 0!==e.amount&&null!==e.amount?t.amount=e.amount:t.amount="",t}};const s={denom:"",amount:""};t.DecCoin={encode:(e,t=i.default.Writer.create())=>(""!==e.denom&&t.uint32(10).string(e.denom),""!==e.amount&&t.uint32(18).string(e.amount),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r=Object.assign({},s);for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.denom=n.string();break;case 2:r.amount=n.string();break;default:n.skipType(7&e)}}return r},fromJSON(e){const t=Object.assign({},s);return void 0!==e.denom&&null!==e.denom?t.denom=String(e.denom):t.denom="",void 0!==e.amount&&null!==e.amount?t.amount=String(e.amount):t.amount="",t},toJSON(e){const t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.amount&&(t.amount=e.amount),t},fromPartial(e){const t=Object.assign({},s);return void 0!==e.denom&&null!==e.denom?t.denom=e.denom:t.denom="",void 0!==e.amount&&null!==e.amount?t.amount=e.amount:t.amount="",t}};const c={int:""};t.IntProto={encode:(e,t=i.default.Writer.create())=>(""!==e.int&&t.uint32(10).string(e.int),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r=Object.assign({},c);for(;n.pos<o;){const e=n.uint32();e>>>3==1?r.int=n.string():n.skipType(7&e)}return r},fromJSON(e){const t=Object.assign({},c);return void 0!==e.int&&null!==e.int?t.int=String(e.int):t.int="",t},toJSON(e){const t={};return void 0!==e.int&&(t.int=e.int),t},fromPartial(e){const t=Object.assign({},c);return void 0!==e.int&&null!==e.int?t.int=e.int:t.int="",t}};const u={dec:""};t.DecProto={encode:(e,t=i.default.Writer.create())=>(""!==e.dec&&t.uint32(10).string(e.dec),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r=Object.assign({},u);for(;n.pos<o;){const e=n.uint32();e>>>3==1?r.dec=n.string():n.skipType(7&e)}return r},fromJSON(e){const t=Object.assign({},u);return void 0!==e.dec&&null!==e.dec?t.dec=String(e.dec):t.dec="",t},toJSON(e){const t={};return void 0!==e.dec&&(t.dec=e.dec),t},fromPartial(e){const t=Object.assign({},u);return void 0!==e.dec&&null!==e.dec?t.dec=e.dec:t.dec="",t}},i.default.util.Long!==r.default&&(i.default.util.Long=r.default,i.default.configure())},3610:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PermanentLockedAccount=t.PeriodicVestingAccount=t.Period=t.DelayedVestingAccount=t.ContinuousVestingAccount=t.BaseVestingAccount=t.protobufPackage=void 0;const r=o(n(3720)),i=o(n(2100)),a=n(2599),s=n(6056);t.protobufPackage="cosmos.vesting.v1beta1";const c={endTime:r.default.ZERO};t.BaseVestingAccount={encode(e,t=i.default.Writer.create()){void 0!==e.baseAccount&&a.BaseAccount.encode(e.baseAccount,t.uint32(10).fork()).ldelim();for(const n of e.originalVesting)s.Coin.encode(n,t.uint32(18).fork()).ldelim();for(const n of e.delegatedFree)s.Coin.encode(n,t.uint32(26).fork()).ldelim();for(const n of e.delegatedVesting)s.Coin.encode(n,t.uint32(34).fork()).ldelim();return e.endTime.isZero()||t.uint32(40).int64(e.endTime),t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r=Object.assign({},c);for(r.originalVesting=[],r.delegatedFree=[],r.delegatedVesting=[];n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.baseAccount=a.BaseAccount.decode(n,n.uint32());break;case 2:r.originalVesting.push(s.Coin.decode(n,n.uint32()));break;case 3:r.delegatedFree.push(s.Coin.decode(n,n.uint32()));break;case 4:r.delegatedVesting.push(s.Coin.decode(n,n.uint32()));break;case 5:r.endTime=n.int64();break;default:n.skipType(7&e)}}return r},fromJSON(e){const t=Object.assign({},c);if(t.originalVesting=[],t.delegatedFree=[],t.delegatedVesting=[],void 0!==e.baseAccount&&null!==e.baseAccount?t.baseAccount=a.BaseAccount.fromJSON(e.baseAccount):t.baseAccount=void 0,void 0!==e.originalVesting&&null!==e.originalVesting)for(const n of e.originalVesting)t.originalVesting.push(s.Coin.fromJSON(n));if(void 0!==e.delegatedFree&&null!==e.delegatedFree)for(const n of e.delegatedFree)t.delegatedFree.push(s.Coin.fromJSON(n));if(void 0!==e.delegatedVesting&&null!==e.delegatedVesting)for(const n of e.delegatedVesting)t.delegatedVesting.push(s.Coin.fromJSON(n));return void 0!==e.endTime&&null!==e.endTime?t.endTime=r.default.fromString(e.endTime):t.endTime=r.default.ZERO,t},toJSON(e){const t={};return void 0!==e.baseAccount&&(t.baseAccount=e.baseAccount?a.BaseAccount.toJSON(e.baseAccount):void 0),e.originalVesting?t.originalVesting=e.originalVesting.map((e=>e?s.Coin.toJSON(e):void 0)):t.originalVesting=[],e.delegatedFree?t.delegatedFree=e.delegatedFree.map((e=>e?s.Coin.toJSON(e):void 0)):t.delegatedFree=[],e.delegatedVesting?t.delegatedVesting=e.delegatedVesting.map((e=>e?s.Coin.toJSON(e):void 0)):t.delegatedVesting=[],void 0!==e.endTime&&(t.endTime=(e.endTime||r.default.ZERO).toString()),t},fromPartial(e){const t=Object.assign({},c);if(t.originalVesting=[],t.delegatedFree=[],t.delegatedVesting=[],void 0!==e.baseAccount&&null!==e.baseAccount?t.baseAccount=a.BaseAccount.fromPartial(e.baseAccount):t.baseAccount=void 0,void 0!==e.originalVesting&&null!==e.originalVesting)for(const n of e.originalVesting)t.originalVesting.push(s.Coin.fromPartial(n));if(void 0!==e.delegatedFree&&null!==e.delegatedFree)for(const n of e.delegatedFree)t.delegatedFree.push(s.Coin.fromPartial(n));if(void 0!==e.delegatedVesting&&null!==e.delegatedVesting)for(const n of e.delegatedVesting)t.delegatedVesting.push(s.Coin.fromPartial(n));return void 0!==e.endTime&&null!==e.endTime?t.endTime=e.endTime:t.endTime=r.default.ZERO,t}};const u={startTime:r.default.ZERO};t.ContinuousVestingAccount={encode:(e,n=i.default.Writer.create())=>(void 0!==e.baseVestingAccount&&t.BaseVestingAccount.encode(e.baseVestingAccount,n.uint32(10).fork()).ldelim(),e.startTime.isZero()||n.uint32(16).int64(e.startTime),n),decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a=Object.assign({},u);for(;o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:a.baseVestingAccount=t.BaseVestingAccount.decode(o,o.uint32());break;case 2:a.startTime=o.int64();break;default:o.skipType(7&e)}}return a},fromJSON(e){const n=Object.assign({},u);return void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=t.BaseVestingAccount.fromJSON(e.baseVestingAccount):n.baseVestingAccount=void 0,void 0!==e.startTime&&null!==e.startTime?n.startTime=r.default.fromString(e.startTime):n.startTime=r.default.ZERO,n},toJSON(e){const n={};return void 0!==e.baseVestingAccount&&(n.baseVestingAccount=e.baseVestingAccount?t.BaseVestingAccount.toJSON(e.baseVestingAccount):void 0),void 0!==e.startTime&&(n.startTime=(e.startTime||r.default.ZERO).toString()),n},fromPartial(e){const n=Object.assign({},u);return void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=t.BaseVestingAccount.fromPartial(e.baseVestingAccount):n.baseVestingAccount=void 0,void 0!==e.startTime&&null!==e.startTime?n.startTime=e.startTime:n.startTime=r.default.ZERO,n}};const d={};t.DelayedVestingAccount={encode:(e,n=i.default.Writer.create())=>(void 0!==e.baseVestingAccount&&t.BaseVestingAccount.encode(e.baseVestingAccount,n.uint32(10).fork()).ldelim(),n),decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a=Object.assign({},d);for(;o.pos<r;){const e=o.uint32();e>>>3==1?a.baseVestingAccount=t.BaseVestingAccount.decode(o,o.uint32()):o.skipType(7&e)}return a},fromJSON(e){const n=Object.assign({},d);return void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=t.BaseVestingAccount.fromJSON(e.baseVestingAccount):n.baseVestingAccount=void 0,n},toJSON(e){const n={};return void 0!==e.baseVestingAccount&&(n.baseVestingAccount=e.baseVestingAccount?t.BaseVestingAccount.toJSON(e.baseVestingAccount):void 0),n},fromPartial(e){const n=Object.assign({},d);return void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=t.BaseVestingAccount.fromPartial(e.baseVestingAccount):n.baseVestingAccount=void 0,n}};const l={length:r.default.ZERO};t.Period={encode(e,t=i.default.Writer.create()){e.length.isZero()||t.uint32(8).int64(e.length);for(const n of e.amount)s.Coin.encode(n,t.uint32(18).fork()).ldelim();return t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r=Object.assign({},l);for(r.amount=[];n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.length=n.int64();break;case 2:r.amount.push(s.Coin.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return r},fromJSON(e){const t=Object.assign({},l);if(t.amount=[],void 0!==e.length&&null!==e.length?t.length=r.default.fromString(e.length):t.length=r.default.ZERO,void 0!==e.amount&&null!==e.amount)for(const n of e.amount)t.amount.push(s.Coin.fromJSON(n));return t},toJSON(e){const t={};return void 0!==e.length&&(t.length=(e.length||r.default.ZERO).toString()),e.amount?t.amount=e.amount.map((e=>e?s.Coin.toJSON(e):void 0)):t.amount=[],t},fromPartial(e){const t=Object.assign({},l);if(t.amount=[],void 0!==e.length&&null!==e.length?t.length=e.length:t.length=r.default.ZERO,void 0!==e.amount&&null!==e.amount)for(const n of e.amount)t.amount.push(s.Coin.fromPartial(n));return t}};const p={startTime:r.default.ZERO};t.PeriodicVestingAccount={encode(e,n=i.default.Writer.create()){void 0!==e.baseVestingAccount&&t.BaseVestingAccount.encode(e.baseVestingAccount,n.uint32(10).fork()).ldelim(),e.startTime.isZero()||n.uint32(16).int64(e.startTime);for(const o of e.vestingPeriods)t.Period.encode(o,n.uint32(26).fork()).ldelim();return n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a=Object.assign({},p);for(a.vestingPeriods=[];o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:a.baseVestingAccount=t.BaseVestingAccount.decode(o,o.uint32());break;case 2:a.startTime=o.int64();break;case 3:a.vestingPeriods.push(t.Period.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON(e){const n=Object.assign({},p);if(n.vestingPeriods=[],void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=t.BaseVestingAccount.fromJSON(e.baseVestingAccount):n.baseVestingAccount=void 0,void 0!==e.startTime&&null!==e.startTime?n.startTime=r.default.fromString(e.startTime):n.startTime=r.default.ZERO,void 0!==e.vestingPeriods&&null!==e.vestingPeriods)for(const o of e.vestingPeriods)n.vestingPeriods.push(t.Period.fromJSON(o));return n},toJSON(e){const n={};return void 0!==e.baseVestingAccount&&(n.baseVestingAccount=e.baseVestingAccount?t.BaseVestingAccount.toJSON(e.baseVestingAccount):void 0),void 0!==e.startTime&&(n.startTime=(e.startTime||r.default.ZERO).toString()),e.vestingPeriods?n.vestingPeriods=e.vestingPeriods.map((e=>e?t.Period.toJSON(e):void 0)):n.vestingPeriods=[],n},fromPartial(e){const n=Object.assign({},p);if(n.vestingPeriods=[],void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=t.BaseVestingAccount.fromPartial(e.baseVestingAccount):n.baseVestingAccount=void 0,void 0!==e.startTime&&null!==e.startTime?n.startTime=e.startTime:n.startTime=r.default.ZERO,void 0!==e.vestingPeriods&&null!==e.vestingPeriods)for(const o of e.vestingPeriods)n.vestingPeriods.push(t.Period.fromPartial(o));return n}};const f={};t.PermanentLockedAccount={encode:(e,n=i.default.Writer.create())=>(void 0!==e.baseVestingAccount&&t.BaseVestingAccount.encode(e.baseVestingAccount,n.uint32(10).fork()).ldelim(),n),decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a=Object.assign({},f);for(;o.pos<r;){const e=o.uint32();e>>>3==1?a.baseVestingAccount=t.BaseVestingAccount.decode(o,o.uint32()):o.skipType(7&e)}return a},fromJSON(e){const n=Object.assign({},f);return void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=t.BaseVestingAccount.fromJSON(e.baseVestingAccount):n.baseVestingAccount=void 0,n},toJSON(e){const n={};return void 0!==e.baseVestingAccount&&(n.baseVestingAccount=e.baseVestingAccount?t.BaseVestingAccount.toJSON(e.baseVestingAccount):void 0),n},fromPartial(e){const n=Object.assign({},f);return void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=t.BaseVestingAccount.fromPartial(e.baseVestingAccount):n.baseVestingAccount=void 0,n}},i.default.util.Long!==r.default&&(i.default.util.Long=r.default,i.default.configure())},8304:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Any=t.protobufPackage=void 0;const r=o(n(3720)),i=o(n(2100));t.protobufPackage="google.protobuf";const a={typeUrl:""};t.Any={encode:(e,t=i.default.Writer.create())=>(""!==e.typeUrl&&t.uint32(10).string(e.typeUrl),0!==e.value.length&&t.uint32(18).bytes(e.value),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r=Object.assign({},a);for(r.value=new Uint8Array;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.typeUrl=n.string();break;case 2:r.value=n.bytes();break;default:n.skipType(7&e)}}return r},fromJSON(e){const t=Object.assign({},a);return t.value=new Uint8Array,void 0!==e.typeUrl&&null!==e.typeUrl?t.typeUrl=String(e.typeUrl):t.typeUrl="",void 0!==e.value&&null!==e.value&&(t.value=function(e){const t=c(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}(e.value)),t},toJSON(e){const t={};return void 0!==e.typeUrl&&(t.typeUrl=e.typeUrl),void 0!==e.value&&(t.value=function(e){const t=[];for(const n of e)t.push(String.fromCharCode(n));return u(t.join(""))}(void 0!==e.value?e.value:new Uint8Array)),t},fromPartial(e){const t=Object.assign({},a);return void 0!==e.typeUrl&&null!==e.typeUrl?t.typeUrl=e.typeUrl:t.typeUrl="",void 0!==e.value&&null!==e.value?t.value=e.value:t.value=new Uint8Array,t}};var s=(()=>{if(void 0!==s)return s;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"})();const c=s.atob||(e=>s.Buffer.from(e,"base64").toString("binary")),u=s.btoa||(e=>s.Buffer.from(e,"binary").toString("base64"));i.default.util.Long!==r.default&&(i.default.util.Long=r.default,i.default.configure())},4295:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GrpcWebImpl=t.MsgSwapSendDesc=t.MsgSwapDesc=t.MsgDesc=t.MsgClientImpl=t.MsgSwapSendResponse=t.MsgSwapSend=t.MsgSwapResponse=t.MsgSwap=t.protobufPackage=void 0;const r=o(n(3720)),i=n(4109),a=o(n(2100)),s=n(6056),c=n(2418);t.protobufPackage="terra.market.v1beta1";const u={trader:"",askDenom:""};t.MsgSwap={encode:(e,t=a.default.Writer.create())=>(""!==e.trader&&t.uint32(10).string(e.trader),void 0!==e.offerCoin&&s.Coin.encode(e.offerCoin,t.uint32(18).fork()).ldelim(),""!==e.askDenom&&t.uint32(26).string(e.askDenom),t),decode(e,t){const n=e instanceof a.default.Reader?e:new a.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r=Object.assign({},u);for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.trader=n.string();break;case 2:r.offerCoin=s.Coin.decode(n,n.uint32());break;case 3:r.askDenom=n.string();break;default:n.skipType(7&e)}}return r},fromJSON(e){const t=Object.assign({},u);return void 0!==e.trader&&null!==e.trader?t.trader=String(e.trader):t.trader="",void 0!==e.offerCoin&&null!==e.offerCoin?t.offerCoin=s.Coin.fromJSON(e.offerCoin):t.offerCoin=void 0,void 0!==e.askDenom&&null!==e.askDenom?t.askDenom=String(e.askDenom):t.askDenom="",t},toJSON(e){const t={};return void 0!==e.trader&&(t.trader=e.trader),void 0!==e.offerCoin&&(t.offerCoin=e.offerCoin?s.Coin.toJSON(e.offerCoin):void 0),void 0!==e.askDenom&&(t.askDenom=e.askDenom),t},fromPartial(e){const t=Object.assign({},u);return void 0!==e.trader&&null!==e.trader?t.trader=e.trader:t.trader="",void 0!==e.offerCoin&&null!==e.offerCoin?t.offerCoin=s.Coin.fromPartial(e.offerCoin):t.offerCoin=void 0,void 0!==e.askDenom&&null!==e.askDenom?t.askDenom=e.askDenom:t.askDenom="",t}};const d={};t.MsgSwapResponse={encode:(e,t=a.default.Writer.create())=>(void 0!==e.swapCoin&&s.Coin.encode(e.swapCoin,t.uint32(10).fork()).ldelim(),void 0!==e.swapFee&&s.Coin.encode(e.swapFee,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof a.default.Reader?e:new a.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r=Object.assign({},d);for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.swapCoin=s.Coin.decode(n,n.uint32());break;case 2:r.swapFee=s.Coin.decode(n,n.uint32());break;default:n.skipType(7&e)}}return r},fromJSON(e){const t=Object.assign({},d);return void 0!==e.swapCoin&&null!==e.swapCoin?t.swapCoin=s.Coin.fromJSON(e.swapCoin):t.swapCoin=void 0,void 0!==e.swapFee&&null!==e.swapFee?t.swapFee=s.Coin.fromJSON(e.swapFee):t.swapFee=void 0,t},toJSON(e){const t={};return void 0!==e.swapCoin&&(t.swapCoin=e.swapCoin?s.Coin.toJSON(e.swapCoin):void 0),void 0!==e.swapFee&&(t.swapFee=e.swapFee?s.Coin.toJSON(e.swapFee):void 0),t},fromPartial(e){const t=Object.assign({},d);return void 0!==e.swapCoin&&null!==e.swapCoin?t.swapCoin=s.Coin.fromPartial(e.swapCoin):t.swapCoin=void 0,void 0!==e.swapFee&&null!==e.swapFee?t.swapFee=s.Coin.fromPartial(e.swapFee):t.swapFee=void 0,t}};const l={fromAddress:"",toAddress:"",askDenom:""};t.MsgSwapSend={encode:(e,t=a.default.Writer.create())=>(""!==e.fromAddress&&t.uint32(10).string(e.fromAddress),""!==e.toAddress&&t.uint32(18).string(e.toAddress),void 0!==e.offerCoin&&s.Coin.encode(e.offerCoin,t.uint32(26).fork()).ldelim(),""!==e.askDenom&&t.uint32(34).string(e.askDenom),t),decode(e,t){const n=e instanceof a.default.Reader?e:new a.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r=Object.assign({},l);for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.fromAddress=n.string();break;case 2:r.toAddress=n.string();break;case 3:r.offerCoin=s.Coin.decode(n,n.uint32());break;case 4:r.askDenom=n.string();break;default:n.skipType(7&e)}}return r},fromJSON(e){const t=Object.assign({},l);return void 0!==e.fromAddress&&null!==e.fromAddress?t.fromAddress=String(e.fromAddress):t.fromAddress="",void 0!==e.toAddress&&null!==e.toAddress?t.toAddress=String(e.toAddress):t.toAddress="",void 0!==e.offerCoin&&null!==e.offerCoin?t.offerCoin=s.Coin.fromJSON(e.offerCoin):t.offerCoin=void 0,void 0!==e.askDenom&&null!==e.askDenom?t.askDenom=String(e.askDenom):t.askDenom="",t},toJSON(e){const t={};return void 0!==e.fromAddress&&(t.fromAddress=e.fromAddress),void 0!==e.toAddress&&(t.toAddress=e.toAddress),void 0!==e.offerCoin&&(t.offerCoin=e.offerCoin?s.Coin.toJSON(e.offerCoin):void 0),void 0!==e.askDenom&&(t.askDenom=e.askDenom),t},fromPartial(e){const t=Object.assign({},l);return void 0!==e.fromAddress&&null!==e.fromAddress?t.fromAddress=e.fromAddress:t.fromAddress="",void 0!==e.toAddress&&null!==e.toAddress?t.toAddress=e.toAddress:t.toAddress="",void 0!==e.offerCoin&&null!==e.offerCoin?t.offerCoin=s.Coin.fromPartial(e.offerCoin):t.offerCoin=void 0,void 0!==e.askDenom&&null!==e.askDenom?t.askDenom=e.askDenom:t.askDenom="",t}};const p={};t.MsgSwapSendResponse={encode:(e,t=a.default.Writer.create())=>(void 0!==e.swapCoin&&s.Coin.encode(e.swapCoin,t.uint32(10).fork()).ldelim(),void 0!==e.swapFee&&s.Coin.encode(e.swapFee,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof a.default.Reader?e:new a.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r=Object.assign({},p);for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.swapCoin=s.Coin.decode(n,n.uint32());break;case 2:r.swapFee=s.Coin.decode(n,n.uint32());break;default:n.skipType(7&e)}}return r},fromJSON(e){const t=Object.assign({},p);return void 0!==e.swapCoin&&null!==e.swapCoin?t.swapCoin=s.Coin.fromJSON(e.swapCoin):t.swapCoin=void 0,void 0!==e.swapFee&&null!==e.swapFee?t.swapFee=s.Coin.fromJSON(e.swapFee):t.swapFee=void 0,t},toJSON(e){const t={};return void 0!==e.swapCoin&&(t.swapCoin=e.swapCoin?s.Coin.toJSON(e.swapCoin):void 0),void 0!==e.swapFee&&(t.swapFee=e.swapFee?s.Coin.toJSON(e.swapFee):void 0),t},fromPartial(e){const t=Object.assign({},p);return void 0!==e.swapCoin&&null!==e.swapCoin?t.swapCoin=s.Coin.fromPartial(e.swapCoin):t.swapCoin=void 0,void 0!==e.swapFee&&null!==e.swapFee?t.swapFee=s.Coin.fromPartial(e.swapFee):t.swapFee=void 0,t}},t.MsgClientImpl=class{constructor(e){this.rpc=e,this.Swap=this.Swap.bind(this),this.SwapSend=this.SwapSend.bind(this)}Swap(e,n){return this.rpc.unary(t.MsgSwapDesc,t.MsgSwap.fromPartial(e),n)}SwapSend(e,n){return this.rpc.unary(t.MsgSwapSendDesc,t.MsgSwapSend.fromPartial(e),n)}},t.MsgDesc={serviceName:"terra.market.v1beta1.Msg"},t.MsgSwapDesc={methodName:"Swap",service:t.MsgDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary(){return t.MsgSwap.encode(this).finish()}},responseType:{deserializeBinary:e=>Object.assign(Object.assign({},t.MsgSwapResponse.decode(e)),{toObject(){return this}})}},t.MsgSwapSendDesc={methodName:"SwapSend",service:t.MsgDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary(){return t.MsgSwapSend.encode(this).finish()}},responseType:{deserializeBinary:e=>Object.assign(Object.assign({},t.MsgSwapSendResponse.decode(e)),{toObject(){return this}})}},t.GrpcWebImpl=class{constructor(e,t){this.host=e,this.options=t}unary(e,t,n){var o;const r=Object.assign(Object.assign({},t),e.requestType),a=n&&this.options.metadata?new c.BrowserHeaders(Object.assign(Object.assign({},null===(o=this.options)||void 0===o?void 0:o.metadata.headersMap),null==n?void 0:n.headersMap)):n||this.options.metadata;return new Promise(((t,n)=>{i.grpc.unary(e,{request:r,host:this.host,metadata:a,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(e.status===i.grpc.Code.OK)t(e.message);else{const t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,n(t)}}})}))}},a.default.util.Long!==r.default&&(a.default.util.Long=r.default,a.default.configure())},630:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ExchangeRateTuple=t.AggregateExchangeRateVote=t.AggregateExchangeRatePrevote=t.Denom=t.Params=t.protobufPackage=void 0;const r=o(n(3720)),i=o(n(2100));t.protobufPackage="terra.oracle.v1beta1";const a={votePeriod:r.default.UZERO,voteThreshold:"",rewardBand:"",rewardDistributionWindow:r.default.UZERO,slashFraction:"",slashWindow:r.default.UZERO,minValidPerWindow:""};t.Params={encode(e,n=i.default.Writer.create()){e.votePeriod.isZero()||n.uint32(8).uint64(e.votePeriod),""!==e.voteThreshold&&n.uint32(18).string(e.voteThreshold),""!==e.rewardBand&&n.uint32(26).string(e.rewardBand),e.rewardDistributionWindow.isZero()||n.uint32(32).uint64(e.rewardDistributionWindow);for(const o of e.whitelist)t.Denom.encode(o,n.uint32(42).fork()).ldelim();return""!==e.slashFraction&&n.uint32(50).string(e.slashFraction),e.slashWindow.isZero()||n.uint32(56).uint64(e.slashWindow),""!==e.minValidPerWindow&&n.uint32(66).string(e.minValidPerWindow),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const s=Object.assign({},a);for(s.whitelist=[];o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:s.votePeriod=o.uint64();break;case 2:s.voteThreshold=o.string();break;case 3:s.rewardBand=o.string();break;case 4:s.rewardDistributionWindow=o.uint64();break;case 5:s.whitelist.push(t.Denom.decode(o,o.uint32()));break;case 6:s.slashFraction=o.string();break;case 7:s.slashWindow=o.uint64();break;case 8:s.minValidPerWindow=o.string();break;default:o.skipType(7&e)}}return s},fromJSON(e){const n=Object.assign({},a);if(n.whitelist=[],void 0!==e.votePeriod&&null!==e.votePeriod?n.votePeriod=r.default.fromString(e.votePeriod):n.votePeriod=r.default.UZERO,void 0!==e.voteThreshold&&null!==e.voteThreshold?n.voteThreshold=String(e.voteThreshold):n.voteThreshold="",void 0!==e.rewardBand&&null!==e.rewardBand?n.rewardBand=String(e.rewardBand):n.rewardBand="",void 0!==e.rewardDistributionWindow&&null!==e.rewardDistributionWindow?n.rewardDistributionWindow=r.default.fromString(e.rewardDistributionWindow):n.rewardDistributionWindow=r.default.UZERO,void 0!==e.whitelist&&null!==e.whitelist)for(const o of e.whitelist)n.whitelist.push(t.Denom.fromJSON(o));return void 0!==e.slashFraction&&null!==e.slashFraction?n.slashFraction=String(e.slashFraction):n.slashFraction="",void 0!==e.slashWindow&&null!==e.slashWindow?n.slashWindow=r.default.fromString(e.slashWindow):n.slashWindow=r.default.UZERO,void 0!==e.minValidPerWindow&&null!==e.minValidPerWindow?n.minValidPerWindow=String(e.minValidPerWindow):n.minValidPerWindow="",n},toJSON(e){const n={};return void 0!==e.votePeriod&&(n.votePeriod=(e.votePeriod||r.default.UZERO).toString()),void 0!==e.voteThreshold&&(n.voteThreshold=e.voteThreshold),void 0!==e.rewardBand&&(n.rewardBand=e.rewardBand),void 0!==e.rewardDistributionWindow&&(n.rewardDistributionWindow=(e.rewardDistributionWindow||r.default.UZERO).toString()),e.whitelist?n.whitelist=e.whitelist.map((e=>e?t.Denom.toJSON(e):void 0)):n.whitelist=[],void 0!==e.slashFraction&&(n.slashFraction=e.slashFraction),void 0!==e.slashWindow&&(n.slashWindow=(e.slashWindow||r.default.UZERO).toString()),void 0!==e.minValidPerWindow&&(n.minValidPerWindow=e.minValidPerWindow),n},fromPartial(e){const n=Object.assign({},a);if(n.whitelist=[],void 0!==e.votePeriod&&null!==e.votePeriod?n.votePeriod=e.votePeriod:n.votePeriod=r.default.UZERO,void 0!==e.voteThreshold&&null!==e.voteThreshold?n.voteThreshold=e.voteThreshold:n.voteThreshold="",void 0!==e.rewardBand&&null!==e.rewardBand?n.rewardBand=e.rewardBand:n.rewardBand="",void 0!==e.rewardDistributionWindow&&null!==e.rewardDistributionWindow?n.rewardDistributionWindow=e.rewardDistributionWindow:n.rewardDistributionWindow=r.default.UZERO,void 0!==e.whitelist&&null!==e.whitelist)for(const o of e.whitelist)n.whitelist.push(t.Denom.fromPartial(o));return void 0!==e.slashFraction&&null!==e.slashFraction?n.slashFraction=e.slashFraction:n.slashFraction="",void 0!==e.slashWindow&&null!==e.slashWindow?n.slashWindow=e.slashWindow:n.slashWindow=r.default.UZERO,void 0!==e.minValidPerWindow&&null!==e.minValidPerWindow?n.minValidPerWindow=e.minValidPerWindow:n.minValidPerWindow="",n}};const s={name:"",tobinTax:""};t.Denom={encode:(e,t=i.default.Writer.create())=>(""!==e.name&&t.uint32(10).string(e.name),""!==e.tobinTax&&t.uint32(18).string(e.tobinTax),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r=Object.assign({},s);for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.name=n.string();break;case 2:r.tobinTax=n.string();break;default:n.skipType(7&e)}}return r},fromJSON(e){const t=Object.assign({},s);return void 0!==e.name&&null!==e.name?t.name=String(e.name):t.name="",void 0!==e.tobinTax&&null!==e.tobinTax?t.tobinTax=String(e.tobinTax):t.tobinTax="",t},toJSON(e){const t={};return void 0!==e.name&&(t.name=e.name),void 0!==e.tobinTax&&(t.tobinTax=e.tobinTax),t},fromPartial(e){const t=Object.assign({},s);return void 0!==e.name&&null!==e.name?t.name=e.name:t.name="",void 0!==e.tobinTax&&null!==e.tobinTax?t.tobinTax=e.tobinTax:t.tobinTax="",t}};const c={hash:"",voter:"",submitBlock:r.default.UZERO};t.AggregateExchangeRatePrevote={encode:(e,t=i.default.Writer.create())=>(""!==e.hash&&t.uint32(10).string(e.hash),""!==e.voter&&t.uint32(18).string(e.voter),e.submitBlock.isZero()||t.uint32(24).uint64(e.submitBlock),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r=Object.assign({},c);for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.hash=n.string();break;case 2:r.voter=n.string();break;case 3:r.submitBlock=n.uint64();break;default:n.skipType(7&e)}}return r},fromJSON(e){const t=Object.assign({},c);return void 0!==e.hash&&null!==e.hash?t.hash=String(e.hash):t.hash="",void 0!==e.voter&&null!==e.voter?t.voter=String(e.voter):t.voter="",void 0!==e.submitBlock&&null!==e.submitBlock?t.submitBlock=r.default.fromString(e.submitBlock):t.submitBlock=r.default.UZERO,t},toJSON(e){const t={};return void 0!==e.hash&&(t.hash=e.hash),void 0!==e.voter&&(t.voter=e.voter),void 0!==e.submitBlock&&(t.submitBlock=(e.submitBlock||r.default.UZERO).toString()),t},fromPartial(e){const t=Object.assign({},c);return void 0!==e.hash&&null!==e.hash?t.hash=e.hash:t.hash="",void 0!==e.voter&&null!==e.voter?t.voter=e.voter:t.voter="",void 0!==e.submitBlock&&null!==e.submitBlock?t.submitBlock=e.submitBlock:t.submitBlock=r.default.UZERO,t}};const u={voter:""};t.AggregateExchangeRateVote={encode(e,n=i.default.Writer.create()){for(const o of e.exchangeRateTuples)t.ExchangeRateTuple.encode(o,n.uint32(10).fork()).ldelim();return""!==e.voter&&n.uint32(18).string(e.voter),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a=Object.assign({},u);for(a.exchangeRateTuples=[];o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:a.exchangeRateTuples.push(t.ExchangeRateTuple.decode(o,o.uint32()));break;case 2:a.voter=o.string();break;default:o.skipType(7&e)}}return a},fromJSON(e){const n=Object.assign({},u);if(n.exchangeRateTuples=[],void 0!==e.exchangeRateTuples&&null!==e.exchangeRateTuples)for(const o of e.exchangeRateTuples)n.exchangeRateTuples.push(t.ExchangeRateTuple.fromJSON(o));return void 0!==e.voter&&null!==e.voter?n.voter=String(e.voter):n.voter="",n},toJSON(e){const n={};return e.exchangeRateTuples?n.exchangeRateTuples=e.exchangeRateTuples.map((e=>e?t.ExchangeRateTuple.toJSON(e):void 0)):n.exchangeRateTuples=[],void 0!==e.voter&&(n.voter=e.voter),n},fromPartial(e){const n=Object.assign({},u);if(n.exchangeRateTuples=[],void 0!==e.exchangeRateTuples&&null!==e.exchangeRateTuples)for(const o of e.exchangeRateTuples)n.exchangeRateTuples.push(t.ExchangeRateTuple.fromPartial(o));return void 0!==e.voter&&null!==e.voter?n.voter=e.voter:n.voter="",n}};const d={denom:"",exchangeRate:""};t.ExchangeRateTuple={encode:(e,t=i.default.Writer.create())=>(""!==e.denom&&t.uint32(10).string(e.denom),""!==e.exchangeRate&&t.uint32(18).string(e.exchangeRate),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r=Object.assign({},d);for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.denom=n.string();break;case 2:r.exchangeRate=n.string();break;default:n.skipType(7&e)}}return r},fromJSON(e){const t=Object.assign({},d);return void 0!==e.denom&&null!==e.denom?t.denom=String(e.denom):t.denom="",void 0!==e.exchangeRate&&null!==e.exchangeRate?t.exchangeRate=String(e.exchangeRate):t.exchangeRate="",t},toJSON(e){const t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.exchangeRate&&(t.exchangeRate=e.exchangeRate),t},fromPartial(e){const t=Object.assign({},d);return void 0!==e.denom&&null!==e.denom?t.denom=e.denom:t.denom="",void 0!==e.exchangeRate&&null!==e.exchangeRate?t.exchangeRate=e.exchangeRate:t.exchangeRate="",t}},i.default.util.Long!==r.default&&(i.default.util.Long=r.default,i.default.configure())},3869:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GrpcWebImpl=t.MsgDelegateFeedConsentDesc=t.MsgAggregateExchangeRateVoteDesc=t.MsgAggregateExchangeRatePrevoteDesc=t.MsgDesc=t.MsgClientImpl=t.MsgDelegateFeedConsentResponse=t.MsgDelegateFeedConsent=t.MsgAggregateExchangeRateVoteResponse=t.MsgAggregateExchangeRateVote=t.MsgAggregateExchangeRatePrevoteResponse=t.MsgAggregateExchangeRatePrevote=t.protobufPackage=void 0;const r=o(n(3720)),i=n(4109),a=o(n(2100)),s=n(2418);t.protobufPackage="terra.oracle.v1beta1";const c={hash:"",feeder:"",validator:""};t.MsgAggregateExchangeRatePrevote={encode:(e,t=a.default.Writer.create())=>(""!==e.hash&&t.uint32(10).string(e.hash),""!==e.feeder&&t.uint32(18).string(e.feeder),""!==e.validator&&t.uint32(26).string(e.validator),t),decode(e,t){const n=e instanceof a.default.Reader?e:new a.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r=Object.assign({},c);for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.hash=n.string();break;case 2:r.feeder=n.string();break;case 3:r.validator=n.string();break;default:n.skipType(7&e)}}return r},fromJSON(e){const t=Object.assign({},c);return void 0!==e.hash&&null!==e.hash?t.hash=String(e.hash):t.hash="",void 0!==e.feeder&&null!==e.feeder?t.feeder=String(e.feeder):t.feeder="",void 0!==e.validator&&null!==e.validator?t.validator=String(e.validator):t.validator="",t},toJSON(e){const t={};return void 0!==e.hash&&(t.hash=e.hash),void 0!==e.feeder&&(t.feeder=e.feeder),void 0!==e.validator&&(t.validator=e.validator),t},fromPartial(e){const t=Object.assign({},c);return void 0!==e.hash&&null!==e.hash?t.hash=e.hash:t.hash="",void 0!==e.feeder&&null!==e.feeder?t.feeder=e.feeder:t.feeder="",void 0!==e.validator&&null!==e.validator?t.validator=e.validator:t.validator="",t}};const u={};t.MsgAggregateExchangeRatePrevoteResponse={encode:(e,t=a.default.Writer.create())=>t,decode(e,t){const n=e instanceof a.default.Reader?e:new a.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r=Object.assign({},u);for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return r},fromJSON:e=>Object.assign({},u),toJSON:e=>({}),fromPartial:e=>Object.assign({},u)};const d={salt:"",exchangeRates:"",feeder:"",validator:""};t.MsgAggregateExchangeRateVote={encode:(e,t=a.default.Writer.create())=>(""!==e.salt&&t.uint32(10).string(e.salt),""!==e.exchangeRates&&t.uint32(18).string(e.exchangeRates),""!==e.feeder&&t.uint32(26).string(e.feeder),""!==e.validator&&t.uint32(34).string(e.validator),t),decode(e,t){const n=e instanceof a.default.Reader?e:new a.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r=Object.assign({},d);for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.salt=n.string();break;case 2:r.exchangeRates=n.string();break;case 3:r.feeder=n.string();break;case 4:r.validator=n.string();break;default:n.skipType(7&e)}}return r},fromJSON(e){const t=Object.assign({},d);return void 0!==e.salt&&null!==e.salt?t.salt=String(e.salt):t.salt="",void 0!==e.exchangeRates&&null!==e.exchangeRates?t.exchangeRates=String(e.exchangeRates):t.exchangeRates="",void 0!==e.feeder&&null!==e.feeder?t.feeder=String(e.feeder):t.feeder="",void 0!==e.validator&&null!==e.validator?t.validator=String(e.validator):t.validator="",t},toJSON(e){const t={};return void 0!==e.salt&&(t.salt=e.salt),void 0!==e.exchangeRates&&(t.exchangeRates=e.exchangeRates),void 0!==e.feeder&&(t.feeder=e.feeder),void 0!==e.validator&&(t.validator=e.validator),t},fromPartial(e){const t=Object.assign({},d);return void 0!==e.salt&&null!==e.salt?t.salt=e.salt:t.salt="",void 0!==e.exchangeRates&&null!==e.exchangeRates?t.exchangeRates=e.exchangeRates:t.exchangeRates="",void 0!==e.feeder&&null!==e.feeder?t.feeder=e.feeder:t.feeder="",void 0!==e.validator&&null!==e.validator?t.validator=e.validator:t.validator="",t}};const l={};t.MsgAggregateExchangeRateVoteResponse={encode:(e,t=a.default.Writer.create())=>t,decode(e,t){const n=e instanceof a.default.Reader?e:new a.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r=Object.assign({},l);for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return r},fromJSON:e=>Object.assign({},l),toJSON:e=>({}),fromPartial:e=>Object.assign({},l)};const p={operator:"",delegate:""};t.MsgDelegateFeedConsent={encode:(e,t=a.default.Writer.create())=>(""!==e.operator&&t.uint32(10).string(e.operator),""!==e.delegate&&t.uint32(18).string(e.delegate),t),decode(e,t){const n=e instanceof a.default.Reader?e:new a.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r=Object.assign({},p);for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.operator=n.string();break;case 2:r.delegate=n.string();break;default:n.skipType(7&e)}}return r},fromJSON(e){const t=Object.assign({},p);return void 0!==e.operator&&null!==e.operator?t.operator=String(e.operator):t.operator="",void 0!==e.delegate&&null!==e.delegate?t.delegate=String(e.delegate):t.delegate="",t},toJSON(e){const t={};return void 0!==e.operator&&(t.operator=e.operator),void 0!==e.delegate&&(t.delegate=e.delegate),t},fromPartial(e){const t=Object.assign({},p);return void 0!==e.operator&&null!==e.operator?t.operator=e.operator:t.operator="",void 0!==e.delegate&&null!==e.delegate?t.delegate=e.delegate:t.delegate="",t}};const f={};t.MsgDelegateFeedConsentResponse={encode:(e,t=a.default.Writer.create())=>t,decode(e,t){const n=e instanceof a.default.Reader?e:new a.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r=Object.assign({},f);for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return r},fromJSON:e=>Object.assign({},f),toJSON:e=>({}),fromPartial:e=>Object.assign({},f)},t.MsgClientImpl=class{constructor(e){this.rpc=e,this.AggregateExchangeRatePrevote=this.AggregateExchangeRatePrevote.bind(this),this.AggregateExchangeRateVote=this.AggregateExchangeRateVote.bind(this),this.DelegateFeedConsent=this.DelegateFeedConsent.bind(this)}AggregateExchangeRatePrevote(e,n){return this.rpc.unary(t.MsgAggregateExchangeRatePrevoteDesc,t.MsgAggregateExchangeRatePrevote.fromPartial(e),n)}AggregateExchangeRateVote(e,n){return this.rpc.unary(t.MsgAggregateExchangeRateVoteDesc,t.MsgAggregateExchangeRateVote.fromPartial(e),n)}DelegateFeedConsent(e,n){return this.rpc.unary(t.MsgDelegateFeedConsentDesc,t.MsgDelegateFeedConsent.fromPartial(e),n)}},t.MsgDesc={serviceName:"terra.oracle.v1beta1.Msg"},t.MsgAggregateExchangeRatePrevoteDesc={methodName:"AggregateExchangeRatePrevote",service:t.MsgDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary(){return t.MsgAggregateExchangeRatePrevote.encode(this).finish()}},responseType:{deserializeBinary:e=>Object.assign(Object.assign({},t.MsgAggregateExchangeRatePrevoteResponse.decode(e)),{toObject(){return this}})}},t.MsgAggregateExchangeRateVoteDesc={methodName:"AggregateExchangeRateVote",service:t.MsgDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary(){return t.MsgAggregateExchangeRateVote.encode(this).finish()}},responseType:{deserializeBinary:e=>Object.assign(Object.assign({},t.MsgAggregateExchangeRateVoteResponse.decode(e)),{toObject(){return this}})}},t.MsgDelegateFeedConsentDesc={methodName:"DelegateFeedConsent",service:t.MsgDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary(){return t.MsgDelegateFeedConsent.encode(this).finish()}},responseType:{deserializeBinary:e=>Object.assign(Object.assign({},t.MsgDelegateFeedConsentResponse.decode(e)),{toObject(){return this}})}},t.GrpcWebImpl=class{constructor(e,t){this.host=e,this.options=t}unary(e,t,n){var o;const r=Object.assign(Object.assign({},t),e.requestType),a=n&&this.options.metadata?new s.BrowserHeaders(Object.assign(Object.assign({},null===(o=this.options)||void 0===o?void 0:o.metadata.headersMap),null==n?void 0:n.headersMap)):n||this.options.metadata;return new Promise(((t,n)=>{i.grpc.unary(e,{request:r,host:this.host,metadata:a,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(e.status===i.grpc.Code.OK)t(e.message);else{const t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,n(t)}}})}))}},a.default.util.Long!==r.default&&(a.default.util.Long=r.default,a.default.configure())},256:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveBurnTaxExemptionAddressProposal=t.AddBurnTaxExemptionAddressProposal=t.protobufPackage=void 0;const r=o(n(3720)),i=o(n(2100));t.protobufPackage="terra.treasury.v1beta1";const a={title:"",description:"",addresses:""};t.AddBurnTaxExemptionAddressProposal={encode(e,t=i.default.Writer.create()){""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description);for(const n of e.addresses)t.uint32(26).string(n);return t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r=Object.assign({},a);for(r.addresses=[];n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.title=n.string();break;case 2:r.description=n.string();break;case 3:r.addresses.push(n.string());break;default:n.skipType(7&e)}}return r},fromJSON(e){const t=Object.assign({},a);if(t.addresses=[],void 0!==e.title&&null!==e.title?t.title=String(e.title):t.title="",void 0!==e.description&&null!==e.description?t.description=String(e.description):t.description="",void 0!==e.addresses&&null!==e.addresses)for(const n of e.addresses)t.addresses.push(String(n));return t},toJSON(e){const t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),e.addresses?t.addresses=e.addresses.map((e=>e)):t.addresses=[],t},fromPartial(e){const t=Object.assign({},a);if(t.addresses=[],void 0!==e.title&&null!==e.title?t.title=e.title:t.title="",void 0!==e.description&&null!==e.description?t.description=e.description:t.description="",void 0!==e.addresses&&null!==e.addresses)for(const n of e.addresses)t.addresses.push(n);return t}};const s={title:"",description:"",addresses:""};t.RemoveBurnTaxExemptionAddressProposal={encode(e,t=i.default.Writer.create()){""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description);for(const n of e.addresses)t.uint32(26).string(n);return t},decode(e,t){const n=e instanceof i.default.Reader?e:ne