Giter Site home page Giter Site logo

dconnect-storage's Introduction

dconnect-storage

eosio storage smart contract for the dconnect network

build: eosio-cpp eosio_storage.cpp -o eosio_storage.wasm

apply contract with cleos: cleos set contract ./

ACTIONS precede each action with the users name

(replace the bits in <> brackets with your own information)

cleos push action <contract name> set '[ "<user name>","<table key>","<value>" ]' -p <user name>@active

SET - create an entry

username - freedom first username key - username type index for path/key separation value - value to apply

TIP: You will get the primary key for an entry when you read it...

cleos push action <contract name> edit '[ "<user name>","<primary key>" ]' -p <user name>@active

EDIT - modify an entry

primary - primary key of item value - value to apply

cleos push action <contract name> erase '[ "<user name>","<primary key>" ]' -p <user name>@active

ERASE - erase an entry

primary - primary key of item value - value to apply

You can read items either from global scope, or scoped to the user as follows cleos -u https://dconnect.live get table <contract name> <contract name> post

You can also read items from user scope (look at this as the users profile) cleos -u https://dconnect.live get table <contract name> <user name> post

dconnect-storage's People

Contributors

lanmower avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.