github mars-protocol/hub v1.0.0-rc5

latest releases: v2.0.0-rc1, v1.0.2, v1.0.1...
pre-release2 years ago

This new release includes changes related to governance proposal and vote metadata:

  • The max allowed length of metadata is increased from 255 characters to u64::MAX characters. This allows us to store the full contents of proposals on-chain.

  • Type check is implemented for the metadata. Proposals and votes that do not satisfy the following type requirements are rejected. The specific types chosen are based on the recommendation in Cosmos SDK docs:

    • Each proposal must include a metadata string, the in following format:

      type ProposalMetadata = {
        title: string;
        authors: string[];
        summary?: string;
        details: string;
        proposal_forum_url?: string;
        vote_option_context?: string;
      };
    • Each vote can optionally include a metadata string. That is, the metadata string can be empty ("") but if it's non-empty, it must be in the following format:

      type VoteMetadata = {
        justification?: string;
      };

Don't miss a new hub release

NewReleases is sending notifications on new releases.