Skip to content

lanmower/dconnect-storage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

(remove the <> brackets and add 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

Reading tables

You can read items either from global scope 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

About

eosio storage smart contract for freedom first

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages