ccrpc

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBalanceNotEnough        = errors.New("balance is not enough")
	Slotccrpc           string = strings.Repeat(string([]byte{0}), 32)
)

Functions

func AccountCcrpc

func AccountCcrpc(ctx *mevmtypes.Context, ti *ccrpctypes.CCrpcTransferInfo)

func ZeniqPubkeyToReceiverAddress

func ZeniqPubkeyToReceiverAddress(pubkeyBytes [33]byte) common.Address

Types

type CCrpcImp

type CCrpcImp struct {
	CCRPCEpochs [][3]int64
	// contains filtered or unexported fields
}

func Newccrpc

func Newccrpc(logger log.Logger, chainConfig *param.ChainConfig, rpcclient watchertypes.RpcClient, ctx *mevmtypes.Context) *CCrpcImp

Create ccrpc handler.

func (*CCrpcImp) CCRPCMain

func (cc *CCrpcImp) CCRPCMain()

forward epochs to ProcessCCRPC

func (*CCrpcImp) ProcessCCRPC added in v0.6.4

func (cc *CCrpcImp) ProcessCCRPC(ctx *mevmtypes.Context, blockNumber, timeStamp int64) (doneApply bool)

type IAppCC

type IAppCC interface {
	GetHistoryOnlyContext() *mevmtypes.Context
	GetLatestBlockNum() int64
}

type IContextGetter

type IContextGetter interface {
	GetRpcContext() *mevmtypes.Context
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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