Skip to content
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

[MULTISIG] Storing Alias definitions in Smart Contract state #67

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

pnowosie
Copy link

@pnowosie pnowosie commented Apr 13, 2023

Why this should be merged

PR adds exported MultisigAliases (from ShM along with UTXOs, see: #65, #caminogo/217) to MultisigAlias contract's state

How this works

How to store solidity structures from the Go code is explained in the article

How this was tested

Unit test

@pnowosie pnowosie force-pushed the pnowosie/persisting-multisig-definitions-in-sc branch from 2b8694e to 1db886b Compare April 13, 2023 09:11
@pnowosie pnowosie force-pushed the pnowosie/persisting-multisig-definitions-in-sc branch from 1db886b to b355dc3 Compare April 13, 2023 11:03
@pnowosie pnowosie requested a review from peak3d April 13, 2023 11:10
@@ -47,6 +52,8 @@ type UnsignedImportTx struct {
ImportedInputs []*avax.TransferableInput `serialize:"true" json:"importedInputs"`
// Outputs
Outs []EVMOutput `serialize:"true" json:"outputs"`
// MultisigAliases are filled on SemanticVerify where SharedMemory data is fetched and are used in EVMStateTransfer
MultisigAliases []*multisig.AliasWithNonce `serialize:"false"`
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reason for this non-serializable field is to remember aliases which are collected in SemanticVerify for EVMStateTransfer where we're able to persist them in SC state.

Also: maybe I should make it unexportable outside of the module (rename to multisigAliases )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant