banker

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

This section is empty.

Functions

func CompactCoins

func CompactCoins(denoms []string, amounts []int64) std.Coins

func ExpandCoins

func ExpandCoins(c std.Coins) (denoms []string, amounts []int64)

func X_assertCallerIsRealm

func X_assertCallerIsRealm(m *gno.Machine)

func X_bankerGetCoins

func X_bankerGetCoins(m *gno.Machine, bt uint8, addr string) (denoms []string, amounts []int64)

func X_bankerIssueCoin

func X_bankerIssueCoin(m *gno.Machine, bt uint8, addr string, denom string, amount int64)

func X_bankerRemoveCoin

func X_bankerRemoveCoin(m *gno.Machine, bt uint8, addr string, denom string, amount int64)

func X_bankerSendCoins

func X_bankerSendCoins(m *gno.Machine, bt uint8, fromS, toS string, denoms []string, amounts []int64)

func X_bankerTotalCoin

func X_bankerTotalCoin(m *gno.Machine, bt uint8, denom string) int64

func X_originSend

func X_originSend(m *gno.Machine) (denoms []string, amounts []int64)

Types

type BankerInterface

type BankerInterface interface {
	GetCoins(addr crypto.Bech32Address) (dst std.Coins)
	SendCoins(from, to crypto.Bech32Address, amt std.Coins)
	TotalCoin(denom string) int64
	IssueCoin(addr crypto.Bech32Address, denom string, amount int64)
	RemoveCoin(addr crypto.Bech32Address, denom string, amount int64)
}

BankerInterface is the interface through which Gno is capable of accessing the blockchain's banker.

The name is what it is to avoid a collision with Gno's Banker, when transpiling.

Jump to

Keyboard shortcuts

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