keeper

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2020 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GetTokenSwap = "get"
)

query endpoints supported by the tokenswap Querier

Variables

This section is empty.

Functions

func NewQuerier

func NewQuerier(keeper Keeper, cdc *codec.Codec) sdk.Querier

NewQuerier is the module level router for state queries

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

Keeper maintains the link to data storage and exposes getter/setter methods for the various parts of the state machine

func NewKeeper

func NewKeeper(cdc *codec.Codec, storeKey sdk.StoreKey, supplyKeeper types.SupplyKeeper) Keeper

NewKeeper creates new instances of the Keeper

func (Keeper) GetOnlyAllowedSigner

func (k Keeper) GetOnlyAllowedSigner(ctx sdk.Context) (sdk.AccAddress, error)

GetOnlyAllowedSigner returns the only allowed signer of txs in this module

func (Keeper) GetPastTokenSwapRequest

func (k Keeper) GetPastTokenSwapRequest(ctx sdk.Context, ethereumTxHash string) (types.TokenSwap, error)

GetPastTokenSwapRequest retrives a past token swap request

func (Keeper) GetTokenSwapRecordsIterator

func (k Keeper) GetTokenSwapRecordsIterator(ctx sdk.Context) sdk.Iterator

GetTokenSwapRecordsIterator get an iterator over tokenswap records

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

Logger returns a module-specific logger.

func (Keeper) ProcessTokenSwapRequest

func (k Keeper) ProcessTokenSwapRequest(ctx sdk.Context, ethereumTxHash string, ethereumSender string, receiver sdk.AccAddress, amountENG string) error

ProcessTokenSwapRequest processes a claim that has just completed successfully with consensus

func (Keeper) SetOnlyAllowedSigner

func (k Keeper) SetOnlyAllowedSigner(ctx sdk.Context, onlyAllowedSigner string) error

SetOnlyAllowedSigner sets the only allowed signer of txs in this module

Jump to

Keyboard shortcuts

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