Skip to content

Clarify the Height and ChainId types (ref: "epochs") #14

Open
@adizere

Description

@adizere

Crate

ibc

Summary

The Height type and the ChainId types are closely related: the version_number field in a height of a chain denotes the revision of that chain. The revision used to be called "epoch," then renamed to "version", but it seems that the name of this field will stabilize to "revision".

There's two things to improve/clarify on our side:

  1. Our ChainId implementation is a bit messy and uses both the names of "version" and "epoch".

https://github.com/informalsystems/ibc-rs/blob/45ae7b86844c906570f7b16792ef4806ed45ab54/modules/src/ics24_host/identifier.rs#L17-L25

  1. The field of type Height might soon evolve so we probably need to rename version_number into revision_number.

https://github.com/informalsystems/ibc-rs/blob/b641f794cff8e5f21c308bd419fe4c29f028fda6/modules/src/ics02_client/height.rs#L9-L12

Dependencies:

Problem Definition

Proposal


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate milestone (priority) applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions