db

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2018 License: Apache-2.0 Imports: 7 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeCodec

func MakeCodec() *amino.Codec

func NewUTXOMapper

func NewUTXOMapper(contextKey sdk.StoreKey, cdc *amino.Codec) types.UTXOMapper

func SetupMultiStore

func SetupMultiStore() (sdk.MultiStore, *sdk.KVStoreKey)

Types

type UTXOKeeper

type UTXOKeeper struct {
	UM types.UTXOMapper
}

func NewUTXOKeeper

func NewUTXOKeeper(um types.UTXOMapper) UTXOKeeper

NewUTXOKeeper returns a new UTXOKeeper

func (UTXOKeeper) RecieveUTXO

func (uk UTXOKeeper) RecieveUTXO(ctx sdk.Context, addr common.Address, denom uint64,
	oldutxos [2]types.UTXO, oindex uint8, txIndex uint16)

Creates a new utxo and adds it to the utxo store

func (UTXOKeeper) SpendUTXO

func (uk UTXOKeeper) SpendUTXO(ctx sdk.Context, addr common.Address, position types.Position)

Delete's utxo from utxo store AnteHandler should have already checked existence of the utxo

Jump to

Keyboard shortcuts

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