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

Refactor/allow optional methods in base protocol adapter #2732

Conversation

martinkaintas
Copy link
Contributor

closes #2721

@martinkaintas martinkaintas self-assigned this Feb 20, 2024
@martinkaintas martinkaintas force-pushed the refactor/allow-optional-methods-in-base-protocol-adapter branch 2 times, most recently from ecb3fa1 to ef38040 Compare February 20, 2024 14:09
Copy link

@martinkaintas martinkaintas force-pushed the refactor/allow-optional-methods-in-base-protocol-adapter branch from ef38040 to 37164eb Compare February 23, 2024 08:08
Copy link

@@ -102,32 +102,30 @@ export abstract class BaseProtocolAdapter {
*/
abstract discoverLastUsedAccountIndex(seed: Uint8Array): Promise<number>;

abstract constructAndSignTx(
constructAndSignTx?(
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this should be required for the adapters and we should align the AE adapter to use this method. What do you think @martinkaintas @CedrikNikita ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is only used by the Bitcoin adapter

Copy link
Collaborator

Choose a reason for hiding this comment

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

Since we had a Dogecoin integration planned in future, that can be required (Dogecoin is a fork of Bitcoin).

Copy link
Collaborator

Choose a reason for hiding this comment

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

This is only used by the Bitcoin adapter

Yes, but maybe we should have the signing done on the adapter level? At least as a goal forced by this file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't see a clear refactoring path for this method in the AeternityAdapter
I suggest that if we really want this it should be done in a separate PR

Copy link
Contributor Author

Choose a reason for hiding this comment

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

new task: #2773

@martinkaintas martinkaintas force-pushed the refactor/allow-optional-methods-in-base-protocol-adapter branch from 37164eb to 2d26435 Compare February 23, 2024 10:34
Copy link

Base automatically changed from feat/eth-support to develop February 26, 2024 09:44
@martinkaintas martinkaintas force-pushed the refactor/allow-optional-methods-in-base-protocol-adapter branch from 2d26435 to f389042 Compare February 28, 2024 12:36
Copy link

@martinkaintas martinkaintas force-pushed the refactor/allow-optional-methods-in-base-protocol-adapter branch from f389042 to e775f40 Compare February 28, 2024 12:44
Copy link

@Liubov-crypto
Copy link
Collaborator

In general LGTM.

I have a question:

why pending BTC tx is appearing in Tx list with delay? it has been showing in latest tx list immediately, but I see it in BTC account tx list with delay in 2-3 min.

2024-02-29.12.20.48.mov

and in recipients wallet it shows this Tx as pending in BTC acc Tx list, however it's received 11 min ago...

2024-02-29.12.34.53.mov

@martinkaintas martinkaintas force-pushed the refactor/allow-optional-methods-in-base-protocol-adapter branch from e775f40 to 32bac3a Compare March 1, 2024 12:12
@martinkaintas martinkaintas merged commit 75a8c46 into develop Mar 1, 2024
2 checks passed
@martinkaintas martinkaintas deleted the refactor/allow-optional-methods-in-base-protocol-adapter branch March 1, 2024 12:12
Copy link

github-actions bot commented Mar 1, 2024

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.

Stop using placeholder methods and set methods as not required on the BaseProtocolAdapter
4 participants