v039

package
v0.5.14 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: Apache-2.0 Imports: 10 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 LegacyAminoPubKey

type LegacyAminoPubKey struct {
	Threshold sdk.Int              `json:"threshold"`
	PubKeys   []cryptotypes.PubKey `json:"pubkeys"`
}

LegacyAminoPubKey specifies a public key type which nests multiple public keys and a threshold, it uses legacy amino address rules.

func (*LegacyAminoPubKey) Address

Address implements cryptotypes.PubKey Address method

func (*LegacyAminoPubKey) Bytes

func (*LegacyAminoPubKey) Bytes() []byte

Bytes no-lint

func (*LegacyAminoPubKey) Equals

Equals no-lint

func (*LegacyAminoPubKey) ProtoMessage

func (*LegacyAminoPubKey) ProtoMessage()

ProtoMessage no-lint

func (*LegacyAminoPubKey) Reset

func (*LegacyAminoPubKey) Reset()

Reset no-lint

func (*LegacyAminoPubKey) String

func (*LegacyAminoPubKey) String() string

String no-lint

func (*LegacyAminoPubKey) Type

func (*LegacyAminoPubKey) Type() string

Type no-lint

func (*LegacyAminoPubKey) VerifySignature

func (*LegacyAminoPubKey) VerifySignature(msg []byte, sig []byte) bool

VerifySignature no-lint

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