-
Notifications
You must be signed in to change notification settings - Fork 20
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
Sync With Upstream #30
Conversation
Devnet merge
Make `services` pub
Let developers configure their VSCode without turning this into commit fests and battles of preferences.
chore: remove VSCode configuration from git
@@ -152,7 +152,7 @@ impl TransactionsApi { | |||
operation_id = "get_transactions", | |||
tag = "ApiTags::Transactions" | |||
)] | |||
async fn get_transactions( | |||
pub async fn get_transactions( |
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'm not sure we need to expose all this stuff from the API crate.
## Unreleased | ||
- Add balance command to easily get account balances for APT currently | ||
|
||
## [3.4.1] - 2024/05/31 |
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.
The aptos
-turned-movement
crate will need to be re-synced from the latest upstream to benefit from all the accumulated goodness and retain compat.
Or perhaps, expose the CLI entry points and relocate the movement
binary to the movement repo, so that the delta here is minimized to feature-gating the unneeded code and deps.
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.
Re-syncing is done in #43.
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.
Would it work to rename the associated aptos
directory to movement
?
@@ -82,7 +82,7 @@ impl CliCommand<Vec<serde_json::Value>> for ListAccount { | |||
account | |||
} else { | |||
return Err(CliError::CommandArgumentError( | |||
"Please provide an account using --account or run aptos init".to_string(), | |||
"Please provide an account using --account or run movement init".to_string(), |
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.
On the other hand, there's this branding hardcoded anyway, so perhaps there is no benefit in maintaining an external binary.
// Update in-memory state of the database and the metrics before reverting. | ||
// Note that any failures in persisting the revert should be treated as | ||
// non-recoverable. | ||
fn pre_revert( |
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.
This is also a cherry-pick from #28, not yet used anywhere, but will be once that PR lands.
let lock = self.reset_lock(); | ||
lock.reset(); | ||
} | ||
|
||
pub fn reset_lock(&self) -> ResetLock<'_> { |
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.
Another cherry-pick from #28; it looks like a needless refactoring now, but will come useful later.
The changes look sensible now, apart from some minor issues. The only real concern that jumped at me is the added |
Replace todo! in struct value initializers with sensible values. Apply some typo fixes.
The merge breaks the I think the sensible way forward is to completely check out the required crates from |
My mistake, I misused |
When syncing with upstream, merge conflicts of the "changed by them/ removed by us" kind have been resolved by updating the conflicting files to the latest upstream revision. This only partially recovered the source for crates that have been removed for Monza. Restore the crates fully. Some of the changes made for Monza are overwritten from upstream to reduce the delta and allow resurrecting some crates erased in the work for Monza: - ring dependency removal from aptos-crypto, moving the noise implementation to aptos-network; - removal of tokio synchronization slots from aptos-types. This means this branch no longer supports Monza, and those changes would need to be re-applied if the Monza direction is taken again.
The storage interface used by tests added by Movement needed to be updated to the upstream changes.
Pull the README from upstream and remove the duplicate workspace entry.
…m-fixups Sync With Upstream: fixups, updating the CLI to 3.5.0
The changes do not work if the "multi-threaded-cf" feature is enabled. We only tried this for Monza.
This reverts commit bc283e6.
crate aptos renamed to movement.
We only parameterized FinalityView with Arc<dyn DbReader>, so just bake it in rather than relying on a generic impl. When DbReaderWriter is refactored, we might get a better shot at improving this.
It was made private again in the merge.
26e7d4d
to
76be1d3
Compare
Resolves #41
Description
Test Plan