-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1779 from eqlabs/1775-rpc-v07-config-and-routing
feat(rpc/v0.7): configuration and skeleton
- Loading branch information
Showing
8 changed files
with
5,023 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -261,6 +261,7 @@ impl Color { | |
pub enum RpcVersion { | ||
V05, | ||
V06, | ||
V07, | ||
} | ||
|
||
#[derive(clap::Args)] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
use crate::jsonrpc::{RpcRouter, RpcRouterBuilder}; | ||
|
||
#[rustfmt::skip] | ||
pub fn register_routes() -> RpcRouterBuilder { | ||
RpcRouter::builder("v0.7") | ||
// .register("starknet_blockHashAndNumber" , v02_method::block_hash_and_number) | ||
// .register("starknet_blockNumber" , v02_method::block_number) | ||
// .register("starknet_chainId" , v02_method::chain_id) | ||
// .register("starknet_getBlockTransactionCount" , v02_method::get_block_transaction_count) | ||
// .register("starknet_getClass" , v02_method::get_class) | ||
// .register("starknet_getClassAt" , v02_method::get_class_at) | ||
// .register("starknet_getClassHashAt" , v02_method::get_class_hash_at) | ||
// .register("starknet_getNonce" , v02_method::get_nonce) | ||
// .register("starknet_getStorageAt" , v02_method::get_storage_at) | ||
|
||
// .register("starknet_getEvents" , v03_method::get_events) | ||
// .register("starknet_getStateUpdate" , v03_method::get_state_update) | ||
|
||
// .register("starknet_syncing" , v04_method::syncing) | ||
|
||
// .register("starknet_call" , v05_method::call) | ||
// .register("starknet_getTransactionStatus" , v05_method::get_transaction_status) | ||
|
||
// .register("starknet_addDeclareTransaction" , method::add_declare_transaction) | ||
// .register("starknet_addDeployAccountTransaction" , method::add_deploy_account_transaction) | ||
// .register("starknet_addInvokeTransaction" , method::add_invoke_transaction) | ||
// .register("starknet_estimateFee" , method::estimate_fee) | ||
// .register("starknet_estimateMessageFee" , method::estimate_message_fee) | ||
// .register("starknet_getBlockWithTxHashes" , method::get_block_with_tx_hashes) | ||
// .register("starknet_getBlockWithTxs" , method::get_block_with_txs) | ||
// .register("starknet_getTransactionByBlockIdAndIndex" , method::get_transaction_by_block_id_and_index) | ||
// .register("starknet_getTransactionByHash" , method::get_transaction_by_hash) | ||
// .register("starknet_getTransactionReceipt" , method::get_transaction_receipt) | ||
// .register("starknet_simulateTransactions" , method::simulate_transactions) | ||
.register("starknet_specVersion" , || "0.7.0-rc0") | ||
// .register("starknet_traceBlockTransactions" , method::trace_block_transactions) | ||
// .register("starknet_traceTransaction" , method::trace_transaction) | ||
|
||
.register("pathfinder_getProof" , crate::pathfinder::methods::get_proof) | ||
} |
Oops, something went wrong.