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!: replace external vm interface and receipts with local ones #479

Merged
merged 12 commits into from
Jul 23, 2021

Conversation

austinabell
Copy link
Contributor

@austinabell austinabell commented Jul 19, 2021

Removes need for near/nearcore#4101 through just creating SdkExternal to satisfy the interface done by vm_logic before.

Built on #451 as it's a cleaner change to not have to deal with conflicts so leaving in draft for now

This exposes Receipts and the sub fields to be able to be used in tests

@austinabell austinabell changed the title refactor: make blockchain interface concrete type and remove interface trait refactor!: replace external vm interface and receipts with local ones Jul 19, 2021
@@ -0,0 +1,52 @@
use crate::{AccountId, Balance, Gas, PublicKey};
// use near_vm_logic::mocks::mock_external::Action as VmAction;
Copy link
Contributor

Choose a reason for hiding this comment

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

stary comment?

Base automatically changed from austin/update_bc_interface to master July 21, 2021 20:25
@austinabell austinabell marked this pull request as ready for review July 21, 2021 20:26
use crate::{AccountId, Balance, Gas, PublicKey};

#[derive(Clone, Debug)]
pub struct Receipt {
Copy link
Contributor

Choose a reason for hiding this comment

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

This will be quite helpful, thanks

@austinabell austinabell merged commit 3de8eb0 into master Jul 23, 2021
@austinabell austinabell deleted the austin/replace_ext_logic branch July 23, 2021 13:25
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.

4 participants