#include <eosio/asset.hpp>
#include <eosio/print.hpp>
using namespace eosio;
class [[eosio::contract("mycontract")]] mycontract : public contract {
public:
using contract::contract;
[[eosio::action]]
void transfer(const name& from, const name& to, const asset& quantity, const std::string& memo) {
eosio::require_auth({from, get_self()});
eosio::print("Transfer from ", from, " to ", to, " amount ", quantity);
}
};