Giter Site home page Giter Site logo

eos.watchdoggiee's Introduction

watchdoggie EOS contract

This is a simple contract that helps verifying that the watch script is monitoring the network and sending notifications.

Action: ping

So, if you need to create a dummy transaction without sending any tokens, just do:

alias mcleos='cleos -u http://mainnet.eoscalgary.io'
mcleos push action watchdoggiee ping '["FROMACCOUNT", "TOACCOUNT", "hello world"]' -p FROMACCOUNT

As a result, both accounts will have this "ping" transaction in their history of actions.

Due to excessive use of this contract for sending mass notifications, each sender is limited to 1000 messages. Extending the limit is possible if you contact me at Telegram: @cc32d9

Action: setkv

This action is designed for monitoring purpose: a monitoring script can set a key-value pair and verify its result in the EOS network. The sender has to have a special permission "watchdog", and the sender pays for RAM.

alias mcleos='cleos -u http://mainnet.eoscalgary.io'
mcleos set account permission MYACCOUNT watchdog EOS8C9tb8QQhZet6WWcYFCWDKHYfjC3W59ugHCD63s7LLDQx6JsNK
mcleos set action permission MYACCOUNT watchdoggiee setkv watchdog
mcleos set action permission MYACCOUNT watchdoggiee delkv watchdog
mcleos push action watchdoggiee setkv '["MYACCOUNT", "777", "777"]' -p MYACCOUNT@watchdog
mcleos get table watchdoggiee MYACCOUNT kvs

Action: delkv

The action deletes a corresponding key-value pair

mcleos push action watchdoggiee delkv '["MYACCOUNT", "777"]' -p MYACCOUNT@watchdog
mcleos get table watchdoggiee MYACCOUNT kvs

Copyright and License

Copyright 2018 [email protected]

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

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.