Documentation ¶
Index ¶
Constants ¶
View Source
const (
ModuleName = "auth"
)
Variables ¶
This section is empty.
Functions ¶
func RegisterCodec ¶ added in v0.39.1
Types ¶
type BaseAccount ¶ added in v0.39.1
type BaseAccount struct { Address sdk.AccAddress `json:"address" yaml:"address"` Coins sdk.Coins `json:"coins,omitempty" yaml:"coins,omitempty"` PubKey crypto.PubKey `json:"public_key" yaml:"public_key"` AccountNumber uint64 `json:"account_number" yaml:"account_number"` Sequence uint64 `json:"sequence" yaml:"sequence"` }
func NewBaseAccount ¶ added in v0.39.1
func NewBaseAccount( address sdk.AccAddress, coins sdk.Coins, pk crypto.PubKey, accountNumber, sequence uint64, ) *BaseAccount
func NewBaseAccountWithAddress ¶ added in v0.39.1
func NewBaseAccountWithAddress(addr sdk.AccAddress) BaseAccount
func (*BaseAccount) GetAccountNumber ¶ added in v0.39.1
func (acc *BaseAccount) GetAccountNumber() uint64
func (BaseAccount) GetAddress ¶ added in v0.39.1
func (acc BaseAccount) GetAddress() sdk.AccAddress
func (*BaseAccount) GetCoins ¶ added in v0.39.1
func (acc *BaseAccount) GetCoins() sdk.Coins
func (*BaseAccount) SetCoins ¶ added in v0.39.1
func (acc *BaseAccount) SetCoins(coins sdk.Coins) error
func (BaseAccount) Validate ¶ added in v0.39.1
func (acc BaseAccount) Validate() error
type BaseVestingAccount ¶ added in v0.39.1
type BaseVestingAccount struct { *BaseAccount OriginalVesting sdk.Coins `json:"original_vesting"` DelegatedFree sdk.Coins `json:"delegated_free"` DelegatedVesting sdk.Coins `json:"delegated_vesting"` EndTime int64 `json:"end_time"` }
func NewBaseVestingAccount ¶ added in v0.39.1
func NewBaseVestingAccount( baseAccount *BaseAccount, originalVesting, delegatedFree, delegatedVesting sdk.Coins, endTime int64, ) *BaseVestingAccount
func (BaseVestingAccount) GetEndTime ¶ added in v0.39.1
func (bva BaseVestingAccount) GetEndTime() int64
func (BaseVestingAccount) MarshalJSON ¶ added in v0.39.1
func (bva BaseVestingAccount) MarshalJSON() ([]byte, error)
func (*BaseVestingAccount) UnmarshalJSON ¶ added in v0.39.1
func (bva *BaseVestingAccount) UnmarshalJSON(bz []byte) error
func (BaseVestingAccount) Validate ¶ added in v0.39.1
func (bva BaseVestingAccount) Validate() error
type ContinuousVestingAccount ¶ added in v0.39.1
type ContinuousVestingAccount struct { *BaseVestingAccount StartTime int64 `json:"start_time"` }
func NewContinuousVestingAccountRaw ¶ added in v0.39.1
func NewContinuousVestingAccountRaw(bva *BaseVestingAccount, startTime int64) *ContinuousVestingAccount
func (ContinuousVestingAccount) MarshalJSON ¶ added in v0.39.1
func (cva ContinuousVestingAccount) MarshalJSON() ([]byte, error)
func (*ContinuousVestingAccount) UnmarshalJSON ¶ added in v0.39.1
func (cva *ContinuousVestingAccount) UnmarshalJSON(bz []byte) error
func (ContinuousVestingAccount) Validate ¶ added in v0.39.1
func (cva ContinuousVestingAccount) Validate() error
type DelayedVestingAccount ¶ added in v0.39.1
type DelayedVestingAccount struct {
*BaseVestingAccount
}
func NewDelayedVestingAccountRaw ¶ added in v0.39.1
func NewDelayedVestingAccountRaw(bva *BaseVestingAccount) *DelayedVestingAccount
func (DelayedVestingAccount) MarshalJSON ¶ added in v0.39.1
func (dva DelayedVestingAccount) MarshalJSON() ([]byte, error)
func (*DelayedVestingAccount) UnmarshalJSON ¶ added in v0.39.1
func (dva *DelayedVestingAccount) UnmarshalJSON(bz []byte) error
UnmarshalJSON unmarshals raw JSON bytes into a DelayedVestingAccount.
func (DelayedVestingAccount) Validate ¶ added in v0.39.1
func (dva DelayedVestingAccount) Validate() error
type GenesisState ¶ added in v0.39.1
type GenesisState struct { Params v034auth.Params `json:"params" yaml:"params"` Accounts v038auth.GenesisAccounts `json:"accounts" yaml:"accounts"` }
func Migrate ¶
func Migrate(oldAuthGenState v038auth.GenesisState) GenesisState
Migrate accepts exported genesis state from v0.38 and migrates it to v0.39 genesis state.
func NewGenesisState ¶ added in v0.39.1
func NewGenesisState(params v034auth.Params, accounts v038auth.GenesisAccounts) GenesisState
type ModuleAccount ¶ added in v0.39.1
type ModuleAccount struct { *BaseAccount Name string `json:"name" yaml:"name"` Permissions []string `json:"permissions" yaml:"permissions"` }
func NewModuleAccount ¶ added in v0.39.1
func NewModuleAccount(baseAccount *BaseAccount, name string, permissions ...string) *ModuleAccount
func (ModuleAccount) MarshalJSON ¶ added in v0.39.1
func (ma ModuleAccount) MarshalJSON() ([]byte, error)
MarshalJSON returns the JSON representation of a ModuleAccount.
func (*ModuleAccount) UnmarshalJSON ¶ added in v0.39.1
func (ma *ModuleAccount) UnmarshalJSON(bz []byte) error
UnmarshalJSON unmarshals raw JSON bytes into a ModuleAccount.
func (ModuleAccount) Validate ¶ added in v0.39.1
func (ma ModuleAccount) Validate() error
type PeriodicVestingAccount ¶ added in v0.39.1
type PeriodicVestingAccount struct { *BaseVestingAccount StartTime int64 `json:"start_time" yaml:"start_time"` // when the coins start to vest VestingPeriods Periods `json:"vesting_periods" yaml:"vesting_periods"` // the vesting schedule }
func (PeriodicVestingAccount) GetStartTime ¶ added in v0.39.1
func (pva PeriodicVestingAccount) GetStartTime() int64
func (PeriodicVestingAccount) MarshalJSON ¶ added in v0.39.1
func (pva PeriodicVestingAccount) MarshalJSON() ([]byte, error)
func (*PeriodicVestingAccount) UnmarshalJSON ¶ added in v0.39.1
func (pva *PeriodicVestingAccount) UnmarshalJSON(bz []byte) error
UnmarshalJSON unmarshals raw JSON bytes into a PeriodicVestingAccount.
func (PeriodicVestingAccount) Validate ¶ added in v0.39.1
func (pva PeriodicVestingAccount) Validate() error
Click to show internal directories.
Click to hide internal directories.