exported

package
v0.0.0-...-25b3476 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CUIBCAsset

type CUIBCAsset interface {
	GetAddress() sdk.CUAddress
	SetAddress(sdk.CUAddress) error // errors if already set.

	GetCUType() sdk.CUType
	SetCUType(sdk.CUType) error

	GetAssets() []sdk.Asset

	GetAsset(denom string, epoch uint64) sdk.Asset
	GetAssetByAddr(denom string, addr string) sdk.Asset

	AddAsset(denom, address string, epoch uint64) error

	GetAssetAddress(denom string, epoch uint64) string

	SetAssetAddress(denom, address string, epoch uint64) error

	GetAssetCoinsHold() sdk.Coins
	AddAssetCoinsHold(coins sdk.Coins) sdk.Coins
	SubAssetCoinsHold(coins sdk.Coins) sdk.Coins

	GetAssetCoins() sdk.Coins
	AddAssetCoins(coins sdk.Coins) sdk.Coins
	SubAssetCoins(coins sdk.Coins) sdk.Coins

	GetAssetPubkey(epoch uint64) []byte
	SetAssetPubkey(pubkey []byte, epoch uint64) error
	GetAssetPubkeyEpoch() uint64

	GetGasUsed() sdk.Coins
	AddGasUsed(coins sdk.Coins) sdk.Coins
	SubGasUsed(coins sdk.Coins) sdk.Coins

	GetGasReceived() sdk.Coins
	AddGasReceived(coins sdk.Coins) sdk.Coins
	SubGasReceived(coins sdk.Coins) sdk.Coins

	GetGasRemained(chain string, addr string) sdk.Int
	AddGasRemained(chain string, addr string, amt sdk.Int)
	SubGasRemained(chain string, addr string, amt sdk.Int)

	IsEnabledSendTx(chain string, addr string) bool
	SetEnableSendTx(enabled bool, chain string, addr string)

	GetNonce(chain string, addr string) uint64
	SetNonce(chain string, nonce uint64, addr string)

	SetMigrationStatus(status sdk.MigrationStatus)
	GetMigrationStatus() sdk.MigrationStatus
}

Many complex conditions can be used in the concrete struct which implements cuibcasset.

Jump to

Keyboard shortcuts

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