PHP WebShell
Текущая директория: /opt/BitGoJS/node_modules/@cosmjs/stargate/build/modules/vesting
Просмотр файла: aminomessages.js
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.createVestingAminoConverters = exports.isAminoMsgCreateVestingAccount = void 0;
const long_1 = __importDefault(require("long"));
function isAminoMsgCreateVestingAccount(msg) {
return msg.type === "cosmos-sdk/MsgCreateVestingAccount";
}
exports.isAminoMsgCreateVestingAccount = isAminoMsgCreateVestingAccount;
function createVestingAminoConverters() {
return {
"/cosmos.vesting.v1beta1.MsgCreateVestingAccount": {
aminoType: "cosmos-sdk/MsgCreateVestingAccount",
toAmino: ({ fromAddress, toAddress, amount, endTime, delayed, }) => ({
from_address: fromAddress,
to_address: toAddress,
amount: [...amount],
end_time: endTime.toString(),
delayed: delayed,
}),
fromAmino: ({ from_address, to_address, amount, end_time, delayed, }) => ({
fromAddress: from_address,
toAddress: to_address,
amount: [...amount],
endTime: long_1.default.fromString(end_time),
delayed: delayed,
}),
},
};
}
exports.createVestingAminoConverters = createVestingAminoConverters;
//# sourceMappingURL=aminomessages.js.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!