context

package
v1.19.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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]
	Proposals         *sync.Map[uint64, *storage.Proposal]
	Constants         *sync.Map[string, *storage.Constant]
	Igps              *sync.Map[string, *storage.HLIGP]
	IgpConfigs        *sync.Map[string, *storage.HLIGPConfig]
	ZkISMs            *sync.Map[string, *storage.ZkISM]
	Upgrades          *sync.Map[uint64, *storage.Upgrade]
	Grants            *sync.Map[string, *storage.Grant]
	IbcClients        *sync.Map[string, *storage.IbcClient]
	IbcConnections    *sync.Map[string, *storage.IbcConnection]
	IbcChannels       *sync.Map[string, *storage.IbcChannel]
	HlMailboxes       *sync.Map[uint64, *storage.HLMailbox]
	HlTokens          *sync.Map[string, *storage.HLToken]
	Namespaces        *sync.Map[string, *storage.Namespace]
	NamespaceMessages *sync.Map[string, *storage.NamespaceMessage]
	AddressMessages   *sync.Map[string, *storage.MsgAddress]

	Messages        []*storage.Message
	Events          []storage.Event
	Redelegations   []storage.Redelegation
	Undelegations   []storage.Undelegation
	CancelUnbonding []storage.Undelegation
	StakingLogs     []storage.StakingLog
	Votes           []*storage.Vote
	VestingAccounts []*storage.VestingAccount
	Forwardings     []*storage.Forwarding
	ZkIsmUpdates    []*storage.ZkISMUpdate
	ZkIsmMessages   []*storage.ZkISMMessage
	HlTransfers     []*storage.HLTransfer
	IbcTransfers    []*storage.IbcTransfer
	BlobLogs        []*storage.BlobLog
	Signals         []*storage.SignalVersion

	Block         *storage.Block
	TryUpgrade    *storage.Upgrade
	TxEventsCount int
	// contains filtered or unexported fields
}

func NewContext

func NewContext() *Context

func (*Context) AddAddress

func (ctx *Context) AddAddress(address *storage.Address) error

func (*Context) AddAddressMessage added in v1.19.0

func (ctx *Context) AddAddressMessage(msg *storage.MsgAddress)

func (*Context) AddBlobLogs added in v1.19.0

func (ctx *Context) AddBlobLogs(logs ...*storage.BlobLog)

func (*Context) AddCancelUndelegation

func (ctx *Context) AddCancelUndelegation(u storage.Undelegation)

func (*Context) AddConstant added in v1.15.29

func (ctx *Context) AddConstant(module types.ModuleName, name, value string)

func (*Context) AddDelegation

func (ctx *Context) AddDelegation(d storage.Delegation)

func (*Context) AddEvents added in v1.19.0

func (ctx *Context) AddEvents(events ...storage.Event)

func (*Context) AddForwarding added in v1.19.0

func (ctx *Context) AddForwarding(fwd *storage.Forwarding)

func (*Context) AddGrants added in v1.19.0

func (ctx *Context) AddGrants(grants ...*storage.Grant)

func (*Context) AddHlMailbox added in v1.19.0

func (ctx *Context) AddHlMailbox(mailbox *storage.HLMailbox)

func (*Context) AddHlToken added in v1.19.0

func (ctx *Context) AddHlToken(token *storage.HLToken)

func (*Context) AddHlTransfer added in v1.19.0

func (ctx *Context) AddHlTransfer(transfer *storage.HLTransfer)

func (*Context) AddIbcChannel added in v1.19.0

func (ctx *Context) AddIbcChannel(channel *storage.IbcChannel)

func (*Context) AddIbcClient added in v1.19.0

func (ctx *Context) AddIbcClient(client *storage.IbcClient)

func (*Context) AddIbcConnection added in v1.19.0

func (ctx *Context) AddIbcConnection(conn *storage.IbcConnection)

func (*Context) AddIbcTransfer added in v1.19.0

func (ctx *Context) AddIbcTransfer(transfer *storage.IbcTransfer)

func (*Context) AddIgp added in v1.17.0

func (ctx *Context) AddIgp(igpId string, igp *storage.HLIGP)

func (*Context) AddIgpConfig added in v1.17.0

func (ctx *Context) AddIgpConfig(igpId string, config *storage.HLIGPConfig)

func (*Context) AddJail

func (ctx *Context) AddJail(jail storage.Jail)

func (*Context) AddMessage added in v1.19.0

func (ctx *Context) AddMessage(msg *storage.Message)

func (*Context) AddNamespace added in v1.19.0

func (ctx *Context) AddNamespace(namespace *storage.Namespace) *storage.Namespace

func (*Context) AddNamespaceMessage added in v1.19.0

func (ctx *Context) AddNamespaceMessage(msg *storage.NamespaceMessage)

func (*Context) AddProposal added in v1.12.0

func (ctx *Context) AddProposal(proposal *storage.Proposal)

func (*Context) AddRedelegation

func (ctx *Context) AddRedelegation(r storage.Redelegation)

func (*Context) AddSignal added in v1.19.0

func (ctx *Context) AddSignal(signal *storage.SignalVersion)

func (*Context) AddStakingLog

func (ctx *Context) AddStakingLog(l storage.StakingLog)

func (*Context) AddSupply

func (ctx *Context) AddSupply(data map[string]string)

func (*Context) AddUndelegation

func (ctx *Context) AddUndelegation(u storage.Undelegation)

func (*Context) AddUpgrade added in v1.17.2

func (ctx *Context) AddUpgrade(upgrade storage.Upgrade)

func (*Context) AddValidator

func (ctx *Context) AddValidator(validator storage.Validator)

func (*Context) AddVestingAccount added in v1.19.0

func (ctx *Context) AddVestingAccount(acc *storage.VestingAccount)

func (*Context) AddVote added in v1.12.0

func (ctx *Context) AddVote(vote *storage.Vote)

func (*Context) AddZkISM added in v1.18.13

func (ctx *Context) AddZkISM(ism *storage.ZkISM)

func (*Context) AddZkIsmMessage added in v1.19.0

func (ctx *Context) AddZkIsmMessage(msg *storage.ZkISMMessage)

func (*Context) AddZkIsmUpdate added in v1.19.0

func (ctx *Context) AddZkIsmUpdate(upd *storage.ZkISMUpdate)

func (*Context) DeleteIbcChannel added in v1.19.0

func (ctx *Context) DeleteIbcChannel(chanId string)

func (*Context) GetLastIbcTransfer added in v1.19.0

func (ctx *Context) GetLastIbcTransfer() *storage.IbcTransfer

func (*Context) GetMsgPosition added in v1.19.0

func (ctx *Context) GetMsgPosition() int64

func (*Context) RemoveLastIbcTransfer added in v1.19.0

func (ctx *Context) RemoveLastIbcTransfer()

func (*Context) SetInflation

func (ctx *Context) SetInflation(data map[string]string)

func (*Context) SubSupply

func (ctx *Context) SubSupply(data map[string]string)

Jump to

Keyboard shortcuts

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