-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into zach-contract-ci
- Loading branch information
Showing
9 changed files
with
386 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#pragma once | ||
|
||
#include <eosio/asset.hpp> | ||
#include <eosio/eosio.hpp> | ||
|
||
#include <string> | ||
|
||
namespace eosio { | ||
|
||
using std::string; | ||
|
||
class [[eosio::contract("eosio.token")]] token : public contract { | ||
public: | ||
using contract::contract; | ||
|
||
[[eosio::action]] | ||
void create( const name& issuer, | ||
const asset& maximum_supply); | ||
|
||
[[eosio::action]] | ||
void issue( const name& to, const asset& quantity, const string& memo ); | ||
|
||
[[eosio::action]] | ||
void retire( const asset& quantity, const string& memo ); | ||
|
||
[[eosio::action]] | ||
void transfer( const name& from, | ||
const name& to, | ||
const asset& quantity, | ||
const string& memo ); | ||
|
||
[[eosio::action]] | ||
void open( const name& owner, const symbol& symbol, const name& ram_payer ); | ||
|
||
[[eosio::action]] | ||
void close( const name& owner, const symbol& symbol ); | ||
|
||
using create_action = eosio::action_wrapper<"create"_n, &token::create>; | ||
using issue_action = eosio::action_wrapper<"issue"_n, &token::issue>; | ||
using retire_action = eosio::action_wrapper<"retire"_n, &token::retire>; | ||
using transfer_action = eosio::action_wrapper<"transfer"_n, &token::transfer>; | ||
using open_action = eosio::action_wrapper<"open"_n, &token::open>; | ||
using close_action = eosio::action_wrapper<"close"_n, &token::close>; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.