Skip to content
This repository was archived by the owner on Mar 20, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
95d819c
Add pangoro s2s subql
fewensa May 23, 2022
112fcd7
Fix wrong job name
fewensa May 23, 2022
3a58ff7
Clean bridge pangolin-pangoro
fewensa May 23, 2022
3e60f4d
Add client for pangolin-pangoro
fewensa May 23, 2022
fcc798d
Template bridge pangolin-pangoro
fewensa May 23, 2022
18b3360
Merge remote-tracking branch 'origin/master' into fewensa-refactor-s2s
fewensa May 23, 2022
8d9b30d
Init bridge
fewensa May 24, 2022
027d65e
remodel client
fewensa May 24, 2022
4150ba2
Add client traits
fewensa May 24, 2022
cd228b5
Simplify client
fewensa May 24, 2022
e74f531
Add subscribe_justification
fewensa May 24, 2022
ca0eba1
Fix subscribe types
fewensa May 24, 2022
a26c481
Read justification
fewensa May 25, 2022
0f3594e
Read initial authorities set
fewensa May 25, 2022
08d4845
Read authorities
fewensa May 26, 2022
8be3b92
Prepare initialization data
fewensa May 26, 2022
f5ad49c
Prepare initialization data for pangolin
fewensa May 26, 2022
0529e26
Init bridge
fewensa May 27, 2022
90293dd
Add header/message/feemarket service
fewensa May 27, 2022
0f758a8
init pangolin -> pangoro header relay
fewensa May 27, 2022
e94d18f
Merge remote-tracking branch 'origin/master' into fewensa-refactor-s2s
fewensa May 30, 2022
70531ed
Merge remote-tracking branch 'origin/master' into fewensa-refactor-s2s
fewensa May 30, 2022
8ead8a8
Update deps
fewensa May 30, 2022
cfdd9a0
pangolin -> pangoro header relay
fewensa May 30, 2022
8daba26
Call header relay
fewensa May 30, 2022
665f854
pangoro -> pangolin header relay
fewensa May 30, 2022
c9e2c60
Add message relay service
fewensa May 31, 2022
7bfbfac
Try message relay
fewensa Jun 7, 2022
30bdff1
Merge remote-tracking branch 'origin/master' into fewensa-refactor-s2s
fewensa Jun 7, 2022
ec2c8d9
message delivery relay
fewensa Jun 7, 2022
b8dd2d2
clippy
fewensa Jun 7, 2022
aef3b1b
receiving relay
fewensa Jun 7, 2022
f5a74d6
Test relay
fewensa Jun 8, 2022
f0ea4b2
Test message relay
fewensa Jun 8, 2022
7628d1d
fix duplicated receiving relay and fix delivery proof
fewensa Jun 9, 2022
815a507
fix duplicated receiving relay
fewensa Jun 9, 2022
d49c265
fix duplicated delivery relay
fewensa Jun 9, 2022
609ba70
Enable subscribe justification and more helpful log for header relay
fewensa Jun 9, 2022
faf5042
Fix duplicated delivery relay
fewensa Jun 9, 2022
8ffb222
Fix duplicated receiving relay
fewensa Jun 9, 2022
70f61e1
Fix wrong justification subscribe
fewensa Jun 9, 2022
94bbe56
On demand dispatch header relay
fewensa Jun 9, 2022
b90f6cc
Merge remote-tracking branch 'origin/master' into fewensa-refactor-s2s
fewensa Jun 9, 2022
efae90b
Trigger CI
fewensa Jun 9, 2022
8147699
Add more fields for need relay block
fewensa Jun 9, 2022
1373978
Fix event filter and increase startBlock
fewensa Jun 10, 2022
608cff2
Test message relay
fewensa Jun 10, 2022
9533d7b
Test message relay
fewensa Jun 10, 2022
93ae38e
Better log
fewensa Jun 10, 2022
e4d645d
Reorder for feemarket relay strategy
fewensa Jun 10, 2022
4307a30
Test CI
fewensa Jun 10, 2022
96e2714
Merge master and fix conflicts
hackfisher Jun 13, 2022
830faf4
update lock
hackfisher Jun 13, 2022
ff12a8b
try fix clippy
hackfisher Jun 13, 2022
8799311
fix compile
hackfisher Jun 13, 2022
1d44230
pangolin to pangoro message delivery
fewensa Jun 14, 2022
b7a0a1a
Fix wrong direction
fewensa Jun 14, 2022
0678353
Remove useless file
fewensa Jun 14, 2022
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
7 changes: 4 additions & 3 deletions .github/workflows/subquery-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
strategy:
max-parallel: 1
matrix:
chain:
chain:
- kusama
- rococo
steps:
Expand All @@ -65,14 +65,15 @@ jobs:
subql_path: subql/parachain/${{ matrix.chain }}

bridge-s2s:
name: Subql Parachain
name: Subql s2s
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
chain:
chain:
- pangolin
- pangolin-parachain
- pangoro
- rococo
- crab
- crab-parachain
Expand Down
48 changes: 9 additions & 39 deletions .maintain/config/bridge-pangolin-pangoro.toml
Original file line number Diff line number Diff line change
@@ -1,53 +1,14 @@
[pangolin]
endpoint = "wss://pangolin-rpc.darwinia.network"
signer = "//Alice"
# Bundle/Auto/Custom
runtime_version_mode = "Bundle"
# If the runtime version mode is custom, you need to set this.
#spec_version = 12345
# If the runtime version mode is custom, you need to set this.
#transaction_version = 0

[pangoro]
endpoint = "wss://pangoro-rpc.darwinia.network"
signer = "//Alice"
# Bundle/Auto/Custom
runtime_version_mode = "Bundle"
# If the runtime version mode is custom, you need to set this.
#spec_version = 12345
# If the runtime version mode is custom, you need to set this.
#transaction_version = 0

[relay]
# substrate-substrate bridger message relay lanes, default use `00000000`
lanes = ["726f6c69"]
# (optional) The relay message signer, if not set will use [panglin.signer]
signer_pangolin = "//Alice"
# (optional) the relay message signer, if not set will use [pangoro.signer]
signer_pangoro = "//Alice"
# If passed, only mandatory headers (headers that are changing the GRANDPA authorities set) are relayed.
only_mandatory_headers = false
# Create relayers fund accounts on both chains, if it does not exists yet.
create_relayers_fund_accounts = false

# The SURI of secret key to use when transactions are submitted to the pangolin node.
#pangolin_messages_pallet_owner = "//PangoroMessagesOwner"
# The password for the SURI of secret key to use when transactions are submitted to the pangolin node.
#pangolin_messages_pallet_owner_password = "123456"
# The SURI of secret key to use when transactions are submitted to the pangoro node.
#pangoro_messages_pallet_owner = "//PangolinMessagesOwner"
# The password for the SURI of secret key to use when transactions are submitted to the pangoro node.
#pangoro_messages_pallet_owner_password = "123456"

# Transactions mortality period, in blocks. MUST be a power of two in [4; 65536] range.
# MAY NOT be larger than `BlockHashCount` parameter of the chain system module.
# Discuss: https://github.com/darwinia-network/bridger/pull/266#discussion_r705943606
#transactions_mortality = 256

[relay.prometheus_params]
no_prometheus = false
prometheus_host = "127.0.0.1"
prometheus_port = 9616

#[feemarket]
#[feemarket.subscan_left]
Expand All @@ -69,3 +30,12 @@ interval_update_fee = 1800
# - Crazy: If the first assigned relay is not mine. set the first assigned relayer's fee-1 to your fee.
# - Reasonable: Query rencently orders from subscan. and calculate your fee.
update_fee_strategy = "Nothing"

[index.pangolin]
# Subquery pangolin indexer queries url
endpoint = "https://api.subquery.network/sq/darwinia-network/subql-bridge-s2s-pangolin"

[index.pangoro]
# Subquery pangoro indexer queries url
endpoint = "https://api.subquery.network/sq/darwinia-network/subql-bridge-s2s-pangoro"

1 change: 1 addition & 0 deletions bridges/crab-crabparachain/Cargo.lock

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

8 changes: 5 additions & 3 deletions bridges/pangolin-pangolinparachain/Cargo.lock

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

2 changes: 1 addition & 1 deletion bridges/pangolin-pangolinparachain/bridge/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ relay-utils = { git = "https://github.com/darwinia-network/d
substrate-relay-helper = { git = "https://github.com/darwinia-network/darwinia-bridges-substrate.git", branch = "darwinia-v0.12.2" }
subxt = { git = "https://github.com/darwinia-network/subxt.git", branch = "darwinia-v0.12.2" }
## component
client-pangolin = { path = "../../../frame/assistants/client-pangolin" }
client-pangolin = { path = "../../../frame/assistants/client-pangolin", features = ["s2s"] }
client-pangolin-parachain = { path = "../../../frame/assistants/client-pangolin-parachain" }
client-rococo = { path = "../../../frame/assistants/client-rococo" }
component-subscan = { path = "../../../frame/components/subscan" }
Expand Down
Loading