Track balance changes of your voters. Useful to identify strange behaviour if any of your voter is attempting to game your TBW payout script.
If you find this or other plugins useful please consider voting for deadlock
delegate on Solar or Ark networks.
Before restarting your process, you need to add the plugin into the very end core.plugins
or relay.plugins
section of app.json
file:
{
"package": "@deadlock-delegate/vbt",
"options": {
"enabled": true,
"explorerTx": "https://explorer.ark.io/transaction/",
"webhooks": [{
"endpoint": "https://discordapp.com/api/webhooks/612412465124612462/A1Ag12F&ijafa-3mtASA121mja",
"payload": {
"msg": "content"
},
"events": ["voting", "balancechange"],
"delegates": ["deadlock"]
}, {
"endpoint": "https://hooks.slack.com/services/T1212ASDA/BAEWAS12/ASxASJL901ajkS",
"payload": {
"msg": "text"
},
"events": ["voting", "balancechange"],
"delegates": ["deadlock"]
},
{
"endpoint": "https://api.pushover.net/",
"payload": {
"msg": "message",
"user": "<pushover user key>",
"token": "<pushover token>"
},
"events": ["voting", "balancechange"],
"delegates": ["deadlock"]
}]
}
}
- Install plugin:
<command> plugin:install @deadlock-delegate/vbt
, eg:ark plugin:install @deadlock-delegate/vbt
orsolar plugin:install @deadlock-delegate/vbt
- Add plugin to
app.json
- Start your node as you usually start it
Assuming you don't run testnet locally via docker:
- Clone this plugin into
plugins/
directory of thecore
project - Add plugin to
app.json
, for testnet the file can be found in:core/packages/core/bin/config/testnet/app.json
- Go into the plugin's directory:
cd vbt
- Build plugin:
yarn build
- Run
yarn full:testnet
insidecore/packages/core
directory to start testnet with vbt plugin
{
"package": "@deadlock-delegate/vbt",
"options": {
"enabled": true,
"explorerTx": "https://explorer.ark.io/transaction/",
"webhooks": [{
"endpoint": "webhook endpoint url",
"payload": {
"msg": "name of the message field eg. Discord has 'content', Slack has 'text', Pushover has 'message'"
},
"events": ["list of events you want to subscribe to"],
"delegates": ["list of delegates for which you wish to receive notifications"]
}]
}
}
voting
: sends a message when someone votes for or unvotes a given delegate specified in the delegates fieldbalancechange
: sends a message when someone moves funds in/out from a wallet voting for a given delegate specified in the delegates field
MIT © deadlock delegate