This PR adds initial state machine tests for the Candid-RPC endpoints.
Progress:
[x] Adjust EvmRpcSetup implementation based on feedback in previous code reviews
[x] Test unexpected fields in JSON-RPC responses
[x] Add CandidType trait implementations in ckETH codebase
[x] Implement "success cases" for each Candid-RPC method
[x] Implement "fail cases" for Candid-RPC methods
Note that this PR also switches the canister to use the original JSON-RPC camelCase naming conventions, which ended up being necessary due to limitations with the Candid Rust implementation. This has the side benefit of being more consistent with the large amount of existing documentation on JSON-RPC methods across the Internet.
This PR adds initial state machine tests for the Candid-RPC endpoints.
Progress:
EvmRpcSetup
implementation based on feedback in previous code reviewsCandidType
trait implementations in ckETH codebaseNote that this PR also switches the canister to use the original JSON-RPC camelCase naming conventions, which ended up being necessary due to limitations with the Candid Rust implementation. This has the side benefit of being more consistent with the large amount of existing documentation on JSON-RPC methods across the Internet.
Resolves #91.
Future work:
97
98