-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ampd): add Stacks handlers with custom ITS logic & verify logic for contract deployments #676
base: main
Are you sure you want to change the base?
Conversation
feat(ampd): custom ITS logic for Stacks
pub tx_id: Hash, | ||
pub event_index: u32, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We updated voting verifier recently to emit the message_id string in the event instead and deprecated the old fields. Now you can directly decode into the typed MsgIdFormat, see example here. We'll be announcing this in the upcoming release's changelog. But you can update multiversX/stacks handlers to use this already. The new voting verifier contract will need to be deployed first so the new field is emitted for ampd to parse
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Description
Besides the normal
stacks_verify_msg
andstacks_verify_verifier_set
handlers, we needed to add custom logic for Stacks in order to support integration with the ITS Hub:On Stacks, a smart contract can NOT deploy another smart contract
The Stacks ITS contract can NOT support ABI encoding
payloadHash
in the Message should be the hash of the ABI encoded payload, and NOT of the actual Clarity payload