@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.
16 lines (15 loc) • 339 B
JavaScript
const action = ({ contractName, ownerAccountName, toAccountName, tokenAmount, permission }) => (
{
account: contractName,
name: 'create',
authorization: [{
actor: ownerAccountName,
permission
}],
data: {
issuer: toAccountName,
maximum_supply: tokenAmount
}
}
);
module.exports = action;