Skip to content
This repository was archived by the owner on Apr 25, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
bb01014
wip : fix e2e test
1xstj Jan 30, 2025
d8617c3
Merge branch 'main' of github.com:tangle-network/tangle
1xstj Jan 31, 2025
48080bc
Merge branch 'main' of github.com:tangle-network/tangle
1xstj Feb 4, 2025
127c7f7
Merge branch 'main' of github.com:tangle-network/tangle
1xstj Feb 7, 2025
1af58c5
Merge branch 'main' of github.com:tangle-network/tangle
1xstj Feb 12, 2025
d8310ef
Merge branch 'main' of github.com:tangle-network/tangle
1xstj Feb 14, 2025
fdb605d
Merge branch 'main' of github.com:tangle-network/tangle
1xstj Feb 18, 2025
6df4f2e
test with new subcontext
1xstj Feb 25, 2025
01a4186
Merge branch 'main' of github.com:tangle-network/tangle into fix/fix-…
1xstj Feb 25, 2025
64e1850
clippy
1xstj Feb 25, 2025
c9dcbee
Merge branch 'main' of github.com:tangle-network/tangle into fix/upda…
1xstj Feb 26, 2025
2f21791
fix : update e2e tests
1xstj Feb 26, 2025
f2db364
Merge branch 'main' of github.com:tangle-network/tangle into fix/upda…
1xstj Feb 27, 2025
c5edfbb
debug
1xstj Feb 27, 2025
2ee9a9f
fixes
1xstj Feb 27, 2025
247d694
another fix
1xstj Feb 27, 2025
d3731fa
clippy
1xstj Feb 27, 2025
4149b81
cleanup
1xstj Feb 27, 2025
8f4de74
Merge branch 'main' into fix/update-e2e
1xstj Feb 27, 2025
314158c
Merge branch 'main' into fix/update-e2e
drewstone Feb 28, 2025
4327b58
Merge branch 'main' of github.com:tangle-network/tangle into fix/upda…
1xstj Feb 28, 2025
21c2492
fix last e2e
1xstj Feb 28, 2025
7169e17
update ts types
1xstj Feb 28, 2025
808d614
update subxt
1xstj Feb 28, 2025
00b860d
clippy
1xstj Feb 28, 2025
8093a15
bump versions
1xstj Feb 28, 2025
f5c8cd0
Merge branch 'main' of github.com:tangle-network/tangle into release-…
1xstj Mar 2, 2025
58d9080
fix metadata
1xstj Mar 3, 2025
c8f568f
add ismp rpc
1xstj Mar 4, 2025
45b460a
add migration for reward config
1xstj Mar 4, 2025
e0872bd
fix
1xstj Mar 4, 2025
508f55a
clippy
1xstj Mar 4, 2025
0cc58ba
fixes
1xstj Mar 6, 2025
c57219a
fixes
1xstj Mar 6, 2025
9e5a065
v1.2.16
1xstj Mar 6, 2025
d77459a
clippy
1xstj Mar 6, 2025
c389a6b
fix: add rewards precompile
1xstj Mar 7, 2025
80ae335
fmt
1xstj Mar 7, 2025
5ac9b5e
clippy
1xstj Mar 7, 2025
91b6a8f
update metadata
1xstj Mar 7, 2025
1e01b5f
Merge branch 'main' of github.com:tangle-network/tangle into release-…
1xstj Mar 7, 2025
ddb65ee
clippy
1xstj Mar 7, 2025
c5d4f54
Merge branch 'main' of github.com:tangle-network/tangle into release-…
1xstj Mar 7, 2025
85c9174
add metadata for pool assets, resolves #944
1xstj Mar 7, 2025
b1a2398
add metadata for pool assets, resolves #944
1xstj Mar 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
220 changes: 155 additions & 65 deletions Cargo.lock

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace.package]
version = "1.2.10"
version = "1.2.15"
authors = ["Tangle Foundation."]
edition = "2021"
license = "Unlicense"
Expand Down Expand Up @@ -48,6 +48,7 @@ members = [
"precompiles/assets",
"precompiles/vesting",
"precompiles/staking",
"precompiles/rewards",
"tangle-subxt",
"evm-tracer",
]
Expand Down Expand Up @@ -334,6 +335,7 @@ pallet-evm-precompile-verify-schnorr-signatures = { path = "precompiles/verify-s
pallet-evm-precompile-verify-bls381-signature = { path = "precompiles/verify-bls381-signature", default-features = false }
pallet-evm-precompile-services = { path = "precompiles/services", default-features = false }
pallet-evm-precompile-tangle-lst = { path = "precompiles/tangle-lst", default-features = false }
pallet-evm-precompile-rewards = { path = "precompiles/rewards", default-features = false }

# Precompiles utils
postcard = { version = "1", default-features = false }
Expand Down
2 changes: 2 additions & 0 deletions node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ pallet-transaction-payment = { workspace = true }
pallet-transaction-payment-rpc = { workspace = true }
pallet-transaction-payment-rpc-runtime-api = { workspace = true }
sc-transaction-pool-api = { workspace = true }
pallet-ismp-runtime-api = { workspace = true }
pallet-ismp-rpc = { workspace = true }

# Frontier
fc-api = { workspace = true }
Expand Down
2 changes: 2 additions & 0 deletions node/src/manual_seal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,7 @@ pub async fn new_full<Network: sc_network::NetworkBackend<Block, <Block as Block
Some(shared_authority_set.clone()),
);

let backend_clone = backend.clone();
Box::new(
move |deny_unsafe, subscription_task_executor: sc_rpc::SubscriptionTaskExecutor| {
let deps = crate::rpc::FullDeps {
Expand All @@ -524,6 +525,7 @@ pub async fn new_full<Network: sc_network::NetworkBackend<Block, <Block as Block
subscription_executor: subscription_task_executor.clone(),
finality_provider: finality_proof_provider.clone(),
},
backend: backend_clone.clone(),
};

crate::rpc::create_full(
Expand Down
19 changes: 15 additions & 4 deletions node/src/rpc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@
use jsonrpsee::RpcModule;
use std::sync::Arc;
// Substrate
use pallet_ismp_rpc::{IsmpApiServer, IsmpRpcHandler};
use sc_client_api::{
backend::{Backend, StorageProvider},
client::BlockchainEvents,
};
use sc_client_api::{BlockBackend, ProofProvider};
use sc_consensus_babe::BabeWorkerHandle;
use sc_consensus_grandpa::{
FinalityProofProvider, GrandpaJustificationStream, SharedAuthoritySet, SharedVoterState,
Expand All @@ -34,6 +36,7 @@ use sp_api::{CallApiAt, ProvideRuntimeApi};
use sp_blockchain::{Error as BlockChainError, HeaderBackend, HeaderMetadata};
use sp_consensus::SelectChain;
use sp_consensus_babe::BabeApi;
use sp_core::H256;
use sp_keystore::KeystorePtr;
use sp_runtime::traits::Block as BlockT;
use tangle_primitives::Block;
Expand Down Expand Up @@ -87,6 +90,8 @@ pub struct FullDeps<C, P, A: ChainApi, CT, SC, B, CIDP> {
pub select_chain: SC,
/// GRANDPA specific dependencies.
pub grandpa: GrandpaDeps<B>,
/// Backend
pub backend: Arc<B>,
}

pub struct DefaultEthConfig<C, BE>(std::marker::PhantomData<(C, BE)>);
Expand All @@ -113,7 +118,7 @@ pub fn create_full<C, P, BE, A, CT, SC, B, CIDP>(
>,
) -> Result<RpcModule<()>, Box<dyn std::error::Error + Send + Sync>>
where
C: CallApiAt<Block> + ProvideRuntimeApi<Block>,
C: CallApiAt<Block> + ProvideRuntimeApi<Block> + ProofProvider<Block> + BlockBackend<Block>,
C::Api: substrate_frame_rpc_system::AccountNonceApi<Block, AccountId, Index>,
C::Api: sp_block_builder::BlockBuilder<Block>,
C::Api: pallet_transaction_payment_rpc::TransactionPaymentRuntimeApi<Block, Balance>,
Expand All @@ -134,6 +139,7 @@ where
+ HeaderMetadata<Block, Error = BlockChainError>
+ StorageProvider<Block, BE>,
BE: Backend<Block> + 'static,
C::Api: pallet_ismp_runtime_api::IsmpRuntimeApi<Block, H256>,
P: TransactionPool<Block = Block> + 'static,
A: ChainApi<Block = Block> + 'static,
CT: fp_rpc::ConvertTransaction<<Block as BlockT>::Extrinsic> + Send + Sync + 'static,
Expand All @@ -150,7 +156,7 @@ where
use substrate_frame_rpc_system::{System, SystemApiServer};

let mut io = RpcModule::new(());
let FullDeps { client, pool, deny_unsafe, eth, babe, select_chain, grandpa } = deps;
let FullDeps { client, pool, deny_unsafe, eth, babe, select_chain, grandpa, backend } = deps;

let GrandpaDeps {
shared_voter_state,
Expand All @@ -164,6 +170,7 @@ where
io.merge(TransactionPayment::new(client.clone()).into_rpc())?;
io.merge(ServicesClient::new(client.clone()).into_rpc())?;
io.merge(RewardsClient::new(client.clone()).into_rpc())?;
io.merge(IsmpRpcHandler::new(client.clone(), backend)?.into_rpc())?;

if let Some(babe) = babe {
let BabeDeps { babe_worker_handle, keystore } = babe;
Expand Down Expand Up @@ -207,7 +214,7 @@ pub fn create_full<C, P, BE, A, CT, SC, B, CIDP>(
>,
) -> Result<RpcModule<()>, Box<dyn std::error::Error + Send + Sync>>
where
C: CallApiAt<Block> + ProvideRuntimeApi<Block>,
C: CallApiAt<Block> + ProvideRuntimeApi<Block> + ProofProvider<Block> + BlockBackend<Block>,
C::Api: substrate_frame_rpc_system::AccountNonceApi<Block, AccountId, Index>,
C::Api: sp_block_builder::BlockBuilder<Block>,
C::Api: pallet_transaction_payment_rpc::TransactionPaymentRuntimeApi<Block, Balance>,
Expand All @@ -221,6 +228,7 @@ where
+ HeaderMetadata<Block, Error = BlockChainError>
+ StorageProvider<Block, BE>,
BE: Backend<Block> + 'static,
// C::Api: pallet_ismp_runtime_api::IsmpRuntimeApi<Block, H256>,
P: TransactionPool<Block = Block> + 'static,
A: ChainApi<Block = Block> + 'static,
CT: fp_rpc::ConvertTransaction<<Block as BlockT>::Extrinsic> + Send + Sync + 'static,
Expand All @@ -235,7 +243,9 @@ where
use substrate_frame_rpc_system::{System, SystemApiServer};

let mut io = RpcModule::new(());
let FullDeps { client, pool, deny_unsafe, eth, babe, select_chain, grandpa } = deps;

#[allow(unused_variables)]
let FullDeps { client, pool, deny_unsafe, eth, babe, select_chain, grandpa, backend } = deps;

if let Some(babe) = babe {
let BabeDeps { babe_worker_handle, keystore } = babe;
Expand All @@ -255,6 +265,7 @@ where

io.merge(System::new(client.clone(), pool, deny_unsafe).into_rpc())?;
io.merge(TransactionPayment::new(client.clone()).into_rpc())?;
//io.merge(IsmpRpcHandler::new(client.clone(), backend)?.into_rpc())?;

io.merge(
Grandpa::new(
Expand Down
2 changes: 2 additions & 0 deletions node/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,7 @@ pub async fn new_full<Network: sc_network::NetworkBackend<Block, <Block as Block
Some(shared_authority_set.clone()),
);

let backend_clone = backend.clone();
Box::new(
move |deny_unsafe, subscription_task_executor: sc_rpc::SubscriptionTaskExecutor| {
let deps = crate::rpc::FullDeps {
Expand All @@ -544,6 +545,7 @@ pub async fn new_full<Network: sc_network::NetworkBackend<Block, <Block as Block
subscription_executor: subscription_task_executor.clone(),
finality_provider: finality_proof_provider.clone(),
},
backend: backend_clone.clone(),
};

crate::rpc::create_full(
Expand Down
Loading