UMAprotocol / protocol

UMA Protocol Running on Ethereum
https://uma.xyz
GNU Affero General Public License v3.0
367 stars 179 forks source link

feat: osnap plugin support in bots #4642

Closed Reinis-FRP closed 11 months ago

Reinis-FRP commented 1 year ago

Motivation

Bots need to support Snapshot proposals with the new oSnap plugin.

Summary

Adds support of new oSnap plugin to oSnap monitoring and automation bots.

Details

This may be unnecessary for some PRs. Catch-all for detailed explanations about the implementation decisions and implications of the change.

Testing

Check a box to describe how you tested these changes and list the steps for reviewers to test.

In order to check that adding oSnap plugin support does not break existing bots this was tested as in production on Goerli:

Issue(s)

Fixes https://linear.app/uma/issue/UMA-1794/add-translation-code-in-bot-to-handle-new-osnap-plugin-schema

linear[bot] commented 1 year ago
UMA-1794 add translation code in bot to handle new osnap plugin schema

should be able to detect if new osnap plugin is configured, make sure its the only plugin enabled, and then translate proposal data back into the original plugin format so bot can consume it.