https://github.com/chorusone/wormhole
Substrate Tendermint Bridge Chain
https://github.com/chorusone/wormhole
Last synced: about 1 year ago
JSON representation
Substrate Tendermint Bridge Chain
- Host: GitHub
- URL: https://github.com/chorusone/wormhole
- Owner: ChorusOne
- License: apache-2.0
- Created: 2020-06-03T09:13:22.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-11-22T19:09:19.000Z (over 3 years ago)
- Last Synced: 2023-03-03T20:13:25.861Z (over 3 years ago)
- Language: Rust
- Size: 155 KB
- Stars: 5
- Watchers: 20
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Wormhole
Wormhole is a substrate node containing tendermint-client pallet, which contains [tendermint_light_client].
Since this repository builds upon original [node-template] repository, you can read documentation on how to run the node [here](https://github.com/substrate-developer-hub/substrate-node-template/blob/master/README.md).
## tendermint-client pallet interfaces
### Extrinsics
tendermint-client pallet exposes following extrinsics to create a tendermint light client, and update
the light client with new tendermint header and authority sets.
1. `initClient(payload: Vec)`: Creates and initializes new tendermint light client. The payload is json encoded `TMCreateClientPayload` and if it is valid
new light client is created and initialized.
2. `updateClient(payload: Vec)`: Updates existing light client. The payload is json encoded `TMUpdateClientPayload` and if it is valid, client is updated with
new height and new validator set.
### Storage APIs
tendermint-client pallet exposes following storage apis to get the list of created clients and their status.
1. `availableClients() -> Vec`: Returns list of clients created till now.
2. `clientInfoMap(Bytes) -> TMClientInfo`: Returns information about particular client. Information is encoded `TMClientInfo` structure.
[tendermint_light_client]: https://github.com/ChorusOne/tendermint-light-client
[node-template]: https://github.com/substrate-developer-hub/substrate-node-template