-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Conversation
} | ||
} | ||
|
||
void apply_storage_transfer( const TOKEN_NAME::Transfer& transfer ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
storage doesn't implement a currency...
/// The apply method implements the dispatch of events to this contract | ||
void apply( uint64_t code, uint64_t action ) { | ||
if( code == N(storage) ) { | ||
if( action == N(transfer) ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be code == EOS and action == transfer... apply_eos_transfer(...)
/** | ||
* quantity to transfer | ||
*/ | ||
StorageTokens quantity; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't create StorageTokens and storage, instead we have storage quota and storage consumed and its measured in bytes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm approving this because it doesn't break anyone else.
A first cut implementation of storage contract. Does not do anything yet. Still needs implementation of reserving tokens for storage and freeing tokens when storage is released.
Also methods to read structures from message are yet to be implemented. Issues #493 and #492