-
Notifications
You must be signed in to change notification settings - Fork 51
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
chore: switch to using subaccounts & deprecate tla creation #337
Changes from 9 commits
44e38d9
5bea7e0
9e16afa
b89792b
96e3bd4
7da010f
1fcae96
8499479
8c7fc17
e5666a3
f4d6be1
9abfd8b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
//! All traits that are essential to the ease of use of workspaces. | ||
|
||
#[allow(deprecated)] | ||
pub use crate::network::TopLevelAccountCreator; |
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -44,6 +44,9 @@ pub type BlockHeight = u64; | |||
/// Shard index, from 0 to NUM_SHARDS - 1. | ||||
pub type ShardId = u64; | ||||
|
||||
// Constant taken from nearcore crate to avoid dependency | ||||
pub const DEFAULT_DEPOSIT: NearToken = NearToken::from_near(100); | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is no sense in such a public constant. There is no such a thing like "default deposit" in NEAR protocol. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I moved this over to types crate:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Updated the docs and renamed the constant to reflect that. 9abfd8b |
||||
|
||||
fn from_base58(s: &str) -> Result<Vec<u8>, Box<dyn std::error::Error + Send + Sync>> { | ||||
bs58::decode(s).into_vec().map_err(|err| err.into()) | ||||
} | ||||
|
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.
Top-level accounts creation is not deprecated, so I am not completely convinced that we should mark this trait as deprecated
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.
I added that as an attempt to discourage usage
maybe we usewarn
?