difftreelog
feat custom rpc
in: master
7 files changed
Cargo.tomldiffbeforeafterboth3members = [3members = [4 'node/*',4 'node/*',5 'pallets/*',5 'pallets/*',6 'client/*',6 'primitives/*',7 'primitives/*',7 'runtime',8 'runtime',8 'crates/*',9 'crates/*',client/rpc/Cargo.tomldiffbeforeafterbothno changes
client/rpc/src/lib.rsdiffbeforeafterbothno changes
node/rpc/Cargo.tomldiffbeforeafterboth13futures = { version = "0.3.17", features = ["compat"] }13futures = { version = "0.3.17", features = ["compat"] }14jsonrpc-core = "15.1.0"14jsonrpc-core = "15.1.0"15jsonrpc-pubsub = "15.1.0"15jsonrpc-pubsub = "15.1.0"16# pallet-contracts-rpc = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.9' }16# pallet-contracts-rpc = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }17pallet-transaction-payment-rpc = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }17pallet-transaction-payment-rpc = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }18pallet-transaction-payment-rpc-runtime-api = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }18pallet-transaction-payment-rpc-runtime-api = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }19sc-client-api = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }19sc-client-api = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }49fc-mapping-sync = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.10" }49fc-mapping-sync = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.10" }505051pallet-nft = { path = "../../pallets/nft" }51pallet-nft = { path = "../../pallets/nft" }52uc-rpc = { path = "../../client/rpc" }53up-rpc = { path = "../../primitives/rpc" }52nft-runtime = { path = "../../runtime" }54nft-runtime = { path = "../../runtime" }535554[features]56[features]node/rpc/src/lib.rsdiffbeforeafterboth1use nft_runtime::{Hash, AccountId, Index, opaque::Block, BlockNumber, Balance};1use nft_runtime::{AccountId, Balance, BlockNumber, CrossAccountId, Hash, Index, opaque::Block};2use fc_rpc::{OverrideHandle, RuntimeApiStorageOverride, SchemaV1Override, StorageOverride};2use fc_rpc::{OverrideHandle, RuntimeApiStorageOverride, SchemaV1Override, StorageOverride};3use fc_rpc_core::types::{FilterPool, PendingTransactions};3use fc_rpc_core::types::{FilterPool, PendingTransactions};4use jsonrpc_pubsub::manager::SubscriptionManager;4use jsonrpc_pubsub::manager::SubscriptionManager;7 backend::{AuxStore, StorageProvider},7 backend::{AuxStore, StorageProvider},8 client::BlockchainEvents,8 client::BlockchainEvents,9};9};10use pallet_nft::NftApi;11use sc_finality_grandpa::{10use sc_finality_grandpa::{12 FinalityProofProvider, GrandpaJustificationStream, SharedAuthoritySet, SharedVoterState,11 FinalityProofProvider, GrandpaJustificationStream, SharedAuthoritySet, SharedVoterState,13};12};98where97where99 Block: sp_api::BlockT,98 Block: sp_api::BlockT,100 C: ProvideRuntimeApi<Block>,99 C: ProvideRuntimeApi<Block>,101 C::Api: pallet_nft::NftApi<Block>,100 C::Api: up_rpc::NftApi<Block, CrossAccountId, AccountId>,102{101{103 fn code(&self, block: &sp_api::BlockId<Block>, account: sp_core::H160) -> Option<Vec<u8>> {102 fn code(&self, block: &sp_api::BlockId<Block>, account: sp_core::H160) -> Option<Vec<u8>> {103 use up_rpc::NftApi;104 self.client104 self.client105 .runtime_api()105 .runtime_api()106 .eth_contract_code(block, account)106 .eth_contract_code(block, account)124 // C::Api: pallet_contracts_rpc::ContractsRuntimeApi<Block, AccountId, Balance, BlockNumber, Hash>,124 // C::Api: pallet_contracts_rpc::ContractsRuntimeApi<Block, AccountId, Balance, BlockNumber, Hash>,125 C::Api: pallet_transaction_payment_rpc::TransactionPaymentRuntimeApi<Block, Balance>,125 C::Api: pallet_transaction_payment_rpc::TransactionPaymentRuntimeApi<Block, Balance>,126 C::Api: fp_rpc::EthereumRuntimeRPCApi<Block>,126 C::Api: fp_rpc::EthereumRuntimeRPCApi<Block>,127 C::Api: pallet_nft::NftApi<Block>,127 C::Api: up_rpc::NftApi<Block, CrossAccountId, AccountId>,128 P: TransactionPool<Block = Block> + 'static,128 P: TransactionPool<Block = Block> + 'static,129 SC: SelectChain<Block> + 'static,129 SC: SelectChain<Block> + 'static,130 B: sc_client_api::Backend<Block> + Send + Sync + 'static,130 B: sc_client_api::Backend<Block> + Send + Sync + 'static,135 EthPubSubApiServer, EthSigner, HexEncodedIdProvider, NetApi, NetApiServer, Web3Api,135 EthPubSubApiServer, EthSigner, HexEncodedIdProvider, NetApi, NetApiServer, Web3Api,136 Web3ApiServer,136 Web3ApiServer,137 };137 };138 use uc_rpc::{NftApi, Nft};138 // use pallet_contracts_rpc::{Contracts, ContractsApi};139 // use pallet_contracts_rpc::{Contracts, ContractsApi};139 use pallet_transaction_payment_rpc::{TransactionPayment, TransactionPaymentApi};140 use pallet_transaction_payment_rpc::{TransactionPayment, TransactionPaymentApi};140 use substrate_frame_rpc_system::{FullSystem, SystemApi};141 use substrate_frame_rpc_system::{FullSystem, SystemApi};196 is_authority,197 is_authority,197 max_past_logs,198 max_past_logs,198 )));199 )));200 io.extend_with(NftApi::to_delegate(Nft::new(client.clone())));199201200 if let Some(filter_pool) = filter_pool {202 if let Some(filter_pool) = filter_pool {201 io.extend_with(EthFilterApiServer::to_delegate(EthFilterApi::new(203 io.extend_with(EthFilterApiServer::to_delegate(EthFilterApi::new(primitives/rpc/Cargo.tomldiffbeforeafterbothno changes
primitives/rpc/src/lib.rsdiffbeforeafterbothno changes