I have build a Smart Contract with 14-15 Tables for I/O. It will be used to store important data of our platform. I have used require_auth(_self) as this contract will not be used by 3rd person. It will be used to insert data and retrieve it by a single account.
So is the Authorization valid? Or I need to use get_self(). I started working on EOS from last 5 days and I need to deliver the project.
It takes close 900Kb of RAM to deploy on Testnet. How to optimize it.
There are more than 50 String Data types in struct can it be replaced by something else to optimize usage?
What kind of integration I would need in my Node Server to Call this transactions? Would I need a Wallet or I can store the private key in contract itself.
Sample Function:
// Service Request Table
struct [[eosio::table]] service_req {
uint32_t ID;
std::string subscription;
std::string service;
std::string status = 'pending';
auto primary_key() const { return ID; }
};
typedef eosio::multi_index<name("srvreqs"), service_req> srvreqs_table;
srvreqs_table _srvreqs;
Thanks In Advance