diff --git a/dist/package.json b/dist/package.json index 96e6b88f..011803cc 100644 --- a/dist/package.json +++ b/dist/package.json @@ -1,21 +1,17 @@ { "name": "@irisnet/irishub-sdk", - "version": "1.0.1", + "version": "2.0.0", "description": "IRISHub JavaScript SDK", "main": "index.js", - "typings": "src/index.ts", + "typings": "index.ts", "types": "./dist/src", "files": [ "dist", "dist/*", - "src/**/*.{ts,js}", - "types/**/*.ts", "index.js", "LICENSE", "package.json", - "README.md", - "tsconfig.json", - "yarn.lock" + "README.md" ], "license": "Apache-2.0", "keywords": [ @@ -35,47 +31,49 @@ "proto-gen": "sh ./scripts/protocgen.sh" }, "devDependencies": { - "@babel/cli": "^7.0.0", - "@babel/core": "^7.0.0", - "@babel/plugin-proposal-class-properties": "^7.8.3", + "@babel/cli": "^7.13.14", + "@babel/core": "^7.14.6", + "@babel/plugin-proposal-class-properties": "^7.14.5", "@babel/plugin-transform-runtime": "^7.9.0", - "@babel/preset-env": "^7.7.6", + "@babel/preset-env": "^7.14.7", "@babel/preset-typescript": "^7.9.0", - "@types/jest": "^25.1.4", + "@types/jest": "^26.0.22", "@types/node": "^10.0.3", "babel-loader": "^8.1.0", "eslint": "^6.8.0", "eslint-loader": "^4.0.0", - "gts": "^1.1.2", + "gts": "3.1.0", "jest": "^25.1.0", "ts-jest": "^25.2.1", "ts-loader": "^6.2.2", "tslint": "^6.1.0", - "typedoc": "^0.16.9", + "typedoc": "^0.20.37", "typescript": "^3.8.3" }, "dependencies": { - "@babel/runtime": "^7.0.0", - "@types/mathjs": "^6.0.4", - "@types/ws": "^7.2.2", + "@babel/runtime": "^7.13.10", + "@types/mathjs": "6.0.11", + "@types/ws": "^7.4.5", "axios": "^0.21.1", + "bcryptjs": "^2.4.3", "bech32": "^1.1.3", "bip32": "^2.0.4", "bip39": "^3.0.2", "crypto-browserify": "^3.12.0", - "crypto-js": "^3.1.9-1", + "crypto-js": "^4.0.0", "events": "^3.1.0", "google-protobuf": "3.13.0", "grpc-web": "^1.2.1", - "uuid": "^3.3.2", "is_js": "^0.9.0", "isomorphic-ws": "^4.0.1", "mathjs": "7.5.1", - "ndjson": "^1.5.0", + "ndjson": "^2.0.0", "pumpify": "^2.0.1", - "secp256k1": "^3.7.1", + "secp256k1": "^3.8.0", "secure-random": "^1.1.2", "sha256": "^0.2.0", - "sm-crypto": "git+https://github.com/bianjieai/sm-crypto-js.git#main" + "sm-crypto": "git+http://github.com/bianjieai/sm-crypto-js.git#main", + "tweetnacl": "^1.0.3", + "uuid": "^8.3.2" } } diff --git a/dist/src/client.d.ts b/dist/src/client.d.ts index 5a6abbfa..c525b16f 100644 --- a/dist/src/client.d.ts +++ b/dist/src/client.d.ts @@ -9,38 +9,59 @@ export declare class Client { /** IRISHub Client Config */ config: DefaultClientConfig; /** Axios client for tendermint rpc requests */ - rpcClient: RpcClient; - /** WebSocket event listener */ + private _rpcClient?; + get rpcClient(): RpcClient; /** Auth module */ - auth: modules.Auth; + private _auth?; + get auth(): modules.Auth; /** Token module */ - token: modules.Token; + private _token?; + get token(): modules.Token; /** Bank module */ - bank: modules.Bank; + private _bank?; + get bank(): modules.Bank; /** Key management module */ - keys: modules.Keys; + private _keys?; + get keys(): modules.Keys; /** Protobuf module */ - protobuf: modules.Protobuf; + private _protobuf?; + get protobuf(): modules.Protobuf; /** Staking module */ - staking: modules.Staking; + private _staking?; + get staking(): modules.Staking; /** Tx module */ - tx: modules.Tx; + private _tx?; + get tx(): modules.Tx; /** Gov module */ - gov: modules.Gov; + private _gov?; + get gov(): modules.Gov; /** Slashing module */ - slashing: modules.Slashing; + private _slashing?; + get slashing(): modules.Slashing; /** Distribution module */ - distribution: modules.Distribution; + private _distribution?; + get distribution(): modules.Distribution; /** Service module */ /** Oracle module */ /** Random module */ /** Utils module */ - utils: modules.Utils; + private _utils?; + get utils(): modules.Utils; /** Tendermint module */ - tendermint: modules.Tendermint; + private _tendermint?; + get tendermint(): modules.Tendermint; /** Coinswap module */ + private _coinswap?; + get coinswap(): modules.Coinswap; /** NFT module */ - nft: modules.Nft; + private _nft?; + get nft(): modules.Nft; + /** Htlc module */ + private _htlc?; + get htlc(): modules.Htlc; + /** Ibc module */ + private _ibc?; + get ibc(): modules.Ibc; /** IRISHub SDK Constructor */ constructor(config: DefaultClientConfig); /** @@ -57,6 +78,13 @@ export declare class Client { * @returns The SDK itself */ withNetwork(network: consts.Network): this; + /** + * Set IRISHub network type + * + * @param network IRISHub network type, mainnet / testnet + * @returns The SDK itself + */ + withChainNetwork(chainNetwork: consts.ChainNetwork): this; /** * Set IRISHub chain-id * @@ -103,19 +131,20 @@ export interface ClientConfig { /** Key DAO Implemention */ keyDAO?: KeyDAO; /** Bech32 prefix of the network, will be overwritten by network type */ - bech32Prefix?: Bech32Prefix; + bech32Prefix?: types.Bech32Prefix; /** Axios request config for tendermint rpc requests */ rpcConfig?: AxiosRequestConfig; } /** Default IRISHub Client Config */ export declare class DefaultClientConfig implements ClientConfig { node: string; + chainNetwork: consts.ChainNetwork; network: consts.Network; chainId: string; gas: string; fee: types.Coin; keyDAO: KeyDAO; - bech32Prefix: Bech32Prefix; + bech32Prefix: types.Bech32Prefix; rpcConfig: AxiosRequestConfig; constructor(); } @@ -161,17 +190,6 @@ export interface KeyDAO { */ decrypt?(encrptedPrivKey: string, password: string): string; } -/** - * Bech32 Prefix - */ -export interface Bech32Prefix { - AccAddr: string; - AccPub: string; - ValAddr: string; - ValPub: string; - ConsAddr: string; - ConsPub: string; -} export declare class DefaultKeyDAOImpl implements KeyDAO { write(name: string, key: Wallet): void; read(name: string): Wallet; diff --git a/dist/src/client.js b/dist/src/client.js index 180369e3..47c027d3 100644 --- a/dist/src/client.js +++ b/dist/src/client.js @@ -1,9 +1,9 @@ "use strict"; -var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); - var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); +var _typeof = require("@babel/runtime/helpers/typeof"); + Object.defineProperty(exports, "__esModule", { value: true }); @@ -29,125 +29,305 @@ var AES = _interopRequireWildcard(require("crypto-js/aes")); var ENC = _interopRequireWildcard(require("crypto-js/enc-utf8")); +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** IRISHub Client */ var Client = /*#__PURE__*/function () { - /** IRISHub Client Config */ + /** IRISHub SDK Constructor */ + function Client(config) { + (0, _classCallCheck2["default"])(this, Client); + (0, _defineProperty2["default"])(this, "config", void 0); + (0, _defineProperty2["default"])(this, "_rpcClient", void 0); + (0, _defineProperty2["default"])(this, "_auth", void 0); + (0, _defineProperty2["default"])(this, "_token", void 0); + (0, _defineProperty2["default"])(this, "_bank", void 0); + (0, _defineProperty2["default"])(this, "_keys", void 0); + (0, _defineProperty2["default"])(this, "_protobuf", void 0); + (0, _defineProperty2["default"])(this, "_staking", void 0); + (0, _defineProperty2["default"])(this, "_tx", void 0); + (0, _defineProperty2["default"])(this, "_gov", void 0); + (0, _defineProperty2["default"])(this, "_slashing", void 0); + (0, _defineProperty2["default"])(this, "_distribution", void 0); + (0, _defineProperty2["default"])(this, "_utils", void 0); + (0, _defineProperty2["default"])(this, "_tendermint", void 0); + (0, _defineProperty2["default"])(this, "_coinswap", void 0); + (0, _defineProperty2["default"])(this, "_nft", void 0); + (0, _defineProperty2["default"])(this, "_htlc", void 0); + (0, _defineProperty2["default"])(this, "_ibc", void 0); + this.config = config; + if (!this.config.rpcConfig) this.config.rpcConfig = {}; - /** Axios client for tendermint rpc requests */ + if (!this.config.bech32Prefix || !this.config.bech32Prefix.AccAddr) { + switch (this.config.chainNetwork) { + case consts.ChainNetwork.Cosmos: + this.config.bech32Prefix = types.Bech32Prefix_Cosmos; + break; - /** WebSocket event listener */ - // eventListener: EventListener; + case consts.ChainNetwork.Akash: + this.config.bech32Prefix = types.Bech32Prefix_Akash; + break; - /** Auth module */ + case consts.ChainNetwork.Iris: + default: + this.config.bech32Prefix = types.Bech32Prefix_Iris; + break; + } + } - /** Token module */ + this.config.rpcConfig.baseURL = this.config.node; // Set default encrypt/decrypt methods - /** Bank module */ + if (!this.config.keyDAO.encrypt || !this.config.keyDAO.decrypt) { + var defaultKeyDAO = new DefaultKeyDAOImpl(); + this.config.keyDAO.encrypt = defaultKeyDAO.encrypt; + this.config.keyDAO.decrypt = defaultKeyDAO.decrypt; + } + } + /** + * Set Key DAO Implemention + * + * @param keyDAO Key DAO Implemention + * @returns The SDK itself + */ - /** Key management module */ - /** Protobuf module */ + (0, _createClass2["default"])(Client, [{ + key: "rpcClient", + get: + /** IRISHub Client Config */ + + /** Axios client for tendermint rpc requests */ + function get() { + if (!this._rpcClient) { + this._rpcClient = new _rpcClient.RpcClient(this.config.rpcConfig); + } - /** Staking module */ + return this._rpcClient; + } + /** Auth module */ - /** Tx module */ + }, { + key: "auth", + get: function get() { + if (!this._auth) { + this._auth = new modules.Auth(this); + } - /** Gov module */ + return this._auth; + } + /** Token module */ - /** Slashing module */ + }, { + key: "token", + get: function get() { + if (this.config.chainNetwork != consts.ChainNetwork.Iris) { + throw new _errors.SdkError('This module is not supported on the current chain network.', _errors.CODES.Panic); + } - /** Distribution module */ + if (!this._token) { + this._token = new modules.Token(this); + } - /** Service module */ - // service: modules.Service; + return this._token; + } + /** Bank module */ - /** Oracle module */ - // oracle: modules.Oracle; + }, { + key: "bank", + get: function get() { + if (!this._bank) { + this._bank = new modules.Bank(this); + } - /** Random module */ - // random: modules.Random; + return this._bank; + } + /** Key management module */ - /** Utils module */ + }, { + key: "keys", + get: function get() { + if (!this._keys) { + this._keys = new modules.Keys(this); + } - /** Tendermint module */ + return this._keys; + } + /** Protobuf module */ - /** Coinswap module */ - // coinswap: modules.Coinswap; + }, { + key: "protobuf", + get: function get() { + if (!this._protobuf) { + this._protobuf = new modules.Protobuf(this); + } - /** NFT module */ + return this._protobuf; + } + /** Staking module */ - /** IRISHub SDK Constructor */ - function Client(config) { - (0, _classCallCheck2["default"])(this, Client); - (0, _defineProperty2["default"])(this, "config", void 0); - (0, _defineProperty2["default"])(this, "rpcClient", void 0); - (0, _defineProperty2["default"])(this, "auth", void 0); - (0, _defineProperty2["default"])(this, "token", void 0); - (0, _defineProperty2["default"])(this, "bank", void 0); - (0, _defineProperty2["default"])(this, "keys", void 0); - (0, _defineProperty2["default"])(this, "protobuf", void 0); - (0, _defineProperty2["default"])(this, "staking", void 0); - (0, _defineProperty2["default"])(this, "tx", void 0); - (0, _defineProperty2["default"])(this, "gov", void 0); - (0, _defineProperty2["default"])(this, "slashing", void 0); - (0, _defineProperty2["default"])(this, "distribution", void 0); - (0, _defineProperty2["default"])(this, "utils", void 0); - (0, _defineProperty2["default"])(this, "tendermint", void 0); - (0, _defineProperty2["default"])(this, "nft", void 0); - this.config = config; - if (!this.config.rpcConfig) this.config.rpcConfig = {}; - this.config.bech32Prefix = config.network === consts.Network.Mainnet ? { - AccAddr: 'iaa', - AccPub: 'iap', - ValAddr: 'iva', - ValPub: 'ivp', - ConsAddr: 'ica', - ConsPub: 'icp' - } : { - AccAddr: 'faa', - AccPub: 'fap', - ValAddr: 'fva', - ValPub: 'fvp', - ConsAddr: 'fca', - ConsPub: 'fcp' - }; - this.config.rpcConfig.baseURL = this.config.node; - this.rpcClient = new _rpcClient.RpcClient(this.config.rpcConfig); // this.eventListener = new EventListener(this); //TODO (lvsc) there is an error 'Event... is not a constructor' - // Modules - - this.token = new modules.Token(this); - this.utils = new modules.Utils(this); - this.bank = new modules.Bank(this); - this.keys = new modules.Keys(this); - this.tx = new modules.Tx(this); - this.protobuf = new modules.Protobuf(this); - this.staking = new modules.Staking(this); - this.gov = new modules.Gov(this); - this.slashing = new modules.Slashing(this); - this.distribution = new modules.Distribution(this); // this.service = new modules.Service(this); - // this.oracle = new modules.Oracle(this); - // this.random = new modules.Random(this); - - this.auth = new modules.Auth(this); - this.tendermint = new modules.Tendermint(this); // this.coinswap = new modules.Coinswap(this); - - this.nft = new modules.Nft(this); // Set default encrypt/decrypt methods + }, { + key: "staking", + get: function get() { + if (!this._staking) { + this._staking = new modules.Staking(this); + } - if (!this.config.keyDAO.encrypt || !this.config.keyDAO.decrypt) { - var defaultKeyDAO = new DefaultKeyDAOImpl(); - this.config.keyDAO.encrypt = defaultKeyDAO.encrypt; - this.config.keyDAO.decrypt = defaultKeyDAO.decrypt; + return this._staking; } - } - /** - * Set Key DAO Implemention - * - * @param keyDAO Key DAO Implemention - * @returns The SDK itself - */ + /** Tx module */ + + }, { + key: "tx", + get: function get() { + if (!this._tx) { + this._tx = new modules.Tx(this); + } + return this._tx; + } + /** Gov module */ - (0, _createClass2["default"])(Client, [{ + }, { + key: "gov", + get: function get() { + if (!this._gov) { + this._gov = new modules.Gov(this); + } + + return this._gov; + } + /** Slashing module */ + + }, { + key: "slashing", + get: function get() { + if (!this._slashing) { + this._slashing = new modules.Slashing(this); + } + + return this._slashing; + } + /** Distribution module */ + + }, { + key: "distribution", + get: function get() { + if (!this._distribution) { + this._distribution = new modules.Distribution(this); + } + + return this._distribution; + } + /** Service module */ + // private _service?: modules.Service; + // get service(): modules.Service{ + // if (this.config.chainNetwork != consts.ChainNetwork.Iris) { + // throw new SdkError('This module is not supported on the current chain network.',CODES.Panic); + // } + // if (!this._service) {this._service = new modules.Service(this)} + // return this._service; + // } + + /** Oracle module */ + // private _oracle?: modules.Oracle; + // get oracle(): modules.Oracle{ + // if (this.config.chainNetwork != consts.ChainNetwork.Iris) { + // throw new SdkError('This module is not supported on the current chain network.',CODES.Panic); + // } + // if (!this._oracle) {this._oracle = new modules.Oracle(this)} + // return this._oracle; + // } + + /** Random module */ + // private _random?: modules.Random; + // get random(): modules.Random{ + // if (this.config.chainNetwork != consts.ChainNetwork.Iris) { + // throw new SdkError('This module is not supported on the current chain network.',CODES.Panic); + // } + // if (!this._random) {this._random = new modules.Random(this)} + // return this._random; + // } + + /** Utils module */ + + }, { + key: "utils", + get: function get() { + if (!this._utils) { + this._utils = new modules.Utils(this); + } + + return this._utils; + } + /** Tendermint module */ + + }, { + key: "tendermint", + get: function get() { + if (!this._tendermint) { + this._tendermint = new modules.Tendermint(this); + } + + return this._tendermint; + } + /** Coinswap module */ + + }, { + key: "coinswap", + get: function get() { + if (this.config.chainNetwork != consts.ChainNetwork.Iris) { + throw new _errors.SdkError('This module is not supported on the current chain network.', _errors.CODES.Panic); + } + + if (!this._coinswap) { + this._coinswap = new modules.Coinswap(this); + } + + return this._coinswap; + } + /** NFT module */ + + }, { + key: "nft", + get: function get() { + if (this.config.chainNetwork != consts.ChainNetwork.Iris) { + throw new _errors.SdkError('This module is not supported on the current chain network.', _errors.CODES.Panic); + } + + if (!this._nft) { + this._nft = new modules.Nft(this); + } + + return this._nft; + } + /** Htlc module */ + + }, { + key: "htlc", + get: function get() { + if (this.config.chainNetwork != consts.ChainNetwork.Iris) { + throw new _errors.SdkError('This module is not supported on the current chain network.', _errors.CODES.Panic); + } + + if (!this._htlc) { + this._htlc = new modules.Htlc(this); + } + + return this._htlc; + } + /** Ibc module */ + + }, { + key: "ibc", + get: function get() { + if (!this._ibc) { + this._ibc = new modules.Ibc(this); + } + + return this._ibc; + } + }, { key: "withKeyDAO", value: function withKeyDAO(keyDAO) { // Set default encrypt/decrypt methods @@ -173,6 +353,19 @@ var Client = /*#__PURE__*/function () { this.config.network = network; return this; } + /** + * Set IRISHub network type + * + * @param network IRISHub network type, mainnet / testnet + * @returns The SDK itself + */ + + }, { + key: "withChainNetwork", + value: function withChainNetwork(chainNetwork) { + this.config.chainNetwork = chainNetwork; + return this; + } /** * Set IRISHub chain-id * @@ -226,7 +419,7 @@ var Client = /*#__PURE__*/function () { value: function withRpcConfig(rpcConfig) { rpcConfig.baseURL = this.config.node; this.config.rpcConfig = rpcConfig; - this.rpcClient = new _rpcClient.RpcClient(this.config.rpcConfig); + this._rpcClient = new _rpcClient.RpcClient(this.config.rpcConfig); return this; } }]); @@ -241,6 +434,7 @@ exports.Client = Client; var DefaultClientConfig = function DefaultClientConfig() { (0, _classCallCheck2["default"])(this, DefaultClientConfig); (0, _defineProperty2["default"])(this, "node", void 0); + (0, _defineProperty2["default"])(this, "chainNetwork", void 0); (0, _defineProperty2["default"])(this, "network", void 0); (0, _defineProperty2["default"])(this, "chainId", void 0); (0, _defineProperty2["default"])(this, "gas", void 0); @@ -250,6 +444,7 @@ var DefaultClientConfig = function DefaultClientConfig() { (0, _defineProperty2["default"])(this, "rpcConfig", void 0); this.node = ''; this.network = types.Network.Mainnet; + this.chainNetwork = types.ChainNetwork.Iris; this.chainId = ''; this.gas = '100000'; this.fee = { diff --git a/dist/src/errors.js b/dist/src/errors.js index 61d7c506..3c391484 100644 --- a/dist/src/errors.js +++ b/dist/src/errors.js @@ -23,7 +23,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var CODESPACE_ROOT = 'sdk'; /** Error codes in irishub v1.0 */ diff --git a/dist/src/helper/modelCreator.js b/dist/src/helper/modelCreator.js index 0c9a1641..d1b9a510 100644 --- a/dist/src/helper/modelCreator.js +++ b/dist/src/helper/modelCreator.js @@ -1,9 +1,9 @@ "use strict"; -var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); - var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); +var _typeof = require("@babel/runtime/helpers/typeof"); + Object.defineProperty(exports, "__esModule", { value: true }); @@ -17,6 +17,10 @@ var types = _interopRequireWildcard(require("../types")); var is = _interopRequireWildcard(require("is_js")); +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var ModelCreator = /*#__PURE__*/function () { function ModelCreator() { (0, _classCallCheck2["default"])(this, ModelCreator); diff --git a/dist/src/helper/txHelper.js b/dist/src/helper/txHelper.js index a949831d..40f23a97 100644 --- a/dist/src/helper/txHelper.js +++ b/dist/src/helper/txHelper.js @@ -1,9 +1,9 @@ "use strict"; -var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); - var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); +var _typeof = require("@babel/runtime/helpers/typeof"); + Object.defineProperty(exports, "__esModule", { value: true }); @@ -19,6 +19,10 @@ var types = _interopRequireWildcard(require("../types")); var _errors = require("../errors"); +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var TxHelper = /*#__PURE__*/function () { function TxHelper() { (0, _classCallCheck2["default"])(this, TxHelper); diff --git a/dist/src/helper/txModelCreator.js b/dist/src/helper/txModelCreator.js index 97ff3ca1..1f3c4196 100644 --- a/dist/src/helper/txModelCreator.js +++ b/dist/src/helper/txModelCreator.js @@ -1,9 +1,9 @@ "use strict"; -var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); - var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); +var _typeof = require("@babel/runtime/helpers/typeof"); + Object.defineProperty(exports, "__esModule", { value: true }); @@ -19,6 +19,10 @@ var _txHelper = require("./txHelper"); var _errors = require("../errors"); +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var TxModelCreator = /*#__PURE__*/function () { function TxModelCreator() { (0, _classCallCheck2["default"])(this, TxModelCreator); diff --git a/dist/src/index.js b/dist/src/index.js index 9717698a..9916b23e 100644 --- a/dist/src/index.js +++ b/dist/src/index.js @@ -1,6 +1,6 @@ "use strict"; -var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); +var _typeof = require("@babel/runtime/helpers/typeof"); Object.defineProperty(exports, "__esModule", { value: true @@ -42,6 +42,10 @@ exports.utils = _utils; var _client = require("./client"); +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** * Initialize IRISHub SDK * diff --git a/dist/src/modules/auth.js b/dist/src/modules/auth.js index 83a448a5..ce5fc78b 100644 --- a/dist/src/modules/auth.js +++ b/dist/src/modules/auth.js @@ -1,9 +1,9 @@ "use strict"; -var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); - var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); +var _typeof = require("@babel/runtime/helpers/typeof"); + Object.defineProperty(exports, "__esModule", { value: true }); @@ -21,6 +21,10 @@ var is = _interopRequireWildcard(require("is_js")); var _errors = require("../errors"); +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** * Auth module is only used to build `StdTx` * diff --git a/dist/src/modules/bank.d.ts b/dist/src/modules/bank.d.ts index 1627f047..579811d8 100644 --- a/dist/src/modules/bank.d.ts +++ b/dist/src/modules/bank.d.ts @@ -43,7 +43,7 @@ export declare class Bank { * AllBalances queries the balance of all coins for a single account. * @param address is the address to query balances for. */ - queryAllBalances(address: string): Promise; + queryAllBalances(address: string, height?: string): Promise; /** * TotalSupply queries the total supply of all coins. */ diff --git a/dist/src/modules/bank.js b/dist/src/modules/bank.js index 5534c6df..a58b5a4f 100644 --- a/dist/src/modules/bank.js +++ b/dist/src/modules/bank.js @@ -1,9 +1,9 @@ "use strict"; -var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); - var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); +var _typeof = require("@babel/runtime/helpers/typeof"); + Object.defineProperty(exports, "__esModule", { value: true }); @@ -25,6 +25,10 @@ var types = _interopRequireWildcard(require("../types")); var _errors = require("../errors"); +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** * This module is mainly used to transfer coins between accounts, * query account balances, and provide common offline transaction signing and broadcasting methods. @@ -182,14 +186,14 @@ var Bank = /*#__PURE__*/function () { }, { key: "queryAllBalances", - value: function queryAllBalances(address) { + value: function queryAllBalances(address, height) { if (!address) { throw new _errors.SdkError("address can ont be empty"); } var request = new types.bank_query_pb.QueryAllBalancesRequest(); request.setAddress(address); - return this.client.rpcClient.protoQuery('/cosmos.bank.v1beta1.Query/AllBalances', request, types.bank_query_pb.QueryAllBalancesResponse); + return this.client.rpcClient.protoQuery('/cosmos.bank.v1beta1.Query/AllBalances', request, types.bank_query_pb.QueryAllBalancesResponse, height); } /** * TotalSupply queries the total supply of all coins. diff --git a/dist/src/modules/coinswap.d.ts b/dist/src/modules/coinswap.d.ts index fe7000f5..a541d4d7 100644 --- a/dist/src/modules/coinswap.d.ts +++ b/dist/src/modules/coinswap.d.ts @@ -1,6 +1,5 @@ import { Client } from '../client'; import * as types from '../types'; -import { DepositRequest, WithdrawRequest, SwapOrderRequest, Coin } from '../types'; /** * Implementation of the [Constant Product Market Maker Model](https://github.com/runtimeverification/verified-smart-contracts/blob/uniswap/uniswap/x-y-k.pdf) token exchange protocol on IRISHub. * @@ -12,87 +11,42 @@ export declare class Coinswap { /** @hidden */ private client; /** @hidden */ - private formatUniABSPrefix; - /** @hidden */ - private mathConfig; - /** @hidden */ - private math; - /** @hidden */ constructor(client: Client); /** - * - * Query liquidity by id - * @param id The liquidity id + * add liquidity + * @param max_token Upper limit of Token of mortgages acceptable to users + * @param exact_standard_amt Number of standard specified by the user + * @param min_liquidity The minimum number of liquid securities acceptable to the user + * @param deadline The validity period of this transaction + * @param baseTx { types.BaseTx } * @returns - * @since v1.0 */ - queryLiquidity(id: string): Promise; + addLiquidity(max_token: types.Coin, exact_standard_amt: string, min_liquidity: string, deadline: number, baseTx: types.BaseTx): Promise; /** - * Add liquidity by exact iris amount, calculated token and liquidity amount - * @param request Add liquidity request - * @param baseTx + * remove liquidity + * @param withdraw_liquidity The minimum number of liquid securities acceptable to the user + * @param min_token Upper limit of Token of mortgages acceptable to users + * @param min_standard_amt Number of standard specified by the user + * @param deadline The validity period of this transaction + * @param baseTx { types.BaseTx } * @returns - * @since v1.0 - */ - deposit(request: DepositRequest, baseTx: types.BaseTx): Promise; - /** - * Remove liquidity by exact liquidity amount, calculated iris and token amount - * @param request Remove liquidity request - * @param baseTx - * @returns - * @since v1.0 - */ - withdraw(request: WithdrawRequest, baseTx: types.BaseTx): Promise; - /** - * Swap coin by exact output, calculated input - * @param request Buy order request - * @param baseTx + */ + removeLiquidity(withdraw_liquidity: types.Coin, min_token: string, min_standard_amt: string, deadline: number, baseTx: types.BaseTx): Promise; + /** + * swap order + * @param input The token sold by the user + * @param output The token that the user buys back + * @param deadline The validity period of this transaction + * @param is_buy_order buy or sell + * @param baseTx { types.BaseTx } * @returns - * @since v1.0 - */ - buy(request: SwapOrderRequest, baseTx: types.BaseTx): Promise; + */ + swapOrder(input: types.Coin, output: types.Coin, is_buy_order: boolean, deadline: number, baseTx: types.BaseTx): Promise; /** - * Swap coin by exact input, calculated output - * @param request Sell order request - * @param baseTx + * + * Query liquidity by id + * @param id The liquidity id * @returns - * @since v1.0 - */ - sell(request: SwapOrderRequest, baseTx: types.BaseTx): Promise; - private getUniDenomFromDenoms; - /** - * Calculate the amount of another token to be received based on the exact amount of tokens sold - * @param exactSoldCoin sold coin - * @param soldTokenDenom received token's denom - * @returns output token amount to be received - * @since v1.0 - */ - calculateWithExactInput(exactSoldCoin: Coin, boughtTokenDenom: string): Promise; - /** - * Calculate the amount of the token to be paid based on the exact amount of the token to be bought - * @param exactBoughtCoin - * @param soldTokenDenom - * @return: input amount to be paid - * @since v1.0 - */ - calculateWithExactOutput(exactBoughtCoin: Coin, soldTokenDenom: string): Promise; - /** - * Calculate token amount and liquidity amount of the deposit request by exact standard token amount - * @param exactStdAmt Exact standard token amount to be deposited - * @param calculatedDenom The token denom being calculated - * @returns The [[DepositRequest]], max_token = -1 means the liquidity pool is empty, users can deposit any amount of the token - * @since v1.0 - */ - calculateDeposit(exactStdAmt: number, calculatedDenom: string): Promise; - /** - * Calculate how many tokens can be withdrawn by exact liquidity amount - * @param exactWithdrawLiquidity Exact liquidity amount to be withdrawn - * @returns The [[WithdrawRequest]] - * @since v1.0 - */ - calculateWithdraw(exactWithdrawLiquidity: Coin): Promise; - private calculateDoubleWithExactInput; - private calculateDoubleWithExactOutput; - private getInputPrice; - private getOutputPrice; + */ + queryLiquidity(id: string): Promise; } diff --git a/dist/src/modules/coinswap.js b/dist/src/modules/coinswap.js index 3f526832..e6a3c117 100644 --- a/dist/src/modules/coinswap.js +++ b/dist/src/modules/coinswap.js @@ -1,9 +1,9 @@ "use strict"; -var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); - var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); +var _typeof = require("@babel/runtime/helpers/typeof"); + Object.defineProperty(exports, "__esModule", { value: true }); @@ -19,13 +19,13 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); -var mathjs = _interopRequireWildcard(require("mathjs")); +var types = _interopRequireWildcard(require("../types")); -var is = _interopRequireWildcard(require("is_js")); +var _errors = require("../errors"); -var _types = require("../types"); +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } -var _errors = require("../errors"); +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } /** * Implementation of the [Constant Product Market Maker Model](https://github.com/runtimeverification/verified-smart-contracts/blob/uniswap/uniswap/x-y-k.pdf) token exchange protocol on IRISHub. @@ -37,62 +37,43 @@ var _errors = require("../errors"); var Coinswap = /*#__PURE__*/function () { /** @hidden */ - /** @hidden */ - - /** @hidden */ - - /** @hidden */ - /** @hidden */ function Coinswap(client) { (0, _classCallCheck2["default"])(this, Coinswap); (0, _defineProperty2["default"])(this, "client", void 0); - (0, _defineProperty2["default"])(this, "formatUniABSPrefix", 'uni:'); - (0, _defineProperty2["default"])(this, "mathConfig", { - number: 'BigNumber', - // Choose 'number' (default), 'BigNumber', or 'Fraction' - precision: 64 // 64 by default, only applicable for BigNumbers - - }); - (0, _defineProperty2["default"])(this, "math", void 0); this.client = client; - this.math = mathjs.create(mathjs.all, this.mathConfig); } /** - * - * Query liquidity by id - * @param id The liquidity id + * add liquidity + * @param max_token Upper limit of Token of mortgages acceptable to users + * @param exact_standard_amt Number of standard specified by the user + * @param min_liquidity The minimum number of liquid securities acceptable to the user + * @param deadline The validity period of this transaction + * @param baseTx { types.BaseTx } * @returns - * @since v1.0 */ (0, _createClass2["default"])(Coinswap, [{ - key: "queryLiquidity", - value: function queryLiquidity(id) { - return this.client.rpcClient.abciQuery('custom/coinswap/liquidity', { - id: id - }); - } - /** - * Add liquidity by exact iris amount, calculated token and liquidity amount - * @param request Add liquidity request - * @param baseTx - * @returns - * @since v1.0 - */ - - }, { - key: "deposit", + key: "addLiquidity", value: function () { - var _deposit = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(request, baseTx) { - var from, msgs; + var _addLiquidity = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(max_token, exact_standard_amt, min_liquidity, deadline, baseTx) { + var sender, msgs; return _regenerator["default"].wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: - from = this.client.keys.show(baseTx.from); - msgs = [new _types.MsgAddLiquidity(request, from)]; + sender = this.client.keys.show(baseTx.from); + msgs = [{ + type: types.TxType.MsgAddLiquidity, + value: { + max_token: max_token, + exact_standard_amt: exact_standard_amt, + min_liquidity: min_liquidity, + deadline: deadline, + sender: sender + } + }]; return _context.abrupt("return", this.client.tx.buildAndSend(msgs, baseTx)); case 3: @@ -103,31 +84,42 @@ var Coinswap = /*#__PURE__*/function () { }, _callee, this); })); - function deposit(_x, _x2) { - return _deposit.apply(this, arguments); + function addLiquidity(_x, _x2, _x3, _x4, _x5) { + return _addLiquidity.apply(this, arguments); } - return deposit; + return addLiquidity; }() /** - * Remove liquidity by exact liquidity amount, calculated iris and token amount - * @param request Remove liquidity request - * @param baseTx + * remove liquidity + * @param withdraw_liquidity The minimum number of liquid securities acceptable to the user + * @param min_token Upper limit of Token of mortgages acceptable to users + * @param min_standard_amt Number of standard specified by the user + * @param deadline The validity period of this transaction + * @param baseTx { types.BaseTx } * @returns - * @since v1.0 - */ + */ }, { - key: "withdraw", + key: "removeLiquidity", value: function () { - var _withdraw = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(request, baseTx) { - var from, msgs; + var _removeLiquidity = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(withdraw_liquidity, min_token, min_standard_amt, deadline, baseTx) { + var sender, msgs; return _regenerator["default"].wrap(function _callee2$(_context2) { while (1) { switch (_context2.prev = _context2.next) { case 0: - from = this.client.keys.show(baseTx.from); - msgs = [new _types.MsgRemoveLiquidity(request, from)]; + sender = this.client.keys.show(baseTx.from); + msgs = [{ + type: types.TxType.MsgRemoveLiquidity, + value: { + withdraw_liquidity: withdraw_liquidity, + min_token: min_token, + min_standard_amt: min_standard_amt, + deadline: deadline, + sender: sender + } + }]; return _context2.abrupt("return", this.client.tx.buildAndSend(msgs, baseTx)); case 3: @@ -138,33 +130,50 @@ var Coinswap = /*#__PURE__*/function () { }, _callee2, this); })); - function withdraw(_x3, _x4) { - return _withdraw.apply(this, arguments); + function removeLiquidity(_x6, _x7, _x8, _x9, _x10) { + return _removeLiquidity.apply(this, arguments); } - return withdraw; + return removeLiquidity; }() /** - * Swap coin by exact output, calculated input - * @param request Buy order request - * @param baseTx + * swap order + * @param input The token sold by the user + * @param output The token that the user buys back + * @param deadline The validity period of this transaction + * @param is_buy_order buy or sell + * @param baseTx { types.BaseTx } * @returns - * @since v1.0 - */ + */ }, { - key: "buy", + key: "swapOrder", value: function () { - var _buy = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(request, baseTx) { - var msgs; + var _swapOrder = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(input, output, is_buy_order, deadline, baseTx) { + var address, msgs; return _regenerator["default"].wrap(function _callee3$(_context3) { while (1) { switch (_context3.prev = _context3.next) { case 0: - msgs = [new _types.MsgSwapOrder(request, true)]; + address = this.client.keys.show(baseTx.from); + msgs = [{ + type: types.TxType.MsgSwapOrder, + value: { + input: { + address: address, + coin: input + }, + output: { + address: address, + coin: output + }, + deadline: deadline, + is_buy_order: is_buy_order + } + }]; return _context3.abrupt("return", this.client.tx.buildAndSend(msgs, baseTx)); - case 2: + case 3: case "end": return _context3.stop(); } @@ -172,446 +181,29 @@ var Coinswap = /*#__PURE__*/function () { }, _callee3, this); })); - function buy(_x5, _x6) { - return _buy.apply(this, arguments); + function swapOrder(_x11, _x12, _x13, _x14, _x15) { + return _swapOrder.apply(this, arguments); } - return buy; + return swapOrder; }() /** - * Swap coin by exact input, calculated output - * @param request Sell order request - * @param baseTx + * + * Query liquidity by id + * @param id The liquidity id * @returns - * @since v1.0 - */ - - }, { - key: "sell", - value: function () { - var _sell = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4(request, baseTx) { - var msgs; - return _regenerator["default"].wrap(function _callee4$(_context4) { - while (1) { - switch (_context4.prev = _context4.next) { - case 0: - msgs = [new _types.MsgSwapOrder(request, true)]; - return _context4.abrupt("return", this.client.tx.buildAndSend(msgs, baseTx)); - - case 2: - case "end": - return _context4.stop(); - } - } - }, _callee4, this); - })); - - function sell(_x7, _x8) { - return _sell.apply(this, arguments); - } - - return sell; - }() - }, { - key: "getUniDenomFromDenoms", - value: function getUniDenomFromDenoms(denom1, denom2) { - if (denom1 === denom2) { - throw new _errors.SdkError('input and output denomination are equal'); - } - - if (denom1 !== _types.STD_DENOM && denom2 !== _types.STD_DENOM) { - throw new _errors.SdkError("standard denom: '".concat(_types.STD_DENOM, "', denom1: '").concat(denom1, "', denom2: '").concat(denom2, "'")); - } - - if (denom1 === _types.STD_DENOM) { - return this.formatUniABSPrefix + denom2; - } - - return this.formatUniABSPrefix + denom1; - } - /** - * Calculate the amount of another token to be received based on the exact amount of tokens sold - * @param exactSoldCoin sold coin - * @param soldTokenDenom received token's denom - * @returns output token amount to be received - * @since v1.0 - */ + */ }, { - key: "calculateWithExactInput", - value: function () { - var _calculateWithExactInput = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee5(exactSoldCoin, boughtTokenDenom) { - var uniDenom, reservePool, inputReserve, outputReserve, boughtAmt; - return _regenerator["default"].wrap(function _callee5$(_context5) { - while (1) { - switch (_context5.prev = _context5.next) { - case 0: - if (!(exactSoldCoin.denom !== _types.STD_DENOM && boughtTokenDenom !== _types.STD_DENOM)) { - _context5.next = 2; - break; - } - - return _context5.abrupt("return", this.calculateDoubleWithExactInput(exactSoldCoin, boughtTokenDenom)); - - case 2: - uniDenom = this.getUniDenomFromDenoms(exactSoldCoin.denom, boughtTokenDenom); - _context5.next = 5; - return this.queryLiquidity(uniDenom); - - case 5: - reservePool = _context5.sent; - - if (reservePool.standard.denom === exactSoldCoin.denom) { - inputReserve = Number(reservePool.standard.amount); - outputReserve = Number(reservePool.token.amount); - } else { - inputReserve = Number(reservePool.token.amount); - outputReserve = Number(reservePool.standard.amount); - } - - if (!is.not.positive(inputReserve)) { - _context5.next = 9; - break; - } - - throw new _errors.SdkError("liquidity pool insufficient funds: ['".concat(inputReserve).concat(exactSoldCoin.denom, "']")); - - case 9: - if (!is.not.positive(outputReserve)) { - _context5.next = 11; - break; - } - - throw new _errors.SdkError("liquidity pool insufficient funds: ['".concat(outputReserve).concat(boughtTokenDenom, "']")); - - case 11: - boughtAmt = this.getInputPrice(Number(exactSoldCoin.amount), inputReserve, outputReserve, Number(reservePool.fee)); - - if (!is.above(Number(boughtAmt), outputReserve)) { - _context5.next = 14; - break; - } - - throw new _errors.SdkError("liquidity pool insufficient balance of '".concat(boughtTokenDenom, "', only bought: '").concat(outputReserve, "', got: '").concat(inputReserve, "'")); - - case 14: - return _context5.abrupt("return", boughtAmt); - - case 15: - case "end": - return _context5.stop(); - } - } - }, _callee5, this); - })); - - function calculateWithExactInput(_x9, _x10) { - return _calculateWithExactInput.apply(this, arguments); - } - - return calculateWithExactInput; - }() - /** - * Calculate the amount of the token to be paid based on the exact amount of the token to be bought - * @param exactBoughtCoin - * @param soldTokenDenom - * @return: input amount to be paid - * @since v1.0 - */ - - }, { - key: "calculateWithExactOutput", - value: function () { - var _calculateWithExactOutput = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee6(exactBoughtCoin, soldTokenDenom) { - var uniDenom, reservePool, inputReserve, outputReserve, paidAmt; - return _regenerator["default"].wrap(function _callee6$(_context6) { - while (1) { - switch (_context6.prev = _context6.next) { - case 0: - if (!(exactBoughtCoin.denom !== _types.STD_DENOM && soldTokenDenom !== _types.STD_DENOM)) { - _context6.next = 2; - break; - } - - return _context6.abrupt("return", this.calculateDoubleWithExactOutput(exactBoughtCoin, soldTokenDenom)); - - case 2: - uniDenom = this.getUniDenomFromDenoms(exactBoughtCoin.denom, soldTokenDenom); - _context6.next = 5; - return this.queryLiquidity(uniDenom); - - case 5: - reservePool = _context6.sent; - - if (reservePool.standard.denom === soldTokenDenom) { - inputReserve = Number(reservePool.standard.amount); - outputReserve = Number(reservePool.token.amount); - } else { - inputReserve = Number(reservePool.token.amount); - outputReserve = Number(reservePool.standard.amount); - } - - if (!is.not.positive(inputReserve)) { - _context6.next = 9; - break; - } - - throw new _errors.SdkError("liquidity pool insufficient funds, actual ['".concat(inputReserve).concat(soldTokenDenom, "']")); - - case 9: - if (!is.not.positive(outputReserve)) { - _context6.next = 11; - break; - } - - throw new _errors.SdkError("liquidity pool insufficient funds, actual ['".concat(outputReserve).concat(exactBoughtCoin.denom, "']")); - - case 11: - if (!is.above(Number(exactBoughtCoin.amount), outputReserve)) { - _context6.next = 13; - break; - } - - throw new _errors.SdkError("liquidity pool insufficient balance of '".concat(exactBoughtCoin.denom, "', user expected: '").concat(exactBoughtCoin.amount, "', got: '").concat(outputReserve, "'")); - - case 13: - paidAmt = this.getOutputPrice(Number(exactBoughtCoin.amount), inputReserve, outputReserve, Number(reservePool.fee)); - - if (!is.infinite(paidAmt)) { - _context6.next = 16; - break; - } - - throw new _errors.SdkError("infinite amount of '".concat(soldTokenDenom, "' is required")); - - case 16: - return _context6.abrupt("return", paidAmt); - - case 17: - case "end": - return _context6.stop(); - } - } - }, _callee6, this); - })); - - function calculateWithExactOutput(_x11, _x12) { - return _calculateWithExactOutput.apply(this, arguments); - } - - return calculateWithExactOutput; - }() - /** - * Calculate token amount and liquidity amount of the deposit request by exact standard token amount - * @param exactStdAmt Exact standard token amount to be deposited - * @param calculatedDenom The token denom being calculated - * @returns The [[DepositRequest]], max_token = -1 means the liquidity pool is empty, users can deposit any amount of the token - * @since v1.0 - */ - - }, { - key: "calculateDeposit", - value: function () { - var _calculateDeposit = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee7(exactStdAmt, calculatedDenom) { - var reservePool, depositRequest, deltaTokenAmt; - return _regenerator["default"].wrap(function _callee7$(_context7) { - while (1) { - switch (_context7.prev = _context7.next) { - case 0: - _context7.next = 2; - return this.queryLiquidity(this.getUniDenomFromDenoms(_types.STD_DENOM, calculatedDenom)); - - case 2: - reservePool = _context7.sent; - // Initiate default deposit request, max_token = -1 means the liquidity pool is empty, users can deposit any amount of the token - depositRequest = { - exact_standard_amt: exactStdAmt, - max_token: { - denom: calculatedDenom, - amount: '-1' - }, - min_liquidity: exactStdAmt, - deadline: 10000 // default 10s - - }; - - if (is.positive(Number(reservePool.standard.amount)) && is.positive(Number(reservePool.token.amount))) { - // ∆t = ⌊(∆i/i) * t⌋ + 1 - deltaTokenAmt = this.math.floor(this.math.multiply(this.math.divide(exactStdAmt, Number(reservePool.standard.amount)), Number(reservePool.token.amount))) + 1; - depositRequest.max_token = { - denom: calculatedDenom, - amount: String(deltaTokenAmt) - }; - } - - return _context7.abrupt("return", depositRequest); - - case 6: - case "end": - return _context7.stop(); - } - } - }, _callee7, this); - })); - - function calculateDeposit(_x13, _x14) { - return _calculateDeposit.apply(this, arguments); - } - - return calculateDeposit; - }() - /** - * Calculate how many tokens can be withdrawn by exact liquidity amount - * @param exactWithdrawLiquidity Exact liquidity amount to be withdrawn - * @returns The [[WithdrawRequest]] - * @since v1.0 - */ - - }, { - key: "calculateWithdraw", - value: function () { - var _calculateWithdraw = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee8(exactWithdrawLiquidity) { - var reservePool, withdrawRequest, deltaStdAmt, deltaTokenAmt; - return _regenerator["default"].wrap(function _callee8$(_context8) { - while (1) { - switch (_context8.prev = _context8.next) { - case 0: - _context8.next = 2; - return this.queryLiquidity(exactWithdrawLiquidity.denom); - - case 2: - reservePool = _context8.sent; - // Initiate default withdraw request - withdrawRequest = { - min_standard_amt: 0, - min_token: 0, - withdraw_liquidity: exactWithdrawLiquidity, - deadline: 10000 // default 10s - - }; - - if (is.positive(Number(reservePool.standard.amount)) && is.positive(Number(reservePool.token.amount))) { - // ∆i = ⌊(∆l/l) * i⌋ - deltaStdAmt = this.math.floor(this.math.multiply(this.math.divide(Number(exactWithdrawLiquidity.amount), Number(reservePool.liquidity.amount)), Number(reservePool.standard.amount))); - withdrawRequest.min_standard_amt = deltaStdAmt; // ∆t = ⌊(∆l/l) * t⌋ - - deltaTokenAmt = this.math.floor(this.math.multiply(this.math.divide(Number(exactWithdrawLiquidity.amount), Number(reservePool.liquidity.amount)), Number(reservePool.token.amount))); - withdrawRequest.min_token = deltaTokenAmt; - } - - return _context8.abrupt("return", withdrawRequest); - - case 6: - case "end": - return _context8.stop(); - } - } - }, _callee8, this); - })); - - function calculateWithdraw(_x15) { - return _calculateWithdraw.apply(this, arguments); - } - - return calculateWithdraw; - }() - }, { - key: "calculateDoubleWithExactInput", - value: function () { - var _calculateDoubleWithExactInput = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee9(exactSoldCoin, boughtTokenDenom) { - var boughtStandardAmount, boughtTokenAmt; - return _regenerator["default"].wrap(function _callee9$(_context9) { - while (1) { - switch (_context9.prev = _context9.next) { - case 0: - _context9.next = 2; - return this.calculateWithExactInput(exactSoldCoin, _types.STD_DENOM); - - case 2: - boughtStandardAmount = _context9.sent; - _context9.next = 5; - return this.calculateWithExactInput({ - denom: _types.STD_DENOM, - amount: String(boughtStandardAmount) - }, boughtTokenDenom); - - case 5: - boughtTokenAmt = _context9.sent; - return _context9.abrupt("return", boughtTokenAmt); - - case 7: - case "end": - return _context9.stop(); - } - } - }, _callee9, this); - })); - - function calculateDoubleWithExactInput(_x16, _x17) { - return _calculateDoubleWithExactInput.apply(this, arguments); - } - - return calculateDoubleWithExactInput; - }() - }, { - key: "calculateDoubleWithExactOutput", - value: function () { - var _calculateDoubleWithExactOutput = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee10(exactBoughtCoin, soldTokenDenom) { - var soldStandardAmount, soldTokenAmt; - return _regenerator["default"].wrap(function _callee10$(_context10) { - while (1) { - switch (_context10.prev = _context10.next) { - case 0: - _context10.next = 2; - return this.calculateWithExactOutput(exactBoughtCoin, _types.STD_DENOM); - - case 2: - soldStandardAmount = _context10.sent; - _context10.next = 5; - return this.calculateWithExactOutput({ - denom: _types.STD_DENOM, - amount: String(soldStandardAmount) - }, soldTokenDenom); - - case 5: - soldTokenAmt = _context10.sent; - return _context10.abrupt("return", soldTokenAmt); - - case 7: - case "end": - return _context10.stop(); - } - } - }, _callee10, this); - })); - - function calculateDoubleWithExactOutput(_x18, _x19) { - return _calculateDoubleWithExactOutput.apply(this, arguments); + key: "queryLiquidity", + value: function queryLiquidity(id) { + if (!id) { + throw new _errors.SdkError("id can ont be empty"); } - return calculateDoubleWithExactOutput; - }() // getInputPrice returns the amount of coins bought (calculated) given the input amount being sold (exact) - // The fee is included in the input coins being bought - // https://github.com/runtimeverification/verified-smart-contracts/blob/uniswap/uniswap/x-y-k.pdf - - }, { - key: "getInputPrice", - value: function getInputPrice(inputAmt, inputReserve, outputReserve, fee) { - var deltaFee = 1 - fee; - var inputAmtWithFee = this.math.multiply(inputAmt, deltaFee); - var numerator = this.math.multiply(inputAmtWithFee, outputReserve); - var denominator = this.math.add(this.math.floor(inputReserve), inputAmtWithFee); - return this.math.floor(Number(this.math.divide(numerator, denominator))); - } // getOutputPrice returns the amount of coins sold (calculated) given the output amount being bought (exact) - // The fee is included in the output coins being bought - - }, { - key: "getOutputPrice", - value: function getOutputPrice(outputAmt, inputReserve, outputReserve, fee) { - var deltaFee = 1 - fee; - var numerator = this.math.multiply(inputReserve, outputAmt); - var denominator = this.math.multiply(this.math.subtract(outputReserve, outputAmt), deltaFee); - return this.math.floor(Number(this.math.divide(numerator, denominator))) + 1; + var request = new types.coinswap_query_pb.QueryLiquidityRequest(); + request.setId(id); + return this.client.rpcClient.protoQuery('/irismod.coinswap.Query/Liquidity', request, types.coinswap_query_pb.QueryLiquidityResponse); } }]); return Coinswap; diff --git a/dist/src/modules/distribution.js b/dist/src/modules/distribution.js index 9a359aad..8bb9ec3d 100644 --- a/dist/src/modules/distribution.js +++ b/dist/src/modules/distribution.js @@ -1,9 +1,9 @@ "use strict"; -var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); - var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); +var _typeof = require("@babel/runtime/helpers/typeof"); + Object.defineProperty(exports, "__esModule", { value: true }); @@ -27,6 +27,10 @@ var _helper = require("../helper"); var _errors = require("../errors"); +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** * This module is in charge of distributing collected transaction fee and inflated token to all validators and delegators. * To reduce computation stress, a lazy distribution strategy is brought in. lazy means that the benefit won't be paid directly to contributors automatically. diff --git a/dist/src/modules/gov.d.ts b/dist/src/modules/gov.d.ts index 880be4e0..74e9dbcb 100644 --- a/dist/src/modules/gov.d.ts +++ b/dist/src/modules/gov.d.ts @@ -50,7 +50,11 @@ export declare class Gov { queryProposal(proposal_id: number): Promise; /** * Proposals queries all proposals based on given status. - * @param proposal_id defines the unique id of the proposal. + * @param option { + proposal_status?:types.ProposalStatus, + voter?:string, + depositor?:string + } */ queryProposals(option: { proposal_status?: types.ProposalStatus; diff --git a/dist/src/modules/gov.js b/dist/src/modules/gov.js index 501f3741..3108af3e 100644 --- a/dist/src/modules/gov.js +++ b/dist/src/modules/gov.js @@ -1,9 +1,9 @@ "use strict"; -var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); - var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); +var _typeof = require("@babel/runtime/helpers/typeof"); + Object.defineProperty(exports, "__esModule", { value: true }); @@ -25,6 +25,10 @@ var _helper = require("../helper"); var _errors = require("../errors"); +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** * This module provides governance functionalities * @@ -198,7 +202,11 @@ var Gov = /*#__PURE__*/function () { } /** * Proposals queries all proposals based on given status. - * @param proposal_id defines the unique id of the proposal. + * @param option { + proposal_status?:types.ProposalStatus, + voter?:string, + depositor?:string + } */ }, { diff --git a/dist/src/modules/htlc.d.ts b/dist/src/modules/htlc.d.ts new file mode 100644 index 00000000..df6e7144 --- /dev/null +++ b/dist/src/modules/htlc.d.ts @@ -0,0 +1,67 @@ +import { Client } from '../client'; +import * as types from '../types'; +/** + * This module implements HTLC related functions + * + * + * @category Modules + * @since v0.17 + */ +export declare class Htlc { + /** @hidden */ + private client; + /** @hidden */ + constructor(client: Client); + /** + * create an HTLC + * @param {Object} param { + * sender + * to + * receiver_on_other_chain + * sender_on_other_chain + * amount + * hash_lock + * timestamp + * time_lock + * transfer + * } + * @param baseTx { types.BaseTx } + */ + createHTLC(param: { + sender: string; + to: string; + receiver_on_other_chain: string; + sender_on_other_chain: string; + amount: types.Coin[]; + hash_lock: string; + timestamp: number; + time_lock: number; + transfer: boolean; + }, baseTx: types.BaseTx): Promise; + /** + * claim an HTLC + * @param sender + * @param id + * @param secret + * @param baseTx + */ + claimHTLC(sender: string, id: string, secret: string, baseTx: types.BaseTx): Promise; + /** + * HTLC queries the HTLC by the specified hash lock + * @type id + */ + queryHTLC(id: string): Promise; + /** + * AssetSupply queries the supply of an asset + * @type denom + */ + queryAssetSupply(denom: string): Promise; + /** + * AssetSupplies queries the supplies of all assets + */ + queryAssetSupplies(): Promise; + /** + * Params queries the htlc parameters + */ + queryParams(): Promise; +} diff --git a/dist/src/modules/htlc.js b/dist/src/modules/htlc.js new file mode 100644 index 00000000..2b6add8a --- /dev/null +++ b/dist/src/modules/htlc.js @@ -0,0 +1,156 @@ +"use strict"; + +var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); + +var _typeof = require("@babel/runtime/helpers/typeof"); + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.Htlc = void 0; + +var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); + +var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); + +var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); + +var _crypto = require("../utils/crypto"); + +var types = _interopRequireWildcard(require("../types")); + +var _errors = require("../errors"); + +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; } + +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * This module implements HTLC related functions + * + * + * @category Modules + * @since v0.17 + */ +var Htlc = /*#__PURE__*/function () { + /** @hidden */ + + /** @hidden */ + function Htlc(client) { + (0, _classCallCheck2["default"])(this, Htlc); + (0, _defineProperty2["default"])(this, "client", void 0); + this.client = client; + } + /** + * create an HTLC + * @param {Object} param { + * sender + * to + * receiver_on_other_chain + * sender_on_other_chain + * amount + * hash_lock + * timestamp + * time_lock + * transfer + * } + * @param baseTx { types.BaseTx } + */ + + + (0, _createClass2["default"])(Htlc, [{ + key: "createHTLC", + value: function createHTLC(param, baseTx) { + if (!_crypto.Crypto.checkAddress(param.to, this.client.config.bech32Prefix.AccAddr)) { + throw new _errors.SdkError('Invalid bech32 address'); + } + + var from = this.client.keys.show(baseTx.from); + var msgs = [{ + type: types.TxType.MsgCreateHTLC, + value: _objectSpread({}, param) + }]; + return this.client.tx.buildAndSend(msgs, baseTx); + } + /** + * claim an HTLC + * @param sender + * @param id + * @param secret + * @param baseTx + */ + + }, { + key: "claimHTLC", + value: function claimHTLC(sender, id, secret, baseTx) { + var msgs = [{ + type: types.TxType.MsgClaimHTLC, + value: { + sender: sender, + id: id, + secret: secret + } + }]; + return this.client.tx.buildAndSend(msgs, baseTx); + } + /** + * HTLC queries the HTLC by the specified hash lock + * @type id + */ + + }, { + key: "queryHTLC", + value: function queryHTLC(id) { + if (!id) { + throw new _errors.SdkError("id can ont be empty"); + } + + var request = new types.htlc_query_pb.QueryHTLCRequest(); + request.setId(id); + return this.client.rpcClient.protoQuery('/irismod.htlc.Query/HTLC', request, types.htlc_query_pb.QueryHTLCResponse); + } + /** + * AssetSupply queries the supply of an asset + * @type denom + */ + + }, { + key: "queryAssetSupply", + value: function queryAssetSupply(denom) { + if (!denom) { + throw new _errors.SdkError("denom can ont be empty"); + } + + var request = new types.htlc_query_pb.QueryAssetSupplyRequest(); + request.setDenom(denom); + return this.client.rpcClient.protoQuery('/irismod.htlc.Query/AssetSupply', request, types.htlc_query_pb.QueryAssetSupplyResponse); + } + /** + * AssetSupplies queries the supplies of all assets + */ + + }, { + key: "queryAssetSupplies", + value: function queryAssetSupplies() { + var request = new types.htlc_query_pb.QueryAssetSuppliesRequest(); + return this.client.rpcClient.protoQuery('/irismod.htlc.Query/AssetSupplies', request, types.htlc_query_pb.QueryAssetSuppliesResponse); + } + /** + * Params queries the htlc parameters + */ + + }, { + key: "queryParams", + value: function queryParams() { + var request = new types.htlc_query_pb.QueryParamsRequest(); + return this.client.rpcClient.protoQuery('/irismod.htlc.Query/Params', request, types.htlc_query_pb.QueryParamsResponse); + } + }]); + return Htlc; +}(); + +exports.Htlc = Htlc; \ No newline at end of file diff --git a/dist/src/modules/ibc.d.ts b/dist/src/modules/ibc.d.ts new file mode 100644 index 00000000..6db0dae1 --- /dev/null +++ b/dist/src/modules/ibc.d.ts @@ -0,0 +1,57 @@ +import { Client } from '../client'; +import * as types from '../types'; +/** + * This module implements IBC related functions + * + * + * @category Modules + * @since v0.17 + */ +export declare class Ibc { + /** @hidden */ + private client; + /** @hidden */ + constructor(client: Client); + /** + * ibc transfer + * @param param:{ + source_port: string; + source_channel: string; + token: Coin; + receiver: string; + timeout_height?: {revision_number:number, revision_height:number}, + timeout_timestamp?:number, + } + * @param baseTx { types.BaseTx } + * @returns + * @since v0.17 + */ + transfer(param: { + source_port: string; + source_channel: string; + token: types.Coin; + receiver: string; + timeout_height?: { + revision_number: number; + revision_height: number; + }; + timeout_timestamp?: number; + }, baseTx: types.BaseTx): Promise; + /** + * DenomTrace queries a denomination trace information. + * @param hash (in hex format) of the denomination trace information. + */ + queryDenomTrace(hash: string): Promise; + /** + * DenomTraces queries all denomination traces. + */ + queryDenomTraces(page_number?: number, page_size?: number): Promise; + /** + * Params queries all parameters of the ibc-transfer module. + */ + queryParams(): Promise; + /** + * Channels queries all the IBC channels of a chain. + */ + queryChannels(page_number?: number, page_size?: number): Promise; +} diff --git a/dist/src/modules/ibc.js b/dist/src/modules/ibc.js new file mode 100644 index 00000000..24ade26f --- /dev/null +++ b/dist/src/modules/ibc.js @@ -0,0 +1,172 @@ +"use strict"; + +var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); + +var _typeof = require("@babel/runtime/helpers/typeof"); + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.Ibc = void 0; + +var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator")); + +var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator")); + +var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); + +var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); + +var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); + +var types = _interopRequireWildcard(require("../types")); + +var _helper = require("../helper"); + +var _errors = require("../errors"); + +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + +/** + * This module implements IBC related functions + * + * + * @category Modules + * @since v0.17 + */ +var Ibc = /*#__PURE__*/function () { + /** @hidden */ + + /** @hidden */ + function Ibc(client) { + (0, _classCallCheck2["default"])(this, Ibc); + (0, _defineProperty2["default"])(this, "client", void 0); + this.client = client; + } + /** + * ibc transfer + * @param param:{ + source_port: string; + source_channel: string; + token: Coin; + receiver: string; + timeout_height?: {revision_number:number, revision_height:number}, + timeout_timestamp?:number, + } + * @param baseTx { types.BaseTx } + * @returns + * @since v0.17 + */ + + + (0, _createClass2["default"])(Ibc, [{ + key: "transfer", + value: function () { + var _transfer = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(param, baseTx) { + var from, msgs; + return _regenerator["default"].wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + if (!(!param.timeout_height && !param.timeout_timestamp)) { + _context.next = 2; + break; + } + + throw new _errors.SdkError("there must be one timeout_height or timeout_timestamp"); + + case 2: + from = this.client.keys.show(baseTx.from); + msgs = [{ + type: types.TxType.MsgTransfer, + value: { + source_port: param.source_port, + source_channel: param.source_channel, + token: param.token, + sender: from, + receiver: param.receiver, + timeout_height: param.timeout_height, + timeout_timestamp: param.timeout_timestamp + } + }]; + return _context.abrupt("return", this.client.tx.buildAndSend(msgs, baseTx)); + + case 5: + case "end": + return _context.stop(); + } + } + }, _callee, this); + })); + + function transfer(_x, _x2) { + return _transfer.apply(this, arguments); + } + + return transfer; + }() + /** + * DenomTrace queries a denomination trace information. + * @param hash (in hex format) of the denomination trace information. + */ + + }, { + key: "queryDenomTrace", + value: function queryDenomTrace(hash) { + if (!hash) { + throw new _errors.SdkError("hash can ont be empty"); + } + + var request = new types.ibc_transfer_query_pb.QueryDenomTraceRequest(); + request.setHash(hash); + return this.client.rpcClient.protoQuery('/ibc.applications.transfer.v1.Query/DenomTrace', request, types.ibc_transfer_query_pb.QueryDenomTraceResponse); + } + /** + * DenomTraces queries all denomination traces. + */ + + }, { + key: "queryDenomTraces", + value: function queryDenomTraces() { + var page_number = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1; + var page_size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 10; + + var pagination = _helper.ModelCreator.createPaginationModel(page_number, page_size, true); + + var request = new types.ibc_transfer_query_pb.QueryDenomTracesRequest(); + request.setPagination(pagination); + return this.client.rpcClient.protoQuery('/ibc.applications.transfer.v1.Query/DenomTraces', request, types.ibc_transfer_query_pb.QueryDenomTracesResponse); + } + /** + * Params queries all parameters of the ibc-transfer module. + */ + + }, { + key: "queryParams", + value: function queryParams() { + var request = new types.ibc_transfer_query_pb.QueryParamsRequest(); + return this.client.rpcClient.protoQuery('/ibc.applications.transfer.v1.Query/Params', request, types.ibc_transfer_query_pb.QueryParamsResponse); + } + /** + * Channels queries all the IBC channels of a chain. + */ + + }, { + key: "queryChannels", + value: function queryChannels() { + var page_number = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1; + var page_size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 10; + + var pagination = _helper.ModelCreator.createPaginationModel(page_number, page_size, true); + + var request = new types.ibc_channel_query_pb.QueryChannelsRequest(); + request.setPagination(pagination); + return this.client.rpcClient.protoQuery('/ibc.core.channel.v1.Query/Channels', request, types.ibc_channel_query_pb.QueryChannelsResponse); + } + }]); + return Ibc; +}(); + +exports.Ibc = Ibc; \ No newline at end of file diff --git a/dist/src/modules/index.d.ts b/dist/src/modules/index.d.ts index 6326518d..734a7e94 100644 --- a/dist/src/modules/index.d.ts +++ b/dist/src/modules/index.d.ts @@ -16,3 +16,5 @@ export * from './tendermint'; export * from './coinswap'; export * from './protobuf'; export * from './nft'; +export * from './htlc'; +export * from './ibc'; diff --git a/dist/src/modules/index.js b/dist/src/modules/index.js index ed21f84b..47b4428e 100644 --- a/dist/src/modules/index.js +++ b/dist/src/modules/index.js @@ -236,4 +236,30 @@ Object.keys(_nft).forEach(function (key) { return _nft[key]; } }); +}); + +var _htlc = require("./htlc"); + +Object.keys(_htlc).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _htlc[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _htlc[key]; + } + }); +}); + +var _ibc = require("./ibc"); + +Object.keys(_ibc).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _ibc[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _ibc[key]; + } + }); }); \ No newline at end of file diff --git a/dist/src/modules/keys.d.ts b/dist/src/modules/keys.d.ts index f9073b15..f36fa05f 100644 --- a/dist/src/modules/keys.d.ts +++ b/dist/src/modules/keys.d.ts @@ -22,10 +22,7 @@ export declare class Keys { * @returns Bech32 address and mnemonic * @since v0.17 */ - add(name: string, password: string, type?: types.PubkeyType): { - address: string; - mnemonic: string; - }; + add(name: string, password: string, type?: types.PubkeyType): types.Wallet; /** * Recover a key * @@ -39,7 +36,7 @@ export declare class Keys { * @returns Bech32 address * @since v0.17 */ - recover(name: string, password: string, mnemonic: string, type?: types.PubkeyType, index?: number, derive?: boolean, saltPassword?: string): string; + recover(name: string, password: string, mnemonic: string, type?: types.PubkeyType, index?: number, derive?: boolean, saltPassword?: string): types.Wallet; /** * Import a key from keystore * @@ -47,10 +44,20 @@ export declare class Keys { * @param password Password of the keystore * @param keystore Keystore json or object * @param type Pubkey Type - * @returns Bech32 address + * @returns types.Wallet + * @since v0.17 + */ + import(name: string, password: string, keystore: string | types.Keystore, type?: types.PubkeyType): types.Wallet; + /** + * Import a key from keystore v1.0 + * + * @param name Name of the key + * @param password Password of the keystore + * @param keystore Keystore v1.0 + * @returns types.Wallet * @since v0.17 */ - import(name: string, password: string, keystore: string | types.Keystore, type?: types.PubkeyType): string; + importKeystore(name: string, password: string, keystore: string): types.Wallet; /** * Import a PrivateKey * @@ -61,7 +68,7 @@ export declare class Keys { * @returns Bech32 address * @since v0.17 */ - importPrivateKey(name: string, password: string, privateKey: string, type?: types.PubkeyType): string; + importPrivateKey(name: string, password: string, privateKey: string, type?: types.PubkeyType): types.Wallet; /** * Export keystore of a key * diff --git a/dist/src/modules/keys.js b/dist/src/modules/keys.js index eec00178..a50bed9d 100644 --- a/dist/src/modules/keys.js +++ b/dist/src/modules/keys.js @@ -1,9 +1,9 @@ "use strict"; -var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); - var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); +var _typeof = require("@babel/runtime/helpers/typeof"); + Object.defineProperty(exports, "__esModule", { value: true }); @@ -23,6 +23,10 @@ var is = _interopRequireWildcard(require("is_js")); var types = _interopRequireWildcard(require("../types")); +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** * This module allows you to manage your local tendermint keystore (wallets) for iris. * @@ -81,18 +85,16 @@ var Keys = /*#__PURE__*/function () { var address = _crypto.Crypto.getAddressFromPublicKey(pubKey, this.client.config.bech32Prefix.AccAddr); var encryptedPrivKey = this.client.config.keyDAO.encrypt(privKey, password); - var encryptedMnemonic = this.client.config.keyDAO.encrypt(mnemonic, password); // Save the key to app - - this.client.config.keyDAO.write(name, { + var encryptedMnemonic = this.client.config.keyDAO.encrypt(mnemonic, password); + var wallet = { address: address, privateKey: encryptedPrivKey, publicKey: _crypto.Crypto.aminoMarshalPubKey(pubKey), mnemonic: encryptedMnemonic - }); - return { - address: address, - mnemonic: mnemonic - }; + }; // Save the key to app + + this.client.config.keyDAO.write(name, wallet); + return wallet; } /** * Recover a key @@ -142,14 +144,17 @@ var Keys = /*#__PURE__*/function () { var address = _crypto.Crypto.getAddressFromPublicKey(pubKey, this.client.config.bech32Prefix.AccAddr); - var encryptedPrivKey = this.client.config.keyDAO.encrypt(privKey, password); // Save the key to app - - this.client.config.keyDAO.write(name, { + var encryptedPrivKey = this.client.config.keyDAO.encrypt(privKey, password); + var encryptedMnemonic = this.client.config.keyDAO.encrypt(mnemonic, password); + var wallet = { address: address, privateKey: encryptedPrivKey, - publicKey: _crypto.Crypto.aminoMarshalPubKey(pubKey) - }); - return address; + publicKey: _crypto.Crypto.aminoMarshalPubKey(pubKey), + mnemonic: encryptedMnemonic + }; // Save the key to app + + this.client.config.keyDAO.write(name, wallet); + return wallet; } /** * Import a key from keystore @@ -158,7 +163,7 @@ var Keys = /*#__PURE__*/function () { * @param password Password of the keystore * @param keystore Keystore json or object * @param type Pubkey Type - * @returns Bech32 address + * @returns types.Wallet * @since v0.17 */ @@ -193,14 +198,60 @@ var Keys = /*#__PURE__*/function () { var address = _crypto.Crypto.getAddressFromPublicKey(pubKey, this.client.config.bech32Prefix.AccAddr); - var encryptedPrivKey = this.client.config.keyDAO.encrypt(privKey, password); // Save the key to app + var encryptedPrivKey = this.client.config.keyDAO.encrypt(privKey, password); + var wallet = { + address: address, + privateKey: encryptedPrivKey, + publicKey: _crypto.Crypto.aminoMarshalPubKey(pubKey) + }; // Save the key to app + + this.client.config.keyDAO.write(name, wallet); + return wallet; + } + /** + * Import a key from keystore v1.0 + * + * @param name Name of the key + * @param password Password of the keystore + * @param keystore Keystore v1.0 + * @returns types.Wallet + * @since v0.17 + */ + + }, { + key: "importKeystore", + value: function importKeystore(name, password, keystore) { + if (is.empty(name)) { + throw new _errors.SdkError("Name of the key can not be empty"); + } - this.client.config.keyDAO.write(name, { + if (is.empty(password)) { + throw new _errors.SdkError("Password of the key can not be empty"); + } + + if (is.empty(keystore)) { + throw new _errors.SdkError("Keystore can not be empty"); + } + + if (!this.client.config.keyDAO.encrypt) { + throw new _errors.SdkError("Encrypt method of KeyDAO not implemented"); + } + + var pk = _crypto.Crypto.getPrivateKeyFromKeystoreV1(keystore, password); + + var pubKey = _crypto.Crypto.getPublicKeyFromPrivateKey(pk.privKey, pk.type); + + var address = _crypto.Crypto.getAddressFromPublicKey(pubKey, this.client.config.bech32Prefix.AccAddr); + + var encryptedPrivKey = this.client.config.keyDAO.encrypt(pk.privKey, password); + var wallet = { address: address, privateKey: encryptedPrivKey, publicKey: _crypto.Crypto.aminoMarshalPubKey(pubKey) - }); - return address; + }; // Save the key to app + + this.client.config.keyDAO.write(name, wallet); + return wallet; } /** * Import a PrivateKey @@ -238,14 +289,15 @@ var Keys = /*#__PURE__*/function () { var address = _crypto.Crypto.getAddressFromPublicKey(pubKey, this.client.config.bech32Prefix.AccAddr); - var encryptedPrivKey = this.client.config.keyDAO.encrypt(privateKey, password); // Save the key to app - - this.client.config.keyDAO.write(name, { + var encryptedPrivKey = this.client.config.keyDAO.encrypt(privateKey, password); + var wallet = { address: address, privateKey: encryptedPrivKey, publicKey: _crypto.Crypto.aminoMarshalPubKey(pubKey) - }); - return address; + }; // Save the key to app + + this.client.config.keyDAO.write(name, wallet); + return wallet; } /** * Export keystore of a key diff --git a/dist/src/modules/nft.js b/dist/src/modules/nft.js index 950860e0..97069398 100644 --- a/dist/src/modules/nft.js +++ b/dist/src/modules/nft.js @@ -1,9 +1,9 @@ "use strict"; -var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); - var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); +var _typeof = require("@babel/runtime/helpers/typeof"); + Object.defineProperty(exports, "__esModule", { value: true }); @@ -25,7 +25,11 @@ var types = _interopRequireWildcard(require("../types")); var _errors = require("../errors"); -function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; } function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } diff --git a/dist/src/modules/protobuf.js b/dist/src/modules/protobuf.js index 5085a39a..6e0bbfa9 100644 --- a/dist/src/modules/protobuf.js +++ b/dist/src/modules/protobuf.js @@ -1,9 +1,9 @@ "use strict"; -var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); - var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); +var _typeof = require("@babel/runtime/helpers/typeof"); + Object.defineProperty(exports, "__esModule", { value: true }); @@ -19,7 +19,11 @@ var types = _interopRequireWildcard(require("../types")); var _errors = require("../errors"); -function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; } function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } @@ -172,16 +176,19 @@ var Protobuf = /*#__PURE__*/function () { case types.TxType.MsgAddLiquidity: { + messageModelClass = types.MsgAddLiquidity.getModelClass(); break; } case types.TxType.MsgRemoveLiquidity: { + messageModelClass = types.MsgRemoveLiquidity.getModelClass(); break; } case types.TxType.MsgSwapOrder: { + messageModelClass = types.MsgSwapOrder.getModelClass(); break; } //nft @@ -234,6 +241,26 @@ var Protobuf = /*#__PURE__*/function () { messageModelClass = types.MsgDeposit.getModelClass(); break; } + //htlc + + case types.TxType.MsgCreateHTLC: + { + messageModelClass = types.MsgCreateHTLC.getModelClass(); + break; + } + + case types.TxType.MsgClaimHTLC: + { + messageModelClass = types.MsgClaimHTLC.getModelClass(); + break; + } + //ibc + + case types.TxType.MsgTransfer: + { + messageModelClass = types.MsgTransfer.getModelClass(); + break; + } default: { diff --git a/dist/src/modules/slashing.js b/dist/src/modules/slashing.js index 335d0264..2397305b 100644 --- a/dist/src/modules/slashing.js +++ b/dist/src/modules/slashing.js @@ -1,9 +1,9 @@ "use strict"; -var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); - var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); +var _typeof = require("@babel/runtime/helpers/typeof"); + Object.defineProperty(exports, "__esModule", { value: true }); @@ -27,6 +27,10 @@ var _utils = require("../utils"); var Bech32 = _interopRequireWildcard(require("bech32")); +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** * In Proof-of-Stake blockchain, validators will get block provisions by staking their token. * But if they failed to keep online, they will be punished by slashing a small portion of their staked tokens. diff --git a/dist/src/modules/staking.js b/dist/src/modules/staking.js index 2838eb0d..6eea2974 100644 --- a/dist/src/modules/staking.js +++ b/dist/src/modules/staking.js @@ -1,9 +1,9 @@ "use strict"; -var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); - var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); +var _typeof = require("@babel/runtime/helpers/typeof"); + Object.defineProperty(exports, "__esModule", { value: true }); @@ -27,7 +27,11 @@ var is = _interopRequireWildcard(require("is_js")); var _helper = require("../helper"); -function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; } function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } diff --git a/dist/src/modules/tendermint.js b/dist/src/modules/tendermint.js index ef4415f2..71ba6436 100644 --- a/dist/src/modules/tendermint.js +++ b/dist/src/modules/tendermint.js @@ -1,9 +1,9 @@ "use strict"; -var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); - var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); +var _typeof = require("@babel/runtime/helpers/typeof"); + Object.defineProperty(exports, "__esModule", { value: true }); @@ -23,6 +23,10 @@ var hexEncoding = _interopRequireWildcard(require("crypto-js/enc-hex")); var base64Encoding = _interopRequireWildcard(require("crypto-js/enc-base64")); +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** * Tendermint module provides tendermint rpc queriers implementation * diff --git a/dist/src/modules/token.js b/dist/src/modules/token.js index debef7d7..d0e106bc 100644 --- a/dist/src/modules/token.js +++ b/dist/src/modules/token.js @@ -1,9 +1,9 @@ "use strict"; -var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); - var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); +var _typeof = require("@babel/runtime/helpers/typeof"); + Object.defineProperty(exports, "__esModule", { value: true }); @@ -25,6 +25,10 @@ var is = _interopRequireWildcard(require("is_js")); var _errors = require("../errors"); +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** * IRISHub allows individuals and companies to create and issue their own tokens. * diff --git a/dist/src/modules/tx.js b/dist/src/modules/tx.js index 99657da6..ff7a2039 100644 --- a/dist/src/modules/tx.js +++ b/dist/src/modules/tx.js @@ -1,9 +1,9 @@ "use strict"; -var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); - var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); +var _typeof = require("@babel/runtime/helpers/typeof"); + Object.defineProperty(exports, "__esModule", { value: true }); @@ -27,7 +27,11 @@ var _errors = require("../errors"); var _utils = require("../utils"); -function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; } function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } @@ -241,7 +245,7 @@ var Tx = /*#__PURE__*/function () { accountNumber = baseTx.account_number; sequence = baseTx.sequence; // Query account info from block chain - if (!((!baseTx.account_number || !baseTx.sequence) && !offline)) { + if (!((typeof baseTx.account_number == 'undefined' || typeof baseTx.sequence == 'undefined') && !offline)) { _context2.next = 21; break; } @@ -534,16 +538,19 @@ var Tx = /*#__PURE__*/function () { case types.TxType.MsgAddLiquidity: { + msg = new types.MsgAddLiquidity(txMsg.value); break; } case types.TxType.MsgRemoveLiquidity: { + msg = new types.MsgRemoveLiquidity(txMsg.value); break; } case types.TxType.MsgSwapOrder: { + msg = new types.MsgSwapOrder(txMsg.value); break; } //nft @@ -596,6 +603,26 @@ var Tx = /*#__PURE__*/function () { msg = new types.MsgDeposit(txMsg.value); break; } + //htlc + + case types.TxType.MsgCreateHTLC: + { + msg = new types.MsgCreateHTLC(txMsg.value); + break; + } + + case types.TxType.MsgClaimHTLC: + { + msg = new types.MsgClaimHTLC(txMsg.value); + break; + } + //ibc + + case types.TxType.MsgTransfer: + { + msg = new types.MsgTransfer(txMsg.value); + break; + } default: { diff --git a/dist/src/modules/utils.js b/dist/src/modules/utils.js index 0c6f1ae9..426f82f7 100644 --- a/dist/src/modules/utils.js +++ b/dist/src/modules/utils.js @@ -1,9 +1,9 @@ "use strict"; -var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); - var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); +var _typeof = require("@babel/runtime/helpers/typeof"); + Object.defineProperty(exports, "__esModule", { value: true }); @@ -21,6 +21,10 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de var mathjs = _interopRequireWildcard(require("mathjs")); +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** * Utils for the IRISHub SDK * @category Modules diff --git a/dist/src/nets/event-listener.js b/dist/src/nets/event-listener.js index 74cb4bbd..29ea99ed 100644 --- a/dist/src/nets/event-listener.js +++ b/dist/src/nets/event-listener.js @@ -1,9 +1,9 @@ "use strict"; -var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); - var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); +var _typeof = require("@babel/runtime/helpers/typeof"); + Object.defineProperty(exports, "__esModule", { value: true }); @@ -29,6 +29,10 @@ var is = _interopRequireWildcard(require("is_js")); var _wsClient = require("./ws-client"); +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** Internal event dao for caching the events */ var EventDAO = /*#__PURE__*/function () { function EventDAO() { diff --git a/dist/src/nets/rpc-client.d.ts b/dist/src/nets/rpc-client.d.ts index cddc835a..c4a70743 100644 --- a/dist/src/nets/rpc-client.d.ts +++ b/dist/src/nets/rpc-client.d.ts @@ -34,7 +34,7 @@ export declare class RpcClient { * @returns * @since v0.17 */ - protoQuery(path: string, protoRequest?: any, protoResponse?: any): Promise; + protoQuery(path: string, protoRequest?: any, protoResponse?: any, height?: string): Promise; /** * Tendermint ABCI Query * diff --git a/dist/src/nets/rpc-client.js b/dist/src/nets/rpc-client.js index 86807c0a..b768821e 100644 --- a/dist/src/nets/rpc-client.js +++ b/dist/src/nets/rpc-client.js @@ -1,9 +1,9 @@ "use strict"; -var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); - var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); +var _typeof = require("@babel/runtime/helpers/typeof"); + Object.defineProperty(exports, "__esModule", { value: true }); @@ -25,6 +25,10 @@ var is = _interopRequireWildcard(require("is_js")); var types = _interopRequireWildcard(require("../types")); +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** * Tendermint JSON RPC Client * @since v0.17 @@ -106,9 +110,10 @@ var RpcClient = /*#__PURE__*/function () { }, { key: "protoQuery", - value: function protoQuery(path, protoRequest, protoResponse) { + value: function protoQuery(path, protoRequest, protoResponse, height) { var params = { - path: path + path: path, + height: height }; if (protoRequest && protoRequest.serializeBinary) { diff --git a/dist/src/nets/ws-client.js b/dist/src/nets/ws-client.js index 3db78531..5ca39041 100644 --- a/dist/src/nets/ws-client.js +++ b/dist/src/nets/ws-client.js @@ -1,9 +1,9 @@ "use strict"; -var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); - var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); +var _typeof = require("@babel/runtime/helpers/typeof"); + Object.defineProperty(exports, "__esModule", { value: true }); @@ -27,6 +27,10 @@ var _isomorphicWs = _interopRequireDefault(require("isomorphic-ws")); var _errors = require("../errors"); +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** * IRISHub Websocket Client * @since v0.17 @@ -122,9 +126,11 @@ var WsClient = /*#__PURE__*/function () { } // Remove all listeners + // Remove all listeners _this2.eventEmitter.removeAllListeners(); // Destroy ws instance + // Destroy ws instance _this2.ws.terminate(); reslove(); diff --git a/dist/src/types/bank.js b/dist/src/types/bank.js index 9201cfa5..6efa7720 100644 --- a/dist/src/types/bank.js +++ b/dist/src/types/bank.js @@ -1,9 +1,9 @@ "use strict"; -var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); - var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); +var _typeof = require("@babel/runtime/helpers/typeof"); + Object.defineProperty(exports, "__esModule", { value: true }); @@ -31,9 +31,13 @@ var pbs = _interopRequireWildcard(require("./proto")); var _errors = require("../errors"); +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** * Msg for sending coins diff --git a/dist/src/types/coinswap.d.ts b/dist/src/types/coinswap.d.ts index 72123b96..fae88d82 100644 --- a/dist/src/types/coinswap.d.ts +++ b/dist/src/types/coinswap.d.ts @@ -1,23 +1,52 @@ import { Coin, Msg } from './types'; -export interface Liquidity { - standard: Coin; - token: Coin; - liquidity: Coin; - fee: string; -} -export interface DepositRequest { +/** + * param struct for add liquidity tx + */ +export interface AddLiquidityTxParam { max_token: Coin; - exact_standard_amt: number; - min_liquidity: number; + exact_standard_amt: string; + min_liquidity: string; deadline: number; + sender: string; +} +/** + * Msg for add liquidity + * + * @hidden + */ +export declare class MsgAddLiquidity extends Msg { + value: AddLiquidityTxParam; + constructor(msg: AddLiquidityTxParam); + static getModelClass(): any; + getModel(): any; + validate(): void; } -export interface WithdrawRequest { - min_token: number; +/** + * param struct for add liquidity tx + */ +export interface RemoveLiquidityTxParam { withdraw_liquidity: Coin; - min_standard_amt: number; + min_token: string; + min_standard_amt: string; deadline: number; + sender: string; +} +/** + * Msg for remove liquidity + * + * @hidden + */ +export declare class MsgRemoveLiquidity extends Msg { + value: RemoveLiquidityTxParam; + constructor(msg: RemoveLiquidityTxParam); + static getModelClass(): any; + getModel(): any; + validate(): void; } -export interface SwapOrderRequest { +/** + * param struct for add liquidity tx + */ +export interface SwapOrderTxParam { input: { address: string; coin: Coin; @@ -27,19 +56,23 @@ export interface SwapOrderRequest { coin: Coin; }; deadline: number; + is_buy_order: boolean; } -export declare class MsgAddLiquidity extends Msg { - value: object; - constructor(request: DepositRequest, sender: string); - getSignBytes(): object; -} -export declare class MsgRemoveLiquidity extends Msg { - value: object; - constructor(request: WithdrawRequest, sender: string); - getSignBytes(): object; -} +/** + * Msg for swap order + * + * @hidden + */ export declare class MsgSwapOrder extends Msg { - value: object; - constructor(request: SwapOrderRequest, isBuyOrder: boolean); - getSignBytes(): object; + value: SwapOrderTxParam; + constructor(msg: SwapOrderTxParam); + static getModelClass(): any; + getModel(): any; + validate(): void; +} +export interface Liquidity { + standard: Coin; + token: Coin; + liquidity: Coin; + fee: string; } diff --git a/dist/src/types/coinswap.js b/dist/src/types/coinswap.js index bd325d89..d5e3bfce 100644 --- a/dist/src/types/coinswap.js +++ b/dist/src/types/coinswap.js @@ -2,6 +2,8 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); +var _typeof = require("@babel/runtime/helpers/typeof"); + Object.defineProperty(exports, "__esModule", { value: true }); @@ -23,104 +25,217 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de var _types = require("./types"); +var _helper = require("../helper"); + +var pbs = _interopRequireWildcard(require("./proto")); + +var _errors = require("../errors"); + +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } +/** + * Msg for add liquidity + * + * @hidden + */ var MsgAddLiquidity = /*#__PURE__*/function (_Msg) { (0, _inherits2["default"])(MsgAddLiquidity, _Msg); var _super = _createSuper(MsgAddLiquidity); - function MsgAddLiquidity(request, sender) { + function MsgAddLiquidity(msg) { var _this; (0, _classCallCheck2["default"])(this, MsgAddLiquidity); - _this = _super.call(this, 'irismod/coinswap/MsgAddLiquidity'); + _this = _super.call(this, _types.TxType.MsgAddLiquidity); (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "value", void 0); - var deadline = new Date(); - deadline.setTime(deadline.getTime() + request.deadline); - _this.value = { - max_token: request.max_token, - exact_standard_amt: String(request.exact_standard_amt), - min_liquidity: String(request.min_liquidity), - deadline: deadline.getTime().toString(), - sender: sender - }; + _this.value = msg; return _this; } (0, _createClass2["default"])(MsgAddLiquidity, [{ - key: "getSignBytes", - value: function getSignBytes() { - return this; + key: "getModel", + value: function getModel() { + var msg = new (this.constructor.getModelClass())(); + msg.setExactStandardAmt(this.value.exact_standard_amt); + msg.setMinLiquidity(this.value.min_liquidity); + msg.setMaxToken(_helper.TxModelCreator.createCoinModel(this.value.max_token.denom, this.value.max_token.amount)); + msg.setDeadline(this.value.deadline); + msg.setSender(this.value.sender); + return msg; + } + }, { + key: "validate", + value: function validate() { + if (!this.value.max_token) { + throw new _errors.SdkError("max_token is empty"); + } + + if (!this.value.exact_standard_amt) { + throw new _errors.SdkError("exact_standard_amt is empty"); + } + + if (!this.value.min_liquidity) { + throw new _errors.SdkError("min_liquidity is empty"); + } + + if (!this.value.deadline) { + throw new _errors.SdkError("deadline is empty"); + } + + if (!this.value.sender) { + throw new _errors.SdkError("sender is empty"); + } + } + }], [{ + key: "getModelClass", + value: function getModelClass() { + return pbs.coinswap_tx_pb.MsgAddLiquidity; } }]); return MsgAddLiquidity; }(_types.Msg); +/** + * param struct for add liquidity tx + */ + exports.MsgAddLiquidity = MsgAddLiquidity; +/** + * Msg for remove liquidity + * + * @hidden + */ var MsgRemoveLiquidity = /*#__PURE__*/function (_Msg2) { (0, _inherits2["default"])(MsgRemoveLiquidity, _Msg2); var _super2 = _createSuper(MsgRemoveLiquidity); - function MsgRemoveLiquidity(request, sender) { + function MsgRemoveLiquidity(msg) { var _this2; (0, _classCallCheck2["default"])(this, MsgRemoveLiquidity); - _this2 = _super2.call(this, 'irismod/coinswap/MsgRemoveLiquidity'); + _this2 = _super2.call(this, _types.TxType.MsgRemoveLiquidity); (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "value", void 0); - var deadline = new Date(); - deadline.setMilliseconds(deadline.getTime() + request.deadline); - _this2.value = { - min_token: String(request.min_token), - withdraw_liquidity: request.withdraw_liquidity, - min_standard_amt: String(request.min_standard_amt), - deadline: deadline.getTime().toString(), - sender: sender - }; + _this2.value = msg; return _this2; } (0, _createClass2["default"])(MsgRemoveLiquidity, [{ - key: "getSignBytes", - value: function getSignBytes() { - return this; + key: "getModel", + value: function getModel() { + var msg = new (this.constructor.getModelClass())(); + msg.setWithdrawLiquidity(_helper.TxModelCreator.createCoinModel(this.value.withdraw_liquidity.denom, this.value.withdraw_liquidity.amount)); + msg.setMinToken(this.value.min_token); + msg.setMinStandardAmt(this.value.min_standard_amt); + msg.setDeadline(this.value.deadline); + msg.setSender(this.value.sender); + return msg; + } + }, { + key: "validate", + value: function validate() { + if (!this.value.withdraw_liquidity) { + throw new _errors.SdkError("withdraw_liquidity is empty"); + } + + if (!this.value.min_token) { + throw new _errors.SdkError("min_token is empty"); + } + + if (!this.value.min_standard_amt) { + throw new _errors.SdkError("min_standard_amt is empty"); + } + + if (!this.value.deadline) { + throw new _errors.SdkError("deadline is empty"); + } + + if (!this.value.sender) { + throw new _errors.SdkError("sender is empty"); + } + } + }], [{ + key: "getModelClass", + value: function getModelClass() { + return pbs.coinswap_tx_pb.MsgRemoveLiquidity; } }]); return MsgRemoveLiquidity; }(_types.Msg); +/** + * param struct for add liquidity tx + */ + exports.MsgRemoveLiquidity = MsgRemoveLiquidity; +/** + * Msg for swap order + * + * @hidden + */ var MsgSwapOrder = /*#__PURE__*/function (_Msg3) { (0, _inherits2["default"])(MsgSwapOrder, _Msg3); var _super3 = _createSuper(MsgSwapOrder); - function MsgSwapOrder(request, isBuyOrder) { + function MsgSwapOrder(msg) { var _this3; (0, _classCallCheck2["default"])(this, MsgSwapOrder); - _this3 = _super3.call(this, 'irismod/coinswap/MsgSwapOrder'); + _this3 = _super3.call(this, _types.TxType.MsgSwapOrder); (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this3), "value", void 0); - var deadline = new Date(); - deadline.setTime(deadline.getTime() + request.deadline); - _this3.value = { - input: request.input, - output: request.output, - deadline: deadline.getTime().toString(), - is_buy_order: isBuyOrder - }; + _this3.value = msg; return _this3; } (0, _createClass2["default"])(MsgSwapOrder, [{ - key: "getSignBytes", - value: function getSignBytes() { - return this; + key: "getModel", + value: function getModel() { + var msg = new (this.constructor.getModelClass())(); + var inputMsg = new pbs.coinswap_coinswap_pb.Input(); + inputMsg.setAddress(this.value.input.address); + inputMsg.setCoin(_helper.TxModelCreator.createCoinModel(this.value.input.coin.denom, this.value.input.coin.amount)); + msg.setInput(inputMsg); + var outputMsg = new pbs.coinswap_coinswap_pb.Output(); + outputMsg.setAddress(this.value.output.address); + outputMsg.setCoin(_helper.TxModelCreator.createCoinModel(this.value.output.coin.denom, this.value.output.coin.amount)); + msg.setOutput(outputMsg); + msg.setDeadline(this.value.deadline); + msg.setIsBuyOrder(this.value.is_buy_order); + return msg; + } + }, { + key: "validate", + value: function validate() { + if (!this.value.input) { + throw new _errors.SdkError("input is empty"); + } + + if (!this.value.output) { + throw new _errors.SdkError("output is empty"); + } + + if (!this.value.deadline) { + throw new _errors.SdkError("deadline is empty"); + } + + if (!this.value.is_buy_order) { + throw new _errors.SdkError("is_buy_order is empty"); + } + } + }], [{ + key: "getModelClass", + value: function getModelClass() { + return pbs.coinswap_tx_pb.MsgSwapOrder; } }]); return MsgSwapOrder; diff --git a/dist/src/types/constants.d.ts b/dist/src/types/constants.d.ts index bc11ba2b..8652c179 100644 --- a/dist/src/types/constants.d.ts +++ b/dist/src/types/constants.d.ts @@ -1,8 +1,14 @@ +import { Bech32Prefix } from './types'; /** Network type config */ export declare enum Network { Mainnet = 0, Testnet = 1 } +export declare enum ChainNetwork { + Iris = 0, + Cosmos = 1, + Akash = 2 +} export declare enum RpcMethods { BroadcastTxSync = "broadcast_tx_sync", BroadcastTxAsync = "broadcast_tx_async", @@ -20,4 +26,13 @@ export declare enum RpcMethods { NetInfo = "net_info" } export declare const doNotModify = "[do-not-modify]"; +export declare const keystoreSaltPerfix = "$2a$12$"; +export declare const xchacha20NonceLength = 24; +export declare const keystoreStructure: { + prefix: string; + suffix: string; +}; export declare const STD_DENOM = "tiris", IRIS_ATTO = "iris-atto", MIN_UNIT_SUFFIX = "-min"; +export declare const Bech32Prefix_Iris: Bech32Prefix; +export declare const Bech32Prefix_Cosmos: Bech32Prefix; +export declare const Bech32Prefix_Akash: Bech32Prefix; diff --git a/dist/src/types/constants.js b/dist/src/types/constants.js index e065f1f3..5b9bffa1 100644 --- a/dist/src/types/constants.js +++ b/dist/src/types/constants.js @@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); -exports.MIN_UNIT_SUFFIX = exports.IRIS_ATTO = exports.STD_DENOM = exports.doNotModify = exports.RpcMethods = exports.Network = void 0; +exports.Bech32Prefix_Akash = exports.Bech32Prefix_Cosmos = exports.Bech32Prefix_Iris = exports.MIN_UNIT_SUFFIX = exports.IRIS_ATTO = exports.STD_DENOM = exports.keystoreStructure = exports.xchacha20NonceLength = exports.keystoreSaltPerfix = exports.doNotModify = exports.RpcMethods = exports.ChainNetwork = exports.Network = void 0; /** Network type config */ var Network; @@ -14,6 +14,15 @@ exports.Network = Network; Network[Network["Testnet"] = 1] = "Testnet"; })(Network || (exports.Network = Network = {})); +var ChainNetwork; +exports.ChainNetwork = ChainNetwork; + +(function (ChainNetwork) { + ChainNetwork[ChainNetwork["Iris"] = 0] = "Iris"; + ChainNetwork[ChainNetwork["Cosmos"] = 1] = "Cosmos"; + ChainNetwork[ChainNetwork["Akash"] = 2] = "Akash"; +})(ChainNetwork || (exports.ChainNetwork = ChainNetwork = {})); + var RpcMethods; exports.RpcMethods = RpcMethods; @@ -36,9 +45,45 @@ exports.RpcMethods = RpcMethods; var doNotModify = '[do-not-modify]'; exports.doNotModify = doNotModify; +var keystoreSaltPerfix = '$2a$12$'; +exports.keystoreSaltPerfix = keystoreSaltPerfix; +var xchacha20NonceLength = 24; +exports.xchacha20NonceLength = xchacha20NonceLength; +var keystoreStructure = { + prefix: '-----BEGIN TENDERMINT PRIVATE KEY-----', + suffix: '-----END TENDERMINT PRIVATE KEY-----' +}; +exports.keystoreStructure = keystoreStructure; var STD_DENOM = 'tiris', IRIS_ATTO = 'iris-atto', MIN_UNIT_SUFFIX = '-min'; exports.MIN_UNIT_SUFFIX = MIN_UNIT_SUFFIX; exports.IRIS_ATTO = IRIS_ATTO; -exports.STD_DENOM = STD_DENOM; \ No newline at end of file +exports.STD_DENOM = STD_DENOM; +var Bech32Prefix_Iris = { + AccAddr: 'iaa', + AccPub: 'iap', + ValAddr: 'iva', + ValPub: 'ivp', + ConsAddr: 'ica', + ConsPub: 'icp' +}; +exports.Bech32Prefix_Iris = Bech32Prefix_Iris; +var Bech32Prefix_Cosmos = { + AccAddr: 'cosmos', + AccPub: 'cosmospub', + ValAddr: 'cosmosvaloper', + ValPub: 'cosmosvaloperpub', + ConsAddr: 'cosmosvalcons', + ConsPub: 'cosmosvalconspub' +}; +exports.Bech32Prefix_Cosmos = Bech32Prefix_Cosmos; +var Bech32Prefix_Akash = { + AccAddr: 'akash', + AccPub: 'akashpub', + ValAddr: 'akashvaloper', + ValPub: 'akashvaloperpub', + ConsAddr: 'akashvalcons', + ConsPub: 'akashvalconspub' +}; +exports.Bech32Prefix_Akash = Bech32Prefix_Akash; \ No newline at end of file diff --git a/dist/src/types/distribution.js b/dist/src/types/distribution.js index fc3f64f4..36694e04 100644 --- a/dist/src/types/distribution.js +++ b/dist/src/types/distribution.js @@ -1,9 +1,9 @@ "use strict"; -var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); - var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); +var _typeof = require("@babel/runtime/helpers/typeof"); + Object.defineProperty(exports, "__esModule", { value: true }); @@ -33,9 +33,13 @@ var _helper = require("../helper"); var _errors = require("../errors"); +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** * Msg struct for changing the withdraw address for a delegator (or validator self-delegation) diff --git a/dist/src/types/gov.js b/dist/src/types/gov.js index a1860a96..ee312fa8 100644 --- a/dist/src/types/gov.js +++ b/dist/src/types/gov.js @@ -1,9 +1,9 @@ "use strict"; -var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); - var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); +var _typeof = require("@babel/runtime/helpers/typeof"); + Object.defineProperty(exports, "__esModule", { value: true }); @@ -31,9 +31,13 @@ var pbs = _interopRequireWildcard(require("./proto")); var _errors = require("../errors"); +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** * Msg for Submit Proposal diff --git a/dist/src/types/htlc.d.ts b/dist/src/types/htlc.d.ts new file mode 100644 index 00000000..34893302 --- /dev/null +++ b/dist/src/types/htlc.d.ts @@ -0,0 +1,47 @@ +import { Coin, Msg } from './types'; +/** + * param struct for Create HTLC Tx + */ +export interface CreateHTLCTxParam { + sender: string; + to: string; + receiver_on_other_chain: string; + sender_on_other_chain: string; + amount: Coin[]; + hash_lock: string; + timestamp: number; + time_lock: number; + transfer: boolean; +} +/** + * Msg for Create HTLC + * + * @hidden + */ +export declare class MsgCreateHTLC extends Msg { + value: CreateHTLCTxParam; + constructor(msg: CreateHTLCTxParam); + static getModelClass(): any; + getModel(): any; + validate(): void; +} +/** + * param struct for Claim HTLC Tx + */ +export interface ClaimHTLCTxParam { + sender: string; + id: string; + secret: string; +} +/** + * Msg for Claim HTLC + * + * @hidden + */ +export declare class MsgClaimHTLC extends Msg { + value: ClaimHTLCTxParam; + constructor(msg: ClaimHTLCTxParam); + static getModelClass(): any; + getModel(): any; + validate(): void; +} diff --git a/dist/src/types/htlc.js b/dist/src/types/htlc.js new file mode 100644 index 00000000..38f7706b --- /dev/null +++ b/dist/src/types/htlc.js @@ -0,0 +1,186 @@ +"use strict"; + +var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); + +var _typeof = require("@babel/runtime/helpers/typeof"); + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.MsgClaimHTLC = exports.MsgCreateHTLC = void 0; + +var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); + +var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); + +var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized")); + +var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits")); + +var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn")); + +var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf")); + +var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); + +var _types = require("./types"); + +var _helper = require("../helper"); + +var pbs = _interopRequireWildcard(require("./proto")); + +var _errors = require("../errors"); + +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +/** + * Msg for Create HTLC + * + * @hidden + */ +var MsgCreateHTLC = /*#__PURE__*/function (_Msg) { + (0, _inherits2["default"])(MsgCreateHTLC, _Msg); + + var _super = _createSuper(MsgCreateHTLC); + + function MsgCreateHTLC(msg) { + var _this; + + (0, _classCallCheck2["default"])(this, MsgCreateHTLC); + _this = _super.call(this, _types.TxType.MsgCreateHTLC); + (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "value", void 0); + _this.value = msg; + return _this; + } + + (0, _createClass2["default"])(MsgCreateHTLC, [{ + key: "getModel", + value: function getModel() { + var msg = new (this.constructor.getModelClass())(); + msg.setSender(this.value.sender); + msg.setTo(this.value.to); + msg.setReceiverOnOtherChain(this.value.receiver_on_other_chain); + msg.setSenderOnOtherChain(this.value.sender_on_other_chain); + msg.setHashLock(this.value.hash_lock); + msg.setTimestamp(this.value.timestamp); + msg.setTimeLock(this.value.time_lock); + msg.setTransfer(this.value.transfer); + this.value.amount.forEach(function (item) { + msg.addAmount(_helper.TxModelCreator.createCoinModel(item.denom, item.amount)); + }); + return msg; + } + }, { + key: "validate", + value: function validate() { + if (!this.value.sender) { + throw new _errors.SdkError("sender is empty"); + } + + if (!this.value.to) { + throw new _errors.SdkError("to is empty"); + } + + if (!this.value.receiver_on_other_chain) { + throw new _errors.SdkError("receiver_on_other_chain is empty"); + } + + if (!this.value.sender_on_other_chain) { + throw new _errors.SdkError("sender_on_other_chain is empty"); + } + + if (!this.value.hash_lock) { + throw new _errors.SdkError("hash_lock is empty"); + } + + if (!this.value.timestamp) { + throw new _errors.SdkError("timestamp is empty"); + } + + if (!this.value.time_lock) { + throw new _errors.SdkError("time_lock is empty"); + } + + if (typeof this.value.transfer == 'undefined') { + throw new _errors.SdkError("transfer is empty"); + } + + if (!(this.value.amount && this.value.amount.length)) { + throw new _errors.SdkError("amount is empty"); + } + } + }], [{ + key: "getModelClass", + value: function getModelClass() { + return pbs.htlc_tx_pb.MsgCreateHTLC; + } + }]); + return MsgCreateHTLC; +}(_types.Msg); +/** + * param struct for Claim HTLC Tx + */ + + +exports.MsgCreateHTLC = MsgCreateHTLC; + +/** + * Msg for Claim HTLC + * + * @hidden + */ +var MsgClaimHTLC = /*#__PURE__*/function (_Msg2) { + (0, _inherits2["default"])(MsgClaimHTLC, _Msg2); + + var _super2 = _createSuper(MsgClaimHTLC); + + function MsgClaimHTLC(msg) { + var _this2; + + (0, _classCallCheck2["default"])(this, MsgClaimHTLC); + _this2 = _super2.call(this, _types.TxType.MsgClaimHTLC); + (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "value", void 0); + _this2.value = msg; + return _this2; + } + + (0, _createClass2["default"])(MsgClaimHTLC, [{ + key: "getModel", + value: function getModel() { + var msg = new (this.constructor.getModelClass())(); + msg.setSender(this.value.sender); + msg.setId(this.value.id); + msg.setSecret(this.value.secret); + return msg; + } + }, { + key: "validate", + value: function validate() { + if (!this.value.sender) { + throw new _errors.SdkError("sender is empty"); + } + + if (!this.value.id) { + throw new _errors.SdkError("id is empty"); + } + + if (!this.value.secret) { + throw new _errors.SdkError("secret is empty"); + } + } + }], [{ + key: "getModelClass", + value: function getModelClass() { + return pbs.htlc_tx_pb.MsgClaimHTLC; + } + }]); + return MsgClaimHTLC; +}(_types.Msg); + +exports.MsgClaimHTLC = MsgClaimHTLC; \ No newline at end of file diff --git a/dist/src/types/ibc.d.ts b/dist/src/types/ibc.d.ts new file mode 100644 index 00000000..359f9b75 --- /dev/null +++ b/dist/src/types/ibc.d.ts @@ -0,0 +1,28 @@ +import { Coin, Msg } from './types'; +/** + * param struct for Create ibc transfer Tx + */ +export interface TransferParam { + source_port: string; + source_channel: string; + token: Coin; + sender: string; + receiver: string; + timeout_height?: { + revision_number: number; + revision_height: number; + }; + timeout_timestamp?: number; +} +/** + * Msg for ibc Transfer + * + * @hidden + */ +export declare class MsgTransfer extends Msg { + value: TransferParam; + constructor(msg: TransferParam); + static getModelClass(): any; + getModel(): any; + validate(): void; +} diff --git a/dist/src/types/ibc.js b/dist/src/types/ibc.js new file mode 100644 index 00000000..ef015dcc --- /dev/null +++ b/dist/src/types/ibc.js @@ -0,0 +1,117 @@ +"use strict"; + +var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); + +var _typeof = require("@babel/runtime/helpers/typeof"); + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.MsgTransfer = void 0; + +var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); + +var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); + +var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized")); + +var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits")); + +var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn")); + +var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf")); + +var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); + +var _types = require("./types"); + +var _helper = require("../helper"); + +var pbs = _interopRequireWildcard(require("./proto")); + +var _errors = require("../errors"); + +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +/** + * Msg for ibc Transfer + * + * @hidden + */ +var MsgTransfer = /*#__PURE__*/function (_Msg) { + (0, _inherits2["default"])(MsgTransfer, _Msg); + + var _super = _createSuper(MsgTransfer); + + function MsgTransfer(msg) { + var _this; + + (0, _classCallCheck2["default"])(this, MsgTransfer); + _this = _super.call(this, _types.TxType.MsgTransfer); + (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "value", void 0); + _this.value = msg; + return _this; + } + + (0, _createClass2["default"])(MsgTransfer, [{ + key: "getModel", + value: function getModel() { + var msg = new (this.constructor.getModelClass())(); + msg.setSourcePort(this.value.source_port); + msg.setSourceChannel(this.value.source_channel); + msg.setToken(_helper.TxModelCreator.createCoinModel(this.value.token.denom, this.value.token.amount)); + msg.setSender(this.value.sender); + msg.setReceiver(this.value.receiver); + + if (this.value.timeout_height && this.value.timeout_height.revision_number && this.value.timeout_height.revision_height) { + var height = new pbs.ibc_core_client_pb.Height(); + height.setRevisionNumber(this.value.timeout_height.revision_number); + height.setRevisionNumber(this.value.timeout_height.revision_height); + msg.setTimeoutHeight(height); + } + + if (this.value.timeout_timestamp) { + msg.setTimeoutTimestamp(this.value.timeout_timestamp); + } + + return msg; + } + }, { + key: "validate", + value: function validate() { + if (!this.value.source_port) { + throw new _errors.SdkError("source_port is empty"); + } + + if (!this.value.source_channel) { + throw new _errors.SdkError("source_channel is empty"); + } + + if (!this.value.token) { + throw new _errors.SdkError("token is empty"); + } + + if (!this.value.receiver) { + throw new _errors.SdkError("receiver is empty"); + } + + if (!this.value.timeout_height && !this.value.timeout_timestamp) { + throw new _errors.SdkError("there must be one timeout_height or timeout_timestamp"); + } + } + }], [{ + key: "getModelClass", + value: function getModelClass() { + return pbs.ibc_transfer_query_pb.MsgTransfer; + } + }]); + return MsgTransfer; +}(_types.Msg); + +exports.MsgTransfer = MsgTransfer; \ No newline at end of file diff --git a/dist/src/types/index.d.ts b/dist/src/types/index.d.ts index 2ed50816..e8524092 100644 --- a/dist/src/types/index.d.ts +++ b/dist/src/types/index.d.ts @@ -23,3 +23,5 @@ export * from './coinswap'; export * from './protoTx'; export * from './nft'; export * from './proto'; +export * from './htlc'; +export * from './ibc'; diff --git a/dist/src/types/index.js b/dist/src/types/index.js index fac1f4c0..89deb1be 100644 --- a/dist/src/types/index.js +++ b/dist/src/types/index.js @@ -327,4 +327,30 @@ Object.keys(_proto).forEach(function (key) { return _proto[key]; } }); +}); + +var _htlc = require("./htlc"); + +Object.keys(_htlc).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _htlc[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _htlc[key]; + } + }); +}); + +var _ibc = require("./ibc"); + +Object.keys(_ibc).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _ibc[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _ibc[key]; + } + }); }); \ No newline at end of file diff --git a/dist/src/types/keystore.d.ts b/dist/src/types/keystore.d.ts index 28c0c368..86404c8a 100644 --- a/dist/src/types/keystore.d.ts +++ b/dist/src/types/keystore.d.ts @@ -8,6 +8,25 @@ export interface Keystore { address: string; crypto: Crypto; } +/** + * Keystore header struct + * @hidden + */ +export interface KeystoreHeader { + kdf?: string; + salt?: string; + type?: string; +} +/** + * Keystore struct + * @hidden + */ +export interface KeystoreV1 { + header: KeystoreHeader; + data: string; + type?: string; + text?: string; +} /** * Keys struct * @hidden diff --git a/dist/src/types/keystore.js b/dist/src/types/keystore.js index 71c22367..7d6d18aa 100644 --- a/dist/src/types/keystore.js +++ b/dist/src/types/keystore.js @@ -6,6 +6,16 @@ Object.defineProperty(exports, "__esModule", { exports.StoreType = void 0; // Generated by https://quicktype.io +/** + * Keystore struct + * @hidden + */ + +/** + * Keystore header struct + * @hidden + */ + /** * Keystore struct * @hidden diff --git a/dist/src/types/nft.js b/dist/src/types/nft.js index a676622a..1e3c145e 100644 --- a/dist/src/types/nft.js +++ b/dist/src/types/nft.js @@ -1,9 +1,9 @@ "use strict"; -var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); - var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); +var _typeof = require("@babel/runtime/helpers/typeof"); + Object.defineProperty(exports, "__esModule", { value: true }); @@ -29,9 +29,13 @@ var pbs = _interopRequireWildcard(require("./proto")); var _errors = require("../errors"); +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** * Msg for issue denom diff --git a/dist/src/types/proto-types/cosmos/bank/v1beta1/query_grpc_web_pb.js b/dist/src/types/proto-types/cosmos/bank/v1beta1/query_grpc_web_pb.js index 46575ede..2cb8d9e4 100644 --- a/dist/src/types/proto-types/cosmos/bank/v1beta1/query_grpc_web_pb.js +++ b/dist/src/types/proto-types/cosmos/bank/v1beta1/query_grpc_web_pb.js @@ -482,5 +482,165 @@ proto.cosmos.bank.v1beta1.QueryPromiseClient.prototype.params = }; +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest, + * !proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse>} + */ +const methodDescriptor_Query_DenomMetadata = new grpc.web.MethodDescriptor( + '/cosmos.bank.v1beta1.Query/DenomMetadata', + grpc.web.MethodType.UNARY, + proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest, + proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse, + /** + * @param {!proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest, + * !proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse>} + */ +const methodInfo_Query_DenomMetadata = new grpc.web.AbstractClientBase.MethodInfo( + proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse, + /** + * @param {!proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse.deserializeBinary +); + + +/** + * @param {!proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.cosmos.bank.v1beta1.QueryClient.prototype.denomMetadata = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/cosmos.bank.v1beta1.Query/DenomMetadata', + request, + metadata || {}, + methodDescriptor_Query_DenomMetadata, + callback); +}; + + +/** + * @param {!proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.cosmos.bank.v1beta1.QueryPromiseClient.prototype.denomMetadata = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/cosmos.bank.v1beta1.Query/DenomMetadata', + request, + metadata || {}, + methodDescriptor_Query_DenomMetadata); +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest, + * !proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse>} + */ +const methodDescriptor_Query_DenomsMetadata = new grpc.web.MethodDescriptor( + '/cosmos.bank.v1beta1.Query/DenomsMetadata', + grpc.web.MethodType.UNARY, + proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest, + proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse, + /** + * @param {!proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest, + * !proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse>} + */ +const methodInfo_Query_DenomsMetadata = new grpc.web.AbstractClientBase.MethodInfo( + proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse, + /** + * @param {!proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.deserializeBinary +); + + +/** + * @param {!proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.cosmos.bank.v1beta1.QueryClient.prototype.denomsMetadata = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/cosmos.bank.v1beta1.Query/DenomsMetadata', + request, + metadata || {}, + methodDescriptor_Query_DenomsMetadata, + callback); +}; + + +/** + * @param {!proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.cosmos.bank.v1beta1.QueryPromiseClient.prototype.denomsMetadata = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/cosmos.bank.v1beta1.Query/DenomsMetadata', + request, + metadata || {}, + methodDescriptor_Query_DenomsMetadata); +}; + + module.exports = proto.cosmos.bank.v1beta1; diff --git a/dist/src/types/proto-types/cosmos/bank/v1beta1/query_pb.js b/dist/src/types/proto-types/cosmos/bank/v1beta1/query_pb.js index bb1ec404..b44f4ccf 100644 --- a/dist/src/types/proto-types/cosmos/bank/v1beta1/query_pb.js +++ b/dist/src/types/proto-types/cosmos/bank/v1beta1/query_pb.js @@ -26,6 +26,10 @@ goog.exportSymbol('proto.cosmos.bank.v1beta1.QueryAllBalancesRequest', null, glo goog.exportSymbol('proto.cosmos.bank.v1beta1.QueryAllBalancesResponse', null, global); goog.exportSymbol('proto.cosmos.bank.v1beta1.QueryBalanceRequest', null, global); goog.exportSymbol('proto.cosmos.bank.v1beta1.QueryBalanceResponse', null, global); +goog.exportSymbol('proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest', null, global); +goog.exportSymbol('proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse', null, global); +goog.exportSymbol('proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest', null, global); +goog.exportSymbol('proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse', null, global); goog.exportSymbol('proto.cosmos.bank.v1beta1.QueryParamsRequest', null, global); goog.exportSymbol('proto.cosmos.bank.v1beta1.QueryParamsResponse', null, global); goog.exportSymbol('proto.cosmos.bank.v1beta1.QuerySupplyOfRequest', null, global); @@ -242,6 +246,90 @@ if (goog.DEBUG && !COMPILED) { */ proto.cosmos.bank.v1beta1.QueryParamsResponse.displayName = 'proto.cosmos.bank.v1beta1.QueryParamsResponse'; } +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest.displayName = 'proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.repeatedFields_, null); +}; +goog.inherits(proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.displayName = 'proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest.displayName = 'proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse.displayName = 'proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse'; +} @@ -1739,4 +1827,647 @@ proto.cosmos.bank.v1beta1.QueryParamsResponse.prototype.hasParams = function() { }; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest.prototype.toObject = function(opt_includeInstance) { + return proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest.toObject = function(includeInstance, msg) { + var f, obj = { + pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageRequest.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest} + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest; + return proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest} + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new cosmos_base_query_v1beta1_pagination_pb.PageRequest; + reader.readMessage(value,cosmos_base_query_v1beta1_pagination_pb.PageRequest.deserializeBinaryFromReader); + msg.setPagination(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPagination(); + if (f != null) { + writer.writeMessage( + 1, + f, + cosmos_base_query_v1beta1_pagination_pb.PageRequest.serializeBinaryToWriter + ); + } +}; + + +/** + * optional cosmos.base.query.v1beta1.PageRequest pagination = 1; + * @return {?proto.cosmos.base.query.v1beta1.PageRequest} + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest.prototype.getPagination = function() { + return /** @type{?proto.cosmos.base.query.v1beta1.PageRequest} */ ( + jspb.Message.getWrapperField(this, cosmos_base_query_v1beta1_pagination_pb.PageRequest, 1)); +}; + + +/** + * @param {?proto.cosmos.base.query.v1beta1.PageRequest|undefined} value + * @return {!proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest} returns this +*/ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest.prototype.setPagination = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest} returns this + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest.prototype.clearPagination = function() { + return this.setPagination(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest.prototype.hasPagination = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.prototype.toObject = function(opt_includeInstance) { + return proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.toObject = function(includeInstance, msg) { + var f, obj = { + metadatasList: jspb.Message.toObjectList(msg.getMetadatasList(), + cosmos_bank_v1beta1_bank_pb.Metadata.toObject, includeInstance), + pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageResponse.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse} + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse; + return proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse} + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new cosmos_bank_v1beta1_bank_pb.Metadata; + reader.readMessage(value,cosmos_bank_v1beta1_bank_pb.Metadata.deserializeBinaryFromReader); + msg.addMetadatas(value); + break; + case 2: + var value = new cosmos_base_query_v1beta1_pagination_pb.PageResponse; + reader.readMessage(value,cosmos_base_query_v1beta1_pagination_pb.PageResponse.deserializeBinaryFromReader); + msg.setPagination(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMetadatasList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + cosmos_bank_v1beta1_bank_pb.Metadata.serializeBinaryToWriter + ); + } + f = message.getPagination(); + if (f != null) { + writer.writeMessage( + 2, + f, + cosmos_base_query_v1beta1_pagination_pb.PageResponse.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated Metadata metadatas = 1; + * @return {!Array} + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.prototype.getMetadatasList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, cosmos_bank_v1beta1_bank_pb.Metadata, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse} returns this +*/ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.prototype.setMetadatasList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.cosmos.bank.v1beta1.Metadata=} opt_value + * @param {number=} opt_index + * @return {!proto.cosmos.bank.v1beta1.Metadata} + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.prototype.addMetadatas = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.cosmos.bank.v1beta1.Metadata, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse} returns this + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.prototype.clearMetadatasList = function() { + return this.setMetadatasList([]); +}; + + +/** + * optional cosmos.base.query.v1beta1.PageResponse pagination = 2; + * @return {?proto.cosmos.base.query.v1beta1.PageResponse} + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.prototype.getPagination = function() { + return /** @type{?proto.cosmos.base.query.v1beta1.PageResponse} */ ( + jspb.Message.getWrapperField(this, cosmos_base_query_v1beta1_pagination_pb.PageResponse, 2)); +}; + + +/** + * @param {?proto.cosmos.base.query.v1beta1.PageResponse|undefined} value + * @return {!proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse} returns this +*/ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.prototype.setPagination = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse} returns this + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.prototype.clearPagination = function() { + return this.setPagination(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.prototype.hasPagination = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest.prototype.toObject = function(opt_includeInstance) { + return proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest.toObject = function(includeInstance, msg) { + var f, obj = { + denom: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest} + */ +proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest; + return proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest} + */ +proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setDenom(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getDenom(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string denom = 1; + * @return {string} + */ +proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest.prototype.getDenom = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest} returns this + */ +proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest.prototype.setDenom = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse.prototype.toObject = function(opt_includeInstance) { + return proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse.toObject = function(includeInstance, msg) { + var f, obj = { + metadata: (f = msg.getMetadata()) && cosmos_bank_v1beta1_bank_pb.Metadata.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse} + */ +proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse; + return proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse} + */ +proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new cosmos_bank_v1beta1_bank_pb.Metadata; + reader.readMessage(value,cosmos_bank_v1beta1_bank_pb.Metadata.deserializeBinaryFromReader); + msg.setMetadata(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMetadata(); + if (f != null) { + writer.writeMessage( + 1, + f, + cosmos_bank_v1beta1_bank_pb.Metadata.serializeBinaryToWriter + ); + } +}; + + +/** + * optional Metadata metadata = 1; + * @return {?proto.cosmos.bank.v1beta1.Metadata} + */ +proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse.prototype.getMetadata = function() { + return /** @type{?proto.cosmos.bank.v1beta1.Metadata} */ ( + jspb.Message.getWrapperField(this, cosmos_bank_v1beta1_bank_pb.Metadata, 1)); +}; + + +/** + * @param {?proto.cosmos.bank.v1beta1.Metadata|undefined} value + * @return {!proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse} returns this +*/ +proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse.prototype.setMetadata = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse} returns this + */ +proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse.prototype.clearMetadata = function() { + return this.setMetadata(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse.prototype.hasMetadata = function() { + return jspb.Message.getField(this, 1) != null; +}; + + goog.object.extend(exports, proto.cosmos.bank.v1beta1); diff --git a/dist/src/types/proto-types/cosmos/base/tendermint/v1beta1/query_grpc_web_pb.js b/dist/src/types/proto-types/cosmos/base/tendermint/v1beta1/query_grpc_web_pb.js index fe7add89..3145e78d 100644 --- a/dist/src/types/proto-types/cosmos/base/tendermint/v1beta1/query_grpc_web_pb.js +++ b/dist/src/types/proto-types/cosmos/base/tendermint/v1beta1/query_grpc_web_pb.js @@ -1,5 +1,5 @@ /** - * @fileoverview gRPC-Web generated client stub for cosmos.base.tendermint_1.v1beta1 + * @fileoverview gRPC-Web generated client stub for cosmos.base.tendermint.v1beta1 * @enhanceable * @public */ @@ -32,8 +32,8 @@ var cosmos_base_query_v1beta1_pagination_pb = require('../../../../cosmos/base/q const proto = {}; proto.cosmos = {}; proto.cosmos.base = {}; -proto.cosmos.base.tendermint_1 = {}; -proto.cosmos.base.tendermint_1.v1beta1 = require('./query_pb.js'); +proto.cosmos.base.tendermint = {}; +proto.cosmos.base.tendermint.v1beta1 = require('./query_pb.js'); /** * @param {string} hostname @@ -43,7 +43,7 @@ proto.cosmos.base.tendermint_1.v1beta1 = require('./query_pb.js'); * @struct * @final */ -proto.cosmos.base.tendermint_1.v1beta1.ServiceClient = +proto.cosmos.base.tendermint.v1beta1.ServiceClient = function(hostname, credentials, options) { if (!options) options = {}; options['format'] = 'text'; @@ -69,7 +69,7 @@ proto.cosmos.base.tendermint_1.v1beta1.ServiceClient = * @struct * @final */ -proto.cosmos.base.tendermint_1.v1beta1.ServicePromiseClient = +proto.cosmos.base.tendermint.v1beta1.ServicePromiseClient = function(hostname, credentials, options) { if (!options) options = {}; options['format'] = 'text'; @@ -90,58 +90,58 @@ proto.cosmos.base.tendermint_1.v1beta1.ServicePromiseClient = /** * @const * @type {!grpc.web.MethodDescriptor< - * !proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest, - * !proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse>} + * !proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest, + * !proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse>} */ const methodDescriptor_Service_GetNodeInfo = new grpc.web.MethodDescriptor( - '/cosmos.base.tendermint_1.v1beta1.Service/GetNodeInfo', + '/cosmos.base.tendermint.v1beta1.Service/GetNodeInfo', grpc.web.MethodType.UNARY, - proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest, - proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse, + proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest, + proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse, /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest} request + * @param {!proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest} request * @return {!Uint8Array} */ function(request) { return request.serializeBinary(); }, - proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.deserializeBinary + proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.deserializeBinary ); /** * @const * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest, - * !proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse>} + * !proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest, + * !proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse>} */ const methodInfo_Service_GetNodeInfo = new grpc.web.AbstractClientBase.MethodInfo( - proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse, + proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse, /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest} request + * @param {!proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest} request * @return {!Uint8Array} */ function(request) { return request.serializeBinary(); }, - proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.deserializeBinary + proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.deserializeBinary ); /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest} request The + * @param {!proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest} request The * request proto * @param {?Object} metadata User defined * call metadata - * @param {function(?grpc.web.Error, ?proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse)} + * @param {function(?grpc.web.Error, ?proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse)} * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} + * @return {!grpc.web.ClientReadableStream|undefined} * The XHR Node Readable Stream */ -proto.cosmos.base.tendermint_1.v1beta1.ServiceClient.prototype.getNodeInfo = +proto.cosmos.base.tendermint.v1beta1.ServiceClient.prototype.getNodeInfo = function(request, metadata, callback) { return this.client_.rpcCall(this.hostname_ + - '/cosmos.base.tendermint_1.v1beta1.Service/GetNodeInfo', + '/cosmos.base.tendermint.v1beta1.Service/GetNodeInfo', request, metadata || {}, methodDescriptor_Service_GetNodeInfo, @@ -150,17 +150,17 @@ proto.cosmos.base.tendermint_1.v1beta1.ServiceClient.prototype.getNodeInfo = /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest} request The + * @param {!proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest} request The * request proto * @param {?Object} metadata User defined * call metadata - * @return {!Promise} + * @return {!Promise} * Promise that resolves to the response */ -proto.cosmos.base.tendermint_1.v1beta1.ServicePromiseClient.prototype.getNodeInfo = +proto.cosmos.base.tendermint.v1beta1.ServicePromiseClient.prototype.getNodeInfo = function(request, metadata) { return this.client_.unaryCall(this.hostname_ + - '/cosmos.base.tendermint_1.v1beta1.Service/GetNodeInfo', + '/cosmos.base.tendermint.v1beta1.Service/GetNodeInfo', request, metadata || {}, methodDescriptor_Service_GetNodeInfo); @@ -170,58 +170,58 @@ proto.cosmos.base.tendermint_1.v1beta1.ServicePromiseClient.prototype.getNodeInf /** * @const * @type {!grpc.web.MethodDescriptor< - * !proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest, - * !proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse>} + * !proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest, + * !proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse>} */ const methodDescriptor_Service_GetSyncing = new grpc.web.MethodDescriptor( - '/cosmos.base.tendermint_1.v1beta1.Service/GetSyncing', + '/cosmos.base.tendermint.v1beta1.Service/GetSyncing', grpc.web.MethodType.UNARY, - proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest, - proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse, + proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest, + proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse, /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest} request + * @param {!proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest} request * @return {!Uint8Array} */ function(request) { return request.serializeBinary(); }, - proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse.deserializeBinary + proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse.deserializeBinary ); /** * @const * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest, - * !proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse>} + * !proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest, + * !proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse>} */ const methodInfo_Service_GetSyncing = new grpc.web.AbstractClientBase.MethodInfo( - proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse, + proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse, /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest} request + * @param {!proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest} request * @return {!Uint8Array} */ function(request) { return request.serializeBinary(); }, - proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse.deserializeBinary + proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse.deserializeBinary ); /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest} request The + * @param {!proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest} request The * request proto * @param {?Object} metadata User defined * call metadata - * @param {function(?grpc.web.Error, ?proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse)} + * @param {function(?grpc.web.Error, ?proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse)} * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} + * @return {!grpc.web.ClientReadableStream|undefined} * The XHR Node Readable Stream */ -proto.cosmos.base.tendermint_1.v1beta1.ServiceClient.prototype.getSyncing = +proto.cosmos.base.tendermint.v1beta1.ServiceClient.prototype.getSyncing = function(request, metadata, callback) { return this.client_.rpcCall(this.hostname_ + - '/cosmos.base.tendermint_1.v1beta1.Service/GetSyncing', + '/cosmos.base.tendermint.v1beta1.Service/GetSyncing', request, metadata || {}, methodDescriptor_Service_GetSyncing, @@ -230,17 +230,17 @@ proto.cosmos.base.tendermint_1.v1beta1.ServiceClient.prototype.getSyncing = /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest} request The + * @param {!proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest} request The * request proto * @param {?Object} metadata User defined * call metadata - * @return {!Promise} + * @return {!Promise} * Promise that resolves to the response */ -proto.cosmos.base.tendermint_1.v1beta1.ServicePromiseClient.prototype.getSyncing = +proto.cosmos.base.tendermint.v1beta1.ServicePromiseClient.prototype.getSyncing = function(request, metadata) { return this.client_.unaryCall(this.hostname_ + - '/cosmos.base.tendermint_1.v1beta1.Service/GetSyncing', + '/cosmos.base.tendermint.v1beta1.Service/GetSyncing', request, metadata || {}, methodDescriptor_Service_GetSyncing); @@ -250,58 +250,58 @@ proto.cosmos.base.tendermint_1.v1beta1.ServicePromiseClient.prototype.getSyncing /** * @const * @type {!grpc.web.MethodDescriptor< - * !proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest, - * !proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse>} + * !proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest, + * !proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse>} */ const methodDescriptor_Service_GetLatestBlock = new grpc.web.MethodDescriptor( - '/cosmos.base.tendermint_1.v1beta1.Service/GetLatestBlock', + '/cosmos.base.tendermint.v1beta1.Service/GetLatestBlock', grpc.web.MethodType.UNARY, - proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest, - proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse, + proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest, + proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse, /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest} request + * @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest} request * @return {!Uint8Array} */ function(request) { return request.serializeBinary(); }, - proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.deserializeBinary + proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.deserializeBinary ); /** * @const * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest, - * !proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse>} + * !proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest, + * !proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse>} */ const methodInfo_Service_GetLatestBlock = new grpc.web.AbstractClientBase.MethodInfo( - proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse, + proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse, /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest} request + * @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest} request * @return {!Uint8Array} */ function(request) { return request.serializeBinary(); }, - proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.deserializeBinary + proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.deserializeBinary ); /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest} request The + * @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest} request The * request proto * @param {?Object} metadata User defined * call metadata - * @param {function(?grpc.web.Error, ?proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse)} + * @param {function(?grpc.web.Error, ?proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse)} * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} + * @return {!grpc.web.ClientReadableStream|undefined} * The XHR Node Readable Stream */ -proto.cosmos.base.tendermint_1.v1beta1.ServiceClient.prototype.getLatestBlock = +proto.cosmos.base.tendermint.v1beta1.ServiceClient.prototype.getLatestBlock = function(request, metadata, callback) { return this.client_.rpcCall(this.hostname_ + - '/cosmos.base.tendermint_1.v1beta1.Service/GetLatestBlock', + '/cosmos.base.tendermint.v1beta1.Service/GetLatestBlock', request, metadata || {}, methodDescriptor_Service_GetLatestBlock, @@ -310,17 +310,17 @@ proto.cosmos.base.tendermint_1.v1beta1.ServiceClient.prototype.getLatestBlock = /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest} request The + * @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest} request The * request proto * @param {?Object} metadata User defined * call metadata - * @return {!Promise} + * @return {!Promise} * Promise that resolves to the response */ -proto.cosmos.base.tendermint_1.v1beta1.ServicePromiseClient.prototype.getLatestBlock = +proto.cosmos.base.tendermint.v1beta1.ServicePromiseClient.prototype.getLatestBlock = function(request, metadata) { return this.client_.unaryCall(this.hostname_ + - '/cosmos.base.tendermint_1.v1beta1.Service/GetLatestBlock', + '/cosmos.base.tendermint.v1beta1.Service/GetLatestBlock', request, metadata || {}, methodDescriptor_Service_GetLatestBlock); @@ -330,58 +330,58 @@ proto.cosmos.base.tendermint_1.v1beta1.ServicePromiseClient.prototype.getLatestB /** * @const * @type {!grpc.web.MethodDescriptor< - * !proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest, - * !proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse>} + * !proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest, + * !proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse>} */ const methodDescriptor_Service_GetBlockByHeight = new grpc.web.MethodDescriptor( - '/cosmos.base.tendermint_1.v1beta1.Service/GetBlockByHeight', + '/cosmos.base.tendermint.v1beta1.Service/GetBlockByHeight', grpc.web.MethodType.UNARY, - proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest, - proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse, + proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest, + proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse, /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest} request + * @param {!proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest} request * @return {!Uint8Array} */ function(request) { return request.serializeBinary(); }, - proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.deserializeBinary + proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.deserializeBinary ); /** * @const * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest, - * !proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse>} + * !proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest, + * !proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse>} */ const methodInfo_Service_GetBlockByHeight = new grpc.web.AbstractClientBase.MethodInfo( - proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse, + proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse, /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest} request + * @param {!proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest} request * @return {!Uint8Array} */ function(request) { return request.serializeBinary(); }, - proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.deserializeBinary + proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.deserializeBinary ); /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest} request The + * @param {!proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest} request The * request proto * @param {?Object} metadata User defined * call metadata - * @param {function(?grpc.web.Error, ?proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse)} + * @param {function(?grpc.web.Error, ?proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse)} * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} + * @return {!grpc.web.ClientReadableStream|undefined} * The XHR Node Readable Stream */ -proto.cosmos.base.tendermint_1.v1beta1.ServiceClient.prototype.getBlockByHeight = +proto.cosmos.base.tendermint.v1beta1.ServiceClient.prototype.getBlockByHeight = function(request, metadata, callback) { return this.client_.rpcCall(this.hostname_ + - '/cosmos.base.tendermint_1.v1beta1.Service/GetBlockByHeight', + '/cosmos.base.tendermint.v1beta1.Service/GetBlockByHeight', request, metadata || {}, methodDescriptor_Service_GetBlockByHeight, @@ -390,17 +390,17 @@ proto.cosmos.base.tendermint_1.v1beta1.ServiceClient.prototype.getBlockByHeight /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest} request The + * @param {!proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest} request The * request proto * @param {?Object} metadata User defined * call metadata - * @return {!Promise} + * @return {!Promise} * Promise that resolves to the response */ -proto.cosmos.base.tendermint_1.v1beta1.ServicePromiseClient.prototype.getBlockByHeight = +proto.cosmos.base.tendermint.v1beta1.ServicePromiseClient.prototype.getBlockByHeight = function(request, metadata) { return this.client_.unaryCall(this.hostname_ + - '/cosmos.base.tendermint_1.v1beta1.Service/GetBlockByHeight', + '/cosmos.base.tendermint.v1beta1.Service/GetBlockByHeight', request, metadata || {}, methodDescriptor_Service_GetBlockByHeight); @@ -410,58 +410,58 @@ proto.cosmos.base.tendermint_1.v1beta1.ServicePromiseClient.prototype.getBlockBy /** * @const * @type {!grpc.web.MethodDescriptor< - * !proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest, - * !proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse>} + * !proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest, + * !proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse>} */ const methodDescriptor_Service_GetLatestValidatorSet = new grpc.web.MethodDescriptor( - '/cosmos.base.tendermint_1.v1beta1.Service/GetLatestValidatorSet', + '/cosmos.base.tendermint.v1beta1.Service/GetLatestValidatorSet', grpc.web.MethodType.UNARY, - proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest, - proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse, + proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest, + proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse, /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest} request + * @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest} request * @return {!Uint8Array} */ function(request) { return request.serializeBinary(); }, - proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.deserializeBinary + proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.deserializeBinary ); /** * @const * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest, - * !proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse>} + * !proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest, + * !proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse>} */ const methodInfo_Service_GetLatestValidatorSet = new grpc.web.AbstractClientBase.MethodInfo( - proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse, + proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse, /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest} request + * @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest} request * @return {!Uint8Array} */ function(request) { return request.serializeBinary(); }, - proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.deserializeBinary + proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.deserializeBinary ); /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest} request The + * @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest} request The * request proto * @param {?Object} metadata User defined * call metadata - * @param {function(?grpc.web.Error, ?proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse)} + * @param {function(?grpc.web.Error, ?proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse)} * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} + * @return {!grpc.web.ClientReadableStream|undefined} * The XHR Node Readable Stream */ -proto.cosmos.base.tendermint_1.v1beta1.ServiceClient.prototype.getLatestValidatorSet = +proto.cosmos.base.tendermint.v1beta1.ServiceClient.prototype.getLatestValidatorSet = function(request, metadata, callback) { return this.client_.rpcCall(this.hostname_ + - '/cosmos.base.tendermint_1.v1beta1.Service/GetLatestValidatorSet', + '/cosmos.base.tendermint.v1beta1.Service/GetLatestValidatorSet', request, metadata || {}, methodDescriptor_Service_GetLatestValidatorSet, @@ -470,17 +470,17 @@ proto.cosmos.base.tendermint_1.v1beta1.ServiceClient.prototype.getLatestValidato /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest} request The + * @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest} request The * request proto * @param {?Object} metadata User defined * call metadata - * @return {!Promise} + * @return {!Promise} * Promise that resolves to the response */ -proto.cosmos.base.tendermint_1.v1beta1.ServicePromiseClient.prototype.getLatestValidatorSet = +proto.cosmos.base.tendermint.v1beta1.ServicePromiseClient.prototype.getLatestValidatorSet = function(request, metadata) { return this.client_.unaryCall(this.hostname_ + - '/cosmos.base.tendermint_1.v1beta1.Service/GetLatestValidatorSet', + '/cosmos.base.tendermint.v1beta1.Service/GetLatestValidatorSet', request, metadata || {}, methodDescriptor_Service_GetLatestValidatorSet); @@ -490,58 +490,58 @@ proto.cosmos.base.tendermint_1.v1beta1.ServicePromiseClient.prototype.getLatestV /** * @const * @type {!grpc.web.MethodDescriptor< - * !proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest, - * !proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse>} + * !proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest, + * !proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse>} */ const methodDescriptor_Service_GetValidatorSetByHeight = new grpc.web.MethodDescriptor( - '/cosmos.base.tendermint_1.v1beta1.Service/GetValidatorSetByHeight', + '/cosmos.base.tendermint.v1beta1.Service/GetValidatorSetByHeight', grpc.web.MethodType.UNARY, - proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest, - proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse, + proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest, + proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse, /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest} request + * @param {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest} request * @return {!Uint8Array} */ function(request) { return request.serializeBinary(); }, - proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.deserializeBinary + proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.deserializeBinary ); /** * @const * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest, - * !proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse>} + * !proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest, + * !proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse>} */ const methodInfo_Service_GetValidatorSetByHeight = new grpc.web.AbstractClientBase.MethodInfo( - proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse, + proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse, /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest} request + * @param {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest} request * @return {!Uint8Array} */ function(request) { return request.serializeBinary(); }, - proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.deserializeBinary + proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.deserializeBinary ); /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest} request The + * @param {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest} request The * request proto * @param {?Object} metadata User defined * call metadata - * @param {function(?grpc.web.Error, ?proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse)} + * @param {function(?grpc.web.Error, ?proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse)} * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} + * @return {!grpc.web.ClientReadableStream|undefined} * The XHR Node Readable Stream */ -proto.cosmos.base.tendermint_1.v1beta1.ServiceClient.prototype.getValidatorSetByHeight = +proto.cosmos.base.tendermint.v1beta1.ServiceClient.prototype.getValidatorSetByHeight = function(request, metadata, callback) { return this.client_.rpcCall(this.hostname_ + - '/cosmos.base.tendermint_1.v1beta1.Service/GetValidatorSetByHeight', + '/cosmos.base.tendermint.v1beta1.Service/GetValidatorSetByHeight', request, metadata || {}, methodDescriptor_Service_GetValidatorSetByHeight, @@ -550,22 +550,22 @@ proto.cosmos.base.tendermint_1.v1beta1.ServiceClient.prototype.getValidatorSetBy /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest} request The + * @param {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest} request The * request proto * @param {?Object} metadata User defined * call metadata - * @return {!Promise} + * @return {!Promise} * Promise that resolves to the response */ -proto.cosmos.base.tendermint_1.v1beta1.ServicePromiseClient.prototype.getValidatorSetByHeight = +proto.cosmos.base.tendermint.v1beta1.ServicePromiseClient.prototype.getValidatorSetByHeight = function(request, metadata) { return this.client_.unaryCall(this.hostname_ + - '/cosmos.base.tendermint_1.v1beta1.Service/GetValidatorSetByHeight', + '/cosmos.base.tendermint.v1beta1.Service/GetValidatorSetByHeight', request, metadata || {}, methodDescriptor_Service_GetValidatorSetByHeight); }; -module.exports = proto.cosmos.base.tendermint_1.v1beta1; +module.exports = proto.cosmos.base.tendermint.v1beta1; diff --git a/dist/src/types/proto-types/cosmos/base/tendermint/v1beta1/query_pb.js b/dist/src/types/proto-types/cosmos/base/tendermint/v1beta1/query_pb.js index 29fa9747..8e21cb19 100644 --- a/dist/src/types/proto-types/cosmos/base/tendermint/v1beta1/query_pb.js +++ b/dist/src/types/proto-types/cosmos/base/tendermint/v1beta1/query_pb.js @@ -26,21 +26,21 @@ var tendermint_types_types_pb = require('../../../../tendermint/types/types_pb.j goog.object.extend(proto, tendermint_types_types_pb); var cosmos_base_query_v1beta1_pagination_pb = require('../../../../cosmos/base/query/v1beta1/pagination_pb.js'); goog.object.extend(proto, cosmos_base_query_v1beta1_pagination_pb); -goog.exportSymbol('proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest', null, global); -goog.exportSymbol('proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse', null, global); -goog.exportSymbol('proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest', null, global); -goog.exportSymbol('proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse', null, global); -goog.exportSymbol('proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest', null, global); -goog.exportSymbol('proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse', null, global); -goog.exportSymbol('proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest', null, global); -goog.exportSymbol('proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse', null, global); -goog.exportSymbol('proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest', null, global); -goog.exportSymbol('proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse', null, global); -goog.exportSymbol('proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest', null, global); -goog.exportSymbol('proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse', null, global); -goog.exportSymbol('proto.cosmos.base.tendermint_1.v1beta1.Module', null, global); -goog.exportSymbol('proto.cosmos.base.tendermint_1.v1beta1.Validator', null, global); -goog.exportSymbol('proto.cosmos.base.tendermint_1.v1beta1.VersionInfo', null, global); +goog.exportSymbol('proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest', null, global); +goog.exportSymbol('proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse', null, global); +goog.exportSymbol('proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest', null, global); +goog.exportSymbol('proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse', null, global); +goog.exportSymbol('proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest', null, global); +goog.exportSymbol('proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse', null, global); +goog.exportSymbol('proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest', null, global); +goog.exportSymbol('proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse', null, global); +goog.exportSymbol('proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest', null, global); +goog.exportSymbol('proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse', null, global); +goog.exportSymbol('proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest', null, global); +goog.exportSymbol('proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse', null, global); +goog.exportSymbol('proto.cosmos.base.tendermint.v1beta1.Module', null, global); +goog.exportSymbol('proto.cosmos.base.tendermint.v1beta1.Validator', null, global); +goog.exportSymbol('proto.cosmos.base.tendermint.v1beta1.VersionInfo', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -51,16 +51,16 @@ goog.exportSymbol('proto.cosmos.base.tendermint_1.v1beta1.VersionInfo', null, gl * @extends {jspb.Message} * @constructor */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest = function(opt_data) { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest, jspb.Message); +goog.inherits(proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.displayName = 'proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest'; + proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.displayName = 'proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest'; } /** * Generated by JsPbCodeGenerator. @@ -72,16 +72,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.repeatedFields_, null); +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.repeatedFields_, null); }; -goog.inherits(proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse, jspb.Message); +goog.inherits(proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.displayName = 'proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse'; + proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.displayName = 'proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse'; } /** * Generated by JsPbCodeGenerator. @@ -93,16 +93,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest = function(opt_data) { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest, jspb.Message); +goog.inherits(proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest.displayName = 'proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest'; + proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.displayName = 'proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest'; } /** * Generated by JsPbCodeGenerator. @@ -114,16 +114,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.repeatedFields_, null); +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.repeatedFields_, null); }; -goog.inherits(proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse, jspb.Message); +goog.inherits(proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.displayName = 'proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse'; + proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.displayName = 'proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse'; } /** * Generated by JsPbCodeGenerator. @@ -135,16 +135,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.cosmos.base.tendermint_1.v1beta1.Validator = function(opt_data) { +proto.cosmos.base.tendermint.v1beta1.Validator = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.cosmos.base.tendermint_1.v1beta1.Validator, jspb.Message); +goog.inherits(proto.cosmos.base.tendermint.v1beta1.Validator, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.cosmos.base.tendermint_1.v1beta1.Validator.displayName = 'proto.cosmos.base.tendermint_1.v1beta1.Validator'; + proto.cosmos.base.tendermint.v1beta1.Validator.displayName = 'proto.cosmos.base.tendermint.v1beta1.Validator'; } /** * Generated by JsPbCodeGenerator. @@ -156,16 +156,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest = function(opt_data) { +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest, jspb.Message); +goog.inherits(proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest.displayName = 'proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest'; + proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest.displayName = 'proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest'; } /** * Generated by JsPbCodeGenerator. @@ -177,16 +177,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse = function(opt_data) { +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse, jspb.Message); +goog.inherits(proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.displayName = 'proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse'; + proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.displayName = 'proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse'; } /** * Generated by JsPbCodeGenerator. @@ -198,16 +198,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest = function(opt_data) { +proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest, jspb.Message); +goog.inherits(proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest.displayName = 'proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest'; + proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest.displayName = 'proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest'; } /** * Generated by JsPbCodeGenerator. @@ -219,16 +219,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse = function(opt_data) { +proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse, jspb.Message); +goog.inherits(proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.displayName = 'proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse'; + proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.displayName = 'proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse'; } /** * Generated by JsPbCodeGenerator. @@ -240,16 +240,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest = function(opt_data) { +proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest, jspb.Message); +goog.inherits(proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest.displayName = 'proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest'; + proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest.displayName = 'proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest'; } /** * Generated by JsPbCodeGenerator. @@ -261,16 +261,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse = function(opt_data) { +proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse, jspb.Message); +goog.inherits(proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse.displayName = 'proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse'; + proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse.displayName = 'proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse'; } /** * Generated by JsPbCodeGenerator. @@ -282,16 +282,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest = function(opt_data) { +proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest, jspb.Message); +goog.inherits(proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest.displayName = 'proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest'; + proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest.displayName = 'proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest'; } /** * Generated by JsPbCodeGenerator. @@ -303,16 +303,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse = function(opt_data) { +proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse, jspb.Message); +goog.inherits(proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.displayName = 'proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse'; + proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.displayName = 'proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse'; } /** * Generated by JsPbCodeGenerator. @@ -324,16 +324,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.repeatedFields_, null); +proto.cosmos.base.tendermint.v1beta1.VersionInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.base.tendermint.v1beta1.VersionInfo.repeatedFields_, null); }; -goog.inherits(proto.cosmos.base.tendermint_1.v1beta1.VersionInfo, jspb.Message); +goog.inherits(proto.cosmos.base.tendermint.v1beta1.VersionInfo, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.displayName = 'proto.cosmos.base.tendermint_1.v1beta1.VersionInfo'; + proto.cosmos.base.tendermint.v1beta1.VersionInfo.displayName = 'proto.cosmos.base.tendermint.v1beta1.VersionInfo'; } /** * Generated by JsPbCodeGenerator. @@ -345,16 +345,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.cosmos.base.tendermint_1.v1beta1.Module = function(opt_data) { +proto.cosmos.base.tendermint.v1beta1.Module = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.cosmos.base.tendermint_1.v1beta1.Module, jspb.Message); +goog.inherits(proto.cosmos.base.tendermint.v1beta1.Module, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.cosmos.base.tendermint_1.v1beta1.Module.displayName = 'proto.cosmos.base.tendermint_1.v1beta1.Module'; + proto.cosmos.base.tendermint.v1beta1.Module.displayName = 'proto.cosmos.base.tendermint.v1beta1.Module'; } @@ -372,8 +372,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.prototype.toObject = function(opt_includeInstance) { - return proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.toObject(opt_includeInstance, this); +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.prototype.toObject = function(opt_includeInstance) { + return proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.toObject(opt_includeInstance, this); }; @@ -382,11 +382,11 @@ proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.prototype. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest} msg The msg instance to transform. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.toObject = function(includeInstance, msg) { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.toObject = function(includeInstance, msg) { var f, obj = { height: jspb.Message.getFieldWithDefault(msg, 1, 0), pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageRequest.toObject(includeInstance, f) @@ -403,23 +403,23 @@ proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.toObject = /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest} */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.deserializeBinary = function(bytes) { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest; - return proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest; + return proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest} msg The message object to deserialize into. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest} */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -448,9 +448,9 @@ proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.deserializ * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.prototype.serializeBinary = function() { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.serializeBinaryToWriter(this, writer); + proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -458,11 +458,11 @@ proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.prototype. /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest} message + * @param {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.serializeBinaryToWriter = function(message, writer) { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getHeight(); if (f !== 0) { @@ -486,16 +486,16 @@ proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.serializeB * optional int64 height = 1; * @return {number} */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.prototype.getHeight = function() { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.prototype.getHeight = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.prototype.setHeight = function(value) { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.prototype.setHeight = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; @@ -504,7 +504,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.prototype. * optional cosmos.base.query.v1beta1.PageRequest pagination = 2; * @return {?proto.cosmos.base.query.v1beta1.PageRequest} */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.prototype.getPagination = function() { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.prototype.getPagination = function() { return /** @type{?proto.cosmos.base.query.v1beta1.PageRequest} */ ( jspb.Message.getWrapperField(this, cosmos_base_query_v1beta1_pagination_pb.PageRequest, 2)); }; @@ -512,18 +512,18 @@ proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.prototype. /** * @param {?proto.cosmos.base.query.v1beta1.PageRequest|undefined} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.prototype.setPagination = function(value) { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.prototype.setPagination = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.prototype.clearPagination = function() { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.prototype.clearPagination = function() { return this.setPagination(undefined); }; @@ -532,7 +532,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.prototype. * Returns whether this field is set. * @return {boolean} */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.prototype.hasPagination = function() { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.prototype.hasPagination = function() { return jspb.Message.getField(this, 2) != null; }; @@ -543,7 +543,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.prototype. * @private {!Array} * @const */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.repeatedFields_ = [2]; +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.repeatedFields_ = [2]; @@ -560,8 +560,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.prototype.toObject = function(opt_includeInstance) { - return proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.toObject(opt_includeInstance, this); +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.prototype.toObject = function(opt_includeInstance) { + return proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.toObject(opt_includeInstance, this); }; @@ -570,15 +570,15 @@ proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.prototype * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse} msg The msg instance to transform. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.toObject = function(includeInstance, msg) { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.toObject = function(includeInstance, msg) { var f, obj = { blockHeight: jspb.Message.getFieldWithDefault(msg, 1, 0), validatorsList: jspb.Message.toObjectList(msg.getValidatorsList(), - proto.cosmos.base.tendermint_1.v1beta1.Validator.toObject, includeInstance), + proto.cosmos.base.tendermint.v1beta1.Validator.toObject, includeInstance), pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageResponse.toObject(includeInstance, f) }; @@ -593,23 +593,23 @@ proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.toObject /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse} */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.deserializeBinary = function(bytes) { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse; - return proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse; + return proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse} msg The message object to deserialize into. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse} */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -621,8 +621,8 @@ proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.deseriali msg.setBlockHeight(value); break; case 2: - var value = new proto.cosmos.base.tendermint_1.v1beta1.Validator; - reader.readMessage(value,proto.cosmos.base.tendermint_1.v1beta1.Validator.deserializeBinaryFromReader); + var value = new proto.cosmos.base.tendermint.v1beta1.Validator; + reader.readMessage(value,proto.cosmos.base.tendermint.v1beta1.Validator.deserializeBinaryFromReader); msg.addValidators(value); break; case 3: @@ -643,9 +643,9 @@ proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.deseriali * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.prototype.serializeBinary = function() { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.serializeBinaryToWriter(this, writer); + proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -653,11 +653,11 @@ proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.prototype /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse} message + * @param {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.serializeBinaryToWriter = function(message, writer) { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getBlockHeight(); if (f !== 0) { @@ -671,7 +671,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.serialize writer.writeRepeatedMessage( 2, f, - proto.cosmos.base.tendermint_1.v1beta1.Validator.serializeBinaryToWriter + proto.cosmos.base.tendermint.v1beta1.Validator.serializeBinaryToWriter ); } f = message.getPagination(); @@ -689,54 +689,54 @@ proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.serialize * optional int64 block_height = 1; * @return {number} */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.prototype.getBlockHeight = function() { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.prototype.getBlockHeight = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.prototype.setBlockHeight = function(value) { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.prototype.setBlockHeight = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; /** * repeated Validator validators = 2; - * @return {!Array} + * @return {!Array} */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.prototype.getValidatorsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.cosmos.base.tendermint_1.v1beta1.Validator, 2)); +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.prototype.getValidatorsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.cosmos.base.tendermint.v1beta1.Validator, 2)); }; /** - * @param {!Array} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse} returns this + * @param {!Array} value + * @return {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.prototype.setValidatorsList = function(value) { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.prototype.setValidatorsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.Validator=} opt_value + * @param {!proto.cosmos.base.tendermint.v1beta1.Validator=} opt_value * @param {number=} opt_index - * @return {!proto.cosmos.base.tendermint_1.v1beta1.Validator} + * @return {!proto.cosmos.base.tendermint.v1beta1.Validator} */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.prototype.addValidators = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.cosmos.base.tendermint_1.v1beta1.Validator, opt_index); +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.prototype.addValidators = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.cosmos.base.tendermint.v1beta1.Validator, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.prototype.clearValidatorsList = function() { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.prototype.clearValidatorsList = function() { return this.setValidatorsList([]); }; @@ -745,7 +745,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.prototype * optional cosmos.base.query.v1beta1.PageResponse pagination = 3; * @return {?proto.cosmos.base.query.v1beta1.PageResponse} */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.prototype.getPagination = function() { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.prototype.getPagination = function() { return /** @type{?proto.cosmos.base.query.v1beta1.PageResponse} */ ( jspb.Message.getWrapperField(this, cosmos_base_query_v1beta1_pagination_pb.PageResponse, 3)); }; @@ -753,18 +753,18 @@ proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.prototype /** * @param {?proto.cosmos.base.query.v1beta1.PageResponse|undefined} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.prototype.setPagination = function(value) { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.prototype.setPagination = function(value) { return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.prototype.clearPagination = function() { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.prototype.clearPagination = function() { return this.setPagination(undefined); }; @@ -773,7 +773,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.prototype * Returns whether this field is set. * @return {boolean} */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.prototype.hasPagination = function() { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.prototype.hasPagination = function() { return jspb.Message.getField(this, 3) != null; }; @@ -794,8 +794,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest.prototype.toObject = function(opt_includeInstance) { - return proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest.toObject(opt_includeInstance, this); +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.prototype.toObject = function(opt_includeInstance) { + return proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.toObject(opt_includeInstance, this); }; @@ -804,11 +804,11 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest.prototype.to * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest} msg The msg instance to transform. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest.toObject = function(includeInstance, msg) { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.toObject = function(includeInstance, msg) { var f, obj = { pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageRequest.toObject(includeInstance, f) }; @@ -824,23 +824,23 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest.toObject = f /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest.deserializeBinary = function(bytes) { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest; - return proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest; + return proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest} msg The message object to deserialize into. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -865,9 +865,9 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest.deserializeB * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest.prototype.serializeBinary = function() { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest.serializeBinaryToWriter(this, writer); + proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -875,11 +875,11 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest.prototype.se /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest} message + * @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest.serializeBinaryToWriter = function(message, writer) { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getPagination(); if (f != null) { @@ -896,7 +896,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest.serializeBin * optional cosmos.base.query.v1beta1.PageRequest pagination = 1; * @return {?proto.cosmos.base.query.v1beta1.PageRequest} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest.prototype.getPagination = function() { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.prototype.getPagination = function() { return /** @type{?proto.cosmos.base.query.v1beta1.PageRequest} */ ( jspb.Message.getWrapperField(this, cosmos_base_query_v1beta1_pagination_pb.PageRequest, 1)); }; @@ -904,18 +904,18 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest.prototype.ge /** * @param {?proto.cosmos.base.query.v1beta1.PageRequest|undefined} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest.prototype.setPagination = function(value) { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.prototype.setPagination = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest.prototype.clearPagination = function() { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.prototype.clearPagination = function() { return this.setPagination(undefined); }; @@ -924,7 +924,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest.prototype.cl * Returns whether this field is set. * @return {boolean} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest.prototype.hasPagination = function() { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.prototype.hasPagination = function() { return jspb.Message.getField(this, 1) != null; }; @@ -935,7 +935,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest.prototype.ha * @private {!Array} * @const */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.repeatedFields_ = [2]; +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.repeatedFields_ = [2]; @@ -952,8 +952,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.prototype.toObject = function(opt_includeInstance) { - return proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.toObject(opt_includeInstance, this); +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.prototype.toObject = function(opt_includeInstance) { + return proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.toObject(opt_includeInstance, this); }; @@ -962,15 +962,15 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.prototype.t * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse} msg The msg instance to transform. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.toObject = function(includeInstance, msg) { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.toObject = function(includeInstance, msg) { var f, obj = { blockHeight: jspb.Message.getFieldWithDefault(msg, 1, 0), validatorsList: jspb.Message.toObjectList(msg.getValidatorsList(), - proto.cosmos.base.tendermint_1.v1beta1.Validator.toObject, includeInstance), + proto.cosmos.base.tendermint.v1beta1.Validator.toObject, includeInstance), pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageResponse.toObject(includeInstance, f) }; @@ -985,23 +985,23 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.toObject = /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.deserializeBinary = function(bytes) { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse; - return proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse; + return proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse} msg The message object to deserialize into. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -1013,8 +1013,8 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.deserialize msg.setBlockHeight(value); break; case 2: - var value = new proto.cosmos.base.tendermint_1.v1beta1.Validator; - reader.readMessage(value,proto.cosmos.base.tendermint_1.v1beta1.Validator.deserializeBinaryFromReader); + var value = new proto.cosmos.base.tendermint.v1beta1.Validator; + reader.readMessage(value,proto.cosmos.base.tendermint.v1beta1.Validator.deserializeBinaryFromReader); msg.addValidators(value); break; case 3: @@ -1035,9 +1035,9 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.deserialize * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.prototype.serializeBinary = function() { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.serializeBinaryToWriter(this, writer); + proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1045,11 +1045,11 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.prototype.s /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse} message + * @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.serializeBinaryToWriter = function(message, writer) { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getBlockHeight(); if (f !== 0) { @@ -1063,7 +1063,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.serializeBi writer.writeRepeatedMessage( 2, f, - proto.cosmos.base.tendermint_1.v1beta1.Validator.serializeBinaryToWriter + proto.cosmos.base.tendermint.v1beta1.Validator.serializeBinaryToWriter ); } f = message.getPagination(); @@ -1081,54 +1081,54 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.serializeBi * optional int64 block_height = 1; * @return {number} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.prototype.getBlockHeight = function() { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.prototype.getBlockHeight = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.prototype.setBlockHeight = function(value) { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.prototype.setBlockHeight = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; /** * repeated Validator validators = 2; - * @return {!Array} + * @return {!Array} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.prototype.getValidatorsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.cosmos.base.tendermint_1.v1beta1.Validator, 2)); +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.prototype.getValidatorsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.cosmos.base.tendermint.v1beta1.Validator, 2)); }; /** - * @param {!Array} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse} returns this + * @param {!Array} value + * @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.prototype.setValidatorsList = function(value) { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.prototype.setValidatorsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.Validator=} opt_value + * @param {!proto.cosmos.base.tendermint.v1beta1.Validator=} opt_value * @param {number=} opt_index - * @return {!proto.cosmos.base.tendermint_1.v1beta1.Validator} + * @return {!proto.cosmos.base.tendermint.v1beta1.Validator} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.prototype.addValidators = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.cosmos.base.tendermint_1.v1beta1.Validator, opt_index); +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.prototype.addValidators = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.cosmos.base.tendermint.v1beta1.Validator, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.prototype.clearValidatorsList = function() { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.prototype.clearValidatorsList = function() { return this.setValidatorsList([]); }; @@ -1137,7 +1137,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.prototype.c * optional cosmos.base.query.v1beta1.PageResponse pagination = 3; * @return {?proto.cosmos.base.query.v1beta1.PageResponse} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.prototype.getPagination = function() { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.prototype.getPagination = function() { return /** @type{?proto.cosmos.base.query.v1beta1.PageResponse} */ ( jspb.Message.getWrapperField(this, cosmos_base_query_v1beta1_pagination_pb.PageResponse, 3)); }; @@ -1145,18 +1145,18 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.prototype.g /** * @param {?proto.cosmos.base.query.v1beta1.PageResponse|undefined} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.prototype.setPagination = function(value) { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.prototype.setPagination = function(value) { return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.prototype.clearPagination = function() { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.prototype.clearPagination = function() { return this.setPagination(undefined); }; @@ -1165,7 +1165,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.prototype.c * Returns whether this field is set. * @return {boolean} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.prototype.hasPagination = function() { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.prototype.hasPagination = function() { return jspb.Message.getField(this, 3) != null; }; @@ -1186,8 +1186,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.cosmos.base.tendermint_1.v1beta1.Validator.prototype.toObject = function(opt_includeInstance) { - return proto.cosmos.base.tendermint_1.v1beta1.Validator.toObject(opt_includeInstance, this); +proto.cosmos.base.tendermint.v1beta1.Validator.prototype.toObject = function(opt_includeInstance) { + return proto.cosmos.base.tendermint.v1beta1.Validator.toObject(opt_includeInstance, this); }; @@ -1196,11 +1196,11 @@ proto.cosmos.base.tendermint_1.v1beta1.Validator.prototype.toObject = function(o * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.cosmos.base.tendermint_1.v1beta1.Validator} msg The msg instance to transform. + * @param {!proto.cosmos.base.tendermint.v1beta1.Validator} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.Validator.toObject = function(includeInstance, msg) { +proto.cosmos.base.tendermint.v1beta1.Validator.toObject = function(includeInstance, msg) { var f, obj = { address: jspb.Message.getFieldWithDefault(msg, 1, ""), pubKey: (f = msg.getPubKey()) && google_protobuf_any_pb.Any.toObject(includeInstance, f), @@ -1219,23 +1219,23 @@ proto.cosmos.base.tendermint_1.v1beta1.Validator.toObject = function(includeInst /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.Validator} + * @return {!proto.cosmos.base.tendermint.v1beta1.Validator} */ -proto.cosmos.base.tendermint_1.v1beta1.Validator.deserializeBinary = function(bytes) { +proto.cosmos.base.tendermint.v1beta1.Validator.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.cosmos.base.tendermint_1.v1beta1.Validator; - return proto.cosmos.base.tendermint_1.v1beta1.Validator.deserializeBinaryFromReader(msg, reader); + var msg = new proto.cosmos.base.tendermint.v1beta1.Validator; + return proto.cosmos.base.tendermint.v1beta1.Validator.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.Validator} msg The message object to deserialize into. + * @param {!proto.cosmos.base.tendermint.v1beta1.Validator} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.Validator} + * @return {!proto.cosmos.base.tendermint.v1beta1.Validator} */ -proto.cosmos.base.tendermint_1.v1beta1.Validator.deserializeBinaryFromReader = function(msg, reader) { +proto.cosmos.base.tendermint.v1beta1.Validator.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -1272,9 +1272,9 @@ proto.cosmos.base.tendermint_1.v1beta1.Validator.deserializeBinaryFromReader = f * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.cosmos.base.tendermint_1.v1beta1.Validator.prototype.serializeBinary = function() { +proto.cosmos.base.tendermint.v1beta1.Validator.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.cosmos.base.tendermint_1.v1beta1.Validator.serializeBinaryToWriter(this, writer); + proto.cosmos.base.tendermint.v1beta1.Validator.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1282,11 +1282,11 @@ proto.cosmos.base.tendermint_1.v1beta1.Validator.prototype.serializeBinary = fun /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.Validator} message + * @param {!proto.cosmos.base.tendermint.v1beta1.Validator} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.Validator.serializeBinaryToWriter = function(message, writer) { +proto.cosmos.base.tendermint.v1beta1.Validator.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getAddress(); if (f.length > 0) { @@ -1324,16 +1324,16 @@ proto.cosmos.base.tendermint_1.v1beta1.Validator.serializeBinaryToWriter = funct * optional string address = 1; * @return {string} */ -proto.cosmos.base.tendermint_1.v1beta1.Validator.prototype.getAddress = function() { +proto.cosmos.base.tendermint.v1beta1.Validator.prototype.getAddress = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.Validator} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.Validator} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.Validator.prototype.setAddress = function(value) { +proto.cosmos.base.tendermint.v1beta1.Validator.prototype.setAddress = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -1342,7 +1342,7 @@ proto.cosmos.base.tendermint_1.v1beta1.Validator.prototype.setAddress = function * optional google.protobuf.Any pub_key = 2; * @return {?proto.google.protobuf.Any} */ -proto.cosmos.base.tendermint_1.v1beta1.Validator.prototype.getPubKey = function() { +proto.cosmos.base.tendermint.v1beta1.Validator.prototype.getPubKey = function() { return /** @type{?proto.google.protobuf.Any} */ ( jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 2)); }; @@ -1350,18 +1350,18 @@ proto.cosmos.base.tendermint_1.v1beta1.Validator.prototype.getPubKey = function( /** * @param {?proto.google.protobuf.Any|undefined} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.Validator} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.Validator} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.Validator.prototype.setPubKey = function(value) { +proto.cosmos.base.tendermint.v1beta1.Validator.prototype.setPubKey = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.Validator} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.Validator} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.Validator.prototype.clearPubKey = function() { +proto.cosmos.base.tendermint.v1beta1.Validator.prototype.clearPubKey = function() { return this.setPubKey(undefined); }; @@ -1370,7 +1370,7 @@ proto.cosmos.base.tendermint_1.v1beta1.Validator.prototype.clearPubKey = functio * Returns whether this field is set. * @return {boolean} */ -proto.cosmos.base.tendermint_1.v1beta1.Validator.prototype.hasPubKey = function() { +proto.cosmos.base.tendermint.v1beta1.Validator.prototype.hasPubKey = function() { return jspb.Message.getField(this, 2) != null; }; @@ -1379,16 +1379,16 @@ proto.cosmos.base.tendermint_1.v1beta1.Validator.prototype.hasPubKey = function( * optional int64 voting_power = 3; * @return {number} */ -proto.cosmos.base.tendermint_1.v1beta1.Validator.prototype.getVotingPower = function() { +proto.cosmos.base.tendermint.v1beta1.Validator.prototype.getVotingPower = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** * @param {number} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.Validator} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.Validator} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.Validator.prototype.setVotingPower = function(value) { +proto.cosmos.base.tendermint.v1beta1.Validator.prototype.setVotingPower = function(value) { return jspb.Message.setProto3IntField(this, 3, value); }; @@ -1397,16 +1397,16 @@ proto.cosmos.base.tendermint_1.v1beta1.Validator.prototype.setVotingPower = func * optional int64 proposer_priority = 4; * @return {number} */ -proto.cosmos.base.tendermint_1.v1beta1.Validator.prototype.getProposerPriority = function() { +proto.cosmos.base.tendermint.v1beta1.Validator.prototype.getProposerPriority = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** * @param {number} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.Validator} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.Validator} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.Validator.prototype.setProposerPriority = function(value) { +proto.cosmos.base.tendermint.v1beta1.Validator.prototype.setProposerPriority = function(value) { return jspb.Message.setProto3IntField(this, 4, value); }; @@ -1427,8 +1427,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest.prototype.toObject = function(opt_includeInstance) { - return proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest.toObject(opt_includeInstance, this); +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest.prototype.toObject = function(opt_includeInstance) { + return proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest.toObject(opt_includeInstance, this); }; @@ -1437,11 +1437,11 @@ proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest.prototype.toObjec * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest} msg The msg instance to transform. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest.toObject = function(includeInstance, msg) { +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest.toObject = function(includeInstance, msg) { var f, obj = { height: jspb.Message.getFieldWithDefault(msg, 1, 0) }; @@ -1457,23 +1457,23 @@ proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest.toObject = functi /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest} */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest.deserializeBinary = function(bytes) { +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest; - return proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest; + return proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest} msg The message object to deserialize into. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest} */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -1497,9 +1497,9 @@ proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest.deserializeBinary * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest.prototype.serializeBinary = function() { +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest.serializeBinaryToWriter(this, writer); + proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1507,11 +1507,11 @@ proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest.prototype.seriali /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest} message + * @param {!proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest.serializeBinaryToWriter = function(message, writer) { +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getHeight(); if (f !== 0) { @@ -1527,16 +1527,16 @@ proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest.serializeBinaryTo * optional int64 height = 1; * @return {number} */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest.prototype.getHeight = function() { +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest.prototype.getHeight = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest.prototype.setHeight = function(value) { +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest.prototype.setHeight = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; @@ -1557,8 +1557,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.prototype.toObject = function(opt_includeInstance) { - return proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.toObject(opt_includeInstance, this); +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.prototype.toObject = function(opt_includeInstance) { + return proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.toObject(opt_includeInstance, this); }; @@ -1567,11 +1567,11 @@ proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.prototype.toObje * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse} msg The msg instance to transform. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.toObject = function(includeInstance, msg) { +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.toObject = function(includeInstance, msg) { var f, obj = { blockId: (f = msg.getBlockId()) && tendermint_types_types_pb.BlockID.toObject(includeInstance, f), block: (f = msg.getBlock()) && tendermint_types_block_pb.Block.toObject(includeInstance, f) @@ -1588,23 +1588,23 @@ proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.toObject = funct /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse} */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.deserializeBinary = function(bytes) { +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse; - return proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse; + return proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse} msg The message object to deserialize into. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse} */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -1634,9 +1634,9 @@ proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.deserializeBinar * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.prototype.serializeBinary = function() { +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.serializeBinaryToWriter(this, writer); + proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1644,11 +1644,11 @@ proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.prototype.serial /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse} message + * @param {!proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.serializeBinaryToWriter = function(message, writer) { +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getBlockId(); if (f != null) { @@ -1673,7 +1673,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.serializeBinaryT * optional tendermint.types.BlockID block_id = 1; * @return {?proto.tendermint.types.BlockID} */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.prototype.getBlockId = function() { +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.prototype.getBlockId = function() { return /** @type{?proto.tendermint.types.BlockID} */ ( jspb.Message.getWrapperField(this, tendermint_types_types_pb.BlockID, 1)); }; @@ -1681,18 +1681,18 @@ proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.prototype.getBlo /** * @param {?proto.tendermint.types.BlockID|undefined} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.prototype.setBlockId = function(value) { +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.prototype.setBlockId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.prototype.clearBlockId = function() { +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.prototype.clearBlockId = function() { return this.setBlockId(undefined); }; @@ -1701,7 +1701,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.prototype.clearB * Returns whether this field is set. * @return {boolean} */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.prototype.hasBlockId = function() { +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.prototype.hasBlockId = function() { return jspb.Message.getField(this, 1) != null; }; @@ -1710,7 +1710,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.prototype.hasBlo * optional tendermint.types.Block block = 2; * @return {?proto.tendermint.types.Block} */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.prototype.getBlock = function() { +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.prototype.getBlock = function() { return /** @type{?proto.tendermint.types.Block} */ ( jspb.Message.getWrapperField(this, tendermint_types_block_pb.Block, 2)); }; @@ -1718,18 +1718,18 @@ proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.prototype.getBlo /** * @param {?proto.tendermint.types.Block|undefined} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.prototype.setBlock = function(value) { +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.prototype.setBlock = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.prototype.clearBlock = function() { +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.prototype.clearBlock = function() { return this.setBlock(undefined); }; @@ -1738,7 +1738,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.prototype.clearB * Returns whether this field is set. * @return {boolean} */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.prototype.hasBlock = function() { +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.prototype.hasBlock = function() { return jspb.Message.getField(this, 2) != null; }; @@ -1759,8 +1759,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest.prototype.toObject = function(opt_includeInstance) { - return proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest.toObject(opt_includeInstance, this); +proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest.prototype.toObject = function(opt_includeInstance) { + return proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest.toObject(opt_includeInstance, this); }; @@ -1769,11 +1769,11 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest.prototype.toObject * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest} msg The msg instance to transform. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest.toObject = function(includeInstance, msg) { +proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest.toObject = function(includeInstance, msg) { var f, obj = { }; @@ -1789,23 +1789,23 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest.toObject = function /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest.deserializeBinary = function(bytes) { +proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest; - return proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest; + return proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest} msg The message object to deserialize into. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -1825,9 +1825,9 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest.deserializeBinaryFr * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest.prototype.serializeBinary = function() { +proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest.serializeBinaryToWriter(this, writer); + proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1835,11 +1835,11 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest.prototype.serialize /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest} message + * @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest.serializeBinaryToWriter = function(message, writer) { +proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; }; @@ -1860,8 +1860,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.prototype.toObject = function(opt_includeInstance) { - return proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.toObject(opt_includeInstance, this); +proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.prototype.toObject = function(opt_includeInstance) { + return proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.toObject(opt_includeInstance, this); }; @@ -1870,11 +1870,11 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.prototype.toObject * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse} msg The msg instance to transform. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.toObject = function(includeInstance, msg) { +proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.toObject = function(includeInstance, msg) { var f, obj = { blockId: (f = msg.getBlockId()) && tendermint_types_types_pb.BlockID.toObject(includeInstance, f), block: (f = msg.getBlock()) && tendermint_types_block_pb.Block.toObject(includeInstance, f) @@ -1891,23 +1891,23 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.toObject = functio /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.deserializeBinary = function(bytes) { +proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse; - return proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse; + return proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse} msg The message object to deserialize into. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -1937,9 +1937,9 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.deserializeBinaryF * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.prototype.serializeBinary = function() { +proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.serializeBinaryToWriter(this, writer); + proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1947,11 +1947,11 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.prototype.serializ /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse} message + * @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.serializeBinaryToWriter = function(message, writer) { +proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getBlockId(); if (f != null) { @@ -1976,7 +1976,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.serializeBinaryToW * optional tendermint.types.BlockID block_id = 1; * @return {?proto.tendermint.types.BlockID} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.prototype.getBlockId = function() { +proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.prototype.getBlockId = function() { return /** @type{?proto.tendermint.types.BlockID} */ ( jspb.Message.getWrapperField(this, tendermint_types_types_pb.BlockID, 1)); }; @@ -1984,18 +1984,18 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.prototype.getBlock /** * @param {?proto.tendermint.types.BlockID|undefined} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.prototype.setBlockId = function(value) { +proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.prototype.setBlockId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.prototype.clearBlockId = function() { +proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.prototype.clearBlockId = function() { return this.setBlockId(undefined); }; @@ -2004,7 +2004,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.prototype.clearBlo * Returns whether this field is set. * @return {boolean} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.prototype.hasBlockId = function() { +proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.prototype.hasBlockId = function() { return jspb.Message.getField(this, 1) != null; }; @@ -2013,7 +2013,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.prototype.hasBlock * optional tendermint.types.Block block = 2; * @return {?proto.tendermint.types.Block} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.prototype.getBlock = function() { +proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.prototype.getBlock = function() { return /** @type{?proto.tendermint.types.Block} */ ( jspb.Message.getWrapperField(this, tendermint_types_block_pb.Block, 2)); }; @@ -2021,18 +2021,18 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.prototype.getBlock /** * @param {?proto.tendermint.types.Block|undefined} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.prototype.setBlock = function(value) { +proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.prototype.setBlock = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.prototype.clearBlock = function() { +proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.prototype.clearBlock = function() { return this.setBlock(undefined); }; @@ -2041,7 +2041,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.prototype.clearBlo * Returns whether this field is set. * @return {boolean} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.prototype.hasBlock = function() { +proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.prototype.hasBlock = function() { return jspb.Message.getField(this, 2) != null; }; @@ -2062,8 +2062,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest.prototype.toObject = function(opt_includeInstance) { - return proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest.toObject(opt_includeInstance, this); +proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest.prototype.toObject = function(opt_includeInstance) { + return proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest.toObject(opt_includeInstance, this); }; @@ -2072,11 +2072,11 @@ proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest.prototype.toObject = fu * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest} msg The msg instance to transform. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest.toObject = function(includeInstance, msg) { +proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest.toObject = function(includeInstance, msg) { var f, obj = { }; @@ -2092,23 +2092,23 @@ proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest.toObject = function(inc /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest} */ -proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest.deserializeBinary = function(bytes) { +proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest; - return proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest; + return proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest} msg The message object to deserialize into. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest} */ -proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -2128,9 +2128,9 @@ proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest.deserializeBinaryFromRe * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest.prototype.serializeBinary = function() { +proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest.serializeBinaryToWriter(this, writer); + proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -2138,11 +2138,11 @@ proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest.prototype.serializeBina /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest} message + * @param {!proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest.serializeBinaryToWriter = function(message, writer) { +proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; }; @@ -2163,8 +2163,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse.prototype.toObject = function(opt_includeInstance) { - return proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse.toObject(opt_includeInstance, this); +proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse.prototype.toObject = function(opt_includeInstance) { + return proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse.toObject(opt_includeInstance, this); }; @@ -2173,11 +2173,11 @@ proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse.prototype.toObject = f * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse} msg The msg instance to transform. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse.toObject = function(includeInstance, msg) { +proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse.toObject = function(includeInstance, msg) { var f, obj = { syncing: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) }; @@ -2193,23 +2193,23 @@ proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse.toObject = function(in /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse} */ -proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse.deserializeBinary = function(bytes) { +proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse; - return proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse; + return proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse} msg The message object to deserialize into. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse} */ -proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -2233,9 +2233,9 @@ proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse.deserializeBinaryFromR * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse.prototype.serializeBinary = function() { +proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse.serializeBinaryToWriter(this, writer); + proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -2243,11 +2243,11 @@ proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse.prototype.serializeBin /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse} message + * @param {!proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse.serializeBinaryToWriter = function(message, writer) { +proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getSyncing(); if (f) { @@ -2263,16 +2263,16 @@ proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse.serializeBinaryToWrite * optional bool syncing = 1; * @return {boolean} */ -proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse.prototype.getSyncing = function() { +proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse.prototype.getSyncing = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); }; /** * @param {boolean} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse.prototype.setSyncing = function(value) { +proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse.prototype.setSyncing = function(value) { return jspb.Message.setProto3BooleanField(this, 1, value); }; @@ -2293,8 +2293,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest.prototype.toObject = function(opt_includeInstance) { - return proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest.toObject(opt_includeInstance, this); +proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest.prototype.toObject = function(opt_includeInstance) { + return proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest.toObject(opt_includeInstance, this); }; @@ -2303,11 +2303,11 @@ proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest.prototype.toObject = f * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest} msg The msg instance to transform. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest.toObject = function(includeInstance, msg) { +proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest.toObject = function(includeInstance, msg) { var f, obj = { }; @@ -2323,23 +2323,23 @@ proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest.toObject = function(in /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest} */ -proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest.deserializeBinary = function(bytes) { +proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest; - return proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest; + return proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest} msg The message object to deserialize into. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest} */ -proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -2359,9 +2359,9 @@ proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest.deserializeBinaryFromR * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest.prototype.serializeBinary = function() { +proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest.serializeBinaryToWriter(this, writer); + proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -2369,11 +2369,11 @@ proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest.prototype.serializeBin /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest} message + * @param {!proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest.serializeBinaryToWriter = function(message, writer) { +proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; }; @@ -2394,8 +2394,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.prototype.toObject = function(opt_includeInstance) { - return proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.toObject(opt_includeInstance, this); +proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.prototype.toObject = function(opt_includeInstance) { + return proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.toObject(opt_includeInstance, this); }; @@ -2404,14 +2404,14 @@ proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.prototype.toObject = * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse} msg The msg instance to transform. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.toObject = function(includeInstance, msg) { +proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.toObject = function(includeInstance, msg) { var f, obj = { defaultNodeInfo: (f = msg.getDefaultNodeInfo()) && tendermint_p2p_types_pb.DefaultNodeInfo.toObject(includeInstance, f), - applicationVersion: (f = msg.getApplicationVersion()) && proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.toObject(includeInstance, f) + applicationVersion: (f = msg.getApplicationVersion()) && proto.cosmos.base.tendermint.v1beta1.VersionInfo.toObject(includeInstance, f) }; if (includeInstance) { @@ -2425,23 +2425,23 @@ proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.toObject = function(i /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse} */ -proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.deserializeBinary = function(bytes) { +proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse; - return proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse; + return proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse} msg The message object to deserialize into. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse} */ -proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -2454,8 +2454,8 @@ proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.deserializeBinaryFrom msg.setDefaultNodeInfo(value); break; case 2: - var value = new proto.cosmos.base.tendermint_1.v1beta1.VersionInfo; - reader.readMessage(value,proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.deserializeBinaryFromReader); + var value = new proto.cosmos.base.tendermint.v1beta1.VersionInfo; + reader.readMessage(value,proto.cosmos.base.tendermint.v1beta1.VersionInfo.deserializeBinaryFromReader); msg.setApplicationVersion(value); break; default: @@ -2471,9 +2471,9 @@ proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.deserializeBinaryFrom * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.prototype.serializeBinary = function() { +proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.serializeBinaryToWriter(this, writer); + proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -2481,11 +2481,11 @@ proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.prototype.serializeBi /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse} message + * @param {!proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.serializeBinaryToWriter = function(message, writer) { +proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getDefaultNodeInfo(); if (f != null) { @@ -2500,7 +2500,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.serializeBinaryToWrit writer.writeMessage( 2, f, - proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.serializeBinaryToWriter + proto.cosmos.base.tendermint.v1beta1.VersionInfo.serializeBinaryToWriter ); } }; @@ -2510,7 +2510,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.serializeBinaryToWrit * optional tendermint.p2p.DefaultNodeInfo default_node_info = 1; * @return {?proto.tendermint.p2p.DefaultNodeInfo} */ -proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.prototype.getDefaultNodeInfo = function() { +proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.prototype.getDefaultNodeInfo = function() { return /** @type{?proto.tendermint.p2p.DefaultNodeInfo} */ ( jspb.Message.getWrapperField(this, tendermint_p2p_types_pb.DefaultNodeInfo, 1)); }; @@ -2518,18 +2518,18 @@ proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.prototype.getDefaultN /** * @param {?proto.tendermint.p2p.DefaultNodeInfo|undefined} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.prototype.setDefaultNodeInfo = function(value) { +proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.prototype.setDefaultNodeInfo = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.prototype.clearDefaultNodeInfo = function() { +proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.prototype.clearDefaultNodeInfo = function() { return this.setDefaultNodeInfo(undefined); }; @@ -2538,35 +2538,35 @@ proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.prototype.clearDefaul * Returns whether this field is set. * @return {boolean} */ -proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.prototype.hasDefaultNodeInfo = function() { +proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.prototype.hasDefaultNodeInfo = function() { return jspb.Message.getField(this, 1) != null; }; /** * optional VersionInfo application_version = 2; - * @return {?proto.cosmos.base.tendermint_1.v1beta1.VersionInfo} + * @return {?proto.cosmos.base.tendermint.v1beta1.VersionInfo} */ -proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.prototype.getApplicationVersion = function() { - return /** @type{?proto.cosmos.base.tendermint_1.v1beta1.VersionInfo} */ ( - jspb.Message.getWrapperField(this, proto.cosmos.base.tendermint_1.v1beta1.VersionInfo, 2)); +proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.prototype.getApplicationVersion = function() { + return /** @type{?proto.cosmos.base.tendermint.v1beta1.VersionInfo} */ ( + jspb.Message.getWrapperField(this, proto.cosmos.base.tendermint.v1beta1.VersionInfo, 2)); }; /** - * @param {?proto.cosmos.base.tendermint_1.v1beta1.VersionInfo|undefined} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse} returns this + * @param {?proto.cosmos.base.tendermint.v1beta1.VersionInfo|undefined} value + * @return {!proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.prototype.setApplicationVersion = function(value) { +proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.prototype.setApplicationVersion = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.prototype.clearApplicationVersion = function() { +proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.prototype.clearApplicationVersion = function() { return this.setApplicationVersion(undefined); }; @@ -2575,7 +2575,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.prototype.clearApplic * Returns whether this field is set. * @return {boolean} */ -proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.prototype.hasApplicationVersion = function() { +proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.prototype.hasApplicationVersion = function() { return jspb.Message.getField(this, 2) != null; }; @@ -2586,7 +2586,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.prototype.hasApplicat * @private {!Array} * @const */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.repeatedFields_ = [7]; +proto.cosmos.base.tendermint.v1beta1.VersionInfo.repeatedFields_ = [7]; @@ -2603,8 +2603,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.toObject = function(opt_includeInstance) { - return proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.toObject(opt_includeInstance, this); +proto.cosmos.base.tendermint.v1beta1.VersionInfo.prototype.toObject = function(opt_includeInstance) { + return proto.cosmos.base.tendermint.v1beta1.VersionInfo.toObject(opt_includeInstance, this); }; @@ -2613,11 +2613,11 @@ proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.toObject = function * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.cosmos.base.tendermint_1.v1beta1.VersionInfo} msg The msg instance to transform. + * @param {!proto.cosmos.base.tendermint.v1beta1.VersionInfo} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.toObject = function(includeInstance, msg) { +proto.cosmos.base.tendermint.v1beta1.VersionInfo.toObject = function(includeInstance, msg) { var f, obj = { name: jspb.Message.getFieldWithDefault(msg, 1, ""), appName: jspb.Message.getFieldWithDefault(msg, 2, ""), @@ -2626,7 +2626,7 @@ proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.toObject = function(includeIn buildTags: jspb.Message.getFieldWithDefault(msg, 5, ""), goVersion: jspb.Message.getFieldWithDefault(msg, 6, ""), buildDepsList: jspb.Message.toObjectList(msg.getBuildDepsList(), - proto.cosmos.base.tendermint_1.v1beta1.Module.toObject, includeInstance) + proto.cosmos.base.tendermint.v1beta1.Module.toObject, includeInstance) }; if (includeInstance) { @@ -2640,23 +2640,23 @@ proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.toObject = function(includeIn /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.VersionInfo} + * @return {!proto.cosmos.base.tendermint.v1beta1.VersionInfo} */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.deserializeBinary = function(bytes) { +proto.cosmos.base.tendermint.v1beta1.VersionInfo.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.cosmos.base.tendermint_1.v1beta1.VersionInfo; - return proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.deserializeBinaryFromReader(msg, reader); + var msg = new proto.cosmos.base.tendermint.v1beta1.VersionInfo; + return proto.cosmos.base.tendermint.v1beta1.VersionInfo.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.VersionInfo} msg The message object to deserialize into. + * @param {!proto.cosmos.base.tendermint.v1beta1.VersionInfo} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.VersionInfo} + * @return {!proto.cosmos.base.tendermint.v1beta1.VersionInfo} */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.deserializeBinaryFromReader = function(msg, reader) { +proto.cosmos.base.tendermint.v1beta1.VersionInfo.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -2688,8 +2688,8 @@ proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.deserializeBinaryFromReader = msg.setGoVersion(value); break; case 7: - var value = new proto.cosmos.base.tendermint_1.v1beta1.Module; - reader.readMessage(value,proto.cosmos.base.tendermint_1.v1beta1.Module.deserializeBinaryFromReader); + var value = new proto.cosmos.base.tendermint.v1beta1.Module; + reader.readMessage(value,proto.cosmos.base.tendermint.v1beta1.Module.deserializeBinaryFromReader); msg.addBuildDeps(value); break; default: @@ -2705,9 +2705,9 @@ proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.deserializeBinaryFromReader = * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.serializeBinary = function() { +proto.cosmos.base.tendermint.v1beta1.VersionInfo.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.serializeBinaryToWriter(this, writer); + proto.cosmos.base.tendermint.v1beta1.VersionInfo.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -2715,11 +2715,11 @@ proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.serializeBinary = f /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.VersionInfo} message + * @param {!proto.cosmos.base.tendermint.v1beta1.VersionInfo} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.serializeBinaryToWriter = function(message, writer) { +proto.cosmos.base.tendermint.v1beta1.VersionInfo.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getName(); if (f.length > 0) { @@ -2768,7 +2768,7 @@ proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.serializeBinaryToWriter = fun writer.writeRepeatedMessage( 7, f, - proto.cosmos.base.tendermint_1.v1beta1.Module.serializeBinaryToWriter + proto.cosmos.base.tendermint.v1beta1.Module.serializeBinaryToWriter ); } }; @@ -2778,16 +2778,16 @@ proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.serializeBinaryToWriter = fun * optional string name = 1; * @return {string} */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.getName = function() { +proto.cosmos.base.tendermint.v1beta1.VersionInfo.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.VersionInfo} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.VersionInfo} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.setName = function(value) { +proto.cosmos.base.tendermint.v1beta1.VersionInfo.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -2796,16 +2796,16 @@ proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.setName = function( * optional string app_name = 2; * @return {string} */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.getAppName = function() { +proto.cosmos.base.tendermint.v1beta1.VersionInfo.prototype.getAppName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.VersionInfo} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.VersionInfo} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.setAppName = function(value) { +proto.cosmos.base.tendermint.v1beta1.VersionInfo.prototype.setAppName = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; @@ -2814,16 +2814,16 @@ proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.setAppName = functi * optional string version = 3; * @return {string} */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.getVersion = function() { +proto.cosmos.base.tendermint.v1beta1.VersionInfo.prototype.getVersion = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.VersionInfo} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.VersionInfo} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.setVersion = function(value) { +proto.cosmos.base.tendermint.v1beta1.VersionInfo.prototype.setVersion = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; @@ -2832,16 +2832,16 @@ proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.setVersion = functi * optional string git_commit = 4; * @return {string} */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.getGitCommit = function() { +proto.cosmos.base.tendermint.v1beta1.VersionInfo.prototype.getGitCommit = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.VersionInfo} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.VersionInfo} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.setGitCommit = function(value) { +proto.cosmos.base.tendermint.v1beta1.VersionInfo.prototype.setGitCommit = function(value) { return jspb.Message.setProto3StringField(this, 4, value); }; @@ -2850,16 +2850,16 @@ proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.setGitCommit = func * optional string build_tags = 5; * @return {string} */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.getBuildTags = function() { +proto.cosmos.base.tendermint.v1beta1.VersionInfo.prototype.getBuildTags = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** * @param {string} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.VersionInfo} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.VersionInfo} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.setBuildTags = function(value) { +proto.cosmos.base.tendermint.v1beta1.VersionInfo.prototype.setBuildTags = function(value) { return jspb.Message.setProto3StringField(this, 5, value); }; @@ -2868,54 +2868,54 @@ proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.setBuildTags = func * optional string go_version = 6; * @return {string} */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.getGoVersion = function() { +proto.cosmos.base.tendermint.v1beta1.VersionInfo.prototype.getGoVersion = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** * @param {string} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.VersionInfo} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.VersionInfo} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.setGoVersion = function(value) { +proto.cosmos.base.tendermint.v1beta1.VersionInfo.prototype.setGoVersion = function(value) { return jspb.Message.setProto3StringField(this, 6, value); }; /** * repeated Module build_deps = 7; - * @return {!Array} + * @return {!Array} */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.getBuildDepsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.cosmos.base.tendermint_1.v1beta1.Module, 7)); +proto.cosmos.base.tendermint.v1beta1.VersionInfo.prototype.getBuildDepsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.cosmos.base.tendermint.v1beta1.Module, 7)); }; /** - * @param {!Array} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.VersionInfo} returns this + * @param {!Array} value + * @return {!proto.cosmos.base.tendermint.v1beta1.VersionInfo} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.setBuildDepsList = function(value) { +proto.cosmos.base.tendermint.v1beta1.VersionInfo.prototype.setBuildDepsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 7, value); }; /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.Module=} opt_value + * @param {!proto.cosmos.base.tendermint.v1beta1.Module=} opt_value * @param {number=} opt_index - * @return {!proto.cosmos.base.tendermint_1.v1beta1.Module} + * @return {!proto.cosmos.base.tendermint.v1beta1.Module} */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.addBuildDeps = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.cosmos.base.tendermint_1.v1beta1.Module, opt_index); +proto.cosmos.base.tendermint.v1beta1.VersionInfo.prototype.addBuildDeps = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.cosmos.base.tendermint.v1beta1.Module, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.VersionInfo} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.VersionInfo} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.clearBuildDepsList = function() { +proto.cosmos.base.tendermint.v1beta1.VersionInfo.prototype.clearBuildDepsList = function() { return this.setBuildDepsList([]); }; @@ -2936,8 +2936,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.cosmos.base.tendermint_1.v1beta1.Module.prototype.toObject = function(opt_includeInstance) { - return proto.cosmos.base.tendermint_1.v1beta1.Module.toObject(opt_includeInstance, this); +proto.cosmos.base.tendermint.v1beta1.Module.prototype.toObject = function(opt_includeInstance) { + return proto.cosmos.base.tendermint.v1beta1.Module.toObject(opt_includeInstance, this); }; @@ -2946,11 +2946,11 @@ proto.cosmos.base.tendermint_1.v1beta1.Module.prototype.toObject = function(opt_ * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.cosmos.base.tendermint_1.v1beta1.Module} msg The msg instance to transform. + * @param {!proto.cosmos.base.tendermint.v1beta1.Module} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.Module.toObject = function(includeInstance, msg) { +proto.cosmos.base.tendermint.v1beta1.Module.toObject = function(includeInstance, msg) { var f, obj = { path: jspb.Message.getFieldWithDefault(msg, 1, ""), version: jspb.Message.getFieldWithDefault(msg, 2, ""), @@ -2968,23 +2968,23 @@ proto.cosmos.base.tendermint_1.v1beta1.Module.toObject = function(includeInstanc /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.Module} + * @return {!proto.cosmos.base.tendermint.v1beta1.Module} */ -proto.cosmos.base.tendermint_1.v1beta1.Module.deserializeBinary = function(bytes) { +proto.cosmos.base.tendermint.v1beta1.Module.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.cosmos.base.tendermint_1.v1beta1.Module; - return proto.cosmos.base.tendermint_1.v1beta1.Module.deserializeBinaryFromReader(msg, reader); + var msg = new proto.cosmos.base.tendermint.v1beta1.Module; + return proto.cosmos.base.tendermint.v1beta1.Module.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.Module} msg The message object to deserialize into. + * @param {!proto.cosmos.base.tendermint.v1beta1.Module} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.Module} + * @return {!proto.cosmos.base.tendermint.v1beta1.Module} */ -proto.cosmos.base.tendermint_1.v1beta1.Module.deserializeBinaryFromReader = function(msg, reader) { +proto.cosmos.base.tendermint.v1beta1.Module.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -3016,9 +3016,9 @@ proto.cosmos.base.tendermint_1.v1beta1.Module.deserializeBinaryFromReader = func * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.cosmos.base.tendermint_1.v1beta1.Module.prototype.serializeBinary = function() { +proto.cosmos.base.tendermint.v1beta1.Module.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.cosmos.base.tendermint_1.v1beta1.Module.serializeBinaryToWriter(this, writer); + proto.cosmos.base.tendermint.v1beta1.Module.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -3026,11 +3026,11 @@ proto.cosmos.base.tendermint_1.v1beta1.Module.prototype.serializeBinary = functi /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.Module} message + * @param {!proto.cosmos.base.tendermint.v1beta1.Module} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.Module.serializeBinaryToWriter = function(message, writer) { +proto.cosmos.base.tendermint.v1beta1.Module.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getPath(); if (f.length > 0) { @@ -3060,16 +3060,16 @@ proto.cosmos.base.tendermint_1.v1beta1.Module.serializeBinaryToWriter = function * optional string path = 1; * @return {string} */ -proto.cosmos.base.tendermint_1.v1beta1.Module.prototype.getPath = function() { +proto.cosmos.base.tendermint.v1beta1.Module.prototype.getPath = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.Module} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.Module} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.Module.prototype.setPath = function(value) { +proto.cosmos.base.tendermint.v1beta1.Module.prototype.setPath = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -3078,16 +3078,16 @@ proto.cosmos.base.tendermint_1.v1beta1.Module.prototype.setPath = function(value * optional string version = 2; * @return {string} */ -proto.cosmos.base.tendermint_1.v1beta1.Module.prototype.getVersion = function() { +proto.cosmos.base.tendermint.v1beta1.Module.prototype.getVersion = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.Module} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.Module} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.Module.prototype.setVersion = function(value) { +proto.cosmos.base.tendermint.v1beta1.Module.prototype.setVersion = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; @@ -3096,18 +3096,18 @@ proto.cosmos.base.tendermint_1.v1beta1.Module.prototype.setVersion = function(va * optional string sum = 3; * @return {string} */ -proto.cosmos.base.tendermint_1.v1beta1.Module.prototype.getSum = function() { +proto.cosmos.base.tendermint.v1beta1.Module.prototype.getSum = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.Module} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.Module} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.Module.prototype.setSum = function(value) { +proto.cosmos.base.tendermint.v1beta1.Module.prototype.setSum = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; -goog.object.extend(exports, proto.cosmos.base.tendermint_1.v1beta1); +goog.object.extend(exports, proto.cosmos.base.tendermint.v1beta1); diff --git a/dist/src/types/proto-types/cosmos/tx/v1beta1/service_pb.js b/dist/src/types/proto-types/cosmos/tx/v1beta1/service_pb.js index 5152870c..f73e1e86 100644 --- a/dist/src/types/proto-types/cosmos/tx/v1beta1/service_pb.js +++ b/dist/src/types/proto-types/cosmos/tx/v1beta1/service_pb.js @@ -29,6 +29,7 @@ goog.exportSymbol('proto.cosmos.tx.v1beta1.GetTxRequest', null, global); goog.exportSymbol('proto.cosmos.tx.v1beta1.GetTxResponse', null, global); goog.exportSymbol('proto.cosmos.tx.v1beta1.GetTxsEventRequest', null, global); goog.exportSymbol('proto.cosmos.tx.v1beta1.GetTxsEventResponse', null, global); +goog.exportSymbol('proto.cosmos.tx.v1beta1.OrderBy', null, global); goog.exportSymbol('proto.cosmos.tx.v1beta1.SimulateRequest', null, global); goog.exportSymbol('proto.cosmos.tx.v1beta1.SimulateResponse', null, global); /** @@ -239,7 +240,8 @@ proto.cosmos.tx.v1beta1.GetTxsEventRequest.prototype.toObject = function(opt_inc proto.cosmos.tx.v1beta1.GetTxsEventRequest.toObject = function(includeInstance, msg) { var f, obj = { eventsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f, - pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageRequest.toObject(includeInstance, f) + pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageRequest.toObject(includeInstance, f), + orderBy: jspb.Message.getFieldWithDefault(msg, 3, 0) }; if (includeInstance) { @@ -285,6 +287,10 @@ proto.cosmos.tx.v1beta1.GetTxsEventRequest.deserializeBinaryFromReader = functio reader.readMessage(value,cosmos_base_query_v1beta1_pagination_pb.PageRequest.deserializeBinaryFromReader); msg.setPagination(value); break; + case 3: + var value = /** @type {!proto.cosmos.tx.v1beta1.OrderBy} */ (reader.readEnum()); + msg.setOrderBy(value); + break; default: reader.skipField(); break; @@ -329,6 +335,13 @@ proto.cosmos.tx.v1beta1.GetTxsEventRequest.serializeBinaryToWriter = function(me cosmos_base_query_v1beta1_pagination_pb.PageRequest.serializeBinaryToWriter ); } + f = message.getOrderBy(); + if (f !== 0.0) { + writer.writeEnum( + 3, + f + ); + } }; @@ -406,6 +419,24 @@ proto.cosmos.tx.v1beta1.GetTxsEventRequest.prototype.hasPagination = function() }; +/** + * optional OrderBy order_by = 3; + * @return {!proto.cosmos.tx.v1beta1.OrderBy} + */ +proto.cosmos.tx.v1beta1.GetTxsEventRequest.prototype.getOrderBy = function() { + return /** @type {!proto.cosmos.tx.v1beta1.OrderBy} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {!proto.cosmos.tx.v1beta1.OrderBy} value + * @return {!proto.cosmos.tx.v1beta1.GetTxsEventRequest} returns this + */ +proto.cosmos.tx.v1beta1.GetTxsEventRequest.prototype.setOrderBy = function(value) { + return jspb.Message.setProto3EnumField(this, 3, value); +}; + + /** * List of repeated fields within this message type. @@ -1690,6 +1721,15 @@ proto.cosmos.tx.v1beta1.GetTxResponse.prototype.hasTxResponse = function() { }; +/** + * @enum {number} + */ +proto.cosmos.tx.v1beta1.OrderBy = { + ORDER_BY_UNSPECIFIED: 0, + ORDER_BY_ASC: 1, + ORDER_BY_DESC: 2 +}; + /** * @enum {number} */ diff --git a/dist/src/types/proto-types/irismod/htlc/genesis_pb.js b/dist/src/types/proto-types/irismod/htlc/genesis_pb.js index 44c3dcdf..7e14d9a4 100644 --- a/dist/src/types/proto-types/irismod/htlc/genesis_pb.js +++ b/dist/src/types/proto-types/irismod/htlc/genesis_pb.js @@ -16,6 +16,8 @@ var gogoproto_gogo_pb = require('../../gogoproto/gogo_pb.js'); goog.object.extend(proto, gogoproto_gogo_pb); var irismod_htlc_htlc_pb = require('../../irismod/htlc/htlc_pb.js'); goog.object.extend(proto, irismod_htlc_htlc_pb); +var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); +goog.object.extend(proto, google_protobuf_timestamp_pb); goog.exportSymbol('proto.irismod.htlc.GenesisState', null, global); /** * Generated by JsPbCodeGenerator. @@ -28,7 +30,7 @@ goog.exportSymbol('proto.irismod.htlc.GenesisState', null, global); * @constructor */ proto.irismod.htlc.GenesisState = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); + jspb.Message.initialize(this, opt_data, 0, -1, proto.irismod.htlc.GenesisState.repeatedFields_, null); }; goog.inherits(proto.irismod.htlc.GenesisState, jspb.Message); if (goog.DEBUG && !COMPILED) { @@ -39,6 +41,13 @@ if (goog.DEBUG && !COMPILED) { proto.irismod.htlc.GenesisState.displayName = 'proto.irismod.htlc.GenesisState'; } +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.irismod.htlc.GenesisState.repeatedFields_ = [2,3]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -70,7 +79,12 @@ proto.irismod.htlc.GenesisState.prototype.toObject = function(opt_includeInstanc */ proto.irismod.htlc.GenesisState.toObject = function(includeInstance, msg) { var f, obj = { - pendingHtlcsMap: (f = msg.getPendingHtlcsMap()) ? f.toObject(includeInstance, proto.irismod.htlc.HTLC.toObject) : [] + params: (f = msg.getParams()) && irismod_htlc_htlc_pb.Params.toObject(includeInstance, f), + htlcsList: jspb.Message.toObjectList(msg.getHtlcsList(), + irismod_htlc_htlc_pb.HTLC.toObject, includeInstance), + suppliesList: jspb.Message.toObjectList(msg.getSuppliesList(), + irismod_htlc_htlc_pb.AssetSupply.toObject, includeInstance), + previousBlockTime: (f = msg.getPreviousBlockTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) }; if (includeInstance) { @@ -108,10 +122,24 @@ proto.irismod.htlc.GenesisState.deserializeBinaryFromReader = function(msg, read var field = reader.getFieldNumber(); switch (field) { case 1: - var value = msg.getPendingHtlcsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.irismod.htlc.HTLC.deserializeBinaryFromReader, "", new proto.irismod.htlc.HTLC()); - }); + var value = new irismod_htlc_htlc_pb.Params; + reader.readMessage(value,irismod_htlc_htlc_pb.Params.deserializeBinaryFromReader); + msg.setParams(value); + break; + case 2: + var value = new irismod_htlc_htlc_pb.HTLC; + reader.readMessage(value,irismod_htlc_htlc_pb.HTLC.deserializeBinaryFromReader); + msg.addHtlcs(value); + break; + case 3: + var value = new irismod_htlc_htlc_pb.AssetSupply; + reader.readMessage(value,irismod_htlc_htlc_pb.AssetSupply.deserializeBinaryFromReader); + msg.addSupplies(value); + break; + case 4: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setPreviousBlockTime(value); break; default: reader.skipField(); @@ -142,33 +170,189 @@ proto.irismod.htlc.GenesisState.prototype.serializeBinary = function() { */ proto.irismod.htlc.GenesisState.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getPendingHtlcsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.irismod.htlc.HTLC.serializeBinaryToWriter); + f = message.getParams(); + if (f != null) { + writer.writeMessage( + 1, + f, + irismod_htlc_htlc_pb.Params.serializeBinaryToWriter + ); } + f = message.getHtlcsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + irismod_htlc_htlc_pb.HTLC.serializeBinaryToWriter + ); + } + f = message.getSuppliesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + irismod_htlc_htlc_pb.AssetSupply.serializeBinaryToWriter + ); + } + f = message.getPreviousBlockTime(); + if (f != null) { + writer.writeMessage( + 4, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } +}; + + +/** + * optional Params params = 1; + * @return {?proto.irismod.htlc.Params} + */ +proto.irismod.htlc.GenesisState.prototype.getParams = function() { + return /** @type{?proto.irismod.htlc.Params} */ ( + jspb.Message.getWrapperField(this, irismod_htlc_htlc_pb.Params, 1)); +}; + + +/** + * @param {?proto.irismod.htlc.Params|undefined} value + * @return {!proto.irismod.htlc.GenesisState} returns this +*/ +proto.irismod.htlc.GenesisState.prototype.setParams = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.irismod.htlc.GenesisState} returns this + */ +proto.irismod.htlc.GenesisState.prototype.clearParams = function() { + return this.setParams(undefined); }; /** - * map pending_htlcs = 1; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} + * Returns whether this field is set. + * @return {boolean} */ -proto.irismod.htlc.GenesisState.prototype.getPendingHtlcsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 1, opt_noLazyCreate, - proto.irismod.htlc.HTLC)); +proto.irismod.htlc.GenesisState.prototype.hasParams = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * Clears values from the map. The map will be non-null. + * repeated HTLC htlcs = 2; + * @return {!Array} + */ +proto.irismod.htlc.GenesisState.prototype.getHtlcsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, irismod_htlc_htlc_pb.HTLC, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.irismod.htlc.GenesisState} returns this +*/ +proto.irismod.htlc.GenesisState.prototype.setHtlcsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.irismod.htlc.HTLC=} opt_value + * @param {number=} opt_index + * @return {!proto.irismod.htlc.HTLC} + */ +proto.irismod.htlc.GenesisState.prototype.addHtlcs = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.irismod.htlc.HTLC, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. * @return {!proto.irismod.htlc.GenesisState} returns this */ -proto.irismod.htlc.GenesisState.prototype.clearPendingHtlcsMap = function() { - this.getPendingHtlcsMap().clear(); - return this;}; +proto.irismod.htlc.GenesisState.prototype.clearHtlcsList = function() { + return this.setHtlcsList([]); +}; + + +/** + * repeated AssetSupply supplies = 3; + * @return {!Array} + */ +proto.irismod.htlc.GenesisState.prototype.getSuppliesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, irismod_htlc_htlc_pb.AssetSupply, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.irismod.htlc.GenesisState} returns this +*/ +proto.irismod.htlc.GenesisState.prototype.setSuppliesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.irismod.htlc.AssetSupply=} opt_value + * @param {number=} opt_index + * @return {!proto.irismod.htlc.AssetSupply} + */ +proto.irismod.htlc.GenesisState.prototype.addSupplies = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.irismod.htlc.AssetSupply, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.irismod.htlc.GenesisState} returns this + */ +proto.irismod.htlc.GenesisState.prototype.clearSuppliesList = function() { + return this.setSuppliesList([]); +}; + + +/** + * optional google.protobuf.Timestamp previous_block_time = 4; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.irismod.htlc.GenesisState.prototype.getPreviousBlockTime = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.irismod.htlc.GenesisState} returns this +*/ +proto.irismod.htlc.GenesisState.prototype.setPreviousBlockTime = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.irismod.htlc.GenesisState} returns this + */ +proto.irismod.htlc.GenesisState.prototype.clearPreviousBlockTime = function() { + return this.setPreviousBlockTime(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.irismod.htlc.GenesisState.prototype.hasPreviousBlockTime = function() { + return jspb.Message.getField(this, 4) != null; +}; goog.object.extend(exports, proto.irismod.htlc); diff --git a/dist/src/types/proto-types/irismod/htlc/htlc_pb.js b/dist/src/types/proto-types/irismod/htlc/htlc_pb.js index 9848300d..3da47f2a 100644 --- a/dist/src/types/proto-types/irismod/htlc/htlc_pb.js +++ b/dist/src/types/proto-types/irismod/htlc/htlc_pb.js @@ -16,8 +16,15 @@ var cosmos_base_v1beta1_coin_pb = require('../../cosmos/base/v1beta1/coin_pb.js' goog.object.extend(proto, cosmos_base_v1beta1_coin_pb); var gogoproto_gogo_pb = require('../../gogoproto/gogo_pb.js'); goog.object.extend(proto, gogoproto_gogo_pb); +var google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js'); +goog.object.extend(proto, google_protobuf_duration_pb); +goog.exportSymbol('proto.irismod.htlc.AssetParam', null, global); +goog.exportSymbol('proto.irismod.htlc.AssetSupply', null, global); goog.exportSymbol('proto.irismod.htlc.HTLC', null, global); goog.exportSymbol('proto.irismod.htlc.HTLCState', null, global); +goog.exportSymbol('proto.irismod.htlc.Params', null, global); +goog.exportSymbol('proto.irismod.htlc.SupplyLimit', null, global); +goog.exportSymbol('proto.irismod.htlc.SwapDirection', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -39,13 +46,97 @@ if (goog.DEBUG && !COMPILED) { */ proto.irismod.htlc.HTLC.displayName = 'proto.irismod.htlc.HTLC'; } +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.irismod.htlc.AssetSupply = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.irismod.htlc.AssetSupply, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.irismod.htlc.AssetSupply.displayName = 'proto.irismod.htlc.AssetSupply'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.irismod.htlc.Params = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.irismod.htlc.Params.repeatedFields_, null); +}; +goog.inherits(proto.irismod.htlc.Params, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.irismod.htlc.Params.displayName = 'proto.irismod.htlc.Params'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.irismod.htlc.AssetParam = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.irismod.htlc.AssetParam, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.irismod.htlc.AssetParam.displayName = 'proto.irismod.htlc.AssetParam'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.irismod.htlc.SupplyLimit = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.irismod.htlc.SupplyLimit, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.irismod.htlc.SupplyLimit.displayName = 'proto.irismod.htlc.SupplyLimit'; +} /** * List of repeated fields within this message type. * @private {!Array} * @const */ -proto.irismod.htlc.HTLC.repeatedFields_ = [4]; +proto.irismod.htlc.HTLC.repeatedFields_ = [6]; @@ -78,15 +169,21 @@ proto.irismod.htlc.HTLC.prototype.toObject = function(opt_includeInstance) { */ proto.irismod.htlc.HTLC.toObject = function(includeInstance, msg) { var f, obj = { - sender: jspb.Message.getFieldWithDefault(msg, 1, ""), - to: jspb.Message.getFieldWithDefault(msg, 2, ""), - receiverOnOtherChain: jspb.Message.getFieldWithDefault(msg, 3, ""), + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + sender: jspb.Message.getFieldWithDefault(msg, 2, ""), + to: jspb.Message.getFieldWithDefault(msg, 3, ""), + receiverOnOtherChain: jspb.Message.getFieldWithDefault(msg, 4, ""), + senderOnOtherChain: jspb.Message.getFieldWithDefault(msg, 5, ""), amountList: jspb.Message.toObjectList(msg.getAmountList(), cosmos_base_v1beta1_coin_pb.Coin.toObject, includeInstance), - secret: jspb.Message.getFieldWithDefault(msg, 5, ""), - timestamp: jspb.Message.getFieldWithDefault(msg, 6, 0), - expirationHeight: jspb.Message.getFieldWithDefault(msg, 7, 0), - state: jspb.Message.getFieldWithDefault(msg, 8, 0) + hashLock: jspb.Message.getFieldWithDefault(msg, 7, ""), + secret: jspb.Message.getFieldWithDefault(msg, 8, ""), + timestamp: jspb.Message.getFieldWithDefault(msg, 9, 0), + expirationHeight: jspb.Message.getFieldWithDefault(msg, 10, 0), + state: jspb.Message.getFieldWithDefault(msg, 11, 0), + closedBlock: jspb.Message.getFieldWithDefault(msg, 12, 0), + transfer: jspb.Message.getBooleanFieldWithDefault(msg, 13, false), + direction: jspb.Message.getFieldWithDefault(msg, 14, 0) }; if (includeInstance) { @@ -125,37 +222,61 @@ proto.irismod.htlc.HTLC.deserializeBinaryFromReader = function(msg, reader) { switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setSender(value); + msg.setId(value); break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setTo(value); + msg.setSender(value); break; case 3: var value = /** @type {string} */ (reader.readString()); - msg.setReceiverOnOtherChain(value); + msg.setTo(value); break; case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setReceiverOnOtherChain(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setSenderOnOtherChain(value); + break; + case 6: var value = new cosmos_base_v1beta1_coin_pb.Coin; reader.readMessage(value,cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); msg.addAmount(value); break; - case 5: + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setHashLock(value); + break; + case 8: var value = /** @type {string} */ (reader.readString()); msg.setSecret(value); break; - case 6: + case 9: var value = /** @type {number} */ (reader.readUint64()); msg.setTimestamp(value); break; - case 7: + case 10: var value = /** @type {number} */ (reader.readUint64()); msg.setExpirationHeight(value); break; - case 8: + case 11: var value = /** @type {!proto.irismod.htlc.HTLCState} */ (reader.readEnum()); msg.setState(value); break; + case 12: + var value = /** @type {number} */ (reader.readUint64()); + msg.setClosedBlock(value); + break; + case 13: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setTransfer(value); + break; + case 14: + var value = /** @type {!proto.irismod.htlc.SwapDirection} */ (reader.readEnum()); + msg.setDirection(value); + break; default: reader.skipField(); break; @@ -185,60 +306,102 @@ proto.irismod.htlc.HTLC.prototype.serializeBinary = function() { */ proto.irismod.htlc.HTLC.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getSender(); + f = message.getId(); if (f.length > 0) { writer.writeString( 1, f ); } - f = message.getTo(); + f = message.getSender(); if (f.length > 0) { writer.writeString( 2, f ); } - f = message.getReceiverOnOtherChain(); + f = message.getTo(); if (f.length > 0) { writer.writeString( 3, f ); } + f = message.getReceiverOnOtherChain(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getSenderOnOtherChain(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } f = message.getAmountList(); if (f.length > 0) { writer.writeRepeatedMessage( - 4, + 6, f, cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter ); } + f = message.getHashLock(); + if (f.length > 0) { + writer.writeString( + 7, + f + ); + } f = message.getSecret(); if (f.length > 0) { writer.writeString( - 5, + 8, f ); } f = message.getTimestamp(); if (f !== 0) { writer.writeUint64( - 6, + 9, f ); } f = message.getExpirationHeight(); if (f !== 0) { writer.writeUint64( - 7, + 10, f ); } f = message.getState(); if (f !== 0.0) { writer.writeEnum( - 8, + 11, + f + ); + } + f = message.getClosedBlock(); + if (f !== 0) { + writer.writeUint64( + 12, + f + ); + } + f = message.getTransfer(); + if (f) { + writer.writeBool( + 13, + f + ); + } + f = message.getDirection(); + if (f !== 0.0) { + writer.writeEnum( + 14, f ); } @@ -246,10 +409,10 @@ proto.irismod.htlc.HTLC.serializeBinaryToWriter = function(message, writer) { /** - * optional string sender = 1; + * optional string id = 1; * @return {string} */ -proto.irismod.htlc.HTLC.prototype.getSender = function() { +proto.irismod.htlc.HTLC.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; @@ -258,16 +421,16 @@ proto.irismod.htlc.HTLC.prototype.getSender = function() { * @param {string} value * @return {!proto.irismod.htlc.HTLC} returns this */ -proto.irismod.htlc.HTLC.prototype.setSender = function(value) { +proto.irismod.htlc.HTLC.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string to = 2; + * optional string sender = 2; * @return {string} */ -proto.irismod.htlc.HTLC.prototype.getTo = function() { +proto.irismod.htlc.HTLC.prototype.getSender = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; @@ -276,16 +439,16 @@ proto.irismod.htlc.HTLC.prototype.getTo = function() { * @param {string} value * @return {!proto.irismod.htlc.HTLC} returns this */ -proto.irismod.htlc.HTLC.prototype.setTo = function(value) { +proto.irismod.htlc.HTLC.prototype.setSender = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional string receiver_on_other_chain = 3; + * optional string to = 3; * @return {string} */ -proto.irismod.htlc.HTLC.prototype.getReceiverOnOtherChain = function() { +proto.irismod.htlc.HTLC.prototype.getTo = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; @@ -294,18 +457,54 @@ proto.irismod.htlc.HTLC.prototype.getReceiverOnOtherChain = function() { * @param {string} value * @return {!proto.irismod.htlc.HTLC} returns this */ -proto.irismod.htlc.HTLC.prototype.setReceiverOnOtherChain = function(value) { +proto.irismod.htlc.HTLC.prototype.setTo = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; /** - * repeated cosmos.base.v1beta1.Coin amount = 4; + * optional string receiver_on_other_chain = 4; + * @return {string} + */ +proto.irismod.htlc.HTLC.prototype.getReceiverOnOtherChain = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.irismod.htlc.HTLC} returns this + */ +proto.irismod.htlc.HTLC.prototype.setReceiverOnOtherChain = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional string sender_on_other_chain = 5; + * @return {string} + */ +proto.irismod.htlc.HTLC.prototype.getSenderOnOtherChain = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.irismod.htlc.HTLC} returns this + */ +proto.irismod.htlc.HTLC.prototype.setSenderOnOtherChain = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * repeated cosmos.base.v1beta1.Coin amount = 6; * @return {!Array} */ proto.irismod.htlc.HTLC.prototype.getAmountList = function() { return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 4)); + jspb.Message.getRepeatedWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 6)); }; @@ -314,7 +513,7 @@ proto.irismod.htlc.HTLC.prototype.getAmountList = function() { * @return {!proto.irismod.htlc.HTLC} returns this */ proto.irismod.htlc.HTLC.prototype.setAmountList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); + return jspb.Message.setRepeatedWrapperField(this, 6, value); }; @@ -324,7 +523,7 @@ proto.irismod.htlc.HTLC.prototype.setAmountList = function(value) { * @return {!proto.cosmos.base.v1beta1.Coin} */ proto.irismod.htlc.HTLC.prototype.addAmount = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.cosmos.base.v1beta1.Coin, opt_index); + return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.cosmos.base.v1beta1.Coin, opt_index); }; @@ -338,11 +537,29 @@ proto.irismod.htlc.HTLC.prototype.clearAmountList = function() { /** - * optional string secret = 5; + * optional string hash_lock = 7; + * @return {string} + */ +proto.irismod.htlc.HTLC.prototype.getHashLock = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + + +/** + * @param {string} value + * @return {!proto.irismod.htlc.HTLC} returns this + */ +proto.irismod.htlc.HTLC.prototype.setHashLock = function(value) { + return jspb.Message.setProto3StringField(this, 7, value); +}; + + +/** + * optional string secret = 8; * @return {string} */ proto.irismod.htlc.HTLC.prototype.getSecret = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); }; @@ -351,16 +568,16 @@ proto.irismod.htlc.HTLC.prototype.getSecret = function() { * @return {!proto.irismod.htlc.HTLC} returns this */ proto.irismod.htlc.HTLC.prototype.setSecret = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); + return jspb.Message.setProto3StringField(this, 8, value); }; /** - * optional uint64 timestamp = 6; + * optional uint64 timestamp = 9; * @return {number} */ proto.irismod.htlc.HTLC.prototype.getTimestamp = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); }; @@ -369,16 +586,16 @@ proto.irismod.htlc.HTLC.prototype.getTimestamp = function() { * @return {!proto.irismod.htlc.HTLC} returns this */ proto.irismod.htlc.HTLC.prototype.setTimestamp = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); + return jspb.Message.setProto3IntField(this, 9, value); }; /** - * optional uint64 expiration_height = 7; + * optional uint64 expiration_height = 10; * @return {number} */ proto.irismod.htlc.HTLC.prototype.getExpirationHeight = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); }; @@ -387,16 +604,16 @@ proto.irismod.htlc.HTLC.prototype.getExpirationHeight = function() { * @return {!proto.irismod.htlc.HTLC} returns this */ proto.irismod.htlc.HTLC.prototype.setExpirationHeight = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); + return jspb.Message.setProto3IntField(this, 10, value); }; /** - * optional HTLCState state = 8; + * optional HTLCState state = 11; * @return {!proto.irismod.htlc.HTLCState} */ proto.irismod.htlc.HTLC.prototype.getState = function() { - return /** @type {!proto.irismod.htlc.HTLCState} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); + return /** @type {!proto.irismod.htlc.HTLCState} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); }; @@ -405,18 +622,1227 @@ proto.irismod.htlc.HTLC.prototype.getState = function() { * @return {!proto.irismod.htlc.HTLC} returns this */ proto.irismod.htlc.HTLC.prototype.setState = function(value) { - return jspb.Message.setProto3EnumField(this, 8, value); + return jspb.Message.setProto3EnumField(this, 11, value); }; /** - * @enum {number} + * optional uint64 closed_block = 12; + * @return {number} */ -proto.irismod.htlc.HTLCState = { - HTLC_STATE_OPEN: 0, - HTLC_STATE_COMPLETED: 1, - HTLC_STATE_EXPIRED: 2, - HTLC_STATE_REFUNDED: 3 +proto.irismod.htlc.HTLC.prototype.getClosedBlock = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.irismod.htlc.HTLC} returns this + */ +proto.irismod.htlc.HTLC.prototype.setClosedBlock = function(value) { + return jspb.Message.setProto3IntField(this, 12, value); +}; + + +/** + * optional bool transfer = 13; + * @return {boolean} + */ +proto.irismod.htlc.HTLC.prototype.getTransfer = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 13, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.irismod.htlc.HTLC} returns this + */ +proto.irismod.htlc.HTLC.prototype.setTransfer = function(value) { + return jspb.Message.setProto3BooleanField(this, 13, value); +}; + + +/** + * optional SwapDirection direction = 14; + * @return {!proto.irismod.htlc.SwapDirection} + */ +proto.irismod.htlc.HTLC.prototype.getDirection = function() { + return /** @type {!proto.irismod.htlc.SwapDirection} */ (jspb.Message.getFieldWithDefault(this, 14, 0)); +}; + + +/** + * @param {!proto.irismod.htlc.SwapDirection} value + * @return {!proto.irismod.htlc.HTLC} returns this + */ +proto.irismod.htlc.HTLC.prototype.setDirection = function(value) { + return jspb.Message.setProto3EnumField(this, 14, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.irismod.htlc.AssetSupply.prototype.toObject = function(opt_includeInstance) { + return proto.irismod.htlc.AssetSupply.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.irismod.htlc.AssetSupply} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.irismod.htlc.AssetSupply.toObject = function(includeInstance, msg) { + var f, obj = { + incomingSupply: (f = msg.getIncomingSupply()) && cosmos_base_v1beta1_coin_pb.Coin.toObject(includeInstance, f), + outgoingSupply: (f = msg.getOutgoingSupply()) && cosmos_base_v1beta1_coin_pb.Coin.toObject(includeInstance, f), + currentSupply: (f = msg.getCurrentSupply()) && cosmos_base_v1beta1_coin_pb.Coin.toObject(includeInstance, f), + timeLimitedCurrentSupply: (f = msg.getTimeLimitedCurrentSupply()) && cosmos_base_v1beta1_coin_pb.Coin.toObject(includeInstance, f), + timeElapsed: (f = msg.getTimeElapsed()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.irismod.htlc.AssetSupply} + */ +proto.irismod.htlc.AssetSupply.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.irismod.htlc.AssetSupply; + return proto.irismod.htlc.AssetSupply.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.irismod.htlc.AssetSupply} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.irismod.htlc.AssetSupply} + */ +proto.irismod.htlc.AssetSupply.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new cosmos_base_v1beta1_coin_pb.Coin; + reader.readMessage(value,cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); + msg.setIncomingSupply(value); + break; + case 2: + var value = new cosmos_base_v1beta1_coin_pb.Coin; + reader.readMessage(value,cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); + msg.setOutgoingSupply(value); + break; + case 3: + var value = new cosmos_base_v1beta1_coin_pb.Coin; + reader.readMessage(value,cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); + msg.setCurrentSupply(value); + break; + case 4: + var value = new cosmos_base_v1beta1_coin_pb.Coin; + reader.readMessage(value,cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); + msg.setTimeLimitedCurrentSupply(value); + break; + case 5: + var value = new google_protobuf_duration_pb.Duration; + reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader); + msg.setTimeElapsed(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.irismod.htlc.AssetSupply.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.irismod.htlc.AssetSupply.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.irismod.htlc.AssetSupply} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.irismod.htlc.AssetSupply.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getIncomingSupply(); + if (f != null) { + writer.writeMessage( + 1, + f, + cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter + ); + } + f = message.getOutgoingSupply(); + if (f != null) { + writer.writeMessage( + 2, + f, + cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter + ); + } + f = message.getCurrentSupply(); + if (f != null) { + writer.writeMessage( + 3, + f, + cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter + ); + } + f = message.getTimeLimitedCurrentSupply(); + if (f != null) { + writer.writeMessage( + 4, + f, + cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter + ); + } + f = message.getTimeElapsed(); + if (f != null) { + writer.writeMessage( + 5, + f, + google_protobuf_duration_pb.Duration.serializeBinaryToWriter + ); + } +}; + + +/** + * optional cosmos.base.v1beta1.Coin incoming_supply = 1; + * @return {?proto.cosmos.base.v1beta1.Coin} + */ +proto.irismod.htlc.AssetSupply.prototype.getIncomingSupply = function() { + return /** @type{?proto.cosmos.base.v1beta1.Coin} */ ( + jspb.Message.getWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 1)); +}; + + +/** + * @param {?proto.cosmos.base.v1beta1.Coin|undefined} value + * @return {!proto.irismod.htlc.AssetSupply} returns this +*/ +proto.irismod.htlc.AssetSupply.prototype.setIncomingSupply = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.irismod.htlc.AssetSupply} returns this + */ +proto.irismod.htlc.AssetSupply.prototype.clearIncomingSupply = function() { + return this.setIncomingSupply(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.irismod.htlc.AssetSupply.prototype.hasIncomingSupply = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional cosmos.base.v1beta1.Coin outgoing_supply = 2; + * @return {?proto.cosmos.base.v1beta1.Coin} + */ +proto.irismod.htlc.AssetSupply.prototype.getOutgoingSupply = function() { + return /** @type{?proto.cosmos.base.v1beta1.Coin} */ ( + jspb.Message.getWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 2)); +}; + + +/** + * @param {?proto.cosmos.base.v1beta1.Coin|undefined} value + * @return {!proto.irismod.htlc.AssetSupply} returns this +*/ +proto.irismod.htlc.AssetSupply.prototype.setOutgoingSupply = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.irismod.htlc.AssetSupply} returns this + */ +proto.irismod.htlc.AssetSupply.prototype.clearOutgoingSupply = function() { + return this.setOutgoingSupply(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.irismod.htlc.AssetSupply.prototype.hasOutgoingSupply = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional cosmos.base.v1beta1.Coin current_supply = 3; + * @return {?proto.cosmos.base.v1beta1.Coin} + */ +proto.irismod.htlc.AssetSupply.prototype.getCurrentSupply = function() { + return /** @type{?proto.cosmos.base.v1beta1.Coin} */ ( + jspb.Message.getWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 3)); +}; + + +/** + * @param {?proto.cosmos.base.v1beta1.Coin|undefined} value + * @return {!proto.irismod.htlc.AssetSupply} returns this +*/ +proto.irismod.htlc.AssetSupply.prototype.setCurrentSupply = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.irismod.htlc.AssetSupply} returns this + */ +proto.irismod.htlc.AssetSupply.prototype.clearCurrentSupply = function() { + return this.setCurrentSupply(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.irismod.htlc.AssetSupply.prototype.hasCurrentSupply = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional cosmos.base.v1beta1.Coin time_limited_current_supply = 4; + * @return {?proto.cosmos.base.v1beta1.Coin} + */ +proto.irismod.htlc.AssetSupply.prototype.getTimeLimitedCurrentSupply = function() { + return /** @type{?proto.cosmos.base.v1beta1.Coin} */ ( + jspb.Message.getWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 4)); +}; + + +/** + * @param {?proto.cosmos.base.v1beta1.Coin|undefined} value + * @return {!proto.irismod.htlc.AssetSupply} returns this +*/ +proto.irismod.htlc.AssetSupply.prototype.setTimeLimitedCurrentSupply = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.irismod.htlc.AssetSupply} returns this + */ +proto.irismod.htlc.AssetSupply.prototype.clearTimeLimitedCurrentSupply = function() { + return this.setTimeLimitedCurrentSupply(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.irismod.htlc.AssetSupply.prototype.hasTimeLimitedCurrentSupply = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional google.protobuf.Duration time_elapsed = 5; + * @return {?proto.google.protobuf.Duration} + */ +proto.irismod.htlc.AssetSupply.prototype.getTimeElapsed = function() { + return /** @type{?proto.google.protobuf.Duration} */ ( + jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 5)); +}; + + +/** + * @param {?proto.google.protobuf.Duration|undefined} value + * @return {!proto.irismod.htlc.AssetSupply} returns this +*/ +proto.irismod.htlc.AssetSupply.prototype.setTimeElapsed = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.irismod.htlc.AssetSupply} returns this + */ +proto.irismod.htlc.AssetSupply.prototype.clearTimeElapsed = function() { + return this.setTimeElapsed(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.irismod.htlc.AssetSupply.prototype.hasTimeElapsed = function() { + return jspb.Message.getField(this, 5) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.irismod.htlc.Params.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.irismod.htlc.Params.prototype.toObject = function(opt_includeInstance) { + return proto.irismod.htlc.Params.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.irismod.htlc.Params} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.irismod.htlc.Params.toObject = function(includeInstance, msg) { + var f, obj = { + assetParamsList: jspb.Message.toObjectList(msg.getAssetParamsList(), + proto.irismod.htlc.AssetParam.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.irismod.htlc.Params} + */ +proto.irismod.htlc.Params.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.irismod.htlc.Params; + return proto.irismod.htlc.Params.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.irismod.htlc.Params} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.irismod.htlc.Params} + */ +proto.irismod.htlc.Params.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.irismod.htlc.AssetParam; + reader.readMessage(value,proto.irismod.htlc.AssetParam.deserializeBinaryFromReader); + msg.addAssetParams(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.irismod.htlc.Params.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.irismod.htlc.Params.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.irismod.htlc.Params} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.irismod.htlc.Params.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAssetParamsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.irismod.htlc.AssetParam.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated AssetParam asset_params = 1; + * @return {!Array} + */ +proto.irismod.htlc.Params.prototype.getAssetParamsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.irismod.htlc.AssetParam, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.irismod.htlc.Params} returns this +*/ +proto.irismod.htlc.Params.prototype.setAssetParamsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.irismod.htlc.AssetParam=} opt_value + * @param {number=} opt_index + * @return {!proto.irismod.htlc.AssetParam} + */ +proto.irismod.htlc.Params.prototype.addAssetParams = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.irismod.htlc.AssetParam, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.irismod.htlc.Params} returns this + */ +proto.irismod.htlc.Params.prototype.clearAssetParamsList = function() { + return this.setAssetParamsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.irismod.htlc.AssetParam.prototype.toObject = function(opt_includeInstance) { + return proto.irismod.htlc.AssetParam.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.irismod.htlc.AssetParam} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.irismod.htlc.AssetParam.toObject = function(includeInstance, msg) { + var f, obj = { + denom: jspb.Message.getFieldWithDefault(msg, 1, ""), + supplyLimit: (f = msg.getSupplyLimit()) && proto.irismod.htlc.SupplyLimit.toObject(includeInstance, f), + active: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + deputyAddress: jspb.Message.getFieldWithDefault(msg, 4, ""), + fixedFee: jspb.Message.getFieldWithDefault(msg, 5, ""), + minSwapAmount: jspb.Message.getFieldWithDefault(msg, 6, ""), + maxSwapAmount: jspb.Message.getFieldWithDefault(msg, 7, ""), + minBlockLock: jspb.Message.getFieldWithDefault(msg, 8, 0), + maxBlockLock: jspb.Message.getFieldWithDefault(msg, 9, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.irismod.htlc.AssetParam} + */ +proto.irismod.htlc.AssetParam.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.irismod.htlc.AssetParam; + return proto.irismod.htlc.AssetParam.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.irismod.htlc.AssetParam} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.irismod.htlc.AssetParam} + */ +proto.irismod.htlc.AssetParam.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setDenom(value); + break; + case 2: + var value = new proto.irismod.htlc.SupplyLimit; + reader.readMessage(value,proto.irismod.htlc.SupplyLimit.deserializeBinaryFromReader); + msg.setSupplyLimit(value); + break; + case 3: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setActive(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setDeputyAddress(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setFixedFee(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setMinSwapAmount(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setMaxSwapAmount(value); + break; + case 8: + var value = /** @type {number} */ (reader.readUint64()); + msg.setMinBlockLock(value); + break; + case 9: + var value = /** @type {number} */ (reader.readUint64()); + msg.setMaxBlockLock(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.irismod.htlc.AssetParam.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.irismod.htlc.AssetParam.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.irismod.htlc.AssetParam} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.irismod.htlc.AssetParam.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getDenom(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getSupplyLimit(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.irismod.htlc.SupplyLimit.serializeBinaryToWriter + ); + } + f = message.getActive(); + if (f) { + writer.writeBool( + 3, + f + ); + } + f = message.getDeputyAddress(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getFixedFee(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getMinSwapAmount(); + if (f.length > 0) { + writer.writeString( + 6, + f + ); + } + f = message.getMaxSwapAmount(); + if (f.length > 0) { + writer.writeString( + 7, + f + ); + } + f = message.getMinBlockLock(); + if (f !== 0) { + writer.writeUint64( + 8, + f + ); + } + f = message.getMaxBlockLock(); + if (f !== 0) { + writer.writeUint64( + 9, + f + ); + } +}; + + +/** + * optional string denom = 1; + * @return {string} + */ +proto.irismod.htlc.AssetParam.prototype.getDenom = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.irismod.htlc.AssetParam} returns this + */ +proto.irismod.htlc.AssetParam.prototype.setDenom = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional SupplyLimit supply_limit = 2; + * @return {?proto.irismod.htlc.SupplyLimit} + */ +proto.irismod.htlc.AssetParam.prototype.getSupplyLimit = function() { + return /** @type{?proto.irismod.htlc.SupplyLimit} */ ( + jspb.Message.getWrapperField(this, proto.irismod.htlc.SupplyLimit, 2)); +}; + + +/** + * @param {?proto.irismod.htlc.SupplyLimit|undefined} value + * @return {!proto.irismod.htlc.AssetParam} returns this +*/ +proto.irismod.htlc.AssetParam.prototype.setSupplyLimit = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.irismod.htlc.AssetParam} returns this + */ +proto.irismod.htlc.AssetParam.prototype.clearSupplyLimit = function() { + return this.setSupplyLimit(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.irismod.htlc.AssetParam.prototype.hasSupplyLimit = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional bool active = 3; + * @return {boolean} + */ +proto.irismod.htlc.AssetParam.prototype.getActive = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.irismod.htlc.AssetParam} returns this + */ +proto.irismod.htlc.AssetParam.prototype.setActive = function(value) { + return jspb.Message.setProto3BooleanField(this, 3, value); +}; + + +/** + * optional string deputy_address = 4; + * @return {string} + */ +proto.irismod.htlc.AssetParam.prototype.getDeputyAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.irismod.htlc.AssetParam} returns this + */ +proto.irismod.htlc.AssetParam.prototype.setDeputyAddress = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional string fixed_fee = 5; + * @return {string} + */ +proto.irismod.htlc.AssetParam.prototype.getFixedFee = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.irismod.htlc.AssetParam} returns this + */ +proto.irismod.htlc.AssetParam.prototype.setFixedFee = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * optional string min_swap_amount = 6; + * @return {string} + */ +proto.irismod.htlc.AssetParam.prototype.getMinSwapAmount = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * @param {string} value + * @return {!proto.irismod.htlc.AssetParam} returns this + */ +proto.irismod.htlc.AssetParam.prototype.setMinSwapAmount = function(value) { + return jspb.Message.setProto3StringField(this, 6, value); +}; + + +/** + * optional string max_swap_amount = 7; + * @return {string} + */ +proto.irismod.htlc.AssetParam.prototype.getMaxSwapAmount = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + + +/** + * @param {string} value + * @return {!proto.irismod.htlc.AssetParam} returns this + */ +proto.irismod.htlc.AssetParam.prototype.setMaxSwapAmount = function(value) { + return jspb.Message.setProto3StringField(this, 7, value); +}; + + +/** + * optional uint64 min_block_lock = 8; + * @return {number} + */ +proto.irismod.htlc.AssetParam.prototype.getMinBlockLock = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.irismod.htlc.AssetParam} returns this + */ +proto.irismod.htlc.AssetParam.prototype.setMinBlockLock = function(value) { + return jspb.Message.setProto3IntField(this, 8, value); +}; + + +/** + * optional uint64 max_block_lock = 9; + * @return {number} + */ +proto.irismod.htlc.AssetParam.prototype.getMaxBlockLock = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.irismod.htlc.AssetParam} returns this + */ +proto.irismod.htlc.AssetParam.prototype.setMaxBlockLock = function(value) { + return jspb.Message.setProto3IntField(this, 9, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.irismod.htlc.SupplyLimit.prototype.toObject = function(opt_includeInstance) { + return proto.irismod.htlc.SupplyLimit.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.irismod.htlc.SupplyLimit} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.irismod.htlc.SupplyLimit.toObject = function(includeInstance, msg) { + var f, obj = { + limit: jspb.Message.getFieldWithDefault(msg, 1, ""), + timeLimited: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + timePeriod: (f = msg.getTimePeriod()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f), + timeBasedLimit: jspb.Message.getFieldWithDefault(msg, 4, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.irismod.htlc.SupplyLimit} + */ +proto.irismod.htlc.SupplyLimit.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.irismod.htlc.SupplyLimit; + return proto.irismod.htlc.SupplyLimit.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.irismod.htlc.SupplyLimit} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.irismod.htlc.SupplyLimit} + */ +proto.irismod.htlc.SupplyLimit.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setLimit(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setTimeLimited(value); + break; + case 3: + var value = new google_protobuf_duration_pb.Duration; + reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader); + msg.setTimePeriod(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setTimeBasedLimit(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.irismod.htlc.SupplyLimit.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.irismod.htlc.SupplyLimit.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.irismod.htlc.SupplyLimit} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.irismod.htlc.SupplyLimit.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getLimit(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getTimeLimited(); + if (f) { + writer.writeBool( + 2, + f + ); + } + f = message.getTimePeriod(); + if (f != null) { + writer.writeMessage( + 3, + f, + google_protobuf_duration_pb.Duration.serializeBinaryToWriter + ); + } + f = message.getTimeBasedLimit(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } +}; + + +/** + * optional string limit = 1; + * @return {string} + */ +proto.irismod.htlc.SupplyLimit.prototype.getLimit = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.irismod.htlc.SupplyLimit} returns this + */ +proto.irismod.htlc.SupplyLimit.prototype.setLimit = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional bool time_limited = 2; + * @return {boolean} + */ +proto.irismod.htlc.SupplyLimit.prototype.getTimeLimited = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.irismod.htlc.SupplyLimit} returns this + */ +proto.irismod.htlc.SupplyLimit.prototype.setTimeLimited = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); +}; + + +/** + * optional google.protobuf.Duration time_period = 3; + * @return {?proto.google.protobuf.Duration} + */ +proto.irismod.htlc.SupplyLimit.prototype.getTimePeriod = function() { + return /** @type{?proto.google.protobuf.Duration} */ ( + jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 3)); +}; + + +/** + * @param {?proto.google.protobuf.Duration|undefined} value + * @return {!proto.irismod.htlc.SupplyLimit} returns this +*/ +proto.irismod.htlc.SupplyLimit.prototype.setTimePeriod = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.irismod.htlc.SupplyLimit} returns this + */ +proto.irismod.htlc.SupplyLimit.prototype.clearTimePeriod = function() { + return this.setTimePeriod(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.irismod.htlc.SupplyLimit.prototype.hasTimePeriod = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional string time_based_limit = 4; + * @return {string} + */ +proto.irismod.htlc.SupplyLimit.prototype.getTimeBasedLimit = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.irismod.htlc.SupplyLimit} returns this + */ +proto.irismod.htlc.SupplyLimit.prototype.setTimeBasedLimit = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * @enum {number} + */ +proto.irismod.htlc.HTLCState = { + HTLC_STATE_OPEN: 0, + HTLC_STATE_COMPLETED: 1, + HTLC_STATE_REFUNDED: 2 +}; + +/** + * @enum {number} + */ +proto.irismod.htlc.SwapDirection = { + NONE: 0, + INCOMING: 1, + OUTGOING: 2 }; goog.object.extend(exports, proto.irismod.htlc); diff --git a/dist/src/types/proto-types/irismod/htlc/query_grpc_web_pb.js b/dist/src/types/proto-types/irismod/htlc/query_grpc_web_pb.js index 96f0b129..1a54844b 100644 --- a/dist/src/types/proto-types/irismod/htlc/query_grpc_web_pb.js +++ b/dist/src/types/proto-types/irismod/htlc/query_grpc_web_pb.js @@ -18,6 +18,8 @@ grpc.web = require('grpc-web'); var google_api_annotations_pb = require('../../google/api/annotations_pb.js') +var gogoproto_gogo_pb = require('../../gogoproto/gogo_pb.js') + var irismod_htlc_htlc_pb = require('../../irismod/htlc/htlc_pb.js') const proto = {}; proto.irismod = {}; @@ -155,5 +157,245 @@ proto.irismod.htlc.QueryPromiseClient.prototype.hTLC = }; +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.irismod.htlc.QueryAssetSupplyRequest, + * !proto.irismod.htlc.QueryAssetSupplyResponse>} + */ +const methodDescriptor_Query_AssetSupply = new grpc.web.MethodDescriptor( + '/irismod.htlc.Query/AssetSupply', + grpc.web.MethodType.UNARY, + proto.irismod.htlc.QueryAssetSupplyRequest, + proto.irismod.htlc.QueryAssetSupplyResponse, + /** + * @param {!proto.irismod.htlc.QueryAssetSupplyRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.irismod.htlc.QueryAssetSupplyResponse.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.irismod.htlc.QueryAssetSupplyRequest, + * !proto.irismod.htlc.QueryAssetSupplyResponse>} + */ +const methodInfo_Query_AssetSupply = new grpc.web.AbstractClientBase.MethodInfo( + proto.irismod.htlc.QueryAssetSupplyResponse, + /** + * @param {!proto.irismod.htlc.QueryAssetSupplyRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.irismod.htlc.QueryAssetSupplyResponse.deserializeBinary +); + + +/** + * @param {!proto.irismod.htlc.QueryAssetSupplyRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.irismod.htlc.QueryAssetSupplyResponse)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.irismod.htlc.QueryClient.prototype.assetSupply = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/irismod.htlc.Query/AssetSupply', + request, + metadata || {}, + methodDescriptor_Query_AssetSupply, + callback); +}; + + +/** + * @param {!proto.irismod.htlc.QueryAssetSupplyRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.irismod.htlc.QueryPromiseClient.prototype.assetSupply = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/irismod.htlc.Query/AssetSupply', + request, + metadata || {}, + methodDescriptor_Query_AssetSupply); +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.irismod.htlc.QueryAssetSuppliesRequest, + * !proto.irismod.htlc.QueryAssetSuppliesResponse>} + */ +const methodDescriptor_Query_AssetSupplies = new grpc.web.MethodDescriptor( + '/irismod.htlc.Query/AssetSupplies', + grpc.web.MethodType.UNARY, + proto.irismod.htlc.QueryAssetSuppliesRequest, + proto.irismod.htlc.QueryAssetSuppliesResponse, + /** + * @param {!proto.irismod.htlc.QueryAssetSuppliesRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.irismod.htlc.QueryAssetSuppliesResponse.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.irismod.htlc.QueryAssetSuppliesRequest, + * !proto.irismod.htlc.QueryAssetSuppliesResponse>} + */ +const methodInfo_Query_AssetSupplies = new grpc.web.AbstractClientBase.MethodInfo( + proto.irismod.htlc.QueryAssetSuppliesResponse, + /** + * @param {!proto.irismod.htlc.QueryAssetSuppliesRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.irismod.htlc.QueryAssetSuppliesResponse.deserializeBinary +); + + +/** + * @param {!proto.irismod.htlc.QueryAssetSuppliesRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.irismod.htlc.QueryAssetSuppliesResponse)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.irismod.htlc.QueryClient.prototype.assetSupplies = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/irismod.htlc.Query/AssetSupplies', + request, + metadata || {}, + methodDescriptor_Query_AssetSupplies, + callback); +}; + + +/** + * @param {!proto.irismod.htlc.QueryAssetSuppliesRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.irismod.htlc.QueryPromiseClient.prototype.assetSupplies = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/irismod.htlc.Query/AssetSupplies', + request, + metadata || {}, + methodDescriptor_Query_AssetSupplies); +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.irismod.htlc.QueryParamsRequest, + * !proto.irismod.htlc.QueryParamsResponse>} + */ +const methodDescriptor_Query_Params = new grpc.web.MethodDescriptor( + '/irismod.htlc.Query/Params', + grpc.web.MethodType.UNARY, + proto.irismod.htlc.QueryParamsRequest, + proto.irismod.htlc.QueryParamsResponse, + /** + * @param {!proto.irismod.htlc.QueryParamsRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.irismod.htlc.QueryParamsResponse.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.irismod.htlc.QueryParamsRequest, + * !proto.irismod.htlc.QueryParamsResponse>} + */ +const methodInfo_Query_Params = new grpc.web.AbstractClientBase.MethodInfo( + proto.irismod.htlc.QueryParamsResponse, + /** + * @param {!proto.irismod.htlc.QueryParamsRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.irismod.htlc.QueryParamsResponse.deserializeBinary +); + + +/** + * @param {!proto.irismod.htlc.QueryParamsRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.irismod.htlc.QueryParamsResponse)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.irismod.htlc.QueryClient.prototype.params = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/irismod.htlc.Query/Params', + request, + metadata || {}, + methodDescriptor_Query_Params, + callback); +}; + + +/** + * @param {!proto.irismod.htlc.QueryParamsRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.irismod.htlc.QueryPromiseClient.prototype.params = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/irismod.htlc.Query/Params', + request, + metadata || {}, + methodDescriptor_Query_Params); +}; + + module.exports = proto.irismod.htlc; diff --git a/dist/src/types/proto-types/irismod/htlc/query_pb.js b/dist/src/types/proto-types/irismod/htlc/query_pb.js index 396104f1..4748c329 100644 --- a/dist/src/types/proto-types/irismod/htlc/query_pb.js +++ b/dist/src/types/proto-types/irismod/htlc/query_pb.js @@ -14,10 +14,18 @@ var global = Function('return this')(); var google_api_annotations_pb = require('../../google/api/annotations_pb.js'); goog.object.extend(proto, google_api_annotations_pb); +var gogoproto_gogo_pb = require('../../gogoproto/gogo_pb.js'); +goog.object.extend(proto, gogoproto_gogo_pb); var irismod_htlc_htlc_pb = require('../../irismod/htlc/htlc_pb.js'); goog.object.extend(proto, irismod_htlc_htlc_pb); +goog.exportSymbol('proto.irismod.htlc.QueryAssetSuppliesRequest', null, global); +goog.exportSymbol('proto.irismod.htlc.QueryAssetSuppliesResponse', null, global); +goog.exportSymbol('proto.irismod.htlc.QueryAssetSupplyRequest', null, global); +goog.exportSymbol('proto.irismod.htlc.QueryAssetSupplyResponse', null, global); goog.exportSymbol('proto.irismod.htlc.QueryHTLCRequest', null, global); goog.exportSymbol('proto.irismod.htlc.QueryHTLCResponse', null, global); +goog.exportSymbol('proto.irismod.htlc.QueryParamsRequest', null, global); +goog.exportSymbol('proto.irismod.htlc.QueryParamsResponse', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -60,6 +68,132 @@ if (goog.DEBUG && !COMPILED) { */ proto.irismod.htlc.QueryHTLCResponse.displayName = 'proto.irismod.htlc.QueryHTLCResponse'; } +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.irismod.htlc.QueryAssetSupplyRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.irismod.htlc.QueryAssetSupplyRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.irismod.htlc.QueryAssetSupplyRequest.displayName = 'proto.irismod.htlc.QueryAssetSupplyRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.irismod.htlc.QueryAssetSupplyResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.irismod.htlc.QueryAssetSupplyResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.irismod.htlc.QueryAssetSupplyResponse.displayName = 'proto.irismod.htlc.QueryAssetSupplyResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.irismod.htlc.QueryAssetSuppliesRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.irismod.htlc.QueryAssetSuppliesRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.irismod.htlc.QueryAssetSuppliesRequest.displayName = 'proto.irismod.htlc.QueryAssetSuppliesRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.irismod.htlc.QueryAssetSuppliesResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.irismod.htlc.QueryAssetSuppliesResponse.repeatedFields_, null); +}; +goog.inherits(proto.irismod.htlc.QueryAssetSuppliesResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.irismod.htlc.QueryAssetSuppliesResponse.displayName = 'proto.irismod.htlc.QueryAssetSuppliesResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.irismod.htlc.QueryParamsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.irismod.htlc.QueryParamsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.irismod.htlc.QueryParamsRequest.displayName = 'proto.irismod.htlc.QueryParamsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.irismod.htlc.QueryParamsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.irismod.htlc.QueryParamsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.irismod.htlc.QueryParamsResponse.displayName = 'proto.irismod.htlc.QueryParamsResponse'; +} @@ -92,7 +226,7 @@ proto.irismod.htlc.QueryHTLCRequest.prototype.toObject = function(opt_includeIns */ proto.irismod.htlc.QueryHTLCRequest.toObject = function(includeInstance, msg) { var f, obj = { - hashLock: jspb.Message.getFieldWithDefault(msg, 1, "") + id: jspb.Message.getFieldWithDefault(msg, 1, "") }; if (includeInstance) { @@ -131,7 +265,7 @@ proto.irismod.htlc.QueryHTLCRequest.deserializeBinaryFromReader = function(msg, switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setHashLock(value); + msg.setId(value); break; default: reader.skipField(); @@ -162,7 +296,7 @@ proto.irismod.htlc.QueryHTLCRequest.prototype.serializeBinary = function() { */ proto.irismod.htlc.QueryHTLCRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getHashLock(); + f = message.getId(); if (f.length > 0) { writer.writeString( 1, @@ -173,10 +307,10 @@ proto.irismod.htlc.QueryHTLCRequest.serializeBinaryToWriter = function(message, /** - * optional string hash_lock = 1; + * optional string id = 1; * @return {string} */ -proto.irismod.htlc.QueryHTLCRequest.prototype.getHashLock = function() { +proto.irismod.htlc.QueryHTLCRequest.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; @@ -185,7 +319,7 @@ proto.irismod.htlc.QueryHTLCRequest.prototype.getHashLock = function() { * @param {string} value * @return {!proto.irismod.htlc.QueryHTLCRequest} returns this */ -proto.irismod.htlc.QueryHTLCRequest.prototype.setHashLock = function(value) { +proto.irismod.htlc.QueryHTLCRequest.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -341,4 +475,798 @@ proto.irismod.htlc.QueryHTLCResponse.prototype.hasHtlc = function() { }; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.irismod.htlc.QueryAssetSupplyRequest.prototype.toObject = function(opt_includeInstance) { + return proto.irismod.htlc.QueryAssetSupplyRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.irismod.htlc.QueryAssetSupplyRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.irismod.htlc.QueryAssetSupplyRequest.toObject = function(includeInstance, msg) { + var f, obj = { + denom: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.irismod.htlc.QueryAssetSupplyRequest} + */ +proto.irismod.htlc.QueryAssetSupplyRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.irismod.htlc.QueryAssetSupplyRequest; + return proto.irismod.htlc.QueryAssetSupplyRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.irismod.htlc.QueryAssetSupplyRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.irismod.htlc.QueryAssetSupplyRequest} + */ +proto.irismod.htlc.QueryAssetSupplyRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setDenom(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.irismod.htlc.QueryAssetSupplyRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.irismod.htlc.QueryAssetSupplyRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.irismod.htlc.QueryAssetSupplyRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.irismod.htlc.QueryAssetSupplyRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getDenom(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string denom = 1; + * @return {string} + */ +proto.irismod.htlc.QueryAssetSupplyRequest.prototype.getDenom = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.irismod.htlc.QueryAssetSupplyRequest} returns this + */ +proto.irismod.htlc.QueryAssetSupplyRequest.prototype.setDenom = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.irismod.htlc.QueryAssetSupplyResponse.prototype.toObject = function(opt_includeInstance) { + return proto.irismod.htlc.QueryAssetSupplyResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.irismod.htlc.QueryAssetSupplyResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.irismod.htlc.QueryAssetSupplyResponse.toObject = function(includeInstance, msg) { + var f, obj = { + assetSupply: (f = msg.getAssetSupply()) && irismod_htlc_htlc_pb.AssetSupply.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.irismod.htlc.QueryAssetSupplyResponse} + */ +proto.irismod.htlc.QueryAssetSupplyResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.irismod.htlc.QueryAssetSupplyResponse; + return proto.irismod.htlc.QueryAssetSupplyResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.irismod.htlc.QueryAssetSupplyResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.irismod.htlc.QueryAssetSupplyResponse} + */ +proto.irismod.htlc.QueryAssetSupplyResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new irismod_htlc_htlc_pb.AssetSupply; + reader.readMessage(value,irismod_htlc_htlc_pb.AssetSupply.deserializeBinaryFromReader); + msg.setAssetSupply(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.irismod.htlc.QueryAssetSupplyResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.irismod.htlc.QueryAssetSupplyResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.irismod.htlc.QueryAssetSupplyResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.irismod.htlc.QueryAssetSupplyResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAssetSupply(); + if (f != null) { + writer.writeMessage( + 1, + f, + irismod_htlc_htlc_pb.AssetSupply.serializeBinaryToWriter + ); + } +}; + + +/** + * optional AssetSupply asset_supply = 1; + * @return {?proto.irismod.htlc.AssetSupply} + */ +proto.irismod.htlc.QueryAssetSupplyResponse.prototype.getAssetSupply = function() { + return /** @type{?proto.irismod.htlc.AssetSupply} */ ( + jspb.Message.getWrapperField(this, irismod_htlc_htlc_pb.AssetSupply, 1)); +}; + + +/** + * @param {?proto.irismod.htlc.AssetSupply|undefined} value + * @return {!proto.irismod.htlc.QueryAssetSupplyResponse} returns this +*/ +proto.irismod.htlc.QueryAssetSupplyResponse.prototype.setAssetSupply = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.irismod.htlc.QueryAssetSupplyResponse} returns this + */ +proto.irismod.htlc.QueryAssetSupplyResponse.prototype.clearAssetSupply = function() { + return this.setAssetSupply(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.irismod.htlc.QueryAssetSupplyResponse.prototype.hasAssetSupply = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.irismod.htlc.QueryAssetSuppliesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.irismod.htlc.QueryAssetSuppliesRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.irismod.htlc.QueryAssetSuppliesRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.irismod.htlc.QueryAssetSuppliesRequest.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.irismod.htlc.QueryAssetSuppliesRequest} + */ +proto.irismod.htlc.QueryAssetSuppliesRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.irismod.htlc.QueryAssetSuppliesRequest; + return proto.irismod.htlc.QueryAssetSuppliesRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.irismod.htlc.QueryAssetSuppliesRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.irismod.htlc.QueryAssetSuppliesRequest} + */ +proto.irismod.htlc.QueryAssetSuppliesRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.irismod.htlc.QueryAssetSuppliesRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.irismod.htlc.QueryAssetSuppliesRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.irismod.htlc.QueryAssetSuppliesRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.irismod.htlc.QueryAssetSuppliesRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.irismod.htlc.QueryAssetSuppliesResponse.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.irismod.htlc.QueryAssetSuppliesResponse.prototype.toObject = function(opt_includeInstance) { + return proto.irismod.htlc.QueryAssetSuppliesResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.irismod.htlc.QueryAssetSuppliesResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.irismod.htlc.QueryAssetSuppliesResponse.toObject = function(includeInstance, msg) { + var f, obj = { + assetSuppliesList: jspb.Message.toObjectList(msg.getAssetSuppliesList(), + irismod_htlc_htlc_pb.AssetSupply.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.irismod.htlc.QueryAssetSuppliesResponse} + */ +proto.irismod.htlc.QueryAssetSuppliesResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.irismod.htlc.QueryAssetSuppliesResponse; + return proto.irismod.htlc.QueryAssetSuppliesResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.irismod.htlc.QueryAssetSuppliesResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.irismod.htlc.QueryAssetSuppliesResponse} + */ +proto.irismod.htlc.QueryAssetSuppliesResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new irismod_htlc_htlc_pb.AssetSupply; + reader.readMessage(value,irismod_htlc_htlc_pb.AssetSupply.deserializeBinaryFromReader); + msg.addAssetSupplies(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.irismod.htlc.QueryAssetSuppliesResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.irismod.htlc.QueryAssetSuppliesResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.irismod.htlc.QueryAssetSuppliesResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.irismod.htlc.QueryAssetSuppliesResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAssetSuppliesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + irismod_htlc_htlc_pb.AssetSupply.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated AssetSupply asset_supplies = 1; + * @return {!Array} + */ +proto.irismod.htlc.QueryAssetSuppliesResponse.prototype.getAssetSuppliesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, irismod_htlc_htlc_pb.AssetSupply, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.irismod.htlc.QueryAssetSuppliesResponse} returns this +*/ +proto.irismod.htlc.QueryAssetSuppliesResponse.prototype.setAssetSuppliesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.irismod.htlc.AssetSupply=} opt_value + * @param {number=} opt_index + * @return {!proto.irismod.htlc.AssetSupply} + */ +proto.irismod.htlc.QueryAssetSuppliesResponse.prototype.addAssetSupplies = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.irismod.htlc.AssetSupply, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.irismod.htlc.QueryAssetSuppliesResponse} returns this + */ +proto.irismod.htlc.QueryAssetSuppliesResponse.prototype.clearAssetSuppliesList = function() { + return this.setAssetSuppliesList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.irismod.htlc.QueryParamsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.irismod.htlc.QueryParamsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.irismod.htlc.QueryParamsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.irismod.htlc.QueryParamsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.irismod.htlc.QueryParamsRequest} + */ +proto.irismod.htlc.QueryParamsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.irismod.htlc.QueryParamsRequest; + return proto.irismod.htlc.QueryParamsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.irismod.htlc.QueryParamsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.irismod.htlc.QueryParamsRequest} + */ +proto.irismod.htlc.QueryParamsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.irismod.htlc.QueryParamsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.irismod.htlc.QueryParamsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.irismod.htlc.QueryParamsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.irismod.htlc.QueryParamsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.irismod.htlc.QueryParamsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.irismod.htlc.QueryParamsResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.irismod.htlc.QueryParamsResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.irismod.htlc.QueryParamsResponse.toObject = function(includeInstance, msg) { + var f, obj = { + params: (f = msg.getParams()) && irismod_htlc_htlc_pb.Params.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.irismod.htlc.QueryParamsResponse} + */ +proto.irismod.htlc.QueryParamsResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.irismod.htlc.QueryParamsResponse; + return proto.irismod.htlc.QueryParamsResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.irismod.htlc.QueryParamsResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.irismod.htlc.QueryParamsResponse} + */ +proto.irismod.htlc.QueryParamsResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new irismod_htlc_htlc_pb.Params; + reader.readMessage(value,irismod_htlc_htlc_pb.Params.deserializeBinaryFromReader); + msg.setParams(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.irismod.htlc.QueryParamsResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.irismod.htlc.QueryParamsResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.irismod.htlc.QueryParamsResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.irismod.htlc.QueryParamsResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getParams(); + if (f != null) { + writer.writeMessage( + 1, + f, + irismod_htlc_htlc_pb.Params.serializeBinaryToWriter + ); + } +}; + + +/** + * optional Params params = 1; + * @return {?proto.irismod.htlc.Params} + */ +proto.irismod.htlc.QueryParamsResponse.prototype.getParams = function() { + return /** @type{?proto.irismod.htlc.Params} */ ( + jspb.Message.getWrapperField(this, irismod_htlc_htlc_pb.Params, 1)); +}; + + +/** + * @param {?proto.irismod.htlc.Params|undefined} value + * @return {!proto.irismod.htlc.QueryParamsResponse} returns this +*/ +proto.irismod.htlc.QueryParamsResponse.prototype.setParams = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.irismod.htlc.QueryParamsResponse} returns this + */ +proto.irismod.htlc.QueryParamsResponse.prototype.clearParams = function() { + return this.setParams(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.irismod.htlc.QueryParamsResponse.prototype.hasParams = function() { + return jspb.Message.getField(this, 1) != null; +}; + + goog.object.extend(exports, proto.irismod.htlc); diff --git a/dist/src/types/proto-types/irismod/htlc/tx_grpc_web_pb.js b/dist/src/types/proto-types/irismod/htlc/tx_grpc_web_pb.js index 177843c1..fa9c84e4 100644 --- a/dist/src/types/proto-types/irismod/htlc/tx_grpc_web_pb.js +++ b/dist/src/types/proto-types/irismod/htlc/tx_grpc_web_pb.js @@ -235,85 +235,5 @@ proto.irismod.htlc.MsgPromiseClient.prototype.claimHTLC = }; -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.irismod.htlc.MsgRefundHTLC, - * !proto.irismod.htlc.MsgRefundHTLCResponse>} - */ -const methodDescriptor_Msg_RefundHTLC = new grpc.web.MethodDescriptor( - '/irismod.htlc.Msg/RefundHTLC', - grpc.web.MethodType.UNARY, - proto.irismod.htlc.MsgRefundHTLC, - proto.irismod.htlc.MsgRefundHTLCResponse, - /** - * @param {!proto.irismod.htlc.MsgRefundHTLC} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.irismod.htlc.MsgRefundHTLCResponse.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.irismod.htlc.MsgRefundHTLC, - * !proto.irismod.htlc.MsgRefundHTLCResponse>} - */ -const methodInfo_Msg_RefundHTLC = new grpc.web.AbstractClientBase.MethodInfo( - proto.irismod.htlc.MsgRefundHTLCResponse, - /** - * @param {!proto.irismod.htlc.MsgRefundHTLC} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.irismod.htlc.MsgRefundHTLCResponse.deserializeBinary -); - - -/** - * @param {!proto.irismod.htlc.MsgRefundHTLC} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.irismod.htlc.MsgRefundHTLCResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.irismod.htlc.MsgClient.prototype.refundHTLC = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/irismod.htlc.Msg/RefundHTLC', - request, - metadata || {}, - methodDescriptor_Msg_RefundHTLC, - callback); -}; - - -/** - * @param {!proto.irismod.htlc.MsgRefundHTLC} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.irismod.htlc.MsgPromiseClient.prototype.refundHTLC = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/irismod.htlc.Msg/RefundHTLC', - request, - metadata || {}, - methodDescriptor_Msg_RefundHTLC); -}; - - module.exports = proto.irismod.htlc; diff --git a/dist/src/types/proto-types/irismod/htlc/tx_pb.js b/dist/src/types/proto-types/irismod/htlc/tx_pb.js index 96709c6c..d0792a25 100644 --- a/dist/src/types/proto-types/irismod/htlc/tx_pb.js +++ b/dist/src/types/proto-types/irismod/htlc/tx_pb.js @@ -20,8 +20,6 @@ goog.exportSymbol('proto.irismod.htlc.MsgClaimHTLC', null, global); goog.exportSymbol('proto.irismod.htlc.MsgClaimHTLCResponse', null, global); goog.exportSymbol('proto.irismod.htlc.MsgCreateHTLC', null, global); goog.exportSymbol('proto.irismod.htlc.MsgCreateHTLCResponse', null, global); -goog.exportSymbol('proto.irismod.htlc.MsgRefundHTLC', null, global); -goog.exportSymbol('proto.irismod.htlc.MsgRefundHTLCResponse', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -106,55 +104,13 @@ if (goog.DEBUG && !COMPILED) { */ proto.irismod.htlc.MsgClaimHTLCResponse.displayName = 'proto.irismod.htlc.MsgClaimHTLCResponse'; } -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.irismod.htlc.MsgRefundHTLC = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.irismod.htlc.MsgRefundHTLC, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.irismod.htlc.MsgRefundHTLC.displayName = 'proto.irismod.htlc.MsgRefundHTLC'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.irismod.htlc.MsgRefundHTLCResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.irismod.htlc.MsgRefundHTLCResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.irismod.htlc.MsgRefundHTLCResponse.displayName = 'proto.irismod.htlc.MsgRefundHTLCResponse'; -} /** * List of repeated fields within this message type. * @private {!Array} * @const */ -proto.irismod.htlc.MsgCreateHTLC.repeatedFields_ = [4]; +proto.irismod.htlc.MsgCreateHTLC.repeatedFields_ = [5]; @@ -190,11 +146,13 @@ proto.irismod.htlc.MsgCreateHTLC.toObject = function(includeInstance, msg) { sender: jspb.Message.getFieldWithDefault(msg, 1, ""), to: jspb.Message.getFieldWithDefault(msg, 2, ""), receiverOnOtherChain: jspb.Message.getFieldWithDefault(msg, 3, ""), + senderOnOtherChain: jspb.Message.getFieldWithDefault(msg, 4, ""), amountList: jspb.Message.toObjectList(msg.getAmountList(), cosmos_base_v1beta1_coin_pb.Coin.toObject, includeInstance), - hashLock: jspb.Message.getFieldWithDefault(msg, 5, ""), - timestamp: jspb.Message.getFieldWithDefault(msg, 6, 0), - timeLock: jspb.Message.getFieldWithDefault(msg, 7, 0) + hashLock: jspb.Message.getFieldWithDefault(msg, 6, ""), + timestamp: jspb.Message.getFieldWithDefault(msg, 7, 0), + timeLock: jspb.Message.getFieldWithDefault(msg, 8, 0), + transfer: jspb.Message.getBooleanFieldWithDefault(msg, 9, false) }; if (includeInstance) { @@ -244,22 +202,30 @@ proto.irismod.htlc.MsgCreateHTLC.deserializeBinaryFromReader = function(msg, rea msg.setReceiverOnOtherChain(value); break; case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setSenderOnOtherChain(value); + break; + case 5: var value = new cosmos_base_v1beta1_coin_pb.Coin; reader.readMessage(value,cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); msg.addAmount(value); break; - case 5: + case 6: var value = /** @type {string} */ (reader.readString()); msg.setHashLock(value); break; - case 6: + case 7: var value = /** @type {number} */ (reader.readUint64()); msg.setTimestamp(value); break; - case 7: + case 8: var value = /** @type {number} */ (reader.readUint64()); msg.setTimeLock(value); break; + case 9: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setTransfer(value); + break; default: reader.skipField(); break; @@ -310,10 +276,17 @@ proto.irismod.htlc.MsgCreateHTLC.serializeBinaryToWriter = function(message, wri f ); } + f = message.getSenderOnOtherChain(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } f = message.getAmountList(); if (f.length > 0) { writer.writeRepeatedMessage( - 4, + 5, f, cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter ); @@ -321,21 +294,28 @@ proto.irismod.htlc.MsgCreateHTLC.serializeBinaryToWriter = function(message, wri f = message.getHashLock(); if (f.length > 0) { writer.writeString( - 5, + 6, f ); } f = message.getTimestamp(); if (f !== 0) { writer.writeUint64( - 6, + 7, f ); } f = message.getTimeLock(); if (f !== 0) { writer.writeUint64( - 7, + 8, + f + ); + } + f = message.getTransfer(); + if (f) { + writer.writeBool( + 9, f ); } @@ -397,12 +377,30 @@ proto.irismod.htlc.MsgCreateHTLC.prototype.setReceiverOnOtherChain = function(va /** - * repeated cosmos.base.v1beta1.Coin amount = 4; + * optional string sender_on_other_chain = 4; + * @return {string} + */ +proto.irismod.htlc.MsgCreateHTLC.prototype.getSenderOnOtherChain = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.irismod.htlc.MsgCreateHTLC} returns this + */ +proto.irismod.htlc.MsgCreateHTLC.prototype.setSenderOnOtherChain = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * repeated cosmos.base.v1beta1.Coin amount = 5; * @return {!Array} */ proto.irismod.htlc.MsgCreateHTLC.prototype.getAmountList = function() { return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 4)); + jspb.Message.getRepeatedWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 5)); }; @@ -411,7 +409,7 @@ proto.irismod.htlc.MsgCreateHTLC.prototype.getAmountList = function() { * @return {!proto.irismod.htlc.MsgCreateHTLC} returns this */ proto.irismod.htlc.MsgCreateHTLC.prototype.setAmountList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); + return jspb.Message.setRepeatedWrapperField(this, 5, value); }; @@ -421,7 +419,7 @@ proto.irismod.htlc.MsgCreateHTLC.prototype.setAmountList = function(value) { * @return {!proto.cosmos.base.v1beta1.Coin} */ proto.irismod.htlc.MsgCreateHTLC.prototype.addAmount = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.cosmos.base.v1beta1.Coin, opt_index); + return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.cosmos.base.v1beta1.Coin, opt_index); }; @@ -435,11 +433,11 @@ proto.irismod.htlc.MsgCreateHTLC.prototype.clearAmountList = function() { /** - * optional string hash_lock = 5; + * optional string hash_lock = 6; * @return {string} */ proto.irismod.htlc.MsgCreateHTLC.prototype.getHashLock = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; @@ -448,16 +446,16 @@ proto.irismod.htlc.MsgCreateHTLC.prototype.getHashLock = function() { * @return {!proto.irismod.htlc.MsgCreateHTLC} returns this */ proto.irismod.htlc.MsgCreateHTLC.prototype.setHashLock = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); + return jspb.Message.setProto3StringField(this, 6, value); }; /** - * optional uint64 timestamp = 6; + * optional uint64 timestamp = 7; * @return {number} */ proto.irismod.htlc.MsgCreateHTLC.prototype.getTimestamp = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); }; @@ -466,16 +464,16 @@ proto.irismod.htlc.MsgCreateHTLC.prototype.getTimestamp = function() { * @return {!proto.irismod.htlc.MsgCreateHTLC} returns this */ proto.irismod.htlc.MsgCreateHTLC.prototype.setTimestamp = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); + return jspb.Message.setProto3IntField(this, 7, value); }; /** - * optional uint64 time_lock = 7; + * optional uint64 time_lock = 8; * @return {number} */ proto.irismod.htlc.MsgCreateHTLC.prototype.getTimeLock = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); }; @@ -484,7 +482,25 @@ proto.irismod.htlc.MsgCreateHTLC.prototype.getTimeLock = function() { * @return {!proto.irismod.htlc.MsgCreateHTLC} returns this */ proto.irismod.htlc.MsgCreateHTLC.prototype.setTimeLock = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); + return jspb.Message.setProto3IntField(this, 8, value); +}; + + +/** + * optional bool transfer = 9; + * @return {boolean} + */ +proto.irismod.htlc.MsgCreateHTLC.prototype.getTransfer = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.irismod.htlc.MsgCreateHTLC} returns this + */ +proto.irismod.htlc.MsgCreateHTLC.prototype.setTransfer = function(value) { + return jspb.Message.setProto3BooleanField(this, 9, value); }; @@ -520,7 +536,7 @@ proto.irismod.htlc.MsgCreateHTLCResponse.prototype.toObject = function(opt_inclu */ proto.irismod.htlc.MsgCreateHTLCResponse.toObject = function(includeInstance, msg) { var f, obj = { - + id: jspb.Message.getFieldWithDefault(msg, 1, "") }; if (includeInstance) { @@ -557,6 +573,10 @@ proto.irismod.htlc.MsgCreateHTLCResponse.deserializeBinaryFromReader = function( } var field = reader.getFieldNumber(); switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; default: reader.skipField(); break; @@ -586,6 +606,31 @@ proto.irismod.htlc.MsgCreateHTLCResponse.prototype.serializeBinary = function() */ proto.irismod.htlc.MsgCreateHTLCResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.irismod.htlc.MsgCreateHTLCResponse.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.irismod.htlc.MsgCreateHTLCResponse} returns this + */ +proto.irismod.htlc.MsgCreateHTLCResponse.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -622,7 +667,7 @@ proto.irismod.htlc.MsgClaimHTLC.prototype.toObject = function(opt_includeInstanc proto.irismod.htlc.MsgClaimHTLC.toObject = function(includeInstance, msg) { var f, obj = { sender: jspb.Message.getFieldWithDefault(msg, 1, ""), - hashLock: jspb.Message.getFieldWithDefault(msg, 2, ""), + id: jspb.Message.getFieldWithDefault(msg, 2, ""), secret: jspb.Message.getFieldWithDefault(msg, 3, "") }; @@ -666,7 +711,7 @@ proto.irismod.htlc.MsgClaimHTLC.deserializeBinaryFromReader = function(msg, read break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setHashLock(value); + msg.setId(value); break; case 3: var value = /** @type {string} */ (reader.readString()); @@ -708,7 +753,7 @@ proto.irismod.htlc.MsgClaimHTLC.serializeBinaryToWriter = function(message, writ f ); } - f = message.getHashLock(); + f = message.getId(); if (f.length > 0) { writer.writeString( 2, @@ -744,10 +789,10 @@ proto.irismod.htlc.MsgClaimHTLC.prototype.setSender = function(value) { /** - * optional string hash_lock = 2; + * optional string id = 2; * @return {string} */ -proto.irismod.htlc.MsgClaimHTLC.prototype.getHashLock = function() { +proto.irismod.htlc.MsgClaimHTLC.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; @@ -756,7 +801,7 @@ proto.irismod.htlc.MsgClaimHTLC.prototype.getHashLock = function() { * @param {string} value * @return {!proto.irismod.htlc.MsgClaimHTLC} returns this */ -proto.irismod.htlc.MsgClaimHTLC.prototype.setHashLock = function(value) { +proto.irismod.htlc.MsgClaimHTLC.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; @@ -880,265 +925,4 @@ proto.irismod.htlc.MsgClaimHTLCResponse.serializeBinaryToWriter = function(messa }; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.irismod.htlc.MsgRefundHTLC.prototype.toObject = function(opt_includeInstance) { - return proto.irismod.htlc.MsgRefundHTLC.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.irismod.htlc.MsgRefundHTLC} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.irismod.htlc.MsgRefundHTLC.toObject = function(includeInstance, msg) { - var f, obj = { - sender: jspb.Message.getFieldWithDefault(msg, 1, ""), - hashLock: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.irismod.htlc.MsgRefundHTLC} - */ -proto.irismod.htlc.MsgRefundHTLC.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.irismod.htlc.MsgRefundHTLC; - return proto.irismod.htlc.MsgRefundHTLC.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.irismod.htlc.MsgRefundHTLC} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.irismod.htlc.MsgRefundHTLC} - */ -proto.irismod.htlc.MsgRefundHTLC.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setSender(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setHashLock(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.irismod.htlc.MsgRefundHTLC.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.irismod.htlc.MsgRefundHTLC.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.irismod.htlc.MsgRefundHTLC} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.irismod.htlc.MsgRefundHTLC.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSender(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getHashLock(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string sender = 1; - * @return {string} - */ -proto.irismod.htlc.MsgRefundHTLC.prototype.getSender = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.irismod.htlc.MsgRefundHTLC} returns this - */ -proto.irismod.htlc.MsgRefundHTLC.prototype.setSender = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string hash_lock = 2; - * @return {string} - */ -proto.irismod.htlc.MsgRefundHTLC.prototype.getHashLock = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.irismod.htlc.MsgRefundHTLC} returns this - */ -proto.irismod.htlc.MsgRefundHTLC.prototype.setHashLock = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.irismod.htlc.MsgRefundHTLCResponse.prototype.toObject = function(opt_includeInstance) { - return proto.irismod.htlc.MsgRefundHTLCResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.irismod.htlc.MsgRefundHTLCResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.irismod.htlc.MsgRefundHTLCResponse.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.irismod.htlc.MsgRefundHTLCResponse} - */ -proto.irismod.htlc.MsgRefundHTLCResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.irismod.htlc.MsgRefundHTLCResponse; - return proto.irismod.htlc.MsgRefundHTLCResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.irismod.htlc.MsgRefundHTLCResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.irismod.htlc.MsgRefundHTLCResponse} - */ -proto.irismod.htlc.MsgRefundHTLCResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.irismod.htlc.MsgRefundHTLCResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.irismod.htlc.MsgRefundHTLCResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.irismod.htlc.MsgRefundHTLCResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.irismod.htlc.MsgRefundHTLCResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - goog.object.extend(exports, proto.irismod.htlc); diff --git a/dist/src/types/proto.d.ts b/dist/src/types/proto.d.ts index 5cb96dc0..c4c111a8 100644 --- a/dist/src/types/proto.d.ts +++ b/dist/src/types/proto.d.ts @@ -16,6 +16,7 @@ export declare const random_tx_pb: any; export declare const record_tx_pb: any; export declare const service_tx_pb: any; export declare const token_tx_pb: any; +export declare const ibc_transfer_tx_pb: any; /***************QUERY***************/ export declare const base_query_pagination_pb: any; export declare const auth_query_pb: any; @@ -36,6 +37,8 @@ export declare const random_query_pb: any; export declare const record_query_pb: any; export declare const service_query_pb: any; export declare const token_query_pb: any; +export declare const ibc_transfer_query_pb: any; +export declare const ibc_channel_query_pb: any; /***************MODULES***************/ export declare const auth_auth_pb: any; export declare const crypto_secp256k1_keys_pb: any; @@ -44,13 +47,12 @@ export declare const crypto_sm2_keys_pb: any; export declare const base_coin_pb: any; export declare const signing_signing_pb: any; export declare const gov_gov_pb: any; +export declare const coinswap_coinswap_pb: any; export declare const distribution_distribution_pb: any; export declare const params_params_pb: any; export declare const upgrade_upgrade_pb: any; export declare const slashing_slashing_pb: any; -export declare const lightclients_tendermint_tendermint_pb: any; -export declare const confio_proofs_pb: any; +export declare const ibc_core_client_pb: any; export declare const google_protobuf_timestamp_pb: any; -export declare const google_protobuf_duration_pb: any; export declare const token_token_pb: any; export declare const any_pb: any; diff --git a/dist/src/types/proto.js b/dist/src/types/proto.js index 71e53c83..f272a645 100644 --- a/dist/src/types/proto.js +++ b/dist/src/types/proto.js @@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); -exports.any_pb = exports.token_token_pb = exports.google_protobuf_duration_pb = exports.google_protobuf_timestamp_pb = exports.confio_proofs_pb = exports.lightclients_tendermint_tendermint_pb = exports.slashing_slashing_pb = exports.upgrade_upgrade_pb = exports.params_params_pb = exports.distribution_distribution_pb = exports.gov_gov_pb = exports.signing_signing_pb = exports.base_coin_pb = exports.crypto_sm2_keys_pb = exports.crypto_ed25519_keys_pb = exports.crypto_secp256k1_keys_pb = exports.auth_auth_pb = exports.token_query_pb = exports.service_query_pb = exports.record_query_pb = exports.random_query_pb = exports.oracle_query_pb = exports.nft_query_pb = exports.htlc_query_pb = exports.coinswap_query_pb = exports.upgrade_query_pb = exports.staking_query_pb = exports.slashing_query_pb = exports.params_query_pb = exports.mint_query_pb = exports.gov_query_pb = exports.evidence_query_pb = exports.distribution_query_pb = exports.bank_query_pb = exports.auth_query_pb = exports.base_query_pagination_pb = exports.token_tx_pb = exports.service_tx_pb = exports.record_tx_pb = exports.random_tx_pb = exports.oracle_tx_pb = exports.nft_tx_pb = exports.htlc_tx_pb = exports.coinswap_tx_pb = exports.vesting_tx_pb = exports.tx_tx_pb = exports.staking_tx_pb = exports.slashing_tx_pb = exports.gov_tx_pb = exports.evidence_tx_pb = exports.distribution_tx_pb = exports.crisis_tx_pb = exports.bank_tx_pb = void 0; +exports.any_pb = exports.token_token_pb = exports.google_protobuf_timestamp_pb = exports.ibc_core_client_pb = exports.slashing_slashing_pb = exports.upgrade_upgrade_pb = exports.params_params_pb = exports.distribution_distribution_pb = exports.coinswap_coinswap_pb = exports.gov_gov_pb = exports.signing_signing_pb = exports.base_coin_pb = exports.crypto_sm2_keys_pb = exports.crypto_ed25519_keys_pb = exports.crypto_secp256k1_keys_pb = exports.auth_auth_pb = exports.ibc_channel_query_pb = exports.ibc_transfer_query_pb = exports.token_query_pb = exports.service_query_pb = exports.record_query_pb = exports.random_query_pb = exports.oracle_query_pb = exports.nft_query_pb = exports.htlc_query_pb = exports.coinswap_query_pb = exports.upgrade_query_pb = exports.staking_query_pb = exports.slashing_query_pb = exports.params_query_pb = exports.mint_query_pb = exports.gov_query_pb = exports.evidence_query_pb = exports.distribution_query_pb = exports.bank_query_pb = exports.auth_query_pb = exports.base_query_pagination_pb = exports.ibc_transfer_tx_pb = exports.token_tx_pb = exports.service_tx_pb = exports.record_tx_pb = exports.random_tx_pb = exports.oracle_tx_pb = exports.nft_tx_pb = exports.htlc_tx_pb = exports.coinswap_tx_pb = exports.vesting_tx_pb = exports.tx_tx_pb = exports.staking_tx_pb = exports.slashing_tx_pb = exports.gov_tx_pb = exports.evidence_tx_pb = exports.distribution_tx_pb = exports.crisis_tx_pb = exports.bank_tx_pb = void 0; /***************TX*****************/ //cosmos tx @@ -72,12 +72,17 @@ var service_tx_pb = require('./proto-types/irismod/service/tx_pb'); exports.service_tx_pb = service_tx_pb; -var token_tx_pb = require('./proto-types/irismod/token/tx_pb'); -/***************QUERY***************/ +var token_tx_pb = require('./proto-types/irismod/token/tx_pb'); //ibc tx exports.token_tx_pb = token_tx_pb; +var ibc_transfer_tx_pb = require('./proto-types/ibc/applications/transfer/v1/tx_pb'); +/***************QUERY***************/ + + +exports.ibc_transfer_tx_pb = ibc_transfer_tx_pb; + var base_query_pagination_pb = require('./proto-types/cosmos/base/query/v1beta1/pagination_pb'); //cosmos query @@ -152,12 +157,21 @@ var service_query_pb = require('./proto-types/irismod/service/query_pb'); exports.service_query_pb = service_query_pb; -var token_query_pb = require('./proto-types/irismod/token/query_pb'); +var token_query_pb = require('./proto-types/irismod/token/query_pb'); //ibc query + + +exports.token_query_pb = token_query_pb; + +var ibc_transfer_query_pb = require('./proto-types/ibc/applications/transfer/v1/query_pb'); + +exports.ibc_transfer_query_pb = ibc_transfer_query_pb; + +var ibc_channel_query_pb = require('./proto-types/ibc/core/channel/v1/query_pb'); /***************MODULES***************/ //cosmos module -exports.token_query_pb = token_query_pb; +exports.ibc_channel_query_pb = ibc_channel_query_pb; var auth_auth_pb = require('./proto-types/cosmos/auth/v1beta1/auth_pb'); @@ -187,6 +201,10 @@ var gov_gov_pb = require('./proto-types/cosmos/gov/v1beta1/gov_pb'); exports.gov_gov_pb = gov_gov_pb; +var coinswap_coinswap_pb = require('./proto-types/irismod/coinswap/coinswap_pb'); + +exports.coinswap_coinswap_pb = coinswap_coinswap_pb; + var distribution_distribution_pb = require('./proto-types/cosmos/distribution/v1beta1/distribution_pb'); exports.distribution_distribution_pb = distribution_distribution_pb; @@ -199,30 +217,25 @@ var upgrade_upgrade_pb = require('./proto-types/cosmos/upgrade/v1beta1/upgrade_p exports.upgrade_upgrade_pb = upgrade_upgrade_pb; -var slashing_slashing_pb = require('./proto-types/cosmos/slashing/v1beta1/slashing_pb'); //ibc module +var slashing_slashing_pb = require('./proto-types/cosmos/slashing/v1beta1/slashing_pb'); // ibc module exports.slashing_slashing_pb = slashing_slashing_pb; -var lightclients_tendermint_tendermint_pb = require('./proto-types/ibc/lightclients/tendermint/v1/tendermint_pb'); //confio module - +var ibc_core_client_pb = require('./proto-types/ibc/core/client/v1/client_pb'); // export const lightclients_tendermint_tendermint_pb = require( './proto-types/ibc/lightclients/tendermint/v1/tendermint_pb'); +//confio module +// export const confio_proofs_pb = require( './proto-types/confio/proofs_pb'); +// google module -exports.lightclients_tendermint_tendermint_pb = lightclients_tendermint_tendermint_pb; -var confio_proofs_pb = require('./proto-types/confio/proofs_pb'); // google module +exports.ibc_core_client_pb = ibc_core_client_pb; +var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); // export const google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js'); +//irimod module -exports.confio_proofs_pb = confio_proofs_pb; - -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); exports.google_protobuf_timestamp_pb = google_protobuf_timestamp_pb; -var google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js'); //irimod module - - -exports.google_protobuf_duration_pb = google_protobuf_duration_pb; - var token_token_pb = require('./proto-types/irismod/token/token_pb'); //any diff --git a/dist/src/types/protoTx.js b/dist/src/types/protoTx.js index 63d7d0a5..e432d74a 100644 --- a/dist/src/types/protoTx.js +++ b/dist/src/types/protoTx.js @@ -1,9 +1,9 @@ 'use strict'; -var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); - var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); +var _typeof = require("@babel/runtime/helpers/typeof"); + Object.defineProperty(exports, "__esModule", { value: true }); @@ -23,6 +23,10 @@ var _errors = require("../errors"); var _protobuf = require("../modules/protobuf"); +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var Sha256 = require('sha256'); var ProtoTx = /*#__PURE__*/function () { diff --git a/dist/src/types/query-builder.js b/dist/src/types/query-builder.js index 42ecab56..7128f38e 100644 --- a/dist/src/types/query-builder.js +++ b/dist/src/types/query-builder.js @@ -1,9 +1,9 @@ "use strict"; -var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); - var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); +var _typeof = require("@babel/runtime/helpers/typeof"); + Object.defineProperty(exports, "__esModule", { value: true }); @@ -19,6 +19,10 @@ var _errors = require("../errors"); var is = _interopRequireWildcard(require("is_js")); +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var Condition = /*#__PURE__*/function () { function Condition(key) { (0, _classCallCheck2["default"])(this, Condition); diff --git a/dist/src/types/random.js b/dist/src/types/random.js index 8808c814..0b0527cb 100644 --- a/dist/src/types/random.js +++ b/dist/src/types/random.js @@ -25,7 +25,7 @@ var _types = require("./types"); function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** * Msg struct for requesting a random number diff --git a/dist/src/types/service.js b/dist/src/types/service.js index b4d6b47b..8a100c94 100644 --- a/dist/src/types/service.js +++ b/dist/src/types/service.js @@ -25,7 +25,7 @@ var _types = require("./types"); function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** * Msg struct for creating a new service definition diff --git a/dist/src/types/slashing.js b/dist/src/types/slashing.js index 4bc07b81..bd35a9ee 100644 --- a/dist/src/types/slashing.js +++ b/dist/src/types/slashing.js @@ -25,7 +25,7 @@ var _types = require("./types"); function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** * Msg struct for unjailing jailed validator diff --git a/dist/src/types/staking.js b/dist/src/types/staking.js index af24446d..05b6f7ea 100644 --- a/dist/src/types/staking.js +++ b/dist/src/types/staking.js @@ -1,9 +1,9 @@ "use strict"; -var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); - var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); +var _typeof = require("@babel/runtime/helpers/typeof"); + Object.defineProperty(exports, "__esModule", { value: true }); @@ -33,9 +33,13 @@ var is = _interopRequireWildcard(require("is_js")); var _errors = require("../errors"); +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** * Msg struct for delegating to a validator diff --git a/dist/src/types/token.js b/dist/src/types/token.js index 78bc1e19..e9d1ae18 100644 --- a/dist/src/types/token.js +++ b/dist/src/types/token.js @@ -1,9 +1,9 @@ "use strict"; -var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); - var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); +var _typeof = require("@babel/runtime/helpers/typeof"); + Object.defineProperty(exports, "__esModule", { value: true }); @@ -33,9 +33,13 @@ var _errors = require("../errors"); var _constants = require("./constants"); +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** * Msg struct for issue token diff --git a/dist/src/types/types.d.ts b/dist/src/types/types.d.ts index 03097eb9..4727f379 100644 --- a/dist/src/types/types.d.ts +++ b/dist/src/types/types.d.ts @@ -40,7 +40,10 @@ export declare enum TxType { MsgTransferTokenOwner = "irismod.token.MsgTransferTokenOwner", MsgSubmitProposal = "cosmos.gov.v1beta1.MsgSubmitProposal", MsgVote = "cosmos.gov.v1beta1.MsgVote", - MsgDeposit = "cosmos.gov.v1beta1.MsgDeposit" + MsgDeposit = "cosmos.gov.v1beta1.MsgDeposit", + MsgCreateHTLC = "irismod.htlc.MsgCreateHTLC", + MsgClaimHTLC = "irismod.htlc.MsgClaimHTLC", + MsgTransfer = "ibc.applications.transfer.v1.MsgTransfer" } /** * Base Tx @@ -103,3 +106,14 @@ export interface Tag { key: string; value: string; } +/** + * Bech32 Prefix + */ +export interface Bech32Prefix { + AccAddr: string; + AccPub: string; + ValAddr: string; + ValPub: string; + ConsAddr: string; + ConsPub: string; +} diff --git a/dist/src/types/types.js b/dist/src/types/types.js index ab494944..c36acef0 100644 --- a/dist/src/types/types.js +++ b/dist/src/types/types.js @@ -104,6 +104,9 @@ exports.TxType = TxType; TxType["MsgSubmitProposal"] = "cosmos.gov.v1beta1.MsgSubmitProposal"; TxType["MsgVote"] = "cosmos.gov.v1beta1.MsgVote"; TxType["MsgDeposit"] = "cosmos.gov.v1beta1.MsgDeposit"; + TxType["MsgCreateHTLC"] = "irismod.htlc.MsgCreateHTLC"; + TxType["MsgClaimHTLC"] = "irismod.htlc.MsgClaimHTLC"; + TxType["MsgTransfer"] = "ibc.applications.transfer.v1.MsgTransfer"; })(TxType || (exports.TxType = TxType = {})); /** diff --git a/dist/src/utils/crypto.d.ts b/dist/src/utils/crypto.d.ts index 1ab5f9d0..1a8dab26 100644 --- a/dist/src/utils/crypto.d.ts +++ b/dist/src/utils/crypto.d.ts @@ -124,6 +124,16 @@ export declare class Crypto { * @returns The private key */ static getPrivateKeyFromKeyStore(keystore: string | object, password: string): string; + /** + * Gets a private key from a keystore v1.0 given its password. + * @param keystore The keystore v1.0 + * @param password The password. + * @returns The private key + */ + static getPrivateKeyFromKeystoreV1(keystore: string, password: string): { + type: types.PubkeyType; + privKey: string; + }; /** * Generates mnemonic phrase words using random entropy. * diff --git a/dist/src/utils/crypto.js b/dist/src/utils/crypto.js index 00755afa..ba33473a 100644 --- a/dist/src/utils/crypto.js +++ b/dist/src/utils/crypto.js @@ -1,9 +1,9 @@ "use strict"; -var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); - var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); +var _typeof = require("@babel/runtime/helpers/typeof"); + Object.defineProperty(exports, "__esModule", { value: true }); @@ -39,11 +39,19 @@ var types = _interopRequireWildcard(require("../types")); var _errors = require("../errors"); +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + var Sha256 = require('sha256'); var Secp256k1 = require('secp256k1'); var SM2 = require('sm-crypto').sm2; + +var bcrypt = require('bcryptjs'); + +var nacl = require('tweetnacl'); /** * Crypto Utils * @hidden @@ -486,6 +494,51 @@ var Crypto = /*#__PURE__*/function () { var privateKey = Buffer.concat([decipher.update(ciphertext), decipher["final"]()]).toString('hex'); return privateKey; } + /** + * Gets a private key from a keystore v1.0 given its password. + * @param keystore The keystore v1.0 + * @param password The password. + * @returns The private key + */ + + }, { + key: "getPrivateKeyFromKeystoreV1", + value: function getPrivateKeyFromKeystoreV1(keystore, password) { + if (!is.string(password)) { + throw new _errors.SdkError('No password given.', _errors.CODES.InvalidPassword); + } // unarmor + + + var keystore_content = _utils.Utils.unarmor(keystore); + + var header = keystore_content.header; + + if (!header.salt) { + throw new _errors.SdkError('invalid keystore salt'); + } + + var salt = bcrypt.encodeBase64(Buffer.from(header.salt, 'hex'), 16); + var key = bcrypt.hashSync(password, "".concat(types.keystoreSaltPerfix).concat(salt)); + key = _utils.Utils.sha256(Buffer.from(key).toString('hex')); + var keystoreData = Buffer.from(keystore_content.data, 'base64'); + var nonce = keystoreData.slice(0, types.xchacha20NonceLength); + var privKey_full = nacl.secretbox.open(keystoreData.slice(types.xchacha20NonceLength), nonce, Buffer.from(key, 'hex')); + + if (!privKey_full) { + throw new _errors.SdkError('KeyStore parsing failed', _errors.CODES.Internal); + } + + var privKey = Buffer.from(privKey_full).slice(5).toString('hex'); + + if (header.type != types.PubkeyType.secp256k1 && header.type != types.PubkeyType.ed25519 && header.type != types.PubkeyType.sm2) { + header.type = types.PubkeyType.secp256k1; + } + + return { + type: header.type, + privKey: privKey + }; + } /** * Generates mnemonic phrase words using random entropy. * diff --git a/dist/src/utils/utils.d.ts b/dist/src/utils/utils.d.ts index 7fa9c061..9984a3ba 100644 --- a/dist/src/utils/utils.d.ts +++ b/dist/src/utils/utils.d.ts @@ -10,6 +10,18 @@ export declare class Utils { * @returns Uint8Array */ static str2ab(str: string): Uint8Array; + /** + * unarmor Keystore + * @param string Keystore v1.0 + * @returns types.KeystoreV1 + */ + static unarmor(keystore: string): types.KeystoreV1; + /** + * parse Keystore Headers + * @param string[] KeystoreHeaders string[] + * @returns types.KeystoreHeader + */ + static parseKeystoreHeaders(KeystoreHeaders: string[]): types.KeystoreHeader; /** * String to Byte Array * @param str ASCII string diff --git a/dist/src/utils/utils.js b/dist/src/utils/utils.js index fd5984ff..98b85721 100644 --- a/dist/src/utils/utils.js +++ b/dist/src/utils/utils.js @@ -1,9 +1,9 @@ "use strict"; -var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); - var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); +var _typeof3 = require("@babel/runtime/helpers/typeof"); + Object.defineProperty(exports, "__esModule", { value: true }); @@ -27,6 +27,12 @@ var is = _interopRequireWildcard(require("is_js")); var _errors = require("../errors"); +var types = _interopRequireWildcard(require("../types")); + +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } + +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof3(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } + /** * IRISHub SDK JS Utils * @hidden @@ -57,6 +63,73 @@ var Utils = /*#__PURE__*/function () { return result; } + /** + * unarmor Keystore + * @param string Keystore v1.0 + * @returns types.KeystoreV1 + */ + + }, { + key: "unarmor", + value: function unarmor(keystore) { + var keystoreTest = new RegExp("^(".concat(types.keystoreStructure.prefix, ")([\\s\\S]*)(").concat(types.keystoreStructure.suffix, ")$")); + + if (keystoreTest.test(keystore)) { + var clearTest = new RegExp("^(".concat(types.keystoreStructure.prefix, ")|(").concat(types.keystoreStructure.suffix, ")$"), 'g'); + keystore = keystore.replace(clearTest, ''); + var datas = keystore.split('\n'); + + if (!datas || !datas.length) { + throw new _errors.SdkError('Invalid keystore', _errors.CODES.InvalidType); + } + + datas = datas.filter(function (item) { + return item.trim().length; + }); + var headers = datas.filter(function (item) { + return item.indexOf(':') != -1; + }); + var contents = datas.filter(function (item) { + return item.indexOf(':') == -1; + }); + + if (/^=/.test(contents[contents.length - 1])) { + delete contents[contents.length - 1]; + } + + var header = Utils.parseKeystoreHeaders(headers); + var content = contents.join(''); + return { + header: header, + data: content + }; + } else { + throw new _errors.SdkError('Invalid keystore', _errors.CODES.InvalidType); + } + } + /** + * parse Keystore Headers + * @param string[] KeystoreHeaders string[] + * @returns types.KeystoreHeader + */ + + }, { + key: "parseKeystoreHeaders", + value: function parseKeystoreHeaders(KeystoreHeaders) { + var header = {}; + + if (KeystoreHeaders && KeystoreHeaders.length) { + KeystoreHeaders.forEach(function (item) { + var contents = item.split(':'); + + if (contents.length == 2) { + header[contents[0]] = contents[1].trim(); + } + }); + } + + return header; + } /** * String to Byte Array * @param str ASCII string diff --git a/index.ts b/index.ts index 8420b109..5df1c9ac 100644 --- a/index.ts +++ b/index.ts @@ -1 +1 @@ -export * from './src'; +export * from './dist/src'; diff --git a/package.json b/package.json index 2eda1cf1..011803cc 100644 --- a/package.json +++ b/package.json @@ -1,21 +1,17 @@ { "name": "@irisnet/irishub-sdk", - "version": "1.0.1", + "version": "2.0.0", "description": "IRISHub JavaScript SDK", "main": "index.js", - "typings": "src/index.ts", + "typings": "index.ts", "types": "./dist/src", "files": [ "dist", "dist/*", - "src/**/*.{ts,js}", - "types/**/*.ts", "index.js", "LICENSE", "package.json", - "README.md", - "tsconfig.json", - "yarn.lock" + "README.md" ], "license": "Apache-2.0", "keywords": [ @@ -35,47 +31,49 @@ "proto-gen": "sh ./scripts/protocgen.sh" }, "devDependencies": { - "@babel/cli": "^7.0.0", - "@babel/core": "^7.0.0", - "@babel/plugin-proposal-class-properties": "^7.8.3", + "@babel/cli": "^7.13.14", + "@babel/core": "^7.14.6", + "@babel/plugin-proposal-class-properties": "^7.14.5", "@babel/plugin-transform-runtime": "^7.9.0", - "@babel/preset-env": "^7.7.6", + "@babel/preset-env": "^7.14.7", "@babel/preset-typescript": "^7.9.0", - "@types/jest": "^25.1.4", - "@types/node": "^15.6.1", + "@types/jest": "^26.0.22", + "@types/node": "^10.0.3", "babel-loader": "^8.1.0", "eslint": "^6.8.0", "eslint-loader": "^4.0.0", - "gts": "^1.1.2", + "gts": "3.1.0", "jest": "^25.1.0", "ts-jest": "^25.2.1", "ts-loader": "^6.2.2", "tslint": "^6.1.0", - "typedoc": "^0.16.9", + "typedoc": "^0.20.37", "typescript": "^3.8.3" }, "dependencies": { - "@babel/runtime": "^7.0.0", - "@types/mathjs": "^6.0.4", - "@types/ws": "^7.2.2", + "@babel/runtime": "^7.13.10", + "@types/mathjs": "6.0.11", + "@types/ws": "^7.4.5", "axios": "^0.21.1", + "bcryptjs": "^2.4.3", "bech32": "^1.1.3", "bip32": "^2.0.4", "bip39": "^3.0.2", "crypto-browserify": "^3.12.0", - "crypto-js": "^3.1.9-1", + "crypto-js": "^4.0.0", "events": "^3.1.0", - "google-protobuf": "3.17.1", + "google-protobuf": "3.13.0", "grpc-web": "^1.2.1", - "uuid": "^8.3.2", "is_js": "^0.9.0", "isomorphic-ws": "^4.0.1", + "mathjs": "7.5.1", "ndjson": "^2.0.0", - "mathjs": "9.4.1", "pumpify": "^2.0.1", "secp256k1": "^3.8.0", "secure-random": "^1.1.2", "sha256": "^0.2.0", - "sm-crypto": "git+https://github.com/bianjieai/sm-crypto-js.git#main" + "sm-crypto": "git+http://github.com/bianjieai/sm-crypto-js.git#main", + "tweetnacl": "^1.0.3", + "uuid": "^8.3.2" } } diff --git a/proto/cosmos/bank/v1beta1/query.proto b/proto/cosmos/bank/v1beta1/query.proto index 8f8cfe12..bc5e2913 100644 --- a/proto/cosmos/bank/v1beta1/query.proto +++ b/proto/cosmos/bank/v1beta1/query.proto @@ -35,6 +35,16 @@ service Query { rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { option (google.api.http).get = "/cosmos/bank/v1beta1/params"; } + + // DenomsMetadata queries the client metadata of a given coin denomination. + rpc DenomMetadata(QueryDenomMetadataRequest) returns (QueryDenomMetadataResponse) { + option (google.api.http).get = "/cosmos/bank/v1beta1/denoms_metadata/{denom}"; + } + + // DenomsMetadata queries the client metadata for all registered coin denominations. + rpc DenomsMetadata(QueryDenomsMetadataRequest) returns (QueryDenomsMetadataResponse) { + option (google.api.http).get = "/cosmos/bank/v1beta1/denoms_metadata"; + } } // QueryBalanceRequest is the request type for the Query/Balance RPC method. @@ -109,3 +119,32 @@ message QueryParamsRequest {} message QueryParamsResponse { Params params = 1 [(gogoproto.nullable) = false]; } + +// QueryDenomsMetadataRequest is the request type for the Query/DenomsMetadata RPC method. +message QueryDenomsMetadataRequest { + // pagination defines an optional pagination for the request. + cosmos.base.query.v1beta1.PageRequest pagination = 1; +} + +// QueryDenomsMetadataResponse is the response type for the Query/DenomsMetadata RPC +// method. +message QueryDenomsMetadataResponse { + // metadata provides the client information for all the registered tokens. + repeated Metadata metadatas = 1 [(gogoproto.nullable) = false]; + + // pagination defines the pagination in the response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +// QueryDenomMetadataRequest is the request type for the Query/DenomMetadata RPC method. +message QueryDenomMetadataRequest { + // denom is the coin denom to query the metadata for. + string denom = 1; +} + +// QueryDenomMetadataResponse is the response type for the Query/DenomMetadata RPC +// method. +message QueryDenomMetadataResponse { + // metadata describes and provides all the client information for the requested token. + Metadata metadata = 1 [(gogoproto.nullable) = false]; +} diff --git a/proto/cosmos/base/tendermint/v1beta1/query.proto b/proto/cosmos/base/tendermint/v1beta1/query.proto index a6be8eb2..50cb5852 100644 --- a/proto/cosmos/base/tendermint/v1beta1/query.proto +++ b/proto/cosmos/base/tendermint/v1beta1/query.proto @@ -1,7 +1,5 @@ syntax = "proto3"; -// package cosmos.base.tendermint.v1beta1; -//由于当前package 包含tendermint 导致tendermint模块引入无法被正确定位,现自定义package cosmos.base.tendermint.v1beta1=>cosmos.base.tendermint_1.v1beta1 -package cosmos.base.tendermint_1.v1beta1; +package cosmos.base.tendermint.v1beta1; import "gogoproto/gogo.proto"; import "google/protobuf/any.proto"; @@ -34,11 +32,11 @@ service Service { // GetLatestValidatorSet queries latest validator-set. rpc GetLatestValidatorSet(GetLatestValidatorSetRequest) returns (GetLatestValidatorSetResponse) { - option (google.api.http).get = "/cosmos/base/tendermint/v1beta1/validators/latest"; + option (google.api.http).get = "/cosmos/base/tendermint/v1beta1/validatorsets/latest"; } // GetValidatorSetByHeight queries validator-set at a given height. rpc GetValidatorSetByHeight(GetValidatorSetByHeightRequest) returns (GetValidatorSetByHeightResponse) { - option (google.api.http).get = "/cosmos/base/tendermint/v1beta1/validators/{height}"; + option (google.api.http).get = "/cosmos/base/tendermint/v1beta1/validatorsets/{height}"; } } @@ -86,8 +84,8 @@ message GetBlockByHeightRequest { // GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight RPC method. message GetBlockByHeightResponse { - tendermint.types.BlockID block_id = 1; - tendermint.types.Block block = 2; + .tendermint.types.BlockID block_id = 1; + .tendermint.types.Block block = 2; } // GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC method. @@ -95,8 +93,8 @@ message GetLatestBlockRequest {} // GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method. message GetLatestBlockResponse { - tendermint.types.BlockID block_id = 1; - tendermint.types.Block block = 2; + .tendermint.types.BlockID block_id = 1; + .tendermint.types.Block block = 2; } // GetSyncingRequest is the request type for the Query/GetSyncing RPC method. @@ -112,8 +110,8 @@ message GetNodeInfoRequest {} // GetNodeInfoResponse is the request type for the Query/GetNodeInfo RPC method. message GetNodeInfoResponse { - tendermint.p2p.DefaultNodeInfo default_node_info = 1; - VersionInfo application_version = 2; + .tendermint.p2p.DefaultNodeInfo default_node_info = 1; + VersionInfo application_version = 2; } // VersionInfo is the type for the GetNodeInfoResponse message. @@ -135,4 +133,4 @@ message Module { string version = 2; // checksum string sum = 3; -} \ No newline at end of file +} diff --git a/proto/cosmos/staking/v1beta1/staking.proto b/proto/cosmos/staking/v1beta1/staking.proto index eadc86e9..e37b28b6 100644 --- a/proto/cosmos/staking/v1beta1/staking.proto +++ b/proto/cosmos/staking/v1beta1/staking.proto @@ -27,12 +27,15 @@ message CommissionRates { option (gogoproto.equal) = true; option (gogoproto.goproto_stringer) = false; + // rate is the commission rate charged to delegators, as a fraction. string rate = 1 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; + // max_rate defines the maximum commission rate which validator can ever charge, as a fraction. string max_rate = 2 [ (gogoproto.moretags) = "yaml:\"max_rate\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false ]; + // max_change_rate defines the maximum daily increase of the validator commission, as a fraction. string max_change_rate = 3 [ (gogoproto.moretags) = "yaml:\"max_change_rate\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", @@ -45,7 +48,9 @@ message Commission { option (gogoproto.equal) = true; option (gogoproto.goproto_stringer) = false; + // commission_rates defines the initial commission rates to be used for creating a validator. CommissionRates commission_rates = 1 [(gogoproto.embed) = true, (gogoproto.nullable) = false]; + // update_time is the last time the commission rate was changed. google.protobuf.Timestamp update_time = 2 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true, (gogoproto.moretags) = "yaml:\"update_time\""]; } @@ -55,10 +60,15 @@ message Description { option (gogoproto.equal) = true; option (gogoproto.goproto_stringer) = false; + // moniker defines a human-readable name for the validator. string moniker = 1; + // identity defines an optional identity signature (ex. UPort or Keybase). string identity = 2; + // website defines an optional website link. string website = 3; + // security_contact defines an optional email for security contact. string security_contact = 4 [(gogoproto.moretags) = "yaml:\"security_contact\""]; + // details define other optional details. string details = 5; } @@ -75,22 +85,33 @@ message Validator { option (gogoproto.goproto_stringer) = false; option (gogoproto.goproto_getters) = false; + // operator_address defines the address of the validator's operator; bech encoded in JSON. string operator_address = 1 [(gogoproto.moretags) = "yaml:\"operator_address\""]; + // consensus_pubkey is the consensus public key of the validator, as a Protobuf Any. google.protobuf.Any consensus_pubkey = 2 [(cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey", (gogoproto.moretags) = "yaml:\"consensus_pubkey\""]; + // jailed defined whether the validator has been jailed from bonded status or not. bool jailed = 3; + // status is the validator status (bonded/unbonding/unbonded). BondStatus status = 4; + // tokens define the delegated tokens (incl. self-delegation). string tokens = 5 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false]; + // delegator_shares defines total shares issued to a validator's delegators. string delegator_shares = 6 [ (gogoproto.moretags) = "yaml:\"delegator_shares\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false ]; + // description defines the description terms for the validator. Description description = 7 [(gogoproto.nullable) = false]; + // unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. int64 unbonding_height = 8 [(gogoproto.moretags) = "yaml:\"unbonding_height\""]; + // unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. google.protobuf.Timestamp unbonding_time = 9 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true, (gogoproto.moretags) = "yaml:\"unbonding_time\""]; + // commission defines the commission parameters. Commission commission = 10 [(gogoproto.nullable) = false]; + // min_self_delegation is the validator's self declared minimum self delegation. string min_self_delegation = 11 [ (gogoproto.moretags) = "yaml:\"min_self_delegation\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", @@ -164,8 +185,11 @@ message Delegation { option (gogoproto.goproto_getters) = false; option (gogoproto.goproto_stringer) = false; + // delegator_address is the bech32-encoded address of the delegator. string delegator_address = 1 [(gogoproto.moretags) = "yaml:\"delegator_address\""]; + // validator_address is the bech32-encoded address of the validator. string validator_address = 2 [(gogoproto.moretags) = "yaml:\"validator_address\""]; + // shares define the delegation shares received. string shares = 3 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; } @@ -176,8 +200,11 @@ message UnbondingDelegation { option (gogoproto.goproto_getters) = false; option (gogoproto.goproto_stringer) = false; + // delegator_address is the bech32-encoded address of the delegator. string delegator_address = 1 [(gogoproto.moretags) = "yaml:\"delegator_address\""]; + // validator_address is the bech32-encoded address of the validator. string validator_address = 2 [(gogoproto.moretags) = "yaml:\"validator_address\""]; + // entries are the unbonding delegation entries. repeated UnbondingDelegationEntry entries = 3 [(gogoproto.nullable) = false]; // unbonding delegation entries } @@ -186,14 +213,18 @@ message UnbondingDelegationEntry { option (gogoproto.equal) = true; option (gogoproto.goproto_stringer) = false; + // creation_height is the height which the unbonding took place. int64 creation_height = 1 [(gogoproto.moretags) = "yaml:\"creation_height\""]; + // completion_time is the unix time for unbonding completion. google.protobuf.Timestamp completion_time = 2 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true, (gogoproto.moretags) = "yaml:\"completion_time\""]; + // initial_balance defines the tokens initially scheduled to receive at completion. string initial_balance = 3 [ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"initial_balance\"" ]; + // balance defines the tokens to receive at completion. string balance = 4 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false]; } @@ -202,14 +233,18 @@ message RedelegationEntry { option (gogoproto.equal) = true; option (gogoproto.goproto_stringer) = false; + // creation_height defines the height which the redelegation took place. int64 creation_height = 1 [(gogoproto.moretags) = "yaml:\"creation_height\""]; + // completion_time defines the unix time for redelegation completion. google.protobuf.Timestamp completion_time = 2 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true, (gogoproto.moretags) = "yaml:\"completion_time\""]; + // initial_balance defines the initial balance when redelegation started. string initial_balance = 3 [ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"initial_balance\"" ]; + // shares_dst is the amount of destination-validator shares created by redelegation. string shares_dst = 4 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; } @@ -221,9 +256,13 @@ message Redelegation { option (gogoproto.goproto_getters) = false; option (gogoproto.goproto_stringer) = false; + // delegator_address is the bech32-encoded address of the delegator. string delegator_address = 1 [(gogoproto.moretags) = "yaml:\"delegator_address\""]; + // validator_src_address is the validator redelegation source operator address. string validator_src_address = 2 [(gogoproto.moretags) = "yaml:\"validator_src_address\""]; + // validator_dst_address is the validator redelegation destination operator address. string validator_dst_address = 3 [(gogoproto.moretags) = "yaml:\"validator_dst_address\""]; + // entries are the redelegation entries. repeated RedelegationEntry entries = 4 [(gogoproto.nullable) = false]; // redelegation entries } @@ -232,11 +271,16 @@ message Params { option (gogoproto.equal) = true; option (gogoproto.goproto_stringer) = false; + // unbonding_time is the time duration of unbonding. google.protobuf.Duration unbonding_time = 1 [(gogoproto.nullable) = false, (gogoproto.stdduration) = true, (gogoproto.moretags) = "yaml:\"unbonding_time\""]; + // max_validators is the maximum number of validators. uint32 max_validators = 2 [(gogoproto.moretags) = "yaml:\"max_validators\""]; + // max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio). uint32 max_entries = 3 [(gogoproto.moretags) = "yaml:\"max_entries\""]; + // historical_entries is the number of historical entries to persist. uint32 historical_entries = 4 [(gogoproto.moretags) = "yaml:\"historical_entries\""]; + // bond_denom defines the bondable coin denomination. string bond_denom = 5 [(gogoproto.moretags) = "yaml:\"bond_denom\""]; } diff --git a/proto/cosmos/staking/v1beta1/tx.proto b/proto/cosmos/staking/v1beta1/tx.proto index ffcd74b2..7b05d89e 100644 --- a/proto/cosmos/staking/v1beta1/tx.proto +++ b/proto/cosmos/staking/v1beta1/tx.proto @@ -64,7 +64,6 @@ message MsgEditValidator { // We pass a reference to the new commission rate and min self delegation as // it's not mandatory to update. If not updated, the deserialized rate will be // zero with no way to distinguish if an update was intended. - // // REF: #2373 string commission_rate = 3 [ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", diff --git a/proto/cosmos/tx/v1beta1/service.proto b/proto/cosmos/tx/v1beta1/service.proto index 59df75ba..25214c43 100644 --- a/proto/cosmos/tx/v1beta1/service.proto +++ b/proto/cosmos/tx/v1beta1/service.proto @@ -7,6 +7,7 @@ import "cosmos/tx/v1beta1/tx.proto"; import "gogoproto/gogo.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; +option (gogoproto.goproto_registration) = true; option go_package = "github.com/cosmos/cosmos-sdk/types/tx"; // Service defines a gRPC service for interacting with transactions. @@ -42,6 +43,17 @@ message GetTxsEventRequest { repeated string events = 1; // pagination defines an pagination for the request. cosmos.base.query.v1beta1.PageRequest pagination = 2; + OrderBy order_by = 3; +} + +// OrderBy defines the sorting order +enum OrderBy { + // ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case. + ORDER_BY_UNSPECIFIED = 0; + // ORDER_BY_ASC defines ascending order + ORDER_BY_ASC = 1; + // ORDER_BY_DESC defines descending order + ORDER_BY_DESC = 2; } // GetTxsEventResponse is the response type for the Service.TxsByEvents diff --git a/proto/cosmos/tx/v1beta1/tx.proto b/proto/cosmos/tx/v1beta1/tx.proto index 05eea1f6..2b02874c 100644 --- a/proto/cosmos/tx/v1beta1/tx.proto +++ b/proto/cosmos/tx/v1beta1/tx.proto @@ -69,7 +69,6 @@ message TxBody { // those messages define the number and order of elements in AuthInfo's // signer_infos and Tx's signatures. Each required signer address is added to // the list only the first time it occurs. - // // By convention, the first required signer (usually from the first message) // is referred to as the primary signer and pays the fee for the whole // transaction. diff --git a/proto/irismod/htlc/genesis.proto b/proto/irismod/htlc/genesis.proto index b5eb9ab4..2c8cce3a 100644 --- a/proto/irismod/htlc/genesis.proto +++ b/proto/irismod/htlc/genesis.proto @@ -3,10 +3,14 @@ package irismod.htlc; import "gogoproto/gogo.proto"; import "irismod/htlc/htlc.proto"; +import "google/protobuf/timestamp.proto"; option go_package = "github.com/irisnet/irismod/modules/htlc/types"; -// GenesisState defines the htlc module's genesis state. +// GenesisState defines the HTLC module's genesis state message GenesisState { - map pending_htlcs = 1 [(gogoproto.nullable) = false]; -} \ No newline at end of file + Params params = 1 [ (gogoproto.nullable) = false ]; + repeated HTLC htlcs = 2 [ (gogoproto.nullable) = false ]; + repeated AssetSupply supplies = 3 [ (gogoproto.nullable) = false ]; + google.protobuf.Timestamp previous_block_time = 4 [ (gogoproto.nullable) = false, (gogoproto.stdtime) = true, (gogoproto.moretags) = "yaml:\"previous_block_time\"" ]; +} diff --git a/proto/irismod/htlc/htlc.proto b/proto/irismod/htlc/htlc.proto index 407cc0d1..b66610cf 100644 --- a/proto/irismod/htlc/htlc.proto +++ b/proto/irismod/htlc/htlc.proto @@ -3,34 +3,92 @@ package irismod.htlc; import "cosmos/base/v1beta1/coin.proto"; import "gogoproto/gogo.proto"; +import "google/protobuf/duration.proto"; option go_package = "github.com/irisnet/irismod/modules/htlc/types"; option (gogoproto.goproto_getters_all) = false; -// HTLC defines a struct for an HTLC +// HTLC defines the struct of an HTLC message HTLC { option (gogoproto.equal) = true; - string sender = 1; - string to = 2; - string receiver_on_other_chain = 3 [(gogoproto.moretags) = "yaml:\"receiver_on_other_chain\""]; - repeated cosmos.base.v1beta1.Coin amount = 4 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - string secret = 5; - uint64 timestamp = 6; - uint64 expiration_height = 7 [(gogoproto.moretags) = "yaml:\"expiration_height\""]; - HTLCState state = 8; + string id = 1; + string sender = 2; + string to = 3; + string receiver_on_other_chain = 4 [ (gogoproto.moretags) = "yaml:\"receiver_on_other_chain\"" ]; + string sender_on_other_chain = 5 [ (gogoproto.moretags) = "yaml:\"sender_on_other_chain\"" ]; + repeated cosmos.base.v1beta1.Coin amount = 6 [ (gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; + string hash_lock = 7 [ (gogoproto.moretags) = "yaml:\"hash_lock\"" ]; + string secret = 8; + uint64 timestamp = 9; + uint64 expiration_height = 10 [ (gogoproto.moretags) = "yaml:\"expiration_height\"" ]; + HTLCState state = 11; + uint64 closed_block = 12 [ (gogoproto.moretags) = "yaml:\"closed_block\"" ]; + bool transfer = 13; + SwapDirection direction = 14; } -// HTLCState defines a state for an HTLC +// HTLCState defines the state of an HTLC enum HTLCState { option (gogoproto.goproto_enum_prefix) = false; // HTLC_STATE_OPEN defines an open state. - HTLC_STATE_OPEN = 0 [(gogoproto.enumvalue_customname) = "Open"]; + HTLC_STATE_OPEN = 0 [ (gogoproto.enumvalue_customname) = "Open" ]; // HTLC_STATE_COMPLETED defines a completed state. - HTLC_STATE_COMPLETED = 1 [(gogoproto.enumvalue_customname) = "Completed"]; - // HTLC_STATE_EXPIRED defines an expired state. - HTLC_STATE_EXPIRED = 2 [(gogoproto.enumvalue_customname) = "Expired"]; + HTLC_STATE_COMPLETED = 1 [ (gogoproto.enumvalue_customname) = "Completed" ]; // HTLC_STATE_REFUNDED defines a refunded state. - HTLC_STATE_REFUNDED = 3 [(gogoproto.enumvalue_customname) = "Refunded"]; + HTLC_STATE_REFUNDED = 2 [ (gogoproto.enumvalue_customname) = "Refunded" ]; } + +// SwapDirection defines the direction of an HTLT +enum SwapDirection { + option (gogoproto.goproto_enum_prefix) = false; + + // NONE defines an htlt none direction. + NONE = 0 [ (gogoproto.enumvalue_customname) = "None" ]; + // INCOMING defines an htlt incoming direction. + INCOMING = 1 [ (gogoproto.enumvalue_customname) = "Incoming" ]; + // OUTGOING defines an htlt outgoing direction. + OUTGOING = 2 [ (gogoproto.enumvalue_customname) = "Outgoing" ]; +} + +message AssetSupply { + cosmos.base.v1beta1.Coin incoming_supply = 1 [ (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"incoming_supply\"" ]; + cosmos.base.v1beta1.Coin outgoing_supply = 2 [ (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"assetoutgoing_supply_params\"" ]; + cosmos.base.v1beta1.Coin current_supply = 3 [ (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"current_supply\"" ]; + cosmos.base.v1beta1.Coin time_limited_current_supply = 4 [ (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"time_limited_current_supply\"" ]; + google.protobuf.Duration time_elapsed = 5 [ (gogoproto.nullable) = false, (gogoproto.stdduration) = true, (gogoproto.moretags) = "yaml:\"time_elapsed\"" ]; +} + +// Params defines token module's parameters +message Params { + option (gogoproto.equal) = true; + option (gogoproto.goproto_stringer) = false; + + repeated AssetParam asset_params = 1 [ (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"asset_params\"" ]; +} + +message AssetParam { + option (gogoproto.equal) = true; + option (gogoproto.goproto_stringer) = false; + + string denom = 1; // name of the asset + SupplyLimit supply_limit = 2 [ (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"supply_limit\"" ]; // asset supply limit + bool active = 3; // denotes if asset is available or paused + string deputy_address = 4 [ (gogoproto.moretags) = "yaml:\"deputy_address\"" ]; // the address of the relayer process + string fixed_fee = 5 [ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false ]; // the fixed fee charged by the relayer process for outgoing swaps + string min_swap_amount = 6 [ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false ]; // Minimum swap amount + string max_swap_amount = 7 [ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false ]; // Maximum swap amount + uint64 min_block_lock = 8 [ (gogoproto.moretags) = "yaml:\"min_block_lock\"" ]; // Minimum swap block lock + uint64 max_block_lock = 9 [ (gogoproto.moretags) = "yaml:\"max_block_lock\"" ]; // Maximum swap block lock +} + +message SupplyLimit { + option (gogoproto.equal) = true; + option (gogoproto.goproto_stringer) = false; + + string limit = 1 [ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false ]; // the absolute supply limit for an asset + bool time_limited = 2 [ (gogoproto.moretags) = "yaml:\"time_limited\"" ]; // boolean for if the supply is also limited by time + google.protobuf.Duration time_period = 3 [ (gogoproto.nullable) = false, (gogoproto.stdduration) = true, (gogoproto.moretags) = "yaml:\"time_period\"" ]; // the duration for which the supply time limit applies + string time_based_limit = 4 [ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false ]; // the supply limit for an asset for each time period +} \ No newline at end of file diff --git a/proto/irismod/htlc/query.proto b/proto/irismod/htlc/query.proto index 11b15060..0367a493 100644 --- a/proto/irismod/htlc/query.proto +++ b/proto/irismod/htlc/query.proto @@ -2,25 +2,68 @@ syntax = "proto3"; package irismod.htlc; import "google/api/annotations.proto"; +import "gogoproto/gogo.proto"; import "irismod/htlc/htlc.proto"; option go_package = "github.com/irisnet/irismod/modules/htlc/types"; // Query provides defines the gRPC querier service service Query { - // Balance queries the balance of a single coin for a single account - rpc HTLC (QueryHTLCRequest) returns (QueryHTLCResponse) { - option (google.api.http).get = "/irismod/htlc/htlcs/{hash_lock}"; + // HTLC queries the HTLC by the specified hash lock + rpc HTLC(QueryHTLCRequest) returns (QueryHTLCResponse) { + option (google.api.http).get = "/irismod/htlc/htlcs/{id}"; + } + + // AssetSupply queries the supply of an asset + rpc AssetSupply(QueryAssetSupplyRequest) returns (QueryAssetSupplyResponse) { + option (google.api.http).get = "/irismod/htlc/supplies/{denom}"; + } + + // AssetSupplies queries the supplies of all assets + rpc AssetSupplies(QueryAssetSuppliesRequest) returns (QueryAssetSuppliesResponse) { + option (google.api.http).get = "/irismod/htlc/supplies"; + } + + // Params queries the htlc parameters + rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { + option (google.api.http).get = "/irismod/htlc/params"; } } // QueryHTLCRequest is the request type for the Query/HTLC RPC method message QueryHTLCRequest { - // address is the address to query balances for - string hash_lock = 1; + string id = 1; } // QueryBalanceResponse is the response type for the Query/HTLC RPC method message QueryHTLCResponse { HTLC htlc = 1; } + +// QueryAssetSupplyRequest is request type for the Query/AssetSupply RPC method +message QueryAssetSupplyRequest { + string denom = 1; +} + +// QueryAssetSupplyResponse is response type for the Query/AssetSupply RPC method +message QueryAssetSupplyResponse { + AssetSupply asset_supply = 1 [ (gogoproto.moretags) = "yaml:\"asset_supply\"" ]; +} + +// QueryAssetSuppliesRequest is request type for the Query/AssetSupplies RPC method +message QueryAssetSuppliesRequest { +} + +// QueryAssetSuppliesResponse is response type for the Query/AssetSupplies RPC method +message QueryAssetSuppliesResponse { + repeated AssetSupply asset_supplies = 1 [ (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"asset_supplies\"" ]; +} + +// QueryParamsRequest is request type for the Query/Parameters RPC method +message QueryParamsRequest { +} + +// QueryParamsResponse is response type for the Query/Parameters RPC method +message QueryParamsResponse { + Params params = 1 [ (gogoproto.nullable) = false ]; +} diff --git a/proto/irismod/htlc/tx.proto b/proto/irismod/htlc/tx.proto index e214339b..9d1d0d3d 100644 --- a/proto/irismod/htlc/tx.proto +++ b/proto/irismod/htlc/tx.proto @@ -7,17 +7,13 @@ import "gogoproto/gogo.proto"; option go_package = "github.com/irisnet/irismod/modules/htlc/types"; option (gogoproto.goproto_getters_all) = false; - -// Msg defines the htlc Msg service. +// Msg defines the HTLC Msg service service Msg { - // CreateHTLC defines a method for creating a HTLC. + // CreateHTLC defines a method for creating a HTLC rpc CreateHTLC(MsgCreateHTLC) returns (MsgCreateHTLCResponse); // ClaimHTLC defines a method for claiming a HTLC rpc ClaimHTLC(MsgClaimHTLC) returns (MsgClaimHTLCResponse); - - // RefundHTLC defines a method for refunding a HTLC. - rpc RefundHTLC(MsgRefundHTLC) returns (MsgRefundHTLCResponse); } // MsgCreateHTLC defines a message to create an HTLC @@ -26,35 +22,28 @@ message MsgCreateHTLC { string sender = 1; string to = 2; - string receiver_on_other_chain = 3 [(gogoproto.moretags) = "yaml:\"receiver_on_other_chain\""]; - repeated cosmos.base.v1beta1.Coin amount = 4 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - string hash_lock = 5 [(gogoproto.moretags) = "yaml:\"hash_lock\""]; - uint64 timestamp = 6; - uint64 time_lock = 7 [(gogoproto.moretags) = "yaml:\"time_lock\""]; + string receiver_on_other_chain = 3 [ (gogoproto.moretags) = "yaml:\"receiver_on_other_chain\"" ]; + string sender_on_other_chain = 4 [ (gogoproto.moretags) = "yaml:\"sender_on_other_chain\"" ]; + repeated cosmos.base.v1beta1.Coin amount = 5 [ (gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; + string hash_lock = 6 [ (gogoproto.moretags) = "yaml:\"hash_lock\"" ]; + uint64 timestamp = 7; + uint64 time_lock = 8 [ (gogoproto.moretags) = "yaml:\"time_lock\"" ]; + bool transfer = 9; } -// MsgCreateHTLCResponse defines the Msg/CreateHTLC response type. -message MsgCreateHTLCResponse {} +// MsgCreateHTLCResponse defines the Msg/CreateHTLC response type +message MsgCreateHTLCResponse { + string id = 1; +} // MsgClaimHTLC defines a message to claim an HTLC message MsgClaimHTLC { option (gogoproto.equal) = true; string sender = 1; - string hash_lock = 2 [(gogoproto.moretags) = "yaml:\"hash_lock\""]; + string id = 2 [ (gogoproto.moretags) = "yaml:\"id\"" ]; string secret = 3; } -// MsgClaimHTLCResponse defines the Msg/ClaimHTLC response type. +// MsgClaimHTLCResponse defines the Msg/ClaimHTLC response type message MsgClaimHTLCResponse {} - -// MsgRefundHTLC defines a message to refund an HTLC -message MsgRefundHTLC { - option (gogoproto.equal) = true; - - string sender = 1; - string hash_lock = 2 [(gogoproto.moretags) = "yaml:\"hash_lock\""]; -} - -// MsgRefundHTLCResponse defines the Msg/RefundHTLC response type. -message MsgRefundHTLCResponse {} \ No newline at end of file diff --git a/src/client.ts b/src/client.ts index 51380219..01432400 100644 --- a/src/client.ts +++ b/src/client.ts @@ -15,109 +15,189 @@ export class Client { config: DefaultClientConfig; /** Axios client for tendermint rpc requests */ - rpcClient: RpcClient; - - /** WebSocket event listener */ - // eventListener: EventListener; + private _rpcClient?: RpcClient; + get rpcClient():RpcClient{ + if (!this._rpcClient) {this._rpcClient = new RpcClient(this.config.rpcConfig)} + return this._rpcClient; + } /** Auth module */ - auth: modules.Auth; + private _auth?: modules.Auth; + get auth(): modules.Auth{ + if (!this._auth) {this._auth = new modules.Auth(this)} + return this._auth; + } /** Token module */ - token: modules.Token; + private _token?: modules.Token; + get token(): modules.Token{ + if (this.config.chainNetwork != consts.ChainNetwork.Iris) { + throw new SdkError('This module is not supported on the current chain network.',CODES.Panic); + } + if (!this._token) { + this._token = new modules.Token(this) + } + return this._token; + } /** Bank module */ - bank: modules.Bank; + private _bank?: modules.Bank; + get bank():modules.Bank{ + if (!this._bank) {this._bank = new modules.Bank(this)} + return this._bank; + } /** Key management module */ - keys: modules.Keys; + private _keys?: modules.Keys; + get keys():modules.Keys{ + if (!this._keys) {this._keys = new modules.Keys(this)} + return this._keys; + } /** Protobuf module */ - protobuf: modules.Protobuf; + private _protobuf?: modules.Protobuf; + get protobuf():modules.Protobuf{ + if (!this._protobuf) {this._protobuf = new modules.Protobuf(this)} + return this._protobuf; + } /** Staking module */ - staking: modules.Staking; + private _staking?: modules.Staking; + get staking():modules.Staking{ + if (!this._staking) {this._staking = new modules.Staking(this)} + return this._staking; + } /** Tx module */ - tx: modules.Tx; + private _tx?: modules.Tx; + get tx():modules.Tx{ + if (!this._tx) {this._tx = new modules.Tx(this)} + return this._tx; + } /** Gov module */ - gov: modules.Gov; + private _gov?: modules.Gov; + get gov():modules.Gov{ + if (!this._gov) {this._gov = new modules.Gov(this)} + return this._gov; + } + /** Slashing module */ - slashing: modules.Slashing; + private _slashing?: modules.Slashing; + get slashing(): modules.Slashing{ + if (!this._slashing) {this._slashing = new modules.Slashing(this)} + return this._slashing; + } /** Distribution module */ - distribution: modules.Distribution; + private _distribution?: modules.Distribution; + get distribution(): modules.Distribution{ + if (!this._distribution) {this._distribution = new modules.Distribution(this)} + return this._distribution; + } /** Service module */ - // service: modules.Service; + // private _service?: modules.Service; + // get service(): modules.Service{ + // if (this.config.chainNetwork != consts.ChainNetwork.Iris) { + // throw new SdkError('This module is not supported on the current chain network.',CODES.Panic); + // } + // if (!this._service) {this._service = new modules.Service(this)} + // return this._service; + // } /** Oracle module */ - // oracle: modules.Oracle; + // private _oracle?: modules.Oracle; + // get oracle(): modules.Oracle{ + // if (this.config.chainNetwork != consts.ChainNetwork.Iris) { + // throw new SdkError('This module is not supported on the current chain network.',CODES.Panic); + // } + // if (!this._oracle) {this._oracle = new modules.Oracle(this)} + // return this._oracle; + // } /** Random module */ - // random: modules.Random; + // private _random?: modules.Random; + // get random(): modules.Random{ + // if (this.config.chainNetwork != consts.ChainNetwork.Iris) { + // throw new SdkError('This module is not supported on the current chain network.',CODES.Panic); + // } + // if (!this._random) {this._random = new modules.Random(this)} + // return this._random; + // } /** Utils module */ - utils: modules.Utils; + private _utils?: modules.Utils; + get utils(): modules.Utils{ + if (!this._utils) {this._utils = new modules.Utils(this)} + return this._utils; + } /** Tendermint module */ - tendermint: modules.Tendermint; + private _tendermint?: modules.Tendermint; + get tendermint(): modules.Tendermint{ + if (!this._tendermint) {this._tendermint = new modules.Tendermint(this)} + return this._tendermint; + } /** Coinswap module */ - // coinswap: modules.Coinswap; + private _coinswap?: modules.Coinswap; + get coinswap(): modules.Coinswap{ + if (this.config.chainNetwork != consts.ChainNetwork.Iris) { + throw new SdkError('This module is not supported on the current chain network.',CODES.Panic); + } + if (!this._coinswap) {this._coinswap = new modules.Coinswap(this)} + return this._coinswap; + } /** NFT module */ - nft: modules.Nft; + private _nft?: modules.Nft; + get nft(): modules.Nft{ + if (this.config.chainNetwork != consts.ChainNetwork.Iris) { + throw new SdkError('This module is not supported on the current chain network.',CODES.Panic); + } + if (!this._nft) {this._nft = new modules.Nft(this)} + return this._nft; + } + + /** Htlc module */ + private _htlc?: modules.Htlc; + get htlc():modules.Htlc{ + if (this.config.chainNetwork != consts.ChainNetwork.Iris) { + throw new SdkError('This module is not supported on the current chain network.',CODES.Panic); + } + if (!this._htlc) {this._htlc = new modules.Htlc(this)} + return this._htlc; + } + + /** Ibc module */ + private _ibc?: modules.Ibc; + get ibc():modules.Ibc{ + if (!this._ibc) {this._ibc = new modules.Ibc(this)} + return this._ibc; + } /** IRISHub SDK Constructor */ constructor(config: DefaultClientConfig) { this.config = config; if (!this.config.rpcConfig) this.config.rpcConfig = {}; - - this.config.bech32Prefix = - config.network === consts.Network.Mainnet - ? { - AccAddr: 'iaa', - AccPub: 'iap', - ValAddr: 'iva', - ValPub: 'ivp', - ConsAddr: 'ica', - ConsPub: 'icp', - } - : { - AccAddr: 'faa', - AccPub: 'fap', - ValAddr: 'fva', - ValPub: 'fvp', - ConsAddr: 'fca', - ConsPub: 'fcp', - }; + if (!this.config.bech32Prefix || !this.config.bech32Prefix.AccAddr) { + switch(this.config.chainNetwork){ + case consts.ChainNetwork.Cosmos: + this.config.bech32Prefix = types.Bech32Prefix_Cosmos; + break; + case consts.ChainNetwork.Akash: + this.config.bech32Prefix = types.Bech32Prefix_Akash; + break; + case consts.ChainNetwork.Iris: + default: + this.config.bech32Prefix = types.Bech32Prefix_Iris; + break + } + } this.config.rpcConfig.baseURL = this.config.node; - this.rpcClient = new RpcClient(this.config.rpcConfig); - // this.eventListener = new EventListener(this); //TODO (lvsc) there is an error 'Event... is not a constructor' - - // Modules - this.token = new modules.Token(this); - this.utils = new modules.Utils(this); - this.bank = new modules.Bank(this); - this.keys = new modules.Keys(this); - this.tx = new modules.Tx(this); - this.protobuf = new modules.Protobuf(this); - this.staking = new modules.Staking(this); - this.gov = new modules.Gov(this); - this.slashing = new modules.Slashing(this); - this.distribution = new modules.Distribution(this); - // this.service = new modules.Service(this); - // this.oracle = new modules.Oracle(this); - // this.random = new modules.Random(this); - this.auth = new modules.Auth(this); - this.tendermint = new modules.Tendermint(this); - // this.coinswap = new modules.Coinswap(this); - this.nft = new modules.Nft(this); - // Set default encrypt/decrypt methods if (!this.config.keyDAO.encrypt || !this.config.keyDAO.decrypt) { @@ -155,6 +235,17 @@ export class Client { return this; } + /** + * Set IRISHub network type + * + * @param network IRISHub network type, mainnet / testnet + * @returns The SDK itself + */ + withChainNetwork(chainNetwork: consts.ChainNetwork) { + this.config.chainNetwork = chainNetwork; + return this; + } + /** * Set IRISHub chain-id * @@ -199,7 +290,7 @@ export class Client { withRpcConfig(rpcConfig: AxiosRequestConfig) { rpcConfig.baseURL = this.config.node; this.config.rpcConfig = rpcConfig; - this.rpcClient = new RpcClient(this.config.rpcConfig); + this._rpcClient = new RpcClient(this.config.rpcConfig); return this; } } @@ -225,7 +316,7 @@ export interface ClientConfig { keyDAO?: KeyDAO; /** Bech32 prefix of the network, will be overwritten by network type */ - bech32Prefix?: Bech32Prefix; + bech32Prefix?: types.Bech32Prefix; /** Axios request config for tendermint rpc requests */ rpcConfig?: AxiosRequestConfig; @@ -234,22 +325,24 @@ export interface ClientConfig { /** Default IRISHub Client Config */ export class DefaultClientConfig implements ClientConfig { node: string; + chainNetwork: consts.ChainNetwork; network: consts.Network; chainId: string; gas: string; fee: types.Coin; keyDAO: KeyDAO; - bech32Prefix: Bech32Prefix; + bech32Prefix: types.Bech32Prefix; rpcConfig: AxiosRequestConfig; constructor() { this.node = ''; this.network = types.Network.Mainnet; + this.chainNetwork = types.ChainNetwork.Iris; this.chainId = ''; this.gas = '100000'; this.fee = { amount: '', denom: '' }; this.keyDAO = new DefaultKeyDAOImpl(); - this.bech32Prefix = {} as Bech32Prefix; + this.bech32Prefix = {} as types.Bech32Prefix; this.rpcConfig = { timeout: 2000 }; } } @@ -301,18 +394,6 @@ export interface KeyDAO { decrypt?(encrptedPrivKey: string, password: string): string; } -/** - * Bech32 Prefix - */ -export interface Bech32Prefix { - AccAddr: string; - AccPub: string; - ValAddr: string; - ValPub: string; - ConsAddr: string; - ConsPub: string; -} - export class DefaultKeyDAOImpl implements KeyDAO { write(name: string, key: Wallet): void { throw new SdkError( diff --git a/src/modules/bank.ts b/src/modules/bank.ts index d83647be..c5374b8a 100644 --- a/src/modules/bank.ts +++ b/src/modules/bank.ts @@ -110,7 +110,7 @@ export class Bank { * AllBalances queries the balance of all coins for a single account. * @param address is the address to query balances for. */ - queryAllBalances(address:string): Promise { + queryAllBalances(address:string,height?: string): Promise { if (!address) { throw new SdkError("address can ont be empty"); } @@ -120,7 +120,8 @@ export class Bank { return this.client.rpcClient.protoQuery( '/cosmos.bank.v1beta1.Query/AllBalances', request, - types.bank_query_pb.QueryAllBalancesResponse + types.bank_query_pb.QueryAllBalancesResponse, + height ); } diff --git a/src/modules/coinswap.ts b/src/modules/coinswap.ts index 80f6edb4..3eaba813 100644 --- a/src/modules/coinswap.ts +++ b/src/modules/coinswap.ts @@ -1,18 +1,8 @@ import { Client } from '../client'; +import { Crypto } from '../utils/crypto'; import * as types from '../types'; -import * as mathjs from 'mathjs'; -import * as is from 'is_js'; -import { - MsgAddLiquidity, - DepositRequest, - WithdrawRequest, - MsgRemoveLiquidity, - SwapOrderRequest, - MsgSwapOrder, - STD_DENOM, - Coin, -} from '../types'; import { SdkError, CODES } from '../errors'; +import { json } from 'mathjs'; /** * Implementation of the [Constant Product Market Maker Model](https://github.com/runtimeverification/verified-smart-contracts/blob/uniswap/uniswap/x-y-k.pdf) token exchange protocol on IRISHub. @@ -24,399 +14,127 @@ import { SdkError, CODES } from '../errors'; export class Coinswap { /** @hidden */ private client: Client; - /** @hidden */ - private formatUniABSPrefix = 'uni:'; - /** @hidden */ - private mathConfig = { - number: 'BigNumber', // Choose 'number' (default), 'BigNumber', or 'Fraction' - precision: 64, // 64 by default, only applicable for BigNumbers - }; - /** @hidden */ - private math: Partial; /** @hidden */ constructor(client: Client) { this.client = client; - this.math = mathjs.create(mathjs.all, this.mathConfig); } /** - * - * Query liquidity by id - * @param id The liquidity id + * add liquidity + * @param max_token Upper limit of Token of mortgages acceptable to users + * @param exact_standard_amt Number of standard specified by the user + * @param min_liquidity The minimum number of liquid securities acceptable to the user + * @param deadline The validity period of this transaction + * @param baseTx { types.BaseTx } * @returns - * @since v1.0 */ - queryLiquidity(id: string): Promise { - return this.client.rpcClient.abciQuery( - 'custom/coinswap/liquidity', - { - id, - } - ); - } - - /** - * Add liquidity by exact iris amount, calculated token and liquidity amount - * @param request Add liquidity request - * @param baseTx - * @returns - * @since v1.0 - */ - async deposit( - request: DepositRequest, + async addLiquidity( + max_token: types.Coin, + exact_standard_amt: string, + min_liquidity: string, + deadline: number, baseTx: types.BaseTx ): Promise { - const from = this.client.keys.show(baseTx.from); - const msgs: types.Msg[] = [new MsgAddLiquidity(request, from)]; - + const sender = this.client.keys.show(baseTx.from); + const msgs: any[] = [ + { + type: types.TxType.MsgAddLiquidity, + value: { + max_token, + exact_standard_amt, + min_liquidity, + deadline, + sender + } + } + ]; return this.client.tx.buildAndSend(msgs, baseTx); } - /** - * Remove liquidity by exact liquidity amount, calculated iris and token amount - * @param request Remove liquidity request - * @param baseTx - * @returns - * @since v1.0 - */ - async withdraw( - request: WithdrawRequest, - baseTx: types.BaseTx - ): Promise { - const from = this.client.keys.show(baseTx.from); - const msgs: types.Msg[] = [new MsgRemoveLiquidity(request, from)]; - - return this.client.tx.buildAndSend(msgs, baseTx); - } /** - * Swap coin by exact output, calculated input - * @param request Buy order request - * @param baseTx + * remove liquidity + * @param withdraw_liquidity The minimum number of liquid securities acceptable to the user + * @param min_token Upper limit of Token of mortgages acceptable to users + * @param min_standard_amt Number of standard specified by the user + * @param deadline The validity period of this transaction + * @param baseTx { types.BaseTx } * @returns - * @since v1.0 - */ - async buy( - request: SwapOrderRequest, + */ + async removeLiquidity( + withdraw_liquidity: types.Coin, + min_token: string, + min_standard_amt: string, + deadline: number, baseTx: types.BaseTx ): Promise { - const msgs: types.Msg[] = [new MsgSwapOrder(request, true)]; - + const sender = this.client.keys.show(baseTx.from); + const msgs: any[] = [ + { + type: types.TxType.MsgRemoveLiquidity, + value: { + withdraw_liquidity, + min_token, + min_standard_amt, + deadline, + sender + } + } + ]; return this.client.tx.buildAndSend(msgs, baseTx); } /** - * Swap coin by exact input, calculated output - * @param request Sell order request - * @param baseTx + * swap order + * @param input The token sold by the user + * @param output The token that the user buys back + * @param deadline The validity period of this transaction + * @param is_buy_order buy or sell + * @param baseTx { types.BaseTx } * @returns - * @since v1.0 - */ - async sell( - request: SwapOrderRequest, + */ + async swapOrder( + input: types.Coin, + output: types.Coin, + is_buy_order:boolean, + deadline: number, baseTx: types.BaseTx ): Promise { - const msgs: types.Msg[] = [new MsgSwapOrder(request, true)]; - + const address = this.client.keys.show(baseTx.from); + const msgs: any[] = [ + { + type: types.TxType.MsgSwapOrder, + value: { + input: {address,coin:input}, + output: {address,coin: output}, + deadline, + is_buy_order + } + } + ]; return this.client.tx.buildAndSend(msgs, baseTx); } - private getUniDenomFromDenoms(denom1: string, denom2: string): string { - if (denom1 === denom2) { - throw new SdkError('input and output denomination are equal'); - } - if (denom1 !== STD_DENOM && denom2 !== STD_DENOM) { - throw new SdkError( - `standard denom: '${STD_DENOM}', denom1: '${denom1}', denom2: '${denom2}'` - ); - } - if (denom1 === STD_DENOM) { - return this.formatUniABSPrefix + denom2; - } - return this.formatUniABSPrefix + denom1; - } - - /** - * Calculate the amount of another token to be received based on the exact amount of tokens sold - * @param exactSoldCoin sold coin - * @param soldTokenDenom received token's denom - * @returns output token amount to be received - * @since v1.0 - */ - async calculateWithExactInput( - exactSoldCoin: Coin, - boughtTokenDenom: string - ): Promise { - if (exactSoldCoin.denom !== STD_DENOM && boughtTokenDenom !== STD_DENOM) { - return this.calculateDoubleWithExactInput( - exactSoldCoin, - boughtTokenDenom - ); - } - const uniDenom = this.getUniDenomFromDenoms( - exactSoldCoin.denom, - boughtTokenDenom - ); - const reservePool = await this.queryLiquidity(uniDenom); - let inputReserve: number; - let outputReserve: number; - if (reservePool.standard.denom === exactSoldCoin.denom) { - inputReserve = Number(reservePool.standard.amount); - outputReserve = Number(reservePool.token.amount); - } else { - inputReserve = Number(reservePool.token.amount); - outputReserve = Number(reservePool.standard.amount); - } - - if (is.not.positive(inputReserve)) { - throw new SdkError( - `liquidity pool insufficient funds: ['${inputReserve}${exactSoldCoin.denom}']` - ); - } - if (is.not.positive(outputReserve)) { - throw new SdkError( - `liquidity pool insufficient funds: ['${outputReserve}${boughtTokenDenom}']` - ); - } - - const boughtAmt = this.getInputPrice( - Number(exactSoldCoin.amount), - inputReserve, - outputReserve, - Number(reservePool.fee) - ); - - if (is.above(Number(boughtAmt), outputReserve)) { - throw new SdkError( - `liquidity pool insufficient balance of '${boughtTokenDenom}', only bought: '${outputReserve}', got: '${inputReserve}'` - ); - } - - return boughtAmt - } - - /** - * Calculate the amount of the token to be paid based on the exact amount of the token to be bought - * @param exactBoughtCoin - * @param soldTokenDenom - * @return: input amount to be paid - * @since v1.0 - */ - async calculateWithExactOutput( - exactBoughtCoin: Coin, - soldTokenDenom: string - ): Promise { - if (exactBoughtCoin.denom !== STD_DENOM && soldTokenDenom !== STD_DENOM) { - return this.calculateDoubleWithExactOutput( - exactBoughtCoin, - soldTokenDenom - ); - } - const uniDenom = this.getUniDenomFromDenoms( - exactBoughtCoin.denom, - soldTokenDenom - ); - const reservePool = await this.queryLiquidity(uniDenom); - let inputReserve: number; - let outputReserve: number; - if (reservePool.standard.denom === soldTokenDenom) { - inputReserve = Number(reservePool.standard.amount); - outputReserve = Number(reservePool.token.amount); - } else { - inputReserve = Number(reservePool.token.amount); - outputReserve = Number(reservePool.standard.amount); - } - if (is.not.positive(inputReserve)) { - throw new SdkError( - `liquidity pool insufficient funds, actual ['${inputReserve}${soldTokenDenom}']` - ); - } - if (is.not.positive(outputReserve)) { - throw new SdkError( - `liquidity pool insufficient funds, actual ['${outputReserve}${exactBoughtCoin.denom}']` - ); - } - if (is.above(Number(exactBoughtCoin.amount), outputReserve)) { - throw new SdkError( - `liquidity pool insufficient balance of '${exactBoughtCoin.denom}', user expected: '${exactBoughtCoin.amount}', got: '${outputReserve}'` - ); - } - - const paidAmt = this.getOutputPrice( - Number(exactBoughtCoin.amount), - inputReserve, - outputReserve, - Number(reservePool.fee) - ); - - if (is.infinite(paidAmt)) { - throw new SdkError( - `infinite amount of '${soldTokenDenom}' is required` - ); - } - - return paidAmt; - } /** - * Calculate token amount and liquidity amount of the deposit request by exact standard token amount - * @param exactStdAmt Exact standard token amount to be deposited - * @param calculatedDenom The token denom being calculated - * @returns The [[DepositRequest]], max_token = -1 means the liquidity pool is empty, users can deposit any amount of the token - * @since v1.0 - */ - async calculateDeposit( - exactStdAmt: number, - calculatedDenom: string - ): Promise { - const reservePool = await this.queryLiquidity( - this.getUniDenomFromDenoms(STD_DENOM, calculatedDenom) - ); - - // Initiate default deposit request, max_token = -1 means the liquidity pool is empty, users can deposit any amount of the token - const depositRequest: DepositRequest = { - exact_standard_amt: exactStdAmt, - max_token: { denom: calculatedDenom, amount: '-1' }, - min_liquidity: exactStdAmt, - deadline: 10000, // default 10s - }; - - if ( - is.positive(Number(reservePool.standard.amount)) && - is.positive(Number(reservePool.token.amount)) - ) { - // ∆t = ⌊(∆i/i) * t⌋ + 1 - const deltaTokenAmt = - this.math.floor!( - this.math.multiply!( - this.math.divide!(exactStdAmt, Number(reservePool.standard.amount)), - Number(reservePool.token.amount) - ) - ) + 1; - depositRequest.max_token = { - denom: calculatedDenom, - amount: String(deltaTokenAmt), - }; - } - - return depositRequest; - } - - /** - * Calculate how many tokens can be withdrawn by exact liquidity amount - * @param exactWithdrawLiquidity Exact liquidity amount to be withdrawn - * @returns The [[WithdrawRequest]] - * @since v1.0 - */ - async calculateWithdraw( - exactWithdrawLiquidity: Coin - ): Promise { - const reservePool = await this.queryLiquidity(exactWithdrawLiquidity.denom); - - // Initiate default withdraw request - const withdrawRequest: WithdrawRequest = { - min_standard_amt: 0, - min_token: 0, - withdraw_liquidity: exactWithdrawLiquidity, - deadline: 10000, // default 10s - }; - - if ( - is.positive(Number(reservePool.standard.amount)) && - is.positive(Number(reservePool.token.amount)) - ) { - // ∆i = ⌊(∆l/l) * i⌋ - const deltaStdAmt = this.math.floor!( - this.math.multiply!( - this.math.divide!( - Number(exactWithdrawLiquidity.amount), - Number(reservePool.liquidity.amount) - ), - Number(reservePool.standard.amount) - ) - ); - withdrawRequest.min_standard_amt = deltaStdAmt; - - // ∆t = ⌊(∆l/l) * t⌋ - const deltaTokenAmt = this.math.floor!( - this.math.multiply!( - this.math.divide!( - Number(exactWithdrawLiquidity.amount), - Number(reservePool.liquidity.amount) - ), - Number(reservePool.token.amount) - ) - ); - withdrawRequest.min_token = deltaTokenAmt; + * + * Query liquidity by id + * @param id The liquidity id + * @returns + */ + queryLiquidity(id: string): Promise { + if (!id) { + throw new SdkError("id can ont be empty"); } + const request = new types.coinswap_query_pb.QueryLiquidityRequest(); + request.setId(id); - return withdrawRequest; - } - - private async calculateDoubleWithExactInput( - exactSoldCoin: Coin, - boughtTokenDenom: string - ): Promise { - const boughtStandardAmount = await this.calculateWithExactInput( - exactSoldCoin, - STD_DENOM - ); - const boughtTokenAmt = await this.calculateWithExactInput( - { denom: STD_DENOM, amount: String(boughtStandardAmount) }, - boughtTokenDenom - ); - return boughtTokenAmt; - } - - private async calculateDoubleWithExactOutput( - exactBoughtCoin: Coin, - soldTokenDenom: string - ): Promise { - const soldStandardAmount = await this.calculateWithExactOutput( - exactBoughtCoin, - STD_DENOM + return this.client.rpcClient.protoQuery( + '/irismod.coinswap.Query/Liquidity', + request, + types.coinswap_query_pb.QueryLiquidityResponse ); - const soldTokenAmt = await this.calculateWithExactOutput( - { denom: STD_DENOM, amount: String(soldStandardAmount) }, - soldTokenDenom - ); - return soldTokenAmt; - } - - // getInputPrice returns the amount of coins bought (calculated) given the input amount being sold (exact) - // The fee is included in the input coins being bought - // https://github.com/runtimeverification/verified-smart-contracts/blob/uniswap/uniswap/x-y-k.pdf - private getInputPrice( - inputAmt: number, - inputReserve: number, - outputReserve: number, - fee: number - ): number { - const deltaFee = 1 - fee; - const inputAmtWithFee = this.math.multiply!(inputAmt, deltaFee); - const numerator = this.math.multiply!(inputAmtWithFee, outputReserve); - const denominator = this.math.add!( - this.math.floor!(inputReserve), - inputAmtWithFee - ); - return this.math.floor!(Number(this.math.divide!(numerator, denominator))); } - // getOutputPrice returns the amount of coins sold (calculated) given the output amount being bought (exact) - // The fee is included in the output coins being bought - private getOutputPrice( - outputAmt: number, - inputReserve: number, - outputReserve: number, - fee: number - ): number { - const deltaFee = 1 - fee; - const numerator = this.math.multiply!(inputReserve, outputAmt); - const denominator = this.math.multiply!( - this.math.subtract!(outputReserve, outputAmt), - deltaFee - ); - return this.math.floor!(Number(this.math.divide!(numerator, denominator))) + 1; - } } diff --git a/src/modules/gov.ts b/src/modules/gov.ts index c2250c25..969f8c7e 100644 --- a/src/modules/gov.ts +++ b/src/modules/gov.ts @@ -133,7 +133,11 @@ export class Gov { /** * Proposals queries all proposals based on given status. - * @param proposal_id defines the unique id of the proposal. + * @param option { + proposal_status?:types.ProposalStatus, + voter?:string, + depositor?:string + } */ queryProposals( option:{ diff --git a/src/modules/htlc.ts b/src/modules/htlc.ts new file mode 100644 index 00000000..25f80afd --- /dev/null +++ b/src/modules/htlc.ts @@ -0,0 +1,146 @@ +import { Client } from '../client'; +import { Crypto } from '../utils/crypto'; +import * as types from '../types'; +import { SdkError, CODES } from '../errors'; + +/** + * This module implements HTLC related functions + * + * + * @category Modules + * @since v0.17 + */ +export class Htlc { + /** @hidden */ + private client: Client; + /** @hidden */ + constructor(client: Client) { + this.client = client; + } + + /** + * create an HTLC + * @param {Object} param { + * sender + * to + * receiver_on_other_chain + * sender_on_other_chain + * amount + * hash_lock + * timestamp + * time_lock + * transfer + * } + * @param baseTx { types.BaseTx } + */ + createHTLC( + param:{ + sender: string, + to: string, + receiver_on_other_chain: string, + sender_on_other_chain: string, + amount: types.Coin[], + hash_lock: string, + timestamp: number, + time_lock: number, + transfer: boolean}, + baseTx: types.BaseTx + ):Promise{ + if (!Crypto.checkAddress(param.to, this.client.config.bech32Prefix.AccAddr)) { + throw new SdkError('Invalid bech32 address'); + } + const from = this.client.keys.show(baseTx.from); + const msgs: any[] = [ + { + type:types.TxType.MsgCreateHTLC, + value:{...param} + } + ]; + return this.client.tx.buildAndSend(msgs, baseTx); + } + + /** + * claim an HTLC + * @param sender + * @param id + * @param secret + * @param baseTx + */ + claimHTLC( + sender: string, + id: string, + secret: string, + baseTx: types.BaseTx + ):Promise{ + const msgs: any[] = [ + { + type:types.TxType.MsgClaimHTLC, + value:{ + sender, + id, + secret + } + } + ]; + return this.client.tx.buildAndSend(msgs, baseTx); + } + + /** + * HTLC queries the HTLC by the specified hash lock + * @type id + */ + queryHTLC(id:string): Promise{ + if (!id) { + throw new SdkError("id can ont be empty"); + } + const request = new types.htlc_query_pb.QueryHTLCRequest(); + request.setId(id); + return this.client.rpcClient.protoQuery( + '/irismod.htlc.Query/HTLC', + request, + types.htlc_query_pb.QueryHTLCResponse + ); + } + + /** + * AssetSupply queries the supply of an asset + * @type denom + */ + queryAssetSupply(denom:string): Promise{ + if (!denom) { + throw new SdkError("denom can ont be empty"); + } + const request = new types.htlc_query_pb.QueryAssetSupplyRequest(); + request.setDenom(denom); + return this.client.rpcClient.protoQuery( + '/irismod.htlc.Query/AssetSupply', + request, + types.htlc_query_pb.QueryAssetSupplyResponse + ); + } + + /** + * AssetSupplies queries the supplies of all assets + */ + queryAssetSupplies(): Promise{ + const request = new types.htlc_query_pb.QueryAssetSuppliesRequest(); + return this.client.rpcClient.protoQuery( + '/irismod.htlc.Query/AssetSupplies', + request, + types.htlc_query_pb.QueryAssetSuppliesResponse + ); + } + + /** + * Params queries the htlc parameters + */ + queryParams(): Promise{ + const request = new types.htlc_query_pb.QueryParamsRequest(); + return this.client.rpcClient.protoQuery( + '/irismod.htlc.Query/Params', + request, + types.htlc_query_pb.QueryParamsResponse + ); + } + +} diff --git a/src/modules/ibc.ts b/src/modules/ibc.ts new file mode 100644 index 00000000..18f99595 --- /dev/null +++ b/src/modules/ibc.ts @@ -0,0 +1,131 @@ +import { Client } from '../client'; +import { Crypto } from '../utils/crypto'; +import * as types from '../types'; +import { ModelCreator } from '../helper'; +import { SdkError, CODES } from '../errors'; + +/** + * This module implements IBC related functions + * + * + * @category Modules + * @since v0.17 + */ + +export class Ibc { + /** @hidden */ + private client: Client; + /** @hidden */ + constructor(client: Client) { + this.client = client; + } + + /** + * ibc transfer + * @param param:{ + source_port: string; + source_channel: string; + token: Coin; + receiver: string; + timeout_height?: {revision_number:number, revision_height:number}, + timeout_timestamp?:number, + } + * @param baseTx { types.BaseTx } + * @returns + * @since v0.17 + */ + async transfer( + param:{ + source_port: string, + source_channel: string, + token: types.Coin, + receiver: string, + timeout_height?: {revision_number:number, revision_height:number}, + timeout_timestamp?:number, + }, + baseTx: types.BaseTx + ): Promise { + if (!param.timeout_height && !param.timeout_timestamp) { + throw new SdkError("there must be one timeout_height or timeout_timestamp"); + } + const from = this.client.keys.show(baseTx.from); + const msgs: any[] = [ + { + type:types.TxType.MsgTransfer, + value:{ + source_port: param.source_port, + source_channel: param.source_channel, + token: param.token, + sender: from, + receiver: param.receiver, + timeout_height: param.timeout_height, + timeout_timestamp: param.timeout_timestamp + } + } + ]; + return this.client.tx.buildAndSend(msgs, baseTx); + } + + /** + * DenomTrace queries a denomination trace information. + * @param hash (in hex format) of the denomination trace information. + */ + queryDenomTrace(hash:string): Promise { + if (!hash) { + throw new SdkError("hash can ont be empty"); + } + const request = new types.ibc_transfer_query_pb.QueryDenomTraceRequest(); + request.setHash(hash); + return this.client.rpcClient.protoQuery( + '/ibc.applications.transfer.v1.Query/DenomTrace', + request, + types.ibc_transfer_query_pb.QueryDenomTraceResponse + ); + } + + /** + * DenomTraces queries all denomination traces. + */ + queryDenomTraces( + page_number:number = 1, + page_size:number = 10 + ): Promise { + const pagination = ModelCreator.createPaginationModel(page_number, page_size, true) + const request = new types.ibc_transfer_query_pb.QueryDenomTracesRequest(); + request.setPagination(pagination); + return this.client.rpcClient.protoQuery( + '/ibc.applications.transfer.v1.Query/DenomTraces', + request, + types.ibc_transfer_query_pb.QueryDenomTracesResponse + ); + } + + /** + * Params queries all parameters of the ibc-transfer module. + */ + queryParams(): Promise { + const request = new types.ibc_transfer_query_pb.QueryParamsRequest(); + return this.client.rpcClient.protoQuery( + '/ibc.applications.transfer.v1.Query/Params', + request, + types.ibc_transfer_query_pb.QueryParamsResponse + ); + } + + /** + * Channels queries all the IBC channels of a chain. + */ + queryChannels( + page_number:number = 1, + page_size:number = 10 + ): Promise { + const pagination = ModelCreator.createPaginationModel(page_number, page_size, true) + const request = new types.ibc_channel_query_pb.QueryChannelsRequest(); + request.setPagination(pagination); + return this.client.rpcClient.protoQuery( + '/ibc.core.channel.v1.Query/Channels', + request, + types.ibc_channel_query_pb.QueryChannelsResponse + ); + } +} \ No newline at end of file diff --git a/src/modules/index.ts b/src/modules/index.ts index e9839b78..eb55a56a 100644 --- a/src/modules/index.ts +++ b/src/modules/index.ts @@ -15,4 +15,6 @@ export * from './utils'; export * from './tendermint'; export * from './coinswap'; export * from './protobuf'; -export * from './nft'; \ No newline at end of file +export * from './nft'; +export * from './htlc'; +export * from './ibc'; \ No newline at end of file diff --git a/src/modules/keys.ts b/src/modules/keys.ts index 4a5f53ea..c7434ea0 100644 --- a/src/modules/keys.ts +++ b/src/modules/keys.ts @@ -33,7 +33,7 @@ export class Keys { name: string, password: string, type:types.PubkeyType = types.PubkeyType.secp256k1 - ): { address: string; mnemonic: string } { + ): types.Wallet { if (is.empty(name)) { throw new SdkError(`Name of the key can not be empty`); } @@ -65,15 +65,16 @@ export class Keys { password ); - // Save the key to app - this.client.config.keyDAO.write(name, { + let wallet = { address, privateKey: encryptedPrivKey, publicKey: Crypto.aminoMarshalPubKey(pubKey), mnemonic: encryptedMnemonic, - }); + }; + // Save the key to app + this.client.config.keyDAO.write(name, wallet); - return { address, mnemonic }; + return wallet; } /** @@ -97,7 +98,7 @@ export class Keys { index = 0, derive = true, saltPassword = '', - ): string { + ): types.Wallet { if (is.empty(name)) { throw new SdkError(`Name of the key can not be empty`); } @@ -121,6 +122,7 @@ export class Keys { derive, saltPassword ); + const pubKey = Crypto.getPublicKeyFromPrivateKey(privKey, type); const address = Crypto.getAddressFromPublicKey( pubKey, @@ -132,14 +134,20 @@ export class Keys { password ); - // Save the key to app - this.client.config.keyDAO.write(name, { + const encryptedMnemonic = this.client.config.keyDAO.encrypt( + mnemonic, + password + ); + + let wallet = { address, privateKey: encryptedPrivKey, publicKey: Crypto.aminoMarshalPubKey(pubKey), - }); - - return address; + mnemonic: encryptedMnemonic + }; + // Save the key to app + this.client.config.keyDAO.write(name, wallet); + return wallet; } /** @@ -149,7 +157,7 @@ export class Keys { * @param password Password of the keystore * @param keystore Keystore json or object * @param type Pubkey Type - * @returns Bech32 address + * @returns types.Wallet * @since v0.17 */ import( @@ -157,7 +165,7 @@ export class Keys { password: string, keystore: string | types.Keystore, type:types.PubkeyType = types.PubkeyType.secp256k1 - ): string { + ): types.Wallet { if (is.empty(name)) { throw new SdkError(`Name of the key can not be empty`); } @@ -187,14 +195,63 @@ export class Keys { password ); - // Save the key to app - this.client.config.keyDAO.write(name, { + let wallet = { address, privateKey: encryptedPrivKey, publicKey:Crypto.aminoMarshalPubKey(pubKey), - }); + }; + // Save the key to app + this.client.config.keyDAO.write(name, wallet); - return address; + return wallet; + } + + /** + * Import a key from keystore v1.0 + * + * @param name Name of the key + * @param password Password of the keystore + * @param keystore Keystore v1.0 + * @returns types.Wallet + * @since v0.17 + */ + importKeystore( + name: string, + password: string, + keystore: string + ): types.Wallet { + if (is.empty(name)) { + throw new SdkError(`Name of the key can not be empty`); + } + if (is.empty(password)) { + throw new SdkError(`Password of the key can not be empty`); + } + if (is.empty(keystore)) { + throw new SdkError(`Keystore can not be empty`); + } + if (!this.client.config.keyDAO.encrypt) { + throw new SdkError(`Encrypt method of KeyDAO not implemented`); + } + + let pk = Crypto.getPrivateKeyFromKeystoreV1(keystore, password); + + const pubKey = Crypto.getPublicKeyFromPrivateKey(pk.privKey, pk.type); + const address = Crypto.getAddressFromPublicKey( + pubKey, + this.client.config.bech32Prefix.AccAddr + ); + const encryptedPrivKey = this.client.config.keyDAO.encrypt( + pk.privKey, + password + ); + let wallet = { + address, + privateKey: encryptedPrivKey, + publicKey:Crypto.aminoMarshalPubKey(pubKey), + }; + // Save the key to app + this.client.config.keyDAO.write(name, wallet); + return wallet; } /** @@ -212,7 +269,7 @@ export class Keys { password: string, privateKey: string, type:types.PubkeyType = types.PubkeyType.secp256k1 - ): string { + ): types.Wallet { if (is.empty(name)) { throw new SdkError(`Name of the key can not be empty`); } @@ -238,14 +295,15 @@ export class Keys { privateKey, password ); - // Save the key to app - this.client.config.keyDAO.write(name, { + + let wallet = { address, privateKey: encryptedPrivKey, publicKey:Crypto.aminoMarshalPubKey(pubKey) - }); - - return address; + }; + // Save the key to app + this.client.config.keyDAO.write(name, wallet); + return wallet; } /** diff --git a/src/modules/protobuf.ts b/src/modules/protobuf.ts index a20563d7..72f812e2 100644 --- a/src/modules/protobuf.ts +++ b/src/modules/protobuf.ts @@ -108,18 +108,17 @@ export class Protobuf { messageModelClass = types.MsgTransferTokenOwner.getModelClass(); break; } - //coinswap case types.TxType.MsgAddLiquidity: { - + messageModelClass = types.MsgAddLiquidity.getModelClass(); break; } case types.TxType.MsgRemoveLiquidity: { - + messageModelClass = types.MsgRemoveLiquidity.getModelClass(); break; } case types.TxType.MsgSwapOrder: { - + messageModelClass = types.MsgSwapOrder.getModelClass(); break; } //nft @@ -156,6 +155,20 @@ export class Protobuf { messageModelClass = types.MsgDeposit.getModelClass(); break; } + //htlc + case types.TxType.MsgCreateHTLC: { + messageModelClass = types.MsgCreateHTLC.getModelClass(); + break; + } + case types.TxType.MsgClaimHTLC: { + messageModelClass = types.MsgClaimHTLC.getModelClass(); + break; + } + //ibc + case types.TxType.MsgTransfer: { + messageModelClass = types.MsgTransfer.getModelClass(); + break; + } default: { throw new SdkError("not exist tx type",CODES.InvalidType); } diff --git a/src/modules/tx.ts b/src/modules/tx.ts index 89b340dd..55bea0ab 100644 --- a/src/modules/tx.ts +++ b/src/modules/tx.ts @@ -139,7 +139,7 @@ export class Tx { let accountNumber = baseTx.account_number; let sequence = baseTx.sequence; // Query account info from block chain - if ((!baseTx.account_number || !baseTx.sequence) && !offline) { + if ((typeof baseTx.account_number == 'undefined' || typeof baseTx.sequence == 'undefined') && !offline) { const account = await this.client.auth.queryAccount(keyObj.address); accountNumber = account.accountNumber??0; sequence = account.sequence??0; @@ -369,15 +369,15 @@ export class Tx { } //coinswap case types.TxType.MsgAddLiquidity: { - + msg = new types.MsgAddLiquidity(txMsg.value); break; } case types.TxType.MsgRemoveLiquidity: { - + msg = new types.MsgRemoveLiquidity(txMsg.value); break; } case types.TxType.MsgSwapOrder: { - + msg = new types.MsgSwapOrder(txMsg.value); break; } //nft @@ -414,6 +414,20 @@ export class Tx { msg = new types.MsgDeposit(txMsg.value) break; } + //htlc + case types.TxType.MsgCreateHTLC: { + msg = new types.MsgCreateHTLC(txMsg.value) + break; + } + case types.TxType.MsgClaimHTLC: { + msg = new types.MsgClaimHTLC(txMsg.value) + break; + } + //ibc + case types.TxType.MsgTransfer: { + msg = new types.MsgTransfer(txMsg.value); + break; + } default: { throw new SdkError("not exist tx type",CODES.InvalidType); } diff --git a/src/nets/rpc-client.ts b/src/nets/rpc-client.ts index 702a49ab..86a493e8 100644 --- a/src/nets/rpc-client.ts +++ b/src/nets/rpc-client.ts @@ -76,9 +76,10 @@ export class RpcClient { * @returns * @since v0.17 */ - protoQuery(path: string, protoRequest?: any, protoResponse?: any): Promise { + protoQuery(path: string, protoRequest?: any, protoResponse?: any,height?:string): Promise { const params: types.AbciQueryRequest = { path, + height }; if (protoRequest && protoRequest.serializeBinary) { params.data = Buffer.from(protoRequest.serializeBinary()).toString('hex'); diff --git a/src/types/coinswap.ts b/src/types/coinswap.ts index e08f70f6..1ab8c5be 100644 --- a/src/types/coinswap.ts +++ b/src/types/coinswap.ts @@ -1,93 +1,192 @@ -import { Coin, Msg } from './types'; +import { Coin, Msg, TxType } from './types'; +import { TxModelCreator } from '../helper'; +import * as pbs from "./proto"; +import { SdkError } from '../errors'; -export interface Liquidity { - standard: Coin; - token: Coin; - liquidity: Coin; - fee: string; +/** + * param struct for add liquidity tx + */ +export interface AddLiquidityTxParam { + max_token: Coin, + exact_standard_amt: string, + min_liquidity: string, + deadline: number, + sender: string } -export interface DepositRequest { - max_token: Coin; - exact_standard_amt: number; - min_liquidity: number; - deadline: number; + +/** + * Msg for add liquidity + * + * @hidden + */ +export class MsgAddLiquidity extends Msg { + value: AddLiquidityTxParam; + + constructor(msg: AddLiquidityTxParam) { + super(TxType.MsgAddLiquidity); + this.value = msg; + } + + static getModelClass(): any { + return pbs.coinswap_tx_pb.MsgAddLiquidity; + } + + getModel(): any { + let msg = new ((this.constructor as any).getModelClass())(); + msg.setExactStandardAmt(this.value.exact_standard_amt); + msg.setMinLiquidity(this.value.min_liquidity); + msg.setMaxToken(TxModelCreator.createCoinModel(this.value.max_token.denom, this.value.max_token.amount)); + msg.setDeadline(this.value.deadline); + msg.setSender(this.value.sender); + return msg; + } + + validate() { + if (!this.value.max_token) { + throw new SdkError("max_token is empty"); + } + if (!this.value.exact_standard_amt) { + throw new SdkError("exact_standard_amt is empty"); + } + if (!this.value.min_liquidity) { + throw new SdkError("min_liquidity is empty"); + } + if (!this.value.deadline) { + throw new SdkError("deadline is empty"); + } + if (!this.value.sender) { + throw new SdkError("sender is empty"); + } + } } -export interface WithdrawRequest { - min_token: number; - withdraw_liquidity: Coin; - min_standard_amt: number; - deadline: number; +/** + * param struct for add liquidity tx + */ +export interface RemoveLiquidityTxParam { + withdraw_liquidity: Coin, + min_token: string, + min_standard_amt: string, + deadline: number, + sender: string } -export interface SwapOrderRequest { + +/** + * Msg for remove liquidity + * + * @hidden + */ +export class MsgRemoveLiquidity extends Msg { + value: RemoveLiquidityTxParam; + + constructor(msg: RemoveLiquidityTxParam) { + super(TxType.MsgRemoveLiquidity); + this.value = msg; + } + + static getModelClass(): any { + return pbs.coinswap_tx_pb.MsgRemoveLiquidity; + } + + getModel(): any { + let msg = new ((this.constructor as any).getModelClass())(); + msg.setWithdrawLiquidity(TxModelCreator.createCoinModel(this.value.withdraw_liquidity.denom, this.value.withdraw_liquidity.amount)); + msg.setMinToken(this.value.min_token); + msg.setMinStandardAmt(this.value.min_standard_amt); + msg.setDeadline(this.value.deadline); + msg.setSender(this.value.sender); + return msg; + } + + validate() { + if (!this.value.withdraw_liquidity) { + throw new SdkError("withdraw_liquidity is empty"); + } + if (!this.value.min_token) { + throw new SdkError("min_token is empty"); + } + if (!this.value.min_standard_amt) { + throw new SdkError("min_standard_amt is empty"); + } + if (!this.value.deadline) { + throw new SdkError("deadline is empty"); + } + if (!this.value.sender) { + throw new SdkError("sender is empty"); + } + } +} + + +/** + * param struct for add liquidity tx + */ +export interface SwapOrderTxParam { input: { address: string; coin: Coin; - }; + }, output: { address: string; coin: Coin; - }; - deadline: number; + }, + deadline: number, + is_buy_order: boolean } -export class MsgAddLiquidity extends Msg { - value: object; - constructor(request: DepositRequest, sender: string) { - super('irismod/coinswap/MsgAddLiquidity'); - const deadline = new Date(); - deadline.setTime(deadline.getTime() + request.deadline); - this.value = { - max_token: request.max_token, - exact_standard_amt: String(request.exact_standard_amt), - min_liquidity: String(request.min_liquidity), - deadline: deadline.getTime().toString(), - sender, - }; - } - - getSignBytes(): object { - return this; - } -} +/** + * Msg for swap order + * + * @hidden + */ +export class MsgSwapOrder extends Msg { + value: SwapOrderTxParam; -export class MsgRemoveLiquidity extends Msg { - value: object; - constructor(request: WithdrawRequest, sender: string) { - super('irismod/coinswap/MsgRemoveLiquidity') - const deadline = new Date(); - deadline.setMilliseconds(deadline.getTime() + request.deadline); - this.value = { - min_token: String(request.min_token), - withdraw_liquidity: request.withdraw_liquidity, - min_standard_amt: String(request.min_standard_amt), - deadline: deadline.getTime().toString(), - sender, - }; + constructor(msg: SwapOrderTxParam) { + super(TxType.MsgSwapOrder); + this.value = msg; } - getSignBytes(): object { - return this; + static getModelClass(): any { + return pbs.coinswap_tx_pb.MsgSwapOrder; } -} -export class MsgSwapOrder extends Msg { - value: object; - constructor(request: SwapOrderRequest, isBuyOrder: boolean) { - super('irismod/coinswap/MsgSwapOrder') - const deadline = new Date(); - deadline.setTime(deadline.getTime() + request.deadline); - this.value = { - input: request.input, - output: request.output, - deadline: deadline.getTime().toString(), - is_buy_order: isBuyOrder, - }; + getModel(): any { + let msg = new ((this.constructor as any).getModelClass())(); + let inputMsg = new pbs.coinswap_coinswap_pb.Input(); + inputMsg.setAddress(this.value.input.address); + inputMsg.setCoin(TxModelCreator.createCoinModel(this.value.input.coin.denom, this.value.input.coin.amount)); + msg.setInput(inputMsg); + let outputMsg = new pbs.coinswap_coinswap_pb.Output(); + outputMsg.setAddress(this.value.output.address); + outputMsg.setCoin(TxModelCreator.createCoinModel(this.value.output.coin.denom, this.value.output.coin.amount)); + msg.setOutput(outputMsg); + msg.setDeadline(this.value.deadline); + msg.setIsBuyOrder(this.value.is_buy_order); + return msg; } - getSignBytes(): object { - return this; + validate() { + if (!this.value.input) { + throw new SdkError("input is empty"); + } + if (!this.value.output) { + throw new SdkError("output is empty"); + } + if (!this.value.deadline) { + throw new SdkError("deadline is empty"); + } + if (!this.value.is_buy_order) { + throw new SdkError("is_buy_order is empty"); + } } } + +export interface Liquidity { + standard: Coin; + token: Coin; + liquidity: Coin; + fee: string; +} \ No newline at end of file diff --git a/src/types/constants.ts b/src/types/constants.ts index 880f7989..57a50141 100644 --- a/src/types/constants.ts +++ b/src/types/constants.ts @@ -1,9 +1,17 @@ +import { Bech32Prefix } from './types'; + /** Network type config */ export enum Network { Mainnet = 0, Testnet = 1, } +export enum ChainNetwork { + Iris = 0, + Cosmos = 1, + Akash = 2 +} + export enum RpcMethods { BroadcastTxSync = 'broadcast_tx_sync', BroadcastTxAsync = 'broadcast_tx_async', @@ -23,7 +31,40 @@ export enum RpcMethods { export const doNotModify = '[do-not-modify]'; +export const keystoreSaltPerfix = '$2a$12$'; +export const xchacha20NonceLength = 24; +export const keystoreStructure = { + prefix:'-----BEGIN TENDERMINT PRIVATE KEY-----', + suffix:'-----END TENDERMINT PRIVATE KEY-----' +}; + export const STD_DENOM = 'tiris', IRIS_ATTO = 'iris-atto', MIN_UNIT_SUFFIX = '-min'; +export const Bech32Prefix_Iris:Bech32Prefix = { + AccAddr: 'iaa', + AccPub: 'iap', + ValAddr: 'iva', + ValPub: 'ivp', + ConsAddr: 'ica', + ConsPub: 'icp', +} + +export const Bech32Prefix_Cosmos:Bech32Prefix = { + AccAddr: 'cosmos', + AccPub: 'cosmospub', + ValAddr: 'cosmosvaloper', + ValPub: 'cosmosvaloperpub', + ConsAddr: 'cosmosvalcons', + ConsPub: 'cosmosvalconspub', +} + +export const Bech32Prefix_Akash:Bech32Prefix = { + AccAddr: 'akash', + AccPub: 'akashpub', + ValAddr: 'akashvaloper', + ValPub: 'akashvaloperpub', + ConsAddr: 'akashvalcons', + ConsPub: 'akashvalconspub', +} diff --git a/src/types/htlc.ts b/src/types/htlc.ts new file mode 100644 index 00000000..c0ef2693 --- /dev/null +++ b/src/types/htlc.ts @@ -0,0 +1,130 @@ +import { Coin, Msg, Pubkey, TxType } from './types'; +import { TxModelCreator } from '../helper'; +import * as pbs from "./proto"; +import { SdkError, CODES } from '../errors'; + +/** + * param struct for Create HTLC Tx + */ +export interface CreateHTLCTxParam { + sender: string; + to: string; + receiver_on_other_chain: string; + sender_on_other_chain: string; + amount: Coin[]; + hash_lock: string; + timestamp: number; + time_lock: number; + transfer: boolean; +} + +/** + * Msg for Create HTLC + * + * @hidden + */ +export class MsgCreateHTLC extends Msg { + value: CreateHTLCTxParam; + + constructor(msg:CreateHTLCTxParam) { + super(TxType.MsgCreateHTLC); + this.value = msg; + } + + static getModelClass():any{ + return pbs.htlc_tx_pb.MsgCreateHTLC; + } + + getModel():any{ + let msg = new ((this.constructor as any).getModelClass())(); + msg.setSender(this.value.sender); + msg.setTo(this.value.to); + msg.setReceiverOnOtherChain(this.value.receiver_on_other_chain); + msg.setSenderOnOtherChain(this.value.sender_on_other_chain); + msg.setHashLock(this.value.hash_lock); + msg.setTimestamp(this.value.timestamp); + msg.setTimeLock(this.value.time_lock); + msg.setTransfer(this.value.transfer); + this.value.amount.forEach((item)=>{ + msg.addAmount(TxModelCreator.createCoinModel(item.denom, item.amount)); + }); + return msg; + } + + validate() { + if (!this.value.sender) { + throw new SdkError("sender is empty"); + } + if (!this.value.to) { + throw new SdkError("to is empty"); + } + if (!this.value.receiver_on_other_chain) { + throw new SdkError("receiver_on_other_chain is empty"); + } + if (!this.value.sender_on_other_chain) { + throw new SdkError("sender_on_other_chain is empty"); + } + if (!this.value.hash_lock) { + throw new SdkError("hash_lock is empty"); + } + if (!this.value.timestamp) { + throw new SdkError("timestamp is empty"); + } + if (!this.value.time_lock) { + throw new SdkError("time_lock is empty"); + } + if (typeof this.value.transfer == 'undefined') { + throw new SdkError("transfer is empty"); + } + if (!(this.value.amount && this.value.amount.length)) { + throw new SdkError("amount is empty"); + } + } +} + +/** + * param struct for Claim HTLC Tx + */ +export interface ClaimHTLCTxParam { + sender: string, + id: string, + secret: string +} + +/** + * Msg for Claim HTLC + * + * @hidden + */ +export class MsgClaimHTLC extends Msg { + value: ClaimHTLCTxParam; + + constructor(msg:ClaimHTLCTxParam) { + super(TxType.MsgClaimHTLC); + this.value = msg; + } + + static getModelClass():any{ + return pbs.htlc_tx_pb.MsgClaimHTLC; + } + + getModel():any{ + let msg = new ((this.constructor as any).getModelClass())(); + msg.setSender(this.value.sender); + msg.setId(this.value.id); + msg.setSecret(this.value.secret); + return msg; + } + + validate() { + if (!this.value.sender) { + throw new SdkError("sender is empty"); + } + if (!this.value.id) { + throw new SdkError("id is empty"); + } + if (!this.value.secret) { + throw new SdkError("secret is empty"); + } + } +} \ No newline at end of file diff --git a/src/types/ibc.ts b/src/types/ibc.ts new file mode 100644 index 00000000..1a85db0a --- /dev/null +++ b/src/types/ibc.ts @@ -0,0 +1,74 @@ +import { Coin, Msg, TxType } from './types'; +import { TxModelCreator } from '../helper'; +import * as pbs from "./proto"; +import { SdkError, CODES } from '../errors'; + +/** + * param struct for Create ibc transfer Tx + */ +export interface TransferParam { + source_port: string; + source_channel: string; + token: Coin; + sender: string; + receiver: string; + timeout_height?: {revision_number:number, revision_height:number}; + timeout_timestamp?:number +} + +/** + * Msg for ibc Transfer + * + * @hidden + */ +export class MsgTransfer extends Msg { + value: TransferParam; + + constructor(msg:TransferParam) { + super(TxType.MsgTransfer); + this.value = msg; + } + + static getModelClass():any{ + return pbs.ibc_transfer_query_pb.MsgTransfer; + } + + getModel():any{ + let msg = new ((this.constructor as any).getModelClass())(); + msg.setSourcePort(this.value.source_port); + msg.setSourceChannel(this.value.source_channel); + msg.setToken(TxModelCreator.createCoinModel(this.value.token.denom, this.value.token.amount)); + msg.setSender(this.value.sender); + msg.setReceiver(this.value.receiver); + if (this.value.timeout_height && + this.value.timeout_height.revision_number && + this.value.timeout_height.revision_height) { + let height = new pbs.ibc_core_client_pb.Height(); + height.setRevisionNumber(this.value.timeout_height.revision_number); + height.setRevisionNumber(this.value.timeout_height.revision_height); + msg.setTimeoutHeight(height); + } + if (this.value.timeout_timestamp) { + msg.setTimeoutTimestamp(this.value.timeout_timestamp); + } + return msg; + } + + validate() { + if (!this.value.source_port) { + throw new SdkError("source_port is empty"); + } + if (!this.value.source_channel) { + throw new SdkError("source_channel is empty"); + } + if (!this.value.token) { + throw new SdkError("token is empty"); + } + if (!this.value.receiver) { + throw new SdkError("receiver is empty"); + } + if (!this.value.timeout_height && !this.value.timeout_timestamp) { + throw new SdkError("there must be one timeout_height or timeout_timestamp"); + } + } +} diff --git a/src/types/index.ts b/src/types/index.ts index 2459aea7..840ca315 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -22,4 +22,6 @@ export * from './query-builder'; export * from './coinswap'; export * from './protoTx'; export * from './nft'; -export * from './proto'; \ No newline at end of file +export * from './proto'; +export * from './htlc'; +export * from './ibc'; \ No newline at end of file diff --git a/src/types/keystore.ts b/src/types/keystore.ts index f7e113e3..88ea9668 100644 --- a/src/types/keystore.ts +++ b/src/types/keystore.ts @@ -11,6 +11,27 @@ export interface Keystore { crypto: Crypto; } +/** + * Keystore header struct + * @hidden + */ +export interface KeystoreHeader { + kdf?: string; + salt?: string; + type?: string; //secp256k1|ed25519|sm2 +} + +/** + * Keystore struct + * @hidden + */ +export interface KeystoreV1 { + header: KeystoreHeader; + data: string; + type?: string; + text?: string; +} + /** * Keys struct * @hidden diff --git a/src/types/proto-types/cosmos/bank/v1beta1/query_grpc_web_pb.js b/src/types/proto-types/cosmos/bank/v1beta1/query_grpc_web_pb.js index 46575ede..2cb8d9e4 100644 --- a/src/types/proto-types/cosmos/bank/v1beta1/query_grpc_web_pb.js +++ b/src/types/proto-types/cosmos/bank/v1beta1/query_grpc_web_pb.js @@ -482,5 +482,165 @@ proto.cosmos.bank.v1beta1.QueryPromiseClient.prototype.params = }; +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest, + * !proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse>} + */ +const methodDescriptor_Query_DenomMetadata = new grpc.web.MethodDescriptor( + '/cosmos.bank.v1beta1.Query/DenomMetadata', + grpc.web.MethodType.UNARY, + proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest, + proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse, + /** + * @param {!proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest, + * !proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse>} + */ +const methodInfo_Query_DenomMetadata = new grpc.web.AbstractClientBase.MethodInfo( + proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse, + /** + * @param {!proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse.deserializeBinary +); + + +/** + * @param {!proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.cosmos.bank.v1beta1.QueryClient.prototype.denomMetadata = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/cosmos.bank.v1beta1.Query/DenomMetadata', + request, + metadata || {}, + methodDescriptor_Query_DenomMetadata, + callback); +}; + + +/** + * @param {!proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.cosmos.bank.v1beta1.QueryPromiseClient.prototype.denomMetadata = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/cosmos.bank.v1beta1.Query/DenomMetadata', + request, + metadata || {}, + methodDescriptor_Query_DenomMetadata); +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest, + * !proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse>} + */ +const methodDescriptor_Query_DenomsMetadata = new grpc.web.MethodDescriptor( + '/cosmos.bank.v1beta1.Query/DenomsMetadata', + grpc.web.MethodType.UNARY, + proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest, + proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse, + /** + * @param {!proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest, + * !proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse>} + */ +const methodInfo_Query_DenomsMetadata = new grpc.web.AbstractClientBase.MethodInfo( + proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse, + /** + * @param {!proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.deserializeBinary +); + + +/** + * @param {!proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.cosmos.bank.v1beta1.QueryClient.prototype.denomsMetadata = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/cosmos.bank.v1beta1.Query/DenomsMetadata', + request, + metadata || {}, + methodDescriptor_Query_DenomsMetadata, + callback); +}; + + +/** + * @param {!proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.cosmos.bank.v1beta1.QueryPromiseClient.prototype.denomsMetadata = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/cosmos.bank.v1beta1.Query/DenomsMetadata', + request, + metadata || {}, + methodDescriptor_Query_DenomsMetadata); +}; + + module.exports = proto.cosmos.bank.v1beta1; diff --git a/src/types/proto-types/cosmos/bank/v1beta1/query_pb.js b/src/types/proto-types/cosmos/bank/v1beta1/query_pb.js index bb1ec404..b44f4ccf 100644 --- a/src/types/proto-types/cosmos/bank/v1beta1/query_pb.js +++ b/src/types/proto-types/cosmos/bank/v1beta1/query_pb.js @@ -26,6 +26,10 @@ goog.exportSymbol('proto.cosmos.bank.v1beta1.QueryAllBalancesRequest', null, glo goog.exportSymbol('proto.cosmos.bank.v1beta1.QueryAllBalancesResponse', null, global); goog.exportSymbol('proto.cosmos.bank.v1beta1.QueryBalanceRequest', null, global); goog.exportSymbol('proto.cosmos.bank.v1beta1.QueryBalanceResponse', null, global); +goog.exportSymbol('proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest', null, global); +goog.exportSymbol('proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse', null, global); +goog.exportSymbol('proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest', null, global); +goog.exportSymbol('proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse', null, global); goog.exportSymbol('proto.cosmos.bank.v1beta1.QueryParamsRequest', null, global); goog.exportSymbol('proto.cosmos.bank.v1beta1.QueryParamsResponse', null, global); goog.exportSymbol('proto.cosmos.bank.v1beta1.QuerySupplyOfRequest', null, global); @@ -242,6 +246,90 @@ if (goog.DEBUG && !COMPILED) { */ proto.cosmos.bank.v1beta1.QueryParamsResponse.displayName = 'proto.cosmos.bank.v1beta1.QueryParamsResponse'; } +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest.displayName = 'proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.repeatedFields_, null); +}; +goog.inherits(proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.displayName = 'proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest.displayName = 'proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse.displayName = 'proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse'; +} @@ -1739,4 +1827,647 @@ proto.cosmos.bank.v1beta1.QueryParamsResponse.prototype.hasParams = function() { }; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest.prototype.toObject = function(opt_includeInstance) { + return proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest.toObject = function(includeInstance, msg) { + var f, obj = { + pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageRequest.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest} + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest; + return proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest} + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new cosmos_base_query_v1beta1_pagination_pb.PageRequest; + reader.readMessage(value,cosmos_base_query_v1beta1_pagination_pb.PageRequest.deserializeBinaryFromReader); + msg.setPagination(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPagination(); + if (f != null) { + writer.writeMessage( + 1, + f, + cosmos_base_query_v1beta1_pagination_pb.PageRequest.serializeBinaryToWriter + ); + } +}; + + +/** + * optional cosmos.base.query.v1beta1.PageRequest pagination = 1; + * @return {?proto.cosmos.base.query.v1beta1.PageRequest} + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest.prototype.getPagination = function() { + return /** @type{?proto.cosmos.base.query.v1beta1.PageRequest} */ ( + jspb.Message.getWrapperField(this, cosmos_base_query_v1beta1_pagination_pb.PageRequest, 1)); +}; + + +/** + * @param {?proto.cosmos.base.query.v1beta1.PageRequest|undefined} value + * @return {!proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest} returns this +*/ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest.prototype.setPagination = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest} returns this + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest.prototype.clearPagination = function() { + return this.setPagination(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest.prototype.hasPagination = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.prototype.toObject = function(opt_includeInstance) { + return proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.toObject = function(includeInstance, msg) { + var f, obj = { + metadatasList: jspb.Message.toObjectList(msg.getMetadatasList(), + cosmos_bank_v1beta1_bank_pb.Metadata.toObject, includeInstance), + pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageResponse.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse} + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse; + return proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse} + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new cosmos_bank_v1beta1_bank_pb.Metadata; + reader.readMessage(value,cosmos_bank_v1beta1_bank_pb.Metadata.deserializeBinaryFromReader); + msg.addMetadatas(value); + break; + case 2: + var value = new cosmos_base_query_v1beta1_pagination_pb.PageResponse; + reader.readMessage(value,cosmos_base_query_v1beta1_pagination_pb.PageResponse.deserializeBinaryFromReader); + msg.setPagination(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMetadatasList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + cosmos_bank_v1beta1_bank_pb.Metadata.serializeBinaryToWriter + ); + } + f = message.getPagination(); + if (f != null) { + writer.writeMessage( + 2, + f, + cosmos_base_query_v1beta1_pagination_pb.PageResponse.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated Metadata metadatas = 1; + * @return {!Array} + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.prototype.getMetadatasList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, cosmos_bank_v1beta1_bank_pb.Metadata, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse} returns this +*/ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.prototype.setMetadatasList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.cosmos.bank.v1beta1.Metadata=} opt_value + * @param {number=} opt_index + * @return {!proto.cosmos.bank.v1beta1.Metadata} + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.prototype.addMetadatas = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.cosmos.bank.v1beta1.Metadata, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse} returns this + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.prototype.clearMetadatasList = function() { + return this.setMetadatasList([]); +}; + + +/** + * optional cosmos.base.query.v1beta1.PageResponse pagination = 2; + * @return {?proto.cosmos.base.query.v1beta1.PageResponse} + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.prototype.getPagination = function() { + return /** @type{?proto.cosmos.base.query.v1beta1.PageResponse} */ ( + jspb.Message.getWrapperField(this, cosmos_base_query_v1beta1_pagination_pb.PageResponse, 2)); +}; + + +/** + * @param {?proto.cosmos.base.query.v1beta1.PageResponse|undefined} value + * @return {!proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse} returns this +*/ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.prototype.setPagination = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse} returns this + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.prototype.clearPagination = function() { + return this.setPagination(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.prototype.hasPagination = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest.prototype.toObject = function(opt_includeInstance) { + return proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest.toObject = function(includeInstance, msg) { + var f, obj = { + denom: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest} + */ +proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest; + return proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest} + */ +proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setDenom(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getDenom(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string denom = 1; + * @return {string} + */ +proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest.prototype.getDenom = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest} returns this + */ +proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest.prototype.setDenom = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse.prototype.toObject = function(opt_includeInstance) { + return proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse.toObject = function(includeInstance, msg) { + var f, obj = { + metadata: (f = msg.getMetadata()) && cosmos_bank_v1beta1_bank_pb.Metadata.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse} + */ +proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse; + return proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse} + */ +proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new cosmos_bank_v1beta1_bank_pb.Metadata; + reader.readMessage(value,cosmos_bank_v1beta1_bank_pb.Metadata.deserializeBinaryFromReader); + msg.setMetadata(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMetadata(); + if (f != null) { + writer.writeMessage( + 1, + f, + cosmos_bank_v1beta1_bank_pb.Metadata.serializeBinaryToWriter + ); + } +}; + + +/** + * optional Metadata metadata = 1; + * @return {?proto.cosmos.bank.v1beta1.Metadata} + */ +proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse.prototype.getMetadata = function() { + return /** @type{?proto.cosmos.bank.v1beta1.Metadata} */ ( + jspb.Message.getWrapperField(this, cosmos_bank_v1beta1_bank_pb.Metadata, 1)); +}; + + +/** + * @param {?proto.cosmos.bank.v1beta1.Metadata|undefined} value + * @return {!proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse} returns this +*/ +proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse.prototype.setMetadata = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse} returns this + */ +proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse.prototype.clearMetadata = function() { + return this.setMetadata(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse.prototype.hasMetadata = function() { + return jspb.Message.getField(this, 1) != null; +}; + + goog.object.extend(exports, proto.cosmos.bank.v1beta1); diff --git a/src/types/proto-types/cosmos/base/tendermint/v1beta1/query_grpc_web_pb.js b/src/types/proto-types/cosmos/base/tendermint/v1beta1/query_grpc_web_pb.js index fe7add89..3145e78d 100644 --- a/src/types/proto-types/cosmos/base/tendermint/v1beta1/query_grpc_web_pb.js +++ b/src/types/proto-types/cosmos/base/tendermint/v1beta1/query_grpc_web_pb.js @@ -1,5 +1,5 @@ /** - * @fileoverview gRPC-Web generated client stub for cosmos.base.tendermint_1.v1beta1 + * @fileoverview gRPC-Web generated client stub for cosmos.base.tendermint.v1beta1 * @enhanceable * @public */ @@ -32,8 +32,8 @@ var cosmos_base_query_v1beta1_pagination_pb = require('../../../../cosmos/base/q const proto = {}; proto.cosmos = {}; proto.cosmos.base = {}; -proto.cosmos.base.tendermint_1 = {}; -proto.cosmos.base.tendermint_1.v1beta1 = require('./query_pb.js'); +proto.cosmos.base.tendermint = {}; +proto.cosmos.base.tendermint.v1beta1 = require('./query_pb.js'); /** * @param {string} hostname @@ -43,7 +43,7 @@ proto.cosmos.base.tendermint_1.v1beta1 = require('./query_pb.js'); * @struct * @final */ -proto.cosmos.base.tendermint_1.v1beta1.ServiceClient = +proto.cosmos.base.tendermint.v1beta1.ServiceClient = function(hostname, credentials, options) { if (!options) options = {}; options['format'] = 'text'; @@ -69,7 +69,7 @@ proto.cosmos.base.tendermint_1.v1beta1.ServiceClient = * @struct * @final */ -proto.cosmos.base.tendermint_1.v1beta1.ServicePromiseClient = +proto.cosmos.base.tendermint.v1beta1.ServicePromiseClient = function(hostname, credentials, options) { if (!options) options = {}; options['format'] = 'text'; @@ -90,58 +90,58 @@ proto.cosmos.base.tendermint_1.v1beta1.ServicePromiseClient = /** * @const * @type {!grpc.web.MethodDescriptor< - * !proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest, - * !proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse>} + * !proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest, + * !proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse>} */ const methodDescriptor_Service_GetNodeInfo = new grpc.web.MethodDescriptor( - '/cosmos.base.tendermint_1.v1beta1.Service/GetNodeInfo', + '/cosmos.base.tendermint.v1beta1.Service/GetNodeInfo', grpc.web.MethodType.UNARY, - proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest, - proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse, + proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest, + proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse, /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest} request + * @param {!proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest} request * @return {!Uint8Array} */ function(request) { return request.serializeBinary(); }, - proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.deserializeBinary + proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.deserializeBinary ); /** * @const * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest, - * !proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse>} + * !proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest, + * !proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse>} */ const methodInfo_Service_GetNodeInfo = new grpc.web.AbstractClientBase.MethodInfo( - proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse, + proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse, /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest} request + * @param {!proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest} request * @return {!Uint8Array} */ function(request) { return request.serializeBinary(); }, - proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.deserializeBinary + proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.deserializeBinary ); /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest} request The + * @param {!proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest} request The * request proto * @param {?Object} metadata User defined * call metadata - * @param {function(?grpc.web.Error, ?proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse)} + * @param {function(?grpc.web.Error, ?proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse)} * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} + * @return {!grpc.web.ClientReadableStream|undefined} * The XHR Node Readable Stream */ -proto.cosmos.base.tendermint_1.v1beta1.ServiceClient.prototype.getNodeInfo = +proto.cosmos.base.tendermint.v1beta1.ServiceClient.prototype.getNodeInfo = function(request, metadata, callback) { return this.client_.rpcCall(this.hostname_ + - '/cosmos.base.tendermint_1.v1beta1.Service/GetNodeInfo', + '/cosmos.base.tendermint.v1beta1.Service/GetNodeInfo', request, metadata || {}, methodDescriptor_Service_GetNodeInfo, @@ -150,17 +150,17 @@ proto.cosmos.base.tendermint_1.v1beta1.ServiceClient.prototype.getNodeInfo = /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest} request The + * @param {!proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest} request The * request proto * @param {?Object} metadata User defined * call metadata - * @return {!Promise} + * @return {!Promise} * Promise that resolves to the response */ -proto.cosmos.base.tendermint_1.v1beta1.ServicePromiseClient.prototype.getNodeInfo = +proto.cosmos.base.tendermint.v1beta1.ServicePromiseClient.prototype.getNodeInfo = function(request, metadata) { return this.client_.unaryCall(this.hostname_ + - '/cosmos.base.tendermint_1.v1beta1.Service/GetNodeInfo', + '/cosmos.base.tendermint.v1beta1.Service/GetNodeInfo', request, metadata || {}, methodDescriptor_Service_GetNodeInfo); @@ -170,58 +170,58 @@ proto.cosmos.base.tendermint_1.v1beta1.ServicePromiseClient.prototype.getNodeInf /** * @const * @type {!grpc.web.MethodDescriptor< - * !proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest, - * !proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse>} + * !proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest, + * !proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse>} */ const methodDescriptor_Service_GetSyncing = new grpc.web.MethodDescriptor( - '/cosmos.base.tendermint_1.v1beta1.Service/GetSyncing', + '/cosmos.base.tendermint.v1beta1.Service/GetSyncing', grpc.web.MethodType.UNARY, - proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest, - proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse, + proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest, + proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse, /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest} request + * @param {!proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest} request * @return {!Uint8Array} */ function(request) { return request.serializeBinary(); }, - proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse.deserializeBinary + proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse.deserializeBinary ); /** * @const * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest, - * !proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse>} + * !proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest, + * !proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse>} */ const methodInfo_Service_GetSyncing = new grpc.web.AbstractClientBase.MethodInfo( - proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse, + proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse, /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest} request + * @param {!proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest} request * @return {!Uint8Array} */ function(request) { return request.serializeBinary(); }, - proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse.deserializeBinary + proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse.deserializeBinary ); /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest} request The + * @param {!proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest} request The * request proto * @param {?Object} metadata User defined * call metadata - * @param {function(?grpc.web.Error, ?proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse)} + * @param {function(?grpc.web.Error, ?proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse)} * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} + * @return {!grpc.web.ClientReadableStream|undefined} * The XHR Node Readable Stream */ -proto.cosmos.base.tendermint_1.v1beta1.ServiceClient.prototype.getSyncing = +proto.cosmos.base.tendermint.v1beta1.ServiceClient.prototype.getSyncing = function(request, metadata, callback) { return this.client_.rpcCall(this.hostname_ + - '/cosmos.base.tendermint_1.v1beta1.Service/GetSyncing', + '/cosmos.base.tendermint.v1beta1.Service/GetSyncing', request, metadata || {}, methodDescriptor_Service_GetSyncing, @@ -230,17 +230,17 @@ proto.cosmos.base.tendermint_1.v1beta1.ServiceClient.prototype.getSyncing = /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest} request The + * @param {!proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest} request The * request proto * @param {?Object} metadata User defined * call metadata - * @return {!Promise} + * @return {!Promise} * Promise that resolves to the response */ -proto.cosmos.base.tendermint_1.v1beta1.ServicePromiseClient.prototype.getSyncing = +proto.cosmos.base.tendermint.v1beta1.ServicePromiseClient.prototype.getSyncing = function(request, metadata) { return this.client_.unaryCall(this.hostname_ + - '/cosmos.base.tendermint_1.v1beta1.Service/GetSyncing', + '/cosmos.base.tendermint.v1beta1.Service/GetSyncing', request, metadata || {}, methodDescriptor_Service_GetSyncing); @@ -250,58 +250,58 @@ proto.cosmos.base.tendermint_1.v1beta1.ServicePromiseClient.prototype.getSyncing /** * @const * @type {!grpc.web.MethodDescriptor< - * !proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest, - * !proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse>} + * !proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest, + * !proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse>} */ const methodDescriptor_Service_GetLatestBlock = new grpc.web.MethodDescriptor( - '/cosmos.base.tendermint_1.v1beta1.Service/GetLatestBlock', + '/cosmos.base.tendermint.v1beta1.Service/GetLatestBlock', grpc.web.MethodType.UNARY, - proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest, - proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse, + proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest, + proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse, /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest} request + * @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest} request * @return {!Uint8Array} */ function(request) { return request.serializeBinary(); }, - proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.deserializeBinary + proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.deserializeBinary ); /** * @const * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest, - * !proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse>} + * !proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest, + * !proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse>} */ const methodInfo_Service_GetLatestBlock = new grpc.web.AbstractClientBase.MethodInfo( - proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse, + proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse, /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest} request + * @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest} request * @return {!Uint8Array} */ function(request) { return request.serializeBinary(); }, - proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.deserializeBinary + proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.deserializeBinary ); /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest} request The + * @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest} request The * request proto * @param {?Object} metadata User defined * call metadata - * @param {function(?grpc.web.Error, ?proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse)} + * @param {function(?grpc.web.Error, ?proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse)} * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} + * @return {!grpc.web.ClientReadableStream|undefined} * The XHR Node Readable Stream */ -proto.cosmos.base.tendermint_1.v1beta1.ServiceClient.prototype.getLatestBlock = +proto.cosmos.base.tendermint.v1beta1.ServiceClient.prototype.getLatestBlock = function(request, metadata, callback) { return this.client_.rpcCall(this.hostname_ + - '/cosmos.base.tendermint_1.v1beta1.Service/GetLatestBlock', + '/cosmos.base.tendermint.v1beta1.Service/GetLatestBlock', request, metadata || {}, methodDescriptor_Service_GetLatestBlock, @@ -310,17 +310,17 @@ proto.cosmos.base.tendermint_1.v1beta1.ServiceClient.prototype.getLatestBlock = /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest} request The + * @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest} request The * request proto * @param {?Object} metadata User defined * call metadata - * @return {!Promise} + * @return {!Promise} * Promise that resolves to the response */ -proto.cosmos.base.tendermint_1.v1beta1.ServicePromiseClient.prototype.getLatestBlock = +proto.cosmos.base.tendermint.v1beta1.ServicePromiseClient.prototype.getLatestBlock = function(request, metadata) { return this.client_.unaryCall(this.hostname_ + - '/cosmos.base.tendermint_1.v1beta1.Service/GetLatestBlock', + '/cosmos.base.tendermint.v1beta1.Service/GetLatestBlock', request, metadata || {}, methodDescriptor_Service_GetLatestBlock); @@ -330,58 +330,58 @@ proto.cosmos.base.tendermint_1.v1beta1.ServicePromiseClient.prototype.getLatestB /** * @const * @type {!grpc.web.MethodDescriptor< - * !proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest, - * !proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse>} + * !proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest, + * !proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse>} */ const methodDescriptor_Service_GetBlockByHeight = new grpc.web.MethodDescriptor( - '/cosmos.base.tendermint_1.v1beta1.Service/GetBlockByHeight', + '/cosmos.base.tendermint.v1beta1.Service/GetBlockByHeight', grpc.web.MethodType.UNARY, - proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest, - proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse, + proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest, + proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse, /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest} request + * @param {!proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest} request * @return {!Uint8Array} */ function(request) { return request.serializeBinary(); }, - proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.deserializeBinary + proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.deserializeBinary ); /** * @const * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest, - * !proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse>} + * !proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest, + * !proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse>} */ const methodInfo_Service_GetBlockByHeight = new grpc.web.AbstractClientBase.MethodInfo( - proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse, + proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse, /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest} request + * @param {!proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest} request * @return {!Uint8Array} */ function(request) { return request.serializeBinary(); }, - proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.deserializeBinary + proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.deserializeBinary ); /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest} request The + * @param {!proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest} request The * request proto * @param {?Object} metadata User defined * call metadata - * @param {function(?grpc.web.Error, ?proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse)} + * @param {function(?grpc.web.Error, ?proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse)} * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} + * @return {!grpc.web.ClientReadableStream|undefined} * The XHR Node Readable Stream */ -proto.cosmos.base.tendermint_1.v1beta1.ServiceClient.prototype.getBlockByHeight = +proto.cosmos.base.tendermint.v1beta1.ServiceClient.prototype.getBlockByHeight = function(request, metadata, callback) { return this.client_.rpcCall(this.hostname_ + - '/cosmos.base.tendermint_1.v1beta1.Service/GetBlockByHeight', + '/cosmos.base.tendermint.v1beta1.Service/GetBlockByHeight', request, metadata || {}, methodDescriptor_Service_GetBlockByHeight, @@ -390,17 +390,17 @@ proto.cosmos.base.tendermint_1.v1beta1.ServiceClient.prototype.getBlockByHeight /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest} request The + * @param {!proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest} request The * request proto * @param {?Object} metadata User defined * call metadata - * @return {!Promise} + * @return {!Promise} * Promise that resolves to the response */ -proto.cosmos.base.tendermint_1.v1beta1.ServicePromiseClient.prototype.getBlockByHeight = +proto.cosmos.base.tendermint.v1beta1.ServicePromiseClient.prototype.getBlockByHeight = function(request, metadata) { return this.client_.unaryCall(this.hostname_ + - '/cosmos.base.tendermint_1.v1beta1.Service/GetBlockByHeight', + '/cosmos.base.tendermint.v1beta1.Service/GetBlockByHeight', request, metadata || {}, methodDescriptor_Service_GetBlockByHeight); @@ -410,58 +410,58 @@ proto.cosmos.base.tendermint_1.v1beta1.ServicePromiseClient.prototype.getBlockBy /** * @const * @type {!grpc.web.MethodDescriptor< - * !proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest, - * !proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse>} + * !proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest, + * !proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse>} */ const methodDescriptor_Service_GetLatestValidatorSet = new grpc.web.MethodDescriptor( - '/cosmos.base.tendermint_1.v1beta1.Service/GetLatestValidatorSet', + '/cosmos.base.tendermint.v1beta1.Service/GetLatestValidatorSet', grpc.web.MethodType.UNARY, - proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest, - proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse, + proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest, + proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse, /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest} request + * @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest} request * @return {!Uint8Array} */ function(request) { return request.serializeBinary(); }, - proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.deserializeBinary + proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.deserializeBinary ); /** * @const * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest, - * !proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse>} + * !proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest, + * !proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse>} */ const methodInfo_Service_GetLatestValidatorSet = new grpc.web.AbstractClientBase.MethodInfo( - proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse, + proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse, /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest} request + * @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest} request * @return {!Uint8Array} */ function(request) { return request.serializeBinary(); }, - proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.deserializeBinary + proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.deserializeBinary ); /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest} request The + * @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest} request The * request proto * @param {?Object} metadata User defined * call metadata - * @param {function(?grpc.web.Error, ?proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse)} + * @param {function(?grpc.web.Error, ?proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse)} * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} + * @return {!grpc.web.ClientReadableStream|undefined} * The XHR Node Readable Stream */ -proto.cosmos.base.tendermint_1.v1beta1.ServiceClient.prototype.getLatestValidatorSet = +proto.cosmos.base.tendermint.v1beta1.ServiceClient.prototype.getLatestValidatorSet = function(request, metadata, callback) { return this.client_.rpcCall(this.hostname_ + - '/cosmos.base.tendermint_1.v1beta1.Service/GetLatestValidatorSet', + '/cosmos.base.tendermint.v1beta1.Service/GetLatestValidatorSet', request, metadata || {}, methodDescriptor_Service_GetLatestValidatorSet, @@ -470,17 +470,17 @@ proto.cosmos.base.tendermint_1.v1beta1.ServiceClient.prototype.getLatestValidato /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest} request The + * @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest} request The * request proto * @param {?Object} metadata User defined * call metadata - * @return {!Promise} + * @return {!Promise} * Promise that resolves to the response */ -proto.cosmos.base.tendermint_1.v1beta1.ServicePromiseClient.prototype.getLatestValidatorSet = +proto.cosmos.base.tendermint.v1beta1.ServicePromiseClient.prototype.getLatestValidatorSet = function(request, metadata) { return this.client_.unaryCall(this.hostname_ + - '/cosmos.base.tendermint_1.v1beta1.Service/GetLatestValidatorSet', + '/cosmos.base.tendermint.v1beta1.Service/GetLatestValidatorSet', request, metadata || {}, methodDescriptor_Service_GetLatestValidatorSet); @@ -490,58 +490,58 @@ proto.cosmos.base.tendermint_1.v1beta1.ServicePromiseClient.prototype.getLatestV /** * @const * @type {!grpc.web.MethodDescriptor< - * !proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest, - * !proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse>} + * !proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest, + * !proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse>} */ const methodDescriptor_Service_GetValidatorSetByHeight = new grpc.web.MethodDescriptor( - '/cosmos.base.tendermint_1.v1beta1.Service/GetValidatorSetByHeight', + '/cosmos.base.tendermint.v1beta1.Service/GetValidatorSetByHeight', grpc.web.MethodType.UNARY, - proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest, - proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse, + proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest, + proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse, /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest} request + * @param {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest} request * @return {!Uint8Array} */ function(request) { return request.serializeBinary(); }, - proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.deserializeBinary + proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.deserializeBinary ); /** * @const * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest, - * !proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse>} + * !proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest, + * !proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse>} */ const methodInfo_Service_GetValidatorSetByHeight = new grpc.web.AbstractClientBase.MethodInfo( - proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse, + proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse, /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest} request + * @param {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest} request * @return {!Uint8Array} */ function(request) { return request.serializeBinary(); }, - proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.deserializeBinary + proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.deserializeBinary ); /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest} request The + * @param {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest} request The * request proto * @param {?Object} metadata User defined * call metadata - * @param {function(?grpc.web.Error, ?proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse)} + * @param {function(?grpc.web.Error, ?proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse)} * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} + * @return {!grpc.web.ClientReadableStream|undefined} * The XHR Node Readable Stream */ -proto.cosmos.base.tendermint_1.v1beta1.ServiceClient.prototype.getValidatorSetByHeight = +proto.cosmos.base.tendermint.v1beta1.ServiceClient.prototype.getValidatorSetByHeight = function(request, metadata, callback) { return this.client_.rpcCall(this.hostname_ + - '/cosmos.base.tendermint_1.v1beta1.Service/GetValidatorSetByHeight', + '/cosmos.base.tendermint.v1beta1.Service/GetValidatorSetByHeight', request, metadata || {}, methodDescriptor_Service_GetValidatorSetByHeight, @@ -550,22 +550,22 @@ proto.cosmos.base.tendermint_1.v1beta1.ServiceClient.prototype.getValidatorSetBy /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest} request The + * @param {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest} request The * request proto * @param {?Object} metadata User defined * call metadata - * @return {!Promise} + * @return {!Promise} * Promise that resolves to the response */ -proto.cosmos.base.tendermint_1.v1beta1.ServicePromiseClient.prototype.getValidatorSetByHeight = +proto.cosmos.base.tendermint.v1beta1.ServicePromiseClient.prototype.getValidatorSetByHeight = function(request, metadata) { return this.client_.unaryCall(this.hostname_ + - '/cosmos.base.tendermint_1.v1beta1.Service/GetValidatorSetByHeight', + '/cosmos.base.tendermint.v1beta1.Service/GetValidatorSetByHeight', request, metadata || {}, methodDescriptor_Service_GetValidatorSetByHeight); }; -module.exports = proto.cosmos.base.tendermint_1.v1beta1; +module.exports = proto.cosmos.base.tendermint.v1beta1; diff --git a/src/types/proto-types/cosmos/base/tendermint/v1beta1/query_pb.js b/src/types/proto-types/cosmos/base/tendermint/v1beta1/query_pb.js index 29fa9747..8e21cb19 100644 --- a/src/types/proto-types/cosmos/base/tendermint/v1beta1/query_pb.js +++ b/src/types/proto-types/cosmos/base/tendermint/v1beta1/query_pb.js @@ -26,21 +26,21 @@ var tendermint_types_types_pb = require('../../../../tendermint/types/types_pb.j goog.object.extend(proto, tendermint_types_types_pb); var cosmos_base_query_v1beta1_pagination_pb = require('../../../../cosmos/base/query/v1beta1/pagination_pb.js'); goog.object.extend(proto, cosmos_base_query_v1beta1_pagination_pb); -goog.exportSymbol('proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest', null, global); -goog.exportSymbol('proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse', null, global); -goog.exportSymbol('proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest', null, global); -goog.exportSymbol('proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse', null, global); -goog.exportSymbol('proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest', null, global); -goog.exportSymbol('proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse', null, global); -goog.exportSymbol('proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest', null, global); -goog.exportSymbol('proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse', null, global); -goog.exportSymbol('proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest', null, global); -goog.exportSymbol('proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse', null, global); -goog.exportSymbol('proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest', null, global); -goog.exportSymbol('proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse', null, global); -goog.exportSymbol('proto.cosmos.base.tendermint_1.v1beta1.Module', null, global); -goog.exportSymbol('proto.cosmos.base.tendermint_1.v1beta1.Validator', null, global); -goog.exportSymbol('proto.cosmos.base.tendermint_1.v1beta1.VersionInfo', null, global); +goog.exportSymbol('proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest', null, global); +goog.exportSymbol('proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse', null, global); +goog.exportSymbol('proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest', null, global); +goog.exportSymbol('proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse', null, global); +goog.exportSymbol('proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest', null, global); +goog.exportSymbol('proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse', null, global); +goog.exportSymbol('proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest', null, global); +goog.exportSymbol('proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse', null, global); +goog.exportSymbol('proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest', null, global); +goog.exportSymbol('proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse', null, global); +goog.exportSymbol('proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest', null, global); +goog.exportSymbol('proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse', null, global); +goog.exportSymbol('proto.cosmos.base.tendermint.v1beta1.Module', null, global); +goog.exportSymbol('proto.cosmos.base.tendermint.v1beta1.Validator', null, global); +goog.exportSymbol('proto.cosmos.base.tendermint.v1beta1.VersionInfo', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -51,16 +51,16 @@ goog.exportSymbol('proto.cosmos.base.tendermint_1.v1beta1.VersionInfo', null, gl * @extends {jspb.Message} * @constructor */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest = function(opt_data) { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest, jspb.Message); +goog.inherits(proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.displayName = 'proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest'; + proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.displayName = 'proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest'; } /** * Generated by JsPbCodeGenerator. @@ -72,16 +72,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.repeatedFields_, null); +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.repeatedFields_, null); }; -goog.inherits(proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse, jspb.Message); +goog.inherits(proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.displayName = 'proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse'; + proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.displayName = 'proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse'; } /** * Generated by JsPbCodeGenerator. @@ -93,16 +93,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest = function(opt_data) { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest, jspb.Message); +goog.inherits(proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest.displayName = 'proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest'; + proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.displayName = 'proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest'; } /** * Generated by JsPbCodeGenerator. @@ -114,16 +114,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.repeatedFields_, null); +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.repeatedFields_, null); }; -goog.inherits(proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse, jspb.Message); +goog.inherits(proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.displayName = 'proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse'; + proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.displayName = 'proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse'; } /** * Generated by JsPbCodeGenerator. @@ -135,16 +135,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.cosmos.base.tendermint_1.v1beta1.Validator = function(opt_data) { +proto.cosmos.base.tendermint.v1beta1.Validator = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.cosmos.base.tendermint_1.v1beta1.Validator, jspb.Message); +goog.inherits(proto.cosmos.base.tendermint.v1beta1.Validator, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.cosmos.base.tendermint_1.v1beta1.Validator.displayName = 'proto.cosmos.base.tendermint_1.v1beta1.Validator'; + proto.cosmos.base.tendermint.v1beta1.Validator.displayName = 'proto.cosmos.base.tendermint.v1beta1.Validator'; } /** * Generated by JsPbCodeGenerator. @@ -156,16 +156,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest = function(opt_data) { +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest, jspb.Message); +goog.inherits(proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest.displayName = 'proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest'; + proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest.displayName = 'proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest'; } /** * Generated by JsPbCodeGenerator. @@ -177,16 +177,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse = function(opt_data) { +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse, jspb.Message); +goog.inherits(proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.displayName = 'proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse'; + proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.displayName = 'proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse'; } /** * Generated by JsPbCodeGenerator. @@ -198,16 +198,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest = function(opt_data) { +proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest, jspb.Message); +goog.inherits(proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest.displayName = 'proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest'; + proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest.displayName = 'proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest'; } /** * Generated by JsPbCodeGenerator. @@ -219,16 +219,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse = function(opt_data) { +proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse, jspb.Message); +goog.inherits(proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.displayName = 'proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse'; + proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.displayName = 'proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse'; } /** * Generated by JsPbCodeGenerator. @@ -240,16 +240,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest = function(opt_data) { +proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest, jspb.Message); +goog.inherits(proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest.displayName = 'proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest'; + proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest.displayName = 'proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest'; } /** * Generated by JsPbCodeGenerator. @@ -261,16 +261,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse = function(opt_data) { +proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse, jspb.Message); +goog.inherits(proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse.displayName = 'proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse'; + proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse.displayName = 'proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse'; } /** * Generated by JsPbCodeGenerator. @@ -282,16 +282,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest = function(opt_data) { +proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest, jspb.Message); +goog.inherits(proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest.displayName = 'proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest'; + proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest.displayName = 'proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest'; } /** * Generated by JsPbCodeGenerator. @@ -303,16 +303,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse = function(opt_data) { +proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse, jspb.Message); +goog.inherits(proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.displayName = 'proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse'; + proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.displayName = 'proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse'; } /** * Generated by JsPbCodeGenerator. @@ -324,16 +324,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.repeatedFields_, null); +proto.cosmos.base.tendermint.v1beta1.VersionInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.base.tendermint.v1beta1.VersionInfo.repeatedFields_, null); }; -goog.inherits(proto.cosmos.base.tendermint_1.v1beta1.VersionInfo, jspb.Message); +goog.inherits(proto.cosmos.base.tendermint.v1beta1.VersionInfo, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.displayName = 'proto.cosmos.base.tendermint_1.v1beta1.VersionInfo'; + proto.cosmos.base.tendermint.v1beta1.VersionInfo.displayName = 'proto.cosmos.base.tendermint.v1beta1.VersionInfo'; } /** * Generated by JsPbCodeGenerator. @@ -345,16 +345,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.cosmos.base.tendermint_1.v1beta1.Module = function(opt_data) { +proto.cosmos.base.tendermint.v1beta1.Module = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.cosmos.base.tendermint_1.v1beta1.Module, jspb.Message); +goog.inherits(proto.cosmos.base.tendermint.v1beta1.Module, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.cosmos.base.tendermint_1.v1beta1.Module.displayName = 'proto.cosmos.base.tendermint_1.v1beta1.Module'; + proto.cosmos.base.tendermint.v1beta1.Module.displayName = 'proto.cosmos.base.tendermint.v1beta1.Module'; } @@ -372,8 +372,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.prototype.toObject = function(opt_includeInstance) { - return proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.toObject(opt_includeInstance, this); +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.prototype.toObject = function(opt_includeInstance) { + return proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.toObject(opt_includeInstance, this); }; @@ -382,11 +382,11 @@ proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.prototype. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest} msg The msg instance to transform. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.toObject = function(includeInstance, msg) { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.toObject = function(includeInstance, msg) { var f, obj = { height: jspb.Message.getFieldWithDefault(msg, 1, 0), pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageRequest.toObject(includeInstance, f) @@ -403,23 +403,23 @@ proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.toObject = /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest} */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.deserializeBinary = function(bytes) { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest; - return proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest; + return proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest} msg The message object to deserialize into. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest} */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -448,9 +448,9 @@ proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.deserializ * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.prototype.serializeBinary = function() { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.serializeBinaryToWriter(this, writer); + proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -458,11 +458,11 @@ proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.prototype. /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest} message + * @param {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.serializeBinaryToWriter = function(message, writer) { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getHeight(); if (f !== 0) { @@ -486,16 +486,16 @@ proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.serializeB * optional int64 height = 1; * @return {number} */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.prototype.getHeight = function() { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.prototype.getHeight = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.prototype.setHeight = function(value) { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.prototype.setHeight = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; @@ -504,7 +504,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.prototype. * optional cosmos.base.query.v1beta1.PageRequest pagination = 2; * @return {?proto.cosmos.base.query.v1beta1.PageRequest} */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.prototype.getPagination = function() { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.prototype.getPagination = function() { return /** @type{?proto.cosmos.base.query.v1beta1.PageRequest} */ ( jspb.Message.getWrapperField(this, cosmos_base_query_v1beta1_pagination_pb.PageRequest, 2)); }; @@ -512,18 +512,18 @@ proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.prototype. /** * @param {?proto.cosmos.base.query.v1beta1.PageRequest|undefined} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.prototype.setPagination = function(value) { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.prototype.setPagination = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.prototype.clearPagination = function() { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.prototype.clearPagination = function() { return this.setPagination(undefined); }; @@ -532,7 +532,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.prototype. * Returns whether this field is set. * @return {boolean} */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.prototype.hasPagination = function() { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.prototype.hasPagination = function() { return jspb.Message.getField(this, 2) != null; }; @@ -543,7 +543,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightRequest.prototype. * @private {!Array} * @const */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.repeatedFields_ = [2]; +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.repeatedFields_ = [2]; @@ -560,8 +560,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.prototype.toObject = function(opt_includeInstance) { - return proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.toObject(opt_includeInstance, this); +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.prototype.toObject = function(opt_includeInstance) { + return proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.toObject(opt_includeInstance, this); }; @@ -570,15 +570,15 @@ proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.prototype * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse} msg The msg instance to transform. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.toObject = function(includeInstance, msg) { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.toObject = function(includeInstance, msg) { var f, obj = { blockHeight: jspb.Message.getFieldWithDefault(msg, 1, 0), validatorsList: jspb.Message.toObjectList(msg.getValidatorsList(), - proto.cosmos.base.tendermint_1.v1beta1.Validator.toObject, includeInstance), + proto.cosmos.base.tendermint.v1beta1.Validator.toObject, includeInstance), pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageResponse.toObject(includeInstance, f) }; @@ -593,23 +593,23 @@ proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.toObject /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse} */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.deserializeBinary = function(bytes) { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse; - return proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse; + return proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse} msg The message object to deserialize into. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse} */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -621,8 +621,8 @@ proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.deseriali msg.setBlockHeight(value); break; case 2: - var value = new proto.cosmos.base.tendermint_1.v1beta1.Validator; - reader.readMessage(value,proto.cosmos.base.tendermint_1.v1beta1.Validator.deserializeBinaryFromReader); + var value = new proto.cosmos.base.tendermint.v1beta1.Validator; + reader.readMessage(value,proto.cosmos.base.tendermint.v1beta1.Validator.deserializeBinaryFromReader); msg.addValidators(value); break; case 3: @@ -643,9 +643,9 @@ proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.deseriali * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.prototype.serializeBinary = function() { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.serializeBinaryToWriter(this, writer); + proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -653,11 +653,11 @@ proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.prototype /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse} message + * @param {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.serializeBinaryToWriter = function(message, writer) { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getBlockHeight(); if (f !== 0) { @@ -671,7 +671,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.serialize writer.writeRepeatedMessage( 2, f, - proto.cosmos.base.tendermint_1.v1beta1.Validator.serializeBinaryToWriter + proto.cosmos.base.tendermint.v1beta1.Validator.serializeBinaryToWriter ); } f = message.getPagination(); @@ -689,54 +689,54 @@ proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.serialize * optional int64 block_height = 1; * @return {number} */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.prototype.getBlockHeight = function() { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.prototype.getBlockHeight = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.prototype.setBlockHeight = function(value) { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.prototype.setBlockHeight = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; /** * repeated Validator validators = 2; - * @return {!Array} + * @return {!Array} */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.prototype.getValidatorsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.cosmos.base.tendermint_1.v1beta1.Validator, 2)); +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.prototype.getValidatorsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.cosmos.base.tendermint.v1beta1.Validator, 2)); }; /** - * @param {!Array} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse} returns this + * @param {!Array} value + * @return {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.prototype.setValidatorsList = function(value) { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.prototype.setValidatorsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.Validator=} opt_value + * @param {!proto.cosmos.base.tendermint.v1beta1.Validator=} opt_value * @param {number=} opt_index - * @return {!proto.cosmos.base.tendermint_1.v1beta1.Validator} + * @return {!proto.cosmos.base.tendermint.v1beta1.Validator} */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.prototype.addValidators = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.cosmos.base.tendermint_1.v1beta1.Validator, opt_index); +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.prototype.addValidators = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.cosmos.base.tendermint.v1beta1.Validator, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.prototype.clearValidatorsList = function() { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.prototype.clearValidatorsList = function() { return this.setValidatorsList([]); }; @@ -745,7 +745,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.prototype * optional cosmos.base.query.v1beta1.PageResponse pagination = 3; * @return {?proto.cosmos.base.query.v1beta1.PageResponse} */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.prototype.getPagination = function() { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.prototype.getPagination = function() { return /** @type{?proto.cosmos.base.query.v1beta1.PageResponse} */ ( jspb.Message.getWrapperField(this, cosmos_base_query_v1beta1_pagination_pb.PageResponse, 3)); }; @@ -753,18 +753,18 @@ proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.prototype /** * @param {?proto.cosmos.base.query.v1beta1.PageResponse|undefined} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.prototype.setPagination = function(value) { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.prototype.setPagination = function(value) { return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.prototype.clearPagination = function() { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.prototype.clearPagination = function() { return this.setPagination(undefined); }; @@ -773,7 +773,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.prototype * Returns whether this field is set. * @return {boolean} */ -proto.cosmos.base.tendermint_1.v1beta1.GetValidatorSetByHeightResponse.prototype.hasPagination = function() { +proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.prototype.hasPagination = function() { return jspb.Message.getField(this, 3) != null; }; @@ -794,8 +794,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest.prototype.toObject = function(opt_includeInstance) { - return proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest.toObject(opt_includeInstance, this); +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.prototype.toObject = function(opt_includeInstance) { + return proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.toObject(opt_includeInstance, this); }; @@ -804,11 +804,11 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest.prototype.to * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest} msg The msg instance to transform. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest.toObject = function(includeInstance, msg) { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.toObject = function(includeInstance, msg) { var f, obj = { pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageRequest.toObject(includeInstance, f) }; @@ -824,23 +824,23 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest.toObject = f /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest.deserializeBinary = function(bytes) { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest; - return proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest; + return proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest} msg The message object to deserialize into. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -865,9 +865,9 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest.deserializeB * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest.prototype.serializeBinary = function() { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest.serializeBinaryToWriter(this, writer); + proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -875,11 +875,11 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest.prototype.se /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest} message + * @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest.serializeBinaryToWriter = function(message, writer) { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getPagination(); if (f != null) { @@ -896,7 +896,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest.serializeBin * optional cosmos.base.query.v1beta1.PageRequest pagination = 1; * @return {?proto.cosmos.base.query.v1beta1.PageRequest} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest.prototype.getPagination = function() { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.prototype.getPagination = function() { return /** @type{?proto.cosmos.base.query.v1beta1.PageRequest} */ ( jspb.Message.getWrapperField(this, cosmos_base_query_v1beta1_pagination_pb.PageRequest, 1)); }; @@ -904,18 +904,18 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest.prototype.ge /** * @param {?proto.cosmos.base.query.v1beta1.PageRequest|undefined} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest.prototype.setPagination = function(value) { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.prototype.setPagination = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest.prototype.clearPagination = function() { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.prototype.clearPagination = function() { return this.setPagination(undefined); }; @@ -924,7 +924,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest.prototype.cl * Returns whether this field is set. * @return {boolean} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest.prototype.hasPagination = function() { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.prototype.hasPagination = function() { return jspb.Message.getField(this, 1) != null; }; @@ -935,7 +935,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetRequest.prototype.ha * @private {!Array} * @const */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.repeatedFields_ = [2]; +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.repeatedFields_ = [2]; @@ -952,8 +952,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.prototype.toObject = function(opt_includeInstance) { - return proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.toObject(opt_includeInstance, this); +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.prototype.toObject = function(opt_includeInstance) { + return proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.toObject(opt_includeInstance, this); }; @@ -962,15 +962,15 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.prototype.t * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse} msg The msg instance to transform. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.toObject = function(includeInstance, msg) { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.toObject = function(includeInstance, msg) { var f, obj = { blockHeight: jspb.Message.getFieldWithDefault(msg, 1, 0), validatorsList: jspb.Message.toObjectList(msg.getValidatorsList(), - proto.cosmos.base.tendermint_1.v1beta1.Validator.toObject, includeInstance), + proto.cosmos.base.tendermint.v1beta1.Validator.toObject, includeInstance), pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageResponse.toObject(includeInstance, f) }; @@ -985,23 +985,23 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.toObject = /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.deserializeBinary = function(bytes) { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse; - return proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse; + return proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse} msg The message object to deserialize into. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -1013,8 +1013,8 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.deserialize msg.setBlockHeight(value); break; case 2: - var value = new proto.cosmos.base.tendermint_1.v1beta1.Validator; - reader.readMessage(value,proto.cosmos.base.tendermint_1.v1beta1.Validator.deserializeBinaryFromReader); + var value = new proto.cosmos.base.tendermint.v1beta1.Validator; + reader.readMessage(value,proto.cosmos.base.tendermint.v1beta1.Validator.deserializeBinaryFromReader); msg.addValidators(value); break; case 3: @@ -1035,9 +1035,9 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.deserialize * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.prototype.serializeBinary = function() { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.serializeBinaryToWriter(this, writer); + proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1045,11 +1045,11 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.prototype.s /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse} message + * @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.serializeBinaryToWriter = function(message, writer) { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getBlockHeight(); if (f !== 0) { @@ -1063,7 +1063,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.serializeBi writer.writeRepeatedMessage( 2, f, - proto.cosmos.base.tendermint_1.v1beta1.Validator.serializeBinaryToWriter + proto.cosmos.base.tendermint.v1beta1.Validator.serializeBinaryToWriter ); } f = message.getPagination(); @@ -1081,54 +1081,54 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.serializeBi * optional int64 block_height = 1; * @return {number} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.prototype.getBlockHeight = function() { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.prototype.getBlockHeight = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.prototype.setBlockHeight = function(value) { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.prototype.setBlockHeight = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; /** * repeated Validator validators = 2; - * @return {!Array} + * @return {!Array} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.prototype.getValidatorsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.cosmos.base.tendermint_1.v1beta1.Validator, 2)); +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.prototype.getValidatorsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.cosmos.base.tendermint.v1beta1.Validator, 2)); }; /** - * @param {!Array} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse} returns this + * @param {!Array} value + * @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.prototype.setValidatorsList = function(value) { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.prototype.setValidatorsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.Validator=} opt_value + * @param {!proto.cosmos.base.tendermint.v1beta1.Validator=} opt_value * @param {number=} opt_index - * @return {!proto.cosmos.base.tendermint_1.v1beta1.Validator} + * @return {!proto.cosmos.base.tendermint.v1beta1.Validator} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.prototype.addValidators = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.cosmos.base.tendermint_1.v1beta1.Validator, opt_index); +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.prototype.addValidators = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.cosmos.base.tendermint.v1beta1.Validator, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.prototype.clearValidatorsList = function() { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.prototype.clearValidatorsList = function() { return this.setValidatorsList([]); }; @@ -1137,7 +1137,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.prototype.c * optional cosmos.base.query.v1beta1.PageResponse pagination = 3; * @return {?proto.cosmos.base.query.v1beta1.PageResponse} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.prototype.getPagination = function() { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.prototype.getPagination = function() { return /** @type{?proto.cosmos.base.query.v1beta1.PageResponse} */ ( jspb.Message.getWrapperField(this, cosmos_base_query_v1beta1_pagination_pb.PageResponse, 3)); }; @@ -1145,18 +1145,18 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.prototype.g /** * @param {?proto.cosmos.base.query.v1beta1.PageResponse|undefined} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.prototype.setPagination = function(value) { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.prototype.setPagination = function(value) { return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.prototype.clearPagination = function() { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.prototype.clearPagination = function() { return this.setPagination(undefined); }; @@ -1165,7 +1165,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.prototype.c * Returns whether this field is set. * @return {boolean} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestValidatorSetResponse.prototype.hasPagination = function() { +proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.prototype.hasPagination = function() { return jspb.Message.getField(this, 3) != null; }; @@ -1186,8 +1186,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.cosmos.base.tendermint_1.v1beta1.Validator.prototype.toObject = function(opt_includeInstance) { - return proto.cosmos.base.tendermint_1.v1beta1.Validator.toObject(opt_includeInstance, this); +proto.cosmos.base.tendermint.v1beta1.Validator.prototype.toObject = function(opt_includeInstance) { + return proto.cosmos.base.tendermint.v1beta1.Validator.toObject(opt_includeInstance, this); }; @@ -1196,11 +1196,11 @@ proto.cosmos.base.tendermint_1.v1beta1.Validator.prototype.toObject = function(o * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.cosmos.base.tendermint_1.v1beta1.Validator} msg The msg instance to transform. + * @param {!proto.cosmos.base.tendermint.v1beta1.Validator} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.Validator.toObject = function(includeInstance, msg) { +proto.cosmos.base.tendermint.v1beta1.Validator.toObject = function(includeInstance, msg) { var f, obj = { address: jspb.Message.getFieldWithDefault(msg, 1, ""), pubKey: (f = msg.getPubKey()) && google_protobuf_any_pb.Any.toObject(includeInstance, f), @@ -1219,23 +1219,23 @@ proto.cosmos.base.tendermint_1.v1beta1.Validator.toObject = function(includeInst /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.Validator} + * @return {!proto.cosmos.base.tendermint.v1beta1.Validator} */ -proto.cosmos.base.tendermint_1.v1beta1.Validator.deserializeBinary = function(bytes) { +proto.cosmos.base.tendermint.v1beta1.Validator.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.cosmos.base.tendermint_1.v1beta1.Validator; - return proto.cosmos.base.tendermint_1.v1beta1.Validator.deserializeBinaryFromReader(msg, reader); + var msg = new proto.cosmos.base.tendermint.v1beta1.Validator; + return proto.cosmos.base.tendermint.v1beta1.Validator.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.Validator} msg The message object to deserialize into. + * @param {!proto.cosmos.base.tendermint.v1beta1.Validator} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.Validator} + * @return {!proto.cosmos.base.tendermint.v1beta1.Validator} */ -proto.cosmos.base.tendermint_1.v1beta1.Validator.deserializeBinaryFromReader = function(msg, reader) { +proto.cosmos.base.tendermint.v1beta1.Validator.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -1272,9 +1272,9 @@ proto.cosmos.base.tendermint_1.v1beta1.Validator.deserializeBinaryFromReader = f * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.cosmos.base.tendermint_1.v1beta1.Validator.prototype.serializeBinary = function() { +proto.cosmos.base.tendermint.v1beta1.Validator.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.cosmos.base.tendermint_1.v1beta1.Validator.serializeBinaryToWriter(this, writer); + proto.cosmos.base.tendermint.v1beta1.Validator.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1282,11 +1282,11 @@ proto.cosmos.base.tendermint_1.v1beta1.Validator.prototype.serializeBinary = fun /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.Validator} message + * @param {!proto.cosmos.base.tendermint.v1beta1.Validator} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.Validator.serializeBinaryToWriter = function(message, writer) { +proto.cosmos.base.tendermint.v1beta1.Validator.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getAddress(); if (f.length > 0) { @@ -1324,16 +1324,16 @@ proto.cosmos.base.tendermint_1.v1beta1.Validator.serializeBinaryToWriter = funct * optional string address = 1; * @return {string} */ -proto.cosmos.base.tendermint_1.v1beta1.Validator.prototype.getAddress = function() { +proto.cosmos.base.tendermint.v1beta1.Validator.prototype.getAddress = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.Validator} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.Validator} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.Validator.prototype.setAddress = function(value) { +proto.cosmos.base.tendermint.v1beta1.Validator.prototype.setAddress = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -1342,7 +1342,7 @@ proto.cosmos.base.tendermint_1.v1beta1.Validator.prototype.setAddress = function * optional google.protobuf.Any pub_key = 2; * @return {?proto.google.protobuf.Any} */ -proto.cosmos.base.tendermint_1.v1beta1.Validator.prototype.getPubKey = function() { +proto.cosmos.base.tendermint.v1beta1.Validator.prototype.getPubKey = function() { return /** @type{?proto.google.protobuf.Any} */ ( jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 2)); }; @@ -1350,18 +1350,18 @@ proto.cosmos.base.tendermint_1.v1beta1.Validator.prototype.getPubKey = function( /** * @param {?proto.google.protobuf.Any|undefined} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.Validator} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.Validator} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.Validator.prototype.setPubKey = function(value) { +proto.cosmos.base.tendermint.v1beta1.Validator.prototype.setPubKey = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.Validator} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.Validator} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.Validator.prototype.clearPubKey = function() { +proto.cosmos.base.tendermint.v1beta1.Validator.prototype.clearPubKey = function() { return this.setPubKey(undefined); }; @@ -1370,7 +1370,7 @@ proto.cosmos.base.tendermint_1.v1beta1.Validator.prototype.clearPubKey = functio * Returns whether this field is set. * @return {boolean} */ -proto.cosmos.base.tendermint_1.v1beta1.Validator.prototype.hasPubKey = function() { +proto.cosmos.base.tendermint.v1beta1.Validator.prototype.hasPubKey = function() { return jspb.Message.getField(this, 2) != null; }; @@ -1379,16 +1379,16 @@ proto.cosmos.base.tendermint_1.v1beta1.Validator.prototype.hasPubKey = function( * optional int64 voting_power = 3; * @return {number} */ -proto.cosmos.base.tendermint_1.v1beta1.Validator.prototype.getVotingPower = function() { +proto.cosmos.base.tendermint.v1beta1.Validator.prototype.getVotingPower = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** * @param {number} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.Validator} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.Validator} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.Validator.prototype.setVotingPower = function(value) { +proto.cosmos.base.tendermint.v1beta1.Validator.prototype.setVotingPower = function(value) { return jspb.Message.setProto3IntField(this, 3, value); }; @@ -1397,16 +1397,16 @@ proto.cosmos.base.tendermint_1.v1beta1.Validator.prototype.setVotingPower = func * optional int64 proposer_priority = 4; * @return {number} */ -proto.cosmos.base.tendermint_1.v1beta1.Validator.prototype.getProposerPriority = function() { +proto.cosmos.base.tendermint.v1beta1.Validator.prototype.getProposerPriority = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** * @param {number} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.Validator} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.Validator} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.Validator.prototype.setProposerPriority = function(value) { +proto.cosmos.base.tendermint.v1beta1.Validator.prototype.setProposerPriority = function(value) { return jspb.Message.setProto3IntField(this, 4, value); }; @@ -1427,8 +1427,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest.prototype.toObject = function(opt_includeInstance) { - return proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest.toObject(opt_includeInstance, this); +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest.prototype.toObject = function(opt_includeInstance) { + return proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest.toObject(opt_includeInstance, this); }; @@ -1437,11 +1437,11 @@ proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest.prototype.toObjec * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest} msg The msg instance to transform. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest.toObject = function(includeInstance, msg) { +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest.toObject = function(includeInstance, msg) { var f, obj = { height: jspb.Message.getFieldWithDefault(msg, 1, 0) }; @@ -1457,23 +1457,23 @@ proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest.toObject = functi /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest} */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest.deserializeBinary = function(bytes) { +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest; - return proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest; + return proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest} msg The message object to deserialize into. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest} */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -1497,9 +1497,9 @@ proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest.deserializeBinary * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest.prototype.serializeBinary = function() { +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest.serializeBinaryToWriter(this, writer); + proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1507,11 +1507,11 @@ proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest.prototype.seriali /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest} message + * @param {!proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest.serializeBinaryToWriter = function(message, writer) { +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getHeight(); if (f !== 0) { @@ -1527,16 +1527,16 @@ proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest.serializeBinaryTo * optional int64 height = 1; * @return {number} */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest.prototype.getHeight = function() { +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest.prototype.getHeight = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightRequest.prototype.setHeight = function(value) { +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest.prototype.setHeight = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; @@ -1557,8 +1557,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.prototype.toObject = function(opt_includeInstance) { - return proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.toObject(opt_includeInstance, this); +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.prototype.toObject = function(opt_includeInstance) { + return proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.toObject(opt_includeInstance, this); }; @@ -1567,11 +1567,11 @@ proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.prototype.toObje * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse} msg The msg instance to transform. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.toObject = function(includeInstance, msg) { +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.toObject = function(includeInstance, msg) { var f, obj = { blockId: (f = msg.getBlockId()) && tendermint_types_types_pb.BlockID.toObject(includeInstance, f), block: (f = msg.getBlock()) && tendermint_types_block_pb.Block.toObject(includeInstance, f) @@ -1588,23 +1588,23 @@ proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.toObject = funct /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse} */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.deserializeBinary = function(bytes) { +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse; - return proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse; + return proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse} msg The message object to deserialize into. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse} */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -1634,9 +1634,9 @@ proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.deserializeBinar * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.prototype.serializeBinary = function() { +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.serializeBinaryToWriter(this, writer); + proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1644,11 +1644,11 @@ proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.prototype.serial /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse} message + * @param {!proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.serializeBinaryToWriter = function(message, writer) { +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getBlockId(); if (f != null) { @@ -1673,7 +1673,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.serializeBinaryT * optional tendermint.types.BlockID block_id = 1; * @return {?proto.tendermint.types.BlockID} */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.prototype.getBlockId = function() { +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.prototype.getBlockId = function() { return /** @type{?proto.tendermint.types.BlockID} */ ( jspb.Message.getWrapperField(this, tendermint_types_types_pb.BlockID, 1)); }; @@ -1681,18 +1681,18 @@ proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.prototype.getBlo /** * @param {?proto.tendermint.types.BlockID|undefined} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.prototype.setBlockId = function(value) { +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.prototype.setBlockId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.prototype.clearBlockId = function() { +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.prototype.clearBlockId = function() { return this.setBlockId(undefined); }; @@ -1701,7 +1701,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.prototype.clearB * Returns whether this field is set. * @return {boolean} */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.prototype.hasBlockId = function() { +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.prototype.hasBlockId = function() { return jspb.Message.getField(this, 1) != null; }; @@ -1710,7 +1710,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.prototype.hasBlo * optional tendermint.types.Block block = 2; * @return {?proto.tendermint.types.Block} */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.prototype.getBlock = function() { +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.prototype.getBlock = function() { return /** @type{?proto.tendermint.types.Block} */ ( jspb.Message.getWrapperField(this, tendermint_types_block_pb.Block, 2)); }; @@ -1718,18 +1718,18 @@ proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.prototype.getBlo /** * @param {?proto.tendermint.types.Block|undefined} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.prototype.setBlock = function(value) { +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.prototype.setBlock = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.prototype.clearBlock = function() { +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.prototype.clearBlock = function() { return this.setBlock(undefined); }; @@ -1738,7 +1738,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.prototype.clearB * Returns whether this field is set. * @return {boolean} */ -proto.cosmos.base.tendermint_1.v1beta1.GetBlockByHeightResponse.prototype.hasBlock = function() { +proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.prototype.hasBlock = function() { return jspb.Message.getField(this, 2) != null; }; @@ -1759,8 +1759,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest.prototype.toObject = function(opt_includeInstance) { - return proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest.toObject(opt_includeInstance, this); +proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest.prototype.toObject = function(opt_includeInstance) { + return proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest.toObject(opt_includeInstance, this); }; @@ -1769,11 +1769,11 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest.prototype.toObject * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest} msg The msg instance to transform. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest.toObject = function(includeInstance, msg) { +proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest.toObject = function(includeInstance, msg) { var f, obj = { }; @@ -1789,23 +1789,23 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest.toObject = function /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest.deserializeBinary = function(bytes) { +proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest; - return proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest; + return proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest} msg The message object to deserialize into. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -1825,9 +1825,9 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest.deserializeBinaryFr * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest.prototype.serializeBinary = function() { +proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest.serializeBinaryToWriter(this, writer); + proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1835,11 +1835,11 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest.prototype.serialize /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest} message + * @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockRequest.serializeBinaryToWriter = function(message, writer) { +proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; }; @@ -1860,8 +1860,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.prototype.toObject = function(opt_includeInstance) { - return proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.toObject(opt_includeInstance, this); +proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.prototype.toObject = function(opt_includeInstance) { + return proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.toObject(opt_includeInstance, this); }; @@ -1870,11 +1870,11 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.prototype.toObject * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse} msg The msg instance to transform. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.toObject = function(includeInstance, msg) { +proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.toObject = function(includeInstance, msg) { var f, obj = { blockId: (f = msg.getBlockId()) && tendermint_types_types_pb.BlockID.toObject(includeInstance, f), block: (f = msg.getBlock()) && tendermint_types_block_pb.Block.toObject(includeInstance, f) @@ -1891,23 +1891,23 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.toObject = functio /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.deserializeBinary = function(bytes) { +proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse; - return proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse; + return proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse} msg The message object to deserialize into. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -1937,9 +1937,9 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.deserializeBinaryF * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.prototype.serializeBinary = function() { +proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.serializeBinaryToWriter(this, writer); + proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1947,11 +1947,11 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.prototype.serializ /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse} message + * @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.serializeBinaryToWriter = function(message, writer) { +proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getBlockId(); if (f != null) { @@ -1976,7 +1976,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.serializeBinaryToW * optional tendermint.types.BlockID block_id = 1; * @return {?proto.tendermint.types.BlockID} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.prototype.getBlockId = function() { +proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.prototype.getBlockId = function() { return /** @type{?proto.tendermint.types.BlockID} */ ( jspb.Message.getWrapperField(this, tendermint_types_types_pb.BlockID, 1)); }; @@ -1984,18 +1984,18 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.prototype.getBlock /** * @param {?proto.tendermint.types.BlockID|undefined} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.prototype.setBlockId = function(value) { +proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.prototype.setBlockId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.prototype.clearBlockId = function() { +proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.prototype.clearBlockId = function() { return this.setBlockId(undefined); }; @@ -2004,7 +2004,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.prototype.clearBlo * Returns whether this field is set. * @return {boolean} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.prototype.hasBlockId = function() { +proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.prototype.hasBlockId = function() { return jspb.Message.getField(this, 1) != null; }; @@ -2013,7 +2013,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.prototype.hasBlock * optional tendermint.types.Block block = 2; * @return {?proto.tendermint.types.Block} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.prototype.getBlock = function() { +proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.prototype.getBlock = function() { return /** @type{?proto.tendermint.types.Block} */ ( jspb.Message.getWrapperField(this, tendermint_types_block_pb.Block, 2)); }; @@ -2021,18 +2021,18 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.prototype.getBlock /** * @param {?proto.tendermint.types.Block|undefined} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.prototype.setBlock = function(value) { +proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.prototype.setBlock = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.prototype.clearBlock = function() { +proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.prototype.clearBlock = function() { return this.setBlock(undefined); }; @@ -2041,7 +2041,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.prototype.clearBlo * Returns whether this field is set. * @return {boolean} */ -proto.cosmos.base.tendermint_1.v1beta1.GetLatestBlockResponse.prototype.hasBlock = function() { +proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.prototype.hasBlock = function() { return jspb.Message.getField(this, 2) != null; }; @@ -2062,8 +2062,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest.prototype.toObject = function(opt_includeInstance) { - return proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest.toObject(opt_includeInstance, this); +proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest.prototype.toObject = function(opt_includeInstance) { + return proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest.toObject(opt_includeInstance, this); }; @@ -2072,11 +2072,11 @@ proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest.prototype.toObject = fu * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest} msg The msg instance to transform. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest.toObject = function(includeInstance, msg) { +proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest.toObject = function(includeInstance, msg) { var f, obj = { }; @@ -2092,23 +2092,23 @@ proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest.toObject = function(inc /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest} */ -proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest.deserializeBinary = function(bytes) { +proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest; - return proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest; + return proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest} msg The message object to deserialize into. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest} */ -proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -2128,9 +2128,9 @@ proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest.deserializeBinaryFromRe * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest.prototype.serializeBinary = function() { +proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest.serializeBinaryToWriter(this, writer); + proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -2138,11 +2138,11 @@ proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest.prototype.serializeBina /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest} message + * @param {!proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetSyncingRequest.serializeBinaryToWriter = function(message, writer) { +proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; }; @@ -2163,8 +2163,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse.prototype.toObject = function(opt_includeInstance) { - return proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse.toObject(opt_includeInstance, this); +proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse.prototype.toObject = function(opt_includeInstance) { + return proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse.toObject(opt_includeInstance, this); }; @@ -2173,11 +2173,11 @@ proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse.prototype.toObject = f * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse} msg The msg instance to transform. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse.toObject = function(includeInstance, msg) { +proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse.toObject = function(includeInstance, msg) { var f, obj = { syncing: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) }; @@ -2193,23 +2193,23 @@ proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse.toObject = function(in /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse} */ -proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse.deserializeBinary = function(bytes) { +proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse; - return proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse; + return proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse} msg The message object to deserialize into. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse} */ -proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -2233,9 +2233,9 @@ proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse.deserializeBinaryFromR * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse.prototype.serializeBinary = function() { +proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse.serializeBinaryToWriter(this, writer); + proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -2243,11 +2243,11 @@ proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse.prototype.serializeBin /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse} message + * @param {!proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse.serializeBinaryToWriter = function(message, writer) { +proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getSyncing(); if (f) { @@ -2263,16 +2263,16 @@ proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse.serializeBinaryToWrite * optional bool syncing = 1; * @return {boolean} */ -proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse.prototype.getSyncing = function() { +proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse.prototype.getSyncing = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); }; /** * @param {boolean} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetSyncingResponse.prototype.setSyncing = function(value) { +proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse.prototype.setSyncing = function(value) { return jspb.Message.setProto3BooleanField(this, 1, value); }; @@ -2293,8 +2293,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest.prototype.toObject = function(opt_includeInstance) { - return proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest.toObject(opt_includeInstance, this); +proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest.prototype.toObject = function(opt_includeInstance) { + return proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest.toObject(opt_includeInstance, this); }; @@ -2303,11 +2303,11 @@ proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest.prototype.toObject = f * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest} msg The msg instance to transform. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest.toObject = function(includeInstance, msg) { +proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest.toObject = function(includeInstance, msg) { var f, obj = { }; @@ -2323,23 +2323,23 @@ proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest.toObject = function(in /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest} */ -proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest.deserializeBinary = function(bytes) { +proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest; - return proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest; + return proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest} msg The message object to deserialize into. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest} */ -proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -2359,9 +2359,9 @@ proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest.deserializeBinaryFromR * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest.prototype.serializeBinary = function() { +proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest.serializeBinaryToWriter(this, writer); + proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -2369,11 +2369,11 @@ proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest.prototype.serializeBin /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest} message + * @param {!proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoRequest.serializeBinaryToWriter = function(message, writer) { +proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; }; @@ -2394,8 +2394,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.prototype.toObject = function(opt_includeInstance) { - return proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.toObject(opt_includeInstance, this); +proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.prototype.toObject = function(opt_includeInstance) { + return proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.toObject(opt_includeInstance, this); }; @@ -2404,14 +2404,14 @@ proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.prototype.toObject = * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse} msg The msg instance to transform. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.toObject = function(includeInstance, msg) { +proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.toObject = function(includeInstance, msg) { var f, obj = { defaultNodeInfo: (f = msg.getDefaultNodeInfo()) && tendermint_p2p_types_pb.DefaultNodeInfo.toObject(includeInstance, f), - applicationVersion: (f = msg.getApplicationVersion()) && proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.toObject(includeInstance, f) + applicationVersion: (f = msg.getApplicationVersion()) && proto.cosmos.base.tendermint.v1beta1.VersionInfo.toObject(includeInstance, f) }; if (includeInstance) { @@ -2425,23 +2425,23 @@ proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.toObject = function(i /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse} */ -proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.deserializeBinary = function(bytes) { +proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse; - return proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse; + return proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse} msg The message object to deserialize into. + * @param {!proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse} + * @return {!proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse} */ -proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -2454,8 +2454,8 @@ proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.deserializeBinaryFrom msg.setDefaultNodeInfo(value); break; case 2: - var value = new proto.cosmos.base.tendermint_1.v1beta1.VersionInfo; - reader.readMessage(value,proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.deserializeBinaryFromReader); + var value = new proto.cosmos.base.tendermint.v1beta1.VersionInfo; + reader.readMessage(value,proto.cosmos.base.tendermint.v1beta1.VersionInfo.deserializeBinaryFromReader); msg.setApplicationVersion(value); break; default: @@ -2471,9 +2471,9 @@ proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.deserializeBinaryFrom * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.prototype.serializeBinary = function() { +proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.serializeBinaryToWriter(this, writer); + proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -2481,11 +2481,11 @@ proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.prototype.serializeBi /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse} message + * @param {!proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.serializeBinaryToWriter = function(message, writer) { +proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getDefaultNodeInfo(); if (f != null) { @@ -2500,7 +2500,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.serializeBinaryToWrit writer.writeMessage( 2, f, - proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.serializeBinaryToWriter + proto.cosmos.base.tendermint.v1beta1.VersionInfo.serializeBinaryToWriter ); } }; @@ -2510,7 +2510,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.serializeBinaryToWrit * optional tendermint.p2p.DefaultNodeInfo default_node_info = 1; * @return {?proto.tendermint.p2p.DefaultNodeInfo} */ -proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.prototype.getDefaultNodeInfo = function() { +proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.prototype.getDefaultNodeInfo = function() { return /** @type{?proto.tendermint.p2p.DefaultNodeInfo} */ ( jspb.Message.getWrapperField(this, tendermint_p2p_types_pb.DefaultNodeInfo, 1)); }; @@ -2518,18 +2518,18 @@ proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.prototype.getDefaultN /** * @param {?proto.tendermint.p2p.DefaultNodeInfo|undefined} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.prototype.setDefaultNodeInfo = function(value) { +proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.prototype.setDefaultNodeInfo = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.prototype.clearDefaultNodeInfo = function() { +proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.prototype.clearDefaultNodeInfo = function() { return this.setDefaultNodeInfo(undefined); }; @@ -2538,35 +2538,35 @@ proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.prototype.clearDefaul * Returns whether this field is set. * @return {boolean} */ -proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.prototype.hasDefaultNodeInfo = function() { +proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.prototype.hasDefaultNodeInfo = function() { return jspb.Message.getField(this, 1) != null; }; /** * optional VersionInfo application_version = 2; - * @return {?proto.cosmos.base.tendermint_1.v1beta1.VersionInfo} + * @return {?proto.cosmos.base.tendermint.v1beta1.VersionInfo} */ -proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.prototype.getApplicationVersion = function() { - return /** @type{?proto.cosmos.base.tendermint_1.v1beta1.VersionInfo} */ ( - jspb.Message.getWrapperField(this, proto.cosmos.base.tendermint_1.v1beta1.VersionInfo, 2)); +proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.prototype.getApplicationVersion = function() { + return /** @type{?proto.cosmos.base.tendermint.v1beta1.VersionInfo} */ ( + jspb.Message.getWrapperField(this, proto.cosmos.base.tendermint.v1beta1.VersionInfo, 2)); }; /** - * @param {?proto.cosmos.base.tendermint_1.v1beta1.VersionInfo|undefined} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse} returns this + * @param {?proto.cosmos.base.tendermint.v1beta1.VersionInfo|undefined} value + * @return {!proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.prototype.setApplicationVersion = function(value) { +proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.prototype.setApplicationVersion = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.prototype.clearApplicationVersion = function() { +proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.prototype.clearApplicationVersion = function() { return this.setApplicationVersion(undefined); }; @@ -2575,7 +2575,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.prototype.clearApplic * Returns whether this field is set. * @return {boolean} */ -proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.prototype.hasApplicationVersion = function() { +proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.prototype.hasApplicationVersion = function() { return jspb.Message.getField(this, 2) != null; }; @@ -2586,7 +2586,7 @@ proto.cosmos.base.tendermint_1.v1beta1.GetNodeInfoResponse.prototype.hasApplicat * @private {!Array} * @const */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.repeatedFields_ = [7]; +proto.cosmos.base.tendermint.v1beta1.VersionInfo.repeatedFields_ = [7]; @@ -2603,8 +2603,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.toObject = function(opt_includeInstance) { - return proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.toObject(opt_includeInstance, this); +proto.cosmos.base.tendermint.v1beta1.VersionInfo.prototype.toObject = function(opt_includeInstance) { + return proto.cosmos.base.tendermint.v1beta1.VersionInfo.toObject(opt_includeInstance, this); }; @@ -2613,11 +2613,11 @@ proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.toObject = function * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.cosmos.base.tendermint_1.v1beta1.VersionInfo} msg The msg instance to transform. + * @param {!proto.cosmos.base.tendermint.v1beta1.VersionInfo} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.toObject = function(includeInstance, msg) { +proto.cosmos.base.tendermint.v1beta1.VersionInfo.toObject = function(includeInstance, msg) { var f, obj = { name: jspb.Message.getFieldWithDefault(msg, 1, ""), appName: jspb.Message.getFieldWithDefault(msg, 2, ""), @@ -2626,7 +2626,7 @@ proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.toObject = function(includeIn buildTags: jspb.Message.getFieldWithDefault(msg, 5, ""), goVersion: jspb.Message.getFieldWithDefault(msg, 6, ""), buildDepsList: jspb.Message.toObjectList(msg.getBuildDepsList(), - proto.cosmos.base.tendermint_1.v1beta1.Module.toObject, includeInstance) + proto.cosmos.base.tendermint.v1beta1.Module.toObject, includeInstance) }; if (includeInstance) { @@ -2640,23 +2640,23 @@ proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.toObject = function(includeIn /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.VersionInfo} + * @return {!proto.cosmos.base.tendermint.v1beta1.VersionInfo} */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.deserializeBinary = function(bytes) { +proto.cosmos.base.tendermint.v1beta1.VersionInfo.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.cosmos.base.tendermint_1.v1beta1.VersionInfo; - return proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.deserializeBinaryFromReader(msg, reader); + var msg = new proto.cosmos.base.tendermint.v1beta1.VersionInfo; + return proto.cosmos.base.tendermint.v1beta1.VersionInfo.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.VersionInfo} msg The message object to deserialize into. + * @param {!proto.cosmos.base.tendermint.v1beta1.VersionInfo} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.VersionInfo} + * @return {!proto.cosmos.base.tendermint.v1beta1.VersionInfo} */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.deserializeBinaryFromReader = function(msg, reader) { +proto.cosmos.base.tendermint.v1beta1.VersionInfo.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -2688,8 +2688,8 @@ proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.deserializeBinaryFromReader = msg.setGoVersion(value); break; case 7: - var value = new proto.cosmos.base.tendermint_1.v1beta1.Module; - reader.readMessage(value,proto.cosmos.base.tendermint_1.v1beta1.Module.deserializeBinaryFromReader); + var value = new proto.cosmos.base.tendermint.v1beta1.Module; + reader.readMessage(value,proto.cosmos.base.tendermint.v1beta1.Module.deserializeBinaryFromReader); msg.addBuildDeps(value); break; default: @@ -2705,9 +2705,9 @@ proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.deserializeBinaryFromReader = * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.serializeBinary = function() { +proto.cosmos.base.tendermint.v1beta1.VersionInfo.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.serializeBinaryToWriter(this, writer); + proto.cosmos.base.tendermint.v1beta1.VersionInfo.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -2715,11 +2715,11 @@ proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.serializeBinary = f /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.VersionInfo} message + * @param {!proto.cosmos.base.tendermint.v1beta1.VersionInfo} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.serializeBinaryToWriter = function(message, writer) { +proto.cosmos.base.tendermint.v1beta1.VersionInfo.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getName(); if (f.length > 0) { @@ -2768,7 +2768,7 @@ proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.serializeBinaryToWriter = fun writer.writeRepeatedMessage( 7, f, - proto.cosmos.base.tendermint_1.v1beta1.Module.serializeBinaryToWriter + proto.cosmos.base.tendermint.v1beta1.Module.serializeBinaryToWriter ); } }; @@ -2778,16 +2778,16 @@ proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.serializeBinaryToWriter = fun * optional string name = 1; * @return {string} */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.getName = function() { +proto.cosmos.base.tendermint.v1beta1.VersionInfo.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.VersionInfo} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.VersionInfo} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.setName = function(value) { +proto.cosmos.base.tendermint.v1beta1.VersionInfo.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -2796,16 +2796,16 @@ proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.setName = function( * optional string app_name = 2; * @return {string} */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.getAppName = function() { +proto.cosmos.base.tendermint.v1beta1.VersionInfo.prototype.getAppName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.VersionInfo} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.VersionInfo} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.setAppName = function(value) { +proto.cosmos.base.tendermint.v1beta1.VersionInfo.prototype.setAppName = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; @@ -2814,16 +2814,16 @@ proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.setAppName = functi * optional string version = 3; * @return {string} */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.getVersion = function() { +proto.cosmos.base.tendermint.v1beta1.VersionInfo.prototype.getVersion = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.VersionInfo} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.VersionInfo} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.setVersion = function(value) { +proto.cosmos.base.tendermint.v1beta1.VersionInfo.prototype.setVersion = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; @@ -2832,16 +2832,16 @@ proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.setVersion = functi * optional string git_commit = 4; * @return {string} */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.getGitCommit = function() { +proto.cosmos.base.tendermint.v1beta1.VersionInfo.prototype.getGitCommit = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.VersionInfo} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.VersionInfo} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.setGitCommit = function(value) { +proto.cosmos.base.tendermint.v1beta1.VersionInfo.prototype.setGitCommit = function(value) { return jspb.Message.setProto3StringField(this, 4, value); }; @@ -2850,16 +2850,16 @@ proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.setGitCommit = func * optional string build_tags = 5; * @return {string} */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.getBuildTags = function() { +proto.cosmos.base.tendermint.v1beta1.VersionInfo.prototype.getBuildTags = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** * @param {string} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.VersionInfo} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.VersionInfo} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.setBuildTags = function(value) { +proto.cosmos.base.tendermint.v1beta1.VersionInfo.prototype.setBuildTags = function(value) { return jspb.Message.setProto3StringField(this, 5, value); }; @@ -2868,54 +2868,54 @@ proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.setBuildTags = func * optional string go_version = 6; * @return {string} */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.getGoVersion = function() { +proto.cosmos.base.tendermint.v1beta1.VersionInfo.prototype.getGoVersion = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** * @param {string} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.VersionInfo} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.VersionInfo} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.setGoVersion = function(value) { +proto.cosmos.base.tendermint.v1beta1.VersionInfo.prototype.setGoVersion = function(value) { return jspb.Message.setProto3StringField(this, 6, value); }; /** * repeated Module build_deps = 7; - * @return {!Array} + * @return {!Array} */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.getBuildDepsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.cosmos.base.tendermint_1.v1beta1.Module, 7)); +proto.cosmos.base.tendermint.v1beta1.VersionInfo.prototype.getBuildDepsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.cosmos.base.tendermint.v1beta1.Module, 7)); }; /** - * @param {!Array} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.VersionInfo} returns this + * @param {!Array} value + * @return {!proto.cosmos.base.tendermint.v1beta1.VersionInfo} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.setBuildDepsList = function(value) { +proto.cosmos.base.tendermint.v1beta1.VersionInfo.prototype.setBuildDepsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 7, value); }; /** - * @param {!proto.cosmos.base.tendermint_1.v1beta1.Module=} opt_value + * @param {!proto.cosmos.base.tendermint.v1beta1.Module=} opt_value * @param {number=} opt_index - * @return {!proto.cosmos.base.tendermint_1.v1beta1.Module} + * @return {!proto.cosmos.base.tendermint.v1beta1.Module} */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.addBuildDeps = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.cosmos.base.tendermint_1.v1beta1.Module, opt_index); +proto.cosmos.base.tendermint.v1beta1.VersionInfo.prototype.addBuildDeps = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.cosmos.base.tendermint.v1beta1.Module, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.VersionInfo} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.VersionInfo} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.VersionInfo.prototype.clearBuildDepsList = function() { +proto.cosmos.base.tendermint.v1beta1.VersionInfo.prototype.clearBuildDepsList = function() { return this.setBuildDepsList([]); }; @@ -2936,8 +2936,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.cosmos.base.tendermint_1.v1beta1.Module.prototype.toObject = function(opt_includeInstance) { - return proto.cosmos.base.tendermint_1.v1beta1.Module.toObject(opt_includeInstance, this); +proto.cosmos.base.tendermint.v1beta1.Module.prototype.toObject = function(opt_includeInstance) { + return proto.cosmos.base.tendermint.v1beta1.Module.toObject(opt_includeInstance, this); }; @@ -2946,11 +2946,11 @@ proto.cosmos.base.tendermint_1.v1beta1.Module.prototype.toObject = function(opt_ * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.cosmos.base.tendermint_1.v1beta1.Module} msg The msg instance to transform. + * @param {!proto.cosmos.base.tendermint.v1beta1.Module} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.Module.toObject = function(includeInstance, msg) { +proto.cosmos.base.tendermint.v1beta1.Module.toObject = function(includeInstance, msg) { var f, obj = { path: jspb.Message.getFieldWithDefault(msg, 1, ""), version: jspb.Message.getFieldWithDefault(msg, 2, ""), @@ -2968,23 +2968,23 @@ proto.cosmos.base.tendermint_1.v1beta1.Module.toObject = function(includeInstanc /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.Module} + * @return {!proto.cosmos.base.tendermint.v1beta1.Module} */ -proto.cosmos.base.tendermint_1.v1beta1.Module.deserializeBinary = function(bytes) { +proto.cosmos.base.tendermint.v1beta1.Module.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.cosmos.base.tendermint_1.v1beta1.Module; - return proto.cosmos.base.tendermint_1.v1beta1.Module.deserializeBinaryFromReader(msg, reader); + var msg = new proto.cosmos.base.tendermint.v1beta1.Module; + return proto.cosmos.base.tendermint.v1beta1.Module.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.Module} msg The message object to deserialize into. + * @param {!proto.cosmos.base.tendermint.v1beta1.Module} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.cosmos.base.tendermint_1.v1beta1.Module} + * @return {!proto.cosmos.base.tendermint.v1beta1.Module} */ -proto.cosmos.base.tendermint_1.v1beta1.Module.deserializeBinaryFromReader = function(msg, reader) { +proto.cosmos.base.tendermint.v1beta1.Module.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -3016,9 +3016,9 @@ proto.cosmos.base.tendermint_1.v1beta1.Module.deserializeBinaryFromReader = func * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.cosmos.base.tendermint_1.v1beta1.Module.prototype.serializeBinary = function() { +proto.cosmos.base.tendermint.v1beta1.Module.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.cosmos.base.tendermint_1.v1beta1.Module.serializeBinaryToWriter(this, writer); + proto.cosmos.base.tendermint.v1beta1.Module.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -3026,11 +3026,11 @@ proto.cosmos.base.tendermint_1.v1beta1.Module.prototype.serializeBinary = functi /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.cosmos.base.tendermint_1.v1beta1.Module} message + * @param {!proto.cosmos.base.tendermint.v1beta1.Module} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.cosmos.base.tendermint_1.v1beta1.Module.serializeBinaryToWriter = function(message, writer) { +proto.cosmos.base.tendermint.v1beta1.Module.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getPath(); if (f.length > 0) { @@ -3060,16 +3060,16 @@ proto.cosmos.base.tendermint_1.v1beta1.Module.serializeBinaryToWriter = function * optional string path = 1; * @return {string} */ -proto.cosmos.base.tendermint_1.v1beta1.Module.prototype.getPath = function() { +proto.cosmos.base.tendermint.v1beta1.Module.prototype.getPath = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.Module} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.Module} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.Module.prototype.setPath = function(value) { +proto.cosmos.base.tendermint.v1beta1.Module.prototype.setPath = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -3078,16 +3078,16 @@ proto.cosmos.base.tendermint_1.v1beta1.Module.prototype.setPath = function(value * optional string version = 2; * @return {string} */ -proto.cosmos.base.tendermint_1.v1beta1.Module.prototype.getVersion = function() { +proto.cosmos.base.tendermint.v1beta1.Module.prototype.getVersion = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.Module} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.Module} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.Module.prototype.setVersion = function(value) { +proto.cosmos.base.tendermint.v1beta1.Module.prototype.setVersion = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; @@ -3096,18 +3096,18 @@ proto.cosmos.base.tendermint_1.v1beta1.Module.prototype.setVersion = function(va * optional string sum = 3; * @return {string} */ -proto.cosmos.base.tendermint_1.v1beta1.Module.prototype.getSum = function() { +proto.cosmos.base.tendermint.v1beta1.Module.prototype.getSum = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.cosmos.base.tendermint_1.v1beta1.Module} returns this + * @return {!proto.cosmos.base.tendermint.v1beta1.Module} returns this */ -proto.cosmos.base.tendermint_1.v1beta1.Module.prototype.setSum = function(value) { +proto.cosmos.base.tendermint.v1beta1.Module.prototype.setSum = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; -goog.object.extend(exports, proto.cosmos.base.tendermint_1.v1beta1); +goog.object.extend(exports, proto.cosmos.base.tendermint.v1beta1); diff --git a/src/types/proto-types/cosmos/tx/v1beta1/service_pb.js b/src/types/proto-types/cosmos/tx/v1beta1/service_pb.js index 5152870c..f73e1e86 100644 --- a/src/types/proto-types/cosmos/tx/v1beta1/service_pb.js +++ b/src/types/proto-types/cosmos/tx/v1beta1/service_pb.js @@ -29,6 +29,7 @@ goog.exportSymbol('proto.cosmos.tx.v1beta1.GetTxRequest', null, global); goog.exportSymbol('proto.cosmos.tx.v1beta1.GetTxResponse', null, global); goog.exportSymbol('proto.cosmos.tx.v1beta1.GetTxsEventRequest', null, global); goog.exportSymbol('proto.cosmos.tx.v1beta1.GetTxsEventResponse', null, global); +goog.exportSymbol('proto.cosmos.tx.v1beta1.OrderBy', null, global); goog.exportSymbol('proto.cosmos.tx.v1beta1.SimulateRequest', null, global); goog.exportSymbol('proto.cosmos.tx.v1beta1.SimulateResponse', null, global); /** @@ -239,7 +240,8 @@ proto.cosmos.tx.v1beta1.GetTxsEventRequest.prototype.toObject = function(opt_inc proto.cosmos.tx.v1beta1.GetTxsEventRequest.toObject = function(includeInstance, msg) { var f, obj = { eventsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f, - pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageRequest.toObject(includeInstance, f) + pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageRequest.toObject(includeInstance, f), + orderBy: jspb.Message.getFieldWithDefault(msg, 3, 0) }; if (includeInstance) { @@ -285,6 +287,10 @@ proto.cosmos.tx.v1beta1.GetTxsEventRequest.deserializeBinaryFromReader = functio reader.readMessage(value,cosmos_base_query_v1beta1_pagination_pb.PageRequest.deserializeBinaryFromReader); msg.setPagination(value); break; + case 3: + var value = /** @type {!proto.cosmos.tx.v1beta1.OrderBy} */ (reader.readEnum()); + msg.setOrderBy(value); + break; default: reader.skipField(); break; @@ -329,6 +335,13 @@ proto.cosmos.tx.v1beta1.GetTxsEventRequest.serializeBinaryToWriter = function(me cosmos_base_query_v1beta1_pagination_pb.PageRequest.serializeBinaryToWriter ); } + f = message.getOrderBy(); + if (f !== 0.0) { + writer.writeEnum( + 3, + f + ); + } }; @@ -406,6 +419,24 @@ proto.cosmos.tx.v1beta1.GetTxsEventRequest.prototype.hasPagination = function() }; +/** + * optional OrderBy order_by = 3; + * @return {!proto.cosmos.tx.v1beta1.OrderBy} + */ +proto.cosmos.tx.v1beta1.GetTxsEventRequest.prototype.getOrderBy = function() { + return /** @type {!proto.cosmos.tx.v1beta1.OrderBy} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {!proto.cosmos.tx.v1beta1.OrderBy} value + * @return {!proto.cosmos.tx.v1beta1.GetTxsEventRequest} returns this + */ +proto.cosmos.tx.v1beta1.GetTxsEventRequest.prototype.setOrderBy = function(value) { + return jspb.Message.setProto3EnumField(this, 3, value); +}; + + /** * List of repeated fields within this message type. @@ -1690,6 +1721,15 @@ proto.cosmos.tx.v1beta1.GetTxResponse.prototype.hasTxResponse = function() { }; +/** + * @enum {number} + */ +proto.cosmos.tx.v1beta1.OrderBy = { + ORDER_BY_UNSPECIFIED: 0, + ORDER_BY_ASC: 1, + ORDER_BY_DESC: 2 +}; + /** * @enum {number} */ diff --git a/src/types/proto-types/irismod/htlc/genesis_pb.js b/src/types/proto-types/irismod/htlc/genesis_pb.js index 44c3dcdf..7e14d9a4 100644 --- a/src/types/proto-types/irismod/htlc/genesis_pb.js +++ b/src/types/proto-types/irismod/htlc/genesis_pb.js @@ -16,6 +16,8 @@ var gogoproto_gogo_pb = require('../../gogoproto/gogo_pb.js'); goog.object.extend(proto, gogoproto_gogo_pb); var irismod_htlc_htlc_pb = require('../../irismod/htlc/htlc_pb.js'); goog.object.extend(proto, irismod_htlc_htlc_pb); +var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); +goog.object.extend(proto, google_protobuf_timestamp_pb); goog.exportSymbol('proto.irismod.htlc.GenesisState', null, global); /** * Generated by JsPbCodeGenerator. @@ -28,7 +30,7 @@ goog.exportSymbol('proto.irismod.htlc.GenesisState', null, global); * @constructor */ proto.irismod.htlc.GenesisState = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); + jspb.Message.initialize(this, opt_data, 0, -1, proto.irismod.htlc.GenesisState.repeatedFields_, null); }; goog.inherits(proto.irismod.htlc.GenesisState, jspb.Message); if (goog.DEBUG && !COMPILED) { @@ -39,6 +41,13 @@ if (goog.DEBUG && !COMPILED) { proto.irismod.htlc.GenesisState.displayName = 'proto.irismod.htlc.GenesisState'; } +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.irismod.htlc.GenesisState.repeatedFields_ = [2,3]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -70,7 +79,12 @@ proto.irismod.htlc.GenesisState.prototype.toObject = function(opt_includeInstanc */ proto.irismod.htlc.GenesisState.toObject = function(includeInstance, msg) { var f, obj = { - pendingHtlcsMap: (f = msg.getPendingHtlcsMap()) ? f.toObject(includeInstance, proto.irismod.htlc.HTLC.toObject) : [] + params: (f = msg.getParams()) && irismod_htlc_htlc_pb.Params.toObject(includeInstance, f), + htlcsList: jspb.Message.toObjectList(msg.getHtlcsList(), + irismod_htlc_htlc_pb.HTLC.toObject, includeInstance), + suppliesList: jspb.Message.toObjectList(msg.getSuppliesList(), + irismod_htlc_htlc_pb.AssetSupply.toObject, includeInstance), + previousBlockTime: (f = msg.getPreviousBlockTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) }; if (includeInstance) { @@ -108,10 +122,24 @@ proto.irismod.htlc.GenesisState.deserializeBinaryFromReader = function(msg, read var field = reader.getFieldNumber(); switch (field) { case 1: - var value = msg.getPendingHtlcsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.irismod.htlc.HTLC.deserializeBinaryFromReader, "", new proto.irismod.htlc.HTLC()); - }); + var value = new irismod_htlc_htlc_pb.Params; + reader.readMessage(value,irismod_htlc_htlc_pb.Params.deserializeBinaryFromReader); + msg.setParams(value); + break; + case 2: + var value = new irismod_htlc_htlc_pb.HTLC; + reader.readMessage(value,irismod_htlc_htlc_pb.HTLC.deserializeBinaryFromReader); + msg.addHtlcs(value); + break; + case 3: + var value = new irismod_htlc_htlc_pb.AssetSupply; + reader.readMessage(value,irismod_htlc_htlc_pb.AssetSupply.deserializeBinaryFromReader); + msg.addSupplies(value); + break; + case 4: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setPreviousBlockTime(value); break; default: reader.skipField(); @@ -142,33 +170,189 @@ proto.irismod.htlc.GenesisState.prototype.serializeBinary = function() { */ proto.irismod.htlc.GenesisState.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getPendingHtlcsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.irismod.htlc.HTLC.serializeBinaryToWriter); + f = message.getParams(); + if (f != null) { + writer.writeMessage( + 1, + f, + irismod_htlc_htlc_pb.Params.serializeBinaryToWriter + ); } + f = message.getHtlcsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + irismod_htlc_htlc_pb.HTLC.serializeBinaryToWriter + ); + } + f = message.getSuppliesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + irismod_htlc_htlc_pb.AssetSupply.serializeBinaryToWriter + ); + } + f = message.getPreviousBlockTime(); + if (f != null) { + writer.writeMessage( + 4, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } +}; + + +/** + * optional Params params = 1; + * @return {?proto.irismod.htlc.Params} + */ +proto.irismod.htlc.GenesisState.prototype.getParams = function() { + return /** @type{?proto.irismod.htlc.Params} */ ( + jspb.Message.getWrapperField(this, irismod_htlc_htlc_pb.Params, 1)); +}; + + +/** + * @param {?proto.irismod.htlc.Params|undefined} value + * @return {!proto.irismod.htlc.GenesisState} returns this +*/ +proto.irismod.htlc.GenesisState.prototype.setParams = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.irismod.htlc.GenesisState} returns this + */ +proto.irismod.htlc.GenesisState.prototype.clearParams = function() { + return this.setParams(undefined); }; /** - * map pending_htlcs = 1; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} + * Returns whether this field is set. + * @return {boolean} */ -proto.irismod.htlc.GenesisState.prototype.getPendingHtlcsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 1, opt_noLazyCreate, - proto.irismod.htlc.HTLC)); +proto.irismod.htlc.GenesisState.prototype.hasParams = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * Clears values from the map. The map will be non-null. + * repeated HTLC htlcs = 2; + * @return {!Array} + */ +proto.irismod.htlc.GenesisState.prototype.getHtlcsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, irismod_htlc_htlc_pb.HTLC, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.irismod.htlc.GenesisState} returns this +*/ +proto.irismod.htlc.GenesisState.prototype.setHtlcsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.irismod.htlc.HTLC=} opt_value + * @param {number=} opt_index + * @return {!proto.irismod.htlc.HTLC} + */ +proto.irismod.htlc.GenesisState.prototype.addHtlcs = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.irismod.htlc.HTLC, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. * @return {!proto.irismod.htlc.GenesisState} returns this */ -proto.irismod.htlc.GenesisState.prototype.clearPendingHtlcsMap = function() { - this.getPendingHtlcsMap().clear(); - return this;}; +proto.irismod.htlc.GenesisState.prototype.clearHtlcsList = function() { + return this.setHtlcsList([]); +}; + + +/** + * repeated AssetSupply supplies = 3; + * @return {!Array} + */ +proto.irismod.htlc.GenesisState.prototype.getSuppliesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, irismod_htlc_htlc_pb.AssetSupply, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.irismod.htlc.GenesisState} returns this +*/ +proto.irismod.htlc.GenesisState.prototype.setSuppliesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.irismod.htlc.AssetSupply=} opt_value + * @param {number=} opt_index + * @return {!proto.irismod.htlc.AssetSupply} + */ +proto.irismod.htlc.GenesisState.prototype.addSupplies = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.irismod.htlc.AssetSupply, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.irismod.htlc.GenesisState} returns this + */ +proto.irismod.htlc.GenesisState.prototype.clearSuppliesList = function() { + return this.setSuppliesList([]); +}; + + +/** + * optional google.protobuf.Timestamp previous_block_time = 4; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.irismod.htlc.GenesisState.prototype.getPreviousBlockTime = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.irismod.htlc.GenesisState} returns this +*/ +proto.irismod.htlc.GenesisState.prototype.setPreviousBlockTime = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.irismod.htlc.GenesisState} returns this + */ +proto.irismod.htlc.GenesisState.prototype.clearPreviousBlockTime = function() { + return this.setPreviousBlockTime(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.irismod.htlc.GenesisState.prototype.hasPreviousBlockTime = function() { + return jspb.Message.getField(this, 4) != null; +}; goog.object.extend(exports, proto.irismod.htlc); diff --git a/src/types/proto-types/irismod/htlc/htlc_pb.js b/src/types/proto-types/irismod/htlc/htlc_pb.js index 9848300d..3da47f2a 100644 --- a/src/types/proto-types/irismod/htlc/htlc_pb.js +++ b/src/types/proto-types/irismod/htlc/htlc_pb.js @@ -16,8 +16,15 @@ var cosmos_base_v1beta1_coin_pb = require('../../cosmos/base/v1beta1/coin_pb.js' goog.object.extend(proto, cosmos_base_v1beta1_coin_pb); var gogoproto_gogo_pb = require('../../gogoproto/gogo_pb.js'); goog.object.extend(proto, gogoproto_gogo_pb); +var google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js'); +goog.object.extend(proto, google_protobuf_duration_pb); +goog.exportSymbol('proto.irismod.htlc.AssetParam', null, global); +goog.exportSymbol('proto.irismod.htlc.AssetSupply', null, global); goog.exportSymbol('proto.irismod.htlc.HTLC', null, global); goog.exportSymbol('proto.irismod.htlc.HTLCState', null, global); +goog.exportSymbol('proto.irismod.htlc.Params', null, global); +goog.exportSymbol('proto.irismod.htlc.SupplyLimit', null, global); +goog.exportSymbol('proto.irismod.htlc.SwapDirection', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -39,13 +46,97 @@ if (goog.DEBUG && !COMPILED) { */ proto.irismod.htlc.HTLC.displayName = 'proto.irismod.htlc.HTLC'; } +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.irismod.htlc.AssetSupply = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.irismod.htlc.AssetSupply, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.irismod.htlc.AssetSupply.displayName = 'proto.irismod.htlc.AssetSupply'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.irismod.htlc.Params = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.irismod.htlc.Params.repeatedFields_, null); +}; +goog.inherits(proto.irismod.htlc.Params, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.irismod.htlc.Params.displayName = 'proto.irismod.htlc.Params'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.irismod.htlc.AssetParam = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.irismod.htlc.AssetParam, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.irismod.htlc.AssetParam.displayName = 'proto.irismod.htlc.AssetParam'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.irismod.htlc.SupplyLimit = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.irismod.htlc.SupplyLimit, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.irismod.htlc.SupplyLimit.displayName = 'proto.irismod.htlc.SupplyLimit'; +} /** * List of repeated fields within this message type. * @private {!Array} * @const */ -proto.irismod.htlc.HTLC.repeatedFields_ = [4]; +proto.irismod.htlc.HTLC.repeatedFields_ = [6]; @@ -78,15 +169,21 @@ proto.irismod.htlc.HTLC.prototype.toObject = function(opt_includeInstance) { */ proto.irismod.htlc.HTLC.toObject = function(includeInstance, msg) { var f, obj = { - sender: jspb.Message.getFieldWithDefault(msg, 1, ""), - to: jspb.Message.getFieldWithDefault(msg, 2, ""), - receiverOnOtherChain: jspb.Message.getFieldWithDefault(msg, 3, ""), + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + sender: jspb.Message.getFieldWithDefault(msg, 2, ""), + to: jspb.Message.getFieldWithDefault(msg, 3, ""), + receiverOnOtherChain: jspb.Message.getFieldWithDefault(msg, 4, ""), + senderOnOtherChain: jspb.Message.getFieldWithDefault(msg, 5, ""), amountList: jspb.Message.toObjectList(msg.getAmountList(), cosmos_base_v1beta1_coin_pb.Coin.toObject, includeInstance), - secret: jspb.Message.getFieldWithDefault(msg, 5, ""), - timestamp: jspb.Message.getFieldWithDefault(msg, 6, 0), - expirationHeight: jspb.Message.getFieldWithDefault(msg, 7, 0), - state: jspb.Message.getFieldWithDefault(msg, 8, 0) + hashLock: jspb.Message.getFieldWithDefault(msg, 7, ""), + secret: jspb.Message.getFieldWithDefault(msg, 8, ""), + timestamp: jspb.Message.getFieldWithDefault(msg, 9, 0), + expirationHeight: jspb.Message.getFieldWithDefault(msg, 10, 0), + state: jspb.Message.getFieldWithDefault(msg, 11, 0), + closedBlock: jspb.Message.getFieldWithDefault(msg, 12, 0), + transfer: jspb.Message.getBooleanFieldWithDefault(msg, 13, false), + direction: jspb.Message.getFieldWithDefault(msg, 14, 0) }; if (includeInstance) { @@ -125,37 +222,61 @@ proto.irismod.htlc.HTLC.deserializeBinaryFromReader = function(msg, reader) { switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setSender(value); + msg.setId(value); break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setTo(value); + msg.setSender(value); break; case 3: var value = /** @type {string} */ (reader.readString()); - msg.setReceiverOnOtherChain(value); + msg.setTo(value); break; case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setReceiverOnOtherChain(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setSenderOnOtherChain(value); + break; + case 6: var value = new cosmos_base_v1beta1_coin_pb.Coin; reader.readMessage(value,cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); msg.addAmount(value); break; - case 5: + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setHashLock(value); + break; + case 8: var value = /** @type {string} */ (reader.readString()); msg.setSecret(value); break; - case 6: + case 9: var value = /** @type {number} */ (reader.readUint64()); msg.setTimestamp(value); break; - case 7: + case 10: var value = /** @type {number} */ (reader.readUint64()); msg.setExpirationHeight(value); break; - case 8: + case 11: var value = /** @type {!proto.irismod.htlc.HTLCState} */ (reader.readEnum()); msg.setState(value); break; + case 12: + var value = /** @type {number} */ (reader.readUint64()); + msg.setClosedBlock(value); + break; + case 13: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setTransfer(value); + break; + case 14: + var value = /** @type {!proto.irismod.htlc.SwapDirection} */ (reader.readEnum()); + msg.setDirection(value); + break; default: reader.skipField(); break; @@ -185,60 +306,102 @@ proto.irismod.htlc.HTLC.prototype.serializeBinary = function() { */ proto.irismod.htlc.HTLC.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getSender(); + f = message.getId(); if (f.length > 0) { writer.writeString( 1, f ); } - f = message.getTo(); + f = message.getSender(); if (f.length > 0) { writer.writeString( 2, f ); } - f = message.getReceiverOnOtherChain(); + f = message.getTo(); if (f.length > 0) { writer.writeString( 3, f ); } + f = message.getReceiverOnOtherChain(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getSenderOnOtherChain(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } f = message.getAmountList(); if (f.length > 0) { writer.writeRepeatedMessage( - 4, + 6, f, cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter ); } + f = message.getHashLock(); + if (f.length > 0) { + writer.writeString( + 7, + f + ); + } f = message.getSecret(); if (f.length > 0) { writer.writeString( - 5, + 8, f ); } f = message.getTimestamp(); if (f !== 0) { writer.writeUint64( - 6, + 9, f ); } f = message.getExpirationHeight(); if (f !== 0) { writer.writeUint64( - 7, + 10, f ); } f = message.getState(); if (f !== 0.0) { writer.writeEnum( - 8, + 11, + f + ); + } + f = message.getClosedBlock(); + if (f !== 0) { + writer.writeUint64( + 12, + f + ); + } + f = message.getTransfer(); + if (f) { + writer.writeBool( + 13, + f + ); + } + f = message.getDirection(); + if (f !== 0.0) { + writer.writeEnum( + 14, f ); } @@ -246,10 +409,10 @@ proto.irismod.htlc.HTLC.serializeBinaryToWriter = function(message, writer) { /** - * optional string sender = 1; + * optional string id = 1; * @return {string} */ -proto.irismod.htlc.HTLC.prototype.getSender = function() { +proto.irismod.htlc.HTLC.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; @@ -258,16 +421,16 @@ proto.irismod.htlc.HTLC.prototype.getSender = function() { * @param {string} value * @return {!proto.irismod.htlc.HTLC} returns this */ -proto.irismod.htlc.HTLC.prototype.setSender = function(value) { +proto.irismod.htlc.HTLC.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string to = 2; + * optional string sender = 2; * @return {string} */ -proto.irismod.htlc.HTLC.prototype.getTo = function() { +proto.irismod.htlc.HTLC.prototype.getSender = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; @@ -276,16 +439,16 @@ proto.irismod.htlc.HTLC.prototype.getTo = function() { * @param {string} value * @return {!proto.irismod.htlc.HTLC} returns this */ -proto.irismod.htlc.HTLC.prototype.setTo = function(value) { +proto.irismod.htlc.HTLC.prototype.setSender = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional string receiver_on_other_chain = 3; + * optional string to = 3; * @return {string} */ -proto.irismod.htlc.HTLC.prototype.getReceiverOnOtherChain = function() { +proto.irismod.htlc.HTLC.prototype.getTo = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; @@ -294,18 +457,54 @@ proto.irismod.htlc.HTLC.prototype.getReceiverOnOtherChain = function() { * @param {string} value * @return {!proto.irismod.htlc.HTLC} returns this */ -proto.irismod.htlc.HTLC.prototype.setReceiverOnOtherChain = function(value) { +proto.irismod.htlc.HTLC.prototype.setTo = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; /** - * repeated cosmos.base.v1beta1.Coin amount = 4; + * optional string receiver_on_other_chain = 4; + * @return {string} + */ +proto.irismod.htlc.HTLC.prototype.getReceiverOnOtherChain = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.irismod.htlc.HTLC} returns this + */ +proto.irismod.htlc.HTLC.prototype.setReceiverOnOtherChain = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional string sender_on_other_chain = 5; + * @return {string} + */ +proto.irismod.htlc.HTLC.prototype.getSenderOnOtherChain = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.irismod.htlc.HTLC} returns this + */ +proto.irismod.htlc.HTLC.prototype.setSenderOnOtherChain = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * repeated cosmos.base.v1beta1.Coin amount = 6; * @return {!Array} */ proto.irismod.htlc.HTLC.prototype.getAmountList = function() { return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 4)); + jspb.Message.getRepeatedWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 6)); }; @@ -314,7 +513,7 @@ proto.irismod.htlc.HTLC.prototype.getAmountList = function() { * @return {!proto.irismod.htlc.HTLC} returns this */ proto.irismod.htlc.HTLC.prototype.setAmountList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); + return jspb.Message.setRepeatedWrapperField(this, 6, value); }; @@ -324,7 +523,7 @@ proto.irismod.htlc.HTLC.prototype.setAmountList = function(value) { * @return {!proto.cosmos.base.v1beta1.Coin} */ proto.irismod.htlc.HTLC.prototype.addAmount = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.cosmos.base.v1beta1.Coin, opt_index); + return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.cosmos.base.v1beta1.Coin, opt_index); }; @@ -338,11 +537,29 @@ proto.irismod.htlc.HTLC.prototype.clearAmountList = function() { /** - * optional string secret = 5; + * optional string hash_lock = 7; + * @return {string} + */ +proto.irismod.htlc.HTLC.prototype.getHashLock = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + + +/** + * @param {string} value + * @return {!proto.irismod.htlc.HTLC} returns this + */ +proto.irismod.htlc.HTLC.prototype.setHashLock = function(value) { + return jspb.Message.setProto3StringField(this, 7, value); +}; + + +/** + * optional string secret = 8; * @return {string} */ proto.irismod.htlc.HTLC.prototype.getSecret = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); }; @@ -351,16 +568,16 @@ proto.irismod.htlc.HTLC.prototype.getSecret = function() { * @return {!proto.irismod.htlc.HTLC} returns this */ proto.irismod.htlc.HTLC.prototype.setSecret = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); + return jspb.Message.setProto3StringField(this, 8, value); }; /** - * optional uint64 timestamp = 6; + * optional uint64 timestamp = 9; * @return {number} */ proto.irismod.htlc.HTLC.prototype.getTimestamp = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); }; @@ -369,16 +586,16 @@ proto.irismod.htlc.HTLC.prototype.getTimestamp = function() { * @return {!proto.irismod.htlc.HTLC} returns this */ proto.irismod.htlc.HTLC.prototype.setTimestamp = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); + return jspb.Message.setProto3IntField(this, 9, value); }; /** - * optional uint64 expiration_height = 7; + * optional uint64 expiration_height = 10; * @return {number} */ proto.irismod.htlc.HTLC.prototype.getExpirationHeight = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); }; @@ -387,16 +604,16 @@ proto.irismod.htlc.HTLC.prototype.getExpirationHeight = function() { * @return {!proto.irismod.htlc.HTLC} returns this */ proto.irismod.htlc.HTLC.prototype.setExpirationHeight = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); + return jspb.Message.setProto3IntField(this, 10, value); }; /** - * optional HTLCState state = 8; + * optional HTLCState state = 11; * @return {!proto.irismod.htlc.HTLCState} */ proto.irismod.htlc.HTLC.prototype.getState = function() { - return /** @type {!proto.irismod.htlc.HTLCState} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); + return /** @type {!proto.irismod.htlc.HTLCState} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); }; @@ -405,18 +622,1227 @@ proto.irismod.htlc.HTLC.prototype.getState = function() { * @return {!proto.irismod.htlc.HTLC} returns this */ proto.irismod.htlc.HTLC.prototype.setState = function(value) { - return jspb.Message.setProto3EnumField(this, 8, value); + return jspb.Message.setProto3EnumField(this, 11, value); }; /** - * @enum {number} + * optional uint64 closed_block = 12; + * @return {number} */ -proto.irismod.htlc.HTLCState = { - HTLC_STATE_OPEN: 0, - HTLC_STATE_COMPLETED: 1, - HTLC_STATE_EXPIRED: 2, - HTLC_STATE_REFUNDED: 3 +proto.irismod.htlc.HTLC.prototype.getClosedBlock = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.irismod.htlc.HTLC} returns this + */ +proto.irismod.htlc.HTLC.prototype.setClosedBlock = function(value) { + return jspb.Message.setProto3IntField(this, 12, value); +}; + + +/** + * optional bool transfer = 13; + * @return {boolean} + */ +proto.irismod.htlc.HTLC.prototype.getTransfer = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 13, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.irismod.htlc.HTLC} returns this + */ +proto.irismod.htlc.HTLC.prototype.setTransfer = function(value) { + return jspb.Message.setProto3BooleanField(this, 13, value); +}; + + +/** + * optional SwapDirection direction = 14; + * @return {!proto.irismod.htlc.SwapDirection} + */ +proto.irismod.htlc.HTLC.prototype.getDirection = function() { + return /** @type {!proto.irismod.htlc.SwapDirection} */ (jspb.Message.getFieldWithDefault(this, 14, 0)); +}; + + +/** + * @param {!proto.irismod.htlc.SwapDirection} value + * @return {!proto.irismod.htlc.HTLC} returns this + */ +proto.irismod.htlc.HTLC.prototype.setDirection = function(value) { + return jspb.Message.setProto3EnumField(this, 14, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.irismod.htlc.AssetSupply.prototype.toObject = function(opt_includeInstance) { + return proto.irismod.htlc.AssetSupply.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.irismod.htlc.AssetSupply} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.irismod.htlc.AssetSupply.toObject = function(includeInstance, msg) { + var f, obj = { + incomingSupply: (f = msg.getIncomingSupply()) && cosmos_base_v1beta1_coin_pb.Coin.toObject(includeInstance, f), + outgoingSupply: (f = msg.getOutgoingSupply()) && cosmos_base_v1beta1_coin_pb.Coin.toObject(includeInstance, f), + currentSupply: (f = msg.getCurrentSupply()) && cosmos_base_v1beta1_coin_pb.Coin.toObject(includeInstance, f), + timeLimitedCurrentSupply: (f = msg.getTimeLimitedCurrentSupply()) && cosmos_base_v1beta1_coin_pb.Coin.toObject(includeInstance, f), + timeElapsed: (f = msg.getTimeElapsed()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.irismod.htlc.AssetSupply} + */ +proto.irismod.htlc.AssetSupply.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.irismod.htlc.AssetSupply; + return proto.irismod.htlc.AssetSupply.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.irismod.htlc.AssetSupply} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.irismod.htlc.AssetSupply} + */ +proto.irismod.htlc.AssetSupply.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new cosmos_base_v1beta1_coin_pb.Coin; + reader.readMessage(value,cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); + msg.setIncomingSupply(value); + break; + case 2: + var value = new cosmos_base_v1beta1_coin_pb.Coin; + reader.readMessage(value,cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); + msg.setOutgoingSupply(value); + break; + case 3: + var value = new cosmos_base_v1beta1_coin_pb.Coin; + reader.readMessage(value,cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); + msg.setCurrentSupply(value); + break; + case 4: + var value = new cosmos_base_v1beta1_coin_pb.Coin; + reader.readMessage(value,cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); + msg.setTimeLimitedCurrentSupply(value); + break; + case 5: + var value = new google_protobuf_duration_pb.Duration; + reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader); + msg.setTimeElapsed(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.irismod.htlc.AssetSupply.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.irismod.htlc.AssetSupply.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.irismod.htlc.AssetSupply} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.irismod.htlc.AssetSupply.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getIncomingSupply(); + if (f != null) { + writer.writeMessage( + 1, + f, + cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter + ); + } + f = message.getOutgoingSupply(); + if (f != null) { + writer.writeMessage( + 2, + f, + cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter + ); + } + f = message.getCurrentSupply(); + if (f != null) { + writer.writeMessage( + 3, + f, + cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter + ); + } + f = message.getTimeLimitedCurrentSupply(); + if (f != null) { + writer.writeMessage( + 4, + f, + cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter + ); + } + f = message.getTimeElapsed(); + if (f != null) { + writer.writeMessage( + 5, + f, + google_protobuf_duration_pb.Duration.serializeBinaryToWriter + ); + } +}; + + +/** + * optional cosmos.base.v1beta1.Coin incoming_supply = 1; + * @return {?proto.cosmos.base.v1beta1.Coin} + */ +proto.irismod.htlc.AssetSupply.prototype.getIncomingSupply = function() { + return /** @type{?proto.cosmos.base.v1beta1.Coin} */ ( + jspb.Message.getWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 1)); +}; + + +/** + * @param {?proto.cosmos.base.v1beta1.Coin|undefined} value + * @return {!proto.irismod.htlc.AssetSupply} returns this +*/ +proto.irismod.htlc.AssetSupply.prototype.setIncomingSupply = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.irismod.htlc.AssetSupply} returns this + */ +proto.irismod.htlc.AssetSupply.prototype.clearIncomingSupply = function() { + return this.setIncomingSupply(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.irismod.htlc.AssetSupply.prototype.hasIncomingSupply = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional cosmos.base.v1beta1.Coin outgoing_supply = 2; + * @return {?proto.cosmos.base.v1beta1.Coin} + */ +proto.irismod.htlc.AssetSupply.prototype.getOutgoingSupply = function() { + return /** @type{?proto.cosmos.base.v1beta1.Coin} */ ( + jspb.Message.getWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 2)); +}; + + +/** + * @param {?proto.cosmos.base.v1beta1.Coin|undefined} value + * @return {!proto.irismod.htlc.AssetSupply} returns this +*/ +proto.irismod.htlc.AssetSupply.prototype.setOutgoingSupply = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.irismod.htlc.AssetSupply} returns this + */ +proto.irismod.htlc.AssetSupply.prototype.clearOutgoingSupply = function() { + return this.setOutgoingSupply(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.irismod.htlc.AssetSupply.prototype.hasOutgoingSupply = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional cosmos.base.v1beta1.Coin current_supply = 3; + * @return {?proto.cosmos.base.v1beta1.Coin} + */ +proto.irismod.htlc.AssetSupply.prototype.getCurrentSupply = function() { + return /** @type{?proto.cosmos.base.v1beta1.Coin} */ ( + jspb.Message.getWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 3)); +}; + + +/** + * @param {?proto.cosmos.base.v1beta1.Coin|undefined} value + * @return {!proto.irismod.htlc.AssetSupply} returns this +*/ +proto.irismod.htlc.AssetSupply.prototype.setCurrentSupply = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.irismod.htlc.AssetSupply} returns this + */ +proto.irismod.htlc.AssetSupply.prototype.clearCurrentSupply = function() { + return this.setCurrentSupply(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.irismod.htlc.AssetSupply.prototype.hasCurrentSupply = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional cosmos.base.v1beta1.Coin time_limited_current_supply = 4; + * @return {?proto.cosmos.base.v1beta1.Coin} + */ +proto.irismod.htlc.AssetSupply.prototype.getTimeLimitedCurrentSupply = function() { + return /** @type{?proto.cosmos.base.v1beta1.Coin} */ ( + jspb.Message.getWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 4)); +}; + + +/** + * @param {?proto.cosmos.base.v1beta1.Coin|undefined} value + * @return {!proto.irismod.htlc.AssetSupply} returns this +*/ +proto.irismod.htlc.AssetSupply.prototype.setTimeLimitedCurrentSupply = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.irismod.htlc.AssetSupply} returns this + */ +proto.irismod.htlc.AssetSupply.prototype.clearTimeLimitedCurrentSupply = function() { + return this.setTimeLimitedCurrentSupply(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.irismod.htlc.AssetSupply.prototype.hasTimeLimitedCurrentSupply = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional google.protobuf.Duration time_elapsed = 5; + * @return {?proto.google.protobuf.Duration} + */ +proto.irismod.htlc.AssetSupply.prototype.getTimeElapsed = function() { + return /** @type{?proto.google.protobuf.Duration} */ ( + jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 5)); +}; + + +/** + * @param {?proto.google.protobuf.Duration|undefined} value + * @return {!proto.irismod.htlc.AssetSupply} returns this +*/ +proto.irismod.htlc.AssetSupply.prototype.setTimeElapsed = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.irismod.htlc.AssetSupply} returns this + */ +proto.irismod.htlc.AssetSupply.prototype.clearTimeElapsed = function() { + return this.setTimeElapsed(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.irismod.htlc.AssetSupply.prototype.hasTimeElapsed = function() { + return jspb.Message.getField(this, 5) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.irismod.htlc.Params.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.irismod.htlc.Params.prototype.toObject = function(opt_includeInstance) { + return proto.irismod.htlc.Params.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.irismod.htlc.Params} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.irismod.htlc.Params.toObject = function(includeInstance, msg) { + var f, obj = { + assetParamsList: jspb.Message.toObjectList(msg.getAssetParamsList(), + proto.irismod.htlc.AssetParam.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.irismod.htlc.Params} + */ +proto.irismod.htlc.Params.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.irismod.htlc.Params; + return proto.irismod.htlc.Params.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.irismod.htlc.Params} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.irismod.htlc.Params} + */ +proto.irismod.htlc.Params.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.irismod.htlc.AssetParam; + reader.readMessage(value,proto.irismod.htlc.AssetParam.deserializeBinaryFromReader); + msg.addAssetParams(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.irismod.htlc.Params.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.irismod.htlc.Params.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.irismod.htlc.Params} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.irismod.htlc.Params.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAssetParamsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.irismod.htlc.AssetParam.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated AssetParam asset_params = 1; + * @return {!Array} + */ +proto.irismod.htlc.Params.prototype.getAssetParamsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.irismod.htlc.AssetParam, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.irismod.htlc.Params} returns this +*/ +proto.irismod.htlc.Params.prototype.setAssetParamsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.irismod.htlc.AssetParam=} opt_value + * @param {number=} opt_index + * @return {!proto.irismod.htlc.AssetParam} + */ +proto.irismod.htlc.Params.prototype.addAssetParams = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.irismod.htlc.AssetParam, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.irismod.htlc.Params} returns this + */ +proto.irismod.htlc.Params.prototype.clearAssetParamsList = function() { + return this.setAssetParamsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.irismod.htlc.AssetParam.prototype.toObject = function(opt_includeInstance) { + return proto.irismod.htlc.AssetParam.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.irismod.htlc.AssetParam} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.irismod.htlc.AssetParam.toObject = function(includeInstance, msg) { + var f, obj = { + denom: jspb.Message.getFieldWithDefault(msg, 1, ""), + supplyLimit: (f = msg.getSupplyLimit()) && proto.irismod.htlc.SupplyLimit.toObject(includeInstance, f), + active: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + deputyAddress: jspb.Message.getFieldWithDefault(msg, 4, ""), + fixedFee: jspb.Message.getFieldWithDefault(msg, 5, ""), + minSwapAmount: jspb.Message.getFieldWithDefault(msg, 6, ""), + maxSwapAmount: jspb.Message.getFieldWithDefault(msg, 7, ""), + minBlockLock: jspb.Message.getFieldWithDefault(msg, 8, 0), + maxBlockLock: jspb.Message.getFieldWithDefault(msg, 9, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.irismod.htlc.AssetParam} + */ +proto.irismod.htlc.AssetParam.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.irismod.htlc.AssetParam; + return proto.irismod.htlc.AssetParam.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.irismod.htlc.AssetParam} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.irismod.htlc.AssetParam} + */ +proto.irismod.htlc.AssetParam.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setDenom(value); + break; + case 2: + var value = new proto.irismod.htlc.SupplyLimit; + reader.readMessage(value,proto.irismod.htlc.SupplyLimit.deserializeBinaryFromReader); + msg.setSupplyLimit(value); + break; + case 3: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setActive(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setDeputyAddress(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setFixedFee(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setMinSwapAmount(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setMaxSwapAmount(value); + break; + case 8: + var value = /** @type {number} */ (reader.readUint64()); + msg.setMinBlockLock(value); + break; + case 9: + var value = /** @type {number} */ (reader.readUint64()); + msg.setMaxBlockLock(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.irismod.htlc.AssetParam.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.irismod.htlc.AssetParam.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.irismod.htlc.AssetParam} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.irismod.htlc.AssetParam.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getDenom(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getSupplyLimit(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.irismod.htlc.SupplyLimit.serializeBinaryToWriter + ); + } + f = message.getActive(); + if (f) { + writer.writeBool( + 3, + f + ); + } + f = message.getDeputyAddress(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getFixedFee(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getMinSwapAmount(); + if (f.length > 0) { + writer.writeString( + 6, + f + ); + } + f = message.getMaxSwapAmount(); + if (f.length > 0) { + writer.writeString( + 7, + f + ); + } + f = message.getMinBlockLock(); + if (f !== 0) { + writer.writeUint64( + 8, + f + ); + } + f = message.getMaxBlockLock(); + if (f !== 0) { + writer.writeUint64( + 9, + f + ); + } +}; + + +/** + * optional string denom = 1; + * @return {string} + */ +proto.irismod.htlc.AssetParam.prototype.getDenom = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.irismod.htlc.AssetParam} returns this + */ +proto.irismod.htlc.AssetParam.prototype.setDenom = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional SupplyLimit supply_limit = 2; + * @return {?proto.irismod.htlc.SupplyLimit} + */ +proto.irismod.htlc.AssetParam.prototype.getSupplyLimit = function() { + return /** @type{?proto.irismod.htlc.SupplyLimit} */ ( + jspb.Message.getWrapperField(this, proto.irismod.htlc.SupplyLimit, 2)); +}; + + +/** + * @param {?proto.irismod.htlc.SupplyLimit|undefined} value + * @return {!proto.irismod.htlc.AssetParam} returns this +*/ +proto.irismod.htlc.AssetParam.prototype.setSupplyLimit = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.irismod.htlc.AssetParam} returns this + */ +proto.irismod.htlc.AssetParam.prototype.clearSupplyLimit = function() { + return this.setSupplyLimit(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.irismod.htlc.AssetParam.prototype.hasSupplyLimit = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional bool active = 3; + * @return {boolean} + */ +proto.irismod.htlc.AssetParam.prototype.getActive = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.irismod.htlc.AssetParam} returns this + */ +proto.irismod.htlc.AssetParam.prototype.setActive = function(value) { + return jspb.Message.setProto3BooleanField(this, 3, value); +}; + + +/** + * optional string deputy_address = 4; + * @return {string} + */ +proto.irismod.htlc.AssetParam.prototype.getDeputyAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.irismod.htlc.AssetParam} returns this + */ +proto.irismod.htlc.AssetParam.prototype.setDeputyAddress = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional string fixed_fee = 5; + * @return {string} + */ +proto.irismod.htlc.AssetParam.prototype.getFixedFee = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.irismod.htlc.AssetParam} returns this + */ +proto.irismod.htlc.AssetParam.prototype.setFixedFee = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * optional string min_swap_amount = 6; + * @return {string} + */ +proto.irismod.htlc.AssetParam.prototype.getMinSwapAmount = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * @param {string} value + * @return {!proto.irismod.htlc.AssetParam} returns this + */ +proto.irismod.htlc.AssetParam.prototype.setMinSwapAmount = function(value) { + return jspb.Message.setProto3StringField(this, 6, value); +}; + + +/** + * optional string max_swap_amount = 7; + * @return {string} + */ +proto.irismod.htlc.AssetParam.prototype.getMaxSwapAmount = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + + +/** + * @param {string} value + * @return {!proto.irismod.htlc.AssetParam} returns this + */ +proto.irismod.htlc.AssetParam.prototype.setMaxSwapAmount = function(value) { + return jspb.Message.setProto3StringField(this, 7, value); +}; + + +/** + * optional uint64 min_block_lock = 8; + * @return {number} + */ +proto.irismod.htlc.AssetParam.prototype.getMinBlockLock = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.irismod.htlc.AssetParam} returns this + */ +proto.irismod.htlc.AssetParam.prototype.setMinBlockLock = function(value) { + return jspb.Message.setProto3IntField(this, 8, value); +}; + + +/** + * optional uint64 max_block_lock = 9; + * @return {number} + */ +proto.irismod.htlc.AssetParam.prototype.getMaxBlockLock = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.irismod.htlc.AssetParam} returns this + */ +proto.irismod.htlc.AssetParam.prototype.setMaxBlockLock = function(value) { + return jspb.Message.setProto3IntField(this, 9, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.irismod.htlc.SupplyLimit.prototype.toObject = function(opt_includeInstance) { + return proto.irismod.htlc.SupplyLimit.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.irismod.htlc.SupplyLimit} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.irismod.htlc.SupplyLimit.toObject = function(includeInstance, msg) { + var f, obj = { + limit: jspb.Message.getFieldWithDefault(msg, 1, ""), + timeLimited: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + timePeriod: (f = msg.getTimePeriod()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f), + timeBasedLimit: jspb.Message.getFieldWithDefault(msg, 4, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.irismod.htlc.SupplyLimit} + */ +proto.irismod.htlc.SupplyLimit.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.irismod.htlc.SupplyLimit; + return proto.irismod.htlc.SupplyLimit.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.irismod.htlc.SupplyLimit} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.irismod.htlc.SupplyLimit} + */ +proto.irismod.htlc.SupplyLimit.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setLimit(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setTimeLimited(value); + break; + case 3: + var value = new google_protobuf_duration_pb.Duration; + reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader); + msg.setTimePeriod(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setTimeBasedLimit(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.irismod.htlc.SupplyLimit.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.irismod.htlc.SupplyLimit.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.irismod.htlc.SupplyLimit} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.irismod.htlc.SupplyLimit.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getLimit(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getTimeLimited(); + if (f) { + writer.writeBool( + 2, + f + ); + } + f = message.getTimePeriod(); + if (f != null) { + writer.writeMessage( + 3, + f, + google_protobuf_duration_pb.Duration.serializeBinaryToWriter + ); + } + f = message.getTimeBasedLimit(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } +}; + + +/** + * optional string limit = 1; + * @return {string} + */ +proto.irismod.htlc.SupplyLimit.prototype.getLimit = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.irismod.htlc.SupplyLimit} returns this + */ +proto.irismod.htlc.SupplyLimit.prototype.setLimit = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional bool time_limited = 2; + * @return {boolean} + */ +proto.irismod.htlc.SupplyLimit.prototype.getTimeLimited = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.irismod.htlc.SupplyLimit} returns this + */ +proto.irismod.htlc.SupplyLimit.prototype.setTimeLimited = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); +}; + + +/** + * optional google.protobuf.Duration time_period = 3; + * @return {?proto.google.protobuf.Duration} + */ +proto.irismod.htlc.SupplyLimit.prototype.getTimePeriod = function() { + return /** @type{?proto.google.protobuf.Duration} */ ( + jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 3)); +}; + + +/** + * @param {?proto.google.protobuf.Duration|undefined} value + * @return {!proto.irismod.htlc.SupplyLimit} returns this +*/ +proto.irismod.htlc.SupplyLimit.prototype.setTimePeriod = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.irismod.htlc.SupplyLimit} returns this + */ +proto.irismod.htlc.SupplyLimit.prototype.clearTimePeriod = function() { + return this.setTimePeriod(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.irismod.htlc.SupplyLimit.prototype.hasTimePeriod = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional string time_based_limit = 4; + * @return {string} + */ +proto.irismod.htlc.SupplyLimit.prototype.getTimeBasedLimit = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.irismod.htlc.SupplyLimit} returns this + */ +proto.irismod.htlc.SupplyLimit.prototype.setTimeBasedLimit = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * @enum {number} + */ +proto.irismod.htlc.HTLCState = { + HTLC_STATE_OPEN: 0, + HTLC_STATE_COMPLETED: 1, + HTLC_STATE_REFUNDED: 2 +}; + +/** + * @enum {number} + */ +proto.irismod.htlc.SwapDirection = { + NONE: 0, + INCOMING: 1, + OUTGOING: 2 }; goog.object.extend(exports, proto.irismod.htlc); diff --git a/src/types/proto-types/irismod/htlc/query_grpc_web_pb.js b/src/types/proto-types/irismod/htlc/query_grpc_web_pb.js index 96f0b129..1a54844b 100644 --- a/src/types/proto-types/irismod/htlc/query_grpc_web_pb.js +++ b/src/types/proto-types/irismod/htlc/query_grpc_web_pb.js @@ -18,6 +18,8 @@ grpc.web = require('grpc-web'); var google_api_annotations_pb = require('../../google/api/annotations_pb.js') +var gogoproto_gogo_pb = require('../../gogoproto/gogo_pb.js') + var irismod_htlc_htlc_pb = require('../../irismod/htlc/htlc_pb.js') const proto = {}; proto.irismod = {}; @@ -155,5 +157,245 @@ proto.irismod.htlc.QueryPromiseClient.prototype.hTLC = }; +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.irismod.htlc.QueryAssetSupplyRequest, + * !proto.irismod.htlc.QueryAssetSupplyResponse>} + */ +const methodDescriptor_Query_AssetSupply = new grpc.web.MethodDescriptor( + '/irismod.htlc.Query/AssetSupply', + grpc.web.MethodType.UNARY, + proto.irismod.htlc.QueryAssetSupplyRequest, + proto.irismod.htlc.QueryAssetSupplyResponse, + /** + * @param {!proto.irismod.htlc.QueryAssetSupplyRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.irismod.htlc.QueryAssetSupplyResponse.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.irismod.htlc.QueryAssetSupplyRequest, + * !proto.irismod.htlc.QueryAssetSupplyResponse>} + */ +const methodInfo_Query_AssetSupply = new grpc.web.AbstractClientBase.MethodInfo( + proto.irismod.htlc.QueryAssetSupplyResponse, + /** + * @param {!proto.irismod.htlc.QueryAssetSupplyRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.irismod.htlc.QueryAssetSupplyResponse.deserializeBinary +); + + +/** + * @param {!proto.irismod.htlc.QueryAssetSupplyRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.irismod.htlc.QueryAssetSupplyResponse)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.irismod.htlc.QueryClient.prototype.assetSupply = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/irismod.htlc.Query/AssetSupply', + request, + metadata || {}, + methodDescriptor_Query_AssetSupply, + callback); +}; + + +/** + * @param {!proto.irismod.htlc.QueryAssetSupplyRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.irismod.htlc.QueryPromiseClient.prototype.assetSupply = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/irismod.htlc.Query/AssetSupply', + request, + metadata || {}, + methodDescriptor_Query_AssetSupply); +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.irismod.htlc.QueryAssetSuppliesRequest, + * !proto.irismod.htlc.QueryAssetSuppliesResponse>} + */ +const methodDescriptor_Query_AssetSupplies = new grpc.web.MethodDescriptor( + '/irismod.htlc.Query/AssetSupplies', + grpc.web.MethodType.UNARY, + proto.irismod.htlc.QueryAssetSuppliesRequest, + proto.irismod.htlc.QueryAssetSuppliesResponse, + /** + * @param {!proto.irismod.htlc.QueryAssetSuppliesRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.irismod.htlc.QueryAssetSuppliesResponse.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.irismod.htlc.QueryAssetSuppliesRequest, + * !proto.irismod.htlc.QueryAssetSuppliesResponse>} + */ +const methodInfo_Query_AssetSupplies = new grpc.web.AbstractClientBase.MethodInfo( + proto.irismod.htlc.QueryAssetSuppliesResponse, + /** + * @param {!proto.irismod.htlc.QueryAssetSuppliesRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.irismod.htlc.QueryAssetSuppliesResponse.deserializeBinary +); + + +/** + * @param {!proto.irismod.htlc.QueryAssetSuppliesRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.irismod.htlc.QueryAssetSuppliesResponse)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.irismod.htlc.QueryClient.prototype.assetSupplies = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/irismod.htlc.Query/AssetSupplies', + request, + metadata || {}, + methodDescriptor_Query_AssetSupplies, + callback); +}; + + +/** + * @param {!proto.irismod.htlc.QueryAssetSuppliesRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.irismod.htlc.QueryPromiseClient.prototype.assetSupplies = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/irismod.htlc.Query/AssetSupplies', + request, + metadata || {}, + methodDescriptor_Query_AssetSupplies); +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.irismod.htlc.QueryParamsRequest, + * !proto.irismod.htlc.QueryParamsResponse>} + */ +const methodDescriptor_Query_Params = new grpc.web.MethodDescriptor( + '/irismod.htlc.Query/Params', + grpc.web.MethodType.UNARY, + proto.irismod.htlc.QueryParamsRequest, + proto.irismod.htlc.QueryParamsResponse, + /** + * @param {!proto.irismod.htlc.QueryParamsRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.irismod.htlc.QueryParamsResponse.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.irismod.htlc.QueryParamsRequest, + * !proto.irismod.htlc.QueryParamsResponse>} + */ +const methodInfo_Query_Params = new grpc.web.AbstractClientBase.MethodInfo( + proto.irismod.htlc.QueryParamsResponse, + /** + * @param {!proto.irismod.htlc.QueryParamsRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.irismod.htlc.QueryParamsResponse.deserializeBinary +); + + +/** + * @param {!proto.irismod.htlc.QueryParamsRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.irismod.htlc.QueryParamsResponse)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.irismod.htlc.QueryClient.prototype.params = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/irismod.htlc.Query/Params', + request, + metadata || {}, + methodDescriptor_Query_Params, + callback); +}; + + +/** + * @param {!proto.irismod.htlc.QueryParamsRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.irismod.htlc.QueryPromiseClient.prototype.params = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/irismod.htlc.Query/Params', + request, + metadata || {}, + methodDescriptor_Query_Params); +}; + + module.exports = proto.irismod.htlc; diff --git a/src/types/proto-types/irismod/htlc/query_pb.js b/src/types/proto-types/irismod/htlc/query_pb.js index 396104f1..4748c329 100644 --- a/src/types/proto-types/irismod/htlc/query_pb.js +++ b/src/types/proto-types/irismod/htlc/query_pb.js @@ -14,10 +14,18 @@ var global = Function('return this')(); var google_api_annotations_pb = require('../../google/api/annotations_pb.js'); goog.object.extend(proto, google_api_annotations_pb); +var gogoproto_gogo_pb = require('../../gogoproto/gogo_pb.js'); +goog.object.extend(proto, gogoproto_gogo_pb); var irismod_htlc_htlc_pb = require('../../irismod/htlc/htlc_pb.js'); goog.object.extend(proto, irismod_htlc_htlc_pb); +goog.exportSymbol('proto.irismod.htlc.QueryAssetSuppliesRequest', null, global); +goog.exportSymbol('proto.irismod.htlc.QueryAssetSuppliesResponse', null, global); +goog.exportSymbol('proto.irismod.htlc.QueryAssetSupplyRequest', null, global); +goog.exportSymbol('proto.irismod.htlc.QueryAssetSupplyResponse', null, global); goog.exportSymbol('proto.irismod.htlc.QueryHTLCRequest', null, global); goog.exportSymbol('proto.irismod.htlc.QueryHTLCResponse', null, global); +goog.exportSymbol('proto.irismod.htlc.QueryParamsRequest', null, global); +goog.exportSymbol('proto.irismod.htlc.QueryParamsResponse', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -60,6 +68,132 @@ if (goog.DEBUG && !COMPILED) { */ proto.irismod.htlc.QueryHTLCResponse.displayName = 'proto.irismod.htlc.QueryHTLCResponse'; } +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.irismod.htlc.QueryAssetSupplyRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.irismod.htlc.QueryAssetSupplyRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.irismod.htlc.QueryAssetSupplyRequest.displayName = 'proto.irismod.htlc.QueryAssetSupplyRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.irismod.htlc.QueryAssetSupplyResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.irismod.htlc.QueryAssetSupplyResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.irismod.htlc.QueryAssetSupplyResponse.displayName = 'proto.irismod.htlc.QueryAssetSupplyResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.irismod.htlc.QueryAssetSuppliesRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.irismod.htlc.QueryAssetSuppliesRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.irismod.htlc.QueryAssetSuppliesRequest.displayName = 'proto.irismod.htlc.QueryAssetSuppliesRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.irismod.htlc.QueryAssetSuppliesResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.irismod.htlc.QueryAssetSuppliesResponse.repeatedFields_, null); +}; +goog.inherits(proto.irismod.htlc.QueryAssetSuppliesResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.irismod.htlc.QueryAssetSuppliesResponse.displayName = 'proto.irismod.htlc.QueryAssetSuppliesResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.irismod.htlc.QueryParamsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.irismod.htlc.QueryParamsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.irismod.htlc.QueryParamsRequest.displayName = 'proto.irismod.htlc.QueryParamsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.irismod.htlc.QueryParamsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.irismod.htlc.QueryParamsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.irismod.htlc.QueryParamsResponse.displayName = 'proto.irismod.htlc.QueryParamsResponse'; +} @@ -92,7 +226,7 @@ proto.irismod.htlc.QueryHTLCRequest.prototype.toObject = function(opt_includeIns */ proto.irismod.htlc.QueryHTLCRequest.toObject = function(includeInstance, msg) { var f, obj = { - hashLock: jspb.Message.getFieldWithDefault(msg, 1, "") + id: jspb.Message.getFieldWithDefault(msg, 1, "") }; if (includeInstance) { @@ -131,7 +265,7 @@ proto.irismod.htlc.QueryHTLCRequest.deserializeBinaryFromReader = function(msg, switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setHashLock(value); + msg.setId(value); break; default: reader.skipField(); @@ -162,7 +296,7 @@ proto.irismod.htlc.QueryHTLCRequest.prototype.serializeBinary = function() { */ proto.irismod.htlc.QueryHTLCRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getHashLock(); + f = message.getId(); if (f.length > 0) { writer.writeString( 1, @@ -173,10 +307,10 @@ proto.irismod.htlc.QueryHTLCRequest.serializeBinaryToWriter = function(message, /** - * optional string hash_lock = 1; + * optional string id = 1; * @return {string} */ -proto.irismod.htlc.QueryHTLCRequest.prototype.getHashLock = function() { +proto.irismod.htlc.QueryHTLCRequest.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; @@ -185,7 +319,7 @@ proto.irismod.htlc.QueryHTLCRequest.prototype.getHashLock = function() { * @param {string} value * @return {!proto.irismod.htlc.QueryHTLCRequest} returns this */ -proto.irismod.htlc.QueryHTLCRequest.prototype.setHashLock = function(value) { +proto.irismod.htlc.QueryHTLCRequest.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -341,4 +475,798 @@ proto.irismod.htlc.QueryHTLCResponse.prototype.hasHtlc = function() { }; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.irismod.htlc.QueryAssetSupplyRequest.prototype.toObject = function(opt_includeInstance) { + return proto.irismod.htlc.QueryAssetSupplyRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.irismod.htlc.QueryAssetSupplyRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.irismod.htlc.QueryAssetSupplyRequest.toObject = function(includeInstance, msg) { + var f, obj = { + denom: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.irismod.htlc.QueryAssetSupplyRequest} + */ +proto.irismod.htlc.QueryAssetSupplyRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.irismod.htlc.QueryAssetSupplyRequest; + return proto.irismod.htlc.QueryAssetSupplyRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.irismod.htlc.QueryAssetSupplyRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.irismod.htlc.QueryAssetSupplyRequest} + */ +proto.irismod.htlc.QueryAssetSupplyRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setDenom(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.irismod.htlc.QueryAssetSupplyRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.irismod.htlc.QueryAssetSupplyRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.irismod.htlc.QueryAssetSupplyRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.irismod.htlc.QueryAssetSupplyRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getDenom(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string denom = 1; + * @return {string} + */ +proto.irismod.htlc.QueryAssetSupplyRequest.prototype.getDenom = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.irismod.htlc.QueryAssetSupplyRequest} returns this + */ +proto.irismod.htlc.QueryAssetSupplyRequest.prototype.setDenom = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.irismod.htlc.QueryAssetSupplyResponse.prototype.toObject = function(opt_includeInstance) { + return proto.irismod.htlc.QueryAssetSupplyResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.irismod.htlc.QueryAssetSupplyResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.irismod.htlc.QueryAssetSupplyResponse.toObject = function(includeInstance, msg) { + var f, obj = { + assetSupply: (f = msg.getAssetSupply()) && irismod_htlc_htlc_pb.AssetSupply.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.irismod.htlc.QueryAssetSupplyResponse} + */ +proto.irismod.htlc.QueryAssetSupplyResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.irismod.htlc.QueryAssetSupplyResponse; + return proto.irismod.htlc.QueryAssetSupplyResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.irismod.htlc.QueryAssetSupplyResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.irismod.htlc.QueryAssetSupplyResponse} + */ +proto.irismod.htlc.QueryAssetSupplyResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new irismod_htlc_htlc_pb.AssetSupply; + reader.readMessage(value,irismod_htlc_htlc_pb.AssetSupply.deserializeBinaryFromReader); + msg.setAssetSupply(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.irismod.htlc.QueryAssetSupplyResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.irismod.htlc.QueryAssetSupplyResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.irismod.htlc.QueryAssetSupplyResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.irismod.htlc.QueryAssetSupplyResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAssetSupply(); + if (f != null) { + writer.writeMessage( + 1, + f, + irismod_htlc_htlc_pb.AssetSupply.serializeBinaryToWriter + ); + } +}; + + +/** + * optional AssetSupply asset_supply = 1; + * @return {?proto.irismod.htlc.AssetSupply} + */ +proto.irismod.htlc.QueryAssetSupplyResponse.prototype.getAssetSupply = function() { + return /** @type{?proto.irismod.htlc.AssetSupply} */ ( + jspb.Message.getWrapperField(this, irismod_htlc_htlc_pb.AssetSupply, 1)); +}; + + +/** + * @param {?proto.irismod.htlc.AssetSupply|undefined} value + * @return {!proto.irismod.htlc.QueryAssetSupplyResponse} returns this +*/ +proto.irismod.htlc.QueryAssetSupplyResponse.prototype.setAssetSupply = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.irismod.htlc.QueryAssetSupplyResponse} returns this + */ +proto.irismod.htlc.QueryAssetSupplyResponse.prototype.clearAssetSupply = function() { + return this.setAssetSupply(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.irismod.htlc.QueryAssetSupplyResponse.prototype.hasAssetSupply = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.irismod.htlc.QueryAssetSuppliesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.irismod.htlc.QueryAssetSuppliesRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.irismod.htlc.QueryAssetSuppliesRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.irismod.htlc.QueryAssetSuppliesRequest.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.irismod.htlc.QueryAssetSuppliesRequest} + */ +proto.irismod.htlc.QueryAssetSuppliesRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.irismod.htlc.QueryAssetSuppliesRequest; + return proto.irismod.htlc.QueryAssetSuppliesRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.irismod.htlc.QueryAssetSuppliesRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.irismod.htlc.QueryAssetSuppliesRequest} + */ +proto.irismod.htlc.QueryAssetSuppliesRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.irismod.htlc.QueryAssetSuppliesRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.irismod.htlc.QueryAssetSuppliesRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.irismod.htlc.QueryAssetSuppliesRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.irismod.htlc.QueryAssetSuppliesRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.irismod.htlc.QueryAssetSuppliesResponse.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.irismod.htlc.QueryAssetSuppliesResponse.prototype.toObject = function(opt_includeInstance) { + return proto.irismod.htlc.QueryAssetSuppliesResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.irismod.htlc.QueryAssetSuppliesResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.irismod.htlc.QueryAssetSuppliesResponse.toObject = function(includeInstance, msg) { + var f, obj = { + assetSuppliesList: jspb.Message.toObjectList(msg.getAssetSuppliesList(), + irismod_htlc_htlc_pb.AssetSupply.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.irismod.htlc.QueryAssetSuppliesResponse} + */ +proto.irismod.htlc.QueryAssetSuppliesResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.irismod.htlc.QueryAssetSuppliesResponse; + return proto.irismod.htlc.QueryAssetSuppliesResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.irismod.htlc.QueryAssetSuppliesResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.irismod.htlc.QueryAssetSuppliesResponse} + */ +proto.irismod.htlc.QueryAssetSuppliesResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new irismod_htlc_htlc_pb.AssetSupply; + reader.readMessage(value,irismod_htlc_htlc_pb.AssetSupply.deserializeBinaryFromReader); + msg.addAssetSupplies(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.irismod.htlc.QueryAssetSuppliesResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.irismod.htlc.QueryAssetSuppliesResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.irismod.htlc.QueryAssetSuppliesResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.irismod.htlc.QueryAssetSuppliesResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAssetSuppliesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + irismod_htlc_htlc_pb.AssetSupply.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated AssetSupply asset_supplies = 1; + * @return {!Array} + */ +proto.irismod.htlc.QueryAssetSuppliesResponse.prototype.getAssetSuppliesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, irismod_htlc_htlc_pb.AssetSupply, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.irismod.htlc.QueryAssetSuppliesResponse} returns this +*/ +proto.irismod.htlc.QueryAssetSuppliesResponse.prototype.setAssetSuppliesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.irismod.htlc.AssetSupply=} opt_value + * @param {number=} opt_index + * @return {!proto.irismod.htlc.AssetSupply} + */ +proto.irismod.htlc.QueryAssetSuppliesResponse.prototype.addAssetSupplies = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.irismod.htlc.AssetSupply, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.irismod.htlc.QueryAssetSuppliesResponse} returns this + */ +proto.irismod.htlc.QueryAssetSuppliesResponse.prototype.clearAssetSuppliesList = function() { + return this.setAssetSuppliesList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.irismod.htlc.QueryParamsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.irismod.htlc.QueryParamsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.irismod.htlc.QueryParamsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.irismod.htlc.QueryParamsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.irismod.htlc.QueryParamsRequest} + */ +proto.irismod.htlc.QueryParamsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.irismod.htlc.QueryParamsRequest; + return proto.irismod.htlc.QueryParamsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.irismod.htlc.QueryParamsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.irismod.htlc.QueryParamsRequest} + */ +proto.irismod.htlc.QueryParamsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.irismod.htlc.QueryParamsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.irismod.htlc.QueryParamsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.irismod.htlc.QueryParamsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.irismod.htlc.QueryParamsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.irismod.htlc.QueryParamsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.irismod.htlc.QueryParamsResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.irismod.htlc.QueryParamsResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.irismod.htlc.QueryParamsResponse.toObject = function(includeInstance, msg) { + var f, obj = { + params: (f = msg.getParams()) && irismod_htlc_htlc_pb.Params.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.irismod.htlc.QueryParamsResponse} + */ +proto.irismod.htlc.QueryParamsResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.irismod.htlc.QueryParamsResponse; + return proto.irismod.htlc.QueryParamsResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.irismod.htlc.QueryParamsResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.irismod.htlc.QueryParamsResponse} + */ +proto.irismod.htlc.QueryParamsResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new irismod_htlc_htlc_pb.Params; + reader.readMessage(value,irismod_htlc_htlc_pb.Params.deserializeBinaryFromReader); + msg.setParams(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.irismod.htlc.QueryParamsResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.irismod.htlc.QueryParamsResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.irismod.htlc.QueryParamsResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.irismod.htlc.QueryParamsResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getParams(); + if (f != null) { + writer.writeMessage( + 1, + f, + irismod_htlc_htlc_pb.Params.serializeBinaryToWriter + ); + } +}; + + +/** + * optional Params params = 1; + * @return {?proto.irismod.htlc.Params} + */ +proto.irismod.htlc.QueryParamsResponse.prototype.getParams = function() { + return /** @type{?proto.irismod.htlc.Params} */ ( + jspb.Message.getWrapperField(this, irismod_htlc_htlc_pb.Params, 1)); +}; + + +/** + * @param {?proto.irismod.htlc.Params|undefined} value + * @return {!proto.irismod.htlc.QueryParamsResponse} returns this +*/ +proto.irismod.htlc.QueryParamsResponse.prototype.setParams = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.irismod.htlc.QueryParamsResponse} returns this + */ +proto.irismod.htlc.QueryParamsResponse.prototype.clearParams = function() { + return this.setParams(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.irismod.htlc.QueryParamsResponse.prototype.hasParams = function() { + return jspb.Message.getField(this, 1) != null; +}; + + goog.object.extend(exports, proto.irismod.htlc); diff --git a/src/types/proto-types/irismod/htlc/tx_grpc_web_pb.js b/src/types/proto-types/irismod/htlc/tx_grpc_web_pb.js index 177843c1..fa9c84e4 100644 --- a/src/types/proto-types/irismod/htlc/tx_grpc_web_pb.js +++ b/src/types/proto-types/irismod/htlc/tx_grpc_web_pb.js @@ -235,85 +235,5 @@ proto.irismod.htlc.MsgPromiseClient.prototype.claimHTLC = }; -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.irismod.htlc.MsgRefundHTLC, - * !proto.irismod.htlc.MsgRefundHTLCResponse>} - */ -const methodDescriptor_Msg_RefundHTLC = new grpc.web.MethodDescriptor( - '/irismod.htlc.Msg/RefundHTLC', - grpc.web.MethodType.UNARY, - proto.irismod.htlc.MsgRefundHTLC, - proto.irismod.htlc.MsgRefundHTLCResponse, - /** - * @param {!proto.irismod.htlc.MsgRefundHTLC} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.irismod.htlc.MsgRefundHTLCResponse.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.irismod.htlc.MsgRefundHTLC, - * !proto.irismod.htlc.MsgRefundHTLCResponse>} - */ -const methodInfo_Msg_RefundHTLC = new grpc.web.AbstractClientBase.MethodInfo( - proto.irismod.htlc.MsgRefundHTLCResponse, - /** - * @param {!proto.irismod.htlc.MsgRefundHTLC} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.irismod.htlc.MsgRefundHTLCResponse.deserializeBinary -); - - -/** - * @param {!proto.irismod.htlc.MsgRefundHTLC} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.irismod.htlc.MsgRefundHTLCResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.irismod.htlc.MsgClient.prototype.refundHTLC = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/irismod.htlc.Msg/RefundHTLC', - request, - metadata || {}, - methodDescriptor_Msg_RefundHTLC, - callback); -}; - - -/** - * @param {!proto.irismod.htlc.MsgRefundHTLC} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.irismod.htlc.MsgPromiseClient.prototype.refundHTLC = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/irismod.htlc.Msg/RefundHTLC', - request, - metadata || {}, - methodDescriptor_Msg_RefundHTLC); -}; - - module.exports = proto.irismod.htlc; diff --git a/src/types/proto-types/irismod/htlc/tx_pb.js b/src/types/proto-types/irismod/htlc/tx_pb.js index 96709c6c..d0792a25 100644 --- a/src/types/proto-types/irismod/htlc/tx_pb.js +++ b/src/types/proto-types/irismod/htlc/tx_pb.js @@ -20,8 +20,6 @@ goog.exportSymbol('proto.irismod.htlc.MsgClaimHTLC', null, global); goog.exportSymbol('proto.irismod.htlc.MsgClaimHTLCResponse', null, global); goog.exportSymbol('proto.irismod.htlc.MsgCreateHTLC', null, global); goog.exportSymbol('proto.irismod.htlc.MsgCreateHTLCResponse', null, global); -goog.exportSymbol('proto.irismod.htlc.MsgRefundHTLC', null, global); -goog.exportSymbol('proto.irismod.htlc.MsgRefundHTLCResponse', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -106,55 +104,13 @@ if (goog.DEBUG && !COMPILED) { */ proto.irismod.htlc.MsgClaimHTLCResponse.displayName = 'proto.irismod.htlc.MsgClaimHTLCResponse'; } -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.irismod.htlc.MsgRefundHTLC = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.irismod.htlc.MsgRefundHTLC, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.irismod.htlc.MsgRefundHTLC.displayName = 'proto.irismod.htlc.MsgRefundHTLC'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.irismod.htlc.MsgRefundHTLCResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.irismod.htlc.MsgRefundHTLCResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.irismod.htlc.MsgRefundHTLCResponse.displayName = 'proto.irismod.htlc.MsgRefundHTLCResponse'; -} /** * List of repeated fields within this message type. * @private {!Array} * @const */ -proto.irismod.htlc.MsgCreateHTLC.repeatedFields_ = [4]; +proto.irismod.htlc.MsgCreateHTLC.repeatedFields_ = [5]; @@ -190,11 +146,13 @@ proto.irismod.htlc.MsgCreateHTLC.toObject = function(includeInstance, msg) { sender: jspb.Message.getFieldWithDefault(msg, 1, ""), to: jspb.Message.getFieldWithDefault(msg, 2, ""), receiverOnOtherChain: jspb.Message.getFieldWithDefault(msg, 3, ""), + senderOnOtherChain: jspb.Message.getFieldWithDefault(msg, 4, ""), amountList: jspb.Message.toObjectList(msg.getAmountList(), cosmos_base_v1beta1_coin_pb.Coin.toObject, includeInstance), - hashLock: jspb.Message.getFieldWithDefault(msg, 5, ""), - timestamp: jspb.Message.getFieldWithDefault(msg, 6, 0), - timeLock: jspb.Message.getFieldWithDefault(msg, 7, 0) + hashLock: jspb.Message.getFieldWithDefault(msg, 6, ""), + timestamp: jspb.Message.getFieldWithDefault(msg, 7, 0), + timeLock: jspb.Message.getFieldWithDefault(msg, 8, 0), + transfer: jspb.Message.getBooleanFieldWithDefault(msg, 9, false) }; if (includeInstance) { @@ -244,22 +202,30 @@ proto.irismod.htlc.MsgCreateHTLC.deserializeBinaryFromReader = function(msg, rea msg.setReceiverOnOtherChain(value); break; case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setSenderOnOtherChain(value); + break; + case 5: var value = new cosmos_base_v1beta1_coin_pb.Coin; reader.readMessage(value,cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); msg.addAmount(value); break; - case 5: + case 6: var value = /** @type {string} */ (reader.readString()); msg.setHashLock(value); break; - case 6: + case 7: var value = /** @type {number} */ (reader.readUint64()); msg.setTimestamp(value); break; - case 7: + case 8: var value = /** @type {number} */ (reader.readUint64()); msg.setTimeLock(value); break; + case 9: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setTransfer(value); + break; default: reader.skipField(); break; @@ -310,10 +276,17 @@ proto.irismod.htlc.MsgCreateHTLC.serializeBinaryToWriter = function(message, wri f ); } + f = message.getSenderOnOtherChain(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } f = message.getAmountList(); if (f.length > 0) { writer.writeRepeatedMessage( - 4, + 5, f, cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter ); @@ -321,21 +294,28 @@ proto.irismod.htlc.MsgCreateHTLC.serializeBinaryToWriter = function(message, wri f = message.getHashLock(); if (f.length > 0) { writer.writeString( - 5, + 6, f ); } f = message.getTimestamp(); if (f !== 0) { writer.writeUint64( - 6, + 7, f ); } f = message.getTimeLock(); if (f !== 0) { writer.writeUint64( - 7, + 8, + f + ); + } + f = message.getTransfer(); + if (f) { + writer.writeBool( + 9, f ); } @@ -397,12 +377,30 @@ proto.irismod.htlc.MsgCreateHTLC.prototype.setReceiverOnOtherChain = function(va /** - * repeated cosmos.base.v1beta1.Coin amount = 4; + * optional string sender_on_other_chain = 4; + * @return {string} + */ +proto.irismod.htlc.MsgCreateHTLC.prototype.getSenderOnOtherChain = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.irismod.htlc.MsgCreateHTLC} returns this + */ +proto.irismod.htlc.MsgCreateHTLC.prototype.setSenderOnOtherChain = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * repeated cosmos.base.v1beta1.Coin amount = 5; * @return {!Array} */ proto.irismod.htlc.MsgCreateHTLC.prototype.getAmountList = function() { return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 4)); + jspb.Message.getRepeatedWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 5)); }; @@ -411,7 +409,7 @@ proto.irismod.htlc.MsgCreateHTLC.prototype.getAmountList = function() { * @return {!proto.irismod.htlc.MsgCreateHTLC} returns this */ proto.irismod.htlc.MsgCreateHTLC.prototype.setAmountList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); + return jspb.Message.setRepeatedWrapperField(this, 5, value); }; @@ -421,7 +419,7 @@ proto.irismod.htlc.MsgCreateHTLC.prototype.setAmountList = function(value) { * @return {!proto.cosmos.base.v1beta1.Coin} */ proto.irismod.htlc.MsgCreateHTLC.prototype.addAmount = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.cosmos.base.v1beta1.Coin, opt_index); + return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.cosmos.base.v1beta1.Coin, opt_index); }; @@ -435,11 +433,11 @@ proto.irismod.htlc.MsgCreateHTLC.prototype.clearAmountList = function() { /** - * optional string hash_lock = 5; + * optional string hash_lock = 6; * @return {string} */ proto.irismod.htlc.MsgCreateHTLC.prototype.getHashLock = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; @@ -448,16 +446,16 @@ proto.irismod.htlc.MsgCreateHTLC.prototype.getHashLock = function() { * @return {!proto.irismod.htlc.MsgCreateHTLC} returns this */ proto.irismod.htlc.MsgCreateHTLC.prototype.setHashLock = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); + return jspb.Message.setProto3StringField(this, 6, value); }; /** - * optional uint64 timestamp = 6; + * optional uint64 timestamp = 7; * @return {number} */ proto.irismod.htlc.MsgCreateHTLC.prototype.getTimestamp = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); }; @@ -466,16 +464,16 @@ proto.irismod.htlc.MsgCreateHTLC.prototype.getTimestamp = function() { * @return {!proto.irismod.htlc.MsgCreateHTLC} returns this */ proto.irismod.htlc.MsgCreateHTLC.prototype.setTimestamp = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); + return jspb.Message.setProto3IntField(this, 7, value); }; /** - * optional uint64 time_lock = 7; + * optional uint64 time_lock = 8; * @return {number} */ proto.irismod.htlc.MsgCreateHTLC.prototype.getTimeLock = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); }; @@ -484,7 +482,25 @@ proto.irismod.htlc.MsgCreateHTLC.prototype.getTimeLock = function() { * @return {!proto.irismod.htlc.MsgCreateHTLC} returns this */ proto.irismod.htlc.MsgCreateHTLC.prototype.setTimeLock = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); + return jspb.Message.setProto3IntField(this, 8, value); +}; + + +/** + * optional bool transfer = 9; + * @return {boolean} + */ +proto.irismod.htlc.MsgCreateHTLC.prototype.getTransfer = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.irismod.htlc.MsgCreateHTLC} returns this + */ +proto.irismod.htlc.MsgCreateHTLC.prototype.setTransfer = function(value) { + return jspb.Message.setProto3BooleanField(this, 9, value); }; @@ -520,7 +536,7 @@ proto.irismod.htlc.MsgCreateHTLCResponse.prototype.toObject = function(opt_inclu */ proto.irismod.htlc.MsgCreateHTLCResponse.toObject = function(includeInstance, msg) { var f, obj = { - + id: jspb.Message.getFieldWithDefault(msg, 1, "") }; if (includeInstance) { @@ -557,6 +573,10 @@ proto.irismod.htlc.MsgCreateHTLCResponse.deserializeBinaryFromReader = function( } var field = reader.getFieldNumber(); switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; default: reader.skipField(); break; @@ -586,6 +606,31 @@ proto.irismod.htlc.MsgCreateHTLCResponse.prototype.serializeBinary = function() */ proto.irismod.htlc.MsgCreateHTLCResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.irismod.htlc.MsgCreateHTLCResponse.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.irismod.htlc.MsgCreateHTLCResponse} returns this + */ +proto.irismod.htlc.MsgCreateHTLCResponse.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -622,7 +667,7 @@ proto.irismod.htlc.MsgClaimHTLC.prototype.toObject = function(opt_includeInstanc proto.irismod.htlc.MsgClaimHTLC.toObject = function(includeInstance, msg) { var f, obj = { sender: jspb.Message.getFieldWithDefault(msg, 1, ""), - hashLock: jspb.Message.getFieldWithDefault(msg, 2, ""), + id: jspb.Message.getFieldWithDefault(msg, 2, ""), secret: jspb.Message.getFieldWithDefault(msg, 3, "") }; @@ -666,7 +711,7 @@ proto.irismod.htlc.MsgClaimHTLC.deserializeBinaryFromReader = function(msg, read break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setHashLock(value); + msg.setId(value); break; case 3: var value = /** @type {string} */ (reader.readString()); @@ -708,7 +753,7 @@ proto.irismod.htlc.MsgClaimHTLC.serializeBinaryToWriter = function(message, writ f ); } - f = message.getHashLock(); + f = message.getId(); if (f.length > 0) { writer.writeString( 2, @@ -744,10 +789,10 @@ proto.irismod.htlc.MsgClaimHTLC.prototype.setSender = function(value) { /** - * optional string hash_lock = 2; + * optional string id = 2; * @return {string} */ -proto.irismod.htlc.MsgClaimHTLC.prototype.getHashLock = function() { +proto.irismod.htlc.MsgClaimHTLC.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; @@ -756,7 +801,7 @@ proto.irismod.htlc.MsgClaimHTLC.prototype.getHashLock = function() { * @param {string} value * @return {!proto.irismod.htlc.MsgClaimHTLC} returns this */ -proto.irismod.htlc.MsgClaimHTLC.prototype.setHashLock = function(value) { +proto.irismod.htlc.MsgClaimHTLC.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; @@ -880,265 +925,4 @@ proto.irismod.htlc.MsgClaimHTLCResponse.serializeBinaryToWriter = function(messa }; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.irismod.htlc.MsgRefundHTLC.prototype.toObject = function(opt_includeInstance) { - return proto.irismod.htlc.MsgRefundHTLC.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.irismod.htlc.MsgRefundHTLC} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.irismod.htlc.MsgRefundHTLC.toObject = function(includeInstance, msg) { - var f, obj = { - sender: jspb.Message.getFieldWithDefault(msg, 1, ""), - hashLock: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.irismod.htlc.MsgRefundHTLC} - */ -proto.irismod.htlc.MsgRefundHTLC.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.irismod.htlc.MsgRefundHTLC; - return proto.irismod.htlc.MsgRefundHTLC.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.irismod.htlc.MsgRefundHTLC} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.irismod.htlc.MsgRefundHTLC} - */ -proto.irismod.htlc.MsgRefundHTLC.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setSender(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setHashLock(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.irismod.htlc.MsgRefundHTLC.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.irismod.htlc.MsgRefundHTLC.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.irismod.htlc.MsgRefundHTLC} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.irismod.htlc.MsgRefundHTLC.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSender(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getHashLock(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string sender = 1; - * @return {string} - */ -proto.irismod.htlc.MsgRefundHTLC.prototype.getSender = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.irismod.htlc.MsgRefundHTLC} returns this - */ -proto.irismod.htlc.MsgRefundHTLC.prototype.setSender = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string hash_lock = 2; - * @return {string} - */ -proto.irismod.htlc.MsgRefundHTLC.prototype.getHashLock = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.irismod.htlc.MsgRefundHTLC} returns this - */ -proto.irismod.htlc.MsgRefundHTLC.prototype.setHashLock = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.irismod.htlc.MsgRefundHTLCResponse.prototype.toObject = function(opt_includeInstance) { - return proto.irismod.htlc.MsgRefundHTLCResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.irismod.htlc.MsgRefundHTLCResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.irismod.htlc.MsgRefundHTLCResponse.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.irismod.htlc.MsgRefundHTLCResponse} - */ -proto.irismod.htlc.MsgRefundHTLCResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.irismod.htlc.MsgRefundHTLCResponse; - return proto.irismod.htlc.MsgRefundHTLCResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.irismod.htlc.MsgRefundHTLCResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.irismod.htlc.MsgRefundHTLCResponse} - */ -proto.irismod.htlc.MsgRefundHTLCResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.irismod.htlc.MsgRefundHTLCResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.irismod.htlc.MsgRefundHTLCResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.irismod.htlc.MsgRefundHTLCResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.irismod.htlc.MsgRefundHTLCResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - goog.object.extend(exports, proto.irismod.htlc); diff --git a/src/types/proto.ts b/src/types/proto.ts index 30c4fa49..61118597 100644 --- a/src/types/proto.ts +++ b/src/types/proto.ts @@ -20,6 +20,9 @@ export const record_tx_pb= require( './proto-types/irismod/record/tx_pb'); export const service_tx_pb= require( './proto-types/irismod/service/tx_pb'); export const token_tx_pb= require( './proto-types/irismod/token/tx_pb'); +//ibc tx +export const ibc_transfer_tx_pb= require( './proto-types/ibc/applications/transfer/v1/tx_pb'); + /***************QUERY***************/ export const base_query_pagination_pb = require( './proto-types/cosmos/base/query/v1beta1/pagination_pb'); //cosmos query @@ -44,6 +47,10 @@ export const record_query_pb = require( './proto-types/irismod/record/query_pb') export const service_query_pb = require( './proto-types/irismod/service/query_pb'); export const token_query_pb = require( './proto-types/irismod/token/query_pb'); +//ibc query +export const ibc_transfer_query_pb= require( './proto-types/ibc/applications/transfer/v1/query_pb'); +export const ibc_channel_query_pb= require( './proto-types/ibc/core/channel/v1/query_pb'); + /***************MODULES***************/ //cosmos module export const auth_auth_pb = require( './proto-types/cosmos/auth/v1beta1/auth_pb'); @@ -53,20 +60,22 @@ export const crypto_sm2_keys_pb = require( './proto-types/cosmos/crypto/sm2/keys export const base_coin_pb = require('./proto-types/cosmos/base/v1beta1/coin_pb'); export const signing_signing_pb = require('./proto-types/cosmos/tx/signing/v1beta1/signing_pb'); export const gov_gov_pb = require( './proto-types/cosmos/gov/v1beta1/gov_pb'); +export const coinswap_coinswap_pb = require( './proto-types/irismod/coinswap/coinswap_pb'); export const distribution_distribution_pb = require( './proto-types/cosmos/distribution/v1beta1/distribution_pb'); export const params_params_pb = require( './proto-types/cosmos/params/v1beta1/params_pb'); export const upgrade_upgrade_pb = require( './proto-types/cosmos/upgrade/v1beta1/upgrade_pb'); export const slashing_slashing_pb = require('./proto-types/cosmos/slashing/v1beta1/slashing_pb'); -//ibc module -export const lightclients_tendermint_tendermint_pb = require( './proto-types/ibc/lightclients/tendermint/v1/tendermint_pb'); +// ibc module +export const ibc_core_client_pb= require( './proto-types/ibc/core/client/v1/client_pb'); +// export const lightclients_tendermint_tendermint_pb = require( './proto-types/ibc/lightclients/tendermint/v1/tendermint_pb'); //confio module -export const confio_proofs_pb = require( './proto-types/confio/proofs_pb'); +// export const confio_proofs_pb = require( './proto-types/confio/proofs_pb'); // google module export const google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -export const google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js'); +// export const google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js'); //irimod module export const token_token_pb = require( './proto-types/irismod/token/token_pb'); diff --git a/src/types/types.ts b/src/types/types.ts index f0797d34..ba17bee0 100644 --- a/src/types/types.ts +++ b/src/types/types.ts @@ -74,6 +74,11 @@ export enum TxType { MsgSubmitProposal = "cosmos.gov.v1beta1.MsgSubmitProposal", MsgVote = "cosmos.gov.v1beta1.MsgVote", MsgDeposit = "cosmos.gov.v1beta1.MsgDeposit", + //htlc + MsgCreateHTLC = "irismod.htlc.MsgCreateHTLC", + MsgClaimHTLC = "irismod.htlc.MsgClaimHTLC", + //ibc + MsgTransfer = "ibc.applications.transfer.v1.MsgTransfer" } /** @@ -143,3 +148,15 @@ export interface Tag { key: string; value: string; } + +/** + * Bech32 Prefix + */ +export interface Bech32Prefix { + AccAddr: string; + AccPub: string; + ValAddr: string; + ValPub: string; + ConsAddr: string; + ConsPub: string; +} diff --git a/src/utils/crypto.ts b/src/utils/crypto.ts index 29385ea9..2ca1d454 100644 --- a/src/utils/crypto.ts +++ b/src/utils/crypto.ts @@ -15,6 +15,9 @@ const Sha256 = require('sha256'); const Secp256k1 = require('secp256k1'); const SM2 = require('sm-crypto').sm2; +const bcrypt = require('bcryptjs'); +const nacl = require('tweetnacl'); + /** * Crypto Utils * @hidden @@ -434,6 +437,47 @@ export class Crypto { return privateKey; } + /** + * Gets a private key from a keystore v1.0 given its password. + * @param keystore The keystore v1.0 + * @param password The password. + * @returns The private key + */ + static getPrivateKeyFromKeystoreV1( + keystore: string, + password: string + ): {type:types.PubkeyType, privKey:string} { + if (!is.string(password)) { + throw new SdkError('No password given.',CODES.InvalidPassword); + } + + // unarmor + let keystore_content:types.KeystoreV1 = Utils.unarmor(keystore); + let header: types.KeystoreHeader = keystore_content.header; + if (!header.salt) { + throw new SdkError('invalid keystore salt'); + } + let salt:string = bcrypt.encodeBase64(Buffer.from(header.salt,'hex'),16); + let key:string = bcrypt.hashSync(password, `${types.keystoreSaltPerfix}${salt}`); + key = Utils.sha256(Buffer.from(key).toString('hex')); + let keystoreData:Buffer = Buffer.from(keystore_content.data,'base64'); + const nonce:Buffer = keystoreData.slice(0, types.xchacha20NonceLength); + let privKey_full:Uint8Array = nacl.secretbox.open(keystoreData.slice(types.xchacha20NonceLength), nonce, Buffer.from(key,'hex')); + if (!privKey_full) { + throw new SdkError('KeyStore parsing failed',CODES.Internal); + } + let privKey:string = Buffer.from(privKey_full).slice(5).toString('hex'); + if (header.type != types.PubkeyType.secp256k1 && + header.type != types.PubkeyType.ed25519 && + header.type != types.PubkeyType.sm2) { + header.type = types.PubkeyType.secp256k1; + } + return { + type: header.type as types.PubkeyType, + privKey + } + } + /** * Generates mnemonic phrase words using random entropy. * diff --git a/src/utils/utils.ts b/src/utils/utils.ts index c25d9638..da770a2f 100644 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -27,6 +27,55 @@ export class Utils { return result; } + /** + * unarmor Keystore + * @param string Keystore v1.0 + * @returns types.KeystoreV1 + */ + static unarmor(keystore: string): types.KeystoreV1 { + let keystoreTest = new RegExp(`^(${types.keystoreStructure.prefix})([\\s\\S]*)(${types.keystoreStructure.suffix})$`); + if (keystoreTest.test(keystore)) { + let clearTest = new RegExp(`^(${types.keystoreStructure.prefix})|(${types.keystoreStructure.suffix})$`,'g'); + keystore = keystore.replace(clearTest,''); + let datas:string[] = keystore.split('\n'); + if (!datas || !datas.length) { + throw new SdkError('Invalid keystore',CODES.InvalidType); + } + datas = datas.filter((item:string)=>item.trim().length); + let headers:string[] = datas.filter((item:string)=>item.indexOf(':')!=-1); + let contents:string[] = datas.filter((item:string)=>item.indexOf(':')==-1); + if (/^=/.test(contents[contents.length - 1])) { + delete contents[contents.length - 1]; + } + let header:types.KeystoreHeader = Utils.parseKeystoreHeaders(headers); + let content:string = contents.join(''); + return { + header, + data:content + } + }else{ + throw new SdkError('Invalid keystore',CODES.InvalidType); + } + } + + /** + * parse Keystore Headers + * @param string[] KeystoreHeaders string[] + * @returns types.KeystoreHeader + */ + static parseKeystoreHeaders(KeystoreHeaders: string[]): types.KeystoreHeader { + let header: types.KeystoreHeader = {}; + if (KeystoreHeaders && KeystoreHeaders.length) { + KeystoreHeaders.forEach((item:string)=>{ + let contents:string[] = item.split(':'); + if (contents.length == 2) { + (header as any)[contents[0]] = contents[1].trim(); + } + }) + } + return header; + } + /** * String to Byte Array * @param str ASCII string diff --git a/test/bank.test.ts b/test/bank.test.ts index ce92ce46..c8f9049a 100644 --- a/test/bank.test.ts +++ b/test/bank.test.ts @@ -34,7 +34,7 @@ describe('Bank Tests', () => { describe('multiSend', () => { test( - 'send coins', + 'multiSend coins', async () => { const amount: types.Coin[] = [ { @@ -80,7 +80,22 @@ describe('Bank Tests', () => { 'query All Balances', async () => { await BaseTest.getClient() - .bank.queryAllBalances('iaa1eqvkfthtrr93g4p9qspp54w6dtjtrn27ar7rpw') + .bank.queryAllBalances('iaa176dd0tgn38grpc8hpxfmwl6sl8jfmkneg8mkxr') + .then(res => { + console.log(JSON.stringify(res)); + }) + .catch(error => { + console.log(error); + }); + }, + timeout + ); + + test( + 'query All Balances by Height', + async () => { + await BaseTest.getClient() + .bank.queryAllBalances('iaa176dd0tgn38grpc8hpxfmwl6sl8jfmkneg8mkxr','4968') .then(res => { console.log(JSON.stringify(res)); }) diff --git a/test/basetest.ts b/test/basetest.ts index ed698ec4..c72c9b76 100644 --- a/test/basetest.ts +++ b/test/basetest.ts @@ -31,8 +31,8 @@ export class BaseTest { static getClient(): Client { let config = { - node: 'http://192.168.150.31:56657', - network: iris.types.Network.Mainnet, + node: 'http://192.168.150.40:26657', + chainNetwork: iris.types.ChainNetwork.Iris, chainId: 'bifrost-2', gas: '20000000', fee: { denom: 'ubif', amount: '200' }, diff --git a/test/coinswap.test.ts b/test/coinswap.test.ts index 14f6d9f5..f1bc52cc 100644 --- a/test/coinswap.test.ts +++ b/test/coinswap.test.ts @@ -1,89 +1,99 @@ +import * as types from '../src/types'; import { BaseTest } from './basetest'; + +const timeout = 10000; + describe('Coinswap Tests', () => { - describe('Query Liquidity', () => { - test('query liquidity', async () => { - await BaseTest.getClient() - .coinswap.queryLiquidity('uni:transfer/ztezqumzyz/ubtc') - .then(res => { - console.log(JSON.stringify(res)); - }) - .catch(error => { - console.log(error); - }); - }); + describe('Add Liquidity', () => { + test( + 'add liquidity', + async () => { + await BaseTest.getClient() + .coinswap.addLiquidity( + { + denom: 'kit', + amount: '500', + }, "1000", "1", + 1615642486, + BaseTest.baseTx + ) + .then(res => { + console.log(res); + }) + .catch(error => { + console.log(error); + }); + }, + timeout + ); }); - describe('Calculate', () => { - test('calculateDeposit', async () => { - await BaseTest.getClient() - .coinswap.calculateDeposit(1, 'transfer/irishubchan/uatom') - .then(res => { - console.log(JSON.stringify(res)); - }) - .catch(error => { - console.log(error); - }); - }); - test('calculateWithdraw', async () => { - await BaseTest.getClient() - .coinswap.calculateWithdraw({ - denom: 'uni:transfer/irishubchan/uatom', - amount: '1', - }) - .then(res => { - console.log(JSON.stringify(res)); - }) - .catch(error => { - console.log(error); - }); - }); - test('calculateWithExactInput', async () => { - await BaseTest.getClient() - .coinswap.calculateWithExactInput( - { denom: 'transfer/irishubchan/uatom', amount: '10' }, - 'transfer/ztezqumzyz/ubtc' - ) - .then(res => { - console.log(JSON.stringify(res)); - }) - .catch(error => { - console.log(error); - }); - }); - test('calculateWithExactOutput', async () => { - await BaseTest.getClient() - .coinswap.calculateWithExactOutput( - { denom: 'transfer/iriscosmoschan/uatom', amount: '100' }, - 'uiris' - ) - .then(res => { - console.log(JSON.stringify(res)); - }) - .catch(error => { - console.log(error); - }); - }); + + describe('Remove Liquidity', () => { + test( + 'remove liquidity', + async () => { + await BaseTest.getClient() + .coinswap.removeLiquidity( + { + denom: 'swap/kit', + amount: '10', + }, "1", "1", + 1615642486, + BaseTest.baseTx + ) + .then(res => { + console.log(res); + }) + .catch(error => { + console.log(error); + }); + }, + timeout + ); }); - describe('Add Liquidity', () => { - test('add liquidity', async () => { - const btc = await BaseTest.getClient() - .coinswap.calculateWithExactInput({denom: 'uiris', amount: '10000'}, 'transfer/ztezqumzyz/ubtc'); - console.log(btc) - await BaseTest.getClient() - .coinswap.deposit( - { - exact_standard_amt: 10000, - max_token: { denom: 'transfer/ztezqumzyz/ubtc', amount: String(btc) }, - min_liquidity: 10000, - deadline: 10000000, - }, - BaseTest.baseTx - ) - .then(res => { - console.log(JSON.stringify(res)); - }) - .catch(error => { - console.log(error); - }); - }); + + describe('Swap Order', () => { + test( + 'swap order', + async () => { + await BaseTest.getClient() + .coinswap.swapOrder( + { + denom: 'kit', + amount: '10', + }, { + denom: 'ubif', + amount: '10', + }, false, + 1615642486, + BaseTest.baseTx + ) + .then(res => { + console.log(res); + }) + .catch(error => { + console.log(error); + }); + }, + timeout + ); + }); + + describe('Query', () => { + test( + 'query Liquidity', + async () => { + await BaseTest.getClient() + .coinswap.queryLiquidity('kit') + .then(res => { + console.log(JSON.stringify(res)); + }) + .catch(error => { + console.log(error); + }); + }, + timeout + ); }); + }); diff --git a/test/htlc.test.ts b/test/htlc.test.ts new file mode 100644 index 00000000..adc836c8 --- /dev/null +++ b/test/htlc.test.ts @@ -0,0 +1,157 @@ +import * as types from '../src/types'; +import { BaseTest } from './basetest'; + +const timeout = 10000; + +describe('Bank Tests', () => { + describe('create HTLC', () => { + test( + 'create HTLC', + async () => { + await BaseTest.getClient() + .htlc.createHTLC( + { + sender: 'iaa1eqvkfthtrr93g4p9qspp54w6dtjtrn27ar7rpw', + to: 'iaa1ljemm0yznz58qxxs8xyak7fashcfxf5lgl4zjx', + receiver_on_other_chain: 'tbnb1c88qvyufqkh4ea422fr6wc6g2t5zrpxekdl0my', + sender_on_other_chain: 'tbnb1cegl4x48qy6mq5vg5wtryk806n2vjtyhk3sj6v', + amount: [{ + amount:'1003', + denom:'htltbcbnb' + }], + hash_lock: "f2e68d53eca99f02fc791cdb665f7ade28beb2b65c99dd302ead733c1950062a", + timestamp: 1617353946, + time_lock: 250, + transfer: true + }, + BaseTest.baseTx + ) + .then(res => { + console.log(res); + }) + .catch(error => { + console.log(error); + }); + }, + timeout + ); + }); + + describe('get htlc signed tx', () => { + test( + 'get htlc signed tx', + async () => { + const msgs: any[] = [ + { + type:types.TxType.MsgCreateHTLC, + value:{ + sender: 'iaa1eqvkfthtrr93g4p9qspp54w6dtjtrn27ar7rpw', + to: 'iaa1ljemm0yznz58qxxs8xyak7fashcfxf5lgl4zjx', + receiver_on_other_chain: 'tbnb1c88qvyufqkh4ea422fr6wc6g2t5zrpxekdl0my', + sender_on_other_chain: 'tbnb1cegl4x48qy6mq5vg5wtryk806n2vjtyhk3sj6v', + amount: [{ + amount:'1003', + denom:'htltbcbnb' + }], + hash_lock: "21b2ca6da04e26523671cf2f7b7e5d807a44a22deccd76953062dcacd1d43d2e", + timestamp: 1617278442, + time_lock: 250, + transfer: true + } + } + ]; + let unSignedTx = BaseTest.getClient().tx.buildTx(msgs, BaseTest.baseTx); + let SignedTx = await BaseTest.getClient().tx.sign(unSignedTx, BaseTest.baseTx); + }, + timeout + ); + }); + + describe('claim HTLC', () => { + test( + 'claim HTLC', + async () => { + await BaseTest.getClient() + .htlc.claimHTLC( + 'iaa1eqvkfthtrr93g4p9qspp54w6dtjtrn27ar7rpw', + '812F174782597314097E0F7662B1678301894CFAD143907FEFB73463B6F97408', + 'ea26e5baa346b264d56d238d7509e6280a3ae27da0045604e38bf5a524a553b6', + BaseTest.baseTx + ) + .then(res => { + console.log(JSON.stringify(res)); + }) + .catch(error => { + console.log(error); + }); + }, + timeout + ); + }); + + describe('Query', () => { + test( + 'query HTLC', + async () => { + await BaseTest.getClient() + .htlc.queryHTLC( + '3A90BDF3E9896F3B3FF88179446F046661C3D2E4380274E3C26881799F8400F4' + ) + .then(res => { + console.log(JSON.stringify(res)); + }) + .catch(error => { + console.log(error); + }); + }, + timeout + ); + + test( + 'query Asset Supply', + async () => { + await BaseTest.getClient() + .htlc.queryAssetSupply( + 'htltbcbnb' + ) + .then(res => { + console.log(JSON.stringify(res)); + }) + .catch(error => { + console.log(error); + }); + }, + timeout + ); + + test( + 'query Asset Supplies', + async () => { + await BaseTest.getClient() + .htlc.queryAssetSupplies() + .then(res => { + console.log(JSON.stringify(res)); + }) + .catch(error => { + console.log(error); + }); + }, + timeout + ); + + test( + 'query Params', + async () => { + await BaseTest.getClient() + .htlc.queryParams() + .then(res => { + console.log(JSON.stringify(res)); + }) + .catch(error => { + console.log(error); + }); + }, + timeout + ); + }); +}); diff --git a/test/ibc.test.ts b/test/ibc.test.ts new file mode 100644 index 00000000..a58db6b0 --- /dev/null +++ b/test/ibc.test.ts @@ -0,0 +1,99 @@ +import * as types from '../src/types'; +import { BaseTest } from './basetest'; + +const timeout = 90000; + +describe('ibc Tests', () => { + describe('Send', () => { + test( + 'ibc transfer', + async () => { + const amount: types.Coin = { + denom: 'uiris', + amount: '1', + }; + await BaseTest.getClient() + .ibc.transfer( + { + source_port: 'transfer', + source_channel: 'channel-0', + token: amount, + receiver: 'cosmos10nzeu2lf7lrcyvmtr8u7lygs8nj6vslqshcu06', + timeout_timestamp:1618825012138000000, + }, + BaseTest.baseTx + ) + .then(res => { + console.log(res); + }) + .catch(error => { + console.log(error); + }); + }, + 90000 + ); + }); + + describe('Queries', () => { + test( + 'query denom trace', + async () => { + await BaseTest.getClient() + .ibc.queryDenomTrace('BE92679ADBCA225EA3C8CB3AB22FAAFE5A43F7B08747C29A540A4CB88CE7670F') + .then(res => { + console.log(JSON.stringify(res)); + }) + .catch(error => { + console.log(error); + }); + }, + timeout + ); + + test( + 'queries all denomination traces', + async () => { + await BaseTest.getClient() + .ibc.queryDenomTraces() + .then(res => { + console.log(JSON.stringify(res)); + }) + .catch(error => { + console.log(error); + }); + }, + timeout + ); + + test( + 'queries all parameters of the ibc-transfer module', + async () => { + await BaseTest.getClient() + .ibc.queryParams() + .then(res => { + console.log(JSON.stringify(res)); + }) + .catch(error => { + console.log(error); + }); + }, + timeout + ); + + test( + 'queries all the IBC channels of a chain', + async () => { + await BaseTest.getClient() + .ibc.queryChannels(1,100) + .then(res => { + console.log(JSON.stringify(res)); + }) + .catch(error => { + console.log(error); + }); + }, + timeout + ); + + }); +}); diff --git a/test/index.test.ts b/test/index.test.ts index ce7fb967..932d57be 100644 --- a/test/index.test.ts +++ b/test/index.test.ts @@ -6,14 +6,14 @@ test('Init Client', () => { const client = iris.newClient({ node }); expect(client.config.chainId).toBe('irishub'); expect(client.config.fee).toBe('600000000000000000'); - expect(client.config.gas).toBe('100000'); - expect(client.config.network).toBe(iris.Network.Mainnet); + expect(client.config.gas).toBe('200000'); + expect(client.config.network).toBe(iris.types.Network.Mainnet); expect(client.config.node).toBe(node); const chainId = 'test'; const fee = { amount: '0.3', denom: 'iris' }; const gas = '50000'; - const network = iris.Network.Testnet; + const network = iris.types.Network.Testnet; client .withChainId(chainId) diff --git a/test/keys.test.ts b/test/keys.test.ts index cef8b4ae..ba2c4b4e 100644 --- a/test/keys.test.ts +++ b/test/keys.test.ts @@ -7,15 +7,8 @@ test('Keys', () => { // Create a new key const addedKey = client.keys.add('name1', password); expect(addedKey.address.substring(0, 3)).toBe('iaa'); - expect(addedKey.mnemonic.split(' ').length).toBe(24); - - /*// Recover a key - const recoveredKeyAddr = client.keys.recover( - 'name2', - password, - addedKey.mnemonic - ); - expect(recoveredKeyAddr).toBe(addedKey.address);*/ + let mnemonic = client.config.keyDAO.decrypt!(addedKey.mnemonic!,password); + expect(mnemonic.split(' ').length).toBe(24); // Export keystore of a key const keystore = client.keys.export('name1', password, password); @@ -23,8 +16,8 @@ test('Keys', () => { expect(keystoreObj.address).toBe(addedKey.address); // Import a keystore - const importedKeyAddr = client.keys.import('name3', password, keystore); - expect(importedKeyAddr).toBe(addedKey.address); + const importedKey = client.keys.import('name3', password, keystore); + expect(importedKey.address).toBe(addedKey.address); // Show address of a key const showAddr = client.keys.show('name1'); @@ -40,14 +33,30 @@ test('Keys', () => { test('recover', () => { const client = BaseTest.getClient(); const nmemonic = 'fatigue panther innocent dress person fluid animal raven material embark target spread kiss smile cycle begin rocket pull couple story mass analyst guilt network' - const key = client.keys.recover('', 'test',nmemonic); + const key = client.keys.recover('1', 'test',nmemonic); console.log(key) }); test('add', () => { const client = BaseTest.getClient(); - const key = client.keys.add('', 'test'); + const key = client.keys.add('1', 'test'); console.log(key) }); +test('Import a keystore V1', () => { + let keystore = `-----BEGIN TENDERMINT PRIVATE KEY----- +salt: A790BB721D1C094260EA84F5E5B72289 +kdf: bcrypt + +HbP+c6JmeJy9JXe2rbbF1QtCX1gLqGcDQPBXiCtFvP7/8wTZtVOPj8vREzhZ9ElO +3P7YnrzPQThG0Q+ZnRSbl9MAS8uFAM4mqm5r/Ys= +=f3l4 +-----END TENDERMINT PRIVATE KEY-----`; + + let password = '123456789'; + const client = BaseTest.getClient(); + let wallet = client.keys.importKeystore('123', password, keystore); + console.log('wallet:',wallet); +}); + diff --git a/test/token.test.ts b/test/token.test.ts index d46e2206..21da021d 100644 --- a/test/token.test.ts +++ b/test/token.test.ts @@ -61,10 +61,10 @@ describe('Token Tests', () => { async () => { await BaseTest.getClient() .token.issueToken({ - symbol: 'BTC', + symbol: 'kittt', name: 'test', scale: 6, - min_unit: 'btc', + min_unit: 'kit', initial_supply: 1000000, max_supply: 10000000, mintable: true, diff --git a/test/tx.test.ts b/test/tx.test.ts index 30f79d1b..fb23561f 100644 --- a/test/tx.test.ts +++ b/test/tx.test.ts @@ -75,8 +75,8 @@ describe('Tx Tests', () => { test('sign tx offline', async () => { let baseTx = {...BaseTest.baseTx}; - baseTx.account_number = '8'; - baseTx.sequence = '356'; + baseTx.account_number = 8; + baseTx.sequence = 356; let unsignedTx = BaseTest.getClient().tx.buildTx(msgs, BaseTest.baseTx); let offlineSignedTx = await BaseTest.getClient().tx.sign(unsignedTx,baseTx); diff --git a/yarn.lock b/yarn.lock index fb973136..0faafac5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,15 +2,16 @@ # yarn lockfile v1 -"@babel/cli@^7.0.0": - version "7.14.3" - resolved "https://registry.yarnpkg.com/@babel/cli/-/cli-7.14.3.tgz#9f6c8aee12e8660df879610f19a8010958b26a6f" - integrity sha512-zU4JLvwk32ay1lhhyGfqiRUSPoltVDjhYkA3aQq8+Yby9z30s/EsFw1EPOHxWG9YZo2pAGfgdRNeHZQAYU5m9A== +"@babel/cli@^7.13.14": + version "7.13.14" + resolved "https://registry.yarnpkg.com/@babel/cli/-/cli-7.13.14.tgz#c395bc89ec4760c91f2027fa8b26f8b2bf42238f" + integrity sha512-zmEFV8WBRsW+mPQumO1/4b34QNALBVReaiHJOkxhUsdo/AvYM62c+SKSuLi2aZ42t3ocK6OI0uwUXRvrIbREZw== dependencies: commander "^4.0.1" convert-source-map "^1.1.0" fs-readdir-recursive "^1.1.0" glob "^7.0.0" + lodash "^4.17.19" make-dir "^2.1.0" slash "^2.0.0" source-map "^0.5.0" @@ -18,24 +19,54 @@ "@nicolo-ribaudo/chokidar-2" "2.1.8-no-fsevents" chokidar "^3.4.0" -"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.14.5": +"@babel/code-frame@7.12.11": + version "7.12.11" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.12.11.tgz#f4ad435aa263db935b8f10f2c552d23fb716a63f" + integrity sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw== + dependencies: + "@babel/highlight" "^7.10.4" + +"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13": + version "7.12.13" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.12.13.tgz#dcfc826beef65e75c50e21d3837d7d95798dd658" + integrity sha512-HV1Cm0Q3ZrpCR93tkWOYiuYIgLxZXZFVG2VgK+MBWjUqZTundupbfx2aXarXuw5Ko5aMcjtJgbSs4vUGBS5v6g== + dependencies: + "@babel/highlight" "^7.12.13" + +"@babel/code-frame@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.14.5.tgz#23b08d740e83f49c5e59945fbf1b43e80bbf4edb" integrity sha512-9pzDqyc6OLDaqe+zbACgFkb6fKMNG6CObKpnYXChRsvYGyEdc7CA2BaqeOM+vOtCS5ndmJicPJhKAwYRI6UfFw== dependencies: "@babel/highlight" "^7.14.5" -"@babel/compat-data@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.12.13.tgz#27e19e0ed3726ccf54067ced4109501765e7e2e8" - integrity sha512-U/hshG5R+SIoW7HVWIdmy1cB7s3ki+r3FpyEZiCgpi4tFgPnX/vynY80ZGSASOIrUM6O7VxOgCZgdt7h97bUGg== +"@babel/compat-data@^7.13.11", "@babel/compat-data@^7.14.5", "@babel/compat-data@^7.14.7": + version "7.14.7" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.14.7.tgz#7b047d7a3a89a67d2258dc61f604f098f1bc7e08" + integrity sha512-nS6dZaISCXJ3+518CWiBfEr//gHyMO02uDxBkXTKZDN5POruCnOZ1N4YBRZDCabwF8nZMWBpRxIicmXtBs+fvw== -"@babel/compat-data@^7.14.5": - version "7.14.5" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.14.5.tgz#8ef4c18e58e801c5c95d3c1c0f2874a2680fadea" - integrity sha512-kixrYn4JwfAVPa0f2yfzc2AWti6WRRyO3XjWW5PJAvtE11qhSayrrcrEnee05KAtNaPC+EwehE8Qt1UedEVB8w== +"@babel/core@^7.1.0", "@babel/core@^7.7.5": + version "7.12.13" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.12.13.tgz#b73a87a3a3e7d142a66248bf6ad88b9ceb093425" + integrity sha512-BQKE9kXkPlXHPeqissfxo0lySWJcYdEP0hdtJOH/iJfDdhOCcgtNCjftCJg3qqauB4h+lz2N6ixM++b9DN1Tcw== + dependencies: + "@babel/code-frame" "^7.12.13" + "@babel/generator" "^7.12.13" + "@babel/helper-module-transforms" "^7.12.13" + "@babel/helpers" "^7.12.13" + "@babel/parser" "^7.12.13" + "@babel/template" "^7.12.13" + "@babel/traverse" "^7.12.13" + "@babel/types" "^7.12.13" + convert-source-map "^1.7.0" + debug "^4.1.0" + gensync "^1.0.0-beta.1" + json5 "^2.1.2" + lodash "^4.17.19" + semver "^5.4.1" + source-map "^0.5.0" -"@babel/core@^7.0.0", "@babel/core@^7.1.0", "@babel/core@^7.7.5": +"@babel/core@^7.14.6": version "7.14.6" resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.14.6.tgz#e0814ec1a950032ff16c13a2721de39a8416fcab" integrity sha512-gJnOEWSqTk96qG5BoIrl5bVtc23DCycmIePPYnamY9RboYdI4nFy5vAQMSl81O5K/W0sLDWfGysnOECC+KUUCA== @@ -56,6 +87,15 @@ semver "^6.3.0" source-map "^0.5.0" +"@babel/generator@^7.12.13": + version "7.12.15" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.12.15.tgz#4617b5d0b25cc572474cc1aafee1edeaf9b5368f" + integrity sha512-6F2xHxBiFXWNSGb7vyCUTBF8RCLY66rS0zEPcP8t/nQyXjha5EuK4z7H5o7fWG8B4M7y6mqVWq1J+1PuwRhecQ== + dependencies: + "@babel/types" "^7.12.13" + jsesc "^2.5.1" + source-map "^0.5.0" + "@babel/generator@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.14.5.tgz#848d7b9f031caca9d0cd0af01b063f226f52d785" @@ -72,15 +112,22 @@ dependencies: "@babel/types" "^7.12.13" -"@babel/helper-builder-binary-assignment-operator-visitor@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.12.13.tgz#6bc20361c88b0a74d05137a65cac8d3cbf6f61fc" - integrity sha512-CZOv9tGphhDRlVjVkAgm8Nhklm9RzSmWpX2my+t7Ua/KT616pEzXsQCjinzvkRvHWJ9itO4f296efroX23XCMA== +"@babel/helper-annotate-as-pure@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.14.5.tgz#7bf478ec3b71726d56a8ca5775b046fc29879e61" + integrity sha512-EivH9EgBIb+G8ij1B2jAwSH36WnGvkQSEC6CkX/6v6ZFlw5fVOHvsgGF4uiEHO2GzMvunZb6tDLQEQSdrdocrA== dependencies: - "@babel/helper-explode-assignable-expression" "^7.12.13" - "@babel/types" "^7.12.13" + "@babel/types" "^7.14.5" -"@babel/helper-compilation-targets@^7.12.13", "@babel/helper-compilation-targets@^7.14.5": +"@babel/helper-builder-binary-assignment-operator-visitor@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.14.5.tgz#b939b43f8c37765443a19ae74ad8b15978e0a191" + integrity sha512-YTA/Twn0vBXDVGJuAX6PwW7x5zQei1luDDo2Pl6q1qZ7hVNl0RZrhHCQG/ArGpR29Vl7ETiB8eJyrvpuRp300w== + dependencies: + "@babel/helper-explode-assignable-expression" "^7.14.5" + "@babel/types" "^7.14.5" + +"@babel/helper-compilation-targets@^7.13.0", "@babel/helper-compilation-targets@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.14.5.tgz#7a99c5d0967911e972fe2c3411f7d5b498498ecf" integrity sha512-v+QtZqXEiOnpO6EYvlImB6zCD2Lel06RzOPzmkz/D/XgQiUu3C/Jb1LOqSt/AIA34TYi/Q+KlT8vTQrgdxkbLw== @@ -101,16 +148,17 @@ "@babel/helper-replace-supers" "^7.12.13" "@babel/helper-split-export-declaration" "^7.12.13" -"@babel/helper-create-class-features-plugin@^7.13.0": - version "7.13.8" - resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.13.8.tgz#0367bd0a7505156ce018ca464f7ac91ba58c1a04" - integrity sha512-qioaRrKHQbn4hkRKDHbnuQ6kAxmmOF+kzKGnIfxPK4j2rckSJCpKzr/SSTlohSCiE3uAQpNDJ9FIh4baeE8W+w== +"@babel/helper-create-class-features-plugin@^7.14.5": + version "7.14.6" + resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.14.6.tgz#f114469b6c06f8b5c59c6c4e74621f5085362542" + integrity sha512-Z6gsfGofTxH/+LQXqYEK45kxmcensbzmk/oi8DmaQytlQCgqNZt9XQF8iqlI/SeXWVjaMNxvYvzaYw+kh42mDg== dependencies: - "@babel/helper-function-name" "^7.12.13" - "@babel/helper-member-expression-to-functions" "^7.13.0" - "@babel/helper-optimise-call-expression" "^7.12.13" - "@babel/helper-replace-supers" "^7.13.0" - "@babel/helper-split-export-declaration" "^7.12.13" + "@babel/helper-annotate-as-pure" "^7.14.5" + "@babel/helper-function-name" "^7.14.5" + "@babel/helper-member-expression-to-functions" "^7.14.5" + "@babel/helper-optimise-call-expression" "^7.14.5" + "@babel/helper-replace-supers" "^7.14.5" + "@babel/helper-split-export-declaration" "^7.14.5" "@babel/helper-create-regexp-features-plugin@^7.12.13": version "7.12.13" @@ -120,12 +168,34 @@ "@babel/helper-annotate-as-pure" "^7.12.13" regexpu-core "^4.7.1" -"@babel/helper-explode-assignable-expression@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.12.13.tgz#0e46990da9e271502f77507efa4c9918d3d8634a" - integrity sha512-5loeRNvMo9mx1dA/d6yNi+YiKziJZFylZnCo1nmFF4qPU4yJ14abhWESuSMQSlQxWdxdOFzxXjk/PpfudTtYyw== +"@babel/helper-create-regexp-features-plugin@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.14.5.tgz#c7d5ac5e9cf621c26057722fb7a8a4c5889358c4" + integrity sha512-TLawwqpOErY2HhWbGJ2nZT5wSkR192QpN+nBg1THfBfftrlvOh+WbhrxXCH4q4xJ9Gl16BGPR/48JA+Ryiho/A== dependencies: - "@babel/types" "^7.12.13" + "@babel/helper-annotate-as-pure" "^7.14.5" + regexpu-core "^4.7.1" + +"@babel/helper-define-polyfill-provider@^0.2.2": + version "0.2.3" + resolved "https://registry.yarnpkg.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.2.3.tgz#0525edec5094653a282688d34d846e4c75e9c0b6" + integrity sha512-RH3QDAfRMzj7+0Nqu5oqgO5q9mFtQEVvCRsi8qCEfzLR9p2BHfn5FzhSB2oj1fF7I2+DcTORkYaQ6aTR9Cofew== + dependencies: + "@babel/helper-compilation-targets" "^7.13.0" + "@babel/helper-module-imports" "^7.12.13" + "@babel/helper-plugin-utils" "^7.13.0" + "@babel/traverse" "^7.13.0" + debug "^4.1.1" + lodash.debounce "^4.0.8" + resolve "^1.14.2" + semver "^6.1.2" + +"@babel/helper-explode-assignable-expression@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.14.5.tgz#8aa72e708205c7bb643e45c73b4386cdf2a1f645" + integrity sha512-Htb24gnGJdIGT4vnRKMdoXiOIlqOLmdiUYpAQ0mYfgVT/GDm8GOYhgi4GL+hMKrkiPRohO4ts34ELFsGAPQLDQ== + dependencies: + "@babel/types" "^7.14.5" "@babel/helper-function-name@^7.12.13": version "7.12.13" @@ -159,13 +229,6 @@ dependencies: "@babel/types" "^7.14.5" -"@babel/helper-hoist-variables@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.12.13.tgz#13aba58b7480b502362316ea02f52cca0e9796cd" - integrity sha512-KSC5XSj5HreRhYQtZ3cnSnQwDzgnbdUDEFsxkN0m6Q3WrCRt72xrnZ8+h+pX7YxM7hr87zIO3a/v5p/H3TrnVw== - dependencies: - "@babel/types" "^7.12.13" - "@babel/helper-hoist-variables@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.14.5.tgz#e0dd27c33a78e577d7c8884916a3e7ef1f7c7f8d" @@ -180,17 +243,10 @@ dependencies: "@babel/types" "^7.12.13" -"@babel/helper-member-expression-to-functions@^7.13.0": - version "7.13.0" - resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.13.0.tgz#6aa4bb678e0f8c22f58cdb79451d30494461b091" - integrity sha512-yvRf8Ivk62JwisqV1rFRMxiSMDGnN6KH1/mDMmIrij4jztpQNRoHqqMG3U6apYbGRPJpgPalhva9Yd06HlUxJQ== - dependencies: - "@babel/types" "^7.13.0" - "@babel/helper-member-expression-to-functions@^7.14.5": - version "7.14.5" - resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.14.5.tgz#d5c70e4ad13b402c95156c7a53568f504e2fb7b8" - integrity sha512-UxUeEYPrqH1Q/k0yRku1JE7dyfyehNwT6SVkMHvYvPDv4+uu627VXBckVj891BO8ruKBkiDoGnZf4qPDD8abDQ== + version "7.14.7" + resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.14.7.tgz#97e56244beb94211fe277bd818e3a329c66f7970" + integrity sha512-TMUt4xKxJn6ccjcOW7c4hlwyJArizskAhoSTOCkA0uZ+KghIaci0Qg9R043kUMWI9mtQfgny+NQ5QATnZ+paaA== dependencies: "@babel/types" "^7.14.5" @@ -208,7 +264,22 @@ dependencies: "@babel/types" "^7.14.5" -"@babel/helper-module-transforms@^7.12.13", "@babel/helper-module-transforms@^7.14.5": +"@babel/helper-module-transforms@^7.12.13": + version "7.12.13" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.12.13.tgz#01afb052dcad2044289b7b20beb3fa8bd0265bea" + integrity sha512-acKF7EjqOR67ASIlDTupwkKM1eUisNAjaSduo5Cz+793ikfnpe7p4Q7B7EWU2PCoSTPWsQkR7hRUWEIZPiVLGA== + dependencies: + "@babel/helper-module-imports" "^7.12.13" + "@babel/helper-replace-supers" "^7.12.13" + "@babel/helper-simple-access" "^7.12.13" + "@babel/helper-split-export-declaration" "^7.12.13" + "@babel/helper-validator-identifier" "^7.12.11" + "@babel/template" "^7.12.13" + "@babel/traverse" "^7.12.13" + "@babel/types" "^7.12.13" + lodash "^4.17.19" + +"@babel/helper-module-transforms@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.14.5.tgz#7de42f10d789b423eb902ebd24031ca77cb1e10e" integrity sha512-iXpX4KW8LVODuAieD7MzhNjmM6dzYY5tfRqT+R9HDXWl0jPn/djKmA+G9s/2C2T9zggw5tK1QNqZ70USfedOwA== @@ -236,19 +307,24 @@ dependencies: "@babel/types" "^7.14.5" -"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.13.0", "@babel/helper-plugin-utils@^7.8.0", "@babel/helper-plugin-utils@^7.8.3": - version "7.13.0" - resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.13.0.tgz#806526ce125aed03373bc416a828321e3a6a33af" - integrity sha512-ZPafIPSwzUlAoWT8DKs1W2VyF2gOWthGd5NGFMsBcMMol+ZhK+EQY/e6V96poa6PA/Bh+C9plWN0hXO1uB8AfQ== - -"@babel/helper-remap-async-to-generator@^7.12.13": +"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.8.0", "@babel/helper-plugin-utils@^7.8.3": version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.12.13.tgz#170365f4140e2d20e5c88f8ba23c24468c296878" - integrity sha512-Qa6PU9vNcj1NZacZZI1Mvwt+gXDH6CTfgAkSjeRMLE8HxtDK76+YDId6NQR+z7Rgd5arhD2cIbS74r0SxD6PDA== + resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.12.13.tgz#174254d0f2424d8aefb4dd48057511247b0a9eeb" + integrity sha512-C+10MXCXJLiR6IeG9+Wiejt9jmtFpxUc3MQqCmPY8hfCjyUGl9kT+B2okzEZrtykiwrc4dbCPdDoz0A/HQbDaA== + +"@babel/helper-plugin-utils@^7.13.0", "@babel/helper-plugin-utils@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.14.5.tgz#5ac822ce97eec46741ab70a517971e443a70c5a9" + integrity sha512-/37qQCE3K0vvZKwoK4XU/irIJQdIfCJuhU5eKnNxpFDsOkgFaUAwbv+RYw6eYgsC0E4hS7r5KqGULUogqui0fQ== + +"@babel/helper-remap-async-to-generator@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.14.5.tgz#51439c913612958f54a987a4ffc9ee587a2045d6" + integrity sha512-rLQKdQU+HYlxBwQIj8dk4/0ENOUEhA/Z0l4hN8BexpvmSMN9oA9EagjnhnDpNsRdWCfjwa4mn/HyBXO9yhQP6A== dependencies: - "@babel/helper-annotate-as-pure" "^7.12.13" - "@babel/helper-wrap-function" "^7.12.13" - "@babel/types" "^7.12.13" + "@babel/helper-annotate-as-pure" "^7.14.5" + "@babel/helper-wrap-function" "^7.14.5" + "@babel/types" "^7.14.5" "@babel/helper-replace-supers@^7.12.13": version "7.12.13" @@ -260,16 +336,6 @@ "@babel/traverse" "^7.12.13" "@babel/types" "^7.12.13" -"@babel/helper-replace-supers@^7.13.0": - version "7.13.0" - resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.13.0.tgz#6034b7b51943094cb41627848cb219cb02be1d24" - integrity sha512-Segd5me1+Pz+rmN/NFBOplMbZG3SqRJOBlY+mA0SxAv6rjj7zJqr1AVr3SfzUVTLCv7ZLU5FycOM/SBGuLPbZw== - dependencies: - "@babel/helper-member-expression-to-functions" "^7.13.0" - "@babel/helper-optimise-call-expression" "^7.12.13" - "@babel/traverse" "^7.13.0" - "@babel/types" "^7.13.0" - "@babel/helper-replace-supers@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.14.5.tgz#0ecc0b03c41cd567b4024ea016134c28414abb94" @@ -294,12 +360,12 @@ dependencies: "@babel/types" "^7.14.5" -"@babel/helper-skip-transparent-expression-wrappers@^7.12.1": - version "7.12.1" - resolved "https://registry.yarnpkg.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.12.1.tgz#462dc63a7e435ade8468385c63d2b84cce4b3cbf" - integrity sha512-Mf5AUuhG1/OCChOJ/HcADmvcHM42WJockombn8ATJG3OnyiSxBK/Mm5x78BQWvmtXZKHgbjdGL2kin/HOLlZGA== +"@babel/helper-skip-transparent-expression-wrappers@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.14.5.tgz#96f486ac050ca9f44b009fbe5b7d394cab3a0ee4" + integrity sha512-dmqZB7mrb94PZSAOYtr+ZN5qt5owZIAgqtoTuqiFbHFtxgEcmQlRJVI+bO++fciBunXtB6MK7HrzrfcAzIz2NQ== dependencies: - "@babel/types" "^7.12.1" + "@babel/types" "^7.14.5" "@babel/helper-split-export-declaration@^7.12.13": version "7.12.13" @@ -320,27 +386,41 @@ resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.12.11.tgz#c9a1f021917dcb5ccf0d4e453e399022981fc9ed" integrity sha512-np/lG3uARFybkoHokJUmf1QfEvRVCPbmQeUQpKow5cQ3xWrV9i3rUHodKDJPQfTVX61qKi+UdYk8kik84n7XOw== +"@babel/helper-validator-identifier@^7.14.0": + version "7.14.0" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.14.0.tgz#d26cad8a47c65286b15df1547319a5d0bcf27288" + integrity sha512-V3ts7zMSu5lfiwWDVWzRDGIN+lnCEUdaXgtVHJgLb1rGaA6jMrtB9EmE7L18foXJIE8Un/A/h6NJfGQp/e1J4A== + "@babel/helper-validator-identifier@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.14.5.tgz#d0f0e277c512e0c938277faa85a3968c9a44c0e8" integrity sha512-5lsetuxCLilmVGyiLEfoHBRX8UCFD+1m2x3Rj97WrW3V7H3u4RWRXA4evMjImCsin2J2YT0QaVDGf+z8ondbAg== -"@babel/helper-validator-option@^7.12.11", "@babel/helper-validator-option@^7.12.17": - version "7.12.17" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.12.17.tgz#d1fbf012e1a79b7eebbfdc6d270baaf8d9eb9831" - integrity sha512-TopkMDmLzq8ngChwRlyjR6raKD6gMSae4JdYDB8bByKreQgG0RBTuKe9LRxW3wFtUnjxOPRKBDwEH6Mg5KeDfw== +"@babel/helper-validator-option@^7.12.11": + version "7.12.11" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.12.11.tgz#d66cb8b7a3e7fe4c6962b32020a131ecf0847f4f" + integrity sha512-TBFCyj939mFSdeX7U7DDj32WtzYY7fDcalgq8v3fBZMNOJQNn7nOYzMaUCiPxPYfCup69mtIpqlKgMZLvQ8Xhw== "@babel/helper-validator-option@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.14.5.tgz#6e72a1fff18d5dfcb878e1e62f1a021c4b72d5a3" integrity sha512-OX8D5eeX4XwcroVW45NMvoYaIuFI+GQpA2a8Gi+X/U/cDUIRsV37qQfF905F0htTRCREQIB4KqPeaveRJUl3Ow== -"@babel/helper-wrap-function@^7.12.13": +"@babel/helper-wrap-function@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.14.5.tgz#5919d115bf0fe328b8a5d63bcb610f51601f2bff" + integrity sha512-YEdjTCq+LNuNS1WfxsDCNpgXkJaIyqco6DAelTUjT4f2KIWC1nBcaCaSdHTBqQVLnTBexBcVcFhLSU1KnYuePQ== + dependencies: + "@babel/helper-function-name" "^7.14.5" + "@babel/template" "^7.14.5" + "@babel/traverse" "^7.14.5" + "@babel/types" "^7.14.5" + +"@babel/helpers@^7.12.13": version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.12.13.tgz#e3ea8cb3ee0a16911f9c1b50d9e99fe8fe30f9ff" - integrity sha512-t0aZFEmBJ1LojdtJnhOaQEVejnzYhyjWHSsNSNo8vOYRbAJNh6r6GQF7pd36SqG7OKGbn+AewVQ/0IfYfIuGdw== + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.12.13.tgz#3c75e993632e4dadc0274eae219c73eb7645ba47" + integrity sha512-oohVzLRZ3GQEk4Cjhfs9YkJA4TdIDTObdBEZGrd6F/T0GPSnuV6l22eMcxlvcvzVIPH3VTtxbseudM1zIE+rPQ== dependencies: - "@babel/helper-function-name" "^7.12.13" "@babel/template" "^7.12.13" "@babel/traverse" "^7.12.13" "@babel/types" "^7.12.13" @@ -354,6 +434,24 @@ "@babel/traverse" "^7.14.5" "@babel/types" "^7.14.5" +"@babel/highlight@^7.10.4": + version "7.14.0" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.14.0.tgz#3197e375711ef6bf834e67d0daec88e4f46113cf" + integrity sha512-YSCOwxvTYEIMSGaBQb5kDDsCopDdiUGsqpatp3fOlI4+2HQSkTmEVWnVuySdAC5EWCqSWWTv0ib63RjR7dTBdg== + dependencies: + "@babel/helper-validator-identifier" "^7.14.0" + chalk "^2.0.0" + js-tokens "^4.0.0" + +"@babel/highlight@^7.12.13": + version "7.12.13" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.12.13.tgz#8ab538393e00370b26271b01fa08f7f27f2e795c" + integrity sha512-kocDQvIbgMKlWxXe9fof3TQ+gkIPOUSEYhJjqUjvKMez3krV7vbzYCDq39Oj11UAVK7JqPVGQPlgE85dPNlQww== + dependencies: + "@babel/helper-validator-identifier" "^7.12.11" + chalk "^2.0.0" + js-tokens "^4.0.0" + "@babel/highlight@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.14.5.tgz#6861a52f03966405001f6aa534a01a24d99e8cd9" @@ -363,111 +461,154 @@ chalk "^2.0.0" js-tokens "^4.0.0" -"@babel/parser@^7.1.0", "@babel/parser@^7.14.5", "@babel/parser@^7.14.6": - version "7.14.6" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.14.6.tgz#d85cc68ca3cac84eae384c06f032921f5227f4b2" - integrity sha512-oG0ej7efjEXxb4UgE+klVx+3j4MVo+A2vCzm7OUN4CLo6WhQ+vSOD2yJ8m7B+DghObxtLxt3EfgMWpq+AsWehQ== +"@babel/parser@^7.1.0", "@babel/parser@^7.12.13": + version "7.12.15" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.12.15.tgz#2b20de7f0b4b332d9b119dd9c33409c538b8aacf" + integrity sha512-AQBOU2Z9kWwSZMd6lNjCX0GUgFonL1wAM1db8L8PMk9UDaGsRCArBkU4Sc+UCM3AE4hjbXx+h58Lb3QT4oRmrA== -"@babel/plugin-proposal-async-generator-functions@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.12.13.tgz#d1c6d841802ffb88c64a2413e311f7345b9e66b5" - integrity sha512-1KH46Hx4WqP77f978+5Ye/VUbuwQld2hph70yaw2hXS2v7ER2f3nlpNMu909HO2rbvP0NKLlMVDPh9KXklVMhA== +"@babel/parser@^7.14.5", "@babel/parser@^7.14.6", "@babel/parser@^7.14.7": + version "7.14.7" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.14.7.tgz#6099720c8839ca865a2637e6c85852ead0bdb595" + integrity sha512-X67Z5y+VBJuHB/RjwECp8kSl5uYi0BvRbNeWqkaJCVh+LiTPl19WBUfG627psSgp9rSf6ojuXghQM3ha6qHHdA== + +"@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.14.5.tgz#4b467302e1548ed3b1be43beae2cc9cf45e0bb7e" + integrity sha512-ZoJS2XCKPBfTmL122iP6NM9dOg+d4lc9fFk3zxc8iDjvt8Pk4+TlsHSKhIPf6X+L5ORCdBzqMZDjL/WHj7WknQ== dependencies: - "@babel/helper-plugin-utils" "^7.12.13" - "@babel/helper-remap-async-to-generator" "^7.12.13" - "@babel/plugin-syntax-async-generators" "^7.8.0" + "@babel/helper-plugin-utils" "^7.14.5" + "@babel/helper-skip-transparent-expression-wrappers" "^7.14.5" + "@babel/plugin-proposal-optional-chaining" "^7.14.5" -"@babel/plugin-proposal-class-properties@^7.12.13", "@babel/plugin-proposal-class-properties@^7.8.3": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.12.13.tgz#3d2ce350367058033c93c098e348161d6dc0d8c8" - integrity sha512-8SCJ0Ddrpwv4T7Gwb33EmW1V9PY5lggTO+A8WjyIwxrSHDUyBw4MtF96ifn1n8H806YlxbVCoKXbbmzD6RD+cA== +"@babel/plugin-proposal-async-generator-functions@^7.14.7": + version "7.14.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.14.7.tgz#784a48c3d8ed073f65adcf30b57bcbf6c8119ace" + integrity sha512-RK8Wj7lXLY3bqei69/cc25gwS5puEc3dknoFPFbqfy3XxYQBQFvu4ioWpafMBAB+L9NyptQK4nMOa5Xz16og8Q== dependencies: - "@babel/helper-create-class-features-plugin" "^7.12.13" - "@babel/helper-plugin-utils" "^7.12.13" + "@babel/helper-plugin-utils" "^7.14.5" + "@babel/helper-remap-async-to-generator" "^7.14.5" + "@babel/plugin-syntax-async-generators" "^7.8.4" -"@babel/plugin-proposal-dynamic-import@^7.12.1": - version "7.12.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.12.1.tgz#43eb5c2a3487ecd98c5c8ea8b5fdb69a2749b2dc" - integrity sha512-a4rhUSZFuq5W8/OO8H7BL5zspjnc1FLd9hlOxIK/f7qG4a0qsqk8uvF/ywgBA8/OmjsapjpvaEOYItfGG1qIvQ== +"@babel/plugin-proposal-class-properties@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.14.5.tgz#40d1ee140c5b1e31a350f4f5eed945096559b42e" + integrity sha512-q/PLpv5Ko4dVc1LYMpCY7RVAAO4uk55qPwrIuJ5QJ8c6cVuAmhu7I/49JOppXL6gXf7ZHzpRVEUZdYoPLM04Gg== dependencies: - "@babel/helper-plugin-utils" "^7.10.4" - "@babel/plugin-syntax-dynamic-import" "^7.8.0" + "@babel/helper-create-class-features-plugin" "^7.14.5" + "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-proposal-export-namespace-from@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.12.13.tgz#393be47a4acd03fa2af6e3cde9b06e33de1b446d" - integrity sha512-INAgtFo4OnLN3Y/j0VwAgw3HDXcDtX+C/erMvWzuV9v71r7urb6iyMXu7eM9IgLr1ElLlOkaHjJ0SbCmdOQ3Iw== +"@babel/plugin-proposal-class-static-block@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-static-block/-/plugin-proposal-class-static-block-7.14.5.tgz#158e9e10d449c3849ef3ecde94a03d9f1841b681" + integrity sha512-KBAH5ksEnYHCegqseI5N9skTdxgJdmDoAOc0uXa+4QMYKeZD0w5IARh4FMlTNtaHhbB8v+KzMdTgxMMzsIy6Yg== dependencies: - "@babel/helper-plugin-utils" "^7.12.13" + "@babel/helper-create-class-features-plugin" "^7.14.5" + "@babel/helper-plugin-utils" "^7.14.5" + "@babel/plugin-syntax-class-static-block" "^7.14.5" + +"@babel/plugin-proposal-dynamic-import@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.14.5.tgz#0c6617df461c0c1f8fff3b47cd59772360101d2c" + integrity sha512-ExjiNYc3HDN5PXJx+bwC50GIx/KKanX2HiggnIUAYedbARdImiCU4RhhHfdf0Kd7JNXGpsBBBCOm+bBVy3Gb0g== + dependencies: + "@babel/helper-plugin-utils" "^7.14.5" + "@babel/plugin-syntax-dynamic-import" "^7.8.3" + +"@babel/plugin-proposal-export-namespace-from@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.14.5.tgz#dbad244310ce6ccd083072167d8cea83a52faf76" + integrity sha512-g5POA32bXPMmSBu5Dx/iZGLGnKmKPc5AiY7qfZgurzrCYgIztDlHFbznSNCoQuv57YQLnQfaDi7dxCtLDIdXdA== + dependencies: + "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-export-namespace-from" "^7.8.3" -"@babel/plugin-proposal-json-strings@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.12.13.tgz#ced7888a2db92a3d520a2e35eb421fdb7fcc9b5d" - integrity sha512-v9eEi4GiORDg8x+Dmi5r8ibOe0VXoKDeNPYcTTxdGN4eOWikrJfDJCJrr1l5gKGvsNyGJbrfMftC2dTL6oz7pg== +"@babel/plugin-proposal-json-strings@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.14.5.tgz#38de60db362e83a3d8c944ac858ddf9f0c2239eb" + integrity sha512-NSq2fczJYKVRIsUJyNxrVUMhB27zb7N7pOFGQOhBKJrChbGcgEAqyZrmZswkPk18VMurEeJAaICbfm57vUeTbQ== dependencies: - "@babel/helper-plugin-utils" "^7.12.13" - "@babel/plugin-syntax-json-strings" "^7.8.0" + "@babel/helper-plugin-utils" "^7.14.5" + "@babel/plugin-syntax-json-strings" "^7.8.3" -"@babel/plugin-proposal-logical-assignment-operators@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.12.13.tgz#575b5d9a08d8299eeb4db6430da6e16e5cf14350" - integrity sha512-fqmiD3Lz7jVdK6kabeSr1PZlWSUVqSitmHEe3Z00dtGTKieWnX9beafvavc32kjORa5Bai4QNHgFDwWJP+WtSQ== +"@babel/plugin-proposal-logical-assignment-operators@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.14.5.tgz#6e6229c2a99b02ab2915f82571e0cc646a40c738" + integrity sha512-YGn2AvZAo9TwyhlLvCCWxD90Xq8xJ4aSgaX3G5D/8DW94L8aaT+dS5cSP+Z06+rCJERGSr9GxMBZ601xoc2taw== dependencies: - "@babel/helper-plugin-utils" "^7.12.13" + "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4" -"@babel/plugin-proposal-nullish-coalescing-operator@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.12.13.tgz#24867307285cee4e1031170efd8a7ac807deefde" - integrity sha512-Qoxpy+OxhDBI5kRqliJFAl4uWXk3Bn24WeFstPH0iLymFehSAUR8MHpqU7njyXv/qbo7oN6yTy5bfCmXdKpo1Q== +"@babel/plugin-proposal-nullish-coalescing-operator@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.14.5.tgz#ee38589ce00e2cc59b299ec3ea406fcd3a0fdaf6" + integrity sha512-gun/SOnMqjSb98Nkaq2rTKMwervfdAoz6NphdY0vTfuzMfryj+tDGb2n6UkDKwez+Y8PZDhE3D143v6Gepp4Hg== dependencies: - "@babel/helper-plugin-utils" "^7.12.13" - "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.0" + "@babel/helper-plugin-utils" "^7.14.5" + "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" -"@babel/plugin-proposal-numeric-separator@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.12.13.tgz#bd9da3188e787b5120b4f9d465a8261ce67ed1db" - integrity sha512-O1jFia9R8BUCl3ZGB7eitaAPu62TXJRHn7rh+ojNERCFyqRwJMTmhz+tJ+k0CwI6CLjX/ee4qW74FSqlq9I35w== +"@babel/plugin-proposal-numeric-separator@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.14.5.tgz#83631bf33d9a51df184c2102a069ac0c58c05f18" + integrity sha512-yiclALKe0vyZRZE0pS6RXgjUOt87GWv6FYa5zqj15PvhOGFO69R5DusPlgK/1K5dVnCtegTiWu9UaBSrLLJJBg== dependencies: - "@babel/helper-plugin-utils" "^7.12.13" + "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-numeric-separator" "^7.10.4" -"@babel/plugin-proposal-object-rest-spread@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.12.13.tgz#f93f3116381ff94bc676fdcb29d71045cd1ec011" - integrity sha512-WvA1okB/0OS/N3Ldb3sziSrXg6sRphsBgqiccfcQq7woEn5wQLNX82Oc4PlaFcdwcWHuQXAtb8ftbS8Fbsg/sg== +"@babel/plugin-proposal-object-rest-spread@^7.14.7": + version "7.14.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.14.7.tgz#5920a2b3df7f7901df0205974c0641b13fd9d363" + integrity sha512-082hsZz+sVabfmDWo1Oct1u1AgbKbUAyVgmX4otIc7bdsRgHBXwTwb3DpDmD4Eyyx6DNiuz5UAATT655k+kL5g== dependencies: - "@babel/helper-plugin-utils" "^7.12.13" - "@babel/plugin-syntax-object-rest-spread" "^7.8.0" - "@babel/plugin-transform-parameters" "^7.12.13" + "@babel/compat-data" "^7.14.7" + "@babel/helper-compilation-targets" "^7.14.5" + "@babel/helper-plugin-utils" "^7.14.5" + "@babel/plugin-syntax-object-rest-spread" "^7.8.3" + "@babel/plugin-transform-parameters" "^7.14.5" -"@babel/plugin-proposal-optional-catch-binding@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.12.13.tgz#4640520afe57728af14b4d1574ba844f263bcae5" - integrity sha512-9+MIm6msl9sHWg58NvqpNpLtuFbmpFYk37x8kgnGzAHvX35E1FyAwSUt5hIkSoWJFSAH+iwU8bJ4fcD1zKXOzg== +"@babel/plugin-proposal-optional-catch-binding@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.14.5.tgz#939dd6eddeff3a67fdf7b3f044b5347262598c3c" + integrity sha512-3Oyiixm0ur7bzO5ybNcZFlmVsygSIQgdOa7cTfOYCMY+wEPAYhZAJxi3mixKFCTCKUhQXuCTtQ1MzrpL3WT8ZQ== dependencies: - "@babel/helper-plugin-utils" "^7.12.13" - "@babel/plugin-syntax-optional-catch-binding" "^7.8.0" + "@babel/helper-plugin-utils" "^7.14.5" + "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" -"@babel/plugin-proposal-optional-chaining@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.12.13.tgz#63a7d805bc8ce626f3234ee5421a2a7fb23f66d9" - integrity sha512-0ZwjGfTcnZqyV3y9DSD1Yk3ebp+sIUpT2YDqP8hovzaNZnQq2Kd7PEqa6iOIUDBXBt7Jl3P7YAcEIL5Pz8u09Q== +"@babel/plugin-proposal-optional-chaining@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.14.5.tgz#fa83651e60a360e3f13797eef00b8d519695b603" + integrity sha512-ycz+VOzo2UbWNI1rQXxIuMOzrDdHGrI23fRiz/Si2R4kv2XZQ1BK8ccdHwehMKBlcH/joGW/tzrUmo67gbJHlQ== dependencies: - "@babel/helper-plugin-utils" "^7.12.13" - "@babel/helper-skip-transparent-expression-wrappers" "^7.12.1" - "@babel/plugin-syntax-optional-chaining" "^7.8.0" + "@babel/helper-plugin-utils" "^7.14.5" + "@babel/helper-skip-transparent-expression-wrappers" "^7.14.5" + "@babel/plugin-syntax-optional-chaining" "^7.8.3" -"@babel/plugin-proposal-private-methods@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.12.13.tgz#ea78a12554d784ecf7fc55950b752d469d9c4a71" - integrity sha512-sV0V57uUwpauixvR7s2o75LmwJI6JECwm5oPUY5beZB1nBl2i37hc7CJGqB5G+58fur5Y6ugvl3LRONk5x34rg== +"@babel/plugin-proposal-private-methods@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.14.5.tgz#37446495996b2945f30f5be5b60d5e2aa4f5792d" + integrity sha512-838DkdUA1u+QTCplatfq4B7+1lnDa/+QMI89x5WZHBcnNv+47N8QEj2k9I2MUU9xIv8XJ4XvPCviM/Dj7Uwt9g== dependencies: - "@babel/helper-create-class-features-plugin" "^7.12.13" - "@babel/helper-plugin-utils" "^7.12.13" + "@babel/helper-create-class-features-plugin" "^7.14.5" + "@babel/helper-plugin-utils" "^7.14.5" + +"@babel/plugin-proposal-private-property-in-object@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.14.5.tgz#9f65a4d0493a940b4c01f8aa9d3f1894a587f636" + integrity sha512-62EyfyA3WA0mZiF2e2IV9mc9Ghwxcg8YTu8BS4Wss4Y3PY725OmS9M0qLORbJwLqFtGh+jiE4wAmocK2CTUK2Q== + dependencies: + "@babel/helper-annotate-as-pure" "^7.14.5" + "@babel/helper-create-class-features-plugin" "^7.14.5" + "@babel/helper-plugin-utils" "^7.14.5" + "@babel/plugin-syntax-private-property-in-object" "^7.14.5" -"@babel/plugin-proposal-unicode-property-regex@^7.12.13", "@babel/plugin-proposal-unicode-property-regex@^7.4.4": +"@babel/plugin-proposal-unicode-property-regex@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.14.5.tgz#0f95ee0e757a5d647f378daa0eca7e93faa8bbe8" + integrity sha512-6axIeOU5LnY471KenAB9vI8I5j7NQ2d652hIYwVyRfgaZT5UpiqFKCuVXCDMSrU+3VFafnu2c5m3lrWIlr6A5Q== + dependencies: + "@babel/helper-create-regexp-features-plugin" "^7.14.5" + "@babel/helper-plugin-utils" "^7.14.5" + +"@babel/plugin-proposal-unicode-property-regex@^7.4.4": version "7.12.13" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.12.13.tgz#bebde51339be829c17aaaaced18641deb62b39ba" integrity sha512-XyJmZidNfofEkqFV5VC/bLabGmO5QzenPO/YOfGuEbgU+2sSwMmio3YLb4WtBgcmmdwZHyVyv8on77IUjQ5Gvg== @@ -475,7 +616,7 @@ "@babel/helper-create-regexp-features-plugin" "^7.12.13" "@babel/helper-plugin-utils" "^7.12.13" -"@babel/plugin-syntax-async-generators@^7.8.0", "@babel/plugin-syntax-async-generators@^7.8.4": +"@babel/plugin-syntax-async-generators@^7.8.4": version "7.8.4" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz#a983fb1aeb2ec3f6ed042a210f640e90e786fe0d" integrity sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw== @@ -496,7 +637,14 @@ dependencies: "@babel/helper-plugin-utils" "^7.12.13" -"@babel/plugin-syntax-dynamic-import@^7.8.0": +"@babel/plugin-syntax-class-static-block@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz#195df89b146b4b78b3bf897fd7a257c84659d406" + integrity sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw== + dependencies: + "@babel/helper-plugin-utils" "^7.14.5" + +"@babel/plugin-syntax-dynamic-import@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz#62bf98b2da3cd21d626154fc96ee5b3cb68eacb3" integrity sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ== @@ -517,7 +665,7 @@ dependencies: "@babel/helper-plugin-utils" "^7.10.4" -"@babel/plugin-syntax-json-strings@^7.8.0", "@babel/plugin-syntax-json-strings@^7.8.3": +"@babel/plugin-syntax-json-strings@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz#01ca21b668cd8218c9e640cb6dd88c5412b2c96a" integrity sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA== @@ -531,7 +679,7 @@ dependencies: "@babel/helper-plugin-utils" "^7.10.4" -"@babel/plugin-syntax-nullish-coalescing-operator@^7.8.0", "@babel/plugin-syntax-nullish-coalescing-operator@^7.8.3": +"@babel/plugin-syntax-nullish-coalescing-operator@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz#167ed70368886081f74b5c36c65a88c03b66d1a9" integrity sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ== @@ -545,33 +693,40 @@ dependencies: "@babel/helper-plugin-utils" "^7.10.4" -"@babel/plugin-syntax-object-rest-spread@^7.8.0", "@babel/plugin-syntax-object-rest-spread@^7.8.3": +"@babel/plugin-syntax-object-rest-spread@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz#60e225edcbd98a640332a2e72dd3e66f1af55871" integrity sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA== dependencies: "@babel/helper-plugin-utils" "^7.8.0" -"@babel/plugin-syntax-optional-catch-binding@^7.8.0", "@babel/plugin-syntax-optional-catch-binding@^7.8.3": +"@babel/plugin-syntax-optional-catch-binding@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz#6111a265bcfb020eb9efd0fdfd7d26402b9ed6c1" integrity sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q== dependencies: "@babel/helper-plugin-utils" "^7.8.0" -"@babel/plugin-syntax-optional-chaining@^7.8.0", "@babel/plugin-syntax-optional-chaining@^7.8.3": +"@babel/plugin-syntax-optional-chaining@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz#4f69c2ab95167e0180cd5336613f8c5788f7d48a" integrity sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg== dependencies: "@babel/helper-plugin-utils" "^7.8.0" -"@babel/plugin-syntax-top-level-await@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.12.13.tgz#c5f0fa6e249f5b739727f923540cf7a806130178" - integrity sha512-A81F9pDwyS7yM//KwbCSDqy3Uj4NMIurtplxphWxoYtNPov7cJsDkAFNNyVlIZ3jwGycVsurZ+LtOA8gZ376iQ== +"@babel/plugin-syntax-private-property-in-object@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz#0dc6671ec0ea22b6e94a1114f857970cd39de1ad" + integrity sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg== dependencies: - "@babel/helper-plugin-utils" "^7.12.13" + "@babel/helper-plugin-utils" "^7.14.5" + +"@babel/plugin-syntax-top-level-await@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz#c1cfdadc35a646240001f06138247b741c34d94c" + integrity sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw== + dependencies: + "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-typescript@^7.12.13": version "7.12.13" @@ -580,64 +735,72 @@ dependencies: "@babel/helper-plugin-utils" "^7.12.13" -"@babel/plugin-transform-arrow-functions@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.12.13.tgz#eda5670b282952100c229f8a3bd49e0f6a72e9fe" - integrity sha512-tBtuN6qtCTd+iHzVZVOMNp+L04iIJBpqkdY42tWbmjIT5wvR2kx7gxMBsyhQtFzHwBbyGi9h8J8r9HgnOpQHxg== +"@babel/plugin-transform-arrow-functions@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.14.5.tgz#f7187d9588a768dd080bf4c9ffe117ea62f7862a" + integrity sha512-KOnO0l4+tD5IfOdi4x8C1XmEIRWUjNRV8wc6K2vz/3e8yAOoZZvsRXRRIF/yo/MAOFb4QjtAw9xSxMXbSMRy8A== dependencies: - "@babel/helper-plugin-utils" "^7.12.13" + "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-async-to-generator@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.12.13.tgz#fed8c69eebf187a535bfa4ee97a614009b24f7ae" - integrity sha512-psM9QHcHaDr+HZpRuJcE1PXESuGWSCcbiGFFhhwfzdbTxaGDVzuVtdNYliAwcRo3GFg0Bc8MmI+AvIGYIJG04A== +"@babel/plugin-transform-async-to-generator@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.14.5.tgz#72c789084d8f2094acb945633943ef8443d39e67" + integrity sha512-szkbzQ0mNk0rpu76fzDdqSyPu0MuvpXgC+6rz5rpMb5OIRxdmHfQxrktL8CYolL2d8luMCZTR0DpIMIdL27IjA== dependencies: - "@babel/helper-module-imports" "^7.12.13" - "@babel/helper-plugin-utils" "^7.12.13" - "@babel/helper-remap-async-to-generator" "^7.12.13" + "@babel/helper-module-imports" "^7.14.5" + "@babel/helper-plugin-utils" "^7.14.5" + "@babel/helper-remap-async-to-generator" "^7.14.5" -"@babel/plugin-transform-block-scoped-functions@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.12.13.tgz#a9bf1836f2a39b4eb6cf09967739de29ea4bf4c4" - integrity sha512-zNyFqbc3kI/fVpqwfqkg6RvBgFpC4J18aKKMmv7KdQ/1GgREapSJAykLMVNwfRGO3BtHj3YQZl8kxCXPcVMVeg== +"@babel/plugin-transform-block-scoped-functions@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.14.5.tgz#e48641d999d4bc157a67ef336aeb54bc44fd3ad4" + integrity sha512-dtqWqdWZ5NqBX3KzsVCWfQI3A53Ft5pWFCT2eCVUftWZgjc5DpDponbIF1+c+7cSGk2wN0YK7HGL/ezfRbpKBQ== dependencies: - "@babel/helper-plugin-utils" "^7.12.13" + "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-block-scoping@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.12.13.tgz#f36e55076d06f41dfd78557ea039c1b581642e61" - integrity sha512-Pxwe0iqWJX4fOOM2kEZeUuAxHMWb9nK+9oh5d11bsLoB0xMg+mkDpt0eYuDZB7ETrY9bbcVlKUGTOGWy7BHsMQ== +"@babel/plugin-transform-block-scoping@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.14.5.tgz#8cc63e61e50f42e078e6f09be775a75f23ef9939" + integrity sha512-LBYm4ZocNgoCqyxMLoOnwpsmQ18HWTQvql64t3GvMUzLQrNoV1BDG0lNftC8QKYERkZgCCT/7J5xWGObGAyHDw== dependencies: - "@babel/helper-plugin-utils" "^7.12.13" + "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-classes@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.12.13.tgz#9728edc1838b5d62fc93ad830bd523b1fcb0e1f6" - integrity sha512-cqZlMlhCC1rVnxE5ZGMtIb896ijL90xppMiuWXcwcOAuFczynpd3KYemb91XFFPi3wJSe/OcrX9lXoowatkkxA== +"@babel/plugin-transform-classes@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.14.5.tgz#0e98e82097b38550b03b483f9b51a78de0acb2cf" + integrity sha512-J4VxKAMykM06K/64z9rwiL6xnBHgB1+FVspqvlgCdwD1KUbQNfszeKVVOMh59w3sztHYIZDgnhOC4WbdEfHFDA== dependencies: - "@babel/helper-annotate-as-pure" "^7.12.13" - "@babel/helper-function-name" "^7.12.13" - "@babel/helper-optimise-call-expression" "^7.12.13" - "@babel/helper-plugin-utils" "^7.12.13" - "@babel/helper-replace-supers" "^7.12.13" - "@babel/helper-split-export-declaration" "^7.12.13" + "@babel/helper-annotate-as-pure" "^7.14.5" + "@babel/helper-function-name" "^7.14.5" + "@babel/helper-optimise-call-expression" "^7.14.5" + "@babel/helper-plugin-utils" "^7.14.5" + "@babel/helper-replace-supers" "^7.14.5" + "@babel/helper-split-export-declaration" "^7.14.5" globals "^11.1.0" -"@babel/plugin-transform-computed-properties@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.12.13.tgz#6a210647a3d67f21f699cfd2a01333803b27339d" - integrity sha512-dDfuROUPGK1mTtLKyDPUavmj2b6kFu82SmgpztBFEO974KMjJT+Ytj3/oWsTUMBmgPcp9J5Pc1SlcAYRpJ2hRA== +"@babel/plugin-transform-computed-properties@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.14.5.tgz#1b9d78987420d11223d41195461cc43b974b204f" + integrity sha512-pWM+E4283UxaVzLb8UBXv4EIxMovU4zxT1OPnpHJcmnvyY9QbPPTKZfEj31EUvG3/EQRbYAGaYEUZ4yWOBC2xg== dependencies: - "@babel/helper-plugin-utils" "^7.12.13" + "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-destructuring@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.12.13.tgz#fc56c5176940c5b41735c677124d1d20cecc9aeb" - integrity sha512-Dn83KykIFzjhA3FDPA1z4N+yfF3btDGhjnJwxIj0T43tP0flCujnU8fKgEkf0C1biIpSv9NZegPBQ1J6jYkwvQ== +"@babel/plugin-transform-destructuring@^7.14.7": + version "7.14.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.14.7.tgz#0ad58ed37e23e22084d109f185260835e5557576" + integrity sha512-0mDE99nK+kVh3xlc5vKwB6wnP9ecuSj+zQCa/n0voENtP/zymdT4HH6QEb65wjjcbqr1Jb/7z9Qp7TF5FtwYGw== dependencies: - "@babel/helper-plugin-utils" "^7.12.13" + "@babel/helper-plugin-utils" "^7.14.5" + +"@babel/plugin-transform-dotall-regex@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.14.5.tgz#2f6bf76e46bdf8043b4e7e16cf24532629ba0c7a" + integrity sha512-loGlnBdj02MDsFaHhAIJzh7euK89lBrGIdM9EAtHFo6xKygCUGuuWe07o1oZVk287amtW1n0808sQM99aZt3gw== + dependencies: + "@babel/helper-create-regexp-features-plugin" "^7.14.5" + "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-dotall-regex@^7.12.13", "@babel/plugin-transform-dotall-regex@^7.4.4": +"@babel/plugin-transform-dotall-regex@^7.4.4": version "7.12.13" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.12.13.tgz#3f1601cc29905bfcb67f53910f197aeafebb25ad" integrity sha512-foDrozE65ZFdUC2OfgeOCrEPTxdB3yjqxpXh8CH+ipd9CHd4s/iq81kcUpyH8ACGNEPdFqbtzfgzbT/ZGlbDeQ== @@ -645,137 +808,137 @@ "@babel/helper-create-regexp-features-plugin" "^7.12.13" "@babel/helper-plugin-utils" "^7.12.13" -"@babel/plugin-transform-duplicate-keys@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.12.13.tgz#6f06b87a8b803fd928e54b81c258f0a0033904de" - integrity sha512-NfADJiiHdhLBW3pulJlJI2NB0t4cci4WTZ8FtdIuNc2+8pslXdPtRRAEWqUY+m9kNOk2eRYbTAOipAxlrOcwwQ== +"@babel/plugin-transform-duplicate-keys@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.14.5.tgz#365a4844881bdf1501e3a9f0270e7f0f91177954" + integrity sha512-iJjbI53huKbPDAsJ8EmVmvCKeeq21bAze4fu9GBQtSLqfvzj2oRuHVx4ZkDwEhg1htQ+5OBZh/Ab0XDf5iBZ7A== dependencies: - "@babel/helper-plugin-utils" "^7.12.13" + "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-exponentiation-operator@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.12.13.tgz#4d52390b9a273e651e4aba6aee49ef40e80cd0a1" - integrity sha512-fbUelkM1apvqez/yYx1/oICVnGo2KM5s63mhGylrmXUxK/IAXSIf87QIxVfZldWf4QsOafY6vV3bX8aMHSvNrA== +"@babel/plugin-transform-exponentiation-operator@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.14.5.tgz#5154b8dd6a3dfe6d90923d61724bd3deeb90b493" + integrity sha512-jFazJhMBc9D27o9jDnIE5ZErI0R0m7PbKXVq77FFvqFbzvTMuv8jaAwLZ5PviOLSFttqKIW0/wxNSDbjLk0tYA== dependencies: - "@babel/helper-builder-binary-assignment-operator-visitor" "^7.12.13" - "@babel/helper-plugin-utils" "^7.12.13" + "@babel/helper-builder-binary-assignment-operator-visitor" "^7.14.5" + "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-for-of@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.12.13.tgz#561ff6d74d9e1c8879cb12dbaf4a14cd29d15cf6" - integrity sha512-xCbdgSzXYmHGyVX3+BsQjcd4hv4vA/FDy7Kc8eOpzKmBBPEOTurt0w5fCRQaGl+GSBORKgJdstQ1rHl4jbNseQ== +"@babel/plugin-transform-for-of@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.14.5.tgz#dae384613de8f77c196a8869cbf602a44f7fc0eb" + integrity sha512-CfmqxSUZzBl0rSjpoQSFoR9UEj3HzbGuGNL21/iFTmjb5gFggJp3ph0xR1YBhexmLoKRHzgxuFvty2xdSt6gTA== dependencies: - "@babel/helper-plugin-utils" "^7.12.13" + "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-function-name@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.12.13.tgz#bb024452f9aaed861d374c8e7a24252ce3a50051" - integrity sha512-6K7gZycG0cmIwwF7uMK/ZqeCikCGVBdyP2J5SKNCXO5EOHcqi+z7Jwf8AmyDNcBgxET8DrEtCt/mPKPyAzXyqQ== +"@babel/plugin-transform-function-name@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.14.5.tgz#e81c65ecb900746d7f31802f6bed1f52d915d6f2" + integrity sha512-vbO6kv0fIzZ1GpmGQuvbwwm+O4Cbm2NrPzwlup9+/3fdkuzo1YqOZcXw26+YUJB84Ja7j9yURWposEHLYwxUfQ== dependencies: - "@babel/helper-function-name" "^7.12.13" - "@babel/helper-plugin-utils" "^7.12.13" + "@babel/helper-function-name" "^7.14.5" + "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-literals@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.12.13.tgz#2ca45bafe4a820197cf315794a4d26560fe4bdb9" - integrity sha512-FW+WPjSR7hiUxMcKqyNjP05tQ2kmBCdpEpZHY1ARm96tGQCCBvXKnpjILtDplUnJ/eHZ0lALLM+d2lMFSpYJrQ== +"@babel/plugin-transform-literals@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.14.5.tgz#41d06c7ff5d4d09e3cf4587bd3ecf3930c730f78" + integrity sha512-ql33+epql2F49bi8aHXxvLURHkxJbSmMKl9J5yHqg4PLtdE6Uc48CH1GS6TQvZ86eoB/ApZXwm7jlA+B3kra7A== dependencies: - "@babel/helper-plugin-utils" "^7.12.13" + "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-member-expression-literals@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.12.13.tgz#5ffa66cd59b9e191314c9f1f803b938e8c081e40" - integrity sha512-kxLkOsg8yir4YeEPHLuO2tXP9R/gTjpuTOjshqSpELUN3ZAg2jfDnKUvzzJxObun38sw3wm4Uu69sX/zA7iRvg== +"@babel/plugin-transform-member-expression-literals@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.14.5.tgz#b39cd5212a2bf235a617d320ec2b48bcc091b8a7" + integrity sha512-WkNXxH1VXVTKarWFqmso83xl+2V3Eo28YY5utIkbsmXoItO8Q3aZxN4BTS2k0hz9dGUloHK26mJMyQEYfkn/+Q== dependencies: - "@babel/helper-plugin-utils" "^7.12.13" + "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-modules-amd@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.12.13.tgz#43db16249b274ee2e551e2422090aa1c47692d56" - integrity sha512-JHLOU0o81m5UqG0Ulz/fPC68/v+UTuGTWaZBUwpEk1fYQ1D9LfKV6MPn4ttJKqRo5Lm460fkzjLTL4EHvCprvA== +"@babel/plugin-transform-modules-amd@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.14.5.tgz#4fd9ce7e3411cb8b83848480b7041d83004858f7" + integrity sha512-3lpOU8Vxmp3roC4vzFpSdEpGUWSMsHFreTWOMMLzel2gNGfHE5UWIh/LN6ghHs2xurUp4jRFYMUIZhuFbody1g== dependencies: - "@babel/helper-module-transforms" "^7.12.13" - "@babel/helper-plugin-utils" "^7.12.13" + "@babel/helper-module-transforms" "^7.14.5" + "@babel/helper-plugin-utils" "^7.14.5" babel-plugin-dynamic-import-node "^2.3.3" -"@babel/plugin-transform-modules-commonjs@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.12.13.tgz#5043b870a784a8421fa1fd9136a24f294da13e50" - integrity sha512-OGQoeVXVi1259HjuoDnsQMlMkT9UkZT9TpXAsqWplS/M0N1g3TJAn/ByOCeQu7mfjc5WpSsRU+jV1Hd89ts0kQ== +"@babel/plugin-transform-modules-commonjs@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.14.5.tgz#7aaee0ea98283de94da98b28f8c35701429dad97" + integrity sha512-en8GfBtgnydoao2PS+87mKyw62k02k7kJ9ltbKe0fXTHrQmG6QZZflYuGI1VVG7sVpx4E1n7KBpNlPb8m78J+A== dependencies: - "@babel/helper-module-transforms" "^7.12.13" - "@babel/helper-plugin-utils" "^7.12.13" - "@babel/helper-simple-access" "^7.12.13" + "@babel/helper-module-transforms" "^7.14.5" + "@babel/helper-plugin-utils" "^7.14.5" + "@babel/helper-simple-access" "^7.14.5" babel-plugin-dynamic-import-node "^2.3.3" -"@babel/plugin-transform-modules-systemjs@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.12.13.tgz#351937f392c7f07493fc79b2118201d50404a3c5" - integrity sha512-aHfVjhZ8QekaNF/5aNdStCGzwTbU7SI5hUybBKlMzqIMC7w7Ho8hx5a4R/DkTHfRfLwHGGxSpFt9BfxKCoXKoA== +"@babel/plugin-transform-modules-systemjs@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.14.5.tgz#c75342ef8b30dcde4295d3401aae24e65638ed29" + integrity sha512-mNMQdvBEE5DcMQaL5LbzXFMANrQjd2W7FPzg34Y4yEz7dBgdaC+9B84dSO+/1Wba98zoDbInctCDo4JGxz1VYA== dependencies: - "@babel/helper-hoist-variables" "^7.12.13" - "@babel/helper-module-transforms" "^7.12.13" - "@babel/helper-plugin-utils" "^7.12.13" - "@babel/helper-validator-identifier" "^7.12.11" + "@babel/helper-hoist-variables" "^7.14.5" + "@babel/helper-module-transforms" "^7.14.5" + "@babel/helper-plugin-utils" "^7.14.5" + "@babel/helper-validator-identifier" "^7.14.5" babel-plugin-dynamic-import-node "^2.3.3" -"@babel/plugin-transform-modules-umd@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.12.13.tgz#26c66f161d3456674e344b4b1255de4d530cfb37" - integrity sha512-BgZndyABRML4z6ibpi7Z98m4EVLFI9tVsZDADC14AElFaNHHBcJIovflJ6wtCqFxwy2YJ1tJhGRsr0yLPKoN+w== +"@babel/plugin-transform-modules-umd@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.14.5.tgz#fb662dfee697cce274a7cda525190a79096aa6e0" + integrity sha512-RfPGoagSngC06LsGUYyM9QWSXZ8MysEjDJTAea1lqRjNECE3y0qIJF/qbvJxc4oA4s99HumIMdXOrd+TdKaAAA== dependencies: - "@babel/helper-module-transforms" "^7.12.13" - "@babel/helper-plugin-utils" "^7.12.13" + "@babel/helper-module-transforms" "^7.14.5" + "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-named-capturing-groups-regex@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.12.13.tgz#2213725a5f5bbbe364b50c3ba5998c9599c5c9d9" - integrity sha512-Xsm8P2hr5hAxyYblrfACXpQKdQbx4m2df9/ZZSQ8MAhsadw06+jW7s9zsSw6he+mJZXRlVMyEnVktJo4zjk1WA== +"@babel/plugin-transform-named-capturing-groups-regex@^7.14.7": + version "7.14.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.14.7.tgz#60c06892acf9df231e256c24464bfecb0908fd4e" + integrity sha512-DTNOTaS7TkW97xsDMrp7nycUVh6sn/eq22VaxWfEdzuEbRsiaOU0pqU7DlyUGHVsbQbSghvjKRpEl+nUCKGQSg== dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.12.13" + "@babel/helper-create-regexp-features-plugin" "^7.14.5" -"@babel/plugin-transform-new-target@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.12.13.tgz#e22d8c3af24b150dd528cbd6e685e799bf1c351c" - integrity sha512-/KY2hbLxrG5GTQ9zzZSc3xWiOy379pIETEhbtzwZcw9rvuaVV4Fqy7BYGYOWZnaoXIQYbbJ0ziXLa/sKcGCYEQ== +"@babel/plugin-transform-new-target@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.14.5.tgz#31bdae8b925dc84076ebfcd2a9940143aed7dbf8" + integrity sha512-Nx054zovz6IIRWEB49RDRuXGI4Gy0GMgqG0cII9L3MxqgXz/+rgII+RU58qpo4g7tNEx1jG7rRVH4ihZoP4esQ== dependencies: - "@babel/helper-plugin-utils" "^7.12.13" + "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-object-super@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.12.13.tgz#b4416a2d63b8f7be314f3d349bd55a9c1b5171f7" - integrity sha512-JzYIcj3XtYspZDV8j9ulnoMPZZnF/Cj0LUxPOjR89BdBVx+zYJI9MdMIlUZjbXDX+6YVeS6I3e8op+qQ3BYBoQ== +"@babel/plugin-transform-object-super@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.14.5.tgz#d0b5faeac9e98597a161a9cf78c527ed934cdc45" + integrity sha512-MKfOBWzK0pZIrav9z/hkRqIk/2bTv9qvxHzPQc12RcVkMOzpIKnFCNYJip00ssKWYkd8Sf5g0Wr7pqJ+cmtuFg== dependencies: - "@babel/helper-plugin-utils" "^7.12.13" - "@babel/helper-replace-supers" "^7.12.13" + "@babel/helper-plugin-utils" "^7.14.5" + "@babel/helper-replace-supers" "^7.14.5" -"@babel/plugin-transform-parameters@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.12.13.tgz#461e76dfb63c2dfd327b8a008a9e802818ce9853" - integrity sha512-e7QqwZalNiBRHCpJg/P8s/VJeSRYgmtWySs1JwvfwPqhBbiWfOcHDKdeAi6oAyIimoKWBlwc8oTgbZHdhCoVZA== +"@babel/plugin-transform-parameters@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.14.5.tgz#49662e86a1f3ddccac6363a7dfb1ff0a158afeb3" + integrity sha512-Tl7LWdr6HUxTmzQtzuU14SqbgrSKmaR77M0OKyq4njZLQTPfOvzblNKyNkGwOfEFCEx7KeYHQHDI0P3F02IVkA== dependencies: - "@babel/helper-plugin-utils" "^7.12.13" + "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-property-literals@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.12.13.tgz#4e6a9e37864d8f1b3bc0e2dce7bf8857db8b1a81" - integrity sha512-nqVigwVan+lR+g8Fj8Exl0UQX2kymtjcWfMOYM1vTYEKujeyv2SkMgazf2qNcK7l4SDiKyTA/nHCPqL4e2zo1A== +"@babel/plugin-transform-property-literals@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.14.5.tgz#0ddbaa1f83db3606f1cdf4846fa1dfb473458b34" + integrity sha512-r1uilDthkgXW8Z1vJz2dKYLV1tuw2xsbrp3MrZmD99Wh9vsfKoob+JTgri5VUb/JqyKRXotlOtwgu4stIYCmnw== dependencies: - "@babel/helper-plugin-utils" "^7.12.13" + "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-regenerator@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.12.13.tgz#b628bcc9c85260ac1aeb05b45bde25210194a2f5" - integrity sha512-lxb2ZAvSLyJ2PEe47hoGWPmW22v7CtSl9jW8mingV4H2sEX/JOcrAj2nPuGWi56ERUm2bUpjKzONAuT6HCn2EA== +"@babel/plugin-transform-regenerator@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.14.5.tgz#9676fd5707ed28f522727c5b3c0aa8544440b04f" + integrity sha512-NVIY1W3ITDP5xQl50NgTKlZ0GrotKtLna08/uGY6ErQt6VEQZXla86x/CTddm5gZdcr+5GSsvMeTmWA5Ii6pkg== dependencies: regenerator-transform "^0.14.2" -"@babel/plugin-transform-reserved-words@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.12.13.tgz#7d9988d4f06e0fe697ea1d9803188aa18b472695" - integrity sha512-xhUPzDXxZN1QfiOy/I5tyye+TRz6lA7z6xaT4CLOjPRMVg1ldRf0LHw0TDBpYL4vG78556WuHdyO9oi5UmzZBg== +"@babel/plugin-transform-reserved-words@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.14.5.tgz#c44589b661cfdbef8d4300dcc7469dffa92f8304" + integrity sha512-cv4F2rv1nD4qdexOGsRQXJrOcyb5CrgjUH9PKrrtyhSDBNWGxd0UIitjyJiWagS+EbUGjG++22mGH1Pub8D6Vg== dependencies: - "@babel/helper-plugin-utils" "^7.12.13" + "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-transform-runtime@^7.9.0": version "7.12.15" @@ -786,139 +949,146 @@ "@babel/helper-plugin-utils" "^7.12.13" semver "^5.5.1" -"@babel/plugin-transform-shorthand-properties@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.12.13.tgz#db755732b70c539d504c6390d9ce90fe64aff7ad" - integrity sha512-xpL49pqPnLtf0tVluuqvzWIgLEhuPpZzvs2yabUHSKRNlN7ScYU7aMlmavOeyXJZKgZKQRBlh8rHbKiJDraTSw== +"@babel/plugin-transform-shorthand-properties@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.14.5.tgz#97f13855f1409338d8cadcbaca670ad79e091a58" + integrity sha512-xLucks6T1VmGsTB+GWK5Pl9Jl5+nRXD1uoFdA5TSO6xtiNjtXTjKkmPdFXVLGlK5A2/or/wQMKfmQ2Y0XJfn5g== dependencies: - "@babel/helper-plugin-utils" "^7.12.13" + "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-spread@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.12.13.tgz#ca0d5645abbd560719c354451b849f14df4a7949" - integrity sha512-dUCrqPIowjqk5pXsx1zPftSq4sT0aCeZVAxhdgs3AMgyaDmoUT0G+5h3Dzja27t76aUEIJWlFgPJqJ/d4dbTtg== +"@babel/plugin-transform-spread@^7.14.6": + version "7.14.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.14.6.tgz#6bd40e57fe7de94aa904851963b5616652f73144" + integrity sha512-Zr0x0YroFJku7n7+/HH3A2eIrGMjbmAIbJSVv0IZ+t3U2WUQUA64S/oeied2e+MaGSjmt4alzBCsK9E8gh+fag== dependencies: - "@babel/helper-plugin-utils" "^7.12.13" - "@babel/helper-skip-transparent-expression-wrappers" "^7.12.1" + "@babel/helper-plugin-utils" "^7.14.5" + "@babel/helper-skip-transparent-expression-wrappers" "^7.14.5" -"@babel/plugin-transform-sticky-regex@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.12.13.tgz#760ffd936face73f860ae646fb86ee82f3d06d1f" - integrity sha512-Jc3JSaaWT8+fr7GRvQP02fKDsYk4K/lYwWq38r/UGfaxo89ajud321NH28KRQ7xy1Ybc0VUE5Pz8psjNNDUglg== +"@babel/plugin-transform-sticky-regex@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.14.5.tgz#5b617542675e8b7761294381f3c28c633f40aeb9" + integrity sha512-Z7F7GyvEMzIIbwnziAZmnSNpdijdr4dWt+FJNBnBLz5mwDFkqIXU9wmBcWWad3QeJF5hMTkRe4dAq2sUZiG+8A== dependencies: - "@babel/helper-plugin-utils" "^7.12.13" + "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-template-literals@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.12.13.tgz#655037b07ebbddaf3b7752f55d15c2fd6f5aa865" - integrity sha512-arIKlWYUgmNsF28EyfmiQHJLJFlAJNYkuQO10jL46ggjBpeb2re1P9K9YGxNJB45BqTbaslVysXDYm/g3sN/Qg== +"@babel/plugin-transform-template-literals@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.14.5.tgz#a5f2bc233937d8453885dc736bdd8d9ffabf3d93" + integrity sha512-22btZeURqiepOfuy/VkFr+zStqlujWaarpMErvay7goJS6BWwdd6BY9zQyDLDa4x2S3VugxFb162IZ4m/S/+Gg== dependencies: - "@babel/helper-plugin-utils" "^7.12.13" + "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-typeof-symbol@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.12.13.tgz#785dd67a1f2ea579d9c2be722de8c84cb85f5a7f" - integrity sha512-eKv/LmUJpMnu4npgfvs3LiHhJua5fo/CysENxa45YCQXZwKnGCQKAg87bvoqSW1fFT+HA32l03Qxsm8ouTY3ZQ== +"@babel/plugin-transform-typeof-symbol@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.14.5.tgz#39af2739e989a2bd291bf6b53f16981423d457d4" + integrity sha512-lXzLD30ffCWseTbMQzrvDWqljvZlHkXU+CnseMhkMNqU1sASnCsz3tSzAaH3vCUXb9PHeUb90ZT1BdFTm1xxJw== dependencies: - "@babel/helper-plugin-utils" "^7.12.13" + "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-typescript@^7.13.0": - version "7.13.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.13.0.tgz#4a498e1f3600342d2a9e61f60131018f55774853" - integrity sha512-elQEwluzaU8R8dbVuW2Q2Y8Nznf7hnjM7+DSCd14Lo5fF63C9qNLbwZYbmZrtV9/ySpSUpkRpQXvJb6xyu4hCQ== +"@babel/plugin-transform-typescript@^7.12.13": + version "7.12.13" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.12.13.tgz#8bcb5dd79cb8bba690d6920e19992d9228dfed48" + integrity sha512-z1VWskPJxK9tfxoYvePWvzSJC+4pxXr8ArmRm5ofqgi+mwpKg6lvtomkIngBYMJVnKhsFYVysCQLDn//v2RHcg== dependencies: - "@babel/helper-create-class-features-plugin" "^7.13.0" - "@babel/helper-plugin-utils" "^7.13.0" + "@babel/helper-create-class-features-plugin" "^7.12.13" + "@babel/helper-plugin-utils" "^7.12.13" "@babel/plugin-syntax-typescript" "^7.12.13" -"@babel/plugin-transform-unicode-escapes@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.12.13.tgz#840ced3b816d3b5127dd1d12dcedc5dead1a5e74" - integrity sha512-0bHEkdwJ/sN/ikBHfSmOXPypN/beiGqjo+o4/5K+vxEFNPRPdImhviPakMKG4x96l85emoa0Z6cDflsdBusZbw== +"@babel/plugin-transform-unicode-escapes@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.14.5.tgz#9d4bd2a681e3c5d7acf4f57fa9e51175d91d0c6b" + integrity sha512-crTo4jATEOjxj7bt9lbYXcBAM3LZaUrbP2uUdxb6WIorLmjNKSpHfIybgY4B8SRpbf8tEVIWH3Vtm7ayCrKocA== dependencies: - "@babel/helper-plugin-utils" "^7.12.13" + "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-unicode-regex@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.12.13.tgz#b52521685804e155b1202e83fc188d34bb70f5ac" - integrity sha512-mDRzSNY7/zopwisPZ5kM9XKCfhchqIYwAKRERtEnhYscZB79VRekuRSoYbN0+KVe3y8+q1h6A4svXtP7N+UoCA== +"@babel/plugin-transform-unicode-regex@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.14.5.tgz#4cd09b6c8425dd81255c7ceb3fb1836e7414382e" + integrity sha512-UygduJpC5kHeCiRw/xDVzC+wj8VaYSoKl5JNVmbP7MadpNinAm3SvZCxZ42H37KZBKztz46YC73i9yV34d0Tzw== dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.12.13" - "@babel/helper-plugin-utils" "^7.12.13" + "@babel/helper-create-regexp-features-plugin" "^7.14.5" + "@babel/helper-plugin-utils" "^7.14.5" -"@babel/preset-env@^7.7.6": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.12.13.tgz#3aa2d09cf7d255177538dff292ac9af29ad46525" - integrity sha512-JUVlizG8SoFTz4LmVUL8++aVwzwxcvey3N0j1tRbMAXVEy95uQ/cnEkmEKHN00Bwq4voAV3imQGnQvpkLAxsrw== +"@babel/preset-env@^7.14.7": + version "7.14.7" + resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.14.7.tgz#5c70b22d4c2d893b03d8c886a5c17422502b932a" + integrity sha512-itOGqCKLsSUl0Y+1nSfhbuuOlTs0MJk2Iv7iSH+XT/mR8U1zRLO7NjWlYXB47yhK4J/7j+HYty/EhFZDYKa/VA== dependencies: - "@babel/compat-data" "^7.12.13" - "@babel/helper-compilation-targets" "^7.12.13" - "@babel/helper-module-imports" "^7.12.13" - "@babel/helper-plugin-utils" "^7.12.13" - "@babel/helper-validator-option" "^7.12.11" - "@babel/plugin-proposal-async-generator-functions" "^7.12.13" - "@babel/plugin-proposal-class-properties" "^7.12.13" - "@babel/plugin-proposal-dynamic-import" "^7.12.1" - "@babel/plugin-proposal-export-namespace-from" "^7.12.13" - "@babel/plugin-proposal-json-strings" "^7.12.13" - "@babel/plugin-proposal-logical-assignment-operators" "^7.12.13" - "@babel/plugin-proposal-nullish-coalescing-operator" "^7.12.13" - "@babel/plugin-proposal-numeric-separator" "^7.12.13" - "@babel/plugin-proposal-object-rest-spread" "^7.12.13" - "@babel/plugin-proposal-optional-catch-binding" "^7.12.13" - "@babel/plugin-proposal-optional-chaining" "^7.12.13" - "@babel/plugin-proposal-private-methods" "^7.12.13" - "@babel/plugin-proposal-unicode-property-regex" "^7.12.13" - "@babel/plugin-syntax-async-generators" "^7.8.0" + "@babel/compat-data" "^7.14.7" + "@babel/helper-compilation-targets" "^7.14.5" + "@babel/helper-plugin-utils" "^7.14.5" + "@babel/helper-validator-option" "^7.14.5" + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining" "^7.14.5" + "@babel/plugin-proposal-async-generator-functions" "^7.14.7" + "@babel/plugin-proposal-class-properties" "^7.14.5" + "@babel/plugin-proposal-class-static-block" "^7.14.5" + "@babel/plugin-proposal-dynamic-import" "^7.14.5" + "@babel/plugin-proposal-export-namespace-from" "^7.14.5" + "@babel/plugin-proposal-json-strings" "^7.14.5" + "@babel/plugin-proposal-logical-assignment-operators" "^7.14.5" + "@babel/plugin-proposal-nullish-coalescing-operator" "^7.14.5" + "@babel/plugin-proposal-numeric-separator" "^7.14.5" + "@babel/plugin-proposal-object-rest-spread" "^7.14.7" + "@babel/plugin-proposal-optional-catch-binding" "^7.14.5" + "@babel/plugin-proposal-optional-chaining" "^7.14.5" + "@babel/plugin-proposal-private-methods" "^7.14.5" + "@babel/plugin-proposal-private-property-in-object" "^7.14.5" + "@babel/plugin-proposal-unicode-property-regex" "^7.14.5" + "@babel/plugin-syntax-async-generators" "^7.8.4" "@babel/plugin-syntax-class-properties" "^7.12.13" - "@babel/plugin-syntax-dynamic-import" "^7.8.0" + "@babel/plugin-syntax-class-static-block" "^7.14.5" + "@babel/plugin-syntax-dynamic-import" "^7.8.3" "@babel/plugin-syntax-export-namespace-from" "^7.8.3" - "@babel/plugin-syntax-json-strings" "^7.8.0" + "@babel/plugin-syntax-json-strings" "^7.8.3" "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4" - "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.0" + "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" "@babel/plugin-syntax-numeric-separator" "^7.10.4" - "@babel/plugin-syntax-object-rest-spread" "^7.8.0" - "@babel/plugin-syntax-optional-catch-binding" "^7.8.0" - "@babel/plugin-syntax-optional-chaining" "^7.8.0" - "@babel/plugin-syntax-top-level-await" "^7.12.13" - "@babel/plugin-transform-arrow-functions" "^7.12.13" - "@babel/plugin-transform-async-to-generator" "^7.12.13" - "@babel/plugin-transform-block-scoped-functions" "^7.12.13" - "@babel/plugin-transform-block-scoping" "^7.12.13" - "@babel/plugin-transform-classes" "^7.12.13" - "@babel/plugin-transform-computed-properties" "^7.12.13" - "@babel/plugin-transform-destructuring" "^7.12.13" - "@babel/plugin-transform-dotall-regex" "^7.12.13" - "@babel/plugin-transform-duplicate-keys" "^7.12.13" - "@babel/plugin-transform-exponentiation-operator" "^7.12.13" - "@babel/plugin-transform-for-of" "^7.12.13" - "@babel/plugin-transform-function-name" "^7.12.13" - "@babel/plugin-transform-literals" "^7.12.13" - "@babel/plugin-transform-member-expression-literals" "^7.12.13" - "@babel/plugin-transform-modules-amd" "^7.12.13" - "@babel/plugin-transform-modules-commonjs" "^7.12.13" - "@babel/plugin-transform-modules-systemjs" "^7.12.13" - "@babel/plugin-transform-modules-umd" "^7.12.13" - "@babel/plugin-transform-named-capturing-groups-regex" "^7.12.13" - "@babel/plugin-transform-new-target" "^7.12.13" - "@babel/plugin-transform-object-super" "^7.12.13" - "@babel/plugin-transform-parameters" "^7.12.13" - "@babel/plugin-transform-property-literals" "^7.12.13" - "@babel/plugin-transform-regenerator" "^7.12.13" - "@babel/plugin-transform-reserved-words" "^7.12.13" - "@babel/plugin-transform-shorthand-properties" "^7.12.13" - "@babel/plugin-transform-spread" "^7.12.13" - "@babel/plugin-transform-sticky-regex" "^7.12.13" - "@babel/plugin-transform-template-literals" "^7.12.13" - "@babel/plugin-transform-typeof-symbol" "^7.12.13" - "@babel/plugin-transform-unicode-escapes" "^7.12.13" - "@babel/plugin-transform-unicode-regex" "^7.12.13" - "@babel/preset-modules" "^0.1.3" - "@babel/types" "^7.12.13" - core-js-compat "^3.8.0" - semver "^5.5.0" + "@babel/plugin-syntax-object-rest-spread" "^7.8.3" + "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" + "@babel/plugin-syntax-optional-chaining" "^7.8.3" + "@babel/plugin-syntax-private-property-in-object" "^7.14.5" + "@babel/plugin-syntax-top-level-await" "^7.14.5" + "@babel/plugin-transform-arrow-functions" "^7.14.5" + "@babel/plugin-transform-async-to-generator" "^7.14.5" + "@babel/plugin-transform-block-scoped-functions" "^7.14.5" + "@babel/plugin-transform-block-scoping" "^7.14.5" + "@babel/plugin-transform-classes" "^7.14.5" + "@babel/plugin-transform-computed-properties" "^7.14.5" + "@babel/plugin-transform-destructuring" "^7.14.7" + "@babel/plugin-transform-dotall-regex" "^7.14.5" + "@babel/plugin-transform-duplicate-keys" "^7.14.5" + "@babel/plugin-transform-exponentiation-operator" "^7.14.5" + "@babel/plugin-transform-for-of" "^7.14.5" + "@babel/plugin-transform-function-name" "^7.14.5" + "@babel/plugin-transform-literals" "^7.14.5" + "@babel/plugin-transform-member-expression-literals" "^7.14.5" + "@babel/plugin-transform-modules-amd" "^7.14.5" + "@babel/plugin-transform-modules-commonjs" "^7.14.5" + "@babel/plugin-transform-modules-systemjs" "^7.14.5" + "@babel/plugin-transform-modules-umd" "^7.14.5" + "@babel/plugin-transform-named-capturing-groups-regex" "^7.14.7" + "@babel/plugin-transform-new-target" "^7.14.5" + "@babel/plugin-transform-object-super" "^7.14.5" + "@babel/plugin-transform-parameters" "^7.14.5" + "@babel/plugin-transform-property-literals" "^7.14.5" + "@babel/plugin-transform-regenerator" "^7.14.5" + "@babel/plugin-transform-reserved-words" "^7.14.5" + "@babel/plugin-transform-shorthand-properties" "^7.14.5" + "@babel/plugin-transform-spread" "^7.14.6" + "@babel/plugin-transform-sticky-regex" "^7.14.5" + "@babel/plugin-transform-template-literals" "^7.14.5" + "@babel/plugin-transform-typeof-symbol" "^7.14.5" + "@babel/plugin-transform-unicode-escapes" "^7.14.5" + "@babel/plugin-transform-unicode-regex" "^7.14.5" + "@babel/preset-modules" "^0.1.4" + "@babel/types" "^7.14.5" + babel-plugin-polyfill-corejs2 "^0.2.2" + babel-plugin-polyfill-corejs3 "^0.2.2" + babel-plugin-polyfill-regenerator "^0.2.2" + core-js-compat "^3.15.0" + semver "^6.3.0" -"@babel/preset-modules@^0.1.3": +"@babel/preset-modules@^0.1.4": version "0.1.4" resolved "https://registry.yarnpkg.com/@babel/preset-modules/-/preset-modules-0.1.4.tgz#362f2b68c662842970fdb5e254ffc8fc1c2e415e" integrity sha512-J36NhwnfdzpmH41M1DrnkkgAqhZaqr/NBdPfQ677mLzlaXo+oDiv1deyCDtgAhz8p328otdob0Du7+xgHGZbKg== @@ -930,22 +1100,38 @@ esutils "^2.0.2" "@babel/preset-typescript@^7.9.0": - version "7.13.0" - resolved "https://registry.yarnpkg.com/@babel/preset-typescript/-/preset-typescript-7.13.0.tgz#ab107e5f050609d806fbb039bec553b33462c60a" - integrity sha512-LXJwxrHy0N3f6gIJlYbLta1D9BDtHpQeqwzM0LIfjDlr6UE/D5Mc7W4iDiQzaE+ks0sTjT26ArcHWnJVt0QiHw== + version "7.12.13" + resolved "https://registry.yarnpkg.com/@babel/preset-typescript/-/preset-typescript-7.12.13.tgz#c859c7c075c531d2cc34c2516b214e5d884efe5c" + integrity sha512-gYry7CeXwD2wtw5qHzrtzKaShEhOfTmKb4i0ZxeYBcBosN5VuAudsNbjX7Oj5EAfQ3K4s4HsVMQRRcqGsPvs2A== dependencies: - "@babel/helper-plugin-utils" "^7.13.0" - "@babel/helper-validator-option" "^7.12.17" - "@babel/plugin-transform-typescript" "^7.13.0" + "@babel/helper-plugin-utils" "^7.12.13" + "@babel/helper-validator-option" "^7.12.11" + "@babel/plugin-transform-typescript" "^7.12.13" -"@babel/runtime@^7.0.0", "@babel/runtime@^7.14.0", "@babel/runtime@^7.8.4": - version "7.14.0" - resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.14.0.tgz#46794bc20b612c5f75e62dd071e24dfd95f1cbe6" - integrity sha512-JELkvo/DlpNdJ7dlyw/eY7E0suy5i5GQH+Vlxaq1nsNJ+H7f4Vtv3jMeCEgRhZZQFXTjldYfQgv2qmM6M1v5wA== +"@babel/runtime@^7.13.10": + version "7.13.10" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.13.10.tgz#47d42a57b6095f4468da440388fdbad8bebf0d7d" + integrity sha512-4QPkjJq6Ns3V/RgpEahRk+AGfL0eO6RHHtTWoNNr5mO49G6B5+X6d6THgWEAvTrznU5xYpbAlVKRYcsCgh/Akw== + dependencies: + regenerator-runtime "^0.13.4" + +"@babel/runtime@^7.8.4": + version "7.12.13" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.12.13.tgz#0a21452352b02542db0ffb928ac2d3ca7cb6d66d" + integrity sha512-8+3UMPBrjFa/6TtKi/7sehPKqfAm4g6K+YQjyyFOLUTxzOngcRZTlAVY8sc2CORJYqdHQY8gRPHmn+qo15rCBw== dependencies: regenerator-runtime "^0.13.4" -"@babel/template@^7.12.13", "@babel/template@^7.14.5", "@babel/template@^7.3.3": +"@babel/template@^7.12.13", "@babel/template@^7.3.3": + version "7.12.13" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.12.13.tgz#530265be8a2589dbb37523844c5bcb55947fb327" + integrity sha512-/7xxiGA57xMo/P2GVvdEumr8ONhFOhfgq2ihK3h1e6THqzTAkHbkXgB0xI9yeTfIUoH3+oAeHhqm/I43OTbbjA== + dependencies: + "@babel/code-frame" "^7.12.13" + "@babel/parser" "^7.12.13" + "@babel/types" "^7.12.13" + +"@babel/template@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.14.5.tgz#a9bc9d8b33354ff6e55a9c60d1109200a68974f4" integrity sha512-6Z3Po85sfxRGachLULUhOmvAaOo7xCvqGQtxINai2mEGPFm6pQ4z5QInFnUrRpfoSV60BnjyF5F3c+15fxFV1g== @@ -954,22 +1140,46 @@ "@babel/parser" "^7.14.5" "@babel/types" "^7.14.5" -"@babel/traverse@^7.1.0", "@babel/traverse@^7.12.13", "@babel/traverse@^7.13.0", "@babel/traverse@^7.14.5": - version "7.14.5" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.14.5.tgz#c111b0f58afab4fea3d3385a406f692748c59870" - integrity sha512-G3BiS15vevepdmFqmUc9X+64y0viZYygubAMO8SvBmKARuF6CPSZtH4Ng9vi/lrWlZFGe3FWdXNy835akH8Glg== +"@babel/traverse@^7.1.0", "@babel/traverse@^7.12.13": + version "7.12.13" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.12.13.tgz#689f0e4b4c08587ad26622832632735fb8c4e0c0" + integrity sha512-3Zb4w7eE/OslI0fTp8c7b286/cQps3+vdLW3UcwC8VSJC6GbKn55aeVVu2QJNuCDoeKyptLOFrPq8WqZZBodyA== + dependencies: + "@babel/code-frame" "^7.12.13" + "@babel/generator" "^7.12.13" + "@babel/helper-function-name" "^7.12.13" + "@babel/helper-split-export-declaration" "^7.12.13" + "@babel/parser" "^7.12.13" + "@babel/types" "^7.12.13" + debug "^4.1.0" + globals "^11.1.0" + lodash "^4.17.19" + +"@babel/traverse@^7.13.0", "@babel/traverse@^7.14.5": + version "7.14.7" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.14.7.tgz#64007c9774cfdc3abd23b0780bc18a3ce3631753" + integrity sha512-9vDr5NzHu27wgwejuKL7kIOm4bwEtaPQ4Z6cpCmjSuaRqpH/7xc4qcGEscwMqlkwgcXl6MvqoAjZkQ24uSdIZQ== dependencies: "@babel/code-frame" "^7.14.5" "@babel/generator" "^7.14.5" "@babel/helper-function-name" "^7.14.5" "@babel/helper-hoist-variables" "^7.14.5" "@babel/helper-split-export-declaration" "^7.14.5" - "@babel/parser" "^7.14.5" + "@babel/parser" "^7.14.7" "@babel/types" "^7.14.5" debug "^4.1.0" globals "^11.1.0" -"@babel/types@^7.0.0", "@babel/types@^7.12.1", "@babel/types@^7.12.13", "@babel/types@^7.13.0", "@babel/types@^7.14.5", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.4.4": +"@babel/types@^7.0.0", "@babel/types@^7.12.13", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.4.4": + version "7.12.13" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.12.13.tgz#8be1aa8f2c876da11a9cf650c0ecf656913ad611" + integrity sha512-oKrdZTld2im1z8bDwTOQvUbxKwE+854zc16qWZQlcTqMN00pWxHQ4ZeOq0yDMnisOpRykH2/5Qqcrk/OlbAjiQ== + dependencies: + "@babel/helper-validator-identifier" "^7.12.11" + lodash "^4.17.19" + to-fast-properties "^2.0.0" + +"@babel/types@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.14.5.tgz#3bb997ba829a2104cedb20689c4a5b8121d383ff" integrity sha512-M/NzBpEL95I5Hh4dwhin5JlE7EzO5PHMAuzjxss3tiOBD46KfQvVedN/3jEPZvdRvtsK2222XfdHogNIttFgcg== @@ -990,6 +1200,21 @@ exec-sh "^0.3.2" minimist "^1.2.0" +"@eslint/eslintrc@^0.4.2": + version "0.4.2" + resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-0.4.2.tgz#f63d0ef06f5c0c57d76c4ab5f63d3835c51b0179" + integrity sha512-8nmGq/4ycLpIwzvhI4tNDmQztZ8sp+hI7cyG8i1nQDhkAbRzHpXPidRAHlNvCZQpJTKw5ItIpMw9RSToGF00mg== + dependencies: + ajv "^6.12.4" + debug "^4.1.1" + espree "^7.3.0" + globals "^13.9.0" + ignore "^4.0.6" + import-fresh "^3.2.1" + js-yaml "^3.13.1" + minimatch "^3.0.4" + strip-json-comments "^3.1.1" + "@istanbuljs/load-nyc-config@^1.0.0": version "1.1.0" resolved "https://registry.yarnpkg.com/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz#fd3db1d59ecf7cf121e80650bb86712f9b55eced" @@ -1174,6 +1399,17 @@ "@types/yargs" "^15.0.0" chalk "^3.0.0" +"@jest/types@^26.6.2": + version "26.6.2" + resolved "https://registry.yarnpkg.com/@jest/types/-/types-26.6.2.tgz#bef5a532030e1d88a2f5a6d933f84e97226ed48e" + integrity sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ== + dependencies: + "@types/istanbul-lib-coverage" "^2.0.0" + "@types/istanbul-reports" "^3.0.0" + "@types/node" "*" + "@types/yargs" "^15.0.0" + chalk "^4.0.0" + "@nicolo-ribaudo/chokidar-2@2.1.8-no-fsevents": version "2.1.8-no-fsevents" resolved "https://registry.yarnpkg.com/@nicolo-ribaudo/chokidar-2/-/chokidar-2-2.1.8-no-fsevents.tgz#da7c3996b8e6e19ebd14d82eaced2313e7769f9b" @@ -1191,6 +1427,27 @@ readdirp "^2.2.1" upath "^1.1.1" +"@nodelib/fs.scandir@2.1.5": + version "2.1.5" + resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5" + integrity sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g== + dependencies: + "@nodelib/fs.stat" "2.0.5" + run-parallel "^1.1.9" + +"@nodelib/fs.stat@2.0.5", "@nodelib/fs.stat@^2.0.2": + version "2.0.5" + resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz#5bd262af94e9d25bd1e71b05deed44876a222e8b" + integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A== + +"@nodelib/fs.walk@^1.2.3": + version "1.2.7" + resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.7.tgz#94c23db18ee4653e129abd26fb06f870ac9e1ee2" + integrity sha512-BTIhocbPBSrRmHxOAJFtR18oLhxTtAFDAvL8hY1S3iU8k+E60W/YFs4jrixGzQjMpF4qPXxIQHcjVD9dz1C2QA== + dependencies: + "@nodelib/fs.scandir" "2.1.5" + fastq "^1.6.0" + "@sindresorhus/is@^0.14.0": version "0.14.0" resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-0.14.0.tgz#9fb3a3cf3132328151f353de4632e01e52102bea" @@ -1270,35 +1527,42 @@ "@types/istanbul-lib-coverage" "*" "@types/istanbul-lib-report" "*" -"@types/jest@^25.1.4": - version "25.2.3" - resolved "https://registry.yarnpkg.com/@types/jest/-/jest-25.2.3.tgz#33d27e4c4716caae4eced355097a47ad363fdcaf" - integrity sha512-JXc1nK/tXHiDhV55dvfzqtmP4S3sy3T3ouV2tkViZgxY/zeUkcpQcQPGRlgF4KmWzWW5oiWYSZwtCB+2RsE4Fw== +"@types/istanbul-reports@^3.0.0": + version "3.0.0" + resolved "https://registry.yarnpkg.com/@types/istanbul-reports/-/istanbul-reports-3.0.0.tgz#508b13aa344fa4976234e75dddcc34925737d821" + integrity sha512-nwKNbvnwJ2/mndE9ItP/zc2TCzw6uuodnF4EHYWD+gCQDVBuRQL5UzbZD0/ezy1iKsFU2ZQiDqg4M9dN4+wZgA== + dependencies: + "@types/istanbul-lib-report" "*" + +"@types/jest@^26.0.22": + version "26.0.22" + resolved "https://registry.yarnpkg.com/@types/jest/-/jest-26.0.22.tgz#8308a1debdf1b807aa47be2838acdcd91e88fbe6" + integrity sha512-eeWwWjlqxvBxc4oQdkueW5OF/gtfSceKk4OnOAGlUSwS/liBRtZppbJuz1YkgbrbfGOoeBHun9fOvXnjNwrSOw== dependencies: - jest-diff "^25.2.1" - pretty-format "^25.2.1" + jest-diff "^26.0.0" + pretty-format "^26.0.0" -"@types/json-schema@^7.0.5": +"@types/json-schema@^7.0.5", "@types/json-schema@^7.0.7": version "7.0.7" resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.7.tgz#98a993516c859eb0d5c4c8f098317a9ea68db9ad" integrity sha512-cxWFQVseBm6O9Gbw1IWb8r6OS4OhSt3hPZLkFApLjM8TEXROBuQGLAH2i2gZpcXdLBIrpXuTDhH7Vbm1iXmNGA== -"@types/mathjs@^6.0.4": +"@types/mathjs@6.0.11": version "6.0.11" resolved "https://registry.yarnpkg.com/@types/mathjs/-/mathjs-6.0.11.tgz#bf24c1ed875252274008d2c373bad07e0348adfb" integrity sha512-q9B8ZreO41L38iTY76bCZEtAqzeRs4mNIOZpZ1sLSlcYgvgfFrnf8y8qfmas0tVWrsODjmQbQJFD6RJJJCqJbQ== dependencies: decimal.js "^10.0.0" -"@types/minimatch@3.0.3": - version "3.0.3" - resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d" - integrity sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA== +"@types/minimist@^1.2.0": + version "1.2.1" + resolved "https://registry.yarnpkg.com/@types/minimist/-/minimist-1.2.1.tgz#283f669ff76d7b8260df8ab7a4262cc83d988256" + integrity sha512-fZQQafSREFyuZcdWFAExYjBiCL7AUCdgsk80iO0q4yihYYdcIiH28CcuPTGFgLOCC8RlW49GSQxdHwZP+I7CNg== -"@types/node@*", "@types/node@^15.6.1": - version "15.6.1" - resolved "https://registry.yarnpkg.com/@types/node/-/node-15.6.1.tgz#32d43390d5c62c5b6ec486a9bc9c59544de39a08" - integrity sha512-7EIraBEyRHEe7CH+Fm1XvgqU6uwZN8Q7jppJGcqjROMT29qhAuuOxYB1uEY5UMYQKEmA5D+5tBnhdaPXSsLONA== +"@types/node@*": + version "14.14.25" + resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.25.tgz#15967a7b577ff81383f9b888aa6705d43fbbae93" + integrity sha512-EPpXLOVqDvisVxtlbvzfyqSsFeQxltFbluZNRndIb8tr9KiBnYNLzrc1N3pyKUCww2RNrfHDViqDWWE1LCJQtQ== "@types/node@10.12.18": version "10.12.18" @@ -1310,6 +1574,11 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-11.11.6.tgz#df929d1bb2eee5afdda598a41930fe50b43eaa6a" integrity sha512-Exw4yUWMBXM3X+8oqzJNRqZSwUAaS4+7NdvHqQuFi/d+synz++xmX3QIf+BFqneW8N31R8Ky+sikfZUXq07ggQ== +"@types/node@^10.0.3": + version "10.17.51" + resolved "https://registry.yarnpkg.com/@types/node/-/node-10.17.51.tgz#639538575befbcf3d3861f95c41de8e47124d674" + integrity sha512-KANw+MkL626tq90l++hGelbl67irOJzGhUJk6a1Bt8QHOeh9tztJx+L0AqttraWKinmZn7Qi5lJZJzx45Gq0dg== + "@types/normalize-package-data@^2.4.0": version "2.4.0" resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz#e486d0d97396d79beedd0a6e33f4534ff6b4973e" @@ -1325,7 +1594,7 @@ resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-1.0.1.tgz#0a851d3bd96498fa25c33ab7278ed3bd65f06c3e" integrity sha512-l42BggppR6zLmpfU6fq9HEa2oGPEI8yrSPL3GITjfRInppYFahObbIQOQK3UGxEnyQpltZLaPe75046NOZQikw== -"@types/ws@^7.2.2": +"@types/ws@^7.4.5": version "7.4.5" resolved "https://registry.yarnpkg.com/@types/ws/-/ws-7.4.5.tgz#8ff0f7efcd8fea19f51f9dd66cb8b498d172a752" integrity sha512-8mbDgtc8xpxDDem5Gwj76stBDJX35KQ3YBoayxlqUQcL5BZUthiqP/VQ4PQnLHqM4PmlbyO74t98eJpURO+gPA== @@ -1344,6 +1613,76 @@ dependencies: "@types/yargs-parser" "*" +"@typescript-eslint/eslint-plugin@^4.2.0": + version "4.26.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.26.0.tgz#12bbd6ebd5e7fabd32e48e1e60efa1f3554a3242" + integrity sha512-yA7IWp+5Qqf+TLbd8b35ySFOFzUfL7i+4If50EqvjT6w35X8Lv0eBHb6rATeWmucks37w+zV+tWnOXI9JlG6Eg== + dependencies: + "@typescript-eslint/experimental-utils" "4.26.0" + "@typescript-eslint/scope-manager" "4.26.0" + debug "^4.3.1" + functional-red-black-tree "^1.0.1" + lodash "^4.17.21" + regexpp "^3.1.0" + semver "^7.3.5" + tsutils "^3.21.0" + +"@typescript-eslint/experimental-utils@4.26.0": + version "4.26.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-4.26.0.tgz#ba7848b3f088659cdf71bce22454795fc55be99a" + integrity sha512-TH2FO2rdDm7AWfAVRB5RSlbUhWxGVuxPNzGT7W65zVfl8H/WeXTk1e69IrcEVsBslrQSTDKQSaJD89hwKrhdkw== + dependencies: + "@types/json-schema" "^7.0.7" + "@typescript-eslint/scope-manager" "4.26.0" + "@typescript-eslint/types" "4.26.0" + "@typescript-eslint/typescript-estree" "4.26.0" + eslint-scope "^5.1.1" + eslint-utils "^3.0.0" + +"@typescript-eslint/parser@^4.2.0": + version "4.26.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-4.26.0.tgz#31b6b732c9454f757b020dab9b6754112aa5eeaf" + integrity sha512-b4jekVJG9FfmjUfmM4VoOItQhPlnt6MPOBUL0AQbiTmm+SSpSdhHYlwayOm4IW9KLI/4/cRKtQCmDl1oE2OlPg== + dependencies: + "@typescript-eslint/scope-manager" "4.26.0" + "@typescript-eslint/types" "4.26.0" + "@typescript-eslint/typescript-estree" "4.26.0" + debug "^4.3.1" + +"@typescript-eslint/scope-manager@4.26.0": + version "4.26.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-4.26.0.tgz#60d1a71df162404e954b9d1c6343ff3bee496194" + integrity sha512-G6xB6mMo4xVxwMt5lEsNTz3x4qGDt0NSGmTBNBPJxNsrTXJSm21c6raeYroS2OwQsOyIXqKZv266L/Gln1BWqg== + dependencies: + "@typescript-eslint/types" "4.26.0" + "@typescript-eslint/visitor-keys" "4.26.0" + +"@typescript-eslint/types@4.26.0": + version "4.26.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.26.0.tgz#7c6732c0414f0a69595f4f846ebe12616243d546" + integrity sha512-rADNgXl1kS/EKnDr3G+m7fB9yeJNnR9kF7xMiXL6mSIWpr3Wg5MhxyfEXy/IlYthsqwBqHOr22boFbf/u6O88A== + +"@typescript-eslint/typescript-estree@4.26.0": + version "4.26.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-4.26.0.tgz#aea17a40e62dc31c63d5b1bbe9a75783f2ce7109" + integrity sha512-GHUgahPcm9GfBuy3TzdsizCcPjKOAauG9xkz9TR8kOdssz2Iz9jRCSQm6+aVFa23d5NcSpo1GdHGSQKe0tlcbg== + dependencies: + "@typescript-eslint/types" "4.26.0" + "@typescript-eslint/visitor-keys" "4.26.0" + debug "^4.3.1" + globby "^11.0.3" + is-glob "^4.0.1" + semver "^7.3.5" + tsutils "^3.21.0" + +"@typescript-eslint/visitor-keys@4.26.0": + version "4.26.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-4.26.0.tgz#26d2583169222815be4dcd1da4fe5459bc3bcc23" + integrity sha512-cw4j8lH38V1ycGBbF+aFiLUls9Z0Bw8QschP3mkth50BbWzgFS33ISIgBzUMuQ2IdahoEv/rXstr8Zhlz4B1Zg== + dependencies: + "@typescript-eslint/types" "4.26.0" + eslint-visitor-keys "^2.0.0" + abab@^2.0.0: version "2.0.5" resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.5.tgz#c0b678fb32d60fc1219c784d6a826fe385aeb79a" @@ -1357,7 +1696,7 @@ acorn-globals@^4.3.2: acorn "^6.0.1" acorn-walk "^6.0.1" -acorn-jsx@^5.2.0: +acorn-jsx@^5.2.0, acorn-jsx@^5.3.1: version "5.3.1" resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.1.tgz#fc8661e11b7ac1539c47dbfea2e72b3af34d267b" integrity sha512-K0Ptm/47OKfQRpNQ2J/oIN/3QYiK6FwW+eJbILhsdxh2WTLdl+30o8aGdTbm5JbffpFFAg/g+zi1E+jvJha5ng== @@ -1372,7 +1711,7 @@ acorn@^6.0.1: resolved "https://registry.yarnpkg.com/acorn/-/acorn-6.4.2.tgz#35866fd710528e92de10cf06016498e47e39e1e6" integrity sha512-XtGIhXwF8YM8bJhGxG5kXgjkEuNGLTkoYqVE+KMR+aspr4KGYmKYg7yUe3KghyQ9yheNwLnjmzh/7+gfDBmHCQ== -acorn@^7.1.0, acorn@^7.1.1: +acorn@^7.1.0, acorn@^7.1.1, acorn@^7.4.0: version "7.4.1" resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa" integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== @@ -1392,6 +1731,16 @@ ajv@^6.10.0, ajv@^6.10.2, ajv@^6.12.3, ajv@^6.12.4: json-schema-traverse "^0.4.1" uri-js "^4.2.2" +ajv@^8.0.1: + version "8.6.0" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.6.0.tgz#60cc45d9c46a477d80d92c48076d972c342e5720" + integrity sha512-cnUG4NSBiM4YFBxgZIj/In3/6KX+rQ2l2YPRVcvAMQGWEPKuXoPIhxzwqh31jA3IPbI4qEOp/5ILI4ynioXsGQ== + dependencies: + fast-deep-equal "^3.1.1" + json-schema-traverse "^1.0.0" + require-from-string "^2.0.2" + uri-js "^4.2.2" + ansi-align@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/ansi-align/-/ansi-align-3.0.0.tgz#b536b371cf687caaef236c18d3e21fe3797467cb" @@ -1399,6 +1748,11 @@ ansi-align@^3.0.0: dependencies: string-width "^3.0.0" +ansi-colors@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.1.tgz#cbb9ae256bf750af1eab344f229aa27fe94ba348" + integrity sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA== + ansi-escapes@^4.2.1: version "4.3.1" resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.1.tgz#a5c47cc43181f1f38ffd7076837700d395522a61" @@ -1406,11 +1760,6 @@ ansi-escapes@^4.2.1: dependencies: type-fest "^0.11.0" -ansi-regex@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998" - integrity sha1-7QMXwyIGT3lGbAKWa922Bas32Zg= - ansi-regex@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.0.tgz#8b9f8f08cf1acb843756a839ca8c7e3168c51997" @@ -1478,10 +1827,10 @@ array-equal@^1.0.0: resolved "https://registry.yarnpkg.com/array-equal/-/array-equal-1.0.0.tgz#8c2a5ef2472fd9ea742b04c77a75093ba2757c93" integrity sha1-jCpe8kcv2ep0KwTHenUJO6J1fJM= -array-find-index@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/array-find-index/-/array-find-index-1.0.2.tgz#df010aa1287e164bbda6f9723b0a96a1ec4187a1" - integrity sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E= +array-union@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d" + integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw== array-unique@^0.3.2: version "0.3.2" @@ -1525,6 +1874,11 @@ astral-regex@^1.0.0: resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-1.0.0.tgz#6c8c3fb827dd43ee3918f27b82782ab7658a6fd9" integrity sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg== +astral-regex@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-2.0.0.tgz#483143c567aeed4785759c0865786dc77d7d2e31" + integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ== + async-each@^1.0.1: version "1.0.3" resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.3.tgz#b727dbf87d7651602f06f4d4ac387f47d91b0cbf" @@ -1535,6 +1889,11 @@ asynckit@^0.4.0: resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" integrity sha1-x57Zf380y48robyXkLzDZkdLS3k= +at-least-node@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/at-least-node/-/at-least-node-1.0.0.tgz#602cd4b46e844ad4effc92a8011a3c46e0238dc2" + integrity sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg== + atob@^2.1.2: version "2.1.2" resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" @@ -1608,6 +1967,30 @@ babel-plugin-jest-hoist@^25.5.0: "@babel/types" "^7.3.3" "@types/babel__traverse" "^7.0.6" +babel-plugin-polyfill-corejs2@^0.2.2: + version "0.2.2" + resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.2.2.tgz#e9124785e6fd94f94b618a7954e5693053bf5327" + integrity sha512-kISrENsJ0z5dNPq5eRvcctITNHYXWOA4DUZRFYCz3jYCcvTb/A546LIddmoGNMVYg2U38OyFeNosQwI9ENTqIQ== + dependencies: + "@babel/compat-data" "^7.13.11" + "@babel/helper-define-polyfill-provider" "^0.2.2" + semver "^6.1.1" + +babel-plugin-polyfill-corejs3@^0.2.2: + version "0.2.3" + resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.2.3.tgz#72add68cf08a8bf139ba6e6dfc0b1d504098e57b" + integrity sha512-rCOFzEIJpJEAU14XCcV/erIf/wZQMmMT5l5vXOpL5uoznyOGfDIjPj6FVytMvtzaKSTSVKouOCTPJ5OMUZH30g== + dependencies: + "@babel/helper-define-polyfill-provider" "^0.2.2" + core-js-compat "^3.14.0" + +babel-plugin-polyfill-regenerator@^0.2.2: + version "0.2.2" + resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.2.2.tgz#b310c8d642acada348c1fa3b3e6ce0e851bee077" + integrity sha512-Goy5ghsc21HgPDFtzRkSirpZVW35meGoTmTOb2bxqdl60ghub4xOidgNTHaZfQ2FaxQsKmwvXtOAkcIS4SMBWg== + dependencies: + "@babel/helper-define-polyfill-provider" "^0.2.2" + babel-preset-current-node-syntax@^0.1.2: version "0.1.4" resolved "https://registry.yarnpkg.com/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-0.1.4.tgz#826f1f8e7245ad534714ba001f84f7e906c3b615" @@ -1633,13 +2016,6 @@ babel-preset-jest@^25.5.0: babel-plugin-jest-hoist "^25.5.0" babel-preset-current-node-syntax "^0.1.2" -backbone@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/backbone/-/backbone-1.4.0.tgz#54db4de9df7c3811c3f032f34749a4cd27f3bd12" - integrity sha512-RLmDrRXkVdouTg38jcgHhyQ/2zjg7a8E6sz2zxfz21Hh17xDJYUHBZimVIt5fUyS8vbfpeSmTL3gUjTEvUV3qQ== - dependencies: - underscore ">=1.8.3" - balanced-match@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" @@ -1672,6 +2048,11 @@ bcrypt-pbkdf@^1.0.0: dependencies: tweetnacl "^0.14.3" +bcryptjs@^2.4.3: + version "2.4.3" + resolved "https://registry.yarnpkg.com/bcryptjs/-/bcryptjs-2.4.3.tgz#9ab5627b93e60621ff7cdac5da9733027df1d0cb" + integrity sha1-mrVie5PmBiH/fNrF2pczAn3x0Ms= + bech32@^1.1.3: version "1.1.4" resolved "https://registry.yarnpkg.com/bech32/-/bech32-1.1.4.tgz#e38c9f37bf179b8eb16ae3a772b40c356d4832e9" @@ -1692,7 +2073,7 @@ binary-extensions@^2.0.0: resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.2.0.tgz#75f502eeaf9ffde42fc98829645be4ea76bd9e2d" integrity sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA== -bindings@^1.3.0: +bindings@^1.3.0, bindings@^1.5.0: version "1.5.0" resolved "https://registry.yarnpkg.com/bindings/-/bindings-1.5.0.tgz#10353c9e945334bc0511a6d90b38fbc7c9c504df" integrity sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ== @@ -1713,15 +2094,22 @@ bip32@^2.0.4: wif "^2.0.6" bip39@^3.0.2: - version "3.0.4" - resolved "https://registry.yarnpkg.com/bip39/-/bip39-3.0.4.tgz#5b11fed966840b5e1b8539f0f54ab6392969b2a0" - integrity sha512-YZKQlb752TrUWqHWj7XAwCSjYEgGAk+/Aas3V7NyjQeZYsztO8JnQUaCWhcnL4T+jL8nvB8typ2jRPzTlgugNw== + version "3.0.3" + resolved "https://registry.yarnpkg.com/bip39/-/bip39-3.0.3.tgz#4a8b79067d6ed2e74f9199ac994a2ab61b176760" + integrity sha512-P0dKrz4g0V0BjXfx7d9QNkJ/Txcz/k+hM9TnjqjUaXtuOfAvxXSw2rJw8DX0e3ZPwnK/IgDxoRqf0bvoVCqbMg== dependencies: "@types/node" "11.11.6" create-hash "^1.1.0" pbkdf2 "^3.0.9" randombytes "^2.0.1" +bip66@^1.1.5: + version "1.1.5" + resolved "https://registry.yarnpkg.com/bip66/-/bip66-1.1.5.tgz#01fa8748785ca70955d5011217d1b3139969ca22" + integrity sha1-AfqHSHhcpwlV1QESF9GzE5lpyiI= + dependencies: + safe-buffer "^5.0.1" + bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.11.6, bn.js@^4.11.8, bn.js@^4.11.9: version "4.11.9" resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.9.tgz#26d556829458f9d1e81fc48952493d0ba3507828" @@ -1732,19 +2120,19 @@ bn.js@^5.0.0, bn.js@^5.1.1: resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-5.1.3.tgz#beca005408f642ebebea80b042b4d18d2ac0ee6b" integrity sha512-GkTiFpjFtUzU9CbMeJ5iazkCzGL3jrhzerzZIuqLABjbwRaFt33I9tUdSNryIptM+RxDet6OKm2WnLXzW51KsQ== -boxen@^3.0.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/boxen/-/boxen-3.2.0.tgz#fbdff0de93636ab4450886b6ff45b92d098f45eb" - integrity sha512-cU4J/+NodM3IHdSL2yN8bqYqnmlBTidDR4RC7nJs61ZmtGz8VZzM3HLQX0zY5mrSmPtR3xWwsq2jOUQqFZN8+A== +boxen@^5.0.0: + version "5.0.1" + resolved "https://registry.yarnpkg.com/boxen/-/boxen-5.0.1.tgz#657528bdd3f59a772b8279b831f27ec2c744664b" + integrity sha512-49VBlw+PrWEF51aCmy7QIteYPIFZxSpvqBdP/2itCPPlJ49kj9zg/XPRFrdkne2W+CfwXUls8exMvu1RysZpKA== dependencies: ansi-align "^3.0.0" - camelcase "^5.3.1" - chalk "^2.4.2" - cli-boxes "^2.2.0" - string-width "^3.0.0" - term-size "^1.2.0" - type-fest "^0.3.0" - widest-line "^2.0.0" + camelcase "^6.2.0" + chalk "^4.1.0" + cli-boxes "^2.2.1" + string-width "^4.2.0" + type-fest "^0.20.2" + widest-line "^3.1.0" + wrap-ansi "^7.0.0" brace-expansion@^1.1.7: version "1.1.11" @@ -1794,7 +2182,7 @@ browser-resolve@^1.11.3: dependencies: resolve "1.1.7" -browserify-aes@^1.0.0, browserify-aes@^1.0.4: +browserify-aes@^1.0.0, browserify-aes@^1.0.4, browserify-aes@^1.0.6: version "1.2.0" resolved "https://registry.yarnpkg.com/browserify-aes/-/browserify-aes-1.2.0.tgz#326734642f403dabc3003209853bb70ad428ef48" integrity sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA== @@ -1848,7 +2236,7 @@ browserify-sign@^4.0.0: readable-stream "^3.6.0" safe-buffer "^5.2.0" -browserslist@^4.16.1, browserslist@^4.16.6: +browserslist@^4.16.6: version "4.16.6" resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.16.6.tgz#d7901277a5a88e554ed305b183ec9b0c08f66fa2" integrity sha512-Wspk/PqO+4W9qp5iUTJsa1B/QrYn1keNCcEP5OvP7WBwT4KaDly0uONYmC6Xa3Z5IqnUgS0KcgLYu1l74x0ZXQ== @@ -1945,29 +2333,29 @@ callsites@^3.0.0: resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== -camelcase-keys@^4.0.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/camelcase-keys/-/camelcase-keys-4.2.0.tgz#a2aa5fb1af688758259c32c141426d78923b9b77" - integrity sha1-oqpfsa9oh1glnDLBQUJteJI7m3c= +camelcase-keys@^6.2.2: + version "6.2.2" + resolved "https://registry.yarnpkg.com/camelcase-keys/-/camelcase-keys-6.2.2.tgz#5e755d6ba51aa223ec7d3d52f25778210f9dc3c0" + integrity sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg== dependencies: - camelcase "^4.1.0" - map-obj "^2.0.0" - quick-lru "^1.0.0" - -camelcase@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd" - integrity sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0= + camelcase "^5.3.1" + map-obj "^4.0.0" + quick-lru "^4.0.1" camelcase@^5.0.0, camelcase@^5.3.1: version "5.3.1" resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== +camelcase@^6.2.0: + version "6.2.0" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.2.0.tgz#924af881c9d525ac9d87f40d964e5cea982a1809" + integrity sha512-c7wVvbw3f37nuobQNtgsgG9POC9qMbNuMQmTCqZv23b6MIz0fcYpBiOlv9gEN/hdLdnZTDQhg6e9Dq5M1vKvfg== + caniuse-lite@^1.0.30001219: - version "1.0.30001230" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001230.tgz#8135c57459854b2240b57a4a6786044bdc5a9f71" - integrity sha512-5yBd5nWCBS+jWKTcHOzXwo5xzcj4ePE/yjtkZyUV1BTUmrBaA9MRGC+e7mxnqXSA90CmCA8L3eKLaSUkt099IQ== + version "1.0.30001235" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001235.tgz#ad5ca75bc5a1f7b12df79ad806d715a43a5ac4ed" + integrity sha512-zWEwIVqnzPkSAXOUlQnPW2oKoYb2aLQ4Q5ejdjBcnH63rfypaW34CxaeBn1VMya2XaEU3P/R2qHpWyj+l0BT1A== capture-exit@^2.0.0: version "2.0.0" @@ -1981,7 +2369,7 @@ caseless@~0.12.0: resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" integrity sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw= -chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.3.0, chalk@^2.4.2: +chalk@^2.0.0, chalk@^2.1.0, chalk@^2.3.0: version "2.4.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== @@ -1998,7 +2386,7 @@ chalk@^3.0.0: ansi-styles "^4.1.0" supports-color "^7.1.0" -chalk@^4.1.0: +chalk@^4.0.0, chalk@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.0.tgz#4e14870a618d9e2edd97dd8345fd9d9dc315646a" integrity sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A== @@ -2049,7 +2437,7 @@ class-utils@^0.3.5: isobject "^3.0.0" static-extend "^0.1.1" -cli-boxes@^2.2.0: +cli-boxes@^2.2.1: version "2.2.1" resolved "https://registry.yarnpkg.com/cli-boxes/-/cli-boxes-2.2.1.tgz#ddd5035d25094fce220e9cab40a45840a440318f" integrity sha512-y4coMcylgSCdVinjiDBuR8PCC2bLjyGTwEmPb9NHR/QaNU6EUOXcTY/s6VjGMD6ENSEaeQYHCY0GNGS5jfMwPw== @@ -2129,6 +2517,11 @@ colorette@^1.2.2: resolved "https://registry.yarnpkg.com/colorette/-/colorette-1.2.2.tgz#cbcc79d5e99caea2dbf10eb3a26fd8b3e6acfa94" integrity sha512-MKGMzyfeuutC/ZJ1cba9NqcNpfeqMUcYmyF1ZFY6/Cn7CNSAKx6a+s48sqLqyAiZuaP2TcqMhoo+dlwFnVxT9w== +colors@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/colors/-/colors-1.4.0.tgz#c50491479d4c1bdaed2c9ced32cf7c7dc2360f78" + integrity sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA== + combined-stream@^1.0.6, combined-stream@~1.0.6: version "1.0.8" resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" @@ -2151,10 +2544,10 @@ commondir@^1.0.1: resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b" integrity sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs= -complex.js@^2.0.13: - version "2.0.13" - resolved "https://registry.yarnpkg.com/complex.js/-/complex.js-2.0.13.tgz#00cf7ba082565e164813b7bbbb0ced5d2aba172a" - integrity sha512-UEWd3G3/kd3lJmsdLsDh9qfinJlujL4hIFn3Vo4/G5eqehPsgCHf2CLhFs77tVkOp2stt/jbNit7Q1XFANFltA== +complex.js@^2.0.11: + version "2.0.11" + resolved "https://registry.yarnpkg.com/complex.js/-/complex.js-2.0.11.tgz#09a873fbf15ffd8c18c9c2201ccef425c32b8bf1" + integrity sha512-6IArJLApNtdg1P1dFtn3dnyzoZBEF0MwMnrfF1exSBRpZYoy4yieMkpZhQDC0uwctw48vii0CFVyHfpgZ/DfGw== component-emitter@^1.2.1: version "1.3.0" @@ -2166,17 +2559,17 @@ concat-map@0.0.1: resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= -configstore@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/configstore/-/configstore-4.0.0.tgz#5933311e95d3687efb592c528b922d9262d227e7" - integrity sha512-CmquAXFBocrzaSM8mtGPMM/HiWmyIpr4CcJl/rgY2uCObZ/S7cKU0silxslqJejl+t/T9HS8E0PUNQD81JGUEQ== +configstore@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/configstore/-/configstore-5.0.1.tgz#d365021b5df4b98cdd187d6a3b0e3f6a7cc5ed96" + integrity sha512-aMKprgk5YhBNyH25hj8wGt2+D52Sw1DRRIzqBwLp2Ya9mFmY8KPvvtvmna8SxVR9JMZ4kzMD68N22vlaRpkeFA== dependencies: - dot-prop "^4.1.0" + dot-prop "^5.2.0" graceful-fs "^4.1.2" - make-dir "^1.0.0" - unique-string "^1.0.0" - write-file-atomic "^2.0.0" - xdg-basedir "^3.0.0" + make-dir "^3.0.0" + unique-string "^2.0.0" + write-file-atomic "^3.0.0" + xdg-basedir "^4.0.0" convert-hex@~0.1.0: version "0.1.0" @@ -2200,12 +2593,12 @@ copy-descriptor@^0.1.0: resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" integrity sha1-Z29us8OZl8LuGsOpJP1hJHSPV40= -core-js-compat@^3.8.0: - version "3.8.3" - resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.8.3.tgz#9123fb6b9cad30f0651332dc77deba48ef9b0b3f" - integrity sha512-1sCb0wBXnBIL16pfFG1Gkvei6UzvKyTNYpiC41yrdjEv0UoJoq9E/abTMzyYJ6JpTkAj15dLjbqifIzEBDVvog== +core-js-compat@^3.14.0, core-js-compat@^3.15.0: + version "3.15.2" + resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.15.2.tgz#47272fbb479880de14b4e6081f71f3492f5bd3cb" + integrity sha512-Wp+BJVvwopjI+A1EFqm2dwUmWYXrvucmtIB2LgXn/Rb+gWPKYxtmb4GKHGKG/KGF1eK9jfjzT38DITbTOCX/SQ== dependencies: - browserslist "^4.16.1" + browserslist "^4.16.6" semver "7.0.0" core-util-is@1.0.2, core-util-is@~1.0.0: @@ -2244,15 +2637,6 @@ create-hmac@^1.1.0, create-hmac@^1.1.4, create-hmac@^1.1.7: safe-buffer "^5.0.1" sha.js "^2.4.8" -cross-spawn@^5.0.1: - version "5.1.0" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449" - integrity sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk= - dependencies: - lru-cache "^4.0.1" - shebang-command "^1.2.0" - which "^1.2.9" - cross-spawn@^6.0.0, cross-spawn@^6.0.5: version "6.0.5" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4" @@ -2264,7 +2648,7 @@ cross-spawn@^6.0.0, cross-spawn@^6.0.5: shebang-command "^1.2.0" which "^1.2.9" -cross-spawn@^7.0.0: +cross-spawn@^7.0.0, cross-spawn@^7.0.2, cross-spawn@^7.0.3: version "7.0.3" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== @@ -2290,15 +2674,15 @@ crypto-browserify@^3.12.0: randombytes "^2.0.0" randomfill "^1.0.3" -crypto-js@^3.1.9-1: - version "3.3.0" - resolved "https://registry.yarnpkg.com/crypto-js/-/crypto-js-3.3.0.tgz#846dd1cce2f68aacfa156c8578f926a609b7976b" - integrity sha512-DIT51nX0dCfKltpRiXV+/TVZq+Qq2NgF4644+K7Ttnla7zEzqc+kjJyiB96BHNyUTBxyjzRcZYpUdZa+QAqi6Q== +crypto-js@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/crypto-js/-/crypto-js-4.0.0.tgz#2904ab2677a9d042856a2ea2ef80de92e4a36dcc" + integrity sha512-bzHZN8Pn+gS7DQA6n+iUmBfl0hO5DJq++QP3U6uTucDtk/0iGpXd/Gg7CGR0p8tJhofJyaKoWBuJI4eAO00BBg== -crypto-random-string@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/crypto-random-string/-/crypto-random-string-1.0.0.tgz#a230f64f568310e1498009940790ec99545bca7e" - integrity sha1-ojD2T1aDEOFJgAmUB5DsmVRbyn4= +crypto-random-string@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/crypto-random-string/-/crypto-random-string-2.0.0.tgz#ef2a7a966ec11083388369baa02ebead229b30d5" + integrity sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA== cssom@^0.4.1: version "0.4.4" @@ -2317,13 +2701,6 @@ cssstyle@^2.0.0: dependencies: cssom "~0.3.6" -currently-unhandled@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/currently-unhandled/-/currently-unhandled-0.4.1.tgz#988df33feab191ef799a61369dd76c17adf957ea" - integrity sha1-mI3zP+qxke95mmE2nddsF635V+o= - dependencies: - array-find-index "^1.0.1" - dashdash@^1.12.0: version "1.14.1" resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" @@ -2347,14 +2724,14 @@ debug@^2.2.0, debug@^2.3.3: dependencies: ms "2.0.0" -debug@^4.0.1, debug@^4.1.0, debug@^4.1.1: +debug@^4.0.1, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1: version "4.3.1" resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.1.tgz#f0d229c505e0c6d8c49ac553d1b13dc183f6b2ee" integrity sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ== dependencies: ms "2.1.2" -decamelize-keys@^1.0.0: +decamelize-keys@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/decamelize-keys/-/decamelize-keys-1.1.0.tgz#d171a87933252807eb3cb61dc1c1445d078df2d9" integrity sha1-0XGoeTMlKAfrPLYdwcFEXQeN8tk= @@ -2367,7 +2744,12 @@ decamelize@^1.1.0, decamelize@^1.2.0: resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" integrity sha1-9lNNFRSCabIDUue+4m9QH5oZEpA= -decimal.js@^10.0.0, decimal.js@^10.2.1: +decimal.js@^10.0.0: + version "10.3.1" + resolved "https://registry.yarnpkg.com/decimal.js/-/decimal.js-10.3.1.tgz#d8c3a444a9c6774ba60ca6ad7261c3a94fd5e783" + integrity sha512-V0pfhfr8suzyPGOx3nmq4aHqabehUZn6Ch9kyFpV79TGDTWFmHqUqXdabR7QHqxzrYolF4+tVmJhUG4OURg5dQ== + +decimal.js@^10.2.1: version "10.2.1" resolved "https://registry.yarnpkg.com/decimal.js/-/decimal.js-10.2.1.tgz#238ae7b0f0c793d3e3cea410108b35a2c01426a3" integrity sha512-KaL7+6Fw6i5A2XSnsbhm/6B+NuEA7TZ4vqxnd5tXz9sbKtrN9Srj8ab4vKVdK8YAqZO9P1kg45Y6YLoduPf+kw== @@ -2389,7 +2771,7 @@ deep-extend@^0.6.0: resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac" integrity sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA== -deep-is@~0.1.3: +deep-is@^0.1.3, deep-is@~0.1.3: version "0.1.3" resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" integrity sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ= @@ -2456,6 +2838,11 @@ diff-sequences@^25.2.6: resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-25.2.6.tgz#5f467c00edd35352b7bca46d7927d60e687a76dd" integrity sha512-Hq8o7+6GaZeoFjtpgvRBUknSXNeJiCx7V9Fr94ZMljNiCr9n9L8H8aJqgWOQiDDGdyn29fRNcDdRVJ5fdyihfg== +diff-sequences@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-26.6.2.tgz#48ba99157de1923412eed41db6b6d4aa9ca7c0b1" + integrity sha512-Mv/TDa3nZ9sbc5soK+OoA74BsS3mL37yixCvUAQkiuA4Wz6YtwP/K47n2rv2ovzHZvoiQeA5FTQOschKkEwB0Q== + diff@^4.0.1: version "4.0.2" resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" @@ -2470,6 +2857,13 @@ diffie-hellman@^5.0.0: miller-rabin "^4.0.0" randombytes "^2.0.0" +dir-glob@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-3.0.1.tgz#56dbf73d992a4a93ba1584f4534063fd2e41717f" + integrity sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA== + dependencies: + path-type "^4.0.0" + doctrine@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-3.0.0.tgz#addebead72a6574db783639dc87a121773973961" @@ -2484,12 +2878,21 @@ domexception@^1.0.1: dependencies: webidl-conversions "^4.0.2" -dot-prop@^4.1.0: - version "4.2.1" - resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-4.2.1.tgz#45884194a71fc2cda71cbb4bceb3a4dd2f433ba4" - integrity sha512-l0p4+mIuJIua0mhxGoh4a+iNL9bmeK5DvnSVQa6T0OhrVmaEa1XScX5Etc673FePCJOArq/4Pa2cLGODUWTPOQ== +dot-prop@^5.2.0: + version "5.3.0" + resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-5.3.0.tgz#90ccce708cd9cd82cc4dc8c3ddd9abdd55b20e88" + integrity sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q== dependencies: - is-obj "^1.0.0" + is-obj "^2.0.0" + +drbg.js@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/drbg.js/-/drbg.js-1.0.1.tgz#3e36b6c42b37043823cdbc332d58f31e2445480b" + integrity sha1-Pja2xCs3BDgjzbwzLVjzHiRFSAs= + dependencies: + browserify-aes "^1.0.6" + create-hash "^1.1.2" + create-hmac "^1.1.4" duplexer3@^0.1.4: version "0.1.4" @@ -2515,9 +2918,9 @@ ecc-jsbn@~0.1.1: safer-buffer "^2.1.0" electron-to-chromium@^1.3.723: - version "1.3.738" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.738.tgz#aec24b091c82acbfabbdcce08076a703941d17ca" - integrity sha512-vCMf4gDOpEylPSLPLSwAEsz+R3ShP02Y3cAKMZvTqule3XcPp7tgc/0ESI7IS6ZeyBlGClE50N53fIOkcIVnpw== + version "1.3.749" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.749.tgz#0ecebc529ceb49dd2a7c838ae425236644c3439a" + integrity sha512-F+v2zxZgw/fMwPz/VUGIggG4ZndDsYy0vlpthi3tjmDZlcfbhN5mYW0evXUsBr2sUtuDANFtle410A9u/sd/4A== elliptic@^6.4.0, elliptic@^6.5.2, elliptic@^6.5.3: version "6.5.4" @@ -2563,6 +2966,13 @@ enhanced-resolve@^4.0.0: memory-fs "^0.5.0" tapable "^1.0.0" +enquirer@^2.3.5: + version "2.3.6" + resolved "https://registry.yarnpkg.com/enquirer/-/enquirer-2.3.6.tgz#2a7fe5dd634a1e4125a975ec994ff5456dc3734d" + integrity sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg== + dependencies: + ansi-colors "^4.1.1" + errno@^0.1.3: version "0.1.8" resolved "https://registry.yarnpkg.com/errno/-/errno-0.1.8.tgz#8bb3e9c7d463be4976ff888f76b4809ebc2e811f" @@ -2582,6 +2992,11 @@ escalade@^3.1.1: resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw== +escape-goat@^2.0.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/escape-goat/-/escape-goat-2.1.1.tgz#1b2dc77003676c457ec760b2dc68edb648188675" + integrity sha512-8/uIhbG12Csjy2JEW7D9pHbreaVaS/OpN3ycnyvElTdwM5n6GY6W6e2IPemfvGZeUMqZ9A/3GqIZMgKnBhAw/Q== + escape-latex@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/escape-latex/-/escape-latex-1.2.0.tgz#07c03818cf7dac250cce517f4fda1b001ef2bca1" @@ -2597,6 +3012,11 @@ escape-string-regexp@^2.0.0: resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz#a30304e99daa32e23b2fd20f51babd07cffca344" integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w== +escape-string-regexp@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" + integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== + escodegen@^1.11.1: version "1.14.3" resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.14.3.tgz#4e7b81fba61581dc97582ed78cab7f0e8d63f503" @@ -2609,6 +3029,11 @@ escodegen@^1.11.1: optionalDependencies: source-map "~0.6.1" +eslint-config-prettier@^7.0.0: + version "7.2.0" + resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-7.2.0.tgz#f4a4bd2832e810e8cc7c1411ec85b3e85c0c53f9" + integrity sha512-rV4Qu0C3nfJKPOAhFujFxB7RMP+URFyQqqOZW9DMRD7ZDTFyjaIlETU3xzHELt++4ugC0+Jm084HQYkkJe+Ivg== + eslint-loader@^4.0.0: version "4.0.2" resolved "https://registry.yarnpkg.com/eslint-loader/-/eslint-loader-4.0.2.tgz#386a1e21bcb613b3cf2d252a3b708023ccfb41ec" @@ -2620,7 +3045,34 @@ eslint-loader@^4.0.0: object-hash "^2.0.3" schema-utils "^2.6.5" -eslint-scope@^5.0.0: +eslint-plugin-es@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/eslint-plugin-es/-/eslint-plugin-es-3.0.1.tgz#75a7cdfdccddc0589934aeeb384175f221c57893" + integrity sha512-GUmAsJaN4Fc7Gbtl8uOBlayo2DqhwWvEzykMHSCZHU3XdJ+NSzzZcVhXh3VxX5icqQ+oQdIEawXX8xkR3mIFmQ== + dependencies: + eslint-utils "^2.0.0" + regexpp "^3.0.0" + +eslint-plugin-node@^11.1.0: + version "11.1.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-node/-/eslint-plugin-node-11.1.0.tgz#c95544416ee4ada26740a30474eefc5402dc671d" + integrity sha512-oUwtPJ1W0SKD0Tr+wqu92c5xuCeQqB3hSCHasn/ZgjFdA9iDGNkNf2Zi9ztY7X+hNuMib23LNGRm6+uN+KLE3g== + dependencies: + eslint-plugin-es "^3.0.0" + eslint-utils "^2.0.0" + ignore "^5.1.1" + minimatch "^3.0.4" + resolve "^1.10.1" + semver "^6.1.0" + +eslint-plugin-prettier@^3.1.4: + version "3.4.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-3.4.0.tgz#cdbad3bf1dbd2b177e9825737fe63b476a08f0c7" + integrity sha512-UDK6rJT6INSfcOo545jiaOwB701uAIt2/dR7WnFQoGCVl1/EMqdANBmwUaqqQ45aXprsTGzSa39LI1PyuRBxxw== + dependencies: + prettier-linter-helpers "^1.0.0" + +eslint-scope@^5.0.0, eslint-scope@^5.1.1: version "5.1.1" resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c" integrity sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw== @@ -2635,11 +3087,30 @@ eslint-utils@^1.4.3: dependencies: eslint-visitor-keys "^1.1.0" -eslint-visitor-keys@^1.1.0: +eslint-utils@^2.0.0, eslint-utils@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-2.1.0.tgz#d2de5e03424e707dc10c74068ddedae708741b27" + integrity sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg== + dependencies: + eslint-visitor-keys "^1.1.0" + +eslint-utils@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-3.0.0.tgz#8aebaface7345bb33559db0a1f13a1d2d48c3672" + integrity sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA== + dependencies: + eslint-visitor-keys "^2.0.0" + +eslint-visitor-keys@^1.1.0, eslint-visitor-keys@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz#30ebd1ef7c2fdff01c3a4f151044af25fab0523e" integrity sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ== +eslint-visitor-keys@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz#f65328259305927392c938ed44eb0a5c9b2bd303" + integrity sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw== + eslint@^6.8.0: version "6.8.0" resolved "https://registry.yarnpkg.com/eslint/-/eslint-6.8.0.tgz#62262d6729739f9275723824302fb227c8c93ffb" @@ -2683,6 +3154,51 @@ eslint@^6.8.0: text-table "^0.2.0" v8-compile-cache "^2.0.3" +eslint@^7.10.0: + version "7.28.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.28.0.tgz#435aa17a0b82c13bb2be9d51408b617e49c1e820" + integrity sha512-UMfH0VSjP0G4p3EWirscJEQ/cHqnT/iuH6oNZOB94nBjWbMnhGEPxsZm1eyIW0C/9jLI0Fow4W5DXLjEI7mn1g== + dependencies: + "@babel/code-frame" "7.12.11" + "@eslint/eslintrc" "^0.4.2" + ajv "^6.10.0" + chalk "^4.0.0" + cross-spawn "^7.0.2" + debug "^4.0.1" + doctrine "^3.0.0" + enquirer "^2.3.5" + escape-string-regexp "^4.0.0" + eslint-scope "^5.1.1" + eslint-utils "^2.1.0" + eslint-visitor-keys "^2.0.0" + espree "^7.3.1" + esquery "^1.4.0" + esutils "^2.0.2" + fast-deep-equal "^3.1.3" + file-entry-cache "^6.0.1" + functional-red-black-tree "^1.0.1" + glob-parent "^5.1.2" + globals "^13.6.0" + ignore "^4.0.6" + import-fresh "^3.0.0" + imurmurhash "^0.1.4" + is-glob "^4.0.0" + js-yaml "^3.13.1" + json-stable-stringify-without-jsonify "^1.0.1" + levn "^0.4.1" + lodash.merge "^4.6.2" + minimatch "^3.0.4" + natural-compare "^1.4.0" + optionator "^0.9.1" + progress "^2.0.0" + regexpp "^3.1.0" + semver "^7.2.1" + strip-ansi "^6.0.0" + strip-json-comments "^3.1.0" + table "^6.0.9" + text-table "^0.2.0" + v8-compile-cache "^2.0.3" + espree@^6.1.2: version "6.2.1" resolved "https://registry.yarnpkg.com/espree/-/espree-6.2.1.tgz#77fc72e1fd744a2052c20f38a5b575832e82734a" @@ -2692,12 +3208,21 @@ espree@^6.1.2: acorn-jsx "^5.2.0" eslint-visitor-keys "^1.1.0" +espree@^7.3.0, espree@^7.3.1: + version "7.3.1" + resolved "https://registry.yarnpkg.com/espree/-/espree-7.3.1.tgz#f2df330b752c6f55019f8bd89b7660039c1bbbb6" + integrity sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g== + dependencies: + acorn "^7.4.0" + acorn-jsx "^5.3.1" + eslint-visitor-keys "^1.3.0" + esprima@^4.0.0, esprima@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== -esquery@^1.0.1: +esquery@^1.0.1, esquery@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.4.0.tgz#2148ffc38b82e8c7057dfed48425b3e61f0f24a5" integrity sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w== @@ -2727,9 +3252,9 @@ esutils@^2.0.2: integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== events@^3.1.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/events/-/events-3.3.0.tgz#31a95ad0a924e2d2c419a813aeb2c4e878ea7400" - integrity sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q== + version "3.2.0" + resolved "https://registry.yarnpkg.com/events/-/events-3.2.0.tgz#93b87c18f8efcd4202a461aec4dfc0556b639379" + integrity sha512-/46HWwbfCX2xTawVfkKLGxMifJYQBWMwY1mjywRtb4c9x8l5NP3KoJtnIOiL1hfdRkIuYhETxQlo62IF8tcnlg== evp_bytestokey@^1.0.0, evp_bytestokey@^1.0.3: version "1.0.3" @@ -2744,19 +3269,6 @@ exec-sh@^0.3.2: resolved "https://registry.yarnpkg.com/exec-sh/-/exec-sh-0.3.4.tgz#3a018ceb526cc6f6df2bb504b2bfe8e3a4934ec5" integrity sha512-sEFIkc61v75sWeOe72qyrqg2Qg0OuLESziUDk/O/z2qgS15y2gWVFrI6f2Qn/qw/0/NCfCEsmNA4zOjkwEZT1A== -execa@^0.7.0: - version "0.7.0" - resolved "https://registry.yarnpkg.com/execa/-/execa-0.7.0.tgz#944becd34cc41ee32a63a9faf27ad5a65fc59777" - integrity sha1-lEvs00zEHuMqY6n68nrVpl/Fl3c= - dependencies: - cross-spawn "^5.0.1" - get-stream "^3.0.0" - is-stream "^1.1.0" - npm-run-path "^2.0.0" - p-finally "^1.0.0" - signal-exit "^3.0.0" - strip-eof "^1.0.0" - execa@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/execa/-/execa-1.0.0.tgz#c6236a5bb4df6d6f15e88e7f017798216749ddd8" @@ -2786,6 +3298,21 @@ execa@^3.2.0: signal-exit "^3.0.2" strip-final-newline "^2.0.0" +execa@^5.0.0: + version "5.1.1" + resolved "https://registry.yarnpkg.com/execa/-/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd" + integrity sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg== + dependencies: + cross-spawn "^7.0.3" + get-stream "^6.0.0" + human-signals "^2.1.0" + is-stream "^2.0.0" + merge-stream "^2.0.0" + npm-run-path "^4.0.1" + onetime "^5.1.2" + signal-exit "^3.0.3" + strip-final-newline "^2.0.0" + exit@^0.1.2: version "0.1.2" resolved "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c" @@ -2869,21 +3396,45 @@ extsprintf@^1.2.0: resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.0.tgz#e2689f8f356fad62cca65a3a91c5df5f9551692f" integrity sha1-4mifjzVvrWLMplo6kcXfX5VRaS8= -fast-deep-equal@^3.1.1: +fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: version "3.1.3" resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== +fast-diff@^1.1.2: + version "1.2.0" + resolved "https://registry.yarnpkg.com/fast-diff/-/fast-diff-1.2.0.tgz#73ee11982d86caaf7959828d519cfe927fac5f03" + integrity sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w== + +fast-glob@^3.1.1: + version "3.2.5" + resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.5.tgz#7939af2a656de79a4f1901903ee8adcaa7cb9661" + integrity sha512-2DtFcgT68wiTTiwZ2hNdJfcHNke9XOfnwmBRWXhmeKM8rF0TGwmC/Qto3S7RoZKp5cilZbxzO5iTNTQsJ+EeDg== + dependencies: + "@nodelib/fs.stat" "^2.0.2" + "@nodelib/fs.walk" "^1.2.3" + glob-parent "^5.1.0" + merge2 "^1.3.0" + micromatch "^4.0.2" + picomatch "^2.2.1" + fast-json-stable-stringify@2.x, fast-json-stable-stringify@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== -fast-levenshtein@~2.0.6: +fast-levenshtein@^2.0.6, fast-levenshtein@~2.0.6: version "2.0.6" resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc= +fastq@^1.6.0: + version "1.11.0" + resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.11.0.tgz#bb9fb955a07130a918eb63c1f5161cc32a5d0858" + integrity sha512-7Eczs8gIPDrVzT+EksYBcupqMyxSHXXrHOLRRxU2/DicV8789MRBRR8+Hc2uWzUupOs4YS4JzBmBxjjCVBxD/g== + dependencies: + reusify "^1.0.4" + fb-watchman@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-2.0.1.tgz#fc84fb39d2709cf3ff6d743706157bb5708a8a85" @@ -2905,6 +3456,13 @@ file-entry-cache@^5.0.1: dependencies: flat-cache "^2.0.1" +file-entry-cache@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz#211b2dd9659cb0394b073e7323ac3c933d522027" + integrity sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg== + dependencies: + flat-cache "^3.0.4" + file-uri-to-path@1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz#553a7b8446ff6f684359c445f1e37a05dacc33dd" @@ -2936,13 +3494,6 @@ find-cache-dir@^3.3.1: make-dir "^3.0.2" pkg-dir "^4.1.0" -find-up@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7" - integrity sha1-RdG35QbHF93UgndaK3eSCjwMV6c= - dependencies: - locate-path "^2.0.0" - find-up@^4.0.0, find-up@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/find-up/-/find-up-4.1.0.tgz#97afe7d6cdc0bc5928584b7c8d7b16e8a9aa5d19" @@ -2960,11 +3511,24 @@ flat-cache@^2.0.1: rimraf "2.6.3" write "1.0.3" +flat-cache@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-3.0.4.tgz#61b0338302b2fe9f957dcc32fc2a87f1c3048b11" + integrity sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg== + dependencies: + flatted "^3.1.0" + rimraf "^3.0.2" + flatted@^2.0.0: version "2.0.2" resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.2.tgz#4575b21e2bcee7434aa9be662f4b7b5f9c2b5138" integrity sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA== +flatted@^3.1.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.1.1.tgz#c4b489e80096d9df1dfc97c79871aea7c617c469" + integrity sha512-zAoAQiudy+r5SvnSw3KJy5os/oRJYHzrzja/tBDqrZtNhUw8bt6y8OBzMWcjWr+8liV8Eb6yOhw8WZ7VFZ5ZzA== + follow-redirects@^1.10.0: version "1.13.2" resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.13.2.tgz#dd73c8effc12728ba5cf4259d760ea5fb83e3147" @@ -2989,10 +3553,10 @@ form-data@~2.3.2: combined-stream "^1.0.6" mime-types "^2.1.12" -fraction.js@^4.1.1: - version "4.1.1" - resolved "https://registry.yarnpkg.com/fraction.js/-/fraction.js-4.1.1.tgz#ac4e520473dae67012d618aab91eda09bcb400ff" - integrity sha512-MHOhvvxHTfRFpF1geTK9czMIZ6xclsEor2wkIGYYq+PxcQqT7vStJqjhe6S1TenZrMZzo+wlqOufBDVepUEgPg== +fraction.js@^4.0.12: + version "4.0.13" + resolved "https://registry.yarnpkg.com/fraction.js/-/fraction.js-4.0.13.tgz#3c1c315fa16b35c85fffa95725a36fa729c69dfe" + integrity sha512-E1fz2Xs9ltlUp+qbiyx9wmt2n9dRzPsS11Jtdb8D2o+cC7wr9xkkKsVKJuBX0ST+LVS+LhLO+SbLJNtfWcJvXA== fragment-cache@^0.2.1: version "0.2.1" @@ -3010,6 +3574,16 @@ fs-extra@^8.1.0: jsonfile "^4.0.0" universalify "^0.1.0" +fs-extra@^9.1.0: + version "9.1.0" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-9.1.0.tgz#5954460c764a8da2094ba3554bf839e6b9a7c86d" + integrity sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ== + dependencies: + at-least-node "^1.0.0" + graceful-fs "^4.2.0" + jsonfile "^6.0.1" + universalify "^2.0.0" + fs-readdir-recursive@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/fs-readdir-recursive/-/fs-readdir-recursive-1.1.0.tgz#e32fc030a2ccee44a6b5371308da54be0b397d27" @@ -3035,7 +3609,7 @@ functional-red-black-tree@^1.0.1: resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327" integrity sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc= -gensync@^1.0.0-beta.2: +gensync@^1.0.0-beta.1, gensync@^1.0.0-beta.2: version "1.0.0-beta.2" resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.2.tgz#32a6ee76c3d7f52d46b2b1ae5d93fea8580a25e0" integrity sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg== @@ -3059,11 +3633,6 @@ get-package-type@^0.1.0: resolved "https://registry.yarnpkg.com/get-package-type/-/get-package-type-0.1.0.tgz#8de2d803cff44df3bc6c456e6668b36c3926e11a" integrity sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q== -get-stream@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" - integrity sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ= - get-stream@^4.0.0, get-stream@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-4.1.0.tgz#c1b255575f3dc21d59bfc79cd3d2b46b1c3a54b5" @@ -3078,6 +3647,11 @@ get-stream@^5.0.0, get-stream@^5.1.0: dependencies: pump "^3.0.0" +get-stream@^6.0.0: + version "6.0.1" + resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7" + integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg== + get-value@^2.0.3, get-value@^2.0.6: version "2.0.6" resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28" @@ -3105,6 +3679,13 @@ glob-parent@^5.0.0, glob-parent@~5.1.0: dependencies: is-glob "^4.0.1" +glob-parent@^5.1.0, glob-parent@^5.1.2: + version "5.1.2" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" + integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== + dependencies: + is-glob "^4.0.1" + glob@^7.0.0, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4: version "7.1.6" resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6" @@ -3117,12 +3698,12 @@ glob@^7.0.0, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4: once "^1.3.0" path-is-absolute "^1.0.0" -global-dirs@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/global-dirs/-/global-dirs-0.1.1.tgz#b319c0dd4607f353f3be9cca4c72fc148c49f445" - integrity sha1-sxnA3UYH81PzvpzKTHL8FIxJ9EU= +global-dirs@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/global-dirs/-/global-dirs-3.0.0.tgz#70a76fe84ea315ab37b1f5576cbde7d48ef72686" + integrity sha512-v8ho2DS5RiCjftj1nD9NmnfaOzTdud7RRnVd9kFNOjqZbISlx5DQ+OrTkywgd0dIt7oFCvKetZSHoHcP3sDdiA== dependencies: - ini "^1.3.4" + ini "2.0.0" globals@^11.1.0: version "11.12.0" @@ -3136,10 +3717,29 @@ globals@^12.1.0: dependencies: type-fest "^0.8.1" -google-protobuf@3.17.1: - version "3.17.1" - resolved "https://registry.yarnpkg.com/google-protobuf/-/google-protobuf-3.17.1.tgz#d5224fe7dc931f1a69cbdc5cb6e3d69ae74da651" - integrity sha512-CHisE5cwd66w6y/K4K7x2N+SSZ0HgPBQwky7lKsj2vr4nXPuXQ2uUZgMF/ctXnd4xHL747Lh8LUgby2nA8gViA== +globals@^13.6.0, globals@^13.9.0: + version "13.9.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-13.9.0.tgz#4bf2bf635b334a173fb1daf7c5e6b218ecdc06cb" + integrity sha512-74/FduwI/JaIrr1H8e71UbDE+5x7pIPs1C2rrwC52SszOo043CsWOZEMW7o2Y58xwm9b+0RBKDxY5n2sUpEFxA== + dependencies: + type-fest "^0.20.2" + +globby@^11.0.3: + version "11.0.3" + resolved "https://registry.yarnpkg.com/globby/-/globby-11.0.3.tgz#9b1f0cb523e171dd1ad8c7b2a9fb4b644b9593cb" + integrity sha512-ffdmosjA807y7+lA1NM0jELARVmYul/715xiILEjo3hBLPTcirgQNnXECn5g3mtR8TOLCVbkfua1Hpen25/Xcg== + dependencies: + array-union "^2.1.0" + dir-glob "^3.0.1" + fast-glob "^3.1.1" + ignore "^5.1.4" + merge2 "^1.3.0" + slash "^3.0.0" + +google-protobuf@3.13.0: + version "3.13.0" + resolved "https://registry.yarnpkg.com/google-protobuf/-/google-protobuf-3.13.0.tgz#909c5983d75dd6101ed57c79e0528d000cdc3251" + integrity sha512-ZIf3qfLFayVrPvAjeKKxO5FRF1/NwRxt6Dko+fWEMuHwHbZx8/fcaAao9b0wCM6kr8qeg2te8XTpyuvKuD9aKw== got@^9.6.0: version "9.6.0" @@ -3173,24 +3773,29 @@ grpc-web@^1.2.1: resolved "https://registry.yarnpkg.com/grpc-web/-/grpc-web-1.2.1.tgz#860051d705bf5baa7b81fcbd14030060bf16b7b9" integrity sha512-ibBaJPzfMVuLPgaST9w0kZl60s+SnkPBQp6QKdpEr85tpc1gXW2QDqSne9xiyiym0logDfdUSm4aX5h9YBA2mw== -gts@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/gts/-/gts-1.1.2.tgz#970003f6633c9c384705dab60251b58f6d659c78" - integrity sha512-WWuagkjlFpSfQfShnlpbiJoKRuFXq9Yoj75Re1KVzd109vWo2RmcxaSe1lDtzNFtQFixcBy5TfV1QirTDfjZRA== +gts@3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/gts/-/gts-3.1.0.tgz#b27ce914191ed6ad34781968d0c77e0ed3042388" + integrity sha512-Pbj3ob1VR1IRlEVEBNtKoQ1wHOa8cZz62KEojK8Fn/qeS2ClWI4gLNfhek3lD68aZSmUEg8TFb6AHXIwUMgyqQ== dependencies: - chalk "^3.0.0" - diff "^4.0.1" - inquirer "^7.0.0" - meow "^5.0.0" + "@typescript-eslint/eslint-plugin" "^4.2.0" + "@typescript-eslint/parser" "^4.2.0" + chalk "^4.1.0" + eslint "^7.10.0" + eslint-config-prettier "^7.0.0" + eslint-plugin-node "^11.1.0" + eslint-plugin-prettier "^3.1.4" + execa "^5.0.0" + inquirer "^7.3.3" + json5 "^2.1.3" + meow "^9.0.0" ncp "^2.0.0" - prettier "^1.19.1" - rimraf "^3.0.0" - tslint "^5.12.0" - tslint-config-prettier "^1.18.0" - update-notifier "^3.0.0" - write-file-atomic "^3.0.0" + prettier "^2.1.2" + rimraf "^3.0.2" + update-notifier "^5.0.0" + write-file-atomic "^3.0.3" -handlebars@^4.7.2: +handlebars@^4.7.7: version "4.7.7" resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.7.7.tgz#9ce33416aad02dbd6c8fafa8240d5d98004945a1" integrity sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA== @@ -3215,6 +3820,11 @@ har-validator@~5.1.3: ajv "^6.12.3" har-schema "^2.0.0" +hard-rejection@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/hard-rejection/-/hard-rejection-2.1.0.tgz#1c6eda5c1685c63942766d79bb40ae773cecd883" + integrity sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA== + has-flag@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" @@ -3290,11 +3900,6 @@ hash.js@^1.0.0, hash.js@^1.0.3: inherits "^2.0.3" minimalistic-assert "^1.0.1" -highlight.js@^9.17.1: - version "9.18.5" - resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-9.18.5.tgz#d18a359867f378c138d6819edfc2a8acd5f29825" - integrity sha512-a5bFyofd/BHCX52/8i8uJkjr9DYwXIPnM/plwI6W7ezItLGqzt7X2G2nXuYSfsIJdkwwj/g9DG1LkcGJI/dDoA== - hmac-drbg@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/hmac-drbg/-/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1" @@ -3305,9 +3910,16 @@ hmac-drbg@^1.0.1: minimalistic-crypto-utils "^1.0.1" hosted-git-info@^2.1.4: - version "2.8.9" - resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.9.tgz#dffc0bf9a21c02209090f2aa69429e1414daf3f9" - integrity sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw== + version "2.8.8" + resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.8.tgz#7539bd4bc1e0e0a895815a2e0262420b12858488" + integrity sha512-f/wzC2QaWBs7t9IYqB4T3sR1xviIViXJRJTWBlx2Gf3g0Xi5vI7Yy4koXQ1c9OYDGHN9sBy1DQ2AB8fqZBWhUg== + +hosted-git-info@^4.0.1: + version "4.0.2" + resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-4.0.2.tgz#5e425507eede4fea846b7262f0838456c4209961" + integrity sha512-c9OGXbZ3guC/xOlCg1Ci/VgWlwsqDv1yMQL1CWqXDL0hDjXuNcq0zuR4xqPSuasI3kqFDhqSyTjREz5gzq0fXg== + dependencies: + lru-cache "^6.0.0" html-encoding-sniffer@^1.0.2: version "1.0.2" @@ -3340,6 +3952,11 @@ human-signals@^1.1.1: resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-1.1.1.tgz#c5b1cd14f50aeae09ab6c59fe63ba3395fe4dfa3" integrity sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw== +human-signals@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0" + integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw== + iconv-lite@0.4.24, iconv-lite@^0.4.24: version "0.4.24" resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" @@ -3352,7 +3969,12 @@ ignore@^4.0.6: resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc" integrity sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg== -import-fresh@^3.0.0: +ignore@^5.1.1, ignore@^5.1.4: + version "5.1.8" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.1.8.tgz#f150a8b50a34289b33e22f5889abd4d8016f0e57" + integrity sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw== + +import-fresh@^3.0.0, import-fresh@^3.2.1: version "3.3.0" resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b" integrity sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw== @@ -3378,10 +4000,10 @@ imurmurhash@^0.1.4: resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" integrity sha1-khi5srkoojixPcT7a21XbyMUU+o= -indent-string@^3.0.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-3.2.0.tgz#4a5fd6d27cc332f37e5419a504dbb837105c9289" - integrity sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok= +indent-string@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-4.0.0.tgz#624f8f4497d619b2d9768531d58f4122854d7251" + integrity sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg== inflight@^1.0.4: version "1.0.6" @@ -3396,12 +4018,17 @@ inherits@2, inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.3: resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== -ini@^1.3.4, ini@~1.3.0: +ini@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/ini/-/ini-2.0.0.tgz#e5fd556ecdd5726be978fa1001862eacb0a94bc5" + integrity sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA== + +ini@~1.3.0: version "1.3.8" resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.8.tgz#a29da425b48806f34767a4efce397269af28432c" integrity sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew== -inquirer@^7.0.0: +inquirer@^7.0.0, inquirer@^7.3.3: version "7.3.3" resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-7.3.3.tgz#04d176b2af04afc157a83fd7c100e98ee0aad003" integrity sha512-JG3eIAj5V9CwcGvuOmoo6LB9kbAYT8HXffUl6memuszlwDC/qvFAJw49XJ5NROSFNPxp3iQg1GqkFhaY/CR0IA== @@ -3482,6 +4109,13 @@ is-core-module@^2.1.0: dependencies: has "^1.0.3" +is-core-module@^2.2.0: + version "2.4.0" + resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.4.0.tgz#8e9fc8e15027b011418026e98f0e6f4d86305cc1" + integrity sha512-6A2fkfq1rfeQZjxrZJGerpLCTHRNEBiSgnu0+obeJpEPZRUooHgsizvzv0ZjJwOz3iWIHdJtVWJ/tmPr3D21/A== + dependencies: + has "^1.0.3" + is-data-descriptor@^0.1.4: version "0.1.4" resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56" @@ -3565,18 +4199,18 @@ is-glob@^4.0.0, is-glob@^4.0.1, is-glob@~4.0.1: dependencies: is-extglob "^2.1.1" -is-installed-globally@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/is-installed-globally/-/is-installed-globally-0.1.0.tgz#0dfd98f5a9111716dd535dda6492f67bf3d25a80" - integrity sha1-Df2Y9akRFxbdU13aZJL2e/PSWoA= +is-installed-globally@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/is-installed-globally/-/is-installed-globally-0.4.0.tgz#9a0fd407949c30f86eb6959ef1b7994ed0b7b520" + integrity sha512-iwGqO3J21aaSkC7jWnHP/difazwS7SFeIqxv6wEtLU8Y5KlzFTjyqcSIT0d8s4+dDhKytsk9PJZ2BkS5eZwQRQ== dependencies: - global-dirs "^0.1.0" - is-path-inside "^1.0.0" + global-dirs "^3.0.0" + is-path-inside "^3.0.2" -is-npm@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/is-npm/-/is-npm-3.0.0.tgz#ec9147bfb629c43f494cf67936a961edec7e8053" - integrity sha512-wsigDr1Kkschp2opC4G3yA6r9EgVA6NjRpWzIi9axXqeIaAATPRJc4uLujXe3Nd9uO8KoDyA4MD6aZSeXTADhA== +is-npm@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/is-npm/-/is-npm-5.0.0.tgz#43e8d65cc56e1b67f8d47262cf667099193f45a8" + integrity sha512-WW/rQLOazUq+ST/bCAVBp/2oMERWLsR7OrKyt052dNDk4DHcDE0/7QSXITlmi+VBcV13DfIbysG3tZJm5RfdBA== is-number@^3.0.0: version "3.0.0" @@ -3590,17 +4224,15 @@ is-number@^7.0.0: resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== -is-obj@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-1.0.1.tgz#3e4729ac1f5fde025cd7d83a896dab9f4f67db0f" - integrity sha1-PkcprB9f3gJc19g6iW2rn09n2w8= +is-obj@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-2.0.0.tgz#473fb05d973705e3fd9620545018ca8e22ef4982" + integrity sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w== -is-path-inside@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-1.0.1.tgz#8ef5b7de50437a3fdca6b4e865ef7aa55cb48036" - integrity sha1-jvW33lBDej/cprToZe96pVy0gDY= - dependencies: - path-is-inside "^1.0.1" +is-path-inside@^3.0.2: + version "3.0.3" + resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-3.0.3.tgz#d231362e53a07ff2b0e0ea7fed049161ffd16283" + integrity sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ== is-plain-obj@^1.1.0: version "1.1.0" @@ -3783,7 +4415,7 @@ jest-config@^25.5.4: pretty-format "^25.5.0" realpath-native "^2.0.0" -jest-diff@^25.2.1, jest-diff@^25.5.0: +jest-diff@^25.5.0: version "25.5.0" resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-25.5.0.tgz#1dd26ed64f96667c068cef026b677dfa01afcfa9" integrity sha512-z1kygetuPiREYdNIumRpAHY6RXiGmp70YHptjdaxTWGmA085W3iCnXNx0DhflK3vwrKmrRWyY1wUpkPMVxMK7A== @@ -3793,6 +4425,16 @@ jest-diff@^25.2.1, jest-diff@^25.5.0: jest-get-type "^25.2.6" pretty-format "^25.5.0" +jest-diff@^26.0.0: + version "26.6.2" + resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-26.6.2.tgz#1aa7468b52c3a68d7d5c5fdcdfcd5e49bd164394" + integrity sha512-6m+9Z3Gv9wN0WFVasqjCL/06+EFCMTqDEUl/b87HYK2rAPTyfz4ZIuSlPhY51PIQRWx5TaxeF1qmXKe9gfN3sA== + dependencies: + chalk "^4.0.0" + diff-sequences "^26.6.2" + jest-get-type "^26.3.0" + pretty-format "^26.6.2" + jest-docblock@^25.3.0: version "25.3.0" resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-25.3.0.tgz#8b777a27e3477cd77a168c05290c471a575623ef" @@ -3840,6 +4482,11 @@ jest-get-type@^25.2.6: resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-25.2.6.tgz#0b0a32fab8908b44d508be81681487dbabb8d877" integrity sha512-DxjtyzOHjObRM+sM1knti6or+eOgcGU4xVSb2HNP1TqO4ahsT+rqZg+nyqHWJSvWgKC5cG3QjGFBqxLghiF/Ig== +jest-get-type@^26.3.0: + version "26.3.0" + resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-26.3.0.tgz#e97dc3c3f53c2b406ca7afaed4493b1d099199e0" + integrity sha512-TpfaviN1R2pQWkIihlfEanwOXK0zcxrKEE4MlU6Tn7keoXdN6/3gK/xl0yEh8DOunn5pOVGKf8hB4R9gVh04ig== + jest-haste-map@^25.5.1: version "25.5.1" resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-25.5.1.tgz#1df10f716c1d94e60a1ebf7798c9fb3da2620943" @@ -4093,11 +4740,6 @@ jest@^25.1.0: import-local "^3.0.2" jest-cli "^25.5.4" -jquery@^3.4.1: - version "3.5.1" - resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.5.1.tgz#d7b4d08e1bfdb86ad2f1a3d039ea17304717abb5" - integrity sha512-XwIBPqcMn57FxfT+Go5pzySnm4KWkT1Tv7gjrpT1srtf8Weynl6R273VJ5GjkRb51IzMp5nbaPjJXMWeju2MKg== - js-tokens@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" @@ -4168,11 +4810,6 @@ json-buffer@3.0.0: resolved "https://registry.yarnpkg.com/json-buffer/-/json-buffer-3.0.0.tgz#5b1f397afc75d677bde8bcfc0e47e1f9a3d9a898" integrity sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg= -json-parse-better-errors@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz#bb867cfb3450e69107c131d1c514bab3dc8bcaa9" - integrity sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw== - json-parse-even-better-errors@^2.3.0: version "2.3.1" resolved "https://registry.yarnpkg.com/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz#7c47805a94319928e05777405dc12e1f7a4ee02d" @@ -4183,6 +4820,11 @@ json-schema-traverse@^0.4.1: resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== +json-schema-traverse@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz#ae7bcb3656ab77a73ba5c49bf654f38e6b6860e2" + integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug== + json-schema@0.2.3: version "0.2.3" resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" @@ -4198,7 +4840,7 @@ json-stringify-safe@^5.0.1, json-stringify-safe@~5.0.1: resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" integrity sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus= -json5@2.x, json5@^2.1.2: +json5@2.x, json5@^2.1.2, json5@^2.1.3, json5@^2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.0.tgz#2dfefe720c6ba525d9ebd909950f0515316c89a3" integrity sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA== @@ -4219,6 +4861,15 @@ jsonfile@^4.0.0: optionalDependencies: graceful-fs "^4.1.6" +jsonfile@^6.0.1: + version "6.1.0" + resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-6.1.0.tgz#bc55b2634793c679ec6403094eb13698a6ec0aae" + integrity sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ== + dependencies: + universalify "^2.0.0" + optionalDependencies: + graceful-fs "^4.1.6" + jsprim@^1.2.2: version "1.4.1" resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2" @@ -4255,7 +4906,7 @@ kind-of@^5.0.0: resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-5.1.0.tgz#729c91e2d857b7a419a1f9aa65685c4c33f5845d" integrity sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw== -kind-of@^6.0.0, kind-of@^6.0.2: +kind-of@^6.0.0, kind-of@^6.0.2, kind-of@^6.0.3: version "6.0.3" resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd" integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw== @@ -4265,7 +4916,7 @@ kleur@^3.0.3: resolved "https://registry.yarnpkg.com/kleur/-/kleur-3.0.3.tgz#a79c9ecc86ee1ce3fa6206d1216c501f147fc07e" integrity sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w== -latest-version@^5.0.0: +latest-version@^5.1.0: version "5.1.0" resolved "https://registry.yarnpkg.com/latest-version/-/latest-version-5.1.0.tgz#119dfe908fe38d15dfa43ecd13fa12ec8832face" integrity sha512-weT+r0kTkRQdCdYCNtkMwWXQTMEswKrFBkm4ckQOMVhhqhIMI1UT2hMj+1iigIhgSZm5gTmrRXBNoGUgaTY1xA== @@ -4285,21 +4936,19 @@ levn@^0.3.0, levn@~0.3.0: prelude-ls "~1.1.2" type-check "~0.3.2" +levn@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/levn/-/levn-0.4.1.tgz#ae4562c007473b932a6200d403268dd2fffc6ade" + integrity sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ== + dependencies: + prelude-ls "^1.2.1" + type-check "~0.4.0" + lines-and-columns@^1.1.6: version "1.1.6" resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.1.6.tgz#1c00c743b433cd0a4e80758f7b64a57440d9ff00" integrity sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA= -load-json-file@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-4.0.0.tgz#2f5f45ab91e33216234fd53adab668eb4ec0993b" - integrity sha1-L19Fq5HjMhYjT9U62rZo607AmTs= - dependencies: - graceful-fs "^4.1.2" - parse-json "^4.0.0" - pify "^3.0.0" - strip-bom "^3.0.0" - loader-utils@^1.0.2, loader-utils@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-1.4.0.tgz#c579b5e34cb34b1a74edc6c1fb36bfa371d5a613" @@ -4318,14 +4967,6 @@ loader-utils@^2.0.0: emojis-list "^3.0.0" json5 "^2.1.2" -locate-path@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e" - integrity sha1-K1aLJl7slExtnA3pw9u7ygNUzY4= - dependencies: - p-locate "^2.0.0" - path-exists "^3.0.0" - locate-path@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-5.0.0.tgz#1afba396afd676a6d42504d0a67a3a7eb9f62aa0" @@ -4333,17 +4974,42 @@ locate-path@^5.0.0: dependencies: p-locate "^4.1.0" +lodash.clonedeep@^4.5.0: + version "4.5.0" + resolved "https://registry.yarnpkg.com/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz#e23f3f9c4f8fbdde872529c1071857a086e5ccef" + integrity sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8= + +lodash.debounce@^4.0.8: + version "4.0.8" + resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af" + integrity sha1-gteb/zCmfEAF/9XiUVMArZyk168= + lodash.memoize@4.x: version "4.1.2" resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe" integrity sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4= +lodash.merge@^4.6.2: + version "4.6.2" + resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" + integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== + lodash.sortby@^4.7.0: version "4.7.0" resolved "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438" integrity sha1-7dFMgk4sycHgsKG0K7UhBRakJDg= -lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19: +lodash.truncate@^4.4.2: + version "4.4.2" + resolved "https://registry.yarnpkg.com/lodash.truncate/-/lodash.truncate-4.4.2.tgz#5a350da0b1113b837ecfffd5812cbe58d6eae193" + integrity sha1-WjUNoLERO4N+z//VgSy+WNbq4ZM= + +lodash@^4.17.14, lodash@^4.17.19: + version "4.17.20" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.20.tgz#b44a9b6297bcb698f1c51a3545a2b3b368d59c52" + integrity sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA== + +lodash@^4.17.21: version "4.17.21" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== @@ -4355,14 +5021,6 @@ lolex@^5.0.0: dependencies: "@sinonjs/commons" "^1.7.0" -loud-rejection@^1.0.0: - version "1.6.0" - resolved "https://registry.yarnpkg.com/loud-rejection/-/loud-rejection-1.6.0.tgz#5b46f80147edee578870f086d04821cf998e551f" - integrity sha1-W0b4AUft7leIcPCG0Eghz5mOVR8= - dependencies: - currently-unhandled "^0.4.1" - signal-exit "^3.0.0" - lowercase-keys@^1.0.0, lowercase-keys@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-1.0.1.tgz#6f9e30b47084d971a7c820ff15a6c5167b74c26f" @@ -4373,26 +5031,25 @@ lowercase-keys@^2.0.0: resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-2.0.0.tgz#2603e78b7b4b0006cbca2fbcc8a3202558ac9479" integrity sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA== -lru-cache@^4.0.1: - version "4.1.5" - resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.5.tgz#8bbe50ea85bed59bc9e33dcab8235ee9bcf443cd" - integrity sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g== +lru-cache@^5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-5.1.1.tgz#1da27e6710271947695daf6848e847f01d84b920" + integrity sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w== + dependencies: + yallist "^3.0.2" + +lru-cache@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94" + integrity sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA== dependencies: - pseudomap "^1.0.2" - yallist "^2.1.2" + yallist "^4.0.0" -lunr@^2.3.8: +lunr@^2.3.9: version "2.3.9" resolved "https://registry.yarnpkg.com/lunr/-/lunr-2.3.9.tgz#18b123142832337dd6e964df1a5a7707b25d35e1" integrity sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow== -make-dir@^1.0.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-1.3.0.tgz#79c1033b80515bd6d24ec9933e860ca75ee27f0c" - integrity sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ== - dependencies: - pify "^3.0.0" - make-dir@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-2.1.0.tgz#5f0310e18b8be898cc07009295a30ae41e91e6f5" @@ -4430,10 +5087,10 @@ map-obj@^1.0.0: resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-1.0.1.tgz#d933ceb9205d82bdcf4886f6742bdc2b4dea146d" integrity sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0= -map-obj@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-2.0.0.tgz#a65cd29087a92598b8791257a523e021222ac1f9" - integrity sha1-plzSkIepJZi4eRJXpSPgISIqwfk= +map-obj@^4.0.0: + version "4.2.1" + resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-4.2.1.tgz#e4ea399dbc979ae735c83c863dd31bdf364277b7" + integrity sha512-+WA2/1sPmDj1dlvvJmB5G6JKfY9dpn7EVBUL06+y6PoljPkh+6V1QihwxNkbcGxCRjt2b0F9K0taiCuo7MbdFQ== map-visit@^1.0.0: version "1.0.0" @@ -4442,23 +5099,22 @@ map-visit@^1.0.0: dependencies: object-visit "^1.0.0" -marked@^0.8.0: - version "0.8.2" - resolved "https://registry.yarnpkg.com/marked/-/marked-0.8.2.tgz#4faad28d26ede351a7a1aaa5fec67915c869e355" - integrity sha512-EGwzEeCcLniFX51DhTpmTom+dSA/MG/OBUDjnWtHbEnjAH180VzUeAw+oE4+Zv+CoYBWyRlYOTR0N8SO9R1PVw== +marked@~2.0.3: + version "2.0.7" + resolved "https://registry.yarnpkg.com/marked/-/marked-2.0.7.tgz#bc5b857a09071b48ce82a1f7304913a993d4b7d1" + integrity sha512-BJXxkuIfJchcXOJWTT2DOL+yFWifFv2yGYOUzvXg8Qz610QKw+sHCvTMYwA+qWGhlA2uivBezChZ/pBy1tWdkQ== -mathjs@9.4.1: - version "9.4.1" - resolved "https://registry.yarnpkg.com/mathjs/-/mathjs-9.4.1.tgz#df86a7996513e270b55f58082d42fac4aefba68b" - integrity sha512-zAepVEfVyv4C7PM8gZ5jDzC7bZscdIcqTKsNqiqmFP+0SFHFffWT84l2v3z2zT41n9Rmdn3aWR8/bpFlnNjC6g== +mathjs@7.5.1: + version "7.5.1" + resolved "https://registry.yarnpkg.com/mathjs/-/mathjs-7.5.1.tgz#eb125295310a99ddcaf6145c47b09aab36e48274" + integrity sha512-H2q/Dq0qxBLMw+G84SSXmGqo/znihuxviGgAQwAcyeFLwK2HksvSGNx4f3dllZF51bWOnu2op60VZxH2Sb51Pw== dependencies: - "@babel/runtime" "^7.14.0" - complex.js "^2.0.13" + complex.js "^2.0.11" decimal.js "^10.2.1" escape-latex "^1.2.0" - fraction.js "^4.1.1" + fraction.js "^4.0.12" javascript-natural-sort "^0.7.1" - seedrandom "^3.0.5" + seed-random "^2.2.0" tiny-emitter "^2.1.0" typed-function "^2.0.0" @@ -4479,26 +5135,34 @@ memory-fs@^0.5.0: errno "^0.1.3" readable-stream "^2.0.1" -meow@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/meow/-/meow-5.0.0.tgz#dfc73d63a9afc714a5e371760eb5c88b91078aa4" - integrity sha512-CbTqYU17ABaLefO8vCU153ZZlprKYWDljcndKKDCFcYQITzWCXZAVk4QMFZPgvzrnUQ3uItnIE/LoUOwrT15Ig== - dependencies: - camelcase-keys "^4.0.0" - decamelize-keys "^1.0.0" - loud-rejection "^1.0.0" - minimist-options "^3.0.1" - normalize-package-data "^2.3.4" - read-pkg-up "^3.0.0" - redent "^2.0.0" - trim-newlines "^2.0.0" - yargs-parser "^10.0.0" +meow@^9.0.0: + version "9.0.0" + resolved "https://registry.yarnpkg.com/meow/-/meow-9.0.0.tgz#cd9510bc5cac9dee7d03c73ee1f9ad959f4ea364" + integrity sha512-+obSblOQmRhcyBt62furQqRAQpNyWXo8BuQ5bN7dG8wmwQ+vwHKp/rCFD4CrTP8CsDQD1sjoZ94K417XEUk8IQ== + dependencies: + "@types/minimist" "^1.2.0" + camelcase-keys "^6.2.2" + decamelize "^1.2.0" + decamelize-keys "^1.1.0" + hard-rejection "^2.1.0" + minimist-options "4.1.0" + normalize-package-data "^3.0.0" + read-pkg-up "^7.0.1" + redent "^3.0.0" + trim-newlines "^3.0.0" + type-fest "^0.18.0" + yargs-parser "^20.2.3" merge-stream@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== +merge2@^1.3.0: + version "1.4.1" + resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae" + integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== + micromatch@4.x, micromatch@^4.0.0, micromatch@^4.0.2: version "4.0.2" resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.2.tgz#4fcb0999bf9fbc2fcbdd212f6d629b9a56c39259" @@ -4556,6 +5220,11 @@ mimic-response@^1.0.0, mimic-response@^1.0.1: resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-1.0.1.tgz#4923538878eef42063cb8a3e3b0798781487ab1b" integrity sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ== +min-indent@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/min-indent/-/min-indent-1.0.1.tgz#a63f681673b30571fbe8bc25686ae746eefa9869" + integrity sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg== + minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7" @@ -4573,13 +5242,14 @@ minimatch@^3.0.0, minimatch@^3.0.4: dependencies: brace-expansion "^1.1.7" -minimist-options@^3.0.1: - version "3.0.2" - resolved "https://registry.yarnpkg.com/minimist-options/-/minimist-options-3.0.2.tgz#fba4c8191339e13ecf4d61beb03f070103f3d954" - integrity sha512-FyBrT/d0d4+uiZRbqznPXqw3IpZZG3gl3wKWiX784FycUKVwBt0uLBFkQrtE4tZOrgo78nZp2jnKz3L65T5LdQ== +minimist-options@4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/minimist-options/-/minimist-options-4.1.0.tgz#c0655713c53a8a2ebd77ffa247d342c40f010619" + integrity sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A== dependencies: arrify "^1.0.1" is-plain-obj "^1.1.0" + kind-of "^6.0.3" minimist@^1.1.1, minimist@^1.2.0, minimist@^1.2.5: version "1.2.5" @@ -4616,7 +5286,7 @@ mute-stream@0.0.8: resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.8.tgz#1630c42b2251ff81e2a283de96a5497ea92e5e0d" integrity sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA== -nan@^2.13.2: +nan@^2.13.2, nan@^2.14.0: version "2.14.2" resolved "https://registry.yarnpkg.com/nan/-/nan-2.14.2.tgz#f5376400695168f4cc694ac9393d0c9585eeea19" integrity sha512-M2ufzIiINKCuDfBSAUr1vWQ+vuVcA9kqx8JJUsbQi6yf1uGRyb7HfpdfUr5qLXf3B/t8dPvcjhKMmlfnP47EzQ== @@ -4669,16 +5339,6 @@ nice-try@^1.0.4: resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366" integrity sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ== -node-addon-api@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-2.0.2.tgz#432cfa82962ce494b132e9d72a15b29f71ff5d32" - integrity sha512-Ntyt4AIXyaLIuMHF6IOoTakB3K+RWxwtsHNRxllEoA6vPwP9o4866g6YWDLUdnucilZhmkxiHwHr11gAENw+QA== - -node-gyp-build@^4.2.0: - version "4.2.3" - resolved "https://registry.yarnpkg.com/node-gyp-build/-/node-gyp-build-4.2.3.tgz#ce6277f853835f718829efb47db20f3e4d9c4739" - integrity sha512-MN6ZpzmfNCRM+3t57PTJHgHyw/h4OWnZ6mR8P5j/uZtqQr46RRuDE/P+g3n0YR/AiYXeWixZZzaip77gdICfRg== - node-int64@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" @@ -4705,7 +5365,7 @@ node-releases@^1.1.71: resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.72.tgz#14802ab6b1039a79a0c7d662b610a5bbd76eacbe" integrity sha512-LLUo+PpH3dU6XizX3iVoubUNheF/owjXCZZ5yACDxNnPtgFuludV1ZL3ayK1kVep42Rmm0+R9/Y60NQbZ2bifw== -normalize-package-data@^2.3.2, normalize-package-data@^2.3.4, normalize-package-data@^2.5.0: +normalize-package-data@^2.5.0: version "2.5.0" resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.5.0.tgz#e66db1838b200c1dfc233225d12cb36520e234a8" integrity sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA== @@ -4715,6 +5375,16 @@ normalize-package-data@^2.3.2, normalize-package-data@^2.3.4, normalize-package- semver "2 || 3 || 4 || 5" validate-npm-package-license "^3.0.1" +normalize-package-data@^3.0.0: + version "3.0.2" + resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-3.0.2.tgz#cae5c410ae2434f9a6c1baa65d5bc3b9366c8699" + integrity sha512-6CdZocmfGaKnIHPVFhJJZ3GuR8SsLKvDANFp47Jmy51aKIr8akjAWTSxtpI+MBgBFdSMRyo4hMpDlT6dTffgZg== + dependencies: + hosted-git-info "^4.0.1" + resolve "^1.20.0" + semver "^7.3.4" + validate-npm-package-license "^3.0.1" + normalize-path@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" @@ -4728,9 +5398,9 @@ normalize-path@^3.0.0, normalize-path@~3.0.0: integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== normalize-url@^4.1.0: - version "4.5.1" - resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-4.5.1.tgz#0dd90cf1288ee1d1313b87081c9a5932ee48518a" - integrity sha512-9UZCFRHQdNrfTpGg8+1INIg93B6zE0aXMVFkw1WFwvO4SlZywU6aLg5Of0Ap/PgcbSw4LNxvMWXMeugwMCX0AA== + version "4.5.0" + resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-4.5.0.tgz#453354087e6ca96957bd8f5baf753f5982142129" + integrity sha512-2s47yzUxdexf1OhyRi4Em83iQk0aPvwTddtFz4hnSSw9dCEsLEGf6SwIO8ss/19S9iBb5sJaOuTvTGDeZI00BQ== npm-run-path@^2.0.0: version "2.0.2" @@ -4739,7 +5409,7 @@ npm-run-path@^2.0.0: dependencies: path-key "^2.0.0" -npm-run-path@^4.0.0: +npm-run-path@^4.0.0, npm-run-path@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-4.0.1.tgz#b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea" integrity sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw== @@ -4806,13 +5476,20 @@ once@^1.3.0, once@^1.3.1, once@^1.4.0: dependencies: wrappy "1" -onetime@^5.1.0: +onetime@^5.1.0, onetime@^5.1.2: version "5.1.2" resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.2.tgz#d0e96ebb56b07476df1dd9c4806e5237985ca45e" integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg== dependencies: mimic-fn "^2.1.0" +onigasm@^2.2.5: + version "2.2.5" + resolved "https://registry.yarnpkg.com/onigasm/-/onigasm-2.2.5.tgz#cc4d2a79a0fa0b64caec1f4c7ea367585a676892" + integrity sha512-F+th54mPc0l1lp1ZcFMyL/jTs2Tlq4SqIHKIXGZOR/VkHkF9A7Fr5rRr5+ZG/lWeRsyrClLYRq7s/yFQ/XhWCA== + dependencies: + lru-cache "^5.1.1" + optionator@^0.8.1, optionator@^0.8.3: version "0.8.3" resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.3.tgz#84fa1d036fe9d3c7e21d99884b601167ec8fb495" @@ -4825,6 +5502,18 @@ optionator@^0.8.1, optionator@^0.8.3: type-check "~0.3.2" word-wrap "~1.2.3" +optionator@^0.9.1: + version "0.9.1" + resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.9.1.tgz#4f236a6373dae0566a6d43e1326674f50c291499" + integrity sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw== + dependencies: + deep-is "^0.1.3" + fast-levenshtein "^2.0.6" + levn "^0.4.1" + prelude-ls "^1.2.1" + type-check "^0.4.0" + word-wrap "^1.2.3" + os-tmpdir@~1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" @@ -4850,13 +5539,6 @@ p-finally@^2.0.0: resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-2.0.1.tgz#bd6fcaa9c559a096b680806f4d657b3f0f240561" integrity sha512-vpm09aKwq6H9phqRQzecoDpD8TmVyGw70qmWlyq5onxY7tqyTTFVvxMykxQSQKILBSFlbXpypIw2T1Ml7+DDtw== -p-limit@^1.1.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.3.0.tgz#b86bd5f0c25690911c7590fcbfc2010d54b3ccb8" - integrity sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q== - dependencies: - p-try "^1.0.0" - p-limit@^2.2.0: version "2.3.0" resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1" @@ -4864,13 +5546,6 @@ p-limit@^2.2.0: dependencies: p-try "^2.0.0" -p-locate@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43" - integrity sha1-IKAQOyIqcMj9OcwuWAaA893l7EM= - dependencies: - p-limit "^1.1.0" - p-locate@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-4.1.0.tgz#a3428bb7088b3a60292f66919278b7c297ad4f07" @@ -4878,11 +5553,6 @@ p-locate@^4.1.0: dependencies: p-limit "^2.2.0" -p-try@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3" - integrity sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M= - p-try@^2.0.0: version "2.2.0" resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" @@ -4916,14 +5586,6 @@ parse-asn1@^5.0.0, parse-asn1@^5.1.5: pbkdf2 "^3.0.3" safe-buffer "^5.1.1" -parse-json@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-4.0.0.tgz#be35f5425be1f7f6c747184f98a788cb99477ee0" - integrity sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA= - dependencies: - error-ex "^1.3.1" - json-parse-better-errors "^1.0.1" - parse-json@^5.0.0: version "5.2.0" resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-5.2.0.tgz#c76fc66dee54231c962b22bcc8a72cf2f99753cd" @@ -4949,11 +5611,6 @@ path-dirname@^1.0.0: resolved "https://registry.yarnpkg.com/path-dirname/-/path-dirname-1.0.2.tgz#cc33d24d525e099a5388c0336c6e32b9160609e0" integrity sha1-zDPSTVJeCZpTiMAzbG4yuRYGCeA= -path-exists@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" - integrity sha1-zg6+ql94yxiSXqfYENe1mwEP1RU= - path-exists@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" @@ -4964,11 +5621,6 @@ path-is-absolute@^1.0.0: resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18= -path-is-inside@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/path-is-inside/-/path-is-inside-1.0.2.tgz#365417dede44430d1c11af61027facf074bdfc53" - integrity sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM= - path-key@^2.0.0, path-key@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" @@ -4984,12 +5636,10 @@ path-parse@^1.0.6: resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c" integrity sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw== -path-type@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/path-type/-/path-type-3.0.0.tgz#cef31dc8e0a1a3bb0d105c0cd97cf3bf47f4e36f" - integrity sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg== - dependencies: - pify "^3.0.0" +path-type@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b" + integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw== pbkdf2@^3.0.3, pbkdf2@^3.0.9: version "3.1.1" @@ -5012,11 +5662,6 @@ picomatch@^2.0.4, picomatch@^2.0.5, picomatch@^2.2.1: resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.2.2.tgz#21f333e9b6b8eaff02468f5146ea406d345f4dad" integrity sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg== -pify@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/pify/-/pify-3.0.0.tgz#e5a4acd2c101fdf3d9a4d07f0dbc4db49dd28176" - integrity sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY= - pify@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/pify/-/pify-4.0.1.tgz#4b2cd25c50d598735c50292224fd8c6df41e3231" @@ -5046,6 +5691,11 @@ posix-character-classes@^0.1.0: resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab" integrity sha1-AerA/jta9xoqbAL+q7jB/vfgDqs= +prelude-ls@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" + integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== + prelude-ls@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" @@ -5056,12 +5706,19 @@ prepend-http@^2.0.0: resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897" integrity sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc= -prettier@^1.19.1: - version "1.19.1" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.19.1.tgz#f7d7f5ff8a9cd872a7be4ca142095956a60797cb" - integrity sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew== +prettier-linter-helpers@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz#d23d41fe1375646de2d0104d3454a3008802cf7b" + integrity sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w== + dependencies: + fast-diff "^1.1.2" + +prettier@^2.1.2: + version "2.3.1" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.3.1.tgz#76903c3f8c4449bc9ac597acefa24dc5ad4cbea6" + integrity sha512-p+vNbgpLjif/+D+DwAZAbndtRrR0md0MwfmOVN9N+2RgyACMT+7tfaRnT+WDPkqnuVwleyuBIG2XBxKDme3hPA== -pretty-format@^25.2.1, pretty-format@^25.5.0: +pretty-format@^25.5.0: version "25.5.0" resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-25.5.0.tgz#7873c1d774f682c34b8d48b6743a2bf2ac55791a" integrity sha512-kbo/kq2LQ/A/is0PQwsEHM7Ca6//bGPPvU6UnsdDRSKTWxT/ru/xb88v4BJf6a69H+uTytOEsTusT9ksd/1iWQ== @@ -5071,6 +5728,16 @@ pretty-format@^25.2.1, pretty-format@^25.5.0: ansi-styles "^4.0.0" react-is "^16.12.0" +pretty-format@^26.0.0, pretty-format@^26.6.2: + version "26.6.2" + resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-26.6.2.tgz#e35c2705f14cb7fe2fe94fa078345b444120fc93" + integrity sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg== + dependencies: + "@jest/types" "^26.6.2" + ansi-regex "^5.0.0" + ansi-styles "^4.0.0" + react-is "^17.0.1" + process-nextick-args@~2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2" @@ -5094,11 +5761,6 @@ prr@~1.0.1: resolved "https://registry.yarnpkg.com/prr/-/prr-1.0.1.tgz#d3fc114ba06995a45ec6893f484ceb1d78f5f476" integrity sha1-0/wRS6BplaRexok/SEzrHXj19HY= -pseudomap@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3" - integrity sha1-8FKijacOYYkX7wqKw0wa5aaChrM= - psl@^1.1.28: version "1.8.0" resolved "https://registry.yarnpkg.com/psl/-/psl-1.8.0.tgz#9326f8bcfb013adcc005fdff056acce020e51c24" @@ -5138,15 +5800,27 @@ punycode@^2.1.0, punycode@^2.1.1: resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== +pupa@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/pupa/-/pupa-2.1.1.tgz#f5e8fd4afc2c5d97828faa523549ed8744a20d62" + integrity sha512-l1jNAspIBSFqbT+y+5FosojNpVpF94nlI+wDUpqP9enwOTfHx9f0gh5nB96vl+6yTpsJsypeNrwfzPrKuHB41A== + dependencies: + escape-goat "^2.0.0" + qs@~6.5.2: version "6.5.2" resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36" integrity sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA== -quick-lru@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/quick-lru/-/quick-lru-1.1.0.tgz#4360b17c61136ad38078397ff11416e186dcfbb8" - integrity sha1-Q2CxfGETatOAeDl/8RQW4Ybc+7g= +queue-microtask@^1.2.2: + version "1.2.3" + resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243" + integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A== + +quick-lru@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/quick-lru/-/quick-lru-4.0.1.tgz#5b8878f113a58217848c6482026c73e1ba57727f" + integrity sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g== randombytes@^2.0.0, randombytes@^2.0.1, randombytes@^2.0.5: version "2.1.0" @@ -5178,13 +5852,10 @@ react-is@^16.12.0: resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4" integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ== -read-pkg-up@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-3.0.0.tgz#3ed496685dba0f8fe118d0691dc51f4a1ff96f07" - integrity sha1-PtSWaF26D4/hGNBpHcUfSh/5bwc= - dependencies: - find-up "^2.0.0" - read-pkg "^3.0.0" +react-is@^17.0.1: + version "17.0.2" + resolved "https://registry.yarnpkg.com/react-is/-/react-is-17.0.2.tgz#e691d4a8e9c789365655539ab372762b0efb54f0" + integrity sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w== read-pkg-up@^7.0.1: version "7.0.1" @@ -5195,15 +5866,6 @@ read-pkg-up@^7.0.1: read-pkg "^5.2.0" type-fest "^0.8.1" -read-pkg@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-3.0.0.tgz#9cbc686978fee65d16c00e2b19c237fcf6e38389" - integrity sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k= - dependencies: - load-json-file "^4.0.0" - normalize-package-data "^2.3.2" - path-type "^3.0.0" - read-pkg@^5.2.0: version "5.2.0" resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-5.2.0.tgz#7bf295438ca5a33e56cd30e053b34ee7250c93cc" @@ -5264,13 +5926,13 @@ rechoir@^0.6.2: dependencies: resolve "^1.1.6" -redent@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/redent/-/redent-2.0.0.tgz#c1b2007b42d57eb1389079b3c8333639d5e1ccaa" - integrity sha1-wbIAe0LVfrE4kHmzyDM2OdXhzKo= +redent@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/redent/-/redent-3.0.0.tgz#e557b7998316bb53c9f1f56fa626352c6963059f" + integrity sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg== dependencies: - indent-string "^3.0.0" - strip-indent "^2.0.0" + indent-string "^4.0.0" + strip-indent "^3.0.0" regenerate-unicode-properties@^8.2.0: version "8.2.0" @@ -5309,6 +5971,11 @@ regexpp@^2.0.1: resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-2.0.1.tgz#8d19d31cf632482b589049f8281f93dbcba4d07f" integrity sha512-lv0M6+TkDVniA3aD1Eg0DVpfU/booSu7Eev3TDO/mZKHBfVjgCGTV4t4buppESEYDtkArYFOxTJWv6S5C+iaNw== +regexpp@^3.0.0, regexpp@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-3.1.0.tgz#206d0ad0a5648cffbdb8ae46438f3dc51c9f78e2" + integrity sha512-ZOIzd8yVsQQA7j8GCSlPGXwg5PfmA1mrq0JP4nGhh54LaKN3xdai/vHUDu74pKwV8OxseMS65u2NImosQcSD0Q== + regexpu-core@^4.7.1: version "4.7.1" resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-4.7.1.tgz#2dea5a9a07233298fbf0db91fa9abc4c6e0f8ad6" @@ -5409,6 +6076,11 @@ require-directory@^2.1.1: resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I= +require-from-string@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.2.tgz#89a7fdd938261267318eafe14f9c32e598c36909" + integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw== + require-main-filename@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b" @@ -5449,6 +6121,14 @@ resolve@^1.1.6, resolve@^1.10.0, resolve@^1.17.0, resolve@^1.3.2: is-core-module "^2.1.0" path-parse "^1.0.6" +resolve@^1.10.1, resolve@^1.14.2, resolve@^1.20.0: + version "1.20.0" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.20.0.tgz#629a013fb3f70755d6f0b7935cc1c2c5378b1975" + integrity sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A== + dependencies: + is-core-module "^2.2.0" + path-parse "^1.0.6" + responselike@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/responselike/-/responselike-1.0.2.tgz#918720ef3b631c5642be068f15ade5a46f4ba1e7" @@ -5469,6 +6149,11 @@ ret@~0.1.10: resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" integrity sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg== +reusify@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76" + integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== + rimraf@2.6.3: version "2.6.3" resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.3.tgz#b2d104fe0d8fb27cf9e0a1cda8262dd3833c6cab" @@ -5476,7 +6161,7 @@ rimraf@2.6.3: dependencies: glob "^7.1.3" -rimraf@^3.0.0: +rimraf@^3.0.0, rimraf@^3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== @@ -5501,6 +6186,13 @@ run-async@^2.4.0: resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.4.1.tgz#8440eccf99ea3e70bd409d49aab88e10c189a455" integrity sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ== +run-parallel@^1.1.9: + version "1.2.0" + resolved "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.2.0.tgz#66d1368da7bdf921eb9d95bd1a9229e7f21a43ee" + integrity sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA== + dependencies: + queue-microtask "^1.2.2" + rxjs@^6.6.0: version "6.6.3" resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.6.3.tgz#8ca84635c4daa900c0d3967a6ee7ac60271ee552" @@ -5561,38 +6253,43 @@ schema-utils@^2.6.5: ajv "^6.12.4" ajv-keywords "^3.5.2" -secp256k1@^4.0.2: - version "4.0.2" - resolved "https://registry.yarnpkg.com/secp256k1/-/secp256k1-4.0.2.tgz#15dd57d0f0b9fdb54ac1fa1694f40e5e9a54f4a1" - integrity sha512-UDar4sKvWAksIlfX3xIaQReADn+WFnHvbVujpcbr+9Sf/69odMwy2MUsz5CKLQgX9nsIyrjuxL2imVyoNHa3fg== +secp256k1@^3.8.0: + version "3.8.0" + resolved "https://registry.yarnpkg.com/secp256k1/-/secp256k1-3.8.0.tgz#28f59f4b01dbee9575f56a47034b7d2e3b3b352d" + integrity sha512-k5ke5avRZbtl9Tqx/SA7CbY3NF6Ro+Sj9cZxezFzuBlLDmyqPiL8hJJ+EmzD8Ig4LUDByHJ3/iPOVoRixs/hmw== dependencies: + bindings "^1.5.0" + bip66 "^1.1.5" + bn.js "^4.11.8" + create-hash "^1.2.0" + drbg.js "^1.0.1" elliptic "^6.5.2" - node-addon-api "^2.0.0" - node-gyp-build "^4.2.0" + nan "^2.14.0" + safe-buffer "^5.1.2" secure-random@^1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/secure-random/-/secure-random-1.1.2.tgz#ed103b460a851632d420d46448b2a900a41e7f7c" integrity sha512-H2bdSKERKdBV1SwoqYm6C0y+9EA94v6SUBOWO8kDndc4NoUih7Dv6Tsgma7zO1lv27wIvjlD0ZpMQk7um5dheQ== -seedrandom@^3.0.5: - version "3.0.5" - resolved "https://registry.yarnpkg.com/seedrandom/-/seedrandom-3.0.5.tgz#54edc85c95222525b0c7a6f6b3543d8e0b3aa0a7" - integrity sha512-8OwmbklUNzwezjGInmZ+2clQmExQPvomqjL7LFqOYqtmuxRgQYqOD3mHaU+MvZn5FLUeVxVfQjwLZW/n/JFuqg== +seed-random@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/seed-random/-/seed-random-2.2.0.tgz#2a9b19e250a817099231a5b99a4daf80b7fbed54" + integrity sha1-KpsZ4lCoFwmSMaW5mk2vgLf77VQ= -semver-diff@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/semver-diff/-/semver-diff-2.1.0.tgz#4bbb8437c8d37e4b0cf1a68fd726ec6d645d6d36" - integrity sha1-S7uEN8jTfksM8aaP1ybsbWRdbTY= +semver-diff@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/semver-diff/-/semver-diff-3.1.1.tgz#05f77ce59f325e00e2706afd67bb506ddb1ca32b" + integrity sha512-GX0Ix/CJcHyB8c4ykpHGIAvLyOwOobtM/8d+TQkAd81/bEjgPHrfba41Vpesr7jX/t8Uh+R3EX9eAS5be+jQYg== dependencies: - semver "^5.0.3" + semver "^6.3.0" -"semver@2 || 3 || 4 || 5", semver@^5.0.3, semver@^5.3.0, semver@^5.5.0, semver@^5.5.1, semver@^5.6.0: +"semver@2 || 3 || 4 || 5", semver@^5.3.0, semver@^5.4.1, semver@^5.5.0, semver@^5.5.1, semver@^5.6.0: version "5.7.1" resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== -semver@6.x, semver@^6.0.0, semver@^6.1.2, semver@^6.2.0, semver@^6.3.0: +semver@6.x, semver@^6.0.0, semver@^6.1.0, semver@^6.1.1, semver@^6.1.2, semver@^6.2.0, semver@^6.3.0: version "6.3.0" resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== @@ -5602,6 +6299,13 @@ semver@7.0.0: resolved "https://registry.yarnpkg.com/semver/-/semver-7.0.0.tgz#5f3ca35761e47e05b206c6daff2cf814f0316b8e" integrity sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A== +semver@^7.2.1, semver@^7.3.4, semver@^7.3.5: + version "7.3.5" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.5.tgz#0b621c879348d8998e4b0e4be94b3f12e6018ef7" + integrity sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ== + dependencies: + lru-cache "^6.0.0" + set-blocking@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" @@ -5657,7 +6361,7 @@ shebang-regex@^3.0.0: resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== -shelljs@^0.8.3: +shelljs@^0.8.4: version "0.8.4" resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.8.4.tgz#de7684feeb767f8716b326078a8a00875890e3c2" integrity sha512-7gk3UZ9kOfPLIAbslLzyWeGiEqx9e3rxwZM0KE6EL8GlGwjym9Mrlx5/p33bWTu9YG6vcS4MBxYZDHYr5lr8BQ== @@ -5671,7 +6375,16 @@ shellwords@^0.1.1: resolved "https://registry.yarnpkg.com/shellwords/-/shellwords-0.1.1.tgz#d6b9181c1a48d397324c84871efbcfc73fc0654b" integrity sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww== -signal-exit@^3.0.0, signal-exit@^3.0.2: +shiki@^0.9.3: + version "0.9.5" + resolved "https://registry.yarnpkg.com/shiki/-/shiki-0.9.5.tgz#c8da81a05fbfd1810729c6873901a729a72ec541" + integrity sha512-XFn+rl3wIowDjzdr5DlHoHgQphXefgUTs2bNp/bZu4WF9gTrTLnKwio3f28VjiFG6Jpip7yQn/p4mMj6OrjrtQ== + dependencies: + json5 "^2.2.0" + onigasm "^2.2.5" + vscode-textmate "5.2.0" + +signal-exit@^3.0.0, signal-exit@^3.0.2, signal-exit@^3.0.3: version "3.0.3" resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.3.tgz#a1410c2edd8f077b08b4e253c8eacfcaf057461c" integrity sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA== @@ -5700,9 +6413,18 @@ slice-ansi@^2.1.0: astral-regex "^1.0.0" is-fullwidth-code-point "^2.0.0" -"sm-crypto@git+https://github.com/bianjieai/sm-crypto-js.git#main": +slice-ansi@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-4.0.0.tgz#500e8dd0fd55b05815086255b3195adf2a45fe6b" + integrity sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ== + dependencies: + ansi-styles "^4.0.0" + astral-regex "^2.0.0" + is-fullwidth-code-point "^3.0.0" + +"sm-crypto@git+http://github.com/bianjieai/sm-crypto-js.git#main": version "0.2.1" - resolved "git+https://github.com/bianjieai/sm-crypto-js.git#def39a846c0b87fc27f6e63ee90d2149c2590a57" + resolved "git+http://github.com/bianjieai/sm-crypto-js.git#def39a846c0b87fc27f6e63ee90d2149c2590a57" dependencies: bn.js "^4.11.6" jsbn "^1.1.0" @@ -5869,14 +6591,6 @@ string-length@^3.1.0: astral-regex "^1.0.0" strip-ansi "^5.2.0" -string-width@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" - integrity sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw== - dependencies: - is-fullwidth-code-point "^2.0.0" - strip-ansi "^4.0.0" - string-width@^3.0.0: version "3.1.0" resolved "https://registry.yarnpkg.com/string-width/-/string-width-3.1.0.tgz#22767be21b62af1081574306f69ac51b62203961" @@ -5886,6 +6600,15 @@ string-width@^3.0.0: is-fullwidth-code-point "^2.0.0" strip-ansi "^5.1.0" +string-width@^4.0.0: + version "4.2.2" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.2.tgz#dafd4f9559a7585cfba529c6a0a4f73488ebd4c5" + integrity sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA== + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.0" + string-width@^4.1.0, string-width@^4.2.0: version "4.2.0" resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.0.tgz#952182c46cc7b2c313d1596e623992bd163b72b5" @@ -5909,13 +6632,6 @@ string_decoder@~1.1.1: dependencies: safe-buffer "~5.1.0" -strip-ansi@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-4.0.0.tgz#a8479022eb1ac368a871389b635262c505ee368f" - integrity sha1-qEeQIusaw2iocTibY1JixQXuNo8= - dependencies: - ansi-regex "^3.0.0" - strip-ansi@^5.1.0, strip-ansi@^5.2.0: version "5.2.0" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-5.2.0.tgz#8c9a536feb6afc962bdfa5b104a5091c1ad9c0ae" @@ -5930,11 +6646,6 @@ strip-ansi@^6.0.0: dependencies: ansi-regex "^5.0.0" -strip-bom@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" - integrity sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM= - strip-bom@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-4.0.0.tgz#9c3505c1db45bcedca3d9cf7a16f5c5aa3901878" @@ -5950,12 +6661,14 @@ strip-final-newline@^2.0.0: resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-2.0.0.tgz#89b852fb2fcbe936f6f4b3187afb0a12c1ab58ad" integrity sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA== -strip-indent@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-2.0.0.tgz#5ef8db295d01e6ed6cbf7aab96998d7822527b68" - integrity sha1-XvjbKV0B5u1sv3qrlpmNeCJSe2g= +strip-indent@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-3.0.0.tgz#c32e1cee940b6b3432c771bc2c54bcce73cd3001" + integrity sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ== + dependencies: + min-indent "^1.0.0" -strip-json-comments@^3.0.1: +strip-json-comments@^3.0.1, strip-json-comments@^3.1.0, strip-json-comments@^3.1.1: version "3.1.1" resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== @@ -6002,18 +6715,23 @@ table@^5.2.3: slice-ansi "^2.1.0" string-width "^3.0.0" +table@^6.0.9: + version "6.7.1" + resolved "https://registry.yarnpkg.com/table/-/table-6.7.1.tgz#ee05592b7143831a8c94f3cee6aae4c1ccef33e2" + integrity sha512-ZGum47Yi6KOOFDE8m223td53ath2enHcYLgOCjGr5ngu8bdIARQk6mN/wRMv4yMRcHnCSnHbCEha4sobQx5yWg== + dependencies: + ajv "^8.0.1" + lodash.clonedeep "^4.5.0" + lodash.truncate "^4.4.2" + slice-ansi "^4.0.0" + string-width "^4.2.0" + strip-ansi "^6.0.0" + tapable@^1.0.0: version "1.1.3" resolved "https://registry.yarnpkg.com/tapable/-/tapable-1.1.3.tgz#a1fccc06b58db61fd7a45da2da44f5f3a3e67ba2" integrity sha512-4WK/bYZmj8xLr+HUCODHGF1ZFzsYffasLUgEiMBY4fgtltdO6B4WJtlSbPaDTLpYTcGVwM2qLnFTICEcNxs3kA== -term-size@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/term-size/-/term-size-1.2.0.tgz#458b83887f288fc56d6fffbfad262e26638efa69" - integrity sha1-RYuDiH8oj8Vtb/+/rSYuJmOO+mk= - dependencies: - execa "^0.7.0" - terminal-link@^2.0.0: version "2.1.1" resolved "https://registry.yarnpkg.com/terminal-link/-/terminal-link-2.1.1.tgz#14a64a27ab3c0df933ea546fba55f2d078edc994" @@ -6147,10 +6865,10 @@ tr46@^1.0.1: dependencies: punycode "^2.1.0" -trim-newlines@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-2.0.0.tgz#b403d0b91be50c331dfc4b82eeceb22c3de16d20" - integrity sha1-tAPQuRvlDDMd/EuC7s6yLD3hbSA= +trim-newlines@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-3.0.1.tgz#260a5d962d8b752425b32f3a7db0dcacd176c144" + integrity sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw== ts-jest@^25.2.1: version "25.5.1" @@ -6179,35 +6897,11 @@ ts-loader@^6.2.2: micromatch "^4.0.0" semver "^6.0.0" -tslib@^1.13.0, tslib@^1.8.0, tslib@^1.8.1, tslib@^1.9.0: +tslib@^1.13.0, tslib@^1.8.1, tslib@^1.9.0: version "1.14.1" resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== -tslint-config-prettier@^1.18.0: - version "1.18.0" - resolved "https://registry.yarnpkg.com/tslint-config-prettier/-/tslint-config-prettier-1.18.0.tgz#75f140bde947d35d8f0d238e0ebf809d64592c37" - integrity sha512-xPw9PgNPLG3iKRxmK7DWr+Ea/SzrvfHtjFt5LBl61gk2UBG/DB9kCXRjv+xyIU1rUtnayLeMUVJBcMX8Z17nDg== - -tslint@^5.12.0: - version "5.20.1" - resolved "https://registry.yarnpkg.com/tslint/-/tslint-5.20.1.tgz#e401e8aeda0152bc44dd07e614034f3f80c67b7d" - integrity sha512-EcMxhzCFt8k+/UP5r8waCf/lzmeSyVlqxqMEDQE7rWYiQky8KpIBz1JAoYXfROHrPZ1XXd43q8yQnULOLiBRQg== - dependencies: - "@babel/code-frame" "^7.0.0" - builtin-modules "^1.1.1" - chalk "^2.3.0" - commander "^2.12.1" - diff "^4.0.1" - glob "^7.1.1" - js-yaml "^3.13.1" - minimatch "^3.0.4" - mkdirp "^0.5.1" - resolve "^1.3.2" - semver "^5.3.0" - tslib "^1.8.0" - tsutils "^2.29.0" - tslint@^6.1.0: version "6.1.3" resolved "https://registry.yarnpkg.com/tslint/-/tslint-6.1.3.tgz#5c23b2eccc32487d5523bd3a470e9aa31789d904" @@ -6234,6 +6928,13 @@ tsutils@^2.29.0: dependencies: tslib "^1.8.1" +tsutils@^3.21.0: + version "3.21.0" + resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.21.0.tgz#b48717d394cea6c1e096983eed58e9d61715b623" + integrity sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA== + dependencies: + tslib "^1.8.1" + tunnel-agent@^0.6.0: version "0.6.0" resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" @@ -6246,6 +6947,18 @@ tweetnacl@^0.14.3, tweetnacl@~0.14.0: resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" integrity sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q= +tweetnacl@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-1.0.3.tgz#ac0af71680458d8a6378d0d0d050ab1407d35596" + integrity sha512-6rt+RN7aOi1nGMyC4Xa5DdYiukl2UWCbcJft7YhxReBGQD7OAM8Pbxw6YMo4r2diNEA8FEmu32YOn9rhaiE5yw== + +type-check@^0.4.0, type-check@~0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.4.0.tgz#07b8203bfa7056c0657050e3ccd2c37730bab8f1" + integrity sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew== + dependencies: + prelude-ls "^1.2.1" + type-check@~0.3.2: version "0.3.2" resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72" @@ -6263,10 +6976,15 @@ type-fest@^0.11.0: resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.11.0.tgz#97abf0872310fed88a5c466b25681576145e33f1" integrity sha512-OdjXJxnCN1AvyLSzeKIgXTXxV+99ZuXl3Hpo9XpJAv9MBcHrrJOQ5kV7ypXOuQie+AmWG25hLbiKdwYTifzcfQ== -type-fest@^0.3.0: - version "0.3.1" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.3.1.tgz#63d00d204e059474fe5e1b7c011112bbd1dc29e1" - integrity sha512-cUGJnCdr4STbePCgqNFbpVNCepa+kAVohJs1sLhxzdH+gnEoOd8VhbYa7pD3zZYGiURWM2xzEII3fQcRizDkYQ== +type-fest@^0.18.0: + version "0.18.1" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.18.1.tgz#db4bc151a4a2cf4eebf9add5db75508db6cc841f" + integrity sha512-OIAYXk8+ISY+qTOwkHtKqzAuxchoMiD9Udx+FSGQDuiRR+PJKJHc2NJAXlbhkGwTt/4/nKZxELY1w3ReWOL8mw== + +type-fest@^0.20.2: + version "0.20.2" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.20.2.tgz#1bf207f4b28f91583666cb5fbd327887301cd5f4" + integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ== type-fest@^0.6.0: version "0.6.0" @@ -6290,57 +7008,42 @@ typedarray-to-buffer@^3.1.5: dependencies: is-typedarray "^1.0.0" -typedoc-default-themes@^0.7.2: - version "0.7.2" - resolved "https://registry.yarnpkg.com/typedoc-default-themes/-/typedoc-default-themes-0.7.2.tgz#1e9896f920b58e6da0bba9d7e643738d02405a5a" - integrity sha512-fiFKlFO6VTqjcno8w6WpTsbCgXmfPHVjnLfYkmByZE7moaz+E2DSpAT+oHtDHv7E0BM5kAhPrHJELP2J2Y2T9A== - dependencies: - backbone "^1.4.0" - jquery "^3.4.1" - lunr "^2.3.8" - underscore "^1.9.1" - -typedoc@^0.16.9: - version "0.16.11" - resolved "https://registry.yarnpkg.com/typedoc/-/typedoc-0.16.11.tgz#95f862c6eba78533edc9af7096d2295b718eddc1" - integrity sha512-YEa5i0/n0yYmLJISJ5+po6seYfJQJ5lQYcHCPF9ffTF92DB/TAZO/QrazX5skPHNPtmlIht5FdTXCM2kC7jQFQ== - dependencies: - "@types/minimatch" "3.0.3" - fs-extra "^8.1.0" - handlebars "^4.7.2" - highlight.js "^9.17.1" - lodash "^4.17.15" - marked "^0.8.0" +typedoc-default-themes@^0.12.10: + version "0.12.10" + resolved "https://registry.yarnpkg.com/typedoc-default-themes/-/typedoc-default-themes-0.12.10.tgz#614c4222fe642657f37693ea62cad4dafeddf843" + integrity sha512-fIS001cAYHkyQPidWXmHuhs8usjP5XVJjWB8oZGqkTowZaz3v7g3KDZeeqE82FBrmkAnIBOY3jgy7lnPnqATbA== + +typedoc@^0.20.37: + version "0.20.37" + resolved "https://registry.yarnpkg.com/typedoc/-/typedoc-0.20.37.tgz#9b9417149cb815e3d569fc300b5d2c6e4e6c5d93" + integrity sha512-9+qDhdc4X00qTNOtii6QX2z7ndAeWVOso7w3MPSoSJdXlVhpwPfm1yEp4ooKuWA9fiQILR8FKkyjmeqa13hBbw== + dependencies: + colors "^1.4.0" + fs-extra "^9.1.0" + handlebars "^4.7.7" + lodash "^4.17.21" + lunr "^2.3.9" + marked "~2.0.3" minimatch "^3.0.0" progress "^2.0.3" - shelljs "^0.8.3" - typedoc-default-themes "^0.7.2" - typescript "3.7.x" + shelljs "^0.8.4" + shiki "^0.9.3" + typedoc-default-themes "^0.12.10" typeforce@^1.11.5: version "1.18.0" resolved "https://registry.yarnpkg.com/typeforce/-/typeforce-1.18.0.tgz#d7416a2c5845e085034d70fcc5b6cc4a90edbfdc" integrity sha512-7uc1O8h1M1g0rArakJdf0uLRSSgFcYexrVoKo+bzJd32gd4gDy2L/Z+8/FjPnU9ydY3pEnVPtr9FyscYY60K1g== -typescript@3.7.x: - version "3.7.5" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.5.tgz#0692e21f65fd4108b9330238aac11dd2e177a1ae" - integrity sha512-/P5lkRXkWHNAbcJIiHPfRoKqyd7bsyCma1hZNUGfn20qm64T6ZBlrzprymeu918H+mB/0rIg2gGK/BXkhhYgBw== - typescript@^3.8.3: - version "3.9.9" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.9.tgz#e69905c54bc0681d0518bd4d587cc6f2d0b1a674" - integrity sha512-kdMjTiekY+z/ubJCATUPlRDl39vXYiMV9iyeMuEuXZh2we6zz80uovNN2WlAxmmdE/Z/YQe+EbOEXB5RHEED3w== + version "3.9.7" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.7.tgz#98d600a5ebdc38f40cb277522f12dc800e9e25fa" + integrity sha512-BLbiRkiBzAwsjut4x/dsibSTB6yWpwT5qWmC2OfuCg3GgVQCSgMs4vEctYPhsaGtd0AeuuHMkjZ2h2WG8MSzRw== uglify-js@^3.1.4: - version "3.13.5" - resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.13.5.tgz#5d71d6dbba64cf441f32929b1efce7365bb4f113" - integrity sha512-xtB8yEqIkn7zmOyS2zUNBsYCBRhDkvlNxMMY2smuJ/qA8NCHeQvKCF3i9Z4k8FJH4+PJvZRtMrPynfZ75+CSZw== - -underscore@>=1.8.3, underscore@^1.9.1: - version "1.13.1" - resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.13.1.tgz#0c1c6bd2df54b6b69f2314066d65b6cde6fcf9d1" - integrity sha512-hzSoAVtJF+3ZtiFX0VgfFPHEDRm7Y/QPjGyNo4TVdnDTdft3tr8hEkD25a1jC+TjTuE7tkHGKkhwCgs9dgBB2g== + version "3.12.7" + resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.12.7.tgz#be4f06142a67bd91ef868b4e111dc241e151bff3" + integrity sha512-SIZhkoh+U/wjW+BHGhVwE9nt8tWJspncloBcFapkpGRwNPqcH8pzX36BXe3TPBjzHWPMUZotpCigak/udWNr1Q== unicode-canonical-property-names-ecmascript@^1.0.4: version "1.0.4" @@ -6375,18 +7078,23 @@ union-value@^1.0.0: is-extendable "^0.1.1" set-value "^2.0.1" -unique-string@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/unique-string/-/unique-string-1.0.0.tgz#9e1057cca851abb93398f8b33ae187b99caec11a" - integrity sha1-nhBXzKhRq7kzmPizOuGHuZyuwRo= +unique-string@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/unique-string/-/unique-string-2.0.0.tgz#39c6451f81afb2749de2b233e3f7c5e8843bd89d" + integrity sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg== dependencies: - crypto-random-string "^1.0.0" + crypto-random-string "^2.0.0" universalify@^0.1.0: version "0.1.2" resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg== +universalify@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/universalify/-/universalify-2.0.0.tgz#75a4984efedc4b08975c5aeb73f530d02df25717" + integrity sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ== + unset-value@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559" @@ -6400,23 +7108,25 @@ upath@^1.1.1: resolved "https://registry.yarnpkg.com/upath/-/upath-1.2.0.tgz#8f66dbcd55a883acdae4408af8b035a5044c1894" integrity sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg== -update-notifier@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/update-notifier/-/update-notifier-3.0.1.tgz#78ecb68b915e2fd1be9f767f6e298ce87b736250" - integrity sha512-grrmrB6Zb8DUiyDIaeRTBCkgISYUgETNe7NglEbVsrLWXeESnlCSP50WfRSj/GmzMPl6Uchj24S/p80nP/ZQrQ== +update-notifier@^5.0.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/update-notifier/-/update-notifier-5.1.0.tgz#4ab0d7c7f36a231dd7316cf7729313f0214d9ad9" + integrity sha512-ItnICHbeMh9GqUy31hFPrD1kcuZ3rpxDZbf4KUDavXwS0bW5m7SLbDQpGX3UYr072cbrF5hFUs3r5tUsPwjfHw== dependencies: - boxen "^3.0.0" - chalk "^2.0.1" - configstore "^4.0.0" + boxen "^5.0.0" + chalk "^4.1.0" + configstore "^5.0.1" has-yarn "^2.1.0" import-lazy "^2.1.0" is-ci "^2.0.0" - is-installed-globally "^0.1.0" - is-npm "^3.0.0" + is-installed-globally "^0.4.0" + is-npm "^5.0.0" is-yarn-global "^0.3.0" - latest-version "^5.0.0" - semver-diff "^2.0.0" - xdg-basedir "^3.0.0" + latest-version "^5.1.0" + pupa "^2.1.1" + semver "^7.3.4" + semver-diff "^3.1.1" + xdg-basedir "^4.0.0" uri-js@^4.2.2: version "4.4.1" @@ -6488,6 +7198,11 @@ verror@1.10.0: core-util-is "1.0.2" extsprintf "^1.2.0" +vscode-textmate@5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/vscode-textmate/-/vscode-textmate-5.2.0.tgz#01f01760a391e8222fe4f33fbccbd1ad71aed74e" + integrity sha512-Uw5ooOQxRASHgu6C7GVvUxisKXfSgW4oFlO+aa+PAkgmH89O3CXxEEzNRNtHSqtXFTl0nAC1uYj0GMSH27uwtQ== + w3c-hr-time@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz#0a89cdf5cc15822df9c360543676963e0cc308cd" @@ -6556,12 +7271,12 @@ which@^2.0.1, which@^2.0.2: dependencies: isexe "^2.0.0" -widest-line@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/widest-line/-/widest-line-2.0.1.tgz#7438764730ec7ef4381ce4df82fb98a53142a3fc" - integrity sha512-Ba5m9/Fa4Xt9eb2ELXt77JxVDV8w7qQrH0zS/TWSJdLyAwQjWoOzpzj5lwVftDz6n/EOu3tNACS84v509qwnJA== +widest-line@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/widest-line/-/widest-line-3.1.0.tgz#8292333bbf66cb45ff0de1603b136b7ae1496eca" + integrity sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg== dependencies: - string-width "^2.1.1" + string-width "^4.0.0" wif@^2.0.6: version "2.0.6" @@ -6570,7 +7285,7 @@ wif@^2.0.6: dependencies: bs58check "<3.0.0" -word-wrap@~1.2.3: +word-wrap@^1.2.3, word-wrap@~1.2.3: version "1.2.3" resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c" integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ== @@ -6589,21 +7304,21 @@ wrap-ansi@^6.2.0: string-width "^4.1.0" strip-ansi "^6.0.0" +wrap-ansi@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" + integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== + dependencies: + ansi-styles "^4.0.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" + wrappy@1: version "1.0.2" resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= -write-file-atomic@^2.0.0: - version "2.4.3" - resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-2.4.3.tgz#1fd2e9ae1df3e75b8d8c367443c692d4ca81f481" - integrity sha512-GaETH5wwsX+GcnzhPgKcKjJ6M2Cq3/iZp1WyY/X1CSqrW+jVNM9Y7D8EC2sM4ZG/V8wZlSniJnCKWPmBYAucRQ== - dependencies: - graceful-fs "^4.1.11" - imurmurhash "^0.1.4" - signal-exit "^3.0.2" - -write-file-atomic@^3.0.0: +write-file-atomic@^3.0.0, write-file-atomic@^3.0.3: version "3.0.3" resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-3.0.3.tgz#56bd5c5a5c70481cd19c571bd39ab965a5de56e8" integrity sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q== @@ -6621,14 +7336,14 @@ write@1.0.3: mkdirp "^0.5.1" ws@^7.0.0: - version "7.5.1" - resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.1.tgz#44fc000d87edb1d9c53e51fbc69a0ac1f6871d66" - integrity sha512-2c6faOUH/nhoQN6abwMloF7Iyl0ZS2E9HGtsiLrWn0zOOMWlhtDmdf/uihDt6jnuCxgtwGBNy6Onsoy2s2O2Ow== + version "7.4.3" + resolved "https://registry.yarnpkg.com/ws/-/ws-7.4.3.tgz#1f9643de34a543b8edb124bdcbc457ae55a6e5cd" + integrity sha512-hr6vCR76GsossIRsr8OLR9acVVm1jyfEWvhbNjtgPOrfvAlKzvyeg/P6r8RuDjRyrcQoPQT7K0DGEPc7Ae6jzA== -xdg-basedir@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/xdg-basedir/-/xdg-basedir-3.0.0.tgz#496b2cc109eca8dbacfe2dc72b603c17c5870ad4" - integrity sha1-SWsswQnsqNus/i3HK2A8F8WHCtQ= +xdg-basedir@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/xdg-basedir/-/xdg-basedir-4.0.0.tgz#4bc8d9984403696225ef83a1573cbbcb4e79db13" + integrity sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q== xml-name-validator@^3.0.0: version "3.0.0" @@ -6645,10 +7360,15 @@ y18n@^4.0.0: resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.1.tgz#8db2b83c31c5d75099bb890b23f3094891e247d4" integrity sha512-wNcy4NvjMYL8gogWWYAO7ZFWFfHcbdbE57tZO8e4cbpj8tfUcwrwqSl3ad8HxpYWCdXcJUCeKKZS62Av1affwQ== -yallist@^2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52" - integrity sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI= +yallist@^3.0.2: + version "3.1.1" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd" + integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g== + +yallist@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" + integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== yargs-parser@18.x, yargs-parser@^18.1.2: version "18.1.3" @@ -6658,12 +7378,10 @@ yargs-parser@18.x, yargs-parser@^18.1.2: camelcase "^5.0.0" decamelize "^1.2.0" -yargs-parser@^10.0.0: - version "10.1.0" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-10.1.0.tgz#7202265b89f7e9e9f2e5765e0fe735a905edbaa8" - integrity sha512-VCIyR1wJoEBZUqk5PA+oOBF6ypbwh5aNB3I50guxAL/quggdfs4TtNHQrSazFA3fYZ+tEqfs0zIGlv0c/rgjbQ== - dependencies: - camelcase "^4.1.0" +yargs-parser@^20.2.3: + version "20.2.7" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.7.tgz#61df85c113edfb5a7a4e36eb8aa60ef423cbc90a" + integrity sha512-FiNkvbeHzB/syOjIUxFDCnhSfzAL8R5vs40MgLFBorXACCOAEaWu0gRZl14vG8MR9AOJIZbmkjhusqBYZ3HTHw== yargs@^15.3.1: version "15.4.1"