Documentation ¶
Index ¶
- type Context
- func (ctx *Context) AddAddress(address *storage.Address) error
- func (ctx *Context) AddCancelUndelegation(u storage.Undelegation)
- func (ctx *Context) AddDelegation(d storage.Delegation)
- func (ctx *Context) AddJail(jail storage.Jail)
- func (ctx *Context) AddRedelegation(r storage.Redelegation)
- func (ctx *Context) AddStakingLog(l storage.StakingLog)
- func (ctx *Context) AddSupply(data map[string]any)
- func (ctx *Context) AddUndelegation(u storage.Undelegation)
- func (ctx *Context) AddValidator(validator storage.Validator)
- func (ctx *Context) GetAddresses() []*storage.Address
- func (ctx *Context) GetValidators() []*storage.Validator
- func (ctx *Context) SetInflation(data map[string]any)
- func (ctx *Context) SubSupply(data map[string]any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { Validators *sync.Map[string, *storage.Validator] Addresses *sync.Map[string, *storage.Address] Delegations *sync.Map[string, *storage.Delegation] Jails *sync.Map[string, *storage.Jail] Redelegations []storage.Redelegation Undelegations []storage.Undelegation CancelUnbonding []storage.Undelegation StakingLogs []storage.StakingLog Block *storage.Block }
func NewContext ¶
func NewContext() *Context
func (*Context) AddCancelUndelegation ¶
func (ctx *Context) AddCancelUndelegation(u storage.Undelegation)
func (*Context) AddDelegation ¶
func (ctx *Context) AddDelegation(d storage.Delegation)
func (*Context) AddRedelegation ¶
func (ctx *Context) AddRedelegation(r storage.Redelegation)
func (*Context) AddStakingLog ¶
func (ctx *Context) AddStakingLog(l storage.StakingLog)
func (*Context) AddUndelegation ¶
func (ctx *Context) AddUndelegation(u storage.Undelegation)
func (*Context) AddValidator ¶
func (*Context) GetAddresses ¶
func (*Context) GetValidators ¶
func (*Context) SetInflation ¶
Click to show internal directories.
Click to hide internal directories.