-
Notifications
You must be signed in to change notification settings - Fork 1
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: implement the adena wallet provider #3
Conversation
b6456dd
to
cd792ad
Compare
@RezaRahemtola Can you give it a review? |
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.
Code looks good to me otherwise, it's going in the right direction!
I'll test this new SDK architecture locally tomorrow with one of my Gno projects to give more feedbacks regarding usage
export enum WalletResponseFailedType { | ||
NOT_CONNECTED = 'NOT_CONNECTED', | ||
UNRESOLVED_TRANSACTION_EXISTS = 'UNRESOLVED_TRANSACTION_EXISTS', | ||
INVALID_FORMAT = 'INVALID_FORMAT', | ||
WALLET_LOCKED = 'WALLET_LOCKED', | ||
ACCOUNT_MISMATCH = 'ACCOUNT_MISMATCH', | ||
NO_ACCOUNT = 'NO_ACCOUNT', | ||
TRANSACTION_FAILED = 'TRANSACTION_FAILED', | ||
SIGN_FAILED = 'SIGN_FAILED', | ||
ALREADY_CONNECTED = 'ALREADY_CONNECTED', | ||
NETWORK_TIMEOUT = 'NETWORK_TIMEOUT', | ||
REDUNDANT_CHANGE_REQUEST = 'REDUNDANT_CHANGE_REQUEST', | ||
NETWORK_ALREADY_EXISTS = 'NETWORK_ALREADY_EXISTS', | ||
UNADDED_NETWORK = 'UNADDED_NETWORK', | ||
UNSUPPORTED_TYPE = 'UNSUPPORTED_TYPE', | ||
UNEXPECTED_ERROR = 'UNEXPECTED_ERROR', | ||
} |
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.
should we unify those types in the future in a common package used by the main Adena repo and this SDK ?
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.
Yes, I would like to unify the types and responses.
If the SDK and wallet responses were separate, it wouldn't be a problem if the provider did the mapping for me, but I'd have to manage them separately and always consider what I'm missing.
@RezaRahemtola We have a PR that implements the features of the SDK. |
What type of PR is this?
What this PR does:
Define the wallet provider that will be managed in your SDK instance, and implement the adena wallet provider.
Change the adena methods to provider.