UNPKG

@firmachain/firma-js

Version:

The Official FirmaChain Javascript SDK written in Typescript

40 lines (39 loc) 1.69 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.IbcTxClient = void 0; var proto_signing_1 = require("@cosmjs/proto-signing"); var ITxClient_1 = require("../common/ITxClient"); var tx_1 = require("cosmjs-types/ibc/applications/transfer/v1/tx"); var types = [ ["/ibc.applications.transfer.v1.MsgTransfer", tx_1.MsgTransfer], ]; var registry = new proto_signing_1.Registry(types); var IbcTxClient = /** @class */ (function (_super) { __extends(IbcTxClient, _super); function IbcTxClient(wallet, address) { return _super.call(this, wallet, address, registry) || this; } IbcTxClient.getRegistry = function () { return registry; }; IbcTxClient.msgTransfer = function (data) { return { typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", value: data }; }; return IbcTxClient; }(ITxClient_1.ITxClient)); exports.IbcTxClient = IbcTxClient;