v039

package
v0.5.20 Latest Latest
Warning

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

Go to latest
Published: May 13, 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 added in v0.5.4

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 added in v0.5.4

Address implements cryptotypes.PubKey Address method

func (*LegacyAminoPubKey) Bytes added in v0.5.4

func (*LegacyAminoPubKey) Bytes() []byte

Bytes no-lint

func (*LegacyAminoPubKey) Equals added in v0.5.4

Equals no-lint

func (*LegacyAminoPubKey) ProtoMessage added in v0.5.4

func (*LegacyAminoPubKey) ProtoMessage()

ProtoMessage no-lint

func (*LegacyAminoPubKey) Reset added in v0.5.4

func (*LegacyAminoPubKey) Reset()

Reset no-lint

func (*LegacyAminoPubKey) String added in v0.5.4

func (*LegacyAminoPubKey) String() string

String no-lint

func (*LegacyAminoPubKey) Type added in v0.5.4

func (*LegacyAminoPubKey) Type() string

Type no-lint

func (*LegacyAminoPubKey) VerifySignature added in v0.5.4

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