Skip to content

Commit

Permalink
move api into main specific version folder
Browse files Browse the repository at this point in the history
  • Loading branch information
nagmo-starkware committed Jul 11, 2023
1 parent 6389342 commit 739fc25
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
pub mod v0_3_0;

use std::collections::HashSet;

use jsonrpsee::{Methods, RpcModule};
Expand All @@ -9,8 +7,8 @@ use starknet_api::block::{BlockHash, BlockNumber};
use starknet_api::core::{ChainId, ContractAddress};
use starknet_api::transaction::EventKey;

use self::v0_3_0::v0_3_0_impl::JsonRpcServerV0_3_0Impl;
use self::v0_3_0::JsonRpcV0_3_0Server;
use crate::v0_3_0::api::api_impl::JsonRpcServerV0_3_0Impl;
use crate::v0_3_0::api::JsonRpcV0_3_0Server;
use crate::v0_3_0::deprecated_contract_class::ContractClass as DeprecatedContractClass;
use crate::v0_3_0::state::ContractClass;
use crate::v0_3_0::transaction::Event;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ use starknet_api::hash::StarkFelt;
use starknet_api::state::StorageKey;
use starknet_api::transaction::{TransactionHash, TransactionOffsetInBlock};

use super::{BlockHashAndNumber, BlockId, EventFilter, EventsChunk, GatewayContractClass};
use crate::api::{BlockHashAndNumber, BlockId, EventFilter, EventsChunk, GatewayContractClass};
use crate::v0_3_0::block::Block;
use crate::v0_3_0::state::StateUpdate;
use crate::v0_3_0::transaction::{TransactionReceiptWithStatus, TransactionWithType};

pub mod v0_3_0_impl;
pub mod api_impl;
#[cfg(test)]
mod v0_3_0_test;
mod test;

#[versioned_rpc("V0_3_0")]
pub trait JsonRpc {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ use test_utils::{
get_rng, get_test_block, get_test_body, get_test_state_diff, send_request, GetTestInstance,
};

use crate::api::v0_3_0::v0_3_0_impl::JsonRpcServerV0_3_0Impl;
use crate::api::{
BlockHashAndNumber, BlockHashOrNumber, BlockId, ContinuationToken, EventFilter, EventsChunk,
JsonRpcError, Tag,
};
use crate::test_utils::{
get_starknet_spec_api_schema, get_test_gateway_config, get_test_rpc_server_and_storage_writer,
};
use crate::v0_3_0::api::api_impl::JsonRpcServerV0_3_0Impl;
use crate::v0_3_0::block::Block;
use crate::v0_3_0::deprecated_contract_class::ContractClass as DeprecatedContractClass;
use crate::v0_3_0::state::{ContractClass, StateUpdate, ThinStateDiff};
Expand Down
1 change: 1 addition & 0 deletions crates/papyrus_gateway/src/v0_3_0/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
pub mod api;
pub mod block;
pub mod deprecated_contract_class;
pub mod state;
Expand Down

0 comments on commit 739fc25

Please sign in to comment.