backend

package
v0.0.0-...-a8d0dae Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

README

go get go-sqlite3

Unexpected

  1. github.com/omexapp/omexchain/vendor/github.com/mattn/go-sqlite3 ../../vendor/github.com/mattn/go-sqlite3/backup.go:14:10: fatal error: 'stdlib.h' file not found #include <stdlib.h>

solution: https://github.com/mattn/go-sqlite3/issues/481

  • try in ubuntu: sudo apt-get install g++
  • try in mac(@linsheng.yu): cd /Library/Developer/CommandLineTools/Packages/; open macOS_SDK_headers_for_macOS_10.14.pkg

Documentation

Overview

nolint

Index

Constants

View Source
const (
	// ModuleName is the name of the backend module
	ModuleName = types.ModuleName
	// QuerierRoute is the querier route for the backend module
	QuerierRoute = types.QuerierRoute
	// RouterKey is the msg router key for the backend module
	RouterKey = types.RouterKey
)

Variables

View Source
var (
	NewQuerier    = keeper.NewQuerier
	NewKeeper     = keeper.NewKeeper
	CleanUpKlines = keeper.CleanUpKlines

	GenerateTx = types.GenerateTx

	NewORM = orm.New

	DefaultConfig = config.DefaultConfig
)

Functions

func EndBlocker

func EndBlocker(ctx sdk.Context, keeper Keeper)

EndBlocker called every block, check expired orders

func GetNewDealsAndMatchResultsAtEndBlock

func GetNewDealsAndMatchResultsAtEndBlock(ctx sdk.Context, orderKeeper types.OrderKeeper) ([]*types.Deal, []*types.MatchResult, error)

nolint

func GetNewOrdersAtEndBlock

func GetNewOrdersAtEndBlock(ctx sdk.Context, orderKeeper types.OrderKeeper) ([]*types.Order, error)

nolint

func GetUpdatedOrdersAtEndBlock

func GetUpdatedOrdersAtEndBlock(ctx sdk.Context, orderKeeper types.OrderKeeper) []*types.Order

nolint

Types

type AppModule

type AppModule struct {
	AppModuleBasic
	// contains filtered or unexported fields
}

AppModule is a struct of app module

func NewAppModule

func NewAppModule(k Keeper) AppModule

NewAppModule creates a new AppModule Object

func (AppModule) BeginBlock

func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)

BeginBlock is invoked on the beginning of each block

func (AppModule) EndBlock

EndBlock is invoked on the end of each block, start to execute backend logic

func (AppModule) ExportGenesis

func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage

ExportGenesis exports module genesis

func (AppModule) InitGenesis

func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate

InitGenesis initialize module genesis

func (AppModule) Name

func (AppModule) Name() string

Name returns module name

func (AppModule) NewHandler

func (am AppModule) NewHandler() sdk.Handler

NewHandler returns module handler

func (AppModule) NewQuerierHandler

func (am AppModule) NewQuerierHandler() sdk.Querier

NewQuerierHandler returns module querier

func (AppModule) QuerierRoute

func (am AppModule) QuerierRoute() string

QuerierRoute returns module querier route name

func (AppModule) RegisterInvariants

func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)

RegisterInvariants registers invariants

func (AppModule) Route

func (am AppModule) Route() string

Route returns module message route name

type AppModuleBasic

type AppModuleBasic struct{}

AppModuleBasic app module Basics object

func (AppModuleBasic) DefaultGenesis

func (AppModuleBasic) DefaultGenesis() json.RawMessage

DefaultGenesis returns nil

func (AppModuleBasic) GetQueryCmd

func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command

GetQueryCmd return the root query command of this module

func (AppModuleBasic) GetTxCmd

func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command

GetTxCmd return the root tx command of this module

func (AppModuleBasic) Name

func (AppModuleBasic) Name() string

Name return ModuleName

func (AppModuleBasic) RegisterCodec

func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)

RegisterCodec registers module codec

func (AppModuleBasic) RegisterRESTRoutes

func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)

RegisterRESTRoutes register rest routes

func (AppModuleBasic) ValidateGenesis

func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error

ValidateGenesis Validation check of the Genesis

type ClaimInfo

type ClaimInfo = types.ClaimInfo

type Config

type Config = config.Config

type Deal

type Deal = types.Deal

type DexKeeper

type DexKeeper = types.DexKeeper

type Keeper

type Keeper = keeper.Keeper

type MarketKeeper

type MarketKeeper = types.MarketKeeper

type MatchResult

type MatchResult = types.MatchResult

type ORM

type ORM = orm.ORM

type Order

type Order = types.Order

type OrderKeeper

type OrderKeeper = types.OrderKeeper

type OrmEngineInfo

type OrmEngineInfo = orm.OrmEngineInfo

type SwapInfo

type SwapInfo = types.SwapInfo

type Ticker

type Ticker = types.Ticker

type TokenKeeper

type TokenKeeper = types.TokenKeeper

type Transaction

type Transaction = types.Transaction

Directories

Path Synopsis
client
cli
nolint nolint nolint
nolint nolint nolint

Jump to

Keyboard shortcuts

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