greymass / producerjson

EOS Smart Contract for Block Producer Information

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

producerjson

Producer JSON smart contract for EOS.

Usage

View the table

cleos get table producerjson producerjson producerjson

Add to the table

cleos push action producerjson set '{"owner":"your_account", "json": "your_json"}' -p your_account@active

Example:

cleos push action producerjson set '{"owner":"teamgreymass", "json": "'`printf %q $(cat bp.json | tr -d "\r")`'"}' -p teamgreymass@active

Remove from the table

cleos push action producerjson del '{"owner":"your_account"}' -p your_account@active

How to build

./build.sh

or

eosiocpp -g producerjson.abi producerjson.cpp && eosiocpp -o producerjson.wast producerjson.cpp

How to deploy

cleos set contract producerjson producerjson -p producerjson@active

About

EOS Smart Contract for Block Producer Information

License:MIT License


Languages

Language:C++ 94.0%Language:Shell 6.0%