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

new wallet storage and impl #998

Merged
merged 4 commits into from
Jul 31, 2020
Merged

new wallet storage and impl #998

merged 4 commits into from
Jul 31, 2020

Conversation

nanne007
Copy link
Member

@nanne007 nanne007 commented Jul 30, 2020

resolve first step of #878

@nanne007 nanne007 force-pushed the feature/new-wallet branch 2 times, most recently from 1780351 to d6d6cf9 Compare July 30, 2020 03:52
Copy link
Member

@jolestar jolestar left a comment

Choose a reason for hiding this comment

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

我在想那个 default account 的逻辑还要不要了。

@nanne007
Copy link
Member Author

我在想那个 default account 的逻辑还要不要了。

客户端维护?

@nanne007 nanne007 force-pushed the feature/new-wallet branch from d6d6cf9 to 4fb87f4 Compare July 30, 2020 07:44
@nanne007 nanne007 marked this pull request as ready for review July 30, 2020 07:45
fn submit_transaction(&self, txn: SignedUserTransaction) -> Result<()>;
}

pub trait RichWallet {
Copy link
Member

Choose a reason for hiding this comment

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

这个名字是不是不太合适?但我也没想到更好的。

Copy link
Member Author

Choose a reason for hiding this comment

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

这里面的 trait 暂时没用。名字可以忽略。

目前没有抽象接口。
我是想等功能完整后,看看那些需要抽离出来。

Ok(wallet)
}

pub fn unlock_wallet(
Copy link
Member

Choose a reason for hiding this comment

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

有 unlock 也需要支持 lock 吧,原来这个逻辑没有加上。

Copy link
Member Author

Choose a reason for hiding this comment

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

好像原来也没有这个功能。哈哈。这个可以加。

@jolestar jolestar merged commit 9cbfd2e into master Jul 31, 2020
@jolestar jolestar deleted the feature/new-wallet branch July 31, 2020 12:24
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