@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.
18 lines • 583 B
JavaScript
;
var action = function (_a) {
var contractName = _a.contractName, ownerAccountName = _a.ownerAccountName, toAccountName = _a.toAccountName, tokenAmount = _a.tokenAmount, permission = _a.permission;
return ({
account: contractName,
name: 'create',
authorization: [{
actor: ownerAccountName,
permission: permission
}],
data: {
issuer: toAccountName,
maximum_supply: tokenAmount
}
});
};
module.exports = action;
//# sourceMappingURL=token_create.js.map