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

EraValidator query #10

Closed
wants to merge 442 commits into from

Conversation

EdHastingsCasperAssociation
Copy link
Owner

This PR adds era validator support to data provider. Extends casper-network#4521

sacherjj and others added 30 commits September 27, 2023 10:57
Added 2 new FFIs that enable contracts to register message topics and
emit human readable string messages.

Signed-off-by: Alexandru Sardan <[email protected]>
Add the message topic names along with the hashes of their names to the
addressable entity to enable easy discovery.
Also migrate topics to new contract on upgrade.

Signed-off-by: Alexandru Sardan <[email protected]>
# Conflicts:
#	execution_engine/src/engine_state/mod.rs
#	execution_engine_testing/tests/src/test/explorer/faucet.rs
#	node/src/components/deploy_acceptor.rs
#	node/src/components/deploy_acceptor/tests.rs
#	node/src/components/transaction_acceptor/event.rs
#	node/src/effect.rs
#	node/src/reactor/main_reactor/tests.rs
#	node/src/utils/specimen.rs
#	smart_contracts/contracts/explorer/faucet/README.md
#	types/src/lib.rs
#	types/src/stored_value.rs
#	types/src/transaction.rs
…ebug_info

Debug info about contract execution on `Trap::Unreachable`
Also re-organize the types used for contract level messages in multiple
modules and refactor naming for better consistency.

Signed-off-by: Alexandru Sardan <[email protected]>
casperlabs-bors-ng bot and others added 28 commits November 20, 2023 10:19
4400: Rewards tests setup r=Boiethios a=Boiethios

- Setup to write unit tests and network/reactor tests
- One working unit test and one working network test


Co-authored-by: Félix <[email protected]>
4440: Rewrite `TransactionV1` r=Fraser999 a=Fraser999

This PR heavily changes the structure of the `TransactionV1`.

Closes casper-network#4407.


Co-authored-by: Fraser Hutchison <[email protected]>
Add synching for transactions.

Signed-off-by: Alexandru Sardan <[email protected]>
Signed-off-by: Alexandru Sardan <[email protected]>
4447: Fix several JsonSchema impls and update the schema r=jacek-casper a=jacek-casper

Several types generate incorrect schema due to invalid use of the schemars macro attributes, the code was using the `with` attribute, but it doesn't support container types (structs/enums) ([it's documented here](https://github.com/GREsau/schemars/blob/master/docs/1.1-attributes.md#serdewith--type--schemarswith--type)). I've written the impls by hand, there seems to be no way to do it with attributes out of the box.

Co-authored-by: Jacek Malec <[email protected]>
4458: block_synchronizer: sync transactions r=alsrdn a=alsrdn

Add synching for transactions.

- Storage: changed `put_executed_block`, `get_execution_results` and `read_execution_results` to store/get execution results by `TransactionHash` instead of `DeployHash`
- MetaBlock: store transaction hashes and headers in historical meta blocks instead of deploy hashes and headers
- Refactor the `deploy_acquisition` component to work with transaction hashes and ids.
- BlockSychronizer: added stricter checks for fetching legacy deploys and introduced some new Error variants.
- Adjusted the tests for the block synchronizer to generate random transactions instead of deploys for testing.

Co-authored-by: Alexandru Sardan <[email protected]>
4467: Port the BlockValidator changes related to rewards to feat-2.0 r=fizyk20 a=fizyk20

This PR ports casper-network#4238 to the new `BlockValidator` on `feat-2.0`

Closes casper-network#4422 


Co-authored-by: Bartłomiej Kamiński <[email protected]>
# Conflicts:
#	Cargo.lock
#	Makefile
#	execution_engine/src/engine_state/mod.rs
#	execution_engine/src/engine_state/upgrade.rs
#	execution_engine/src/execution/error.rs
#	execution_engine/src/execution/executor.rs
#	execution_engine/src/execution/mod.rs
#	execution_engine/src/runtime/mod.rs
#	execution_engine/src/runtime/standard_payment_internal.rs
#	execution_engine/src/runtime_context/mod.rs
#	execution_engine/src/runtime_context/tests.rs
#	execution_engine/src/system.rs
#	execution_engine_testing/test_support/src/wasm_test_builder.rs
#	execution_engine_testing/tests/src/test/regression/gh_1470.rs
#	node/src/components/contract_runtime.rs
#	node/src/components/contract_runtime/error.rs
#	node/src/components/contract_runtime/operations.rs
#	node/src/effect.rs
#	node/src/reactor/main_reactor/tests.rs
#	storage/src/system/mint.rs
#	storage/src/system/standard_payment.rs
#	storage/src/system/standard_payment/account_provider.rs
#	storage/src/system/standard_payment/handle_payment_provider.rs
#	storage/src/system/standard_payment/mint_provider.rs
#	storage/src/tracking_copy/ext.rs
#	storage/src/tracking_copy/mod.rs
#	storage/src/tracking_copy/tests.rs
#	types/src/cl_value/system_contract_registry.rs
#	types/src/lib.rs
#	utils/global-state-update-gen/src/system_contract_registry.rs
EdHastingsCasperAssociation pushed a commit that referenced this pull request Mar 1, 2024
Use casper protocol version instead of a custom one
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.