@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.
20 lines • 604 B
JavaScript
;
var action = function (_a) {
var authAccountName = _a.authAccountName, authPermission = _a.authPermission, code = _a.code, permission = _a.permission, type = _a.type;
return ({
account: 'eosio',
name: 'linkauth',
authorization: [{
actor: authAccountName,
permission: authPermission
}],
data: {
account: authAccountName,
code: code,
type: type,
requirement: permission
}
});
};
module.exports = action;
//# sourceMappingURL=account_linkAuth.js.map