diff --git a/README.md b/README.md index 60eee71c..baf31a64 100644 --- a/README.md +++ b/README.md @@ -25,13 +25,13 @@ npm install https://github.com/irisnet/irishub-sdk-js.git ```typescript interface ClientConfig { node: string,//address of a rpc node on IRISnet - network: number, //[Number] 0: Mainnet, 1: Testnet + chainNetwork: consts.ChainNetwork; // IRISHUB = 0, Cosmos = 1, Akash = 2 chainId: string, gas?: string, fee?: { denom: string; amount: string; - },//default fee for transactions + }, //default fee for transactions keyDAO: KeyDAO,//key manager for wallet, which must be implemented bech32Prefix?: { AccAddr: string, @@ -116,15 +116,15 @@ The following selected examples demonstrate basic client usage. - create account ```typescript -const account: { address: string, mnemonic: string } = client.keys.add(`iris_wallet`, 'S8js8Ka82lqAc'); +const account: { address: string, mnemonic: string } = client.keys.add(`wallet name`, 'wallet password'); ``` - recover account by mnemonic ```typescript -const account: string = client.keys.recover(`iris_wallet`, 'S8js8Ka82lqAc', `fatigue panther innocent dress person fluid animal raven material embark target spread kiss smile cycle begin rocket pull couple mass story analyst guilt network`); +const account: string = client.keys.recover(`wallet name`, 'wallet password', `mnemonic`); ``` - recover account by keystore ```typescript -const account: string = client.keys.recover(`iris_wallet`, 'S8js8Ka82lqAc', `{"version":"1","id":"1d295464-aaa8-418e-b374-3052a91dc26a","address":"faa1eqvkfthtrr93g4p9qspp54w6dtjtrn279vcmpn","crypto":{"ciphertext":"a6ee40e3b38a7b24a373ec006bcc039ccbae45dc3b1f314405ab51ee975d6b1f","cipherparams":{"iv":"453b83b1331d334b70d160616fe43ace"},"cipher":"aes-128-ctr","kdf":"pbkdf2","kdfparams":{"dklen":32,"salt":"e702e41edf7277a39f7f5cc641c19e1b492cc29bf737aec9b53b496c9f217b37","c":10000,"prf":"hmac-sha256"},"mac":"6e8ed2619f0b30f00c20f9f01858368efbd0feae5811792d8b41a60c2d71d310"}}`); +const account: string = client.keys.recover(`wallet name`, 'wallet password', `keystore`); ``` - transfer example ```typescript @@ -135,8 +135,8 @@ const res = await client.bank.send({ amount:`1000000` }], baseTx:{ - from:`iris_wallet`, - password:`S8js8Ka82lqAc`, + from:`wallet name`, + password:`wallet password`, gas:50000, fee:{ denom:`uiris`, @@ -160,7 +160,7 @@ const res = await client.bank.send({ - queryDenomMetadata - queryDenomsMetadata - queryParams -### bank `src/modules/coinswap.ts` +### coinswap `src/modules/coinswap.ts` - addLiquidity - removeLiquidity - swapOrder @@ -180,7 +180,7 @@ const res = await client.bank.send({ - queryDelegatorValidators - queryDelegatorWithdrawAddress - queryCommunityPool -### keys `src/modules/farm.ts` +### farm `src/modules/farm.ts` - stakeLp - unStakeLp - harvestReward @@ -203,19 +203,26 @@ const res = await client.bank.send({ - vote - voteWeighted -### bank `src/modules/htlc.ts` +### htlc `src/modules/htlc.ts` - createHTLC - claimHTLC - queryHTLC - queryAssetSupply - queryAssetSupplies - queryParams -### bank `src/modules/ibc.ts` +### ibc `src/modules/ibc/ibc.ts` - transfer - queryDenomTrace - queryDenomTraces - queryParams - queryChannels +### ibc-nft-transfer `src/modules/ibc/ibc-nft-transfer.ts` +- transfer +- queryClassTrace +- queryClassTraces +- queryClassHash +- queryEscrowAddress +- queryParams ### keys `src/modules/keys.ts` - add - recover @@ -236,7 +243,7 @@ const res = await client.bank.send({ - queryDenom - queryDenoms - queryNFT -### slashing `src/modules/oracle.ts` +### oracle `src/modules/oracle.ts` - queryFeed - queryFeeds - queryFeedValue @@ -247,11 +254,11 @@ const res = await client.bank.send({ - deserializeTxRaw - deserializeSigningInfo - deserializePubkey -### slashing `src/modules/random.ts` +### random `src/modules/random.ts` - queryRandom - queryRequest - request -### slashing `src/modules/service.ts` +### service `src/modules/service.ts` - queryDefinition - queryBinding - queryBindings @@ -330,4 +337,3 @@ const res = await client.bank.send({ - broadcastTx - newTxResult - createMsg - diff --git a/dist/README.md b/dist/README.md index 60eee71c..baf31a64 100644 --- a/dist/README.md +++ b/dist/README.md @@ -25,13 +25,13 @@ npm install https://github.com/irisnet/irishub-sdk-js.git ```typescript interface ClientConfig { node: string,//address of a rpc node on IRISnet - network: number, //[Number] 0: Mainnet, 1: Testnet + chainNetwork: consts.ChainNetwork; // IRISHUB = 0, Cosmos = 1, Akash = 2 chainId: string, gas?: string, fee?: { denom: string; amount: string; - },//default fee for transactions + }, //default fee for transactions keyDAO: KeyDAO,//key manager for wallet, which must be implemented bech32Prefix?: { AccAddr: string, @@ -116,15 +116,15 @@ The following selected examples demonstrate basic client usage. - create account ```typescript -const account: { address: string, mnemonic: string } = client.keys.add(`iris_wallet`, 'S8js8Ka82lqAc'); +const account: { address: string, mnemonic: string } = client.keys.add(`wallet name`, 'wallet password'); ``` - recover account by mnemonic ```typescript -const account: string = client.keys.recover(`iris_wallet`, 'S8js8Ka82lqAc', `fatigue panther innocent dress person fluid animal raven material embark target spread kiss smile cycle begin rocket pull couple mass story analyst guilt network`); +const account: string = client.keys.recover(`wallet name`, 'wallet password', `mnemonic`); ``` - recover account by keystore ```typescript -const account: string = client.keys.recover(`iris_wallet`, 'S8js8Ka82lqAc', `{"version":"1","id":"1d295464-aaa8-418e-b374-3052a91dc26a","address":"faa1eqvkfthtrr93g4p9qspp54w6dtjtrn279vcmpn","crypto":{"ciphertext":"a6ee40e3b38a7b24a373ec006bcc039ccbae45dc3b1f314405ab51ee975d6b1f","cipherparams":{"iv":"453b83b1331d334b70d160616fe43ace"},"cipher":"aes-128-ctr","kdf":"pbkdf2","kdfparams":{"dklen":32,"salt":"e702e41edf7277a39f7f5cc641c19e1b492cc29bf737aec9b53b496c9f217b37","c":10000,"prf":"hmac-sha256"},"mac":"6e8ed2619f0b30f00c20f9f01858368efbd0feae5811792d8b41a60c2d71d310"}}`); +const account: string = client.keys.recover(`wallet name`, 'wallet password', `keystore`); ``` - transfer example ```typescript @@ -135,8 +135,8 @@ const res = await client.bank.send({ amount:`1000000` }], baseTx:{ - from:`iris_wallet`, - password:`S8js8Ka82lqAc`, + from:`wallet name`, + password:`wallet password`, gas:50000, fee:{ denom:`uiris`, @@ -160,7 +160,7 @@ const res = await client.bank.send({ - queryDenomMetadata - queryDenomsMetadata - queryParams -### bank `src/modules/coinswap.ts` +### coinswap `src/modules/coinswap.ts` - addLiquidity - removeLiquidity - swapOrder @@ -180,7 +180,7 @@ const res = await client.bank.send({ - queryDelegatorValidators - queryDelegatorWithdrawAddress - queryCommunityPool -### keys `src/modules/farm.ts` +### farm `src/modules/farm.ts` - stakeLp - unStakeLp - harvestReward @@ -203,19 +203,26 @@ const res = await client.bank.send({ - vote - voteWeighted -### bank `src/modules/htlc.ts` +### htlc `src/modules/htlc.ts` - createHTLC - claimHTLC - queryHTLC - queryAssetSupply - queryAssetSupplies - queryParams -### bank `src/modules/ibc.ts` +### ibc `src/modules/ibc/ibc.ts` - transfer - queryDenomTrace - queryDenomTraces - queryParams - queryChannels +### ibc-nft-transfer `src/modules/ibc/ibc-nft-transfer.ts` +- transfer +- queryClassTrace +- queryClassTraces +- queryClassHash +- queryEscrowAddress +- queryParams ### keys `src/modules/keys.ts` - add - recover @@ -236,7 +243,7 @@ const res = await client.bank.send({ - queryDenom - queryDenoms - queryNFT -### slashing `src/modules/oracle.ts` +### oracle `src/modules/oracle.ts` - queryFeed - queryFeeds - queryFeedValue @@ -247,11 +254,11 @@ const res = await client.bank.send({ - deserializeTxRaw - deserializeSigningInfo - deserializePubkey -### slashing `src/modules/random.ts` +### random `src/modules/random.ts` - queryRandom - queryRequest - request -### slashing `src/modules/service.ts` +### service `src/modules/service.ts` - queryDefinition - queryBinding - queryBindings @@ -330,4 +337,3 @@ const res = await client.bank.send({ - broadcastTx - newTxResult - createMsg - diff --git a/dist/package.json b/dist/package.json index 35323793..a86dd8f7 100644 --- a/dist/package.json +++ b/dist/package.json @@ -1,6 +1,6 @@ { "name": "@irisnet/irishub-sdk", - "version": "3.2.0", + "version": "3.3.0", "description": "IRISHub JavaScript SDK", "main": "index.js", "typings": "index.ts", @@ -38,12 +38,12 @@ "@babel/plugin-transform-runtime": "^7.9.0", "@babel/preset-env": "^7.14.7", "@babel/preset-typescript": "^7.9.0", - "@types/jest": "^26.0.22", - "@types/node": "^10.0.3", + "@types/jest": "^29.5.11", + "@types/node": "^20.10.6", "babel-loader": "^9.1.2", "eslint": "^6.8.0", "eslint-loader": "^4.0.0", - "gts": "3.1.1", + "gts": "5.2.0", "jest": "29.7.0", "ts-loader": "^9.4.4", "tslint": "^6.1.0", @@ -53,12 +53,12 @@ "dependencies": { "@babel/runtime": "^7.13.10", "@types/mathjs": "6.0.11", - "@types/ws": "^7.4.5", + "@types/ws": "^8.5.10", "axios": "^1.6.2", "bcryptjs": "^2.4.3", "bech32": "^1.1.3", "bip32": "^2.0.4", - "bip39": "3.0.2", + "bip39": "3.1.0", "crypto-browserify": "^3.12.0", "crypto-js": "^4.0.0", "events": "^3.1.0", diff --git a/dist/src/client.d.ts b/dist/src/client.d.ts index df94b8ba..367b3a6e 100644 --- a/dist/src/client.d.ts +++ b/dist/src/client.d.ts @@ -65,6 +65,9 @@ export declare class Client { /** Ibc module */ private _ibc?; get ibc(): modules.Ibc; + /** Ibc nft transfer module */ + private _ibcNftTransfer?; + get ibcNftTransfer(): modules.IbcNftTransfer; /** IRISHub SDK Constructor */ constructor(config: DefaultClientConfig); /** @@ -74,13 +77,6 @@ export declare class Client { * @returns The SDK itself */ withKeyDAO(keyDAO: KeyDAO): this; - /** - * Set IRISHub network type - * - * @param network IRISHub network type, mainnet / testnet - * @returns The SDK itself - */ - withNetwork(network: consts.Network): this; /** * Set IRISHub network type * @@ -123,8 +119,8 @@ export declare class Client { export interface ClientConfig { /** IRISHub node rpc address */ node: string; - /** IRISHub network type, mainnet / testnet */ - network?: consts.Network; + /** IRISHUB = 0, Cosmos = 1, Akash = 2 */ + chainNetwork?: consts.ChainNetwork; /** IRISHub chain-id */ chainId?: string; /** Default gas limit */ @@ -142,7 +138,6 @@ export interface ClientConfig { export declare class DefaultClientConfig implements ClientConfig { node: string; chainNetwork: consts.ChainNetwork; - network: consts.Network; chainId: string; gas: string; fee: types.Coin; diff --git a/dist/src/client.js b/dist/src/client.js index f8bd87f7..f4acd391 100644 --- a/dist/src/client.js +++ b/dist/src/client.js @@ -88,6 +88,8 @@ var Client = exports.Client = /*#__PURE__*/function () { (0, _defineProperty2["default"])(this, "_htlc", void 0); /** Ibc module */ (0, _defineProperty2["default"])(this, "_ibc", void 0); + /** Ibc nft transfer module */ + (0, _defineProperty2["default"])(this, "_ibcNftTransfer", void 0); this.config = config; if (!this.config.rpcConfig) this.config.rpcConfig = {}; if (!this.config.bech32Prefix || !this.config.bech32Prefix.AccAddr) { @@ -279,6 +281,14 @@ var Client = exports.Client = /*#__PURE__*/function () { } return this._ibc; } + }, { + key: "ibcNftTransfer", + get: function get() { + if (!this._ibcNftTransfer) { + this._ibcNftTransfer = new modules.IbcNftTransfer(this); + } + return this._ibcNftTransfer; + } }, { key: "withKeyDAO", value: function withKeyDAO(keyDAO) { @@ -292,19 +302,6 @@ var Client = exports.Client = /*#__PURE__*/function () { return this; } - /** - * Set IRISHub network type - * - * @param network IRISHub network type, mainnet / testnet - * @returns The SDK itself - */ - }, { - key: "withNetwork", - value: function withNetwork(network) { - this.config.network = network; - return this; - } - /** * Set IRISHub network type * @@ -382,7 +379,6 @@ var DefaultClientConfig = exports.DefaultClientConfig = /*#__PURE__*/(0, _create (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); (0, _defineProperty2["default"])(this, "fee", void 0); @@ -390,7 +386,6 @@ var DefaultClientConfig = exports.DefaultClientConfig = /*#__PURE__*/(0, _create (0, _defineProperty2["default"])(this, "bech32Prefix", void 0); (0, _defineProperty2["default"])(this, "rpcConfig", void 0); this.node = ''; - this.network = types.Network.Mainnet; this.chainNetwork = types.ChainNetwork.Iris; this.chainId = ''; this.gas = '100000'; diff --git a/dist/src/modules/ibc/ibc-nft-transfer.d.ts b/dist/src/modules/ibc/ibc-nft-transfer.d.ts new file mode 100644 index 00000000..f8179ca4 --- /dev/null +++ b/dist/src/modules/ibc/ibc-nft-transfer.d.ts @@ -0,0 +1,63 @@ +import { Client } from '../../client'; +import * as types from '../../types'; +/** + * This module implements Ibc Nft Transfer related functions + * + * @category Modules + * @since v3.3.0 + */ +export declare class IbcNftTransfer { + /** @hidden */ + private client; + /** @hidden */ + constructor(client: Client); + /** + * ibc nft transfer + * @param param:{ + source_port: string; + source_channel: string; + class_id: string; + token_ids: string[]; + receiver: string; + timeout_height?: {revision_number:number, revision_height:number}, + timeout_timestamp?:number, + } + * @param baseTx { types.BaseTx } + * @returns + * @since v3.3.0 + */ + transfer(param: { + source_port: string; + source_channel: string; + class_id: string; + token_ids: string[]; + receiver: string; + timeout_height?: { + revision_number: number; + revision_height: number; + }; + timeout_timestamp?: number; + memo?: string; + }, baseTx: types.BaseTx): Promise; + /** + * ClassTrace queries a class trace information. + * @param hash (in hex format) of the denomination trace information. + */ + queryClassTrace(hash: string): Promise; + /** + * ClassTraces queries all class traces. + */ + queryClassTraces(pagination?: types.Pagination): Promise; + /** + * ClassHash queries a class hash information. + */ + queryClassHash(trace: string): Promise; + /** + * EscrowAddress returns the escrow address for a particular port and channel id. + */ + queryEscrowAddress(port_id: string, channel_id: string): Promise; + /** + * Params queries all parameters of the nft-transfer module. + */ + queryParams(): Promise; +} diff --git a/dist/src/modules/ibc/ibc-nft-transfer.js b/dist/src/modules/ibc/ibc-nft-transfer.js new file mode 100644 index 00000000..2e520e06 --- /dev/null +++ b/dist/src/modules/ibc/ibc-nft-transfer.js @@ -0,0 +1,159 @@ +"use strict"; + +var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); +var _typeof = require("@babel/runtime/helpers/typeof"); +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.IbcNftTransfer = 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(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } +function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; } +/** + * This module implements Ibc Nft Transfer related functions + * + * @category Modules + * @since v3.3.0 + */ +var IbcNftTransfer = exports.IbcNftTransfer = /*#__PURE__*/function () { + /** @hidden */ + function IbcNftTransfer(client) { + (0, _classCallCheck2["default"])(this, IbcNftTransfer); + /** @hidden */ + (0, _defineProperty2["default"])(this, "client", void 0); + this.client = client; + } + + /** + * ibc nft transfer + * @param param:{ + source_port: string; + source_channel: string; + class_id: string; + token_ids: string[]; + receiver: string; + timeout_height?: {revision_number:number, revision_height:number}, + timeout_timestamp?:number, + } + * @param baseTx { types.BaseTx } + * @returns + * @since v3.3.0 + */ + (0, _createClass2["default"])(IbcNftTransfer, [{ + 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.MsgIbcNftTransfer, + value: { + source_port: param.source_port, + source_channel: param.source_channel, + class_id: param.class_id, + token_ids: param.token_ids, + sender: from, + receiver: param.receiver, + timeout_height: param === null || param === void 0 ? void 0 : param.timeout_height, + timeout_timestamp: param === null || param === void 0 ? void 0 : param.timeout_timestamp, + memo: param === null || param === void 0 ? void 0 : param.memo + } + }]; + 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; + }() + /** + * ClassTrace queries a class trace information. + * @param hash (in hex format) of the denomination trace information. + */ + }, { + key: "queryClassTrace", + value: function queryClassTrace(hash) { + if (!hash) { + throw new _errors.SdkError("hash can ont be empty"); + } + var request = new types.ibc_nft_transfer_query_pb.QueryClassTraceRequest(); + request.setHash(hash); + return this.client.rpcClient.protoQuery('/ibc.applications.nft_transfer.v1.Query/ClassTrace', request, types.ibc_nft_transfer_query_pb.QueryClassTraceResponse); + } + + /** + * ClassTraces queries all class traces. + */ + }, { + key: "queryClassTraces", + value: function queryClassTraces(pagination) { + var request = new types.ibc_nft_transfer_query_pb.QueryClassTracesRequest(); + request.setPagination(_helper.ModelCreator.createPaginationModel(pagination)); + return this.client.rpcClient.protoQuery('/ibc.applications.nft_transfer.v1.Query/ClassTraces', request, types.ibc_nft_transfer_query_pb.QueryClassTracesResponse); + } + + /** + * ClassHash queries a class hash information. + */ + }, { + key: "queryClassHash", + value: function queryClassHash(trace) { + if (!trace) { + throw new _errors.SdkError("trace can ont be empty"); + } + var request = new types.ibc_nft_transfer_query_pb.QueryClassHashRequest(); + request.setTrace(trace); + return this.client.rpcClient.protoQuery('/ibc.applications.nft_transfer.v1.Query/ClassHash', request, types.ibc_nft_transfer_query_pb.QueryClassHashResponse); + } + + /** + * EscrowAddress returns the escrow address for a particular port and channel id. + */ + }, { + key: "queryEscrowAddress", + value: function queryEscrowAddress(port_id, channel_id) { + if (!port_id) { + throw new _errors.SdkError("port_id can ont be empty"); + } + if (!channel_id) { + throw new _errors.SdkError("channel_id can ont be empty"); + } + var request = new types.ibc_nft_transfer_query_pb.QueryEscrowAddressRequest(); + request.setPortId(port_id); + request.setChannelId(channel_id); + return this.client.rpcClient.protoQuery('/ibc.applications.nft_transfer.v1.Query/EscrowAddress', request, types.ibc_nft_transfer_query_pb.QueryEscrowAddressResponse); + } + + /** + * Params queries all parameters of the nft-transfer module. + */ + }, { + key: "queryParams", + value: function queryParams() { + var request = new types.ibc_nft_transfer_query_pb.QueryParamsRequest(); + return this.client.rpcClient.protoQuery('/ibc.applications.nft_transfer.v1.Query/Params', request, types.ibc_nft_transfer_query_pb.QueryParamsResponse); + } + }]); + return IbcNftTransfer; +}(); \ No newline at end of file diff --git a/dist/src/modules/ibc.d.ts b/dist/src/modules/ibc/ibc.d.ts similarity index 95% rename from dist/src/modules/ibc.d.ts rename to dist/src/modules/ibc/ibc.d.ts index b1ade78b..1f58f75b 100644 --- a/dist/src/modules/ibc.d.ts +++ b/dist/src/modules/ibc/ibc.d.ts @@ -1,5 +1,5 @@ -import { Client } from '../client'; -import * as types from '../types'; +import { Client } from '../../client'; +import * as types from '../../types'; /** * This module implements IBC related functions * diff --git a/dist/src/modules/ibc.js b/dist/src/modules/ibc/ibc.js similarity index 97% rename from dist/src/modules/ibc.js rename to dist/src/modules/ibc/ibc.js index 024b4733..22429b25 100644 --- a/dist/src/modules/ibc.js +++ b/dist/src/modules/ibc/ibc.js @@ -11,9 +11,9 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/ 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"); +var types = _interopRequireWildcard(require("../../types")); +var _helper = require("../../helper"); +var _errors = require("../../errors"); function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; } /** diff --git a/dist/src/modules/index.d.ts b/dist/src/modules/index.d.ts index cf16174f..1af25657 100644 --- a/dist/src/modules/index.d.ts +++ b/dist/src/modules/index.d.ts @@ -17,5 +17,6 @@ export * from './coinswap'; export * from './protobuf'; export * from './nft'; export * from './htlc'; -export * from './ibc'; +export * from './ibc/ibc'; +export * from './ibc/ibc-nft-transfer'; export * from './farm'; diff --git a/dist/src/modules/index.js b/dist/src/modules/index.js index 69c06940..756c6c2a 100644 --- a/dist/src/modules/index.js +++ b/dist/src/modules/index.js @@ -212,7 +212,7 @@ Object.keys(_htlc).forEach(function (key) { } }); }); -var _ibc = require("./ibc"); +var _ibc = require("./ibc/ibc"); Object.keys(_ibc).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _ibc[key]) return; @@ -223,6 +223,17 @@ Object.keys(_ibc).forEach(function (key) { } }); }); +var _ibcNftTransfer = require("./ibc/ibc-nft-transfer"); +Object.keys(_ibcNftTransfer).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _ibcNftTransfer[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _ibcNftTransfer[key]; + } + }); +}); var _farm = require("./farm"); Object.keys(_farm).forEach(function (key) { if (key === "default" || key === "__esModule") return; diff --git a/dist/src/modules/protobuf.js b/dist/src/modules/protobuf.js index 6ecacc24..b2059d9f 100644 --- a/dist/src/modules/protobuf.js +++ b/dist/src/modules/protobuf.js @@ -246,6 +246,11 @@ var Protobuf = exports.Protobuf = /*#__PURE__*/function () { messageModelClass = types.MsgTransfer.getModelClass(); break; } + case types.TxType.MsgIbcNftTransfer: + { + messageModelClass = types.MsgIbcNftTransfer.getModelClass(); + break; + } default: { throw new _errors.SdkError("not exist tx type", _errors.CODES.InvalidType); diff --git a/dist/src/modules/tx.js b/dist/src/modules/tx.js index cfcc6b0c..af37f02e 100644 --- a/dist/src/modules/tx.js +++ b/dist/src/modules/tx.js @@ -568,6 +568,11 @@ var Tx = exports.Tx = /*#__PURE__*/function () { msg = new types.MsgTransfer(txMsg.value); break; } + case types.TxType.MsgIbcNftTransfer: + { + msg = new types.MsgIbcNftTransfer(txMsg.value); + break; + } default: { throw new _errors.SdkError("not exist tx type", _errors.CODES.InvalidType); diff --git a/dist/src/types/constants.d.ts b/dist/src/types/constants.d.ts index 8652c179..351704ca 100644 --- a/dist/src/types/constants.d.ts +++ b/dist/src/types/constants.d.ts @@ -1,9 +1,4 @@ import { Bech32Prefix } from './types'; -/** Network type config */ -export declare enum Network { - Mainnet = 0, - Testnet = 1 -} export declare enum ChainNetwork { Iris = 0, Cosmos = 1, diff --git a/dist/src/types/constants.js b/dist/src/types/constants.js index e8ce5677..27e5118e 100644 --- a/dist/src/types/constants.js +++ b/dist/src/types/constants.js @@ -3,13 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); -exports.xchacha20NonceLength = exports.keystoreStructure = exports.keystoreSaltPerfix = exports.doNotModify = exports.STD_DENOM = exports.RpcMethods = exports.Network = exports.MIN_UNIT_SUFFIX = exports.IRIS_ATTO = exports.ChainNetwork = exports.Bech32Prefix_Iris = exports.Bech32Prefix_Cosmos = exports.Bech32Prefix_Akash = void 0; -/** Network type config */ -var Network = exports.Network = /*#__PURE__*/function (Network) { - Network[Network["Mainnet"] = 0] = "Mainnet"; - Network[Network["Testnet"] = 1] = "Testnet"; - return Network; -}({}); +exports.xchacha20NonceLength = exports.keystoreStructure = exports.keystoreSaltPerfix = exports.doNotModify = exports.STD_DENOM = exports.RpcMethods = exports.MIN_UNIT_SUFFIX = exports.IRIS_ATTO = exports.ChainNetwork = exports.Bech32Prefix_Iris = exports.Bech32Prefix_Cosmos = exports.Bech32Prefix_Akash = void 0; var ChainNetwork = exports.ChainNetwork = /*#__PURE__*/function (ChainNetwork) { ChainNetwork[ChainNetwork["Iris"] = 0] = "Iris"; ChainNetwork[ChainNetwork["Cosmos"] = 1] = "Cosmos"; diff --git a/dist/src/types/ibc/ibc-nft-transfer.d.ts b/dist/src/types/ibc/ibc-nft-transfer.d.ts new file mode 100644 index 00000000..ef509841 --- /dev/null +++ b/dist/src/types/ibc/ibc-nft-transfer.d.ts @@ -0,0 +1,30 @@ +import { Msg } from '../types'; +/** + * param struct for Create ibc nft transfer Tx + */ +export interface IbcNftTransferParam { + source_port: string; + source_channel: string; + class_id: string; + token_ids: string[]; + sender: string; + receiver: string; + timeout_height?: { + revision_number: number; + revision_height: number; + }; + timeout_timestamp?: number; + memo?: string; +} +/** + * Msg for ibc nft Transfer + * + * @hidden + */ +export declare class MsgIbcNftTransfer extends Msg { + value: IbcNftTransferParam; + constructor(msg: IbcNftTransferParam); + static getModelClass(): any; + getModel(): any; + validate(): void; +} diff --git a/dist/src/types/ibc/ibc-nft-transfer.js b/dist/src/types/ibc/ibc-nft-transfer.js new file mode 100644 index 00000000..ff7e8533 --- /dev/null +++ b/dist/src/types/ibc/ibc-nft-transfer.js @@ -0,0 +1,97 @@ +"use strict"; + +var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); +var _typeof = require("@babel/runtime/helpers/typeof"); +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.MsgIbcNftTransfer = 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 pbs = _interopRequireWildcard(require("../proto")); +var _errors = require("../../errors"); +function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } +function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; } +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; } } +/** + * param struct for Create ibc nft transfer Tx + */ +/** + * Msg for ibc nft Transfer + * + * @hidden + */ +var MsgIbcNftTransfer = exports.MsgIbcNftTransfer = /*#__PURE__*/function (_Msg) { + (0, _inherits2["default"])(MsgIbcNftTransfer, _Msg); + var _super = _createSuper(MsgIbcNftTransfer); + function MsgIbcNftTransfer(msg) { + var _this; + (0, _classCallCheck2["default"])(this, MsgIbcNftTransfer); + _this = _super.call(this, _types.TxType.MsgIbcNftTransfer); + (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "value", void 0); + _this.value = msg; + return _this; + } + (0, _createClass2["default"])(MsgIbcNftTransfer, [{ + key: "getModel", + value: function getModel() { + var msg = new (this.constructor.getModelClass())(); + msg.setSourcePort(this.value.source_port); + msg.setSourceChannel(this.value.source_channel); + msg.setClassId(this.value.class_id); + this.value.token_ids.forEach(function (item) { + msg.addTokenIds(item); + }); + 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.setRevisionHeight(this.value.timeout_height.revision_height); + msg.setTimeoutHeight(height); + } + if (this.value.timeout_timestamp) { + msg.setTimeoutTimestamp(this.value.timeout_timestamp); + } + if (this.value.memo) { + msg.setMemo(this.value.memo); + } + 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.class_id) { + throw new _errors.SdkError("class_id is empty"); + } + if (!this.value.token_ids || this.value.token_ids.length == 0) { + throw new _errors.SdkError("token_ids 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_nft_transfer_tx_pb.MsgTransfer; + } + }]); + return MsgIbcNftTransfer; +}(_types.Msg); \ No newline at end of file diff --git a/dist/src/types/ibc.d.ts b/dist/src/types/ibc/ibc.d.ts similarity index 93% rename from dist/src/types/ibc.d.ts rename to dist/src/types/ibc/ibc.d.ts index 359f9b75..b4491526 100644 --- a/dist/src/types/ibc.d.ts +++ b/dist/src/types/ibc/ibc.d.ts @@ -1,4 +1,4 @@ -import { Coin, Msg } from './types'; +import { Coin, Msg } from '../types'; /** * param struct for Create ibc transfer Tx */ diff --git a/dist/src/types/ibc.js b/dist/src/types/ibc/ibc.js similarity index 95% rename from dist/src/types/ibc.js rename to dist/src/types/ibc/ibc.js index 3022d44f..816ad6da 100644 --- a/dist/src/types/ibc.js +++ b/dist/src/types/ibc/ibc.js @@ -13,10 +13,10 @@ 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"); +var _types = require("../types"); +var _helper = require("../../helper"); +var pbs = _interopRequireWildcard(require("../proto")); +var _errors = require("../../errors"); function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; } 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); }; } @@ -52,7 +52,7 @@ var MsgTransfer = exports.MsgTransfer = /*#__PURE__*/function (_Msg) { 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); + height.setRevisionHeight(this.value.timeout_height.revision_height); msg.setTimeoutHeight(height); } if (this.value.timeout_timestamp) { diff --git a/dist/src/types/index.d.ts b/dist/src/types/index.d.ts index 53edabb1..decae8dc 100644 --- a/dist/src/types/index.d.ts +++ b/dist/src/types/index.d.ts @@ -25,4 +25,5 @@ export * from './protoTx'; export * from './nft'; export * from './proto'; export * from './htlc'; -export * from './ibc'; +export * from './ibc/ibc'; +export * from './ibc/ibc-nft-transfer'; diff --git a/dist/src/types/index.js b/dist/src/types/index.js index 445b5699..4e524a6c 100644 --- a/dist/src/types/index.js +++ b/dist/src/types/index.js @@ -300,7 +300,7 @@ Object.keys(_htlc).forEach(function (key) { } }); }); -var _ibc = require("./ibc"); +var _ibc = require("./ibc/ibc"); Object.keys(_ibc).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _ibc[key]) return; @@ -310,4 +310,15 @@ Object.keys(_ibc).forEach(function (key) { return _ibc[key]; } }); +}); +var _ibcNftTransfer = require("./ibc/ibc-nft-transfer"); +Object.keys(_ibcNftTransfer).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _ibcNftTransfer[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _ibcNftTransfer[key]; + } + }); }); \ No newline at end of file diff --git a/dist/src/types/proto-types/ibc/applications/nft_transfer/v1/genesis_pb.js b/dist/src/types/proto-types/ibc/applications/nft_transfer/v1/genesis_pb.js new file mode 100644 index 00000000..7135ccac --- /dev/null +++ b/dist/src/types/proto-types/ibc/applications/nft_transfer/v1/genesis_pb.js @@ -0,0 +1,282 @@ +// source: ibc/applications/nft_transfer/v1/genesis.proto +/** + * @fileoverview + * @enhanceable + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = Function('return this')(); + +var ibc_applications_nft_transfer_v1_transfer_pb = require('../../../../ibc/applications/nft_transfer/v1/transfer_pb.js'); +goog.object.extend(proto, ibc_applications_nft_transfer_v1_transfer_pb); +var gogoproto_gogo_pb = require('../../../../gogoproto/gogo_pb.js'); +goog.object.extend(proto, gogoproto_gogo_pb); +goog.exportSymbol('proto.ibc.applications.nft_transfer.v1.GenesisState', null, global); +/** + * 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.ibc.applications.nft_transfer.v1.GenesisState = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.ibc.applications.nft_transfer.v1.GenesisState.repeatedFields_, null); +}; +goog.inherits(proto.ibc.applications.nft_transfer.v1.GenesisState, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ibc.applications.nft_transfer.v1.GenesisState.displayName = 'proto.ibc.applications.nft_transfer.v1.GenesisState'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.ibc.applications.nft_transfer.v1.GenesisState.repeatedFields_ = [2]; + + + +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.ibc.applications.nft_transfer.v1.GenesisState.prototype.toObject = function(opt_includeInstance) { + return proto.ibc.applications.nft_transfer.v1.GenesisState.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.ibc.applications.nft_transfer.v1.GenesisState} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.GenesisState.toObject = function(includeInstance, msg) { + var f, obj = { + portId: jspb.Message.getFieldWithDefault(msg, 1, ""), + tracesList: jspb.Message.toObjectList(msg.getTracesList(), + ibc_applications_nft_transfer_v1_transfer_pb.ClassTrace.toObject, includeInstance), + params: (f = msg.getParams()) && ibc_applications_nft_transfer_v1_transfer_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.ibc.applications.nft_transfer.v1.GenesisState} + */ +proto.ibc.applications.nft_transfer.v1.GenesisState.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ibc.applications.nft_transfer.v1.GenesisState; + return proto.ibc.applications.nft_transfer.v1.GenesisState.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ibc.applications.nft_transfer.v1.GenesisState} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ibc.applications.nft_transfer.v1.GenesisState} + */ +proto.ibc.applications.nft_transfer.v1.GenesisState.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.setPortId(value); + break; + case 2: + var value = new ibc_applications_nft_transfer_v1_transfer_pb.ClassTrace; + reader.readMessage(value,ibc_applications_nft_transfer_v1_transfer_pb.ClassTrace.deserializeBinaryFromReader); + msg.addTraces(value); + break; + case 3: + var value = new ibc_applications_nft_transfer_v1_transfer_pb.Params; + reader.readMessage(value,ibc_applications_nft_transfer_v1_transfer_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.ibc.applications.nft_transfer.v1.GenesisState.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ibc.applications.nft_transfer.v1.GenesisState.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ibc.applications.nft_transfer.v1.GenesisState} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.GenesisState.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPortId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getTracesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + ibc_applications_nft_transfer_v1_transfer_pb.ClassTrace.serializeBinaryToWriter + ); + } + f = message.getParams(); + if (f != null) { + writer.writeMessage( + 3, + f, + ibc_applications_nft_transfer_v1_transfer_pb.Params.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string port_id = 1; + * @return {string} + */ +proto.ibc.applications.nft_transfer.v1.GenesisState.prototype.getPortId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ibc.applications.nft_transfer.v1.GenesisState} returns this + */ +proto.ibc.applications.nft_transfer.v1.GenesisState.prototype.setPortId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * repeated ClassTrace traces = 2; + * @return {!Array} + */ +proto.ibc.applications.nft_transfer.v1.GenesisState.prototype.getTracesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, ibc_applications_nft_transfer_v1_transfer_pb.ClassTrace, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ibc.applications.nft_transfer.v1.GenesisState} returns this +*/ +proto.ibc.applications.nft_transfer.v1.GenesisState.prototype.setTracesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.ibc.applications.nft_transfer.v1.ClassTrace=} opt_value + * @param {number=} opt_index + * @return {!proto.ibc.applications.nft_transfer.v1.ClassTrace} + */ +proto.ibc.applications.nft_transfer.v1.GenesisState.prototype.addTraces = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.ibc.applications.nft_transfer.v1.ClassTrace, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ibc.applications.nft_transfer.v1.GenesisState} returns this + */ +proto.ibc.applications.nft_transfer.v1.GenesisState.prototype.clearTracesList = function() { + return this.setTracesList([]); +}; + + +/** + * optional Params params = 3; + * @return {?proto.ibc.applications.nft_transfer.v1.Params} + */ +proto.ibc.applications.nft_transfer.v1.GenesisState.prototype.getParams = function() { + return /** @type{?proto.ibc.applications.nft_transfer.v1.Params} */ ( + jspb.Message.getWrapperField(this, ibc_applications_nft_transfer_v1_transfer_pb.Params, 3)); +}; + + +/** + * @param {?proto.ibc.applications.nft_transfer.v1.Params|undefined} value + * @return {!proto.ibc.applications.nft_transfer.v1.GenesisState} returns this +*/ +proto.ibc.applications.nft_transfer.v1.GenesisState.prototype.setParams = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ibc.applications.nft_transfer.v1.GenesisState} returns this + */ +proto.ibc.applications.nft_transfer.v1.GenesisState.prototype.clearParams = function() { + return this.setParams(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ibc.applications.nft_transfer.v1.GenesisState.prototype.hasParams = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +goog.object.extend(exports, proto.ibc.applications.nft_transfer.v1); diff --git a/dist/src/types/proto-types/ibc/applications/nft_transfer/v1/packet_pb.js b/dist/src/types/proto-types/ibc/applications/nft_transfer/v1/packet_pb.js new file mode 100644 index 00000000..47c99011 --- /dev/null +++ b/dist/src/types/proto-types/ibc/applications/nft_transfer/v1/packet_pb.js @@ -0,0 +1,471 @@ +// source: ibc/applications/nft_transfer/v1/packet.proto +/** + * @fileoverview + * @enhanceable + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = Function('return this')(); + +goog.exportSymbol('proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData', null, global); +/** + * 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.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.repeatedFields_, null); +}; +goog.inherits(proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.displayName = 'proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.repeatedFields_ = [4,5,6]; + + + +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.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.toObject = function(opt_includeInstance) { + return proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.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.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.toObject = function(includeInstance, msg) { + var f, obj = { + classId: jspb.Message.getFieldWithDefault(msg, 1, ""), + classUri: jspb.Message.getFieldWithDefault(msg, 2, ""), + classData: jspb.Message.getFieldWithDefault(msg, 3, ""), + tokenIdsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f, + tokenUrisList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f, + tokenDataList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f, + sender: jspb.Message.getFieldWithDefault(msg, 7, ""), + receiver: jspb.Message.getFieldWithDefault(msg, 8, ""), + memo: jspb.Message.getFieldWithDefault(msg, 9, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData} + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData; + return proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData} + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.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.setClassId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setClassUri(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setClassData(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.addTokenIds(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.addTokenUris(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.addTokenData(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setSender(value); + break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.setReceiver(value); + break; + case 9: + var value = /** @type {string} */ (reader.readString()); + msg.setMemo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getClassId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getClassUri(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getClassData(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getTokenIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 4, + f + ); + } + f = message.getTokenUrisList(); + if (f.length > 0) { + writer.writeRepeatedString( + 5, + f + ); + } + f = message.getTokenDataList(); + if (f.length > 0) { + writer.writeRepeatedString( + 6, + f + ); + } + f = message.getSender(); + if (f.length > 0) { + writer.writeString( + 7, + f + ); + } + f = message.getReceiver(); + if (f.length > 0) { + writer.writeString( + 8, + f + ); + } + f = message.getMemo(); + if (f.length > 0) { + writer.writeString( + 9, + f + ); + } +}; + + +/** + * optional string class_id = 1; + * @return {string} + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.getClassId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData} returns this + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.setClassId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string class_uri = 2; + * @return {string} + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.getClassUri = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData} returns this + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.setClassUri = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string class_data = 3; + * @return {string} + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.getClassData = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData} returns this + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.setClassData = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * repeated string token_ids = 4; + * @return {!Array} + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.getTokenIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData} returns this + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.setTokenIdsList = function(value) { + return jspb.Message.setField(this, 4, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData} returns this + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.addTokenIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 4, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData} returns this + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.clearTokenIdsList = function() { + return this.setTokenIdsList([]); +}; + + +/** + * repeated string token_uris = 5; + * @return {!Array} + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.getTokenUrisList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 5)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData} returns this + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.setTokenUrisList = function(value) { + return jspb.Message.setField(this, 5, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData} returns this + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.addTokenUris = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 5, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData} returns this + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.clearTokenUrisList = function() { + return this.setTokenUrisList([]); +}; + + +/** + * repeated string token_data = 6; + * @return {!Array} + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.getTokenDataList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 6)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData} returns this + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.setTokenDataList = function(value) { + return jspb.Message.setField(this, 6, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData} returns this + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.addTokenData = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 6, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData} returns this + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.clearTokenDataList = function() { + return this.setTokenDataList([]); +}; + + +/** + * optional string sender = 7; + * @return {string} + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.getSender = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData} returns this + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.setSender = function(value) { + return jspb.Message.setProto3StringField(this, 7, value); +}; + + +/** + * optional string receiver = 8; + * @return {string} + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.getReceiver = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData} returns this + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.setReceiver = function(value) { + return jspb.Message.setProto3StringField(this, 8, value); +}; + + +/** + * optional string memo = 9; + * @return {string} + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.getMemo = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData} returns this + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.setMemo = function(value) { + return jspb.Message.setProto3StringField(this, 9, value); +}; + + +goog.object.extend(exports, proto.ibc.applications.nft_transfer.v1); diff --git a/dist/src/types/proto-types/ibc/applications/nft_transfer/v1/query_grpc_web_pb.js b/dist/src/types/proto-types/ibc/applications/nft_transfer/v1/query_grpc_web_pb.js new file mode 100644 index 00000000..21e2a851 --- /dev/null +++ b/dist/src/types/proto-types/ibc/applications/nft_transfer/v1/query_grpc_web_pb.js @@ -0,0 +1,485 @@ +/** + * @fileoverview gRPC-Web generated client stub for ibc.applications.nft_transfer.v1 + * @enhanceable + * @public + */ + +// GENERATED CODE -- DO NOT EDIT! + + +/* eslint-disable */ +// @ts-nocheck + + + +const grpc = {}; +grpc.web = require('grpc-web'); + + +var gogoproto_gogo_pb = require('../../../../gogoproto/gogo_pb.js') + +var cosmos_base_query_v1beta1_pagination_pb = require('../../../../cosmos/base/query/v1beta1/pagination_pb.js') + +var ibc_applications_nft_transfer_v1_transfer_pb = require('../../../../ibc/applications/nft_transfer/v1/transfer_pb.js') + +var google_api_annotations_pb = require('../../../../google/api/annotations_pb.js') +const proto = {}; +proto.ibc = {}; +proto.ibc.applications = {}; +proto.ibc.applications.nft_transfer = {}; +proto.ibc.applications.nft_transfer.v1 = require('./query_pb.js'); + +/** + * @param {string} hostname + * @param {?Object} credentials + * @param {?Object} options + * @constructor + * @struct + * @final + */ +proto.ibc.applications.nft_transfer.v1.QueryClient = + function(hostname, credentials, options) { + if (!options) options = {}; + options['format'] = 'text'; + + /** + * @private @const {!grpc.web.GrpcWebClientBase} The client + */ + this.client_ = new grpc.web.GrpcWebClientBase(options); + + /** + * @private @const {string} The hostname + */ + this.hostname_ = hostname; + +}; + + +/** + * @param {string} hostname + * @param {?Object} credentials + * @param {?Object} options + * @constructor + * @struct + * @final + */ +proto.ibc.applications.nft_transfer.v1.QueryPromiseClient = + function(hostname, credentials, options) { + if (!options) options = {}; + options['format'] = 'text'; + + /** + * @private @const {!grpc.web.GrpcWebClientBase} The client + */ + this.client_ = new grpc.web.GrpcWebClientBase(options); + + /** + * @private @const {string} The hostname + */ + this.hostname_ = hostname; + +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest, + * !proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse>} + */ +const methodDescriptor_Query_ClassTrace = new grpc.web.MethodDescriptor( + '/ibc.applications.nft_transfer.v1.Query/ClassTrace', + grpc.web.MethodType.UNARY, + proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest, + proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse, + /** + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest, + * !proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse>} + */ +const methodInfo_Query_ClassTrace = new grpc.web.AbstractClientBase.MethodInfo( + proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse, + /** + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse.deserializeBinary +); + + +/** + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.ibc.applications.nft_transfer.v1.QueryClient.prototype.classTrace = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/ibc.applications.nft_transfer.v1.Query/ClassTrace', + request, + metadata || {}, + methodDescriptor_Query_ClassTrace, + callback); +}; + + +/** + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.ibc.applications.nft_transfer.v1.QueryPromiseClient.prototype.classTrace = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/ibc.applications.nft_transfer.v1.Query/ClassTrace', + request, + metadata || {}, + methodDescriptor_Query_ClassTrace); +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest, + * !proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse>} + */ +const methodDescriptor_Query_ClassTraces = new grpc.web.MethodDescriptor( + '/ibc.applications.nft_transfer.v1.Query/ClassTraces', + grpc.web.MethodType.UNARY, + proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest, + proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse, + /** + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest, + * !proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse>} + */ +const methodInfo_Query_ClassTraces = new grpc.web.AbstractClientBase.MethodInfo( + proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse, + /** + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse.deserializeBinary +); + + +/** + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.ibc.applications.nft_transfer.v1.QueryClient.prototype.classTraces = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/ibc.applications.nft_transfer.v1.Query/ClassTraces', + request, + metadata || {}, + methodDescriptor_Query_ClassTraces, + callback); +}; + + +/** + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.ibc.applications.nft_transfer.v1.QueryPromiseClient.prototype.classTraces = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/ibc.applications.nft_transfer.v1.Query/ClassTraces', + request, + metadata || {}, + methodDescriptor_Query_ClassTraces); +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest, + * !proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse>} + */ +const methodDescriptor_Query_ClassHash = new grpc.web.MethodDescriptor( + '/ibc.applications.nft_transfer.v1.Query/ClassHash', + grpc.web.MethodType.UNARY, + proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest, + proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse, + /** + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest, + * !proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse>} + */ +const methodInfo_Query_ClassHash = new grpc.web.AbstractClientBase.MethodInfo( + proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse, + /** + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse.deserializeBinary +); + + +/** + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.ibc.applications.nft_transfer.v1.QueryClient.prototype.classHash = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/ibc.applications.nft_transfer.v1.Query/ClassHash', + request, + metadata || {}, + methodDescriptor_Query_ClassHash, + callback); +}; + + +/** + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.ibc.applications.nft_transfer.v1.QueryPromiseClient.prototype.classHash = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/ibc.applications.nft_transfer.v1.Query/ClassHash', + request, + metadata || {}, + methodDescriptor_Query_ClassHash); +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest, + * !proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse>} + */ +const methodDescriptor_Query_EscrowAddress = new grpc.web.MethodDescriptor( + '/ibc.applications.nft_transfer.v1.Query/EscrowAddress', + grpc.web.MethodType.UNARY, + proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest, + proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse, + /** + * @param {!proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest, + * !proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse>} + */ +const methodInfo_Query_EscrowAddress = new grpc.web.AbstractClientBase.MethodInfo( + proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse, + /** + * @param {!proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse.deserializeBinary +); + + +/** + * @param {!proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.ibc.applications.nft_transfer.v1.QueryClient.prototype.escrowAddress = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/ibc.applications.nft_transfer.v1.Query/EscrowAddress', + request, + metadata || {}, + methodDescriptor_Query_EscrowAddress, + callback); +}; + + +/** + * @param {!proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.ibc.applications.nft_transfer.v1.QueryPromiseClient.prototype.escrowAddress = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/ibc.applications.nft_transfer.v1.Query/EscrowAddress', + request, + metadata || {}, + methodDescriptor_Query_EscrowAddress); +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.ibc.applications.nft_transfer.v1.QueryParamsRequest, + * !proto.ibc.applications.nft_transfer.v1.QueryParamsResponse>} + */ +const methodDescriptor_Query_Params = new grpc.web.MethodDescriptor( + '/ibc.applications.nft_transfer.v1.Query/Params', + grpc.web.MethodType.UNARY, + proto.ibc.applications.nft_transfer.v1.QueryParamsRequest, + proto.ibc.applications.nft_transfer.v1.QueryParamsResponse, + /** + * @param {!proto.ibc.applications.nft_transfer.v1.QueryParamsRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.ibc.applications.nft_transfer.v1.QueryParamsResponse.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.ibc.applications.nft_transfer.v1.QueryParamsRequest, + * !proto.ibc.applications.nft_transfer.v1.QueryParamsResponse>} + */ +const methodInfo_Query_Params = new grpc.web.AbstractClientBase.MethodInfo( + proto.ibc.applications.nft_transfer.v1.QueryParamsResponse, + /** + * @param {!proto.ibc.applications.nft_transfer.v1.QueryParamsRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.ibc.applications.nft_transfer.v1.QueryParamsResponse.deserializeBinary +); + + +/** + * @param {!proto.ibc.applications.nft_transfer.v1.QueryParamsRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.ibc.applications.nft_transfer.v1.QueryParamsResponse)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.ibc.applications.nft_transfer.v1.QueryClient.prototype.params = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/ibc.applications.nft_transfer.v1.Query/Params', + request, + metadata || {}, + methodDescriptor_Query_Params, + callback); +}; + + +/** + * @param {!proto.ibc.applications.nft_transfer.v1.QueryParamsRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.ibc.applications.nft_transfer.v1.QueryPromiseClient.prototype.params = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/ibc.applications.nft_transfer.v1.Query/Params', + request, + metadata || {}, + methodDescriptor_Query_Params); +}; + + +module.exports = proto.ibc.applications.nft_transfer.v1; + diff --git a/dist/src/types/proto-types/ibc/applications/nft_transfer/v1/query_pb.js b/dist/src/types/proto-types/ibc/applications/nft_transfer/v1/query_pb.js new file mode 100644 index 00000000..4719467e --- /dev/null +++ b/dist/src/types/proto-types/ibc/applications/nft_transfer/v1/query_pb.js @@ -0,0 +1,1688 @@ +// source: ibc/applications/nft_transfer/v1/query.proto +/** + * @fileoverview + * @enhanceable + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = Function('return this')(); + +var gogoproto_gogo_pb = require('../../../../gogoproto/gogo_pb.js'); +goog.object.extend(proto, gogoproto_gogo_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); +var ibc_applications_nft_transfer_v1_transfer_pb = require('../../../../ibc/applications/nft_transfer/v1/transfer_pb.js'); +goog.object.extend(proto, ibc_applications_nft_transfer_v1_transfer_pb); +var google_api_annotations_pb = require('../../../../google/api/annotations_pb.js'); +goog.object.extend(proto, google_api_annotations_pb); +goog.exportSymbol('proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest', null, global); +goog.exportSymbol('proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse', null, global); +goog.exportSymbol('proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest', null, global); +goog.exportSymbol('proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse', null, global); +goog.exportSymbol('proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest', null, global); +goog.exportSymbol('proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse', null, global); +goog.exportSymbol('proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest', null, global); +goog.exportSymbol('proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse', null, global); +goog.exportSymbol('proto.ibc.applications.nft_transfer.v1.QueryParamsRequest', null, global); +goog.exportSymbol('proto.ibc.applications.nft_transfer.v1.QueryParamsResponse', null, global); +/** + * 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.ibc.applications.nft_transfer.v1.QueryClassTraceRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest.displayName = 'proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest'; +} +/** + * 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.ibc.applications.nft_transfer.v1.QueryClassTraceResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse.displayName = 'proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse'; +} +/** + * 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.ibc.applications.nft_transfer.v1.QueryClassTracesRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest.displayName = 'proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest'; +} +/** + * 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.ibc.applications.nft_transfer.v1.QueryClassTracesResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse.repeatedFields_, null); +}; +goog.inherits(proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse.displayName = 'proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse'; +} +/** + * 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.ibc.applications.nft_transfer.v1.QueryClassHashRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest.displayName = 'proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest'; +} +/** + * 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.ibc.applications.nft_transfer.v1.QueryClassHashResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse.displayName = 'proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse'; +} +/** + * 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.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest.displayName = 'proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest'; +} +/** + * 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.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse.displayName = 'proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse'; +} +/** + * 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.ibc.applications.nft_transfer.v1.QueryParamsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ibc.applications.nft_transfer.v1.QueryParamsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ibc.applications.nft_transfer.v1.QueryParamsRequest.displayName = 'proto.ibc.applications.nft_transfer.v1.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.ibc.applications.nft_transfer.v1.QueryParamsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ibc.applications.nft_transfer.v1.QueryParamsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ibc.applications.nft_transfer.v1.QueryParamsResponse.displayName = 'proto.ibc.applications.nft_transfer.v1.QueryParamsResponse'; +} + + + +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.ibc.applications.nft_transfer.v1.QueryClassTraceRequest.prototype.toObject = function(opt_includeInstance) { + return proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest.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.ibc.applications.nft_transfer.v1.QueryClassTraceRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest.toObject = function(includeInstance, msg) { + var f, obj = { + hash: 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.ibc.applications.nft_transfer.v1.QueryClassTraceRequest} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest; + return proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest.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.setHash(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getHash(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string hash = 1; + * @return {string} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest.prototype.getHash = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest} returns this + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest.prototype.setHash = 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.ibc.applications.nft_transfer.v1.QueryClassTraceResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse.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.ibc.applications.nft_transfer.v1.QueryClassTraceResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse.toObject = function(includeInstance, msg) { + var f, obj = { + classTrace: (f = msg.getClassTrace()) && ibc_applications_nft_transfer_v1_transfer_pb.ClassTrace.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.ibc.applications.nft_transfer.v1.QueryClassTraceResponse} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse; + return proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new ibc_applications_nft_transfer_v1_transfer_pb.ClassTrace; + reader.readMessage(value,ibc_applications_nft_transfer_v1_transfer_pb.ClassTrace.deserializeBinaryFromReader); + msg.setClassTrace(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getClassTrace(); + if (f != null) { + writer.writeMessage( + 1, + f, + ibc_applications_nft_transfer_v1_transfer_pb.ClassTrace.serializeBinaryToWriter + ); + } +}; + + +/** + * optional ClassTrace class_trace = 1; + * @return {?proto.ibc.applications.nft_transfer.v1.ClassTrace} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse.prototype.getClassTrace = function() { + return /** @type{?proto.ibc.applications.nft_transfer.v1.ClassTrace} */ ( + jspb.Message.getWrapperField(this, ibc_applications_nft_transfer_v1_transfer_pb.ClassTrace, 1)); +}; + + +/** + * @param {?proto.ibc.applications.nft_transfer.v1.ClassTrace|undefined} value + * @return {!proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse} returns this +*/ +proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse.prototype.setClassTrace = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse} returns this + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse.prototype.clearClassTrace = function() { + return this.setClassTrace(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse.prototype.hasClassTrace = 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.ibc.applications.nft_transfer.v1.QueryClassTracesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest.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.ibc.applications.nft_transfer.v1.QueryClassTracesRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest.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.ibc.applications.nft_transfer.v1.QueryClassTracesRequest} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest; + return proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest.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.ibc.applications.nft_transfer.v1.QueryClassTracesRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest.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.ibc.applications.nft_transfer.v1.QueryClassTracesRequest.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.ibc.applications.nft_transfer.v1.QueryClassTracesRequest} returns this +*/ +proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest.prototype.setPagination = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest} returns this + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest.prototype.clearPagination = function() { + return this.setPagination(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest.prototype.hasPagination = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse.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.ibc.applications.nft_transfer.v1.QueryClassTracesResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse.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.ibc.applications.nft_transfer.v1.QueryClassTracesResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse.toObject = function(includeInstance, msg) { + var f, obj = { + classTracesList: jspb.Message.toObjectList(msg.getClassTracesList(), + ibc_applications_nft_transfer_v1_transfer_pb.ClassTrace.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.ibc.applications.nft_transfer.v1.QueryClassTracesResponse} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse; + return proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new ibc_applications_nft_transfer_v1_transfer_pb.ClassTrace; + reader.readMessage(value,ibc_applications_nft_transfer_v1_transfer_pb.ClassTrace.deserializeBinaryFromReader); + msg.addClassTraces(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.ibc.applications.nft_transfer.v1.QueryClassTracesResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getClassTracesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + ibc_applications_nft_transfer_v1_transfer_pb.ClassTrace.serializeBinaryToWriter + ); + } + f = message.getPagination(); + if (f != null) { + writer.writeMessage( + 2, + f, + cosmos_base_query_v1beta1_pagination_pb.PageResponse.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated ClassTrace class_traces = 1; + * @return {!Array} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse.prototype.getClassTracesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, ibc_applications_nft_transfer_v1_transfer_pb.ClassTrace, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse} returns this +*/ +proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse.prototype.setClassTracesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.ibc.applications.nft_transfer.v1.ClassTrace=} opt_value + * @param {number=} opt_index + * @return {!proto.ibc.applications.nft_transfer.v1.ClassTrace} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse.prototype.addClassTraces = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ibc.applications.nft_transfer.v1.ClassTrace, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse} returns this + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse.prototype.clearClassTracesList = function() { + return this.setClassTracesList([]); +}; + + +/** + * optional cosmos.base.query.v1beta1.PageResponse pagination = 2; + * @return {?proto.cosmos.base.query.v1beta1.PageResponse} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse.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.ibc.applications.nft_transfer.v1.QueryClassTracesResponse} returns this +*/ +proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse.prototype.setPagination = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse} returns this + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse.prototype.clearPagination = function() { + return this.setPagination(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse.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.ibc.applications.nft_transfer.v1.QueryClassHashRequest.prototype.toObject = function(opt_includeInstance) { + return proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest.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.ibc.applications.nft_transfer.v1.QueryClassHashRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest.toObject = function(includeInstance, msg) { + var f, obj = { + trace: 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.ibc.applications.nft_transfer.v1.QueryClassHashRequest} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest; + return proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest.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.setTrace(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTrace(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string trace = 1; + * @return {string} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest.prototype.getTrace = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest} returns this + */ +proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest.prototype.setTrace = 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.ibc.applications.nft_transfer.v1.QueryClassHashResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse.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.ibc.applications.nft_transfer.v1.QueryClassHashResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse.toObject = function(includeInstance, msg) { + var f, obj = { + hash: 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.ibc.applications.nft_transfer.v1.QueryClassHashResponse} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse; + return proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse.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.setHash(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getHash(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string hash = 1; + * @return {string} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse.prototype.getHash = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse} returns this + */ +proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse.prototype.setHash = 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.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest.prototype.toObject = function(opt_includeInstance) { + return proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest.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.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest.toObject = function(includeInstance, msg) { + var f, obj = { + portId: jspb.Message.getFieldWithDefault(msg, 1, ""), + channelId: 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.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest} + */ +proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest; + return proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest} + */ +proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest.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.setPortId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setChannelId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPortId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getChannelId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional string port_id = 1; + * @return {string} + */ +proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest.prototype.getPortId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest} returns this + */ +proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest.prototype.setPortId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string channel_id = 2; + * @return {string} + */ +proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest.prototype.getChannelId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest} returns this + */ +proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest.prototype.setChannelId = 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.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse.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.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse.toObject = function(includeInstance, msg) { + var f, obj = { + escrowAddress: 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.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse} + */ +proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse; + return proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse} + */ +proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse.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.setEscrowAddress(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getEscrowAddress(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string escrow_address = 1; + * @return {string} + */ +proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse.prototype.getEscrowAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse} returns this + */ +proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse.prototype.setEscrowAddress = 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.ibc.applications.nft_transfer.v1.QueryParamsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.ibc.applications.nft_transfer.v1.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.ibc.applications.nft_transfer.v1.QueryParamsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.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.ibc.applications.nft_transfer.v1.QueryParamsRequest} + */ +proto.ibc.applications.nft_transfer.v1.QueryParamsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ibc.applications.nft_transfer.v1.QueryParamsRequest; + return proto.ibc.applications.nft_transfer.v1.QueryParamsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ibc.applications.nft_transfer.v1.QueryParamsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ibc.applications.nft_transfer.v1.QueryParamsRequest} + */ +proto.ibc.applications.nft_transfer.v1.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.ibc.applications.nft_transfer.v1.QueryParamsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ibc.applications.nft_transfer.v1.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.ibc.applications.nft_transfer.v1.QueryParamsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.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.ibc.applications.nft_transfer.v1.QueryParamsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ibc.applications.nft_transfer.v1.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.ibc.applications.nft_transfer.v1.QueryParamsResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.QueryParamsResponse.toObject = function(includeInstance, msg) { + var f, obj = { + params: (f = msg.getParams()) && ibc_applications_nft_transfer_v1_transfer_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.ibc.applications.nft_transfer.v1.QueryParamsResponse} + */ +proto.ibc.applications.nft_transfer.v1.QueryParamsResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ibc.applications.nft_transfer.v1.QueryParamsResponse; + return proto.ibc.applications.nft_transfer.v1.QueryParamsResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ibc.applications.nft_transfer.v1.QueryParamsResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ibc.applications.nft_transfer.v1.QueryParamsResponse} + */ +proto.ibc.applications.nft_transfer.v1.QueryParamsResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new ibc_applications_nft_transfer_v1_transfer_pb.Params; + reader.readMessage(value,ibc_applications_nft_transfer_v1_transfer_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.ibc.applications.nft_transfer.v1.QueryParamsResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ibc.applications.nft_transfer.v1.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.ibc.applications.nft_transfer.v1.QueryParamsResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.QueryParamsResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getParams(); + if (f != null) { + writer.writeMessage( + 1, + f, + ibc_applications_nft_transfer_v1_transfer_pb.Params.serializeBinaryToWriter + ); + } +}; + + +/** + * optional Params params = 1; + * @return {?proto.ibc.applications.nft_transfer.v1.Params} + */ +proto.ibc.applications.nft_transfer.v1.QueryParamsResponse.prototype.getParams = function() { + return /** @type{?proto.ibc.applications.nft_transfer.v1.Params} */ ( + jspb.Message.getWrapperField(this, ibc_applications_nft_transfer_v1_transfer_pb.Params, 1)); +}; + + +/** + * @param {?proto.ibc.applications.nft_transfer.v1.Params|undefined} value + * @return {!proto.ibc.applications.nft_transfer.v1.QueryParamsResponse} returns this +*/ +proto.ibc.applications.nft_transfer.v1.QueryParamsResponse.prototype.setParams = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ibc.applications.nft_transfer.v1.QueryParamsResponse} returns this + */ +proto.ibc.applications.nft_transfer.v1.QueryParamsResponse.prototype.clearParams = function() { + return this.setParams(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ibc.applications.nft_transfer.v1.QueryParamsResponse.prototype.hasParams = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +goog.object.extend(exports, proto.ibc.applications.nft_transfer.v1); diff --git a/dist/src/types/proto-types/ibc/applications/nft_transfer/v1/transfer_pb.js b/dist/src/types/proto-types/ibc/applications/nft_transfer/v1/transfer_pb.js new file mode 100644 index 00000000..e95fc59e --- /dev/null +++ b/dist/src/types/proto-types/ibc/applications/nft_transfer/v1/transfer_pb.js @@ -0,0 +1,379 @@ +// source: ibc/applications/nft_transfer/v1/transfer.proto +/** + * @fileoverview + * @enhanceable + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = Function('return this')(); + +goog.exportSymbol('proto.ibc.applications.nft_transfer.v1.ClassTrace', null, global); +goog.exportSymbol('proto.ibc.applications.nft_transfer.v1.Params', null, global); +/** + * 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.ibc.applications.nft_transfer.v1.ClassTrace = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ibc.applications.nft_transfer.v1.ClassTrace, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ibc.applications.nft_transfer.v1.ClassTrace.displayName = 'proto.ibc.applications.nft_transfer.v1.ClassTrace'; +} +/** + * 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.ibc.applications.nft_transfer.v1.Params = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ibc.applications.nft_transfer.v1.Params, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ibc.applications.nft_transfer.v1.Params.displayName = 'proto.ibc.applications.nft_transfer.v1.Params'; +} + + + +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.ibc.applications.nft_transfer.v1.ClassTrace.prototype.toObject = function(opt_includeInstance) { + return proto.ibc.applications.nft_transfer.v1.ClassTrace.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.ibc.applications.nft_transfer.v1.ClassTrace} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.ClassTrace.toObject = function(includeInstance, msg) { + var f, obj = { + path: jspb.Message.getFieldWithDefault(msg, 1, ""), + baseClassId: 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.ibc.applications.nft_transfer.v1.ClassTrace} + */ +proto.ibc.applications.nft_transfer.v1.ClassTrace.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ibc.applications.nft_transfer.v1.ClassTrace; + return proto.ibc.applications.nft_transfer.v1.ClassTrace.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ibc.applications.nft_transfer.v1.ClassTrace} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ibc.applications.nft_transfer.v1.ClassTrace} + */ +proto.ibc.applications.nft_transfer.v1.ClassTrace.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.setPath(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setBaseClassId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ibc.applications.nft_transfer.v1.ClassTrace.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ibc.applications.nft_transfer.v1.ClassTrace.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ibc.applications.nft_transfer.v1.ClassTrace} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.ClassTrace.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPath(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getBaseClassId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional string path = 1; + * @return {string} + */ +proto.ibc.applications.nft_transfer.v1.ClassTrace.prototype.getPath = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ibc.applications.nft_transfer.v1.ClassTrace} returns this + */ +proto.ibc.applications.nft_transfer.v1.ClassTrace.prototype.setPath = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string base_class_id = 2; + * @return {string} + */ +proto.ibc.applications.nft_transfer.v1.ClassTrace.prototype.getBaseClassId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ibc.applications.nft_transfer.v1.ClassTrace} returns this + */ +proto.ibc.applications.nft_transfer.v1.ClassTrace.prototype.setBaseClassId = 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.ibc.applications.nft_transfer.v1.Params.prototype.toObject = function(opt_includeInstance) { + return proto.ibc.applications.nft_transfer.v1.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.ibc.applications.nft_transfer.v1.Params} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.Params.toObject = function(includeInstance, msg) { + var f, obj = { + sendEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), + receiveEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ibc.applications.nft_transfer.v1.Params} + */ +proto.ibc.applications.nft_transfer.v1.Params.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ibc.applications.nft_transfer.v1.Params; + return proto.ibc.applications.nft_transfer.v1.Params.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ibc.applications.nft_transfer.v1.Params} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ibc.applications.nft_transfer.v1.Params} + */ +proto.ibc.applications.nft_transfer.v1.Params.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSendEnabled(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setReceiveEnabled(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ibc.applications.nft_transfer.v1.Params.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ibc.applications.nft_transfer.v1.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.ibc.applications.nft_transfer.v1.Params} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.Params.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSendEnabled(); + if (f) { + writer.writeBool( + 1, + f + ); + } + f = message.getReceiveEnabled(); + if (f) { + writer.writeBool( + 2, + f + ); + } +}; + + +/** + * optional bool send_enabled = 1; + * @return {boolean} + */ +proto.ibc.applications.nft_transfer.v1.Params.prototype.getSendEnabled = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.ibc.applications.nft_transfer.v1.Params} returns this + */ +proto.ibc.applications.nft_transfer.v1.Params.prototype.setSendEnabled = function(value) { + return jspb.Message.setProto3BooleanField(this, 1, value); +}; + + +/** + * optional bool receive_enabled = 2; + * @return {boolean} + */ +proto.ibc.applications.nft_transfer.v1.Params.prototype.getReceiveEnabled = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.ibc.applications.nft_transfer.v1.Params} returns this + */ +proto.ibc.applications.nft_transfer.v1.Params.prototype.setReceiveEnabled = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); +}; + + +goog.object.extend(exports, proto.ibc.applications.nft_transfer.v1); diff --git a/dist/src/types/proto-types/ibc/applications/nft_transfer/v1/tx_grpc_web_pb.js b/dist/src/types/proto-types/ibc/applications/nft_transfer/v1/tx_grpc_web_pb.js new file mode 100644 index 00000000..107f68dd --- /dev/null +++ b/dist/src/types/proto-types/ibc/applications/nft_transfer/v1/tx_grpc_web_pb.js @@ -0,0 +1,243 @@ +/** + * @fileoverview gRPC-Web generated client stub for ibc.applications.nft_transfer.v1 + * @enhanceable + * @public + */ + +// GENERATED CODE -- DO NOT EDIT! + + +/* eslint-disable */ +// @ts-nocheck + + + +const grpc = {}; +grpc.web = require('grpc-web'); + + +var gogoproto_gogo_pb = require('../../../../gogoproto/gogo_pb.js') + +var ibc_core_client_v1_client_pb = require('../../../../ibc/core/client/v1/client_pb.js') + +var ibc_applications_nft_transfer_v1_transfer_pb = require('../../../../ibc/applications/nft_transfer/v1/transfer_pb.js') +const proto = {}; +proto.ibc = {}; +proto.ibc.applications = {}; +proto.ibc.applications.nft_transfer = {}; +proto.ibc.applications.nft_transfer.v1 = require('./tx_pb.js'); + +/** + * @param {string} hostname + * @param {?Object} credentials + * @param {?Object} options + * @constructor + * @struct + * @final + */ +proto.ibc.applications.nft_transfer.v1.MsgClient = + function(hostname, credentials, options) { + if (!options) options = {}; + options['format'] = 'text'; + + /** + * @private @const {!grpc.web.GrpcWebClientBase} The client + */ + this.client_ = new grpc.web.GrpcWebClientBase(options); + + /** + * @private @const {string} The hostname + */ + this.hostname_ = hostname; + +}; + + +/** + * @param {string} hostname + * @param {?Object} credentials + * @param {?Object} options + * @constructor + * @struct + * @final + */ +proto.ibc.applications.nft_transfer.v1.MsgPromiseClient = + function(hostname, credentials, options) { + if (!options) options = {}; + options['format'] = 'text'; + + /** + * @private @const {!grpc.web.GrpcWebClientBase} The client + */ + this.client_ = new grpc.web.GrpcWebClientBase(options); + + /** + * @private @const {string} The hostname + */ + this.hostname_ = hostname; + +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.ibc.applications.nft_transfer.v1.MsgTransfer, + * !proto.ibc.applications.nft_transfer.v1.MsgTransferResponse>} + */ +const methodDescriptor_Msg_Transfer = new grpc.web.MethodDescriptor( + '/ibc.applications.nft_transfer.v1.Msg/Transfer', + grpc.web.MethodType.UNARY, + proto.ibc.applications.nft_transfer.v1.MsgTransfer, + proto.ibc.applications.nft_transfer.v1.MsgTransferResponse, + /** + * @param {!proto.ibc.applications.nft_transfer.v1.MsgTransfer} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.ibc.applications.nft_transfer.v1.MsgTransferResponse.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.ibc.applications.nft_transfer.v1.MsgTransfer, + * !proto.ibc.applications.nft_transfer.v1.MsgTransferResponse>} + */ +const methodInfo_Msg_Transfer = new grpc.web.AbstractClientBase.MethodInfo( + proto.ibc.applications.nft_transfer.v1.MsgTransferResponse, + /** + * @param {!proto.ibc.applications.nft_transfer.v1.MsgTransfer} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.ibc.applications.nft_transfer.v1.MsgTransferResponse.deserializeBinary +); + + +/** + * @param {!proto.ibc.applications.nft_transfer.v1.MsgTransfer} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.ibc.applications.nft_transfer.v1.MsgTransferResponse)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.ibc.applications.nft_transfer.v1.MsgClient.prototype.transfer = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/ibc.applications.nft_transfer.v1.Msg/Transfer', + request, + metadata || {}, + methodDescriptor_Msg_Transfer, + callback); +}; + + +/** + * @param {!proto.ibc.applications.nft_transfer.v1.MsgTransfer} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.ibc.applications.nft_transfer.v1.MsgPromiseClient.prototype.transfer = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/ibc.applications.nft_transfer.v1.Msg/Transfer', + request, + metadata || {}, + methodDescriptor_Msg_Transfer); +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.ibc.applications.nft_transfer.v1.MsgUpdateParams, + * !proto.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse>} + */ +const methodDescriptor_Msg_UpdateParams = new grpc.web.MethodDescriptor( + '/ibc.applications.nft_transfer.v1.Msg/UpdateParams', + grpc.web.MethodType.UNARY, + proto.ibc.applications.nft_transfer.v1.MsgUpdateParams, + proto.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse, + /** + * @param {!proto.ibc.applications.nft_transfer.v1.MsgUpdateParams} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.ibc.applications.nft_transfer.v1.MsgUpdateParams, + * !proto.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse>} + */ +const methodInfo_Msg_UpdateParams = new grpc.web.AbstractClientBase.MethodInfo( + proto.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse, + /** + * @param {!proto.ibc.applications.nft_transfer.v1.MsgUpdateParams} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse.deserializeBinary +); + + +/** + * @param {!proto.ibc.applications.nft_transfer.v1.MsgUpdateParams} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.ibc.applications.nft_transfer.v1.MsgClient.prototype.updateParams = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/ibc.applications.nft_transfer.v1.Msg/UpdateParams', + request, + metadata || {}, + methodDescriptor_Msg_UpdateParams, + callback); +}; + + +/** + * @param {!proto.ibc.applications.nft_transfer.v1.MsgUpdateParams} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.ibc.applications.nft_transfer.v1.MsgPromiseClient.prototype.updateParams = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/ibc.applications.nft_transfer.v1.Msg/UpdateParams', + request, + metadata || {}, + methodDescriptor_Msg_UpdateParams); +}; + + +module.exports = proto.ibc.applications.nft_transfer.v1; + diff --git a/dist/src/types/proto-types/ibc/applications/nft_transfer/v1/tx_pb.js b/dist/src/types/proto-types/ibc/applications/nft_transfer/v1/tx_pb.js new file mode 100644 index 00000000..75014443 --- /dev/null +++ b/dist/src/types/proto-types/ibc/applications/nft_transfer/v1/tx_pb.js @@ -0,0 +1,938 @@ +// source: ibc/applications/nft_transfer/v1/tx.proto +/** + * @fileoverview + * @enhanceable + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = Function('return this')(); + +var gogoproto_gogo_pb = require('../../../../gogoproto/gogo_pb.js'); +goog.object.extend(proto, gogoproto_gogo_pb); +var ibc_core_client_v1_client_pb = require('../../../../ibc/core/client/v1/client_pb.js'); +goog.object.extend(proto, ibc_core_client_v1_client_pb); +var ibc_applications_nft_transfer_v1_transfer_pb = require('../../../../ibc/applications/nft_transfer/v1/transfer_pb.js'); +goog.object.extend(proto, ibc_applications_nft_transfer_v1_transfer_pb); +goog.exportSymbol('proto.ibc.applications.nft_transfer.v1.MsgTransfer', null, global); +goog.exportSymbol('proto.ibc.applications.nft_transfer.v1.MsgTransferResponse', null, global); +goog.exportSymbol('proto.ibc.applications.nft_transfer.v1.MsgUpdateParams', null, global); +goog.exportSymbol('proto.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse', null, global); +/** + * 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.ibc.applications.nft_transfer.v1.MsgTransfer = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.ibc.applications.nft_transfer.v1.MsgTransfer.repeatedFields_, null); +}; +goog.inherits(proto.ibc.applications.nft_transfer.v1.MsgTransfer, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ibc.applications.nft_transfer.v1.MsgTransfer.displayName = 'proto.ibc.applications.nft_transfer.v1.MsgTransfer'; +} +/** + * 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.ibc.applications.nft_transfer.v1.MsgTransferResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ibc.applications.nft_transfer.v1.MsgTransferResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ibc.applications.nft_transfer.v1.MsgTransferResponse.displayName = 'proto.ibc.applications.nft_transfer.v1.MsgTransferResponse'; +} +/** + * 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.ibc.applications.nft_transfer.v1.MsgUpdateParams = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ibc.applications.nft_transfer.v1.MsgUpdateParams, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ibc.applications.nft_transfer.v1.MsgUpdateParams.displayName = 'proto.ibc.applications.nft_transfer.v1.MsgUpdateParams'; +} +/** + * 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.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse.displayName = 'proto.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.repeatedFields_ = [4]; + + + +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.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.toObject = function(opt_includeInstance) { + return proto.ibc.applications.nft_transfer.v1.MsgTransfer.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.ibc.applications.nft_transfer.v1.MsgTransfer} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.toObject = function(includeInstance, msg) { + var f, obj = { + sourcePort: jspb.Message.getFieldWithDefault(msg, 1, ""), + sourceChannel: jspb.Message.getFieldWithDefault(msg, 2, ""), + classId: jspb.Message.getFieldWithDefault(msg, 3, ""), + tokenIdsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f, + sender: jspb.Message.getFieldWithDefault(msg, 5, ""), + receiver: jspb.Message.getFieldWithDefault(msg, 6, ""), + timeoutHeight: (f = msg.getTimeoutHeight()) && ibc_core_client_v1_client_pb.Height.toObject(includeInstance, f), + timeoutTimestamp: jspb.Message.getFieldWithDefault(msg, 8, 0), + memo: jspb.Message.getFieldWithDefault(msg, 9, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ibc.applications.nft_transfer.v1.MsgTransfer} + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ibc.applications.nft_transfer.v1.MsgTransfer; + return proto.ibc.applications.nft_transfer.v1.MsgTransfer.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ibc.applications.nft_transfer.v1.MsgTransfer} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ibc.applications.nft_transfer.v1.MsgTransfer} + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.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.setSourcePort(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setSourceChannel(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setClassId(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.addTokenIds(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setSender(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setReceiver(value); + break; + case 7: + var value = new ibc_core_client_v1_client_pb.Height; + reader.readMessage(value,ibc_core_client_v1_client_pb.Height.deserializeBinaryFromReader); + msg.setTimeoutHeight(value); + break; + case 8: + var value = /** @type {number} */ (reader.readUint64()); + msg.setTimeoutTimestamp(value); + break; + case 9: + var value = /** @type {string} */ (reader.readString()); + msg.setMemo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ibc.applications.nft_transfer.v1.MsgTransfer.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ibc.applications.nft_transfer.v1.MsgTransfer} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSourcePort(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getSourceChannel(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getClassId(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getTokenIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 4, + f + ); + } + f = message.getSender(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getReceiver(); + if (f.length > 0) { + writer.writeString( + 6, + f + ); + } + f = message.getTimeoutHeight(); + if (f != null) { + writer.writeMessage( + 7, + f, + ibc_core_client_v1_client_pb.Height.serializeBinaryToWriter + ); + } + f = message.getTimeoutTimestamp(); + if (f !== 0) { + writer.writeUint64( + 8, + f + ); + } + f = message.getMemo(); + if (f.length > 0) { + writer.writeString( + 9, + f + ); + } +}; + + +/** + * optional string source_port = 1; + * @return {string} + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.getSourcePort = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ibc.applications.nft_transfer.v1.MsgTransfer} returns this + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.setSourcePort = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string source_channel = 2; + * @return {string} + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.getSourceChannel = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ibc.applications.nft_transfer.v1.MsgTransfer} returns this + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.setSourceChannel = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string class_id = 3; + * @return {string} + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.getClassId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ibc.applications.nft_transfer.v1.MsgTransfer} returns this + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.setClassId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * repeated string token_ids = 4; + * @return {!Array} + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.getTokenIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ibc.applications.nft_transfer.v1.MsgTransfer} returns this + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.setTokenIdsList = function(value) { + return jspb.Message.setField(this, 4, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.ibc.applications.nft_transfer.v1.MsgTransfer} returns this + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.addTokenIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 4, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ibc.applications.nft_transfer.v1.MsgTransfer} returns this + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.clearTokenIdsList = function() { + return this.setTokenIdsList([]); +}; + + +/** + * optional string sender = 5; + * @return {string} + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.getSender = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ibc.applications.nft_transfer.v1.MsgTransfer} returns this + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.setSender = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * optional string receiver = 6; + * @return {string} + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.getReceiver = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ibc.applications.nft_transfer.v1.MsgTransfer} returns this + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.setReceiver = function(value) { + return jspb.Message.setProto3StringField(this, 6, value); +}; + + +/** + * optional ibc.core.client.v1.Height timeout_height = 7; + * @return {?proto.ibc.core.client.v1.Height} + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.getTimeoutHeight = function() { + return /** @type{?proto.ibc.core.client.v1.Height} */ ( + jspb.Message.getWrapperField(this, ibc_core_client_v1_client_pb.Height, 7)); +}; + + +/** + * @param {?proto.ibc.core.client.v1.Height|undefined} value + * @return {!proto.ibc.applications.nft_transfer.v1.MsgTransfer} returns this +*/ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.setTimeoutHeight = function(value) { + return jspb.Message.setWrapperField(this, 7, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ibc.applications.nft_transfer.v1.MsgTransfer} returns this + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.clearTimeoutHeight = function() { + return this.setTimeoutHeight(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.hasTimeoutHeight = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * optional uint64 timeout_timestamp = 8; + * @return {number} + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.getTimeoutTimestamp = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ibc.applications.nft_transfer.v1.MsgTransfer} returns this + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.setTimeoutTimestamp = function(value) { + return jspb.Message.setProto3IntField(this, 8, value); +}; + + +/** + * optional string memo = 9; + * @return {string} + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.getMemo = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ibc.applications.nft_transfer.v1.MsgTransfer} returns this + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.setMemo = function(value) { + return jspb.Message.setProto3StringField(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.ibc.applications.nft_transfer.v1.MsgTransferResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ibc.applications.nft_transfer.v1.MsgTransferResponse.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.ibc.applications.nft_transfer.v1.MsgTransferResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.MsgTransferResponse.toObject = function(includeInstance, msg) { + var f, obj = { + sequence: jspb.Message.getFieldWithDefault(msg, 1, 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.ibc.applications.nft_transfer.v1.MsgTransferResponse} + */ +proto.ibc.applications.nft_transfer.v1.MsgTransferResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ibc.applications.nft_transfer.v1.MsgTransferResponse; + return proto.ibc.applications.nft_transfer.v1.MsgTransferResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ibc.applications.nft_transfer.v1.MsgTransferResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ibc.applications.nft_transfer.v1.MsgTransferResponse} + */ +proto.ibc.applications.nft_transfer.v1.MsgTransferResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setSequence(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ibc.applications.nft_transfer.v1.MsgTransferResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ibc.applications.nft_transfer.v1.MsgTransferResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ibc.applications.nft_transfer.v1.MsgTransferResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.MsgTransferResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSequence(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } +}; + + +/** + * optional uint64 sequence = 1; + * @return {number} + */ +proto.ibc.applications.nft_transfer.v1.MsgTransferResponse.prototype.getSequence = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ibc.applications.nft_transfer.v1.MsgTransferResponse} returns this + */ +proto.ibc.applications.nft_transfer.v1.MsgTransferResponse.prototype.setSequence = function(value) { + return jspb.Message.setProto3IntField(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.ibc.applications.nft_transfer.v1.MsgUpdateParams.prototype.toObject = function(opt_includeInstance) { + return proto.ibc.applications.nft_transfer.v1.MsgUpdateParams.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.ibc.applications.nft_transfer.v1.MsgUpdateParams} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.MsgUpdateParams.toObject = function(includeInstance, msg) { + var f, obj = { + authority: jspb.Message.getFieldWithDefault(msg, 1, ""), + params: (f = msg.getParams()) && ibc_applications_nft_transfer_v1_transfer_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.ibc.applications.nft_transfer.v1.MsgUpdateParams} + */ +proto.ibc.applications.nft_transfer.v1.MsgUpdateParams.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ibc.applications.nft_transfer.v1.MsgUpdateParams; + return proto.ibc.applications.nft_transfer.v1.MsgUpdateParams.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ibc.applications.nft_transfer.v1.MsgUpdateParams} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ibc.applications.nft_transfer.v1.MsgUpdateParams} + */ +proto.ibc.applications.nft_transfer.v1.MsgUpdateParams.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.setAuthority(value); + break; + case 2: + var value = new ibc_applications_nft_transfer_v1_transfer_pb.Params; + reader.readMessage(value,ibc_applications_nft_transfer_v1_transfer_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.ibc.applications.nft_transfer.v1.MsgUpdateParams.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ibc.applications.nft_transfer.v1.MsgUpdateParams.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ibc.applications.nft_transfer.v1.MsgUpdateParams} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.MsgUpdateParams.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAuthority(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getParams(); + if (f != null) { + writer.writeMessage( + 2, + f, + ibc_applications_nft_transfer_v1_transfer_pb.Params.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string authority = 1; + * @return {string} + */ +proto.ibc.applications.nft_transfer.v1.MsgUpdateParams.prototype.getAuthority = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ibc.applications.nft_transfer.v1.MsgUpdateParams} returns this + */ +proto.ibc.applications.nft_transfer.v1.MsgUpdateParams.prototype.setAuthority = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional Params params = 2; + * @return {?proto.ibc.applications.nft_transfer.v1.Params} + */ +proto.ibc.applications.nft_transfer.v1.MsgUpdateParams.prototype.getParams = function() { + return /** @type{?proto.ibc.applications.nft_transfer.v1.Params} */ ( + jspb.Message.getWrapperField(this, ibc_applications_nft_transfer_v1_transfer_pb.Params, 2)); +}; + + +/** + * @param {?proto.ibc.applications.nft_transfer.v1.Params|undefined} value + * @return {!proto.ibc.applications.nft_transfer.v1.MsgUpdateParams} returns this +*/ +proto.ibc.applications.nft_transfer.v1.MsgUpdateParams.prototype.setParams = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ibc.applications.nft_transfer.v1.MsgUpdateParams} returns this + */ +proto.ibc.applications.nft_transfer.v1.MsgUpdateParams.prototype.clearParams = function() { + return this.setParams(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ibc.applications.nft_transfer.v1.MsgUpdateParams.prototype.hasParams = 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.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse.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.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse.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.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse} + */ +proto.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse; + return proto.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse} + */ +proto.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse.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.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + +goog.object.extend(exports, proto.ibc.applications.nft_transfer.v1); diff --git a/dist/src/types/proto.d.ts b/dist/src/types/proto.d.ts index 08d49494..15548d87 100644 --- a/dist/src/types/proto.d.ts +++ b/dist/src/types/proto.d.ts @@ -18,6 +18,7 @@ export declare const service_tx_pb: any; export declare const token_tx_pb: any; export declare const farm_tx_pb: any; export declare const ibc_transfer_tx_pb: any; +export declare const ibc_nft_transfer_tx_pb: any; /***************QUERY***************/ export declare const base_query_pagination_pb: any; export declare const auth_query_pb: any; @@ -41,6 +42,7 @@ export declare const token_query_pb: any; export declare const farm_query_pb: any; export declare const ibc_transfer_query_pb: any; export declare const ibc_channel_query_pb: any; +export declare const ibc_nft_transfer_query_pb: any; /***************MODULES***************/ export declare const auth_auth_pb: any; export declare const crypto_ed25519_keys_pb: any; diff --git a/dist/src/types/proto.js b/dist/src/types/proto.js index cda26343..1c7ff7ac 100644 --- a/dist/src/types/proto.js +++ b/dist/src/types/proto.js @@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); -exports.vesting_tx_pb = exports.upgrade_upgrade_pb = exports.upgrade_query_pb = exports.tx_tx_pb = exports.token_tx_pb = exports.token_token_pb = exports.token_query_pb = exports.staking_tx_pb = exports.staking_query_pb = exports.slashing_tx_pb = exports.slashing_slashing_pb = exports.slashing_query_pb = exports.signing_signing_pb = exports.service_tx_pb = exports.service_query_pb = exports.record_tx_pb = exports.record_query_pb = exports.random_tx_pb = exports.random_query_pb = exports.params_query_pb = exports.params_params_pb = exports.oracle_tx_pb = exports.oracle_query_pb = exports.nft_tx_pb = exports.nft_query_pb = exports.mint_query_pb = exports.ibc_transfer_tx_pb = exports.ibc_transfer_query_pb = exports.ibc_core_client_pb = exports.ibc_channel_query_pb = exports.htlc_tx_pb = exports.htlc_query_pb = exports.gov_tx_pb = exports.gov_query_pb = exports.gov_gov_pb = exports.google_protobuf_timestamp_pb = exports.farm_tx_pb = exports.farm_query_pb = exports.evidence_tx_pb = exports.evidence_query_pb = exports.distribution_tx_pb = exports.distribution_query_pb = exports.distribution_distribution_pb = exports.custom_base_pb = exports.crypto_sm2_keys_pb = exports.crypto_secp256r1_keys_pb = exports.crypto_secp256k1_keys_pb = exports.crypto_multisig_keys_pb = exports.crypto_ed25519_keys_pb = exports.crisis_tx_pb = exports.coinswap_tx_pb = exports.coinswap_query_pb = exports.coinswap_coinswap_pb = exports.base_query_pagination_pb = exports.base_coin_pb = exports.bank_tx_pb = exports.bank_query_pb = exports.auth_query_pb = exports.auth_auth_pb = exports.any_pb = void 0; +exports.vesting_tx_pb = exports.upgrade_upgrade_pb = exports.upgrade_query_pb = exports.tx_tx_pb = exports.token_tx_pb = exports.token_token_pb = exports.token_query_pb = exports.staking_tx_pb = exports.staking_query_pb = exports.slashing_tx_pb = exports.slashing_slashing_pb = exports.slashing_query_pb = exports.signing_signing_pb = exports.service_tx_pb = exports.service_query_pb = exports.record_tx_pb = exports.record_query_pb = exports.random_tx_pb = exports.random_query_pb = exports.params_query_pb = exports.params_params_pb = exports.oracle_tx_pb = exports.oracle_query_pb = exports.nft_tx_pb = exports.nft_query_pb = exports.mint_query_pb = exports.ibc_transfer_tx_pb = exports.ibc_transfer_query_pb = exports.ibc_nft_transfer_tx_pb = exports.ibc_nft_transfer_query_pb = exports.ibc_core_client_pb = exports.ibc_channel_query_pb = exports.htlc_tx_pb = exports.htlc_query_pb = exports.gov_tx_pb = exports.gov_query_pb = exports.gov_gov_pb = exports.google_protobuf_timestamp_pb = exports.farm_tx_pb = exports.farm_query_pb = exports.evidence_tx_pb = exports.evidence_query_pb = exports.distribution_tx_pb = exports.distribution_query_pb = exports.distribution_distribution_pb = exports.custom_base_pb = exports.crypto_sm2_keys_pb = exports.crypto_secp256r1_keys_pb = exports.crypto_secp256k1_keys_pb = exports.crypto_multisig_keys_pb = exports.crypto_ed25519_keys_pb = exports.crisis_tx_pb = exports.coinswap_tx_pb = exports.coinswap_query_pb = exports.coinswap_coinswap_pb = exports.base_query_pagination_pb = exports.base_coin_pb = exports.bank_tx_pb = exports.bank_query_pb = exports.auth_query_pb = exports.auth_auth_pb = exports.any_pb = void 0; /***************TX*****************/ //cosmos tx var bank_tx_pb = exports.bank_tx_pb = require('./proto-types/cosmos/bank/v1beta1/tx_pb'); @@ -29,6 +29,7 @@ var token_tx_pb = exports.token_tx_pb = require('./proto-types/irismod/token/v1/ var farm_tx_pb = exports.farm_tx_pb = require('./proto-types/irismod/farm/tx_pb'); //ibc tx var ibc_transfer_tx_pb = exports.ibc_transfer_tx_pb = require('./proto-types/ibc/applications/transfer/v1/tx_pb'); +var ibc_nft_transfer_tx_pb = exports.ibc_nft_transfer_tx_pb = require('./proto-types/ibc/applications/nft_transfer/v1/tx_pb'); /***************QUERY***************/ var base_query_pagination_pb = exports.base_query_pagination_pb = require('./proto-types/cosmos/base/query/v1beta1/pagination_pb'); @@ -58,6 +59,7 @@ var farm_query_pb = exports.farm_query_pb = require('./proto-types/irismod/farm/ //ibc query var ibc_transfer_query_pb = exports.ibc_transfer_query_pb = require('./proto-types/ibc/applications/transfer/v1/query_pb'); var ibc_channel_query_pb = exports.ibc_channel_query_pb = require('./proto-types/ibc/core/channel/v1/query_pb'); +var ibc_nft_transfer_query_pb = exports.ibc_nft_transfer_query_pb = require('./proto-types/ibc/applications/nft_transfer/v1/query_pb'); /***************MODULES***************/ //cosmos module diff --git a/dist/src/types/types.d.ts b/dist/src/types/types.d.ts index f734d7c5..37cee9b4 100644 --- a/dist/src/types/types.d.ts +++ b/dist/src/types/types.d.ts @@ -49,7 +49,8 @@ export declare enum TxType { MsgDeposit = "cosmos.gov.v1beta1.MsgDeposit", MsgCreateHTLC = "irismod.htlc.MsgCreateHTLC", MsgClaimHTLC = "irismod.htlc.MsgClaimHTLC", - MsgTransfer = "ibc.applications.transfer.v1.MsgTransfer" + MsgTransfer = "ibc.applications.transfer.v1.MsgTransfer", + MsgIbcNftTransfer = "ibc.applications.nft_transfer.v1.MsgTransfer" } /** * Base Tx diff --git a/dist/src/types/types.js b/dist/src/types/types.js index fd42d29e..29387b7a 100644 --- a/dist/src/types/types.js +++ b/dist/src/types/types.js @@ -93,6 +93,7 @@ var TxType = exports.TxType = /*#__PURE__*/function (TxType) { TxType["MsgCreateHTLC"] = "irismod.htlc.MsgCreateHTLC"; TxType["MsgClaimHTLC"] = "irismod.htlc.MsgClaimHTLC"; TxType["MsgTransfer"] = "ibc.applications.transfer.v1.MsgTransfer"; + TxType["MsgIbcNftTransfer"] = "ibc.applications.nft_transfer.v1.MsgTransfer"; return TxType; }({}); /** diff --git a/dist/src/utils/crypto.d.ts b/dist/src/utils/crypto.d.ts index 1a8dab26..58620324 100644 --- a/dist/src/utils/crypto.d.ts +++ b/dist/src/utils/crypto.d.ts @@ -30,7 +30,7 @@ export declare class Crypto { * @param type The output type (default: hex) * @returns Bech32 address */ - static encodeAddress(pubkeyHash: string, hrp?: string, type?: string): any; + static encodeAddress(pubkeyHash: string, hrp?: string, type?: BufferEncoding): any; /** * ConvertAndEncode converts from a base64 encoded byte array to bach32 encoded byte string and then to bech32 * @param hrp The address prefix diff --git a/package.json b/package.json index 35323793..a86dd8f7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@irisnet/irishub-sdk", - "version": "3.2.0", + "version": "3.3.0", "description": "IRISHub JavaScript SDK", "main": "index.js", "typings": "index.ts", @@ -38,12 +38,12 @@ "@babel/plugin-transform-runtime": "^7.9.0", "@babel/preset-env": "^7.14.7", "@babel/preset-typescript": "^7.9.0", - "@types/jest": "^26.0.22", - "@types/node": "^10.0.3", + "@types/jest": "^29.5.11", + "@types/node": "^20.10.6", "babel-loader": "^9.1.2", "eslint": "^6.8.0", "eslint-loader": "^4.0.0", - "gts": "3.1.1", + "gts": "5.2.0", "jest": "29.7.0", "ts-loader": "^9.4.4", "tslint": "^6.1.0", @@ -53,12 +53,12 @@ "dependencies": { "@babel/runtime": "^7.13.10", "@types/mathjs": "6.0.11", - "@types/ws": "^7.4.5", + "@types/ws": "^8.5.10", "axios": "^1.6.2", "bcryptjs": "^2.4.3", "bech32": "^1.1.3", "bip32": "^2.0.4", - "bip39": "3.0.2", + "bip39": "3.1.0", "crypto-browserify": "^3.12.0", "crypto-js": "^4.0.0", "events": "^3.1.0", diff --git a/proto/ibc/applications/nft_transfer/v1/genesis.proto b/proto/ibc/applications/nft_transfer/v1/genesis.proto new file mode 100644 index 00000000..9c5d762a --- /dev/null +++ b/proto/ibc/applications/nft_transfer/v1/genesis.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +package ibc.applications.nft_transfer.v1; + +option go_package = "github.com/bianjieai/nft-transfer/types"; + +import "ibc/applications/nft_transfer/v1/transfer.proto"; +import "gogoproto/gogo.proto"; + +// GenesisState defines the ibc-nft-transfer genesis state +message GenesisState { + string port_id = 1; + repeated ClassTrace traces = 2 + [ (gogoproto.castrepeated) = "Traces", (gogoproto.nullable) = false ]; + Params params = 3 [(gogoproto.nullable) = false]; +} \ No newline at end of file diff --git a/proto/ibc/applications/nft_transfer/v1/packet.proto b/proto/ibc/applications/nft_transfer/v1/packet.proto new file mode 100644 index 00000000..893312ff --- /dev/null +++ b/proto/ibc/applications/nft_transfer/v1/packet.proto @@ -0,0 +1,29 @@ +syntax = "proto3"; + +package ibc.applications.nft_transfer.v1; + +option go_package = "github.com/bianjieai/nft-transfer/types"; + +// NonFungibleTokenPacketData defines a struct for the packet payload +// See NonFungibleTokenPacketData spec: +// https://github.com/cosmos/ibc/tree/master/spec/app/ics-721-nft-transfer#data-structures +message NonFungibleTokenPacketData { + // the class_id of class to be transferred + string class_id = 1; + // the class_uri of class to be transferred + string class_uri = 2; + // the class_data of class to be transferred + string class_data = 3; + // the non fungible tokens to be transferred + repeated string token_ids = 4; + // the non fungible tokens's uri to be transferred + repeated string token_uris = 5; + // the non fungible tokens's data to be transferred + repeated string token_data = 6; + // the sender address + string sender = 7; + // the recipient address on the destination chain + string receiver = 8; + // optional memo + string memo = 9; +} diff --git a/proto/ibc/applications/nft_transfer/v1/query.proto b/proto/ibc/applications/nft_transfer/v1/query.proto new file mode 100644 index 00000000..ca42554d --- /dev/null +++ b/proto/ibc/applications/nft_transfer/v1/query.proto @@ -0,0 +1,115 @@ +syntax = "proto3"; + +package ibc.applications.nft_transfer.v1; + +import "gogoproto/gogo.proto"; +import "cosmos/base/query/v1beta1/pagination.proto"; +import "ibc/applications/nft_transfer/v1/transfer.proto"; +import "google/api/annotations.proto"; + +option go_package = "github.com/bianjieai/nft-transfer/types"; + +// Query provides defines the gRPC querier service. +service Query { + // ClassTrace queries a class trace information. + rpc ClassTrace(QueryClassTraceRequest) returns (QueryClassTraceResponse) { + option (google.api.http).get = + "/ibc/apps/nft_transfer/v1/class_traces/{hash}"; + } + + // ClassTraces queries all class traces. + rpc ClassTraces(QueryClassTracesRequest) returns (QueryClassTracesResponse) { + option (google.api.http).get = "/ibc/apps/nft_transfer/v1/class_traces"; + } + + // ClassHash queries a class hash information. + rpc ClassHash(QueryClassHashRequest) returns (QueryClassHashResponse) { + option (google.api.http).get = + "/ibc/apps/nft_transfer/v1/class_hashes/{trace=**}"; + } + + // EscrowAddress returns the escrow address for a particular port and channel + // id. + rpc EscrowAddress(QueryEscrowAddressRequest) + returns (QueryEscrowAddressResponse) { + option (google.api.http).get = + "/ibc/apps/nft_transfer/v1/channels/{channel_id}/ports/{port_id}/" + "escrow_address"; + } + + // Params queries all parameters of the nft-transfer module. + rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { + option (google.api.http).get = "/ibc/apps/nft_transfer/v1/params"; + } +} + +// QueryClassTraceRequest is the request type for the Query/ClassDenom RPC +// method +message QueryClassTraceRequest { + // hash (in hex format) or classID (full classID with ibc prefix) of the + // denomination trace information. + string hash = 1; +} + +// QueryClassTraceResponse is the response type for the Query/ClassDenom RPC +// method. +message QueryClassTraceResponse { + // class_trace returns the requested class trace information. + ClassTrace class_trace = 1; +} + +// QueryConnectionsRequest is the request type for the Query/ClassTraces RPC +// method +message QueryClassTracesRequest { + // pagination defines an optional pagination for the request. + cosmos.base.query.v1beta1.PageRequest pagination = 1; +} + +// QueryClassTracesResponse is the response type for the Query/ClassTraces RPC +// method. +message QueryClassTracesResponse { + // class_traces returns all class trace information. + repeated ClassTrace class_traces = 1 + [ (gogoproto.castrepeated) = "Traces", (gogoproto.nullable) = false ]; + // pagination defines the pagination in the response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +// QueryClassHashRequest is the request type for the Query/ClassHash RPC +// method +message QueryClassHashRequest { + // The class trace ([port_id]/[channel_id])+/[denom] + string trace = 1; +} + +// QueryClassHashResponse is the response type for the Query/ClassHash RPC +// method. +message QueryClassHashResponse { + // hash (in hex format) of the denomination trace information. + string hash = 1; +} + +// QueryEscrowAddressRequest is the request type for the EscrowAddress RPC +// method. +message QueryEscrowAddressRequest { + // unique port identifier + string port_id = 1; + // unique channel identifier + string channel_id = 2; +} + +// QueryEscrowAddressResponse is the response type of the EscrowAddress RPC +// method. +message QueryEscrowAddressResponse { + // the escrow account address + string escrow_address = 1; +} + +// QueryParamsRequest is request type for the Query/Params RPC method. +message QueryParamsRequest {} + +// QueryParamsResponse is response type for the Query/Params RPC method. +message QueryParamsResponse { + // params holds all the parameters of this module. + Params params = 1 [(gogoproto.nullable) = false]; +} \ No newline at end of file diff --git a/proto/ibc/applications/nft_transfer/v1/transfer.proto b/proto/ibc/applications/nft_transfer/v1/transfer.proto new file mode 100644 index 00000000..e89c45c0 --- /dev/null +++ b/proto/ibc/applications/nft_transfer/v1/transfer.proto @@ -0,0 +1,27 @@ +syntax = "proto3"; + +package ibc.applications.nft_transfer.v1; + +option go_package = "github.com/bianjieai/nft-transfer/types"; + +// ClassTrace contains the base classID for ICS721 non-fungible tokens and the +// source tracing information path. +message ClassTrace { + // path defines the chain of port/channel identifiers used for tracing the + // source of the non-fungible token. + string path = 1; + // base classID of the relayed non-fungible token. + string base_class_id = 2; +} + +// Params defines the set of IBC nft-transfer parameters. +// NOTE: To prevent a nft from being transferred, set the +// TransfersEnabled parameter to false. +message Params { + // send_enabled enables or disables all cross-chain nft transfers from this + // chain. + bool send_enabled = 1; + // receive_enabled enables or disables all cross-chain nft transfers to this + // chain. + bool receive_enabled = 2; +} diff --git a/proto/ibc/applications/nft_transfer/v1/tx.proto b/proto/ibc/applications/nft_transfer/v1/tx.proto new file mode 100644 index 00000000..48f15b1f --- /dev/null +++ b/proto/ibc/applications/nft_transfer/v1/tx.proto @@ -0,0 +1,74 @@ +syntax = "proto3"; + +package ibc.applications.nft_transfer.v1; + +option go_package = "github.com/bianjieai/nft-transfer/types"; + +import "gogoproto/gogo.proto"; +import "ibc/core/client/v1/client.proto"; +import "ibc/applications/nft_transfer/v1/transfer.proto"; + +// Msg defines the ibc/nft-transfer Msg service. +service Msg { + // Transfer defines a rpc handler method for MsgTransfer. + rpc Transfer(MsgTransfer) returns (MsgTransferResponse); + + // UpdateParams defines a governance operation for updating the nft-transfer module parameters. + // The authority is defined in the keeper. + // + rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); +} + +// MsgTransfer defines a msg to transfer non fungible tokens between +// ICS721 enabled chains. See ICS Spec here: +// https://github.com/cosmos/ibc/tree/master/spec/app/ics-721-nft-transfer#data-structures +message MsgTransfer { + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + // the port on which the packet will be sent + string source_port = 1; + // the channel by which the packet will be sent + string source_channel = 2; + // the class_id of tokens to be transferred + string class_id = 3; + // the non fungible tokens to be transferred + repeated string token_ids = 4; + // the sender address + string sender = 5; + // the recipient address on the destination chain + string receiver = 6; + // Timeout height relative to the current block height. + // The timeout is disabled when set to 0. + ibc.core.client.v1.Height timeout_height = 7 [ + (gogoproto.nullable) = false + ]; + // Timeout timestamp in absolute nanoseconds since unix epoch. + // The timeout is disabled when set to 0. + uint64 timeout_timestamp = 8; + // optional memo + string memo = 9; +} + +// MsgTransferResponse defines the Msg/Transfer response type. +message MsgTransferResponse { + // sequence number of the transfer packet sent + uint64 sequence = 1; +} + +// MsgUpdateParams is the Msg/UpdateParams request type. +// +message MsgUpdateParams { + // authority is the address that controls the module (defaults to x/gov unless overwritten). + string authority = 1 ; + + // params defines the nft-transfer parameters to update. + // + // NOTE: All parameters must be supplied. + Params params = 2 [(gogoproto.nullable) = false]; +} + +// MsgUpdateParamsResponse defines the response structure for executing a +// MsgUpdateParams message. +// +message MsgUpdateParamsResponse {} diff --git a/src/client.ts b/src/client.ts index 60a31d50..d09ef3c5 100644 --- a/src/client.ts +++ b/src/client.ts @@ -187,6 +187,13 @@ export class Client { return this._ibc; } + /** Ibc nft transfer module */ + private _ibcNftTransfer?: modules.IbcNftTransfer; + get ibcNftTransfer():modules.IbcNftTransfer{ + if (!this._ibcNftTransfer) {this._ibcNftTransfer = new modules.IbcNftTransfer(this)} + return this._ibcNftTransfer; + } + /** IRISHub SDK Constructor */ constructor(config: DefaultClientConfig) { this.config = config; @@ -233,17 +240,6 @@ export class Client { return this; } - /** - * Set IRISHub network type - * - * @param network IRISHub network type, mainnet / testnet - * @returns The SDK itself - */ - withNetwork(network: consts.Network) { - this.config.network = network; - return this; - } - /** * Set IRISHub network type * @@ -308,9 +304,9 @@ export class Client { export interface ClientConfig { /** IRISHub node rpc address */ node: string; - - /** IRISHub network type, mainnet / testnet */ - network?: consts.Network; + + /** IRISHUB = 0, Cosmos = 1, Akash = 2 */ + chainNetwork?: consts.ChainNetwork; /** IRISHub chain-id */ chainId?: string; @@ -335,7 +331,6 @@ export interface ClientConfig { export class DefaultClientConfig implements ClientConfig { node: string; chainNetwork: consts.ChainNetwork; - network: consts.Network; chainId: string; gas: string; fee: types.Coin; @@ -345,7 +340,6 @@ export class DefaultClientConfig implements ClientConfig { constructor() { this.node = ''; - this.network = types.Network.Mainnet; this.chainNetwork = types.ChainNetwork.Iris; this.chainId = ''; this.gas = '100000'; diff --git a/src/modules/ibc/ibc-nft-transfer.ts b/src/modules/ibc/ibc-nft-transfer.ts new file mode 100644 index 00000000..d8c568a6 --- /dev/null +++ b/src/modules/ibc/ibc-nft-transfer.ts @@ -0,0 +1,150 @@ +import { Client } from '../../client'; +import * as types from '../../types'; +import { ModelCreator } from '../../helper'; +import { SdkError } from '../../errors'; + +/** + * This module implements Ibc Nft Transfer related functions + * + * @category Modules + * @since v3.3.0 + */ + +export class IbcNftTransfer { + /** @hidden */ + private client: Client; + /** @hidden */ + constructor(client: Client) { + this.client = client; + } + + /** + * ibc nft transfer + * @param param:{ + source_port: string; + source_channel: string; + class_id: string; + token_ids: string[]; + receiver: string; + timeout_height?: {revision_number:number, revision_height:number}, + timeout_timestamp?:number, + } + * @param baseTx { types.BaseTx } + * @returns + * @since v3.3.0 + */ + async transfer( + param:{ + source_port: string, + source_channel: string, + class_id: string, + token_ids: string[], + receiver: string, + timeout_height?: {revision_number:number, revision_height:number}, + timeout_timestamp?:number, + memo?: string + }, + 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.MsgIbcNftTransfer, + value:{ + source_port: param.source_port, + source_channel: param.source_channel, + class_id: param.class_id, + token_ids: param.token_ids, + sender: from, + receiver: param.receiver, + timeout_height: param?.timeout_height, + timeout_timestamp: param?.timeout_timestamp, + memo: param?.memo + } + } + ]; + return this.client.tx.buildAndSend(msgs, baseTx); + } + + /** + * ClassTrace queries a class trace information. + * @param hash (in hex format) of the denomination trace information. + */ + queryClassTrace(hash:string): Promise { + if (!hash) { + throw new SdkError("hash can ont be empty"); + } + const request = new types.ibc_nft_transfer_query_pb.QueryClassTraceRequest(); + request.setHash(hash); + return this.client.rpcClient.protoQuery( + '/ibc.applications.nft_transfer.v1.Query/ClassTrace', + request, + types.ibc_nft_transfer_query_pb.QueryClassTraceResponse + ); + } + + /** + * ClassTraces queries all class traces. + */ + queryClassTraces(pagination?:types.Pagination): Promise { + const request = new types.ibc_nft_transfer_query_pb.QueryClassTracesRequest(); + request.setPagination(ModelCreator.createPaginationModel(pagination)); + return this.client.rpcClient.protoQuery( + '/ibc.applications.nft_transfer.v1.Query/ClassTraces', + request, + types.ibc_nft_transfer_query_pb.QueryClassTracesResponse + ); + } + + /** + * ClassHash queries a class hash information. + */ + queryClassHash(trace: string): Promise { + if (!trace) { + throw new SdkError("trace can ont be empty"); + } + const request = new types.ibc_nft_transfer_query_pb.QueryClassHashRequest(); + request.setTrace(trace); + return this.client.rpcClient.protoQuery( + '/ibc.applications.nft_transfer.v1.Query/ClassHash', + request, + types.ibc_nft_transfer_query_pb.QueryClassHashResponse + ); + } + + + /** + * EscrowAddress returns the escrow address for a particular port and channel id. + */ + queryEscrowAddress(port_id: string, channel_id: string): Promise { + if (!port_id) { + throw new SdkError("port_id can ont be empty"); + } + if (!channel_id) { + throw new SdkError("channel_id can ont be empty"); + } + const request = new types.ibc_nft_transfer_query_pb.QueryEscrowAddressRequest(); + request.setPortId(port_id); + request.setChannelId(channel_id); + return this.client.rpcClient.protoQuery( + '/ibc.applications.nft_transfer.v1.Query/EscrowAddress', + request, + types.ibc_nft_transfer_query_pb.QueryEscrowAddressResponse + ); + } + + /** + * Params queries all parameters of the nft-transfer module. + */ + queryParams(): Promise { + const request = new types.ibc_nft_transfer_query_pb.QueryParamsRequest(); + return this.client.rpcClient.protoQuery( + '/ibc.applications.nft_transfer.v1.Query/Params', + request, + types.ibc_nft_transfer_query_pb.QueryParamsResponse + ); + } +} \ No newline at end of file diff --git a/src/modules/ibc.ts b/src/modules/ibc/ibc.ts similarity index 94% rename from src/modules/ibc.ts rename to src/modules/ibc/ibc.ts index 10e87e37..efdc17d8 100644 --- a/src/modules/ibc.ts +++ b/src/modules/ibc/ibc.ts @@ -1,8 +1,7 @@ -import { Client } from '../client'; -import { Crypto } from '../utils/crypto'; -import * as types from '../types'; -import { ModelCreator } from '../helper'; -import { SdkError, CODES } from '../errors'; +import { Client } from '../../client'; +import * as types from '../../types'; +import { ModelCreator } from '../../helper'; +import { SdkError } from '../../errors'; /** * This module implements IBC related functions diff --git a/src/modules/index.ts b/src/modules/index.ts index f8d46214..7e92772b 100644 --- a/src/modules/index.ts +++ b/src/modules/index.ts @@ -17,5 +17,6 @@ export * from './coinswap'; export * from './protobuf'; export * from './nft'; export * from './htlc'; -export * from './ibc'; +export * from './ibc/ibc'; +export * from './ibc/ibc-nft-transfer'; export * from './farm' \ No newline at end of file diff --git a/src/modules/protobuf.ts b/src/modules/protobuf.ts index e6093735..e89f3f30 100644 --- a/src/modules/protobuf.ts +++ b/src/modules/protobuf.ts @@ -194,6 +194,10 @@ export class Protobuf { messageModelClass = types.MsgTransfer.getModelClass(); break; } + case types.TxType.MsgIbcNftTransfer: { + messageModelClass = types.MsgIbcNftTransfer.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 e6d71d21..b4c37a2b 100644 --- a/src/modules/tx.ts +++ b/src/modules/tx.ts @@ -460,6 +460,10 @@ export class Tx { msg = new types.MsgTransfer(txMsg.value); break; } + case types.TxType.MsgIbcNftTransfer: { + msg = new types.MsgIbcNftTransfer(txMsg.value); + break; + } default: { throw new SdkError("not exist tx type",CODES.InvalidType); } diff --git a/src/types/constants.ts b/src/types/constants.ts index 57a50141..cad37142 100644 --- a/src/types/constants.ts +++ b/src/types/constants.ts @@ -1,11 +1,5 @@ import { Bech32Prefix } from './types'; -/** Network type config */ -export enum Network { - Mainnet = 0, - Testnet = 1, -} - export enum ChainNetwork { Iris = 0, Cosmos = 1, diff --git a/src/types/ibc/ibc-nft-transfer.ts b/src/types/ibc/ibc-nft-transfer.ts new file mode 100644 index 00000000..52691b85 --- /dev/null +++ b/src/types/ibc/ibc-nft-transfer.ts @@ -0,0 +1,84 @@ +import { Msg, TxType } from '../types'; +import * as pbs from "../proto"; +import { SdkError } from '../../errors'; + +/** + * param struct for Create ibc nft transfer Tx + */ +export interface IbcNftTransferParam { + source_port: string; + source_channel: string; + class_id: string; + token_ids: string[]; + sender: string; + receiver: string; + timeout_height?: {revision_number:number, revision_height:number}; + timeout_timestamp?: number; + memo?: string; +} + +/** + * Msg for ibc nft Transfer + * + * @hidden + */ +export class MsgIbcNftTransfer extends Msg { + value: IbcNftTransferParam; + + constructor(msg: IbcNftTransferParam) { + super(TxType.MsgIbcNftTransfer); + this.value = msg; + } + + static getModelClass():any{ + return pbs.ibc_nft_transfer_tx_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.setClassId(this.value.class_id); + this.value.token_ids.forEach((item)=>{ + msg.addTokenIds(item); + }); + 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.setRevisionHeight(this.value.timeout_height.revision_height); + msg.setTimeoutHeight(height); + } + if (this.value.timeout_timestamp) { + msg.setTimeoutTimestamp(this.value.timeout_timestamp); + } + if (this.value.memo) { + msg.setMemo(this.value.memo); + } + 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.class_id) { + throw new SdkError("class_id is empty"); + } + if (!this.value.token_ids || this.value.token_ids.length == 0) { + throw new SdkError("token_ids 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/ibc.ts b/src/types/ibc/ibc.ts similarity index 89% rename from src/types/ibc.ts rename to src/types/ibc/ibc.ts index 1249343e..ede70506 100644 --- a/src/types/ibc.ts +++ b/src/types/ibc/ibc.ts @@ -1,7 +1,7 @@ -import { Coin, Msg, TxType } from './types'; -import { TxModelCreator } from '../helper'; -import * as pbs from "./proto"; -import { SdkError, CODES } from '../errors'; +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 @@ -45,7 +45,7 @@ export class MsgTransfer extends Msg { 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); + height.setRevisionHeight(this.value.timeout_height.revision_height); msg.setTimeoutHeight(height); } if (this.value.timeout_timestamp) { diff --git a/src/types/index.ts b/src/types/index.ts index eedb2821..e1c8be24 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -25,4 +25,5 @@ export * from './protoTx'; export * from './nft'; export * from './proto'; export * from './htlc'; -export * from './ibc'; \ No newline at end of file +export * from './ibc/ibc'; +export * from './ibc/ibc-nft-transfer'; \ No newline at end of file diff --git a/src/types/proto-types/ibc/applications/nft_transfer/v1/genesis_pb.js b/src/types/proto-types/ibc/applications/nft_transfer/v1/genesis_pb.js new file mode 100644 index 00000000..7135ccac --- /dev/null +++ b/src/types/proto-types/ibc/applications/nft_transfer/v1/genesis_pb.js @@ -0,0 +1,282 @@ +// source: ibc/applications/nft_transfer/v1/genesis.proto +/** + * @fileoverview + * @enhanceable + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = Function('return this')(); + +var ibc_applications_nft_transfer_v1_transfer_pb = require('../../../../ibc/applications/nft_transfer/v1/transfer_pb.js'); +goog.object.extend(proto, ibc_applications_nft_transfer_v1_transfer_pb); +var gogoproto_gogo_pb = require('../../../../gogoproto/gogo_pb.js'); +goog.object.extend(proto, gogoproto_gogo_pb); +goog.exportSymbol('proto.ibc.applications.nft_transfer.v1.GenesisState', null, global); +/** + * 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.ibc.applications.nft_transfer.v1.GenesisState = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.ibc.applications.nft_transfer.v1.GenesisState.repeatedFields_, null); +}; +goog.inherits(proto.ibc.applications.nft_transfer.v1.GenesisState, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ibc.applications.nft_transfer.v1.GenesisState.displayName = 'proto.ibc.applications.nft_transfer.v1.GenesisState'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.ibc.applications.nft_transfer.v1.GenesisState.repeatedFields_ = [2]; + + + +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.ibc.applications.nft_transfer.v1.GenesisState.prototype.toObject = function(opt_includeInstance) { + return proto.ibc.applications.nft_transfer.v1.GenesisState.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.ibc.applications.nft_transfer.v1.GenesisState} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.GenesisState.toObject = function(includeInstance, msg) { + var f, obj = { + portId: jspb.Message.getFieldWithDefault(msg, 1, ""), + tracesList: jspb.Message.toObjectList(msg.getTracesList(), + ibc_applications_nft_transfer_v1_transfer_pb.ClassTrace.toObject, includeInstance), + params: (f = msg.getParams()) && ibc_applications_nft_transfer_v1_transfer_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.ibc.applications.nft_transfer.v1.GenesisState} + */ +proto.ibc.applications.nft_transfer.v1.GenesisState.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ibc.applications.nft_transfer.v1.GenesisState; + return proto.ibc.applications.nft_transfer.v1.GenesisState.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ibc.applications.nft_transfer.v1.GenesisState} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ibc.applications.nft_transfer.v1.GenesisState} + */ +proto.ibc.applications.nft_transfer.v1.GenesisState.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.setPortId(value); + break; + case 2: + var value = new ibc_applications_nft_transfer_v1_transfer_pb.ClassTrace; + reader.readMessage(value,ibc_applications_nft_transfer_v1_transfer_pb.ClassTrace.deserializeBinaryFromReader); + msg.addTraces(value); + break; + case 3: + var value = new ibc_applications_nft_transfer_v1_transfer_pb.Params; + reader.readMessage(value,ibc_applications_nft_transfer_v1_transfer_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.ibc.applications.nft_transfer.v1.GenesisState.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ibc.applications.nft_transfer.v1.GenesisState.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ibc.applications.nft_transfer.v1.GenesisState} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.GenesisState.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPortId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getTracesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + ibc_applications_nft_transfer_v1_transfer_pb.ClassTrace.serializeBinaryToWriter + ); + } + f = message.getParams(); + if (f != null) { + writer.writeMessage( + 3, + f, + ibc_applications_nft_transfer_v1_transfer_pb.Params.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string port_id = 1; + * @return {string} + */ +proto.ibc.applications.nft_transfer.v1.GenesisState.prototype.getPortId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ibc.applications.nft_transfer.v1.GenesisState} returns this + */ +proto.ibc.applications.nft_transfer.v1.GenesisState.prototype.setPortId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * repeated ClassTrace traces = 2; + * @return {!Array} + */ +proto.ibc.applications.nft_transfer.v1.GenesisState.prototype.getTracesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, ibc_applications_nft_transfer_v1_transfer_pb.ClassTrace, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ibc.applications.nft_transfer.v1.GenesisState} returns this +*/ +proto.ibc.applications.nft_transfer.v1.GenesisState.prototype.setTracesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.ibc.applications.nft_transfer.v1.ClassTrace=} opt_value + * @param {number=} opt_index + * @return {!proto.ibc.applications.nft_transfer.v1.ClassTrace} + */ +proto.ibc.applications.nft_transfer.v1.GenesisState.prototype.addTraces = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.ibc.applications.nft_transfer.v1.ClassTrace, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ibc.applications.nft_transfer.v1.GenesisState} returns this + */ +proto.ibc.applications.nft_transfer.v1.GenesisState.prototype.clearTracesList = function() { + return this.setTracesList([]); +}; + + +/** + * optional Params params = 3; + * @return {?proto.ibc.applications.nft_transfer.v1.Params} + */ +proto.ibc.applications.nft_transfer.v1.GenesisState.prototype.getParams = function() { + return /** @type{?proto.ibc.applications.nft_transfer.v1.Params} */ ( + jspb.Message.getWrapperField(this, ibc_applications_nft_transfer_v1_transfer_pb.Params, 3)); +}; + + +/** + * @param {?proto.ibc.applications.nft_transfer.v1.Params|undefined} value + * @return {!proto.ibc.applications.nft_transfer.v1.GenesisState} returns this +*/ +proto.ibc.applications.nft_transfer.v1.GenesisState.prototype.setParams = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ibc.applications.nft_transfer.v1.GenesisState} returns this + */ +proto.ibc.applications.nft_transfer.v1.GenesisState.prototype.clearParams = function() { + return this.setParams(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ibc.applications.nft_transfer.v1.GenesisState.prototype.hasParams = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +goog.object.extend(exports, proto.ibc.applications.nft_transfer.v1); diff --git a/src/types/proto-types/ibc/applications/nft_transfer/v1/packet_pb.js b/src/types/proto-types/ibc/applications/nft_transfer/v1/packet_pb.js new file mode 100644 index 00000000..47c99011 --- /dev/null +++ b/src/types/proto-types/ibc/applications/nft_transfer/v1/packet_pb.js @@ -0,0 +1,471 @@ +// source: ibc/applications/nft_transfer/v1/packet.proto +/** + * @fileoverview + * @enhanceable + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = Function('return this')(); + +goog.exportSymbol('proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData', null, global); +/** + * 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.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.repeatedFields_, null); +}; +goog.inherits(proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.displayName = 'proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.repeatedFields_ = [4,5,6]; + + + +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.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.toObject = function(opt_includeInstance) { + return proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.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.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.toObject = function(includeInstance, msg) { + var f, obj = { + classId: jspb.Message.getFieldWithDefault(msg, 1, ""), + classUri: jspb.Message.getFieldWithDefault(msg, 2, ""), + classData: jspb.Message.getFieldWithDefault(msg, 3, ""), + tokenIdsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f, + tokenUrisList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f, + tokenDataList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f, + sender: jspb.Message.getFieldWithDefault(msg, 7, ""), + receiver: jspb.Message.getFieldWithDefault(msg, 8, ""), + memo: jspb.Message.getFieldWithDefault(msg, 9, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData} + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData; + return proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData} + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.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.setClassId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setClassUri(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setClassData(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.addTokenIds(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.addTokenUris(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.addTokenData(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setSender(value); + break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.setReceiver(value); + break; + case 9: + var value = /** @type {string} */ (reader.readString()); + msg.setMemo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getClassId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getClassUri(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getClassData(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getTokenIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 4, + f + ); + } + f = message.getTokenUrisList(); + if (f.length > 0) { + writer.writeRepeatedString( + 5, + f + ); + } + f = message.getTokenDataList(); + if (f.length > 0) { + writer.writeRepeatedString( + 6, + f + ); + } + f = message.getSender(); + if (f.length > 0) { + writer.writeString( + 7, + f + ); + } + f = message.getReceiver(); + if (f.length > 0) { + writer.writeString( + 8, + f + ); + } + f = message.getMemo(); + if (f.length > 0) { + writer.writeString( + 9, + f + ); + } +}; + + +/** + * optional string class_id = 1; + * @return {string} + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.getClassId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData} returns this + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.setClassId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string class_uri = 2; + * @return {string} + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.getClassUri = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData} returns this + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.setClassUri = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string class_data = 3; + * @return {string} + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.getClassData = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData} returns this + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.setClassData = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * repeated string token_ids = 4; + * @return {!Array} + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.getTokenIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData} returns this + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.setTokenIdsList = function(value) { + return jspb.Message.setField(this, 4, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData} returns this + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.addTokenIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 4, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData} returns this + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.clearTokenIdsList = function() { + return this.setTokenIdsList([]); +}; + + +/** + * repeated string token_uris = 5; + * @return {!Array} + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.getTokenUrisList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 5)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData} returns this + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.setTokenUrisList = function(value) { + return jspb.Message.setField(this, 5, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData} returns this + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.addTokenUris = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 5, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData} returns this + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.clearTokenUrisList = function() { + return this.setTokenUrisList([]); +}; + + +/** + * repeated string token_data = 6; + * @return {!Array} + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.getTokenDataList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 6)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData} returns this + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.setTokenDataList = function(value) { + return jspb.Message.setField(this, 6, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData} returns this + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.addTokenData = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 6, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData} returns this + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.clearTokenDataList = function() { + return this.setTokenDataList([]); +}; + + +/** + * optional string sender = 7; + * @return {string} + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.getSender = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData} returns this + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.setSender = function(value) { + return jspb.Message.setProto3StringField(this, 7, value); +}; + + +/** + * optional string receiver = 8; + * @return {string} + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.getReceiver = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData} returns this + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.setReceiver = function(value) { + return jspb.Message.setProto3StringField(this, 8, value); +}; + + +/** + * optional string memo = 9; + * @return {string} + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.getMemo = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData} returns this + */ +proto.ibc.applications.nft_transfer.v1.NonFungibleTokenPacketData.prototype.setMemo = function(value) { + return jspb.Message.setProto3StringField(this, 9, value); +}; + + +goog.object.extend(exports, proto.ibc.applications.nft_transfer.v1); diff --git a/src/types/proto-types/ibc/applications/nft_transfer/v1/query_grpc_web_pb.js b/src/types/proto-types/ibc/applications/nft_transfer/v1/query_grpc_web_pb.js new file mode 100644 index 00000000..21e2a851 --- /dev/null +++ b/src/types/proto-types/ibc/applications/nft_transfer/v1/query_grpc_web_pb.js @@ -0,0 +1,485 @@ +/** + * @fileoverview gRPC-Web generated client stub for ibc.applications.nft_transfer.v1 + * @enhanceable + * @public + */ + +// GENERATED CODE -- DO NOT EDIT! + + +/* eslint-disable */ +// @ts-nocheck + + + +const grpc = {}; +grpc.web = require('grpc-web'); + + +var gogoproto_gogo_pb = require('../../../../gogoproto/gogo_pb.js') + +var cosmos_base_query_v1beta1_pagination_pb = require('../../../../cosmos/base/query/v1beta1/pagination_pb.js') + +var ibc_applications_nft_transfer_v1_transfer_pb = require('../../../../ibc/applications/nft_transfer/v1/transfer_pb.js') + +var google_api_annotations_pb = require('../../../../google/api/annotations_pb.js') +const proto = {}; +proto.ibc = {}; +proto.ibc.applications = {}; +proto.ibc.applications.nft_transfer = {}; +proto.ibc.applications.nft_transfer.v1 = require('./query_pb.js'); + +/** + * @param {string} hostname + * @param {?Object} credentials + * @param {?Object} options + * @constructor + * @struct + * @final + */ +proto.ibc.applications.nft_transfer.v1.QueryClient = + function(hostname, credentials, options) { + if (!options) options = {}; + options['format'] = 'text'; + + /** + * @private @const {!grpc.web.GrpcWebClientBase} The client + */ + this.client_ = new grpc.web.GrpcWebClientBase(options); + + /** + * @private @const {string} The hostname + */ + this.hostname_ = hostname; + +}; + + +/** + * @param {string} hostname + * @param {?Object} credentials + * @param {?Object} options + * @constructor + * @struct + * @final + */ +proto.ibc.applications.nft_transfer.v1.QueryPromiseClient = + function(hostname, credentials, options) { + if (!options) options = {}; + options['format'] = 'text'; + + /** + * @private @const {!grpc.web.GrpcWebClientBase} The client + */ + this.client_ = new grpc.web.GrpcWebClientBase(options); + + /** + * @private @const {string} The hostname + */ + this.hostname_ = hostname; + +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest, + * !proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse>} + */ +const methodDescriptor_Query_ClassTrace = new grpc.web.MethodDescriptor( + '/ibc.applications.nft_transfer.v1.Query/ClassTrace', + grpc.web.MethodType.UNARY, + proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest, + proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse, + /** + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest, + * !proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse>} + */ +const methodInfo_Query_ClassTrace = new grpc.web.AbstractClientBase.MethodInfo( + proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse, + /** + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse.deserializeBinary +); + + +/** + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.ibc.applications.nft_transfer.v1.QueryClient.prototype.classTrace = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/ibc.applications.nft_transfer.v1.Query/ClassTrace', + request, + metadata || {}, + methodDescriptor_Query_ClassTrace, + callback); +}; + + +/** + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.ibc.applications.nft_transfer.v1.QueryPromiseClient.prototype.classTrace = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/ibc.applications.nft_transfer.v1.Query/ClassTrace', + request, + metadata || {}, + methodDescriptor_Query_ClassTrace); +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest, + * !proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse>} + */ +const methodDescriptor_Query_ClassTraces = new grpc.web.MethodDescriptor( + '/ibc.applications.nft_transfer.v1.Query/ClassTraces', + grpc.web.MethodType.UNARY, + proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest, + proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse, + /** + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest, + * !proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse>} + */ +const methodInfo_Query_ClassTraces = new grpc.web.AbstractClientBase.MethodInfo( + proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse, + /** + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse.deserializeBinary +); + + +/** + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.ibc.applications.nft_transfer.v1.QueryClient.prototype.classTraces = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/ibc.applications.nft_transfer.v1.Query/ClassTraces', + request, + metadata || {}, + methodDescriptor_Query_ClassTraces, + callback); +}; + + +/** + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.ibc.applications.nft_transfer.v1.QueryPromiseClient.prototype.classTraces = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/ibc.applications.nft_transfer.v1.Query/ClassTraces', + request, + metadata || {}, + methodDescriptor_Query_ClassTraces); +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest, + * !proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse>} + */ +const methodDescriptor_Query_ClassHash = new grpc.web.MethodDescriptor( + '/ibc.applications.nft_transfer.v1.Query/ClassHash', + grpc.web.MethodType.UNARY, + proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest, + proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse, + /** + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest, + * !proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse>} + */ +const methodInfo_Query_ClassHash = new grpc.web.AbstractClientBase.MethodInfo( + proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse, + /** + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse.deserializeBinary +); + + +/** + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.ibc.applications.nft_transfer.v1.QueryClient.prototype.classHash = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/ibc.applications.nft_transfer.v1.Query/ClassHash', + request, + metadata || {}, + methodDescriptor_Query_ClassHash, + callback); +}; + + +/** + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.ibc.applications.nft_transfer.v1.QueryPromiseClient.prototype.classHash = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/ibc.applications.nft_transfer.v1.Query/ClassHash', + request, + metadata || {}, + methodDescriptor_Query_ClassHash); +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest, + * !proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse>} + */ +const methodDescriptor_Query_EscrowAddress = new grpc.web.MethodDescriptor( + '/ibc.applications.nft_transfer.v1.Query/EscrowAddress', + grpc.web.MethodType.UNARY, + proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest, + proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse, + /** + * @param {!proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest, + * !proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse>} + */ +const methodInfo_Query_EscrowAddress = new grpc.web.AbstractClientBase.MethodInfo( + proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse, + /** + * @param {!proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse.deserializeBinary +); + + +/** + * @param {!proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.ibc.applications.nft_transfer.v1.QueryClient.prototype.escrowAddress = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/ibc.applications.nft_transfer.v1.Query/EscrowAddress', + request, + metadata || {}, + methodDescriptor_Query_EscrowAddress, + callback); +}; + + +/** + * @param {!proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.ibc.applications.nft_transfer.v1.QueryPromiseClient.prototype.escrowAddress = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/ibc.applications.nft_transfer.v1.Query/EscrowAddress', + request, + metadata || {}, + methodDescriptor_Query_EscrowAddress); +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.ibc.applications.nft_transfer.v1.QueryParamsRequest, + * !proto.ibc.applications.nft_transfer.v1.QueryParamsResponse>} + */ +const methodDescriptor_Query_Params = new grpc.web.MethodDescriptor( + '/ibc.applications.nft_transfer.v1.Query/Params', + grpc.web.MethodType.UNARY, + proto.ibc.applications.nft_transfer.v1.QueryParamsRequest, + proto.ibc.applications.nft_transfer.v1.QueryParamsResponse, + /** + * @param {!proto.ibc.applications.nft_transfer.v1.QueryParamsRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.ibc.applications.nft_transfer.v1.QueryParamsResponse.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.ibc.applications.nft_transfer.v1.QueryParamsRequest, + * !proto.ibc.applications.nft_transfer.v1.QueryParamsResponse>} + */ +const methodInfo_Query_Params = new grpc.web.AbstractClientBase.MethodInfo( + proto.ibc.applications.nft_transfer.v1.QueryParamsResponse, + /** + * @param {!proto.ibc.applications.nft_transfer.v1.QueryParamsRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.ibc.applications.nft_transfer.v1.QueryParamsResponse.deserializeBinary +); + + +/** + * @param {!proto.ibc.applications.nft_transfer.v1.QueryParamsRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.ibc.applications.nft_transfer.v1.QueryParamsResponse)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.ibc.applications.nft_transfer.v1.QueryClient.prototype.params = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/ibc.applications.nft_transfer.v1.Query/Params', + request, + metadata || {}, + methodDescriptor_Query_Params, + callback); +}; + + +/** + * @param {!proto.ibc.applications.nft_transfer.v1.QueryParamsRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.ibc.applications.nft_transfer.v1.QueryPromiseClient.prototype.params = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/ibc.applications.nft_transfer.v1.Query/Params', + request, + metadata || {}, + methodDescriptor_Query_Params); +}; + + +module.exports = proto.ibc.applications.nft_transfer.v1; + diff --git a/src/types/proto-types/ibc/applications/nft_transfer/v1/query_pb.js b/src/types/proto-types/ibc/applications/nft_transfer/v1/query_pb.js new file mode 100644 index 00000000..4719467e --- /dev/null +++ b/src/types/proto-types/ibc/applications/nft_transfer/v1/query_pb.js @@ -0,0 +1,1688 @@ +// source: ibc/applications/nft_transfer/v1/query.proto +/** + * @fileoverview + * @enhanceable + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = Function('return this')(); + +var gogoproto_gogo_pb = require('../../../../gogoproto/gogo_pb.js'); +goog.object.extend(proto, gogoproto_gogo_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); +var ibc_applications_nft_transfer_v1_transfer_pb = require('../../../../ibc/applications/nft_transfer/v1/transfer_pb.js'); +goog.object.extend(proto, ibc_applications_nft_transfer_v1_transfer_pb); +var google_api_annotations_pb = require('../../../../google/api/annotations_pb.js'); +goog.object.extend(proto, google_api_annotations_pb); +goog.exportSymbol('proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest', null, global); +goog.exportSymbol('proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse', null, global); +goog.exportSymbol('proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest', null, global); +goog.exportSymbol('proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse', null, global); +goog.exportSymbol('proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest', null, global); +goog.exportSymbol('proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse', null, global); +goog.exportSymbol('proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest', null, global); +goog.exportSymbol('proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse', null, global); +goog.exportSymbol('proto.ibc.applications.nft_transfer.v1.QueryParamsRequest', null, global); +goog.exportSymbol('proto.ibc.applications.nft_transfer.v1.QueryParamsResponse', null, global); +/** + * 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.ibc.applications.nft_transfer.v1.QueryClassTraceRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest.displayName = 'proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest'; +} +/** + * 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.ibc.applications.nft_transfer.v1.QueryClassTraceResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse.displayName = 'proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse'; +} +/** + * 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.ibc.applications.nft_transfer.v1.QueryClassTracesRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest.displayName = 'proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest'; +} +/** + * 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.ibc.applications.nft_transfer.v1.QueryClassTracesResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse.repeatedFields_, null); +}; +goog.inherits(proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse.displayName = 'proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse'; +} +/** + * 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.ibc.applications.nft_transfer.v1.QueryClassHashRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest.displayName = 'proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest'; +} +/** + * 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.ibc.applications.nft_transfer.v1.QueryClassHashResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse.displayName = 'proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse'; +} +/** + * 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.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest.displayName = 'proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest'; +} +/** + * 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.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse.displayName = 'proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse'; +} +/** + * 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.ibc.applications.nft_transfer.v1.QueryParamsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ibc.applications.nft_transfer.v1.QueryParamsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ibc.applications.nft_transfer.v1.QueryParamsRequest.displayName = 'proto.ibc.applications.nft_transfer.v1.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.ibc.applications.nft_transfer.v1.QueryParamsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ibc.applications.nft_transfer.v1.QueryParamsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ibc.applications.nft_transfer.v1.QueryParamsResponse.displayName = 'proto.ibc.applications.nft_transfer.v1.QueryParamsResponse'; +} + + + +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.ibc.applications.nft_transfer.v1.QueryClassTraceRequest.prototype.toObject = function(opt_includeInstance) { + return proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest.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.ibc.applications.nft_transfer.v1.QueryClassTraceRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest.toObject = function(includeInstance, msg) { + var f, obj = { + hash: 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.ibc.applications.nft_transfer.v1.QueryClassTraceRequest} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest; + return proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest.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.setHash(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getHash(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string hash = 1; + * @return {string} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest.prototype.getHash = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest} returns this + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTraceRequest.prototype.setHash = 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.ibc.applications.nft_transfer.v1.QueryClassTraceResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse.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.ibc.applications.nft_transfer.v1.QueryClassTraceResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse.toObject = function(includeInstance, msg) { + var f, obj = { + classTrace: (f = msg.getClassTrace()) && ibc_applications_nft_transfer_v1_transfer_pb.ClassTrace.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.ibc.applications.nft_transfer.v1.QueryClassTraceResponse} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse; + return proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new ibc_applications_nft_transfer_v1_transfer_pb.ClassTrace; + reader.readMessage(value,ibc_applications_nft_transfer_v1_transfer_pb.ClassTrace.deserializeBinaryFromReader); + msg.setClassTrace(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getClassTrace(); + if (f != null) { + writer.writeMessage( + 1, + f, + ibc_applications_nft_transfer_v1_transfer_pb.ClassTrace.serializeBinaryToWriter + ); + } +}; + + +/** + * optional ClassTrace class_trace = 1; + * @return {?proto.ibc.applications.nft_transfer.v1.ClassTrace} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse.prototype.getClassTrace = function() { + return /** @type{?proto.ibc.applications.nft_transfer.v1.ClassTrace} */ ( + jspb.Message.getWrapperField(this, ibc_applications_nft_transfer_v1_transfer_pb.ClassTrace, 1)); +}; + + +/** + * @param {?proto.ibc.applications.nft_transfer.v1.ClassTrace|undefined} value + * @return {!proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse} returns this +*/ +proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse.prototype.setClassTrace = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse} returns this + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse.prototype.clearClassTrace = function() { + return this.setClassTrace(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTraceResponse.prototype.hasClassTrace = 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.ibc.applications.nft_transfer.v1.QueryClassTracesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest.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.ibc.applications.nft_transfer.v1.QueryClassTracesRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest.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.ibc.applications.nft_transfer.v1.QueryClassTracesRequest} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest; + return proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest.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.ibc.applications.nft_transfer.v1.QueryClassTracesRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest.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.ibc.applications.nft_transfer.v1.QueryClassTracesRequest.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.ibc.applications.nft_transfer.v1.QueryClassTracesRequest} returns this +*/ +proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest.prototype.setPagination = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest} returns this + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest.prototype.clearPagination = function() { + return this.setPagination(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTracesRequest.prototype.hasPagination = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse.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.ibc.applications.nft_transfer.v1.QueryClassTracesResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse.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.ibc.applications.nft_transfer.v1.QueryClassTracesResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse.toObject = function(includeInstance, msg) { + var f, obj = { + classTracesList: jspb.Message.toObjectList(msg.getClassTracesList(), + ibc_applications_nft_transfer_v1_transfer_pb.ClassTrace.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.ibc.applications.nft_transfer.v1.QueryClassTracesResponse} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse; + return proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new ibc_applications_nft_transfer_v1_transfer_pb.ClassTrace; + reader.readMessage(value,ibc_applications_nft_transfer_v1_transfer_pb.ClassTrace.deserializeBinaryFromReader); + msg.addClassTraces(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.ibc.applications.nft_transfer.v1.QueryClassTracesResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getClassTracesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + ibc_applications_nft_transfer_v1_transfer_pb.ClassTrace.serializeBinaryToWriter + ); + } + f = message.getPagination(); + if (f != null) { + writer.writeMessage( + 2, + f, + cosmos_base_query_v1beta1_pagination_pb.PageResponse.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated ClassTrace class_traces = 1; + * @return {!Array} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse.prototype.getClassTracesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, ibc_applications_nft_transfer_v1_transfer_pb.ClassTrace, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse} returns this +*/ +proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse.prototype.setClassTracesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.ibc.applications.nft_transfer.v1.ClassTrace=} opt_value + * @param {number=} opt_index + * @return {!proto.ibc.applications.nft_transfer.v1.ClassTrace} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse.prototype.addClassTraces = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ibc.applications.nft_transfer.v1.ClassTrace, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse} returns this + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse.prototype.clearClassTracesList = function() { + return this.setClassTracesList([]); +}; + + +/** + * optional cosmos.base.query.v1beta1.PageResponse pagination = 2; + * @return {?proto.cosmos.base.query.v1beta1.PageResponse} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse.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.ibc.applications.nft_transfer.v1.QueryClassTracesResponse} returns this +*/ +proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse.prototype.setPagination = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse} returns this + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse.prototype.clearPagination = function() { + return this.setPagination(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassTracesResponse.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.ibc.applications.nft_transfer.v1.QueryClassHashRequest.prototype.toObject = function(opt_includeInstance) { + return proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest.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.ibc.applications.nft_transfer.v1.QueryClassHashRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest.toObject = function(includeInstance, msg) { + var f, obj = { + trace: 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.ibc.applications.nft_transfer.v1.QueryClassHashRequest} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest; + return proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest.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.setTrace(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTrace(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string trace = 1; + * @return {string} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest.prototype.getTrace = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest} returns this + */ +proto.ibc.applications.nft_transfer.v1.QueryClassHashRequest.prototype.setTrace = 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.ibc.applications.nft_transfer.v1.QueryClassHashResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse.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.ibc.applications.nft_transfer.v1.QueryClassHashResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse.toObject = function(includeInstance, msg) { + var f, obj = { + hash: 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.ibc.applications.nft_transfer.v1.QueryClassHashResponse} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse; + return proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse.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.setHash(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getHash(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string hash = 1; + * @return {string} + */ +proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse.prototype.getHash = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse} returns this + */ +proto.ibc.applications.nft_transfer.v1.QueryClassHashResponse.prototype.setHash = 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.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest.prototype.toObject = function(opt_includeInstance) { + return proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest.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.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest.toObject = function(includeInstance, msg) { + var f, obj = { + portId: jspb.Message.getFieldWithDefault(msg, 1, ""), + channelId: 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.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest} + */ +proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest; + return proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest} + */ +proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest.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.setPortId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setChannelId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPortId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getChannelId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional string port_id = 1; + * @return {string} + */ +proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest.prototype.getPortId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest} returns this + */ +proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest.prototype.setPortId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string channel_id = 2; + * @return {string} + */ +proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest.prototype.getChannelId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest} returns this + */ +proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressRequest.prototype.setChannelId = 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.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse.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.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse.toObject = function(includeInstance, msg) { + var f, obj = { + escrowAddress: 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.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse} + */ +proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse; + return proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse} + */ +proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse.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.setEscrowAddress(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getEscrowAddress(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string escrow_address = 1; + * @return {string} + */ +proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse.prototype.getEscrowAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse} returns this + */ +proto.ibc.applications.nft_transfer.v1.QueryEscrowAddressResponse.prototype.setEscrowAddress = 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.ibc.applications.nft_transfer.v1.QueryParamsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.ibc.applications.nft_transfer.v1.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.ibc.applications.nft_transfer.v1.QueryParamsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.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.ibc.applications.nft_transfer.v1.QueryParamsRequest} + */ +proto.ibc.applications.nft_transfer.v1.QueryParamsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ibc.applications.nft_transfer.v1.QueryParamsRequest; + return proto.ibc.applications.nft_transfer.v1.QueryParamsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ibc.applications.nft_transfer.v1.QueryParamsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ibc.applications.nft_transfer.v1.QueryParamsRequest} + */ +proto.ibc.applications.nft_transfer.v1.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.ibc.applications.nft_transfer.v1.QueryParamsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ibc.applications.nft_transfer.v1.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.ibc.applications.nft_transfer.v1.QueryParamsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.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.ibc.applications.nft_transfer.v1.QueryParamsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ibc.applications.nft_transfer.v1.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.ibc.applications.nft_transfer.v1.QueryParamsResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.QueryParamsResponse.toObject = function(includeInstance, msg) { + var f, obj = { + params: (f = msg.getParams()) && ibc_applications_nft_transfer_v1_transfer_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.ibc.applications.nft_transfer.v1.QueryParamsResponse} + */ +proto.ibc.applications.nft_transfer.v1.QueryParamsResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ibc.applications.nft_transfer.v1.QueryParamsResponse; + return proto.ibc.applications.nft_transfer.v1.QueryParamsResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ibc.applications.nft_transfer.v1.QueryParamsResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ibc.applications.nft_transfer.v1.QueryParamsResponse} + */ +proto.ibc.applications.nft_transfer.v1.QueryParamsResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new ibc_applications_nft_transfer_v1_transfer_pb.Params; + reader.readMessage(value,ibc_applications_nft_transfer_v1_transfer_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.ibc.applications.nft_transfer.v1.QueryParamsResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ibc.applications.nft_transfer.v1.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.ibc.applications.nft_transfer.v1.QueryParamsResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.QueryParamsResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getParams(); + if (f != null) { + writer.writeMessage( + 1, + f, + ibc_applications_nft_transfer_v1_transfer_pb.Params.serializeBinaryToWriter + ); + } +}; + + +/** + * optional Params params = 1; + * @return {?proto.ibc.applications.nft_transfer.v1.Params} + */ +proto.ibc.applications.nft_transfer.v1.QueryParamsResponse.prototype.getParams = function() { + return /** @type{?proto.ibc.applications.nft_transfer.v1.Params} */ ( + jspb.Message.getWrapperField(this, ibc_applications_nft_transfer_v1_transfer_pb.Params, 1)); +}; + + +/** + * @param {?proto.ibc.applications.nft_transfer.v1.Params|undefined} value + * @return {!proto.ibc.applications.nft_transfer.v1.QueryParamsResponse} returns this +*/ +proto.ibc.applications.nft_transfer.v1.QueryParamsResponse.prototype.setParams = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ibc.applications.nft_transfer.v1.QueryParamsResponse} returns this + */ +proto.ibc.applications.nft_transfer.v1.QueryParamsResponse.prototype.clearParams = function() { + return this.setParams(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ibc.applications.nft_transfer.v1.QueryParamsResponse.prototype.hasParams = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +goog.object.extend(exports, proto.ibc.applications.nft_transfer.v1); diff --git a/src/types/proto-types/ibc/applications/nft_transfer/v1/transfer_pb.js b/src/types/proto-types/ibc/applications/nft_transfer/v1/transfer_pb.js new file mode 100644 index 00000000..e95fc59e --- /dev/null +++ b/src/types/proto-types/ibc/applications/nft_transfer/v1/transfer_pb.js @@ -0,0 +1,379 @@ +// source: ibc/applications/nft_transfer/v1/transfer.proto +/** + * @fileoverview + * @enhanceable + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = Function('return this')(); + +goog.exportSymbol('proto.ibc.applications.nft_transfer.v1.ClassTrace', null, global); +goog.exportSymbol('proto.ibc.applications.nft_transfer.v1.Params', null, global); +/** + * 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.ibc.applications.nft_transfer.v1.ClassTrace = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ibc.applications.nft_transfer.v1.ClassTrace, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ibc.applications.nft_transfer.v1.ClassTrace.displayName = 'proto.ibc.applications.nft_transfer.v1.ClassTrace'; +} +/** + * 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.ibc.applications.nft_transfer.v1.Params = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ibc.applications.nft_transfer.v1.Params, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ibc.applications.nft_transfer.v1.Params.displayName = 'proto.ibc.applications.nft_transfer.v1.Params'; +} + + + +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.ibc.applications.nft_transfer.v1.ClassTrace.prototype.toObject = function(opt_includeInstance) { + return proto.ibc.applications.nft_transfer.v1.ClassTrace.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.ibc.applications.nft_transfer.v1.ClassTrace} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.ClassTrace.toObject = function(includeInstance, msg) { + var f, obj = { + path: jspb.Message.getFieldWithDefault(msg, 1, ""), + baseClassId: 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.ibc.applications.nft_transfer.v1.ClassTrace} + */ +proto.ibc.applications.nft_transfer.v1.ClassTrace.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ibc.applications.nft_transfer.v1.ClassTrace; + return proto.ibc.applications.nft_transfer.v1.ClassTrace.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ibc.applications.nft_transfer.v1.ClassTrace} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ibc.applications.nft_transfer.v1.ClassTrace} + */ +proto.ibc.applications.nft_transfer.v1.ClassTrace.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.setPath(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setBaseClassId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ibc.applications.nft_transfer.v1.ClassTrace.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ibc.applications.nft_transfer.v1.ClassTrace.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ibc.applications.nft_transfer.v1.ClassTrace} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.ClassTrace.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPath(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getBaseClassId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional string path = 1; + * @return {string} + */ +proto.ibc.applications.nft_transfer.v1.ClassTrace.prototype.getPath = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ibc.applications.nft_transfer.v1.ClassTrace} returns this + */ +proto.ibc.applications.nft_transfer.v1.ClassTrace.prototype.setPath = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string base_class_id = 2; + * @return {string} + */ +proto.ibc.applications.nft_transfer.v1.ClassTrace.prototype.getBaseClassId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ibc.applications.nft_transfer.v1.ClassTrace} returns this + */ +proto.ibc.applications.nft_transfer.v1.ClassTrace.prototype.setBaseClassId = 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.ibc.applications.nft_transfer.v1.Params.prototype.toObject = function(opt_includeInstance) { + return proto.ibc.applications.nft_transfer.v1.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.ibc.applications.nft_transfer.v1.Params} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.Params.toObject = function(includeInstance, msg) { + var f, obj = { + sendEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), + receiveEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ibc.applications.nft_transfer.v1.Params} + */ +proto.ibc.applications.nft_transfer.v1.Params.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ibc.applications.nft_transfer.v1.Params; + return proto.ibc.applications.nft_transfer.v1.Params.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ibc.applications.nft_transfer.v1.Params} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ibc.applications.nft_transfer.v1.Params} + */ +proto.ibc.applications.nft_transfer.v1.Params.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSendEnabled(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setReceiveEnabled(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ibc.applications.nft_transfer.v1.Params.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ibc.applications.nft_transfer.v1.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.ibc.applications.nft_transfer.v1.Params} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.Params.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSendEnabled(); + if (f) { + writer.writeBool( + 1, + f + ); + } + f = message.getReceiveEnabled(); + if (f) { + writer.writeBool( + 2, + f + ); + } +}; + + +/** + * optional bool send_enabled = 1; + * @return {boolean} + */ +proto.ibc.applications.nft_transfer.v1.Params.prototype.getSendEnabled = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.ibc.applications.nft_transfer.v1.Params} returns this + */ +proto.ibc.applications.nft_transfer.v1.Params.prototype.setSendEnabled = function(value) { + return jspb.Message.setProto3BooleanField(this, 1, value); +}; + + +/** + * optional bool receive_enabled = 2; + * @return {boolean} + */ +proto.ibc.applications.nft_transfer.v1.Params.prototype.getReceiveEnabled = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.ibc.applications.nft_transfer.v1.Params} returns this + */ +proto.ibc.applications.nft_transfer.v1.Params.prototype.setReceiveEnabled = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); +}; + + +goog.object.extend(exports, proto.ibc.applications.nft_transfer.v1); diff --git a/src/types/proto-types/ibc/applications/nft_transfer/v1/tx_grpc_web_pb.js b/src/types/proto-types/ibc/applications/nft_transfer/v1/tx_grpc_web_pb.js new file mode 100644 index 00000000..107f68dd --- /dev/null +++ b/src/types/proto-types/ibc/applications/nft_transfer/v1/tx_grpc_web_pb.js @@ -0,0 +1,243 @@ +/** + * @fileoverview gRPC-Web generated client stub for ibc.applications.nft_transfer.v1 + * @enhanceable + * @public + */ + +// GENERATED CODE -- DO NOT EDIT! + + +/* eslint-disable */ +// @ts-nocheck + + + +const grpc = {}; +grpc.web = require('grpc-web'); + + +var gogoproto_gogo_pb = require('../../../../gogoproto/gogo_pb.js') + +var ibc_core_client_v1_client_pb = require('../../../../ibc/core/client/v1/client_pb.js') + +var ibc_applications_nft_transfer_v1_transfer_pb = require('../../../../ibc/applications/nft_transfer/v1/transfer_pb.js') +const proto = {}; +proto.ibc = {}; +proto.ibc.applications = {}; +proto.ibc.applications.nft_transfer = {}; +proto.ibc.applications.nft_transfer.v1 = require('./tx_pb.js'); + +/** + * @param {string} hostname + * @param {?Object} credentials + * @param {?Object} options + * @constructor + * @struct + * @final + */ +proto.ibc.applications.nft_transfer.v1.MsgClient = + function(hostname, credentials, options) { + if (!options) options = {}; + options['format'] = 'text'; + + /** + * @private @const {!grpc.web.GrpcWebClientBase} The client + */ + this.client_ = new grpc.web.GrpcWebClientBase(options); + + /** + * @private @const {string} The hostname + */ + this.hostname_ = hostname; + +}; + + +/** + * @param {string} hostname + * @param {?Object} credentials + * @param {?Object} options + * @constructor + * @struct + * @final + */ +proto.ibc.applications.nft_transfer.v1.MsgPromiseClient = + function(hostname, credentials, options) { + if (!options) options = {}; + options['format'] = 'text'; + + /** + * @private @const {!grpc.web.GrpcWebClientBase} The client + */ + this.client_ = new grpc.web.GrpcWebClientBase(options); + + /** + * @private @const {string} The hostname + */ + this.hostname_ = hostname; + +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.ibc.applications.nft_transfer.v1.MsgTransfer, + * !proto.ibc.applications.nft_transfer.v1.MsgTransferResponse>} + */ +const methodDescriptor_Msg_Transfer = new grpc.web.MethodDescriptor( + '/ibc.applications.nft_transfer.v1.Msg/Transfer', + grpc.web.MethodType.UNARY, + proto.ibc.applications.nft_transfer.v1.MsgTransfer, + proto.ibc.applications.nft_transfer.v1.MsgTransferResponse, + /** + * @param {!proto.ibc.applications.nft_transfer.v1.MsgTransfer} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.ibc.applications.nft_transfer.v1.MsgTransferResponse.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.ibc.applications.nft_transfer.v1.MsgTransfer, + * !proto.ibc.applications.nft_transfer.v1.MsgTransferResponse>} + */ +const methodInfo_Msg_Transfer = new grpc.web.AbstractClientBase.MethodInfo( + proto.ibc.applications.nft_transfer.v1.MsgTransferResponse, + /** + * @param {!proto.ibc.applications.nft_transfer.v1.MsgTransfer} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.ibc.applications.nft_transfer.v1.MsgTransferResponse.deserializeBinary +); + + +/** + * @param {!proto.ibc.applications.nft_transfer.v1.MsgTransfer} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.ibc.applications.nft_transfer.v1.MsgTransferResponse)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.ibc.applications.nft_transfer.v1.MsgClient.prototype.transfer = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/ibc.applications.nft_transfer.v1.Msg/Transfer', + request, + metadata || {}, + methodDescriptor_Msg_Transfer, + callback); +}; + + +/** + * @param {!proto.ibc.applications.nft_transfer.v1.MsgTransfer} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.ibc.applications.nft_transfer.v1.MsgPromiseClient.prototype.transfer = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/ibc.applications.nft_transfer.v1.Msg/Transfer', + request, + metadata || {}, + methodDescriptor_Msg_Transfer); +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.ibc.applications.nft_transfer.v1.MsgUpdateParams, + * !proto.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse>} + */ +const methodDescriptor_Msg_UpdateParams = new grpc.web.MethodDescriptor( + '/ibc.applications.nft_transfer.v1.Msg/UpdateParams', + grpc.web.MethodType.UNARY, + proto.ibc.applications.nft_transfer.v1.MsgUpdateParams, + proto.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse, + /** + * @param {!proto.ibc.applications.nft_transfer.v1.MsgUpdateParams} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.ibc.applications.nft_transfer.v1.MsgUpdateParams, + * !proto.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse>} + */ +const methodInfo_Msg_UpdateParams = new grpc.web.AbstractClientBase.MethodInfo( + proto.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse, + /** + * @param {!proto.ibc.applications.nft_transfer.v1.MsgUpdateParams} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse.deserializeBinary +); + + +/** + * @param {!proto.ibc.applications.nft_transfer.v1.MsgUpdateParams} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.ibc.applications.nft_transfer.v1.MsgClient.prototype.updateParams = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/ibc.applications.nft_transfer.v1.Msg/UpdateParams', + request, + metadata || {}, + methodDescriptor_Msg_UpdateParams, + callback); +}; + + +/** + * @param {!proto.ibc.applications.nft_transfer.v1.MsgUpdateParams} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.ibc.applications.nft_transfer.v1.MsgPromiseClient.prototype.updateParams = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/ibc.applications.nft_transfer.v1.Msg/UpdateParams', + request, + metadata || {}, + methodDescriptor_Msg_UpdateParams); +}; + + +module.exports = proto.ibc.applications.nft_transfer.v1; + diff --git a/src/types/proto-types/ibc/applications/nft_transfer/v1/tx_pb.js b/src/types/proto-types/ibc/applications/nft_transfer/v1/tx_pb.js new file mode 100644 index 00000000..75014443 --- /dev/null +++ b/src/types/proto-types/ibc/applications/nft_transfer/v1/tx_pb.js @@ -0,0 +1,938 @@ +// source: ibc/applications/nft_transfer/v1/tx.proto +/** + * @fileoverview + * @enhanceable + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = Function('return this')(); + +var gogoproto_gogo_pb = require('../../../../gogoproto/gogo_pb.js'); +goog.object.extend(proto, gogoproto_gogo_pb); +var ibc_core_client_v1_client_pb = require('../../../../ibc/core/client/v1/client_pb.js'); +goog.object.extend(proto, ibc_core_client_v1_client_pb); +var ibc_applications_nft_transfer_v1_transfer_pb = require('../../../../ibc/applications/nft_transfer/v1/transfer_pb.js'); +goog.object.extend(proto, ibc_applications_nft_transfer_v1_transfer_pb); +goog.exportSymbol('proto.ibc.applications.nft_transfer.v1.MsgTransfer', null, global); +goog.exportSymbol('proto.ibc.applications.nft_transfer.v1.MsgTransferResponse', null, global); +goog.exportSymbol('proto.ibc.applications.nft_transfer.v1.MsgUpdateParams', null, global); +goog.exportSymbol('proto.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse', null, global); +/** + * 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.ibc.applications.nft_transfer.v1.MsgTransfer = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.ibc.applications.nft_transfer.v1.MsgTransfer.repeatedFields_, null); +}; +goog.inherits(proto.ibc.applications.nft_transfer.v1.MsgTransfer, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ibc.applications.nft_transfer.v1.MsgTransfer.displayName = 'proto.ibc.applications.nft_transfer.v1.MsgTransfer'; +} +/** + * 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.ibc.applications.nft_transfer.v1.MsgTransferResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ibc.applications.nft_transfer.v1.MsgTransferResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ibc.applications.nft_transfer.v1.MsgTransferResponse.displayName = 'proto.ibc.applications.nft_transfer.v1.MsgTransferResponse'; +} +/** + * 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.ibc.applications.nft_transfer.v1.MsgUpdateParams = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ibc.applications.nft_transfer.v1.MsgUpdateParams, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ibc.applications.nft_transfer.v1.MsgUpdateParams.displayName = 'proto.ibc.applications.nft_transfer.v1.MsgUpdateParams'; +} +/** + * 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.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse.displayName = 'proto.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.repeatedFields_ = [4]; + + + +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.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.toObject = function(opt_includeInstance) { + return proto.ibc.applications.nft_transfer.v1.MsgTransfer.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.ibc.applications.nft_transfer.v1.MsgTransfer} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.toObject = function(includeInstance, msg) { + var f, obj = { + sourcePort: jspb.Message.getFieldWithDefault(msg, 1, ""), + sourceChannel: jspb.Message.getFieldWithDefault(msg, 2, ""), + classId: jspb.Message.getFieldWithDefault(msg, 3, ""), + tokenIdsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f, + sender: jspb.Message.getFieldWithDefault(msg, 5, ""), + receiver: jspb.Message.getFieldWithDefault(msg, 6, ""), + timeoutHeight: (f = msg.getTimeoutHeight()) && ibc_core_client_v1_client_pb.Height.toObject(includeInstance, f), + timeoutTimestamp: jspb.Message.getFieldWithDefault(msg, 8, 0), + memo: jspb.Message.getFieldWithDefault(msg, 9, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ibc.applications.nft_transfer.v1.MsgTransfer} + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ibc.applications.nft_transfer.v1.MsgTransfer; + return proto.ibc.applications.nft_transfer.v1.MsgTransfer.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ibc.applications.nft_transfer.v1.MsgTransfer} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ibc.applications.nft_transfer.v1.MsgTransfer} + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.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.setSourcePort(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setSourceChannel(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setClassId(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.addTokenIds(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setSender(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setReceiver(value); + break; + case 7: + var value = new ibc_core_client_v1_client_pb.Height; + reader.readMessage(value,ibc_core_client_v1_client_pb.Height.deserializeBinaryFromReader); + msg.setTimeoutHeight(value); + break; + case 8: + var value = /** @type {number} */ (reader.readUint64()); + msg.setTimeoutTimestamp(value); + break; + case 9: + var value = /** @type {string} */ (reader.readString()); + msg.setMemo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ibc.applications.nft_transfer.v1.MsgTransfer.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ibc.applications.nft_transfer.v1.MsgTransfer} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSourcePort(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getSourceChannel(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getClassId(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getTokenIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 4, + f + ); + } + f = message.getSender(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getReceiver(); + if (f.length > 0) { + writer.writeString( + 6, + f + ); + } + f = message.getTimeoutHeight(); + if (f != null) { + writer.writeMessage( + 7, + f, + ibc_core_client_v1_client_pb.Height.serializeBinaryToWriter + ); + } + f = message.getTimeoutTimestamp(); + if (f !== 0) { + writer.writeUint64( + 8, + f + ); + } + f = message.getMemo(); + if (f.length > 0) { + writer.writeString( + 9, + f + ); + } +}; + + +/** + * optional string source_port = 1; + * @return {string} + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.getSourcePort = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ibc.applications.nft_transfer.v1.MsgTransfer} returns this + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.setSourcePort = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string source_channel = 2; + * @return {string} + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.getSourceChannel = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ibc.applications.nft_transfer.v1.MsgTransfer} returns this + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.setSourceChannel = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string class_id = 3; + * @return {string} + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.getClassId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ibc.applications.nft_transfer.v1.MsgTransfer} returns this + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.setClassId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * repeated string token_ids = 4; + * @return {!Array} + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.getTokenIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ibc.applications.nft_transfer.v1.MsgTransfer} returns this + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.setTokenIdsList = function(value) { + return jspb.Message.setField(this, 4, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.ibc.applications.nft_transfer.v1.MsgTransfer} returns this + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.addTokenIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 4, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ibc.applications.nft_transfer.v1.MsgTransfer} returns this + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.clearTokenIdsList = function() { + return this.setTokenIdsList([]); +}; + + +/** + * optional string sender = 5; + * @return {string} + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.getSender = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ibc.applications.nft_transfer.v1.MsgTransfer} returns this + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.setSender = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * optional string receiver = 6; + * @return {string} + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.getReceiver = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ibc.applications.nft_transfer.v1.MsgTransfer} returns this + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.setReceiver = function(value) { + return jspb.Message.setProto3StringField(this, 6, value); +}; + + +/** + * optional ibc.core.client.v1.Height timeout_height = 7; + * @return {?proto.ibc.core.client.v1.Height} + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.getTimeoutHeight = function() { + return /** @type{?proto.ibc.core.client.v1.Height} */ ( + jspb.Message.getWrapperField(this, ibc_core_client_v1_client_pb.Height, 7)); +}; + + +/** + * @param {?proto.ibc.core.client.v1.Height|undefined} value + * @return {!proto.ibc.applications.nft_transfer.v1.MsgTransfer} returns this +*/ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.setTimeoutHeight = function(value) { + return jspb.Message.setWrapperField(this, 7, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ibc.applications.nft_transfer.v1.MsgTransfer} returns this + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.clearTimeoutHeight = function() { + return this.setTimeoutHeight(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.hasTimeoutHeight = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * optional uint64 timeout_timestamp = 8; + * @return {number} + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.getTimeoutTimestamp = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ibc.applications.nft_transfer.v1.MsgTransfer} returns this + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.setTimeoutTimestamp = function(value) { + return jspb.Message.setProto3IntField(this, 8, value); +}; + + +/** + * optional string memo = 9; + * @return {string} + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.getMemo = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ibc.applications.nft_transfer.v1.MsgTransfer} returns this + */ +proto.ibc.applications.nft_transfer.v1.MsgTransfer.prototype.setMemo = function(value) { + return jspb.Message.setProto3StringField(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.ibc.applications.nft_transfer.v1.MsgTransferResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ibc.applications.nft_transfer.v1.MsgTransferResponse.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.ibc.applications.nft_transfer.v1.MsgTransferResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.MsgTransferResponse.toObject = function(includeInstance, msg) { + var f, obj = { + sequence: jspb.Message.getFieldWithDefault(msg, 1, 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.ibc.applications.nft_transfer.v1.MsgTransferResponse} + */ +proto.ibc.applications.nft_transfer.v1.MsgTransferResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ibc.applications.nft_transfer.v1.MsgTransferResponse; + return proto.ibc.applications.nft_transfer.v1.MsgTransferResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ibc.applications.nft_transfer.v1.MsgTransferResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ibc.applications.nft_transfer.v1.MsgTransferResponse} + */ +proto.ibc.applications.nft_transfer.v1.MsgTransferResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setSequence(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ibc.applications.nft_transfer.v1.MsgTransferResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ibc.applications.nft_transfer.v1.MsgTransferResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ibc.applications.nft_transfer.v1.MsgTransferResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.MsgTransferResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSequence(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } +}; + + +/** + * optional uint64 sequence = 1; + * @return {number} + */ +proto.ibc.applications.nft_transfer.v1.MsgTransferResponse.prototype.getSequence = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ibc.applications.nft_transfer.v1.MsgTransferResponse} returns this + */ +proto.ibc.applications.nft_transfer.v1.MsgTransferResponse.prototype.setSequence = function(value) { + return jspb.Message.setProto3IntField(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.ibc.applications.nft_transfer.v1.MsgUpdateParams.prototype.toObject = function(opt_includeInstance) { + return proto.ibc.applications.nft_transfer.v1.MsgUpdateParams.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.ibc.applications.nft_transfer.v1.MsgUpdateParams} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.MsgUpdateParams.toObject = function(includeInstance, msg) { + var f, obj = { + authority: jspb.Message.getFieldWithDefault(msg, 1, ""), + params: (f = msg.getParams()) && ibc_applications_nft_transfer_v1_transfer_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.ibc.applications.nft_transfer.v1.MsgUpdateParams} + */ +proto.ibc.applications.nft_transfer.v1.MsgUpdateParams.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ibc.applications.nft_transfer.v1.MsgUpdateParams; + return proto.ibc.applications.nft_transfer.v1.MsgUpdateParams.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ibc.applications.nft_transfer.v1.MsgUpdateParams} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ibc.applications.nft_transfer.v1.MsgUpdateParams} + */ +proto.ibc.applications.nft_transfer.v1.MsgUpdateParams.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.setAuthority(value); + break; + case 2: + var value = new ibc_applications_nft_transfer_v1_transfer_pb.Params; + reader.readMessage(value,ibc_applications_nft_transfer_v1_transfer_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.ibc.applications.nft_transfer.v1.MsgUpdateParams.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ibc.applications.nft_transfer.v1.MsgUpdateParams.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ibc.applications.nft_transfer.v1.MsgUpdateParams} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.MsgUpdateParams.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAuthority(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getParams(); + if (f != null) { + writer.writeMessage( + 2, + f, + ibc_applications_nft_transfer_v1_transfer_pb.Params.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string authority = 1; + * @return {string} + */ +proto.ibc.applications.nft_transfer.v1.MsgUpdateParams.prototype.getAuthority = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ibc.applications.nft_transfer.v1.MsgUpdateParams} returns this + */ +proto.ibc.applications.nft_transfer.v1.MsgUpdateParams.prototype.setAuthority = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional Params params = 2; + * @return {?proto.ibc.applications.nft_transfer.v1.Params} + */ +proto.ibc.applications.nft_transfer.v1.MsgUpdateParams.prototype.getParams = function() { + return /** @type{?proto.ibc.applications.nft_transfer.v1.Params} */ ( + jspb.Message.getWrapperField(this, ibc_applications_nft_transfer_v1_transfer_pb.Params, 2)); +}; + + +/** + * @param {?proto.ibc.applications.nft_transfer.v1.Params|undefined} value + * @return {!proto.ibc.applications.nft_transfer.v1.MsgUpdateParams} returns this +*/ +proto.ibc.applications.nft_transfer.v1.MsgUpdateParams.prototype.setParams = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ibc.applications.nft_transfer.v1.MsgUpdateParams} returns this + */ +proto.ibc.applications.nft_transfer.v1.MsgUpdateParams.prototype.clearParams = function() { + return this.setParams(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ibc.applications.nft_transfer.v1.MsgUpdateParams.prototype.hasParams = 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.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse.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.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse.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.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse} + */ +proto.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse; + return proto.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse} + */ +proto.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse.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.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ibc.applications.nft_transfer.v1.MsgUpdateParamsResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + +goog.object.extend(exports, proto.ibc.applications.nft_transfer.v1); diff --git a/src/types/proto.ts b/src/types/proto.ts index 4bc7bc11..7db6b55b 100644 --- a/src/types/proto.ts +++ b/src/types/proto.ts @@ -23,6 +23,7 @@ export const token_tx_pb= require( './proto-types/irismod/token/v1/tx_pb'); export const farm_tx_pb = require('./proto-types/irismod/farm/tx_pb') //ibc tx export const ibc_transfer_tx_pb= require( './proto-types/ibc/applications/transfer/v1/tx_pb'); +export const ibc_nft_transfer_tx_pb= require( './proto-types/ibc/applications/nft_transfer/v1/tx_pb'); /***************QUERY***************/ export const base_query_pagination_pb = require( './proto-types/cosmos/base/query/v1beta1/pagination_pb'); @@ -52,6 +53,7 @@ export const farm_query_pb = require( './proto-types/irismod/farm/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'); +export const ibc_nft_transfer_query_pb= require( './proto-types/ibc/applications/nft_transfer/v1/query_pb'); /***************MODULES***************/ //cosmos module diff --git a/src/types/types.ts b/src/types/types.ts index f540a227..a705380f 100644 --- a/src/types/types.ts +++ b/src/types/types.ts @@ -88,6 +88,7 @@ export enum TxType { MsgClaimHTLC = "irismod.htlc.MsgClaimHTLC", //ibc MsgTransfer = "ibc.applications.transfer.v1.MsgTransfer", + MsgIbcNftTransfer = "ibc.applications.nft_transfer.v1.MsgTransfer", } /** diff --git a/src/utils/crypto.ts b/src/utils/crypto.ts index 5095d1ea..f0061c08 100644 --- a/src/utils/crypto.ts +++ b/src/utils/crypto.ts @@ -75,7 +75,7 @@ export class Crypto { * @param type The output type (default: hex) * @returns Bech32 address */ - static encodeAddress(pubkeyHash: string, hrp = 'iaa', type = 'hex') { + static encodeAddress(pubkeyHash: string, hrp: string = 'iaa', type: BufferEncoding = 'hex') { const words = bech32.toWords(Buffer.from(pubkeyHash, type)); return bech32.encode(hrp, words); } diff --git a/test/bank.test.ts b/test/bank.test.ts index 1cf3c65c..bfd52819 100644 --- a/test/bank.test.ts +++ b/test/bank.test.ts @@ -1,5 +1,5 @@ import * as types from '../src/types'; -import { BaseTest } from './basetest'; +import { BaseTest, Consts } from './basetest'; const timeout = 90000; @@ -64,8 +64,9 @@ describe('Bank Tests', () => { test( 'query Balance', async () => { - await BaseTest.getClient() - .bank.queryBalance('iaa1kaw9vuusxhc4gvx02enhzf88jmd4eg487mfdyc','udev') + const client = BaseTest.getClient(); + await client + .bank.queryBalance(client.keys.show(Consts.keyName) ,'udev') .then(res => { console.log(JSON.stringify(res)); }) @@ -79,8 +80,9 @@ describe('Bank Tests', () => { test( 'query All Balances', async () => { - await BaseTest.getClient() - .bank.queryAllBalances('iaa1c7y370svmmu9yhwg7f30cfm70gdquht3l7y2wg') + const client = BaseTest.getClient(); + await client + .bank.queryAllBalances(client.keys.show(Consts.keyName)) .then(res => { console.log(JSON.stringify(res)); }) @@ -94,8 +96,9 @@ describe('Bank Tests', () => { test( 'query All Balances by Height', async () => { - await BaseTest.getClient() - .bank.queryAllBalances('iaa176dd0tgn38grpc8hpxfmwl6sl8jfmkneg8mkxr','4968') + const client = BaseTest.getClient(); + await client + .bank.queryAllBalances(client.keys.show(Consts.keyName),'4968') .then(res => { console.log(JSON.stringify(res)); }) @@ -109,7 +112,8 @@ describe('Bank Tests', () => { test( 'query Total Supply', async () => { - await BaseTest.getClient() + const client = BaseTest.getClient(); + await client .bank.queryTotalSupply({ page_number: 2, page_size: 8, @@ -141,7 +145,7 @@ describe('Bank Tests', () => { ); test( - 'query All Balances', + 'query Params', async () => { await BaseTest.getClient() .bank.queryParams() diff --git a/test/ibcNftTransfer.test.ts b/test/ibcNftTransfer.test.ts new file mode 100644 index 00000000..557edb87 --- /dev/null +++ b/test/ibcNftTransfer.test.ts @@ -0,0 +1,110 @@ +import { BaseTest } from './basetest'; + +const timeout = 90000; + +describe('Ibc Nft Transfer Tests', () => { + describe('transfer', () => { + test( + 'ibc nft transfer', + async () => { + await BaseTest.getClient() + .ibcNftTransfer.transfer( + { + source_port: 'nft-transfer', + source_channel: 'channel-99', + class_id: 'rldn', + token_ids: ['tmausyz', 'hibwynm'], + receiver: 'cosmos10nzeu2lf7lrcyvmtr8u7lygs8nj6vslqshcu06', + timeout_timestamp:1704285997287000000, + memo: '66666' + }, + BaseTest.baseTx + ) + .then(res => { + console.log(res); + }) + .catch(error => { + console.log(error); + }); + }, + timeout + ); + }); + + describe('Queries', () => { + test( + 'query Class Trace', + async () => { + await BaseTest.getClient() + .ibcNftTransfer.queryClassTrace('EEB2AAF7E39CEEE41A53D8AE7A8B3746963F96261A2F73309C56B2622A259F36') + .then(res => { + console.log(JSON.stringify(res)); + }) + .catch(error => { + console.log(error); + }); + }, + timeout + ); + + test( + 'query Class Traces', + async () => { + await BaseTest.getClient() + .ibcNftTransfer.queryClassTraces() + .then(res => { + console.log(JSON.stringify(res)); + }) + .catch(error => { + console.log(error); + }); + }, + timeout + ); + + test( + 'query Class Hash', + async () => { + await BaseTest.getClient() + .ibcNftTransfer.queryClassHash('nft-transfer/channel-101/class1') + .then(res => { + console.log(JSON.stringify(res)); + }) + .catch(error => { + console.log(error); + }); + }, + timeout + ); + + test( + 'query Escrow Address', + async () => { + await BaseTest.getClient() + .ibcNftTransfer.queryEscrowAddress('nft-transfer', 'channel-99') + .then(res => { + console.log(JSON.stringify(res)); + }) + .catch(error => { + console.log(error); + }); + }, + timeout + ); + + test( + 'queries all parameters of the ibc-nft-transfer module', + async () => { + await BaseTest.getClient() + .ibcNftTransfer.queryParams() + .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 932d57be..52ddbf6f 100644 --- a/test/index.test.ts +++ b/test/index.test.ts @@ -7,22 +7,18 @@ test('Init Client', () => { expect(client.config.chainId).toBe('irishub'); expect(client.config.fee).toBe('600000000000000000'); 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.types.Network.Testnet; client .withChainId(chainId) .withFee(fee) - .withGas(gas) - .withNetwork(network); + .withGas(gas); expect(client.config.chainId).toBe(chainId); expect(client.config.fee).toBe(fee); expect(client.config.gas).toBe(gas); - expect(client.config.network).toBe(network); expect(client.config.node).toBe(node); }); diff --git a/yarn.lock b/yarn.lock index 830b6075..b7066106 100644 --- a/yarn.lock +++ b/yarn.lock @@ -31,13 +31,6 @@ "@nicolo-ribaudo/chokidar-2" "2.1.8-no-fsevents.3" chokidar "^3.4.0" -"@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", "@babel/code-frame@^7.22.13": version "7.22.13" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.22.13.tgz#e3c1c099402598483b7a8c46a721d1038803755e" @@ -271,7 +264,7 @@ "@babel/traverse" "^7.23.2" "@babel/types" "^7.23.0" -"@babel/highlight@^7.10.4", "@babel/highlight@^7.22.13": +"@babel/highlight@^7.22.13": version "7.22.20" resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.22.20.tgz#4ca92b71d80554b01427815e06f2df965b9c1f54" integrity sha512-dkdMCN3py0+ksCgYmGG8jKeGA/8Tk+gJwSYYlFGxG5lmhfKNoAy004YpLxpS1W2J8m/EK2Ew+yOs9pVRwO89mg== @@ -1037,34 +1030,56 @@ resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== -"@eslint/eslintrc@^0.4.3": - version "0.4.3" - resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-0.4.3.tgz#9e42981ef035beb3dd49add17acb96e8ff6f394c" - integrity sha512-J6KFFz5QCYUJq3pf0mjEcCJVERbzv71PUIDczuh9JkwGEzced6CO5ADLHB1rbf/+oPBtoPfMYNOpGDzCANlbXw== +"@eslint-community/eslint-utils@^4.2.0": + version "4.4.0" + resolved "https://registry.yarnpkg.com/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz#a23514e8fb9af1269d5f7788aa556798d61c6b59" + integrity sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA== + dependencies: + eslint-visitor-keys "^3.3.0" + +"@eslint-community/regexpp@^4.4.0", "@eslint-community/regexpp@^4.6.1": + version "4.10.0" + resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.10.0.tgz#548f6de556857c8bb73bbee70c35dc82a2e74d63" + integrity sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA== + +"@eslint/eslintrc@^2.1.2": + version "2.1.4" + resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-2.1.4.tgz#388a269f0f25c1b6adc317b5a2c55714894c70ad" + integrity sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ== dependencies: ajv "^6.12.4" - debug "^4.1.1" - espree "^7.3.0" - globals "^13.9.0" - ignore "^4.0.6" + debug "^4.3.2" + espree "^9.6.0" + globals "^13.19.0" + ignore "^5.2.0" import-fresh "^3.2.1" - js-yaml "^3.13.1" - minimatch "^3.0.4" + js-yaml "^4.1.0" + minimatch "^3.1.2" strip-json-comments "^3.1.1" -"@humanwhocodes/config-array@^0.5.0": - version "0.5.0" - resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.5.0.tgz#1407967d4c6eecd7388f83acf1eaf4d0c6e58ef9" - integrity sha512-FagtKFz74XrTl7y6HCzQpwDfXP0yhxe9lHLD1UZxjvZIcbyRz8zTFF/yYNfSfzU414eDwZ1SrO0Qvtyf+wFMQg== +"@eslint/js@8.50.0": + version "8.50.0" + resolved "https://registry.yarnpkg.com/@eslint/js/-/js-8.50.0.tgz#9e93b850f0f3fa35f5fa59adfd03adae8488e484" + integrity sha512-NCC3zz2+nvYd+Ckfh87rA47zfu2QsQpvc6k1yzTk+b9KzRj0wkGa8LSoGOXN6Zv4lRf/EIoZ80biDh9HOI+RNQ== + +"@humanwhocodes/config-array@^0.11.11": + version "0.11.13" + resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.11.13.tgz#075dc9684f40a531d9b26b0822153c1e832ee297" + integrity sha512-JSBDMiDKSzQVngfRjOdFXgFfklaXI4K9nLF49Auh21lmBWRLIK3+xTErTWD4KU54pb6coM6ESE7Awz/FNU3zgQ== dependencies: - "@humanwhocodes/object-schema" "^1.2.0" + "@humanwhocodes/object-schema" "^2.0.1" debug "^4.1.1" - minimatch "^3.0.4" + minimatch "^3.0.5" -"@humanwhocodes/object-schema@^1.2.0": - version "1.2.1" - resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz#b520529ec21d8e5945a1851dfd1c32e94e39ff45" - integrity sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA== +"@humanwhocodes/module-importer@^1.0.1": + version "1.0.1" + resolved "https://registry.yarnpkg.com/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz#af5b2691a22b44be847b0ca81641c5fb6ad0172c" + integrity sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA== + +"@humanwhocodes/object-schema@^2.0.1": + version "2.0.1" + resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-2.0.1.tgz#e5211452df060fa8522b55c7b3c0c4d1981cb044" + integrity sha512-dvuCeX5fC9dXgJn9t+X5atfmgQAzUOWqS1254Gh0m6i8wKd10ebXkfNKiRK+1GWi/yTvvLDHpoxLr0xxxeslWw== "@istanbuljs/load-nyc-config@^1.0.0": version "1.1.0" @@ -1262,17 +1277,6 @@ slash "^3.0.0" write-file-atomic "^4.0.2" -"@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" - "@jest/types@^29.6.3": version "29.6.3" resolved "https://registry.yarnpkg.com/@jest/types/-/types-29.6.3.tgz#1131f8cf634e7e84c5e77bab12f052af585fba59" @@ -1322,6 +1326,11 @@ resolved "https://registry.yarnpkg.com/@nicolo-ribaudo/chokidar-2/-/chokidar-2-2.1.8-no-fsevents.3.tgz#323d72dd25103d0c4fbdce89dadf574a787b1f9b" integrity sha512-s88O1aVtXftvp5bCPB7WnmXc5IwOZZ7YPuwNPt+GtOOXpPvad1LfbmjYv+qII7zP6RU2QGnqve27dnLycEnyEQ== +"@noble/hashes@^1.2.0": + version "1.3.3" + resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.3.3.tgz#39908da56a4adc270147bb07968bf3b16cfe1699" + integrity sha512-V7/fPHgl+jsVPXqqeOzT8egNj2iBIVt+ECeMMG8TdcnTikP3oaBtUVqpT/gYCR68aEBJSF+XbYUxStjbFMqIIA== + "@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" @@ -1335,7 +1344,7 @@ 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": +"@nodelib/fs.walk@^1.2.3", "@nodelib/fs.walk@^1.2.8": version "1.2.8" resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz#e95737e8bb6746ddedf69c556953494f196fe69a" integrity sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg== @@ -1343,6 +1352,11 @@ "@nodelib/fs.scandir" "2.1.5" fastq "^1.6.0" +"@pkgr/core@^0.1.0": + version "0.1.0" + resolved "https://registry.yarnpkg.com/@pkgr/core/-/core-0.1.0.tgz#7d8dacb7fdef0e4387caf7396cbd77f179867d06" + integrity sha512-Zwq5OCzuwJC2jwqmpEQt7Ds1DTi6BWSwoGkbb1n9pO3hzb35BoJELx7c0T23iDkBGkh2e7tvOtjF3tr3OaQHDQ== + "@sinclair/typebox@^0.27.8": version "0.27.8" resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.27.8.tgz#6667fac16c436b5434a387a34dedb013198f6e6e" @@ -1421,15 +1435,15 @@ dependencies: "@types/istanbul-lib-report" "*" -"@types/jest@^26.0.22": - version "26.0.24" - resolved "https://registry.yarnpkg.com/@types/jest/-/jest-26.0.24.tgz#943d11976b16739185913a1936e0de0c4a7d595a" - integrity sha512-E/X5Vib8BWqZNRlDxj9vYXhsDwPYbPINqKF9BsnSoon4RQ0D9moEuLD8txgyypFLH7J4+Lho9Nr/c8H0Fi+17w== +"@types/jest@^29.5.11": + version "29.5.11" + resolved "https://registry.yarnpkg.com/@types/jest/-/jest-29.5.11.tgz#0c13aa0da7d0929f078ab080ae5d4ced80fa2f2c" + integrity sha512-S2mHmYIVe13vrm6q4kN6fLYYAka15ALQki/vgDC3mIukEOx8WJlv0kQPM+d4w8Gp6u0uSdKND04IlTXBv0rwnQ== dependencies: - jest-diff "^26.0.0" - pretty-format "^26.0.0" + expect "^29.0.0" + pretty-format "^29.0.0" -"@types/json-schema@^7.0.5", "@types/json-schema@^7.0.7", "@types/json-schema@^7.0.9": +"@types/json-schema@^7.0.5", "@types/json-schema@^7.0.9": version "7.0.15" resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.15.tgz#596a1747233694d50f6ad8a7869fcb6f56cf5841" integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA== @@ -1458,30 +1472,32 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-10.12.18.tgz#1d3ca764718915584fcd9f6344621b7672665c67" integrity sha512-fh+pAqt4xRzPfqA6eh3Z2y6fyZavRIumvjhaCL753+TVkGKGhpPeyrJG2JftD0T9q4GF00KjefsQ+PQNDdWQaQ== -"@types/node@11.11.6": - version "11.11.6" - 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.60" - resolved "https://registry.yarnpkg.com/@types/node/-/node-10.17.60.tgz#35f3d6213daed95da7f0f73e75bcc6980e90597b" - integrity sha512-F0KIgDJfy2nA3zMLmWGKxcH2ZVEtCZXHHdOQs2gSaQ27+lNeEfGxzkIw90aXswATX7AZ33tahPbzy6KAfUreVw== +"@types/node@^20.10.6": + version "20.10.6" + resolved "https://registry.yarnpkg.com/@types/node/-/node-20.10.6.tgz#a3ec84c22965802bf763da55b2394424f22bfbb5" + integrity sha512-Vac8H+NlRNNlAmDfGUP7b5h/KA+AtWIzuXy0E6OyP8f1tCLYAtPvKRRDJjAPqhpCb0t6U2j7/xqAuLEebW2kiw== + dependencies: + undici-types "~5.26.4" "@types/normalize-package-data@^2.4.0": version "2.4.4" resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.4.tgz#56e2cc26c397c038fab0e3a917a12d5c5909e901" integrity sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA== +"@types/semver@^7.3.12": + version "7.5.6" + resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.5.6.tgz#c65b2bfce1bec346582c07724e3f8c1017a20339" + integrity sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A== + "@types/stack-utils@^2.0.0": version "2.0.3" resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-2.0.3.tgz#6209321eb2c1712a7e7466422b8cb1fc0d9dd5d8" integrity sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw== -"@types/ws@^7.4.5": - version "7.4.7" - resolved "https://registry.yarnpkg.com/@types/ws/-/ws-7.4.7.tgz#f7c390a36f7a0679aa69de2d501319f4f8d9b702" - integrity sha512-JQbbmxZTZehdc2iszGKs5oC3NFnjeay7mtAWrdt7qNtAVK0g19muApzAy4bm9byz79xa2ZnO/BOBC2R8RC5Lww== +"@types/ws@^8.5.10": + version "8.5.10" + resolved "https://registry.yarnpkg.com/@types/ws/-/ws-8.5.10.tgz#4acfb517970853fa6574a3a6886791d04a396787" + integrity sha512-vmQSUcfalpIq0R9q7uTo2lXs6eGIpt9wtnLdMv9LVpIjCA/+ufZRozlVoVelIYixx1ugCBKDhn89vnsEGOCx9A== dependencies: "@types/node" "*" @@ -1490,13 +1506,6 @@ resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-21.0.3.tgz#815e30b786d2e8f0dcd85fd5bcf5e1a04d008f15" integrity sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ== -"@types/yargs@^15.0.0": - version "15.0.18" - resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-15.0.18.tgz#b7dda4339f4dde367ffe99650e18967108cea321" - integrity sha512-DDi2KmvAnNsT/EvU8jp1UR7pOJojBtJ3GLZ/uw1MUq4VbbESppPWoHUY4h0OB4BbEbGJiyEsmUcuZDZtoR+ZwQ== - dependencies: - "@types/yargs-parser" "*" - "@types/yargs@^17.0.8": version "17.0.31" resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-17.0.31.tgz#8fd0089803fd55d8a285895a18b88cb71a99683c" @@ -1504,86 +1513,105 @@ dependencies: "@types/yargs-parser" "*" -"@typescript-eslint/eslint-plugin@^4.2.0": - version "4.33.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.33.0.tgz#c24dc7c8069c7706bc40d99f6fa87edcb2005276" - integrity sha512-aINiAxGVdOl1eJyVjaWn/YcVAq4Gi/Yo35qHGCnqbWVz61g39D0h23veY/MA0rFFGfxK7TySg2uwDeNv+JgVpg== +"@typescript-eslint/eslint-plugin@5.62.0": + version "5.62.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.62.0.tgz#aeef0328d172b9e37d9bab6dbc13b87ed88977db" + integrity sha512-TiZzBSJja/LbhNPvk6yc0JrX9XqhQ0hdh6M2svYfsHGejaKFIAGd9MQ+ERIMzLGlN/kZoYIgdxFV0PuljTKXag== + dependencies: + "@eslint-community/regexpp" "^4.4.0" + "@typescript-eslint/scope-manager" "5.62.0" + "@typescript-eslint/type-utils" "5.62.0" + "@typescript-eslint/utils" "5.62.0" + debug "^4.3.4" + graphemer "^1.4.0" + ignore "^5.2.0" + natural-compare-lite "^1.4.0" + semver "^7.3.7" + tsutils "^3.21.0" + +"@typescript-eslint/parser@5.62.0": + version "5.62.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.62.0.tgz#1b63d082d849a2fcae8a569248fbe2ee1b8a56c7" + integrity sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA== dependencies: - "@typescript-eslint/experimental-utils" "4.33.0" - "@typescript-eslint/scope-manager" "4.33.0" - debug "^4.3.1" - functional-red-black-tree "^1.0.1" - ignore "^5.1.8" - regexpp "^3.1.0" - semver "^7.3.5" + "@typescript-eslint/scope-manager" "5.62.0" + "@typescript-eslint/types" "5.62.0" + "@typescript-eslint/typescript-estree" "5.62.0" + debug "^4.3.4" + +"@typescript-eslint/scope-manager@5.62.0": + version "5.62.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.62.0.tgz#d9457ccc6a0b8d6b37d0eb252a23022478c5460c" + integrity sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w== + dependencies: + "@typescript-eslint/types" "5.62.0" + "@typescript-eslint/visitor-keys" "5.62.0" + +"@typescript-eslint/type-utils@5.62.0": + version "5.62.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.62.0.tgz#286f0389c41681376cdad96b309cedd17d70346a" + integrity sha512-xsSQreu+VnfbqQpW5vnCJdq1Z3Q0U31qiWmRhr98ONQmcp/yhiPJFPq8MXiJVLiksmOKSjIldZzkebzHuCGzew== + dependencies: + "@typescript-eslint/typescript-estree" "5.62.0" + "@typescript-eslint/utils" "5.62.0" + debug "^4.3.4" + tsutils "^3.21.0" + +"@typescript-eslint/types@5.62.0": + version "5.62.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.62.0.tgz#258607e60effa309f067608931c3df6fed41fd2f" + integrity sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ== + +"@typescript-eslint/typescript-estree@5.62.0": + version "5.62.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.62.0.tgz#7d17794b77fabcac615d6a48fb143330d962eb9b" + integrity sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA== + dependencies: + "@typescript-eslint/types" "5.62.0" + "@typescript-eslint/visitor-keys" "5.62.0" + debug "^4.3.4" + globby "^11.1.0" + is-glob "^4.0.3" + semver "^7.3.7" tsutils "^3.21.0" -"@typescript-eslint/experimental-utils@4.33.0": - version "4.33.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-4.33.0.tgz#6f2a786a4209fa2222989e9380b5331b2810f7fd" - integrity sha512-zeQjOoES5JFjTnAhI5QY7ZviczMzDptls15GFsI6jyUOq0kOf9+WonkhtlIhh0RgHRnqj5gdNxW5j1EvAyYg6Q== +"@typescript-eslint/utils@5.62.0": + version "5.62.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.62.0.tgz#141e809c71636e4a75daa39faed2fb5f4b10df86" + integrity sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ== dependencies: - "@types/json-schema" "^7.0.7" - "@typescript-eslint/scope-manager" "4.33.0" - "@typescript-eslint/types" "4.33.0" - "@typescript-eslint/typescript-estree" "4.33.0" + "@eslint-community/eslint-utils" "^4.2.0" + "@types/json-schema" "^7.0.9" + "@types/semver" "^7.3.12" + "@typescript-eslint/scope-manager" "5.62.0" + "@typescript-eslint/types" "5.62.0" + "@typescript-eslint/typescript-estree" "5.62.0" eslint-scope "^5.1.1" - eslint-utils "^3.0.0" - -"@typescript-eslint/parser@^4.2.0": - version "4.33.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-4.33.0.tgz#dfe797570d9694e560528d18eecad86c8c744899" - integrity sha512-ZohdsbXadjGBSK0/r+d87X0SBmKzOq4/S5nzK6SBgJspFo9/CUDJ7hjayuze+JK7CZQLDMroqytp7pOcFKTxZA== - dependencies: - "@typescript-eslint/scope-manager" "4.33.0" - "@typescript-eslint/types" "4.33.0" - "@typescript-eslint/typescript-estree" "4.33.0" - debug "^4.3.1" - -"@typescript-eslint/scope-manager@4.33.0": - version "4.33.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-4.33.0.tgz#d38e49280d983e8772e29121cf8c6e9221f280a3" - integrity sha512-5IfJHpgTsTZuONKbODctL4kKuQje/bzBRkwHE8UOZ4f89Zeddg+EGZs8PD8NcN4LdM3ygHWYB3ukPAYjvl/qbQ== - dependencies: - "@typescript-eslint/types" "4.33.0" - "@typescript-eslint/visitor-keys" "4.33.0" - -"@typescript-eslint/types@4.33.0": - version "4.33.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.33.0.tgz#a1e59036a3b53ae8430ceebf2a919dc7f9af6d72" - integrity sha512-zKp7CjQzLQImXEpLt2BUw1tvOMPfNoTAfb8l51evhYbOEEzdWyQNmHWWGPR6hwKJDAi+1VXSBmnhL9kyVTTOuQ== - -"@typescript-eslint/typescript-estree@4.33.0": - version "4.33.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-4.33.0.tgz#0dfb51c2908f68c5c08d82aefeaf166a17c24609" - integrity sha512-rkWRY1MPFzjwnEVHsxGemDzqqddw2QbTJlICPD9p9I9LfsO8fdmfQPOX3uKfUaGRDFJbfrtm/sXhVXN4E+bzCA== - dependencies: - "@typescript-eslint/types" "4.33.0" - "@typescript-eslint/visitor-keys" "4.33.0" - debug "^4.3.1" - globby "^11.0.3" - is-glob "^4.0.1" - semver "^7.3.5" - tsutils "^3.21.0" + semver "^7.3.7" -"@typescript-eslint/visitor-keys@4.33.0": - version "4.33.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-4.33.0.tgz#2a22f77a41604289b7a186586e9ec48ca92ef1dd" - integrity sha512-uqi/2aSz9g2ftcHWf8uLPJA70rUv6yuMW5Bohw+bwcuzaxQIHaKFZCKGoGXIrc9vkTJ3+0txM73K0Hq3d5wgIg== +"@typescript-eslint/visitor-keys@5.62.0": + version "5.62.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.62.0.tgz#2174011917ce582875954ffe2f6912d5931e353e" + integrity sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw== dependencies: - "@typescript-eslint/types" "4.33.0" - eslint-visitor-keys "^2.0.0" + "@typescript-eslint/types" "5.62.0" + eslint-visitor-keys "^3.3.0" -acorn-jsx@^5.2.0, acorn-jsx@^5.3.1: +acorn-jsx@^5.2.0, acorn-jsx@^5.3.2: version "5.3.2" resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937" integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== -acorn@^7.1.1, acorn@^7.4.0: +acorn@^7.1.1: version "7.4.1" resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa" integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== +acorn@^8.9.0: + version "8.11.3" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.11.3.tgz#71e0b14e13a4ec160724b38fb7b0f233b1b81d7a" + integrity sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg== + ajv-formats@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/ajv-formats/-/ajv-formats-2.1.1.tgz#6e669400659eb74973bbf2e33327180a0996b520" @@ -1613,7 +1641,7 @@ ajv@^6.10.0, ajv@^6.10.2, ajv@^6.12.4: json-schema-traverse "^0.4.1" uri-js "^4.2.2" -ajv@^8.0.0, ajv@^8.0.1, ajv@^8.9.0: +ajv@^8.0.0, ajv@^8.9.0: version "8.12.0" resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.12.0.tgz#d1a0527323e22f53562c567c00991577dfbe19d1" integrity sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA== @@ -1623,11 +1651,6 @@ ajv@^8.0.0, ajv@^8.0.1, ajv@^8.9.0: require-from-string "^2.0.2" uri-js "^4.2.2" -ansi-colors@^4.1.1: - version "4.1.3" - resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.3.tgz#37611340eb2243e70cc604cad35d63270d48781b" - integrity sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw== - ansi-escapes@^4.2.1: version "4.3.2" resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.2.tgz#6b2291d1db7d98b6521d5f1efa42d0f3a9feb65e" @@ -1640,7 +1663,7 @@ ansi-regex@^4.1.0: resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.1.tgz#164daac87ab2d6f6db3a29875e2d1766582dabed" integrity sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g== -ansi-regex@^5.0.0, ansi-regex@^5.0.1: +ansi-regex@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== @@ -1684,6 +1707,11 @@ argparse@^1.0.7: dependencies: sprintf-js "~1.0.2" +argparse@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38" + integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== + array-union@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d" @@ -1709,11 +1737,6 @@ 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== - asynckit@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" @@ -1872,15 +1895,12 @@ bip32@^2.0.4: typeforce "^1.11.5" wif "^2.0.6" -bip39@3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/bip39/-/bip39-3.0.2.tgz#2baf42ff3071fc9ddd5103de92e8f80d9257ee32" - integrity sha512-J4E1r2N0tUylTKt07ibXvhpT2c5pyAFgvuA5q1H9uDy6dEGpjV8jmymh3MTYJDLCNbIVClSB9FbND49I6N24MQ== +bip39@3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/bip39/-/bip39-3.1.0.tgz#c55a418deaf48826a6ceb34ac55b3ee1577e18a3" + integrity sha512-c9kiwdk45Do5GL0vJMe7tS95VjCii65mYAH7DfWl3uW8AVzXKQVUm64i3hzVybBDMp9r7j9iNxR85+ul8MdN/A== dependencies: - "@types/node" "11.11.6" - create-hash "^1.1.0" - pbkdf2 "^3.0.9" - randombytes "^2.0.1" + "@noble/hashes" "^1.2.0" bip66@^1.1.5: version "1.1.5" @@ -2066,7 +2086,7 @@ chalk@^2.1.0, chalk@^2.3.0, chalk@^2.4.2: escape-string-regexp "^1.0.5" supports-color "^5.3.0" -chalk@^4.0.0, chalk@^4.1.0: +chalk@^4.0.0, chalk@^4.1.0, chalk@^4.1.2: version "4.1.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== @@ -2317,7 +2337,7 @@ crypto-js@^4.0.0: resolved "https://registry.yarnpkg.com/crypto-js/-/crypto-js-4.2.0.tgz#4d931639ecdfd12ff80e8186dba6af2c2e856631" integrity sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q== -debug@^4.0.1, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1: +debug@^4.0.1, debug@^4.1.0, debug@^4.1.1, debug@^4.3.2, debug@^4.3.4: version "4.3.4" resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== @@ -2375,11 +2395,6 @@ detect-newline@^3.0.0: resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-3.1.0.tgz#576f5dfc63ae1a192ff192d8ad3af6308991b651" integrity sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA== -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-sequences@^29.6.3: version "29.6.3" resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-29.6.3.tgz#4deaf894d11407c51efc8418012f9e70b84ea921" @@ -2485,14 +2500,6 @@ enhanced-resolve@^5.0.0: graceful-fs "^4.2.4" tapable "^2.2.0" -enquirer@^2.3.5: - version "2.4.1" - resolved "https://registry.yarnpkg.com/enquirer/-/enquirer-2.4.1.tgz#93334b3fbd74fc7097b224ab4a8fb7e40bf4ae56" - integrity sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ== - dependencies: - ansi-colors "^4.1.1" - strip-ansi "^6.0.1" - error-ex@^1.3.1: version "1.3.2" resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" @@ -2525,10 +2532,10 @@ escape-string-regexp@^4.0.0: resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== -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-config-prettier@9.0.0: + version "9.0.0" + resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-9.0.0.tgz#eb25485946dd0c66cd216a46232dc05451518d1f" + integrity sha512-IcJsTkJae2S35pRsRAwoCE+925rJJStOdkKnLVgtE+tEpqU0EVVM7OqrwxqgptKdX29NUwC82I5pXsGFIgSevw== eslint-loader@^4.0.0: version "4.0.2" @@ -2549,7 +2556,7 @@ eslint-plugin-es@^3.0.0: eslint-utils "^2.0.0" regexpp "^3.0.0" -eslint-plugin-node@^11.1.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== @@ -2561,12 +2568,13 @@ eslint-plugin-node@^11.1.0: resolve "^1.10.1" semver "^6.1.0" -eslint-plugin-prettier@^3.1.4: - version "3.4.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-3.4.1.tgz#e9ddb200efb6f3d05ffe83b1665a716af4a387e5" - integrity sha512-htg25EUYUeIhKHXjOinK4BgCcDwtLHjqaxCDsMy5nbnUMkKFvIhMVCp+5GFUXQ4Nr8lBsPqtGAqBenbpFqAA2g== +eslint-plugin-prettier@5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-5.0.0.tgz#6887780ed95f7708340ec79acfdf60c35b9be57a" + integrity sha512-AgaZCVuYDXHUGxj/ZGu1u8H8CYgDY3iG6w5kUFw4AzMVXzB7VvbKgYR4nATIN+OvUrghMbiDLeimVjVY5ilq3w== dependencies: prettier-linter-helpers "^1.0.0" + synckit "^0.8.5" eslint-scope@^5.0.0, eslint-scope@^5.1.1: version "5.1.1" @@ -2576,6 +2584,14 @@ eslint-scope@^5.0.0, eslint-scope@^5.1.1: esrecurse "^4.3.0" estraverse "^4.1.1" +eslint-scope@^7.2.2: + version "7.2.2" + resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-7.2.2.tgz#deb4f92563390f32006894af62a22dba1c46423f" + integrity sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg== + dependencies: + esrecurse "^4.3.0" + estraverse "^5.2.0" + eslint-utils@^1.4.3: version "1.4.3" resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-1.4.3.tgz#74fec7c54d0776b6f67e0251040b5806564e981f" @@ -2583,29 +2599,65 @@ eslint-utils@^1.4.3: dependencies: eslint-visitor-keys "^1.1.0" -eslint-utils@^2.0.0, eslint-utils@^2.1.0: +eslint-utils@^2.0.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: +eslint-visitor-keys@^1.1.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-visitor-keys@^3.3.0, eslint-visitor-keys@^3.4.1, eslint-visitor-keys@^3.4.3: + version "3.4.3" + resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz#0cd72fe8550e3c2eae156a96a4dddcd1c8ac5800" + integrity sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag== + +eslint@8.50.0: + version "8.50.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.50.0.tgz#2ae6015fee0240fcd3f83e1e25df0287f487d6b2" + integrity sha512-FOnOGSuFuFLv/Sa+FDVRZl4GGVAAFFi8LecRsI5a1tMO5HIE8nCm4ivAlzt4dT3ol/PaaGC0rJEEXQmHJBGoOg== + dependencies: + "@eslint-community/eslint-utils" "^4.2.0" + "@eslint-community/regexpp" "^4.6.1" + "@eslint/eslintrc" "^2.1.2" + "@eslint/js" "8.50.0" + "@humanwhocodes/config-array" "^0.11.11" + "@humanwhocodes/module-importer" "^1.0.1" + "@nodelib/fs.walk" "^1.2.8" + ajv "^6.12.4" + chalk "^4.0.0" + cross-spawn "^7.0.2" + debug "^4.3.2" + doctrine "^3.0.0" + escape-string-regexp "^4.0.0" + eslint-scope "^7.2.2" + eslint-visitor-keys "^3.4.3" + espree "^9.6.1" + esquery "^1.4.2" + esutils "^2.0.2" + fast-deep-equal "^3.1.3" + file-entry-cache "^6.0.1" + find-up "^5.0.0" + glob-parent "^6.0.2" + globals "^13.19.0" + graphemer "^1.4.0" + ignore "^5.2.0" + imurmurhash "^0.1.4" + is-glob "^4.0.0" + is-path-inside "^3.0.3" + js-yaml "^4.1.0" + json-stable-stringify-without-jsonify "^1.0.1" + levn "^0.4.1" + lodash.merge "^4.6.2" + minimatch "^3.1.2" + natural-compare "^1.4.0" + optionator "^0.9.3" + strip-ansi "^6.0.1" + text-table "^0.2.0" eslint@^6.8.0: version "6.8.0" @@ -2650,52 +2702,6 @@ eslint@^6.8.0: text-table "^0.2.0" v8-compile-cache "^2.0.3" -eslint@^7.10.0: - version "7.32.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.32.0.tgz#c6d328a14be3fb08c8d1d21e12c02fdb7a2a812d" - integrity sha512-VHZ8gX+EDfz+97jGcgyGCyRia/dPOd6Xh9yPv8Bl1+SoaIwD+a/vlrOmGRUyOYu7MwUhc7CxqeaDZU13S4+EpA== - dependencies: - "@babel/code-frame" "7.12.11" - "@eslint/eslintrc" "^0.4.3" - "@humanwhocodes/config-array" "^0.5.0" - 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" @@ -2705,21 +2711,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== +espree@^9.6.0, espree@^9.6.1: + version "9.6.1" + resolved "https://registry.yarnpkg.com/espree/-/espree-9.6.1.tgz#a2a17b8e434690a5432f2f8018ce71d331a48c6f" + integrity sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ== dependencies: - acorn "^7.4.0" - acorn-jsx "^5.3.1" - eslint-visitor-keys "^1.3.0" + acorn "^8.9.0" + acorn-jsx "^5.3.2" + eslint-visitor-keys "^3.4.1" esprima@^4.0.0: 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.4.0: +esquery@^1.0.1, esquery@^1.4.2: version "1.5.0" resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.5.0.tgz#6ce17738de8577694edd7361c57182ac8cb0db0b" integrity sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg== @@ -2781,7 +2787,7 @@ exit@^0.1.2: resolved "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c" integrity sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ== -expect@^29.7.0: +expect@^29.0.0, expect@^29.7.0: version "29.7.0" resolved "https://registry.yarnpkg.com/expect/-/expect-29.7.0.tgz#578874590dcb3214514084c08115d8aee61e11bc" integrity sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw== @@ -2904,6 +2910,14 @@ find-up@^4.0.0, find-up@^4.1.0: locate-path "^5.0.0" path-exists "^4.0.0" +find-up@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc" + integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== + dependencies: + locate-path "^6.0.0" + path-exists "^4.0.0" + find-up@^6.3.0: version "6.3.0" resolved "https://registry.yarnpkg.com/find-up/-/find-up-6.3.0.tgz#2abab3d3280b2dc7ac10199ef324c4e002c8c790" @@ -3020,6 +3034,13 @@ glob-parent@^5.0.0, glob-parent@^5.1.2, glob-parent@~5.1.2: dependencies: is-glob "^4.0.1" +glob-parent@^6.0.2: + version "6.0.2" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-6.0.2.tgz#6d237d99083950c79290f24c7642a3de9a28f9e3" + integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A== + dependencies: + is-glob "^4.0.3" + glob@^7.1.1, glob@^7.1.3, glob@^7.1.4, glob@^7.2.0: version "7.2.3" resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b" @@ -3044,14 +3065,14 @@ globals@^12.1.0: dependencies: type-fest "^0.8.1" -globals@^13.6.0, globals@^13.9.0: - version "13.23.0" - resolved "https://registry.yarnpkg.com/globals/-/globals-13.23.0.tgz#ef31673c926a0976e1f61dab4dca57e0c0a8af02" - integrity sha512-XAmF0RjlrjY23MA51q3HltdlGxUpXPvg0GioKiD9X6HD28iMjo2dKC8Vqwm7lne4GNr78+RHTfliktR6ZH09wA== +globals@^13.19.0: + version "13.24.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-13.24.0.tgz#8432a19d78ce0c1e833949c36adb345400bb1171" + integrity sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ== dependencies: type-fest "^0.20.2" -globby@^11.0.3: +globby@^11.1.0: version "11.1.0" resolved "https://registry.yarnpkg.com/globby/-/globby-11.1.0.tgz#bd4be98bb042f83d796f7e3811991fbe82a0d34b" integrity sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g== @@ -3073,31 +3094,36 @@ graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.4, graceful-fs@^4.2.9: resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== +graphemer@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/graphemer/-/graphemer-1.4.0.tgz#fb2f1d55e0e3a1849aeffc90c4fa0dd53a0e66c6" + integrity sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag== + grpc-web@^1.2.1: version "1.5.0" resolved "https://registry.yarnpkg.com/grpc-web/-/grpc-web-1.5.0.tgz#154e4007ab59a94bf7726b87ef6c5bd8815ecf6e" integrity sha512-y1tS3BBIoiVSzKTDF3Hm7E8hV2n7YY7pO0Uo7depfWJqKzWE+SKr0jvHNIJsJJYILQlpYShpi/DRJJMbosgDMQ== -gts@3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/gts/-/gts-3.1.1.tgz#c7347cf8f8ea32577909659b22bf698ac5ca8082" - integrity sha512-Jw44aBbzMnd1vtZs7tZt3LMstKQukCBg7N4CKVGzviIQ45Cz5b9lxDJGXVKj/9ySuGv6TYEeijZJGbiiVcM27w== - dependencies: - "@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" +gts@5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/gts/-/gts-5.2.0.tgz#207b614de21bdd7685e9e00462c86a0c26e44839" + integrity sha512-25qOnePUUX7upFc4ycqWersDBq+o1X6hXUTW56JOWCxPYKJXQ1RWzqT9q+2SU3LfPKJf+4sz4Dw3VT0p96Kv6g== + dependencies: + "@typescript-eslint/eslint-plugin" "5.62.0" + "@typescript-eslint/parser" "5.62.0" + chalk "^4.1.2" + eslint "8.50.0" + eslint-config-prettier "9.0.0" + eslint-plugin-node "11.1.0" + eslint-plugin-prettier "5.0.0" execa "^5.0.0" inquirer "^7.3.3" json5 "^2.1.3" meow "^9.0.0" ncp "^2.0.0" - prettier "^2.1.2" - rimraf "^3.0.2" - write-file-atomic "^3.0.3" + prettier "3.0.3" + rimraf "3.0.2" + write-file-atomic "^4.0.0" hard-rejection@^2.1.0: version "2.1.0" @@ -3181,7 +3207,7 @@ ignore@^4.0.6: resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc" integrity sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg== -ignore@^5.1.1, ignore@^5.1.8, ignore@^5.2.0: +ignore@^5.1.1, ignore@^5.2.0: version "5.2.4" resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.2.4.tgz#a291c0c6178ff1b960befe47fcdec301674a6324" integrity sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ== @@ -3283,7 +3309,7 @@ is-generator-fn@^2.0.0: resolved "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-2.1.0.tgz#7d140adc389aaf3011a8f2a2a4cfa6faadffb118" integrity sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ== -is-glob@^4.0.0, is-glob@^4.0.1, is-glob@~4.0.1: +is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3, is-glob@~4.0.1: version "4.0.3" resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084" integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== @@ -3295,6 +3321,11 @@ is-number@^7.0.0: resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== +is-path-inside@^3.0.3: + 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" resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e" @@ -3305,11 +3336,6 @@ is-stream@^2.0.0: resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.1.tgz#fac1e3d53b97ad5a9d0ae9cef2389f5810a5c077" integrity sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg== -is-typedarray@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" - integrity sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA== - is_js@^0.9.0: version "0.9.0" resolved "https://registry.yarnpkg.com/is_js/-/is_js-0.9.0.tgz#0ab94540502ba7afa24c856aa985561669e9c52d" @@ -3463,16 +3489,6 @@ jest-config@^29.7.0: slash "^3.0.0" strip-json-comments "^3.1.1" -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-diff@^29.7.0: version "29.7.0" resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-29.7.0.tgz#017934a66ebb7ecf6f205e84699be10afd70458a" @@ -3513,11 +3529,6 @@ jest-environment-node@^29.7.0: jest-mock "^29.7.0" jest-util "^29.7.0" -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-get-type@^29.6.3: version "29.6.3" resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-29.6.3.tgz#36f499fdcea197c1045a127319c0481723908fd1" @@ -3769,6 +3780,13 @@ js-yaml@^3.13.1: argparse "^1.0.7" esprima "^4.0.0" +js-yaml@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602" + integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA== + dependencies: + argparse "^2.0.1" + jsbn@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-1.1.0.tgz#b01307cb29b618a1ed26ec79e911f803c4da0040" @@ -3890,6 +3908,13 @@ locate-path@^5.0.0: dependencies: p-locate "^4.1.0" +locate-path@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286" + integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw== + dependencies: + p-locate "^5.0.0" + locate-path@^7.1.0: version "7.2.0" resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-7.2.0.tgz#69cb1779bd90b35ab1e771e1f2f89a202c2a8a8a" @@ -3907,11 +3932,6 @@ lodash.merge@^4.6.2: resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== -lodash.truncate@^4.4.2: - version "4.4.2" - resolved "https://registry.yarnpkg.com/lodash.truncate/-/lodash.truncate-4.4.2.tgz#5a350da0b1113b837ecfffd5812cbe58d6eae193" - integrity sha512-jttmRe7bRse52OsWIMDLaXxWqRAmtIUccAQ3garviCqJjafXOfNMO0yMfNpdD6zbGaTU0P5Nz7e7gAT6cKmJRw== - lodash@^4.17.14, lodash@^4.17.19: version "4.17.21" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" @@ -4080,7 +4100,7 @@ minimalistic-crypto-utils@^1.0.1: resolved "https://registry.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a" integrity sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg== -minimatch@^3.0.4, minimatch@^3.1.1: +minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2: version "3.1.2" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== @@ -4130,6 +4150,11 @@ nan@^2.13.2, nan@^2.14.0: resolved "https://registry.yarnpkg.com/nan/-/nan-2.18.0.tgz#26a6faae7ffbeb293a39660e88a76b82e30b7554" integrity sha512-W7tfG7vMOGtD30sHoZSSc/JVYiyDPEyQVso/Zz+/uQd0B0L46gtC+pHha5FFMRpil6fm/AoEcRWyOVi4+E/f8w== +natural-compare-lite@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz#17b09581988979fddafe0201e931ba933c96cbb4" + integrity sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g== + natural-compare@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" @@ -4229,7 +4254,7 @@ optionator@^0.8.3: type-check "~0.3.2" word-wrap "~1.2.3" -optionator@^0.9.1: +optionator@^0.9.3: version "0.9.3" resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.9.3.tgz#007397d44ed1872fdc6ed31360190f81814e2c64" integrity sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg== @@ -4253,7 +4278,7 @@ p-limit@^2.2.0: dependencies: p-try "^2.0.0" -p-limit@^3.1.0: +p-limit@^3.0.2, p-limit@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== @@ -4274,6 +4299,13 @@ p-locate@^4.1.0: dependencies: p-limit "^2.2.0" +p-locate@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834" + integrity sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw== + dependencies: + p-limit "^3.0.2" + p-locate@^6.0.0: version "6.0.0" resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-6.0.0.tgz#3da9a49d4934b901089dca3302fa65dc5a05c04f" @@ -4349,7 +4381,7 @@ path-type@^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: +pbkdf2@^3.0.3: version "3.1.2" resolved "https://registry.yarnpkg.com/pbkdf2/-/pbkdf2-3.1.2.tgz#dd822aa0887580e52f1a039dc3eda108efae3075" integrity sha512-iuh7L6jA7JEGu2WxDwtQP1ddOpaJNC4KlDEFfdQajSGgGPNi4OyDc2R7QnbY2bR9QjBVGwgvTdNJZoE7RaxUMA== @@ -4411,22 +4443,12 @@ prettier-linter-helpers@^1.0.0: dependencies: fast-diff "^1.1.2" -prettier@^2.1.2: - version "2.8.8" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da" - integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q== - -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" +prettier@3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.0.3.tgz#432a51f7ba422d1469096c0fdc28e235db8f9643" + integrity sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg== -pretty-format@^29.7.0: +pretty-format@^29.0.0, pretty-format@^29.7.0: version "29.7.0" resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-29.7.0.tgz#ca42c758310f365bfa71a0bda0a807160b776812" integrity sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ== @@ -4517,11 +4539,6 @@ randomfill@^1.0.3: randombytes "^2.0.5" safe-buffer "^5.1.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== - react-is@^18.0.0: version "18.2.0" resolved "https://registry.yarnpkg.com/react-is/-/react-is-18.2.0.tgz#199431eeaaa2e09f86427efbb4f1473edb47609b" @@ -4599,7 +4616,7 @@ 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: +regexpp@^3.0.0: version "3.2.0" resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-3.2.0.tgz#0425a2768d8f23bad70ca4b90461fa2f1213e1b2" integrity sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg== @@ -4684,7 +4701,7 @@ rimraf@2.6.3: dependencies: glob "^7.1.3" -rimraf@^3.0.2: +rimraf@3.0.2, 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== @@ -4781,7 +4798,7 @@ semver@^6.0.0, semver@^6.1.0, semver@^6.1.2, semver@^6.3.0, semver@^6.3.1: resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== -semver@^7.2.1, semver@^7.3.4, semver@^7.3.5, semver@^7.5.3, semver@^7.5.4: +semver@^7.3.4, semver@^7.3.7, semver@^7.5.3, semver@^7.5.4: version "7.5.4" resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.4.tgz#483986ec4ed38e1c6c48c34894a9182dbff68a6e" integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA== @@ -4867,15 +4884,6 @@ slice-ansi@^2.1.0: astral-regex "^1.0.0" is-fullwidth-code-point "^2.0.0" -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-bj@0.2.2: version "0.2.2" resolved "https://registry.yarnpkg.com/sm-crypto-bj/-/sm-crypto-bj-0.2.2.tgz#477bf9a661e8a7b67ebeac0f6dd0dd89b17c252d" @@ -5016,7 +5024,7 @@ strip-indent@^3.0.0: dependencies: min-indent "^1.0.0" -strip-json-comments@^3.0.1, strip-json-comments@^3.1.0, strip-json-comments@^3.1.1: +strip-json-comments@^3.0.1, 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== @@ -5047,6 +5055,14 @@ supports-preserve-symlinks-flag@^1.0.0: resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09" integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== +synckit@^0.8.5: + version "0.8.8" + resolved "https://registry.yarnpkg.com/synckit/-/synckit-0.8.8.tgz#fe7fe446518e3d3d49f5e429f443cf08b6edfcd7" + integrity sha512-HwOKAP7Wc5aRGYdKH+dw0PRRpbO841v2DENBtjnR5HFWoiNByAl7vrx3p0G/rCyYXQsrxqtX48TImFtPcIHSpQ== + dependencies: + "@pkgr/core" "^0.1.0" + tslib "^2.6.2" + table@^5.2.3: version "5.4.6" resolved "https://registry.yarnpkg.com/table/-/table-5.4.6.tgz#1292d19500ce3f86053b05f0e8e7e4a3bb21079e" @@ -5057,17 +5073,6 @@ table@^5.2.3: slice-ansi "^2.1.0" string-width "^3.0.0" -table@^6.0.9: - version "6.8.1" - resolved "https://registry.yarnpkg.com/table/-/table-6.8.1.tgz#ea2b71359fe03b017a5fbc296204471158080bdf" - integrity sha512-Y4X9zqrCftUhMeH2EptSSERdVKt/nEdijTOacGD/97EKjhQ/Qs8RTlEGABSJNNN8lac9kheH+af7yAkEWlgneA== - dependencies: - ajv "^8.0.1" - lodash.truncate "^4.4.2" - slice-ansi "^4.0.0" - string-width "^4.2.3" - strip-ansi "^6.0.1" - tapable@^2.2.0: version "2.2.1" resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.2.1.tgz#1967a73ef4060a82f12ab96af86d52fdb76eeca0" @@ -5160,6 +5165,11 @@ tslib@^1.13.0, tslib@^1.8.1, tslib@^1.9.0: resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== +tslib@^2.6.2: + version "2.6.2" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae" + integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q== + tslint@^6.1.0: version "6.1.3" resolved "https://registry.yarnpkg.com/tslint/-/tslint-6.1.3.tgz#5c23b2eccc32487d5523bd3a470e9aa31789d904" @@ -5247,13 +5257,6 @@ typed-function@^4.1.0: resolved "https://registry.yarnpkg.com/typed-function/-/typed-function-4.1.1.tgz#38ce3cae31f4f513bcb263563fdad27b2afa73e8" integrity sha512-Pq1DVubcvibmm8bYcMowjVnnMwPVMeh0DIdA8ad8NZY2sJgapANJmiigSUwlt+EgXxpfIv8MWrQXTIzkfYZLYQ== -typedarray-to-buffer@^3.1.5: - version "3.1.5" - resolved "https://registry.yarnpkg.com/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz#a97ee7a9ff42691b9f783ff1bc5112fe3fca9080" - integrity sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q== - dependencies: - is-typedarray "^1.0.0" - typedoc@^0.25.3: version "0.25.3" resolved "https://registry.yarnpkg.com/typedoc/-/typedoc-0.25.3.tgz#53c6d668e1001b3d488e9a750fcdfb05433554c0" @@ -5411,17 +5414,7 @@ wrappy@1: resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== -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== - dependencies: - imurmurhash "^0.1.4" - is-typedarray "^1.0.0" - signal-exit "^3.0.2" - typedarray-to-buffer "^3.1.5" - -write-file-atomic@^4.0.2: +write-file-atomic@^4.0.0, write-file-atomic@^4.0.2: version "4.0.2" resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-4.0.2.tgz#a9df01ae5b77858a027fd2e80768ee433555fcfd" integrity sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==