Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

Migrate to new s2s bridge #479

Merged
merged 37 commits into from
Jul 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
d3366da
try fix subscribe service stopped
fewensa Jun 24, 2022
09cebe0
Add bridge_pangolinparachain to pangolin
furoxr Jun 24, 2022
ef00959
update pangolin-pangolinparachain
fewensa Jun 24, 2022
db14513
fix features
fewensa Jun 24, 2022
24b60ce
add fastapi
fewensa Jun 24, 2022
b4a1ca7
fill implements
fewensa Jun 24, 2022
272da1c
Update pangolin-pangolinparachain
fewensa Jun 24, 2022
daf9ea5
bridge pangolin-pangolinparachain
fewensa Jun 25, 2022
d1efa8b
fix chain name
fewensa Jun 25, 2022
107d5e6
update rust toolchain
fewensa Jun 25, 2022
03bbece
bump deps
fewensa Jun 25, 2022
3629ccb
update log
fewensa Jun 25, 2022
c0ded67
fix pangolin parachain dispatch on-demand header relay
fewensa Jun 25, 2022
71988f4
fix initialize
fewensa Jun 25, 2022
af9fbde
bump deps
fewensa Jun 27, 2022
864b905
fix pangolin-pangoro
fewensa Jun 27, 2022
e6c450b
bridge darwinia-crab
fewensa Jun 27, 2022
2d0c4bb
bridge crab-crabparachain
fewensa Jun 28, 2022
b712583
migrate initialize to s2sclientrelay
fewensa Jun 28, 2022
59e5109
make changes follow array-bytes upgraded
fewensa Jun 28, 2022
989518f
Remove useless file
fewensa Jun 28, 2022
5f1984c
Update rust toolchain
fewensa Jun 28, 2022
97f5a86
Update rust toolchain
fewensa Jun 28, 2022
3239b2d
migrate feemarket-ns2s to feemarket-s2s
fewensa Jun 28, 2022
6bc3862
fix compile
fewensa Jun 28, 2022
ba9379a
bump subxt
fewensa Jun 30, 2022
af15666
bump deps
fewensa Jun 30, 2022
01ce005
bump deps
fewensa Jun 30, 2022
a69574a
fix substrate version and compile
fewensa Jun 30, 2022
a53e65f
Trigger ci
fewensa Jun 30, 2022
ea7eee0
Add subql-s2s-darwinia
fewensa Jun 30, 2022
5f0447a
fix tests
fewensa Jun 30, 2022
adfc6d8
fix wrong feemarket orders stroage key
fewensa Jun 30, 2022
99a7b00
rename abstract to traits
fewensa Jul 1, 2022
43cf841
fix tests
fewensa Jul 1, 2022
39eb18d
Lint
fewensa Jul 1, 2022
e94b39b
Update subql
fewensa Jul 1, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
63 changes: 3 additions & 60 deletions .maintain/config/bridge-darwinia-crab.toml
Original file line number Diff line number Diff line change
@@ -1,71 +1,14 @@
[darwinia]
endpoint = "wss://rpc.darwinia.network"
signer = "//Alice"
# Bundle/Auto/Custom
runtime_version_mode = "Bundle"
hackfisher marked this conversation as resolved.
Show resolved Hide resolved
# 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

[crab]
endpoint = "wss://crab-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 = ["00000000"]
# (optional) The relay message signer, if not set will use [darwinia.signer]
signer_darwinia = "//Alice"
# (optional) the relay message signer, if not set will use [crab.signer]
signer_crab = "//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 darwinia node.
#darwinia_messages_pallet_owner = "//CrabMessagesOwner"
# The password for the SURI of secret key to use when transactions are submitted to the darwinia node.
#darwinia_messages_pallet_owner_password = "123456"
# The SURI of secret key to use when transactions are submitted to the crab node.
#crab_messages_pallet_owner = "//DarwiniaMessagesOwner"
# The password for the SURI of secret key to use when transactions are submitted to the crab node.
#crab_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]
#endpoint = "https://darwinia.api.subscan.io"
#token = "12345abcde"
#timeout = 30
#
#[feemarket.subscan_right]
#endpoint = "https://crab.api.subscan.io"
#token = "12345abcde"
#timeout = 30

[task]
# 1800 seconds, 30 minutes
interval_update_fee = 1800

# Bundle 3 strategy update your fee
# - Nothing: Nothing to do
# - 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]
darwinia = { endpoint = "https://api.subquery.network/sq/darwinia-network/subql-bridge-s2s-darwinia" }
crab = { endpoint = "https://api.subquery.network/sq/darwinia-network/subql-bridge-s2s-crab" }
46 changes: 11 additions & 35 deletions .maintain/config/bridge-pangolin-pangolinparachain.toml
Original file line number Diff line number Diff line change
@@ -1,47 +1,23 @@
[pangolin]
endpoint = "wss://pangolin-rpc.darwinia.network:443"
endpoint = "wss://pangolin-rpc.darwinia.network"
runtime_version_mode = "Auto"
signer = "//Alice"

[rococo]
endpoint = "wss://rococo-rpc.polkadot.io:443"
endpoint = "wss://rococo-rpc.polkadot.io"
runtime_version_mode = "Auto"
signer = "//Alice"

[pangolin_parachain]
para_id = 2105
endpoint = "wss://pangolin-parachain-rpc.darwinia.network:443"
endpoint = "wss://pangolin-parachain-rpc.darwinia.network"
runtime_version_mode = "Auto"
signer = "//Alice"

[relay]
# substrate-substrate bridger message relay lanes
auto_start = true
create_relayers_fund_accounts = false
lanes = ["70616c69"]
only_mandatory_headers = false

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

[task]
interval_update_fee = 3600
update_fee_strategy = "Nothing"

[index.pangolin]
# Subquery pangolin indexer queries url
endpoint = "http://localhost:3000"

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

[index.rococo]
# Subquery rococo indexer queries url
endpoint = "http://localhost:3001"

[index.parachain_rococo]
# Subquery parachain_rococo indexer queries url
endpoint = "https://api.subquery.network/sq/darwinia-network/subql-parachain-rococo"
lanes = ["70616c69"]
para_id = 2105

[index]
pangolin = { endpoint = "https://api.subquery.network/sq/darwinia-network/subql-bridge-s2s-pangolin" }
rococo = { endpoint = "https://api.subquery.network/sq/darwinia-network/subql-bridge-s2s-rococo" }
pangolin_parachain = { endpoint = "https://api.subquery.network/sq/fewensa/subql-bridge-s2s-pangolin-parachain" }
parachain_rococo = { endpoint = "https://api.subquery.network/sq/darwinia-network/subql-parachain-rococo" }
32 changes: 3 additions & 29 deletions .maintain/config/bridge-pangolin-pangoro.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,35 +7,9 @@ endpoint = "wss://pangoro-rpc.darwinia.network"
signer = "//Alice"

[relay]
# substrate-substrate bridger message relay lanes, default use `00000000`
lanes = ["726f6c69"]

#[feemarket]
#[feemarket.subscan_left]
#endpoint = "https://pangolin.api.subscan.io"
#token = "12345abcde"
#timeout = 30
#
#[feemarket.subscan_right]
#endpoint = "https://pangoro.api.subscan.io"
#token = "12345abcde"
#timeout = 30

[task]
# 1800 seconds, 30 minutes
interval_update_fee = 1800

# Bundle 3 strategy update your fee
# - Nothing: Nothing to do
# - 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"
[index]
pangolin = { endpoint = "https://api.subquery.network/sq/darwinia-network/subql-bridge-s2s-pangolin" }
pangoro = { endpoint = "https://api.subquery.network/sq/darwinia-network/subql-bridge-s2s-pangoro" }

Loading