-
Notifications
You must be signed in to change notification settings - Fork 66
apollo_gateway: dependency inject transaction converter #9476
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
apollo_gateway: dependency inject transaction converter #9476
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Benchmark movements: full_committer_flow performance improved 😺 full_committer_flow time: [22.271 ms 22.577 ms 22.904 ms] change: [-10.197% -8.4500% -6.6726%] (p = 0.00 < 0.05) Performance has improved. Found 3 outliers among 100 measurements (3.00%) 3 (3.00%) high mild |
77814b1
to
71ac816
Compare
71ac816
to
ebb0f7a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ArniStarkware reviewed 9 of 12 files at r1, all commit messages.
Reviewable status: 9 of 12 files reviewed, all discussions resolved (waiting on @ayeletstarkware, @noamsp-starkware, and @ShahakShama)
crates/starknet_api/src/test_utils/declare.rs
line 227 at r1 (raw file):
self.args.clone(), ClassInfo::new(&default_compiled_contract_class(), 100, 100, SierraVersion::LATEST) .unwrap(),
You can't use self.contract_class
, because it is of the wrong type. (self.contract_class: SierraContractClass
vs default_compiled_contract_class(): ContractClass
).
Code quote:
ClassInfo::new(&default_compiled_contract_class(), 100, 100, SierraVersion::LATEST)
.unwrap(),
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ArniStarkware reviewed 1 of 12 files at r1.
Reviewable status: 10 of 12 files reviewed, all discussions resolved (waiting on @ayeletstarkware, @noamsp-starkware, and @ShahakShama)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ArniStarkware reviewed 1 of 12 files at r1.
Reviewable status: 11 of 12 files reviewed, all discussions resolved (waiting on @ayeletstarkware, @noamsp-starkware, and @ShahakShama)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ArniStarkware reviewed 1 of 12 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @ayeletstarkware, @noamsp-starkware, and @ShahakShama)
crates/apollo_gateway/src/gateway_test.rs
line 214 at r1 (raw file):
tx_args: &impl TestingTxArgs, ) { let internal_tx = tx_args.get_internal_tx();
No need to pass the rpc_tx separately.
Suggestion:
fn setup_transaction_converter_mock(
mock_transaction_converter: &mut MockTransactionConverterTrait,
tx_args: &impl TestingTxArgs,
) {
let rpc_tx = tx_args.get_rpc_tx();
let internal_tx = tx_args.get_internal_tx();
d28bb76
to
4f9614e
Compare
ebb0f7a
to
150836a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 11 of 12 files reviewed, 1 unresolved discussion (waiting on @ArniStarkware, @ayeletstarkware, @noamsp-starkware, and @ShahakShama)
crates/apollo_gateway/src/gateway_test.rs
line 214 at r1 (raw file):
Previously, ArniStarkware (Arnon Hod) wrote…
No need to pass the rpc_tx separately.
Done.
crates/starknet_api/src/test_utils/declare.rs
line 227 at r1 (raw file):
Previously, ArniStarkware (Arnon Hod) wrote…
You can't use
self.contract_class
, because it is of the wrong type. (self.contract_class: SierraContractClass
vsdefault_compiled_contract_class(): ContractClass
).
Right, that's why I'm not using it.
150836a
to
63c1a13
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ArniStarkware reviewed 2 of 2 files at r2, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @ayeletstarkware, @noamsp-starkware, and @ShahakShama)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status:
complete! all files reviewed, all discussions resolved (waiting on @ayeletstarkware, @noamsp-starkware, and @ShahakShama)
63c1a13
to
38cfe26
Compare
Merge activity
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ArniStarkware reviewed 1 of 1 files at r3, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @ayeletstarkware, @noamsp-starkware, and @ShahakShama)
No description provided.