Skip to content

feat(starknet_gateway): get executable tx from class manager#3498

Merged
noamsp-starkware merged 1 commit intonoam.s/feat_starknet_gateway_add_class_manager_clientfrom
noam.s/feat_starknet_gateway_get_executable_tx_from_class_manager
Jan 22, 2025
Merged

feat(starknet_gateway): get executable tx from class manager#3498
noamsp-starkware merged 1 commit intonoam.s/feat_starknet_gateway_add_class_manager_clientfrom
noam.s/feat_starknet_gateway_get_executable_tx_from_class_manager

Conversation

@noamsp-starkware
Copy link
Contributor

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Collaborator

@ShahakShama ShahakShama left a comment

Choose a reason for hiding this comment

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

Reviewed 5 of 5 files at r1, all commit messages.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @noamsp-starkware)


crates/starknet_gateway/src/utils.rs line 19 at r1 (raw file):

/// executable contract class.
#[allow(dead_code)]
pub fn compile_contract_and_build_executable_tx(

Delete this function


crates/starknet_gateway/src/gateway.rs line 103 at r1 (raw file):

    stateful_tx_validator: Arc<StatefulTransactionValidator>,
    state_reader_factory: Arc<dyn StateReaderFactory>,
    // TODO(noamsp): remove gatewayCompiler

Change to "remove GatewayCompiler from here and erase it.


crates/starknet_gateway/src/gateway.rs line 132 at r1 (raw file):

        self.stateless_tx_validator.validate(&self.tx)?;

        // TODO(noamsp): Add error handling.

Do this now. I think you should do what they did in compile_contract_and_build_executable_tx:

GatewaySpecError::UnexpectedError {

@noamsp-starkware noamsp-starkware force-pushed the noam.s/feat_starknet_gateway_add_class_manager_client branch 2 times, most recently from 6eb4a91 to eba52cb Compare January 21, 2025 05:34
@noamsp-starkware noamsp-starkware force-pushed the noam.s/feat_starknet_gateway_get_executable_tx_from_class_manager branch from 26ec928 to b4dbd5f Compare January 21, 2025 05:34
Copy link
Contributor Author

@noamsp-starkware noamsp-starkware left a comment

Choose a reason for hiding this comment

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

Reviewable status: 2 of 5 files reviewed, 3 unresolved discussions (waiting on @ShahakShama)


crates/starknet_gateway/src/gateway.rs line 103 at r1 (raw file):

Previously, ShahakShama wrote…

Change to "remove GatewayCompiler from here and erase it.

Done.


crates/starknet_gateway/src/gateway.rs line 132 at r1 (raw file):

Previously, ShahakShama wrote…

Do this now. I think you should do what they did in compile_contract_and_build_executable_tx:

GatewaySpecError::UnexpectedError {

Done.


crates/starknet_gateway/src/utils.rs line 19 at r1 (raw file):

Previously, ShahakShama wrote…

Delete this function

Its deleted in the following PR.

Copy link
Collaborator

@ShahakShama ShahakShama left a comment

Choose a reason for hiding this comment

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

Reviewed 3 of 3 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @noamsp-starkware)

Copy link
Collaborator

@ShahakShama ShahakShama left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @noamsp-starkware)

@noamsp-starkware noamsp-starkware force-pushed the noam.s/feat_starknet_gateway_add_class_manager_client branch from eba52cb to 6ba0987 Compare January 21, 2025 12:52
@noamsp-starkware noamsp-starkware force-pushed the noam.s/feat_starknet_gateway_get_executable_tx_from_class_manager branch from b4dbd5f to d111096 Compare January 21, 2025 12:52
@noamsp-starkware noamsp-starkware force-pushed the noam.s/feat_starknet_gateway_add_class_manager_client branch from 6ba0987 to dc752fd Compare January 21, 2025 15:33
@noamsp-starkware noamsp-starkware force-pushed the noam.s/feat_starknet_gateway_get_executable_tx_from_class_manager branch from d111096 to 8796161 Compare January 21, 2025 15:33
@noamsp-starkware noamsp-starkware merged commit b2e5a83 into noam.s/feat_starknet_gateway_add_class_manager_client Jan 22, 2025
4 of 7 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jan 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants