Improvements
Bot sharding
Bots are now allowed to specify shards! This means a bot now can work on different portions of the chain data across different nodes. This value needs to be specified in the bot manifest like
{
"manifest": {
"chainSettings": {
"default": {
"target": 3,
"shards": 2
}
}
}
and this allows launching 6 instances of a bot and distribute by diving the chain data in 2.
Alert combiner bots
Bots that implement handleAlert()
are now receiving the labels in the inputted alerts and able to specify the chain ID in the subscriptions.
Delegated staking
The new forta authorize pool
command that allows generating registration outputs was improved. This requires manually updating the CLI (through yum
or apt
).
Now, two types of outputs are supported.
Default:
Please use the registration signature below on https://app.forta.network as soon as possible and do not share with anyone!
eyJyZWdpc3RyYXRpb25JbnB1dCI6eyJzY2FubmVyIjoiMHhjZTQ2Y2Q2NzQ4YWRmMDczNmIxZjc1NTAyMzFkZjg4MDQ2ZWU5YTU4Iiwic2Nhbm5lclBvb2xJZCI6MSwiY2hhaW5JZCI6MSwibWV0YWRhdGEiOiIiLCJ0aW1lc3RhbXAiOjE2NzUyNzUyMDB9LCJzaWduYXR1cmUiOiIweGIwODdiODRlMzI4YWYxZmEwZjYzMWRmM2EzOGYyZjY4YmYzMTdmOTUxNjg3MmEwZTcyNDJlNjcwZTc2ZGQ0MmU3ZDg0MjBmMmM0ODA0OTBlODdhODQ1N2MwZmY5NTJkMGY3ZWFmNjljOWY1Nzc5YjkzZjc2OWZlYWVlZTMwNWFlMWMifQ==
With --polygonscan
flag
Please use the registerScannerNode() inputs below on https://polygonscan.com as soon as possible and do not share with anyone!
req : ["0xCE46cD6748ADF0736b1f7550231df88046eE9a58","0x1","0x1","","0x63daabb3"]
signature: 0x85d6a0eda0cd1aaa1c3b5f9ae4b753befb4e62ad6244acee3a25c9ee2f3ff4ca5ce76f0e383e4104216d52ea84d0fd68f42dff5f64cb9374ff2bfc3ac0ec90d71b
Other improvements
- Avoid a panic that causes repeating
initialize()
calls to bots - Add registry API inspection
- Speed up E2E tests
- Make registry chain ID configurable in
config.yml
(useful for development) - Change the default registry API from polygon-rpc.com to Ankr
- Add drop metric for combiner bots
What's Changed
- Fix e2e tests by @aomerk in #638
- Add drop metric for handle alert by @aomerk in #642
- Make registry chain ID configurable by @canercidam in #641
- Improve bot sharding by @aomerk in #640
- Add label support to handle alert feed by @aomerk in #645
- Registration: make default output a base64 encoded token and change -v to --polygonscan by @canercidam in #644
- Speed up E2E tests by @canercidam in #646
- make scanner dispatch sharded feeds by @aomerk in #647
- Avoid forta-scanner container crashes during assignment checks by @canercidam in #648
- Make log fields camel case by @canercidam in #651
- Fix E2E tests after sharding changes by @canercidam in #652
- stop overwriting agent config by @aomerk in #653
Full Changelog: v0.7.0...v0.7.1