@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 (17 loc) • 359 B
JavaScript
const action = ({ authAccountName, authPermission, code, permission, type }) => (
{
account: 'eosio',
name: 'linkauth',
authorization: [{
actor: authAccountName,
permission: authPermission
}],
data: {
account: authAccountName,
code,
type,
requirement: permission
}
}
);
module.exports = action;