hashed-io / proxy-financial-smart-contracts

EOSIO smart contracts
0 stars 0 forks source link

add bulk transactions on a drawdown #27

Open tlacloc opened 2 years ago

tlacloc commented 2 years ago

We got a change request to implement a bulk upload of budget expenditures, that would be stored on a ipfs file to be categorized later. To solve this new issue we need to add / implement a medium change on the drawdown.

struct extended_url_information
    { // ! store budget expenditures
      std::string filename;
      std::string address;
      std::string description;
      uint64_t date;
      eosio::asset amount;
    }; 

struct extended_url_information_param
    { // ! store budget expenditures
      std::string filename;
      std::string address;
      std::string description;
      uint64_t date;
      eosio::asset amount;
      bool add_file; // true = add, false = remove
    }; 
bulktransact(const eosio::name &actor, const uint64_t &project_id,  const uint64_t &drawdown_id, vector<extended_url_information_param> transactions)

we still need to define the way of how the transactions would be added on the respective budget expenditure account, but lets not focus on that part yet.

tlacloc commented 2 years ago

@didiermis I added two new parameters to the structure, it's a change that would be needed