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

feat(sails): Enrich arguments for calls running in GSdk env by the 'with_voucher' option #477

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,543 changes: 1,664 additions & 879 deletions Cargo.lock

Large diffs are not rendered by default.

16 changes: 9 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,15 @@ sails-idl-gen = { path = "rs/idl-gen" }
sails-rename = { package = "sails-rs", path = "rs" }

# Gear deps
gclient = "=1.5.1"
gear-core = { version = "=1.5.1", default-features = false }
gear-core-errors = "=1.5.1"
gprimitives = { version = "=1.5.1", features = ["codec"] }
gstd = "=1.5.1"
gtest = "=1.5.1"
gwasm-builder = { package = "gear-wasm-builder", version = "=1.5.1" }
gclient = { git = "https://github.com/gear-tech/gear" }
gear-core = { git = "https://github.com/gear-tech/gear", default-features = false }
gear-core-errors = { git = "https://github.com/gear-tech/gear" }
gprimitives = { git = "https://github.com/gear-tech/gear", features = [
"codec",
] }
gstd = { git = "https://github.com/gear-tech/gear" }
gtest = { git = "https://github.com/gear-tech/gear" }
gwasm-builder = { package = "gear-wasm-builder", git = "https://github.com/gear-tech/gear" }

# Other deps in alphabetical order
anyhow = "1"
Expand Down
4 changes: 4 additions & 0 deletions examples/demo/app/tests/fixture/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,8 @@ impl Fixture {
pub(crate) fn balance_of(&self, id: ActorId) -> ValueUnit {
self.program_space.system().balance_of(id)
}

pub(crate) fn run_next_block(&self) -> gtest::BlockRunResult {
self.program_space.system().run_next_block()
}
}
Loading
Loading