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

refactor: consolidate JSON requests and responses #279

Merged
merged 55 commits into from
Sep 18, 2024

Conversation

gregorydemay
Copy link
Member

@gregorydemay gregorydemay commented Sep 17, 2024

Follow-up on #275 to move JSON rpc requests to src/rpc_client/json/requests.rs and responses to src/rpc_client/json/responses.rs

@gregorydemay gregorydemay changed the title refactor: requests and responses refactor: consolidate JSON requests and responses Sep 17, 2024
@gregorydemay gregorydemay marked this pull request as ready for review September 17, 2024 11:32
Base automatically changed from gdemay/243-cketh-client-simplify to main September 18, 2024 14:04
# Conflicts:
#	Cargo.toml
#	src/candid_rpc/cketh_conversion.rs
#	src/main.rs
#	src/rpc_client/checked_amount/mod.rs
#	src/rpc_client/eth_rpc/mod.rs
#	src/rpc_client/eth_rpc/tests.rs
#	src/rpc_client/eth_rpc_error/mod.rs
#	src/rpc_client/mod.rs
#	src/rpc_client/tests.rs
@gregorydemay gregorydemay merged commit bbd7046 into main Sep 18, 2024
3 checks passed
@gregorydemay gregorydemay deleted the gdemay/243-cketh-client-reorg branch September 18, 2024 14:52
gregorydemay added a commit that referenced this pull request Sep 20, 2024
Follow-up on #279 to move JSON types into `src/rpc_client/json` and
remove some unused code.
gregorydemay added a commit that referenced this pull request Oct 3, 2024
Fix a bug introduced by #279, where the constant `HTTP_MAX_SIZE` was
changed from 2 MB to 2 MiB. This is wrong since per the [IC
specification
](https://internetcomputer.org/docs/current/references/ic-interface-spec#ic-http_request)
`max_response_bytes` must be at most `2_000_000` bytes and HTTPs
outcalls using a bigger value for `max_response_bytes` will be rejected.
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.

3 participants