Skip to content

Instantly share code, notes, and snippets.

@MCarlomagno
Created January 8, 2022 15:48
Show Gist options
  • Save MCarlomagno/18bd45e56d44251af00e88cae9632ed8 to your computer and use it in GitHub Desktop.
Save MCarlomagno/18bd45e56d44251af00e88cae9632ed8 to your computer and use it in GitHub Desktop.
struct request
{
string task;
string memo;
bytes args;
account_name administrator;
account_name contract;
uint32_t timestamp;
uint32_t update_each;
request_type mode;
uint64_t primary_key() const { return pack_hash(get_full_hash(task, memo, contract)); }
EOSLIB_SERIALIZE(request, (task)(memo)(args)(administrator)(contract)(timestamp)(update_each)(mode))
};
struct oracle
{
account_name account;
uint64_t primary_key() const { return account; }
EOSLIB_SERIALIZE(oracles, (account))
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment