Kestas / codum.io avatar

CODUM-5 task: Project Smart Contract

infohata

Published: 14 Aug 2018 › Updated: 14 Aug 2018CODUM-5 task: Project Smart Contract

CODUM-5 task: Project Smart Contract

Repository

https://github.com/codum-io/codum-core

Details

This is EOS smart contract to be written in C++11, compile to WASM 4 with eosiocpp and ABI file must be generated as well. Don't forget Ricardian contract clauses, the tools and examples are provided within the existing code in the repository.

Data Structure

struct project {
    uint64_t id;
    string project_name;
    bool private;
    account_name owner;
    string logo_url;
}

id must be auto-incremental primary key of the table;
project.owner pays for RAM, so scope must be taken by project.owner;

Actions

cproject(name, private, owner, logo_url) to create project

uproject(id, name, private, owner, logo, perm=0) to update existing project, query by ID

  • require authority of the owner for both actions;
  • if perm==0, require_auth of the existing owner of the project, otherwise assert - this to be updated later with added project manager permissions feature. Only for uproject.

Components

codumproject smart contract, file space: /contracts/codumproject/

Deadline

Should not take over a day

Communication

https://t.me/codum or https://t.me/infohata

Github

https://github.com/codum-io

Additional Reward

1000.0000 CODUM

Leave CODUM-5 task: Project Smart Contract to:

Read more #utopian-io posts


Best Posts From Kestas / codum.io

We have not curated any of infohata's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From Kestas / codum.io