Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MsgCreateAllianceProposal

MsgCreateAllianceProposal is gov content type to create a new alliance

Hierarchy

Index

Constructors

  • new MsgCreateAllianceProposal(title: string, description: string, denom: string, rewardWeight: string, takeRate: string, rewardChangeRate: string, rewardChangeInterval?: Duration, rewardWeightRange?: RewardWeightRange): MsgCreateAllianceProposal
  • description

    Create a new alliance using the gov module

    Parameters

    • title: string

      of the proposal

    • description: string

      of the proposal

    • denom: string

      of the asset. It could either be a native token or an IBC token

    • rewardWeight: string

      specifies the ratio of rewards that will be given to each alliance asset it does not need to sum to 1. rate = weight / total_weight Native asset is always assumed to have a weight of 1.

    • takeRate: string

      positive take rate is used for liquid staking derivatives. It defines an annualized reward rate that will be redirected to the distribution rewards pool

    • rewardChangeRate: string

      how much the reward weight will change every rewardChangeInterval

    • Optional rewardChangeInterval: Duration

      how often the reward weight will change

    • Optional rewardWeightRange: RewardWeightRange

      set a bound of weight range to limit how much reward weights can scale.

    Returns MsgCreateAllianceProposal

Properties

denom: string
description: string
rewardChangeInterval?: Duration
rewardChangeRate: string
rewardWeight: string
rewardWeightRange?: RewardWeightRange
takeRate: string
title: string

Methods

  • packAny(_?: boolean): Any
  • toAminoJSON(isClassic?: boolean): string
  • Parameters

    • Optional isClassic: boolean

    Returns string

  • toJSON(isClassic?: boolean): string
  • Parameters

    • Optional isClassic: boolean

    Returns string

  • toProto(_?: boolean): MsgCreateAllianceProposal