@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.
17 lines (16 loc) • 347 B
JavaScript
const action = ({ accountName, appName, contractName, permission, whitelistAccount }) => (
{
account: contractName,
name: 'whitelist',
authorization: [{
actor: accountName,
permission
}],
data: {
owner: accountName,
account: whitelistAccount,
dapp: appName
}
}
);
module.exports = action;