UNPKG

@open-rights-exchange/orejs

Version:

Orejs is a Javascript helper library to provide simple high-level access to the ore-protocol. Orejs uses eosJS as a wrapper to the EOS blockchain.

21 lines 713 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var action = function (_a) { var contractName = _a.contractName, fromAccountName = _a.fromAccountName, toAccountName = _a.toAccountName, tokenAmount = _a.tokenAmount, memo = _a.memo, permission = _a.permission; return ({ account: contractName, name: 'transfer', authorization: [{ actor: fromAccountName, permission: permission }], data: { from: fromAccountName, to: toAccountName, quantity: tokenAmount, memo: memo } }); }; exports.default = action; //# sourceMappingURL=token_transfer.js.map