Skip to content

feat(API): add axon exclusive rpc method#1184

Merged
ahonn merged 1 commit intomainfrom
axon-rpc
May 15, 2023
Merged

feat(API): add axon exclusive rpc method#1184
ahonn merged 1 commit intomainfrom
axon-rpc

Conversation

@KaoImin
Copy link
Copy Markdown
Contributor

@KaoImin KaoImin commented May 10, 2023

What this PR does / why we need it:

This PR add two axon exclusive rpc methods:

  1. axon_getBlockById(BlockId)
  2. axon_getProofById(BlockId)

Which issue(s) this PR fixes:

Fixes #

Which docs this PR relation:

Ref #

Which toolchain this PR adaption:

No Breaking Change

Special notes for your reviewer:

NIL

CI Description

CI Name Description
Chaos CI Test the liveness and robustness of Axon under terrible network condition
Cargo Clippy Run cargo clippy --all --all-targets --all-features
Coverage Test Get the unit test coverage report
E2E Test Run end-to-end test to check interfaces
Code Format Run cargo +nightly fmt --all -- --check and cargo sort -gwc
Web3 Compatible Test Test the Web3 compatibility of Axon
v3 Core Test Run the compatibility tests provided by Uniswap V3
OCT 1-5 | 6-10 | 11 | 12-15 | 16-19 Run the compatibility tests provided by OpenZeppelin

CI Usage

Check the CI you want to run below, and then comment /run-ci.

CI Switch

  • Chaos CI
  • Cargo Clippy
  • Coverage Test
  • E2E Tests
  • Code Format
  • Unit Tests
  • Web3 Compatible Tests
  • OCT 1-5 And 12-15
  • OCT 6-10
  • OCT 11
  • OCT 16-19
  • v3 Core Tests

@KaoImin KaoImin requested a review from a team as a code owner May 10, 2023 08:48
@KaoImin KaoImin requested review from ahonn and hongda3141 May 10, 2023 08:48
@KaoImin
Copy link
Copy Markdown
Contributor Author

KaoImin commented May 10, 2023

/run-ci

@axon-bot
Copy link
Copy Markdown

axon-bot Bot commented May 10, 2023

CI tests run on commit:

CI test list:

  • Code Format
  • Cargo Clippy
  • Unit Tests

Please check ci test results later.

Ok(ret)
}

async fn get_proof_by_id(&self, block_id: BlockId) -> RpcResult<Option<Proof>> {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is BlockId here hash or number?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

}

#[async_trait]
impl<Adapter: APIAdapter + 'static> AxonRpcServer for AxonRpcImpl<Adapter> {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

maybe miss one rpc to fetch validator_list?

@KaoImin KaoImin changed the title feat: add axon exclusive rpc feat(API): add axon exclusive rpc May 10, 2023
@KaoImin KaoImin changed the title feat(API): add axon exclusive rpc feat(API): add axon exclusive rpc method May 10, 2023
@ahonn ahonn added this pull request to the merge queue May 15, 2023
Merged via the queue into main with commit 9343be0 May 15, 2023
@Flouse Flouse added t:feature and removed feature labels Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants