This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 458
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance interop example scripts (#9109)
* π± Add hello and react module * π Fix schema for react ccCommand * π₯ Remove ccmID from CcmSendSuccessEvent topics * β»οΈ Fix schema and ccCommand execute * Generalize sidechain_registration.ts * Generalize mainchain_registration.ts * Revert "π₯ Remove ccmID from CcmSendSuccessEvent topics" This reverts commit b4f0e3f. * transfer_lsk_sidechain_one.ts * Update mainchain_registration.ts for sc1&2 * Apply suggestions from code review Co-authored-by: !shan <ishantiw.quasar@gmail.com> * Fix name bug * Fix error * Update sidechain_registration.ts --------- Co-authored-by: Ishan <ishantiw.quasar@gmail.com>
- Loading branch information
Showing
36 changed files
with
1,130 additions
and
45 deletions.
There are no files selected for viewing
This file contains 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
48 changes: 31 additions & 17 deletions
48
examples/interop/pos-mainchain-fast/config/scripts/sidechain_registration.ts
This file contains 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
This file contains 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
This file contains 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
7 changes: 5 additions & 2 deletions
7
examples/interop/pos-sidechain-example-one/config/scripts/mainchain_registration.ts
This file contains 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,7 +1,10 @@ | ||
import { keys as sidechainValidatorsKeys } from '../../config/default/dev-validators.json'; | ||
import { keys as sidechainDevValidators } from '../default/dev-validators.json'; | ||
import { registerMainchain } from '../../../common/mainchain_registration'; | ||
|
||
(async () => { | ||
await registerMainchain('one', sidechainDevValidators, sidechainValidatorsKeys); | ||
await registerMainchain( | ||
'mainchain-node-one', | ||
'pos-sidechain-example-one', | ||
sidechainDevValidators, | ||
); | ||
})(); |
This file contains 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.