v39

package
v1.1.0-beta.rc4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const ModuleName = "dispensation"

Variables

This section is empty.

Functions

This section is empty.

Types

type Distribution

type Distribution struct {
	DistributionType DistributionType `json:"distribution_type"`
	DistributionName string           `json:"distribution_name"`
	Runner           sdk.AccAddress   `json:"runner"`
}

type DistributionRecord

type DistributionRecord struct {
	DistributionStatus          DistributionStatus `json:"distribution_status"`
	DistributionName            string             `json:"distribution_name"`
	DistributionType            DistributionType   `json:"distribution_type"`
	RecipientAddress            sdk.AccAddress     `json:"recipient_address"`
	Coins                       sdk.Coins          `json:"coins"`
	DistributionStartHeight     int64              `json:"distribution_start_height"`
	DistributionCompletedHeight int64              `json:"distribution_completed_height"`
	AuthorizedRunner            sdk.AccAddress     `json:"authorized_runner"`
}

type DistributionRecords

type DistributionRecords []DistributionRecord

type DistributionStatus

type DistributionStatus int64
const Completed DistributionStatus = 2
const Pending DistributionStatus = 1

func (DistributionStatus) String

func (ds DistributionStatus) String() string

type DistributionType

type DistributionType int64
const Airdrop DistributionType = 1
const DistributionTypeUnknown DistributionType = 0
const LiquidityMining DistributionType = 2
const ValidatorSubsidy DistributionType = 3

func (DistributionType) String

func (dt DistributionType) String() string

type Distributions

type Distributions []Distribution

type GenesisState

type GenesisState struct {
	DistributionRecords DistributionRecords `json:"distribution_records"`
	Distributions       Distributions       `json:"distributions"`
	Claims              UserClaims          `json:"claims"`
}

type UserClaim

type UserClaim struct {
	UserAddress   sdk.AccAddress   `json:"user_address"`
	UserClaimType DistributionType `json:"user_claim_type"`
	UserClaimTime time.Time        `json:"user_claim_time"`
}

type UserClaims

type UserClaims []UserClaim

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL