Skip to content

Interflux #0#503

Merged
noescape00 merged 13 commits intostratisproject:masterfrom
noescape00:interfluxWork
Apr 8, 2021
Merged

Interflux #0#503
noescape00 merged 13 commits intostratisproject:masterfrom
noescape00:interfluxWork

Conversation

@noescape00
Copy link
Contributor

This can be reviewed on commit by commit basis.

Mostly refactoring, comments, minor fixes, setup for future adding chains other than ETH for interoperability.

public string DestinationAddress { get { return this.destinationAddress; } set { this.destinationAddress = value; } }

/// <summary>Chain on which STRAX minting or burning should occur.</summary>
public DestinationChain DestinationChain { get { return (DestinationChain)this.destinationChain; } set { this.destinationChain = (int)value; } }
Copy link
Collaborator

Choose a reason for hiding this comment

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

If we are introducing this new field we will ideally need a migration mechanism for existing conversion requests stored by the multisig nodes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Given that we now have almost no conversion requests and that we can have multisig nodes upgraded in a few hours I think we can do without it at this stage.

But I agree, migration mechanism will be needed later on

this.RetrievalType = retrievalType;
this.Amount = amount;
this.TargetAddress = targetAddress;
//this.TargetChain = targetChain;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this going to be introduced later?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. Adding it in the constructor breaks a lot of tests, I was about to work on it but had to switch to other task, so disabled it in this PR.

/// blocks from another chain to look for cross chain deposit transactions.
/// </summary>
/// <remarks>Processes matured block deposits from the cirrus chain and creates instances of <see cref="ConversionRequest"/> which are
/// saved to <see cref="IConversionRequestRepository"/>.</remarks>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Bear in mind that the creation of ConversionRequests is something that was added onto this existing functionality. Conversion requests are obviously not used for normal cross-chain transfers.

@noescape00 noescape00 merged commit f808ff1 into stratisproject:master Apr 8, 2021
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.

2 participants