UMAprotocol / protocol

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

feat(common): state override support in tenderly simulation #4688

Closed Reinis-FRP closed 5 months ago

Reinis-FRP commented 5 months ago

Motivation

API serving oSnap frontend simulation requires state override support.

Summary

Adds state override support in Tenderly simulation helpers.

Details

Tenderly simulation library allows passing custom offset values to pack multiple values per slot, but the caller is responsible to ensure values don't overlap within the same slot.

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-2273/add-ability-to-state-override-in-tenderly-sim-library-in-protocol

linear[bot] commented 5 months ago

UMA-2273 add ability to state override in tenderly sim library in protocol common