Skip to content

ChorusOne/wormhole

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

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<u8>): 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<u8>): 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<Bytes>: Returns list of clients created till now.

  2. clientInfoMap(Bytes) -> TMClientInfo: Returns information about particular client. Information is encoded TMClientInfo structure.

About

Substrate Tendermint Bridge Chain

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published