chain

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2025 License: UNKNOWN not legal advice Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Package = amino.RegisterPackage(amino.NewPackage(
	"github.com/gnolang/gno/gnovm/stdlibs/chain",
	"tm",
	amino.GetCallersDirname(),
).
	WithDependencies(
		abci.Package,
	).
	WithTypes(
		EventAttribute{},
		Event{},
		StorageDepositEvent{},
		StorageUnlockEvent{},
	))

Functions

func X_deriveStorageDepositAddr

func X_deriveStorageDepositAddr(pkgPath string) string

func X_emit

func X_emit(m *gno.Machine, typ string, attrs []string)

func X_packageAddress

func X_packageAddress(pkgPath string) string

Types

type Event

type Event struct {
	Type       string           `json:"type"`
	Attributes []EventAttribute `json:"attrs"`
	PkgPath    string           `json:"pkg_path"`
}

func (Event) AssertABCIEvent

func (e Event) AssertABCIEvent()

type EventAttribute

type EventAttribute struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type StorageDepositEvent

type StorageDepositEvent struct {
	BytesDelta int64    `json:"bytes_delta"`
	FeeDelta   std.Coin `json:"fee_delta"`
	PkgPath    string   `json:"pkg_path"`
}

StorageDepositEvent is emitted when a storage deposit fee is locked.

func (StorageDepositEvent) AssertABCIEvent

func (e StorageDepositEvent) AssertABCIEvent()

type StorageUnlockEvent

type StorageUnlockEvent struct {
	// For unlock, BytesDelta is negative
	BytesDelta int64    `json:"bytes_delta"`
	FeeRefund  std.Coin `json:"fee_refund"`
	PkgPath    string   `json:"pkg_path"`
	// RefundWithheld is true if the refund was retained because of token lock
	RefundWithheld bool `json:"refund_withheld"`
}

StorageUnlockEvent is emitted when a storage deposit fee is unlocked.

func (StorageUnlockEvent) AssertABCIEvent

func (e StorageUnlockEvent) AssertABCIEvent()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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