-
Notifications
You must be signed in to change notification settings - Fork 0
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
Client impl #3
Client impl #3
Conversation
Coverage SummaryTotals
FilesExpand
|
@@ -9,4 +13,11 @@ pub trait UtilsModule { | |||
"Invalid address" | |||
); | |||
} | |||
|
|||
fn checked_timestamp_to_unix_mul(&self, timestamp: Timestamp) -> Timestamp { | |||
match timestamp.checked_mul(NANO_SECONDS_MULT) { |
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.
Here is just a value in nanoseconds rounded to seconds. If precision is needed, we need framework support. Still figuring it out if it's important
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.
Doesn't seem like we will need the precision. As far as I'm aware, these timestamps are used to give a timeout for transactions.
fn update_client_commitments( | ||
&self, | ||
client_id: ClientId<Self::Api>, | ||
encoded_heights: ManagedBuffer, |
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.
I think a ManagedVec<height::Data>
should be here.
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.
Good point. Didn't realize it at the time. Will keep a list of all these things and fix them in a future PR, don't want to merge all the branches again.
let ibc_handler = self.ibc_handler().get(); | ||
let _: () = self | ||
.client_proxy(ibc_handler) | ||
.update_client_commitments(client_id, ManagedBuffer::new()) |
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.
TODO data about block height
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.
nah, this is just a test contract as far as I'm aware.
No description provided.