UMAprotocol / protocol

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

feat(api): api simulates osnap execution #4689

Closed Reinis-FRP closed 8 months ago

Reinis-FRP commented 8 months ago

Motivation

oSnap frontend requires API to simulate proposal execution.

Summary

API simulates requested oSnap proposal execution against Tenderly API.

Details

In order to simulate execution without forking, contract state needs to be overriden as if transactions were already proposed on oSnap and settled on OOv3:

This has a dependency on state override feature in @uma/common Tenderly simulation library, thus it can be merged only after #4688.

Testing

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

Issue(s)

Fixes https://linear.app/uma/issue/UMA-2274/fill-in-state-override-details-in-apiosnap-for-osnap-sims

linear[bot] commented 8 months ago

UMA-2274 fill in state override details in api/osnap for osnap sims