-
Notifications
You must be signed in to change notification settings - Fork 12
Create IBC light clients in IBC scenario #222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The default deserialized format of Vec<u8> is hard to use. It is an array of numbers like [249, 1, 148, ...]. Change RPCs to return hex string instead.
Each chain in IBC scenario will use its own keystore.
The same config will be used in the IBC scenario.
We created the HelloWorld variable to explain how to use the common code in the ibc.ts directory.
We will add queryRawHeader in the Chain class. To make code clear, I renamed the queryHeader.
To create a light client we need raw bytes of a header. It will be included in the CreateClient datagram.
cdfd183 to
bac8a56
Compare
ibc.ts/src/scenario/index.ts
Outdated
| ); | ||
| debug(`rawHeader is ${counterpartyRawHeader}`); | ||
|
|
||
| assert(counterpartyRawHeader, "headet should not empty"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"header should not be empty"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@junha1 I fixed it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@majecty not 'be'?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@junha1 I fixed it.
bac8a56 to
0fe2a4f
Compare
0fe2a4f to
cf70921
Compare
No description provided.