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

Advanced test environment #1

Open
wants to merge 49 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
b0d88e8
initial change for advanced ink test environment
Artemka374 Dec 29, 2022
8d99c80
initial change for advanced ink test environment
Artemka374 Dec 29, 2022
54e63e2
fix never type
Artemka374 Dec 29, 2022
f97aeb2
Merge remote-tracking branch 'origin/feature/advanced-test-environmen…
Artemka374 Dec 29, 2022
328882c
fix bugs
Artemka374 Jan 3, 2023
ca5a333
fix dispatch
Artemka374 Jan 3, 2023
2a35721
initial implementation of call flags with tests
Artemka374 Jan 9, 2023
52485b9
fix call_flags bug
Artemka374 Jan 10, 2023
e347054
implement revert storage
Artemka374 Jan 10, 2023
1af298d
minor changes and apply suggestions
Artemka374 Jan 11, 2023
d512e53
fix bug
Artemka374 Jan 11, 2023
e7ea5b5
fix bug
Artemka374 Jan 11, 2023
55443ab
implement caller_is_origin
Artemka374 Jan 11, 2023
029ed7f
apply suggestions
Artemka374 Jan 11, 2023
a09c388
add README for the reentrancy example and apply suggestions
Artemka374 Jan 12, 2023
0a16557
Merge branch 'master' into feature/advanced-test-environment
Artemka374 Jan 12, 2023
5fc7b08
cargo clippy
Artemka374 Jan 16, 2023
251f7ba
fix clippy
Artemka374 Jan 16, 2023
76cf2ce
fix unreachable code
Artemka374 Jan 16, 2023
7f09f31
add allow nonminimal bool
Artemka374 Jan 16, 2023
edd466f
apply clippy on examples
Artemka374 Jan 16, 2023
6184402
apply clippy on delegator example
Artemka374 Jan 16, 2023
f6c885a
fix no_implicit_prelude error
Artemka374 Jan 16, 2023
91ae09f
move tests to fallback_contract
Artemka374 Jan 16, 2023
2bf8af8
move fallback_contract to reentrancy dir
Artemka374 Jan 16, 2023
1134ad1
add tests for contract storage
Artemka374 Jan 16, 2023
bd20f87
fix clippy for test
Artemka374 Jan 16, 2023
78c7869
tail call is not supported yet
Artemka374 Jan 17, 2023
5fe1137
add generate address method
Artemka374 Jan 19, 2023
df3dac2
implement invoke_delegate
Artemka374 Jan 19, 2023
2fb2533
fix compilation errors
Artemka374 Jan 20, 2023
37f461c
apply suggestions
Artemka374 Jan 20, 2023
50a8c9b
minor code style changes
Artemka374 Jan 24, 2023
c1fcf2f
wrap engine into Rc<RefCell>
Artemka374 Jan 24, 2023
cef7ab2
use `let engine = self.engine.borrow()` where it is possible
Artemka374 Jan 24, 2023
15afa37
Merge branch 'master' into feature/advanced-test-environment
Artemka374 Jan 24, 2023
27c60bd
Merge branch 'master' into feature/advanced-test-environment
Artemka374 Jan 25, 2023
bc5bb68
fix compilation with ink! 4.0.0-beta.1
Artemka374 Jan 25, 2023
9c8f951
fix tests and update test in delegator example
Artemka374 Jan 25, 2023
f0b1f35
add unreachable to test to work with our api
Artemka374 Jan 26, 2023
319d599
Merge branch 'master' into feature/advanced-test-environment
Artemka374 Jan 26, 2023
edb9b7b
overwrite ui tests
Artemka374 Jan 26, 2023
0a14dc2
delete unused methods in examples
Artemka374 Jan 27, 2023
5b4761b
update ui tests
Artemka374 Jan 27, 2023
d5524bd
update readme
Artemka374 Jan 27, 2023
3e78b76
Change the way contracts are instantiated in example, update readme
Artemka374 Jan 30, 2023
6804763
fix clippy
Artemka374 Jan 30, 2023
8089eff
Merge branch 'master' into feature/advanced-test-environment
Artemka374 Mar 1, 2023
68c11bc
update tests to new ink! version
Artemka374 Mar 1, 2023
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
6 changes: 6 additions & 0 deletions crates/engine/src/exec_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ pub struct ExecContext {
pub block_number: BlockNumber,
/// The current block timestamp.
pub block_timestamp: BlockTimestamp,
/// The input of the call.
pub input: Vec<u8>,
/// The output buffer of the call.
pub output: Vec<u8>,
/// The return flags of the call
pub return_flags: u32,
}

impl ExecContext {
Expand Down
Loading