You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This pull request introduces new APIs for proposal-level decoding and
includes several changes to the `proposal` and `timelock_proposal`
modules to support these new features. The most important changes
include adding the `DecodeProposal` method to both `Proposal` and
`TimelockProposal` structs, updating tests to cover these new methods,
and importing necessary packages.
### Proposal Decoding Enhancements:
* Added `DecodeProposal` method to `Proposal` struct to decode raw
transactions into human-readable operations. (`proposal.go`)
* Added `DecodeProposal` method to `TimelockProposal` struct to decode
raw transactions into human-readable operations.
(`timelock_proposal.go`)
### Testing Enhancements:
* Added `Test_Proposal_Decode` to test the `DecodeProposal` method for
`Proposal` struct, including various success and failure scenarios.
(`proposal_test.go`)
* Added `Test_TimelockProposal_Decode` to test the `DecodeProposal`
method for `TimelockProposal` struct, including various success and
failure scenarios. (`timelock_proposal_test.go`)
### Dependency Updates:
* Imported necessary packages for decoding and testing, including
`crypto`, `mock`, and `bindings`. (`proposal_test.go`,
`timelock_proposal_test.go`)
[[1]](diffhunk://#diff-f54ef2790620db06a34dcf62d0565c5536ddeb0b22274fafc6d0cff158c9b789R8-R24)
[[2]](diffhunk://#diff-b80686a8969c14a89af64e7ed45e5a1e0dc025880256405d9e48eac6e33722b9R8-R24)
### Documentation:
* Added a changeset file to document the addition of proposal-level
decoding related APIs. (`.changeset/fast-taxis-guess.md`)
---------
Co-authored-by: Gustavo Gama <[email protected]>
0 commit comments