blockchain

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BatchUpdateChainHeightPausedBySFIDs added in v1.2.5

func BatchUpdateChainHeightPausedBySFIDs(ctx context.Context, ids []types.SFID, s datatypes.Bool) error

func BatchUpdateChainTxPausedBySFIDs added in v1.2.5

func BatchUpdateChainTxPausedBySFIDs(ctx context.Context, ids []types.SFID, s datatypes.Bool) error

func BatchUpdateContractLogPausedBySFIDs added in v1.2.5

func BatchUpdateContractLogPausedBySFIDs(ctx context.Context, ids []types.SFID, s datatypes.Bool) error

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 ListChainHeightBySFIDs added in v1.2.5

func ListChainHeightBySFIDs(ctx context.Context, ids []types.SFID) ([]models.ChainHeight, error)

func ListChainTxBySFIDs added in v1.2.5

func ListChainTxBySFIDs(ctx context.Context, ids []types.SFID) ([]models.ChainTx, error)

func ListContractLogBySFIDs added in v1.2.5

func ListContractLogBySFIDs(ctx context.Context, ids []types.SFID) ([]models.ContractLog, 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 BatchUpdateMonitorReq added in v1.2.5

type BatchUpdateMonitorReq struct {
	IDs []types.SFID `json:"ids"`
}

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
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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