-
Notifications
You must be signed in to change notification settings - Fork 8
Implement Ledger #231
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
base: main
Are you sure you want to change the base?
Implement Ledger #231
Conversation
422e9b0 to
ef69187
Compare
Solution: Implement Ledger use on SDK to allow using them.
ef69187 to
9b8d8b6
Compare
|
Failed to retrieve llama text: POST 503: 503 Service UnavailableNo server is available to handle this request. |
src/aleph/sdk/conf.py
Outdated
| address: Optional[str] = None | ||
|
|
||
| model_config = SettingsConfigDict(use_enum_values=True) | ||
| # model_config = SettingsConfigDict(use_enum_values=True) |
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.
Why comment this?
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.
Not sure, that change was from @nesitor
odesenfans
left a comment
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.
Looks like this needs a refactoring of base classes the class hierarchy make sense.
…odel validator to ensure retro compatibility
EthAccount is the Account using Private key
…nt and LedgerEthAccount
…untFromPrivateKey
odesenfans
left a comment
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.
A few nitpicks here and there but LGTM
| logger = logging.getLogger(__name__) | ||
|
|
||
| T = TypeVar("T", bound=AccountFromPrivateKey) | ||
| AccountTypes: TypeAlias = Union["AccountFromPrivateKey", "HardwareAccount"] |
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.
Nitpick: should be AccountType as it's either one or the other.
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.
Well we have already an AccountType i put AccountTypes since it's 2 accounts Union to don't have 2 time AccountType
Co-authored-by: Olivier Desenfans <desenfans.olivier@gmail.com>
Problem: Ledger wallet users cannot use Aleph to send transactions.
Solution: Implement Ledger use on SDK to allow using them.