git.delta.rocks / unique-network / refs/commits / 012eb4335d15

difftreelog

refactor disable contracts in collator

Yaroslav Bolyukin2021-07-08parent: #8def008.patch.diff
in: master

3 files changed

modifiednode/cli/Cargo.tomldiffbeforeafterboth
--- a/node/cli/Cargo.toml
+++ b/node/cli/Cargo.toml
@@ -193,17 +193,6 @@
 branch = 'polkadot-v0.9.7'
 version = '3.0.0'
 
-[dependencies.pallet-contracts]
-git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.7'
-version = '3.0.0'
-
-[dependencies.pallet-contracts-rpc]
-git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.7'
-version = '3.0.0'
-
-
 [dependencies.sc-network]
 git = 'https://github.com/paritytech/substrate.git'
 branch = 'polkadot-v0.9.7'
modifiednode/rpc/Cargo.tomldiffbeforeafterboth
--- a/node/rpc/Cargo.toml
+++ b/node/rpc/Cargo.toml
@@ -13,7 +13,7 @@
 futures = { version = "0.3.1", features = ["compat"] }
 jsonrpc-core = "15.0.0"
 jsonrpc-pubsub = "15.0.0"
-pallet-contracts-rpc = { version = "3.0", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.7' }
+# pallet-contracts-rpc = { version = "3.0", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.7' }
 pallet-transaction-payment-rpc = { version = "3.0", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.7' }
 pallet-transaction-payment-rpc-runtime-api = { version = "3.0", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.7' }
 sc-client-api = { version = "3.0", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.7' }
modifiednode/rpc/src/lib.rsdiffbeforeafterboth
121 C: BlockchainEvents<Block>,121 C: BlockchainEvents<Block>,
122 C::Api: substrate_frame_rpc_system::AccountNonceApi<Block, AccountId, Index>,122 C::Api: substrate_frame_rpc_system::AccountNonceApi<Block, AccountId, Index>,
123 C::Api: BlockBuilder<Block>,123 C::Api: BlockBuilder<Block>,
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: pallet_nft::NftApi<Block>,
135 EthPubSubApiServer, EthSigner, HexEncodedIdProvider, NetApi, NetApiServer, Web3Api,135 EthPubSubApiServer, EthSigner, HexEncodedIdProvider, NetApi, NetApiServer, Web3Api,
136 Web3ApiServer,136 Web3ApiServer,
137 };137 };
138 use pallet_contracts_rpc::{Contracts, ContractsApi};138 // use pallet_contracts_rpc::{Contracts, ContractsApi};
139 use pallet_transaction_payment_rpc::{TransactionPayment, TransactionPaymentApi};139 use pallet_transaction_payment_rpc::{TransactionPayment, TransactionPaymentApi};
140 use substrate_frame_rpc_system::{FullSystem, SystemApi};140 use substrate_frame_rpc_system::{FullSystem, SystemApi};
141141
164 client.clone(),164 client.clone(),
165 )));165 )));
166166
167 io.extend_with(ContractsApi::to_delegate(Contracts::new(client.clone())));167 // io.extend_with(ContractsApi::to_delegate(Contracts::new(client.clone())));
168168
169 let mut signers = Vec::new();169 let mut signers = Vec::new();
170 if enable_dev_signer {170 if enable_dev_signer {