stubs

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MyFeeHandlerStub

type MyFeeHandlerStub struct {
}

MyFeeHandlerStub is a stub.

func (*MyFeeHandlerStub) CheckValidityTxValues

func (stub *MyFeeHandlerStub) CheckValidityTxValues(tx process.TransactionWithFeeHandler) error

CheckValidityTxValues is a stub.

func (*MyFeeHandlerStub) ComputeFee

ComputeFee is a stub.

func (*MyFeeHandlerStub) ComputeGasLimit

func (stub *MyFeeHandlerStub) ComputeGasLimit(tx process.TransactionWithFeeHandler) uint64

ComputeGasLimit is a stub.

func (*MyFeeHandlerStub) DeveloperPercentage

func (stub *MyFeeHandlerStub) DeveloperPercentage() float64

DeveloperPercentage is a stub.

func (*MyFeeHandlerStub) IsInterfaceNil

func (stub *MyFeeHandlerStub) IsInterfaceNil() bool

IsInterfaceNil is a stub.

func (*MyFeeHandlerStub) MaxGasLimitPerBlock

func (stub *MyFeeHandlerStub) MaxGasLimitPerBlock() uint64

MaxGasLimitPerBlock is a stub.

func (*MyFeeHandlerStub) MinGasPrice

func (stub *MyFeeHandlerStub) MinGasPrice() uint64

MinGasPrice is a stub.

type MyGasHandlerStub

type MyGasHandlerStub struct {
}

func (*MyGasHandlerStub) ComputeGasConsumedByMiniBlock

func (stub *MyGasHandlerStub) ComputeGasConsumedByMiniBlock(miniBlock *block.MiniBlock, mapHashTx map[string]data.TransactionHandler) (uint64, uint64, error)

func (*MyGasHandlerStub) ComputeGasConsumedByTx

func (stub *MyGasHandlerStub) ComputeGasConsumedByTx(txSenderShardId uint32, txReceiverShardId uint32, txHandler data.TransactionHandler) (uint64, uint64, error)

func (*MyGasHandlerStub) GasConsumed

func (stub *MyGasHandlerStub) GasConsumed(hash []byte) uint64

func (*MyGasHandlerStub) GasRefunded

func (stub *MyGasHandlerStub) GasRefunded(hash []byte) uint64

func (*MyGasHandlerStub) Init

func (stub *MyGasHandlerStub) Init()

func (*MyGasHandlerStub) IsInterfaceNil

func (stub *MyGasHandlerStub) IsInterfaceNil() bool

func (*MyGasHandlerStub) RemoveGasConsumed

func (stub *MyGasHandlerStub) RemoveGasConsumed(hashes [][]byte)

func (*MyGasHandlerStub) RemoveGasRefunded

func (stub *MyGasHandlerStub) RemoveGasRefunded(hashes [][]byte)

func (*MyGasHandlerStub) SetGasConsumed

func (stub *MyGasHandlerStub) SetGasConsumed(gasConsumed uint64, hash []byte)

func (*MyGasHandlerStub) SetGasRefunded

func (stub *MyGasHandlerStub) SetGasRefunded(gasRefunded uint64, hash []byte)

func (*MyGasHandlerStub) TotalGasConsumed

func (stub *MyGasHandlerStub) TotalGasConsumed() uint64

func (*MyGasHandlerStub) TotalGasRefunded

func (stub *MyGasHandlerStub) TotalGasRefunded() uint64

type MyPathManagerHandlerStub

type MyPathManagerHandlerStub struct {
}

MyPathManagerHandlerStub is a stub

func (*MyPathManagerHandlerStub) IsInterfaceNil

func (stub *MyPathManagerHandlerStub) IsInterfaceNil() bool

IsInterfaceNil is a stub

func (*MyPathManagerHandlerStub) PathForEpoch

func (stub *MyPathManagerHandlerStub) PathForEpoch(shardID string, epoch uint32, identifier string) string

PathForEpoch is a stub

func (*MyPathManagerHandlerStub) PathForStatic

func (stub *MyPathManagerHandlerStub) PathForStatic(shardID string, identifier string) string

PathForStatic is a stub

type MyTransactionFeeHandlerStub

type MyTransactionFeeHandlerStub struct {
}

MyTransactionFeeHandlerStub is a stub.

func (*MyTransactionFeeHandlerStub) CreateBlockStarted

func (stub *MyTransactionFeeHandlerStub) CreateBlockStarted()

CreateBlockStarted is a stub.

func (*MyTransactionFeeHandlerStub) GetAccumulatedFees

func (stub *MyTransactionFeeHandlerStub) GetAccumulatedFees() *big.Int

GetAccumulatedFees is a stub.

func (*MyTransactionFeeHandlerStub) IsInterfaceNil

func (stub *MyTransactionFeeHandlerStub) IsInterfaceNil() bool

IsInterfaceNil is a stub.

func (*MyTransactionFeeHandlerStub) ProcessTransactionFee

func (stub *MyTransactionFeeHandlerStub) ProcessTransactionFee(cost *big.Int)

ProcessTransactionFee is a stub.

Jump to

Keyboard shortcuts

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