blockchain

package
v1.1.0-rc6 Latest Latest
Warning

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

Go to latest
Published: May 6, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateChainHeight

func CreateChainHeight(ctx context.Context, r *CreateChainHeightReq) (*models.ChainHeight, error)

func CreateChainTx

func CreateChainTx(ctx context.Context, r *CreateChainTxReq) (*models.ChainTx, error)

func CreateContractLog

func CreateContractLog(ctx context.Context, r *CreateContractLogReq) (*models.ContractLog, error)

func GetChainHeightBySFID added in v1.1.0

func GetChainHeightBySFID(ctx context.Context, id types.SFID) (*models.ChainHeight, error)

func GetChainTxBySFID added in v1.1.0

func GetChainTxBySFID(ctx context.Context, id types.SFID) (*models.ChainTx, error)

func GetContractLogBySFID added in v1.1.0

func GetContractLogBySFID(ctx context.Context, id types.SFID) (*models.ContractLog, error)

func InitChainDB

func InitChainDB(ctx context.Context) error

func Monitor

func Monitor(ctx context.Context)

func RemoveChainHeightBySFID added in v1.1.0

func RemoveChainHeightBySFID(ctx context.Context, id types.SFID) error

func RemoveChainTxBySFID added in v1.1.0

func RemoveChainTxBySFID(ctx context.Context, id types.SFID) error

func RemoveContractLogBySFID added in v1.1.0

func RemoveContractLogBySFID(ctx context.Context, id types.SFID) error

func RemoveMonitor added in v1.1.0

func RemoveMonitor(ctx context.Context, projectName string) error

Types

type CreateChainHeightReq

type CreateChainHeightReq struct {
	ProjectName string `json:"-"`
	models.ChainHeightInfo
}

type CreateChainTxReq

type CreateChainTxReq struct {
	ProjectName string `json:"-"`
	models.ChainTxInfo
}

type CreateContractLogReq

type CreateContractLogReq struct {
	ProjectName string `json:"-"`
	models.ContractLogInfo
}

Jump to

Keyboard shortcuts

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