v039

package
v0.5.0-beta4 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec nonlint

Types

type LazyGradedVestingAccount

type LazyGradedVestingAccount struct {
	*v039auth.BaseVestingAccount

	VestingSchedules VestingSchedules `json:"vesting_schedules"`
}

LazyGradedVestingAccount nolint

func NewLazyGradedVestingAccountRaw

func NewLazyGradedVestingAccountRaw(baseVestingAcc *v039auth.BaseVestingAccount, lazyVestingSchedules VestingSchedules) *LazyGradedVestingAccount

NewLazyGradedVestingAccountRaw nolint

func (LazyGradedVestingAccount) MarshalJSON

func (lgva LazyGradedVestingAccount) MarshalJSON() ([]byte, error)

MarshalJSON returns the JSON representation of a LazyGradedVestingAccount.

func (*LazyGradedVestingAccount) UnmarshalJSON

func (lgva *LazyGradedVestingAccount) UnmarshalJSON(bz []byte) error

UnmarshalJSON unmarshals raw JSON bytes into a LazyGradedVestingAccount.

func (LazyGradedVestingAccount) Validate

func (lgva LazyGradedVestingAccount) Validate() error

Validate nolint

type LazySchedule

type LazySchedule struct {
	StartTime int64   `json:"start_time"`
	EndTime   int64   `json:"end_time"`
	Ratio     sdk.Dec `json:"ratio"`
}

LazySchedule nolint

func (LazySchedule) Validate

func (s LazySchedule) Validate() error

Validate nolint

type LazySchedules

type LazySchedules []LazySchedule

LazySchedules nolint

type VestingSchedule

type VestingSchedule struct {
	Denom         string        `json:"denom"`
	LazySchedules LazySchedules `json:"schedules"` // maps blocktime to percentage vested. Should sum to 1.
}

VestingSchedule nolint

func (VestingSchedule) Validate

func (vs VestingSchedule) Validate() error

Validate nolint

type VestingSchedules

type VestingSchedules []VestingSchedule

VestingSchedules nolint

Jump to

Keyboard shortcuts

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