This repository was archived by the owner on Mar 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Migrate to new s2s bridge #479
Merged
Merged
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 09cebe0
Add bridge_pangolinparachain to pangolin
furoxr ef00959
update pangolin-pangolinparachain
fewensa db14513
fix features
fewensa 24b60ce
add fastapi
fewensa b4a1ca7
fill implements
fewensa 272da1c
Update pangolin-pangolinparachain
fewensa daf9ea5
bridge pangolin-pangolinparachain
fewensa d1efa8b
fix chain name
fewensa 107d5e6
update rust toolchain
fewensa 03bbece
bump deps
fewensa 3629ccb
update log
fewensa c0ded67
fix pangolin parachain dispatch on-demand header relay
fewensa 71988f4
fix initialize
fewensa af9fbde
bump deps
fewensa 864b905
fix pangolin-pangoro
fewensa e6c450b
bridge darwinia-crab
fewensa 2d0c4bb
bridge crab-crabparachain
fewensa b712583
migrate initialize to s2sclientrelay
fewensa 59e5109
make changes follow array-bytes upgraded
fewensa 989518f
Remove useless file
fewensa 5f1984c
Update rust toolchain
fewensa 97f5a86
Update rust toolchain
fewensa 3239b2d
migrate feemarket-ns2s to feemarket-s2s
fewensa 6bc3862
fix compile
fewensa ba9379a
bump subxt
fewensa af15666
bump deps
fewensa 01ce005
bump deps
fewensa a69574a
fix substrate version and compile
fewensa a53e65f
Trigger ci
fewensa ea7eee0
Add subql-s2s-darwinia
fewensa 5f0447a
fix tests
fewensa adfc6d8
fix wrong feemarket orders stroage key
fewensa 99a7b00
rename abstract to traits
fewensa 43cf841
fix tests
fewensa 39eb18d
Lint
fewensa e94b39b
Update subql
fewensa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" | ||
| # 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" } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.