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

Implemented TestHost functions: #563

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
e4aa6ab
Support get_slot_time in test host
limemloh Sep 26, 2024
581809b
Refactored
rasmus-kirk Oct 3, 2024
77945dc
Added get/set_receive_address
rasmus-kirk Oct 3, 2024
aa91a43
Format+clippy
rasmus-kirk Oct 3, 2024
d0fbd3d
Added get/set_receive_self_address and cleaned
rasmus-kirk Oct 3, 2024
b3db747
changelog
rasmus-kirk Oct 3, 2024
076d0ec
Accidently removed a public function, undoing that...
rasmus-kirk Oct 3, 2024
6ba3d66
Update smart-contracts/wasm-chain-integration/CHANGELOG.md
rasmus-kirk Oct 11, 2024
2508aeb
Update smart-contracts/wasm-chain-integration/src/utils.rs
rasmus-kirk Oct 11, 2024
c67458a
Update smart-contracts/wasm-chain-integration/src/utils.rs
rasmus-kirk Oct 11, 2024
ba80d06
Update smart-contracts/wasm-chain-integration/src/utils.rs
rasmus-kirk Oct 11, 2024
4adb6f2
Fixed param methods
rasmus-kirk Oct 12, 2024
d7acecf
Updated changelog
rasmus-kirk Oct 16, 2024
acb1228
Added support for event logging
rasmus-kirk Oct 17, 2024
9ed61dd
Added init_origin functions
rasmus-kirk Oct 17, 2024
01fa40e
Completed `receive_invoker` and `receive_sender`
rasmus-kirk Oct 18, 2024
6297325
Implemented `receive_owner` and `receive_entrypoint` functionality
rasmus-kirk Oct 18, 2024
9ad51e2
Implemented `verify_ed25519_signature`
rasmus-kirk Oct 18, 2024
8277caf
Implemented `verify_ecdsa_secp256k1_signature` in TestHost
rasmus-kirk Oct 22, 2024
8f15889
Format
rasmus-kirk Oct 22, 2024
2cf809b
Implmented hashing functions
rasmus-kirk Oct 22, 2024
f3f3330
Updated changelog
rasmus-kirk Oct 22, 2024
021f7e3
Appeased clippy
rasmus-kirk Oct 22, 2024
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
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,7 @@ idiss-csharp/*/obj

/smart-contracts/rust-contracts/concordium-std/Cargo.lock
/smart-contracts/wasm-transform/Cargo.lock

# Nix
**/*.nix
**/flake.lock
32 changes: 32 additions & 0 deletions smart-contracts/wasm-chain-integration/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,38 @@

## Unreleased changes

- Support more smart contract host-functions in `TestHost` (used by cargo concordium test):
- `get_slot_time`
- `get_receive_self_address`
- `get_receive_self_balance`
- `get_parameter_size`
- `get_parameter_section`
- `get_init_origin`
- `get_receive_invoker`
- `get_receive_sender`
- `get_receive_owner`
- `get_receive_entrypoint`
- `get_receive_entrypoint_size`
- `verify_ed25519_signature`
- `verify_ecdsa_secp256k1_signature`
- `hash_sha2_256`
- `hash_sha3_256`
- `hash_keccak_256`
Corresponding new host functions are introduced just for `TestHost` allowing for setting the result of the above:
- `set_slot_time`
- `set_receive_self_address`
- `set_receive_self_balance`
- `set_parameter`
- `set_init_origin`
- `set_receive_invoker`
- `set_receive_sender`
- `set_receive_owner`
- `set_receive_entrypoint`
Attempting to get a value before setting it will result in a runtime error.
The following getters are also created just for the `TestHost`:
- `get_event`
- `get_event_size`

## concordium-smart-contract-engine 6.0.0 (2024-09-09)

- Bump `concordium-wasm` to version 5 used by Concordium node version 7.0.0.
Expand Down
Loading
Loading