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

Feature/waas integration #28

Merged
merged 55 commits into from
Dec 18, 2023
Merged

Feature/waas integration #28

merged 55 commits into from
Dec 18, 2023

Conversation

BellringerQuinn
Copy link
Contributor

@BellringerQuinn BellringerQuinn commented Aug 18, 2023

This PR contains the following:

  • Some of the Sequence Core implementation/refactoring - this branch originally branched off of this work in order to maintain some of the convenience functions and project structure work - note that Sequence Core is not yet in use
  • Some modifications to the IWallet interface
  • A full WaaS client implementation - not fully tested, though much of the client will likely remain unused
  • An adapter that turns a WaaS wallet into an IWallet
  • Tests for the WaaSToWallet adapter

Since this PR is rather large, I'd recommend starting the review with:

  • Wallet/IWallet
  • WaaS/IWallet
  • WaaSToWalletAdapter

Pre-requisite: #19 #27

…eir own files. Expanded ISignature to contain additional methods that were added recently
…ng and an Address can be implicitly converted between one and another. This means that an instance of the Address class is not necessarily a valid Ethereum address.
… the constructor. This allows us to guarantee that an Address is a valid Ethereum address
…ds for bool, UInt16, and UInt32 - added unit tests for these extensions.
…the IWallet defined in SequenceWaaS. The adapter implements SequenceEthereum-IWallet using SequenceWaaS-IWallet as a dependency. Implemented the GetAddress adapter - note that since SequenceWaaS and SequenceEthereum have a different concept of what a wallet is, some of SequenceEthereum-IWallet may need to be modified slightly. For example: when implementing GetAddress, I've added an optional parameter to the method to specify the accountIndex as SequenceWaaS wallets can have multiple accounts/addresses while SequenceEthereum wallets have only one.
Copy link
Contributor

@taylanpince taylanpince left a comment

Choose a reason for hiding this comment

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

Finally got through this. Some minor comments added. Let's wrap these up and merge it in so we can keep future PRs smaller :)

Copy link
Contributor

@taylanpince taylanpince left a comment

Choose a reason for hiding this comment

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

One more thing I missed

Assets/SequenceSDK/WaaS/DataTypes/Transaction.cs Outdated Show resolved Hide resolved
@BellringerQuinn BellringerQuinn merged commit 65d5592 into master Dec 18, 2023
@BellringerQuinn BellringerQuinn deleted the Feature/WaaSIntegration branch December 18, 2023 15:59
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