Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
7c98f72
NODE-197, feat: init pallet-cccp-fast-transfer
dnjscksdn98 Jan 6, 2026
27b5d6d
NODE-197, feat: init storage
dnjscksdn98 Jan 7, 2026
30a0aac
NODE-197, chore: rename pallet
dnjscksdn98 Jan 8, 2026
d3fdbb9
NODE-197, feat: migrate to bp-cccp
dnjscksdn98 Jan 8, 2026
1b6198f
NODE-197, feat: complete poll()
dnjscksdn98 Jan 8, 2026
966bac1
NODE-197, feat: complete finalize_poll()
dnjscksdn98 Jan 9, 2026
a8ce96b
NODE-197, chore: refactor poll
dnjscksdn98 Jan 9, 2026
b8d9580
NODE-197, chore: increase call limit
dnjscksdn98 Jan 9, 2026
ef5c04b
NODE-197, chore: update event structurre
dnjscksdn98 Jan 9, 2026
e2b3147
NODE-197, chore: update storage doc-string
dnjscksdn98 Jan 9, 2026
bbd2648
NODE-197, chore: handle unregistered assets gracefully
dnjscksdn98 Jan 9, 2026
bb11b34
NODE-197, feat: handle authority replacements
dnjscksdn98 Jan 9, 2026
63cd051
NODE-197, chore: rename to cccp-relay-queue
dnjscksdn98 Jan 9, 2026
7e1715f
NODE-197, feat: add sudo extrinsics
dnjscksdn98 Jan 11, 2026
9e6866c
NODE-197, fix: handle Integer Overflow Risk in Cap Calculations
dnjscksdn98 Jan 11, 2026
577c0ef
NODE-197, chore: use correct log target
dnjscksdn98 Jan 14, 2026
31e6b49
NODE-197, feat: map an oracle to asset
dnjscksdn98 Jan 16, 2026
83f861a
NODE-197, feat: init ICCCPRelayQueue.sol
dnjscksdn98 Jan 16, 2026
74cba1f
NODE-197, feat: map oracles to native currencies
dnjscksdn98 Jan 16, 2026
ba75355
NODE-197, fix: update StorageDoubleMap keys
dnjscksdn98 Jan 21, 2026
af7db44
NODE-197, fix: include src_tx_id into signature
dnjscksdn98 Jan 23, 2026
a5c100e
NODE-197, chore: remove unused precompiled functions
dnjscksdn98 Jan 23, 2026
2c16ad3
NODE-197, fix: migrate src_tx_id to sequence_id
dnjscksdn98 Jan 27, 2026
5730c53
NODE-197, fix: rollback src_tx_id and split PollSubmissions
dnjscksdn98 Jan 27, 2026
63e04d2
NODE-197, fix: finalize storage migration
dnjscksdn98 Jan 27, 2026
76cbf58
NODE-197, chore: remove migration code
dnjscksdn98 Jan 27, 2026
2a0d93b
NODE-197, refactor: guarantee unique transfers
dnjscksdn98 Jan 28, 2026
8b4a849
NODE-197, fix: clear_prefix when first PendingTransfer approved
dnjscksdn98 Jan 28, 2026
f27f1f0
NODE-197, fix: use ethabi_decode::encode
dnjscksdn98 Jan 28, 2026
4ec2e3f
NODE-197, fix: use proper precompile address in allowed range
dnjscksdn98 Jan 28, 2026
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
54 changes: 54 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

79 changes: 43 additions & 36 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,36 +1,39 @@
[workspace]
resolver = "2"
members = [
"node/core",
"node/common",
"node/dev",
"node/testnet",
"node/mainnet",
"runtime/common",
"runtime/dev",
"runtime/testnet",
"runtime/mainnet",
"pallets/bfc-staking",
"pallets/bfc-utility",
"pallets/bfc-offences",
"pallets/relay-manager",
"pallets/btc-registration-pool",
"pallets/btc-socket-queue",
"pallets/blaze",
"precompiles/bfc-staking",
"precompiles/bfc-offences",
"precompiles/relay-manager",
"precompiles/governance",
"precompiles/collective",
"precompiles/balance",
"precompiles/btc-registration-pool",
"precompiles/btc-socket-queue",
"precompiles/blaze",
"pallets/bifrost-evm-tx-payment",
"precompiles/bifrost-evm-tx-payment",
"primitives/core",
"primitives/bfc-staking",
"primitives/btc-relay",
"node/core",
"node/common",
"node/dev",
"node/testnet",
"node/mainnet",
"runtime/common",
"runtime/dev",
"runtime/testnet",
"runtime/mainnet",
"pallets/bfc-staking",
"pallets/bfc-utility",
"pallets/bfc-offences",
"pallets/relay-manager",
"pallets/btc-registration-pool",
"pallets/btc-socket-queue",
"pallets/blaze",
"pallets/bifrost-evm-tx-payment",
"pallets/cccp-relay-queue",
"precompiles/bfc-staking",
"precompiles/bfc-offences",
"precompiles/relay-manager",
"precompiles/governance",
"precompiles/collective",
"precompiles/balance",
"precompiles/btc-registration-pool",
"precompiles/btc-socket-queue",
"precompiles/blaze",
"precompiles/bifrost-evm-tx-payment",
"precompiles/cccp-relay-queue",
"primitives/core",
"primitives/bfc-staking",
"primitives/btc-relay",
"primitives/cccp",
]
[profile.release]
panic = "unwind"
Expand All @@ -46,15 +49,15 @@ repository = "https://github.com/bifrost-platform/bifrost-node"
# General
substrate-fixed = { version = "0.6.0", default-features = false }
parity-scale-codec = { version = "3.7.5", default-features = false, features = [
"derive",
"derive",
] }
scale-info = { version = "2.11.6", default-features = false, features = [
"derive",
"serde",
"derive",
"serde",
] }
evm = { version = "0.43.4", default-features = false }
ethereum = { version = "0.18.2", default-features = false, features = [
"with-scale",
"with-scale",
] }
clap = { version = "4.5", features = ["derive"] }
hex = { version = "0.4.3", default-features = false }
Expand All @@ -64,7 +67,7 @@ serde = { version = "1.0", default-features = false }
jsonrpsee = { version = "0.24.9" }
log = { version = "0.4.21", default-features = false }
miniscript = { version = "12.3.1", default-features = false, features = [
"no-std",
"no-std",
] }
ethabi-decode = { version = "2.0.0", default-features = false }
hex-literal = "0.4.1"
Expand All @@ -77,6 +80,7 @@ array-bytes = "6.1"
bp-btc-relay = { default-features = false, path = "primitives/btc-relay" }
bp-core = { default-features = false, path = "primitives/core" }
bp-staking = { default-features = false, path = "primitives/bfc-staking" }
bp-cccp = { default-features = false, path = "primitives/cccp" }

# Bifrost Runtime
bifrost-common-constants = { default-features = false, path = "runtime/common/constants" }
Expand All @@ -103,6 +107,7 @@ pallet-btc-registration-pool = { default-features = false, path = "pallets/btc-r
pallet-btc-socket-queue = { default-features = false, path = "pallets/btc-socket-queue" }
pallet-blaze = { default-features = false, path = "pallets/blaze" }
pallet-bifrost-evm-tx-payment = { default-features = false, path = "pallets/bifrost-evm-tx-payment" }
pallet-cccp-relay-queue = { default-features = false, path = "pallets/cccp-relay-queue" }

# Bifrost Precompile
precompile-bfc-staking = { default-features = false, path = "precompiles/bfc-staking" }
Expand All @@ -115,6 +120,8 @@ precompile-btc-registration-pool = { default-features = false, path = "precompil
precompile-btc-socket-queue = { default-features = false, path = "precompiles/btc-socket-queue" }
precompile-blaze = { default-features = false, path = "precompiles/blaze" }
precompile-bifrost-evm-tx-payment = { default-features = false, path = "precompiles/bifrost-evm-tx-payment" }
precompile-cccp-relay-queue = { default-features = false, path = "precompiles/cccp-relay-queue" }

# Substrate Client
sc-cli = { git = "https://github.com/bifrost-platform/polkadot-sdk", branch = "bifrost-polkadot-stable2506" }
sc-client-api = { git = "https://github.com/bifrost-platform/polkadot-sdk", branch = "bifrost-polkadot-stable2506" }
Expand Down Expand Up @@ -200,7 +207,7 @@ substrate-build-script-utils = { git = "https://github.com/bifrost-platform/polk
# Frontier Client
fc-db = { default-features = false, git = "https://github.com/bifrost-platform/bifrost-frontier", branch = "NODE-194" }
fc-rpc = { default-features = false, git = "https://github.com/bifrost-platform/bifrost-frontier", branch = "NODE-194", features = [
"txpool",
"txpool",
] }
fc-mapping-sync = { default-features = false, git = "https://github.com/bifrost-platform/bifrost-frontier", branch = "NODE-194" }
fc-rpc-core = { default-features = false, git = "https://github.com/bifrost-platform/bifrost-frontier", branch = "NODE-194" }
Expand Down
32 changes: 17 additions & 15 deletions pallets/blaze/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ sp-io = { workspace = true }
# Bifrost
bp-btc-relay = { workspace = true }
bp-staking = { workspace = true }
bp-cccp = { workspace = true }

[dev-dependencies]
pallet-balances = { workspace = true }
Expand All @@ -39,22 +40,23 @@ miniscript = { workspace = true }
[features]
default = ["std"]
std = [
"scale-info/std",
"parity-scale-codec/std",
"frame-support/std",
"frame-system/std",
"sp-runtime/std",
"sp-std/std",
"sp-core/std",
"sp-io/std",
"bp-btc-relay/std",
"bp-staking/std",
"scale-info/std",
"parity-scale-codec/std",
"frame-support/std",
"frame-system/std",
"sp-runtime/std",
"sp-std/std",
"sp-core/std",
"sp-io/std",
"bp-btc-relay/std",
"bp-staking/std",
"bp-cccp/std",
]
try-runtime = ["frame-support/try-runtime"]
runtime-benchmarks = [
"frame-benchmarking",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
"bp-btc-relay/runtime-benchmarks",
"frame-benchmarking",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
"bp-btc-relay/runtime-benchmarks",
]
3 changes: 2 additions & 1 deletion pallets/blaze/src/pallet/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ use frame_system::pallet_prelude::*;

use bp_btc_relay::{
blaze::{UtxoInfo, UtxoInfoWithSize},
traits::{BlazeManager, PoolManager, SocketQueueManager, SocketVerifier},
traits::{BlazeManager, PoolManager, SocketQueueManager},
utils::estimate_finalized_input_size,
UnboundedBytes,
};
use bp_cccp::traits::SocketVerifier;
use bp_staking::{traits::Authorities, MAX_AUTHORITIES};
use parity_scale_codec::{alloc::string::ToString, Encode};
use sp_core::H256;
Expand Down
34 changes: 18 additions & 16 deletions pallets/btc-socket-queue/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ sp-io = { workspace = true }
# Bifrost
bp-btc-relay = { workspace = true }
bp-staking = { workspace = true }
bp-cccp = { workspace = true }

# Frontier
pallet-evm = { workspace = true }
Expand All @@ -42,23 +43,24 @@ pallet-timestamp = { workspace = true }
[features]
default = ["std"]
std = [
"scale-info/std",
"parity-scale-codec/std",
"frame-support/std",
"frame-system/std",
"sp-runtime/std",
"sp-std/std",
"sp-core/std",
"sp-io/std",
"bp-btc-relay/std",
"pallet-evm/std",
"scale-info/std",
"parity-scale-codec/std",
"frame-support/std",
"frame-system/std",
"sp-runtime/std",
"sp-std/std",
"sp-core/std",
"sp-io/std",
"bp-btc-relay/std",
"bp-cccp/std",
"pallet-evm/std",
]
try-runtime = ["frame-support/try-runtime"]
runtime-benchmarks = [
"frame-benchmarking",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
"bp-btc-relay/runtime-benchmarks",
"pallet-balances/runtime-benchmarks",
"frame-benchmarking",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
"bp-btc-relay/runtime-benchmarks",
"pallet-balances/runtime-benchmarks",
]
Loading