Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend logs & action return values for buyram & sellram to include fee value #123

Closed
2 tasks
Tracked by #128 ...
DenisCarriere opened this issue Mar 22, 2024 · 1 comment
Closed
2 tasks
Tracked by #128 ...
Labels

Comments

@DenisCarriere
Copy link
Contributor

Scope

  • Extend logs logbuyram & logsellram to include fee value
  • Extend action return values for sellram & buyram to include fee value
 /**
  * Logging for sellram action
  *
  * @param account - the ram seller,
  * @param quantity - the quantity of tokens to sell ram with.
  * @param bytes - the quantity of ram to sell specified in bytes.
  * @param ram_bytes - the ram bytes held by account after the action.
  * @param fee - the fee to be paid for the ram sold.
  */
[[eosio::action]]
void logsellram( const name& account, const asset& quantity, int64_t bytes, int64_t ram_bytes, const asset& fee );

[[eosio::action]]
void logbuyram( const name& payer, const name& receiver, const asset& quantity, int64_t bytes, int64_t ram_bytes, const asset& fee );


struct action_return_sellram {
  name account;
  asset quantity;
  int64_t bytes_sold;
  int64_t ram_bytes;
  asset fee;
};

struct action_return_buyram {
  name payer;
  name receiver;
  asset quantity;
  int64_t bytes_purchased;
  int64_t ram_bytes;
  asset fee;
};

References

Related

#122

@DenisCarriere DenisCarriere changed the title Extend logbuyram & logsellram to include fee value Extend logs & action return values for buyram & sellram to include fee value Mar 22, 2024
@DenisCarriere
Copy link
Contributor Author

Implemented via: AntelopeIO/reference-contracts#64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

No branches or pull requests

2 participants