Documentation ¶
Index ¶
- type MyFeeHandlerStub
- func (stub *MyFeeHandlerStub) CheckValidityTxValues(tx process.TransactionWithFeeHandler) error
- func (stub *MyFeeHandlerStub) ComputeFee(tx process.TransactionWithFeeHandler) *big.Int
- func (stub *MyFeeHandlerStub) ComputeGasLimit(tx process.TransactionWithFeeHandler) uint64
- func (stub *MyFeeHandlerStub) DeveloperPercentage() float64
- func (stub *MyFeeHandlerStub) IsInterfaceNil() bool
- func (stub *MyFeeHandlerStub) MaxGasLimitPerBlock() uint64
- func (stub *MyFeeHandlerStub) MinGasPrice() uint64
- type MyGasHandlerStub
- func (stub *MyGasHandlerStub) ComputeGasConsumedByMiniBlock(miniBlock *block.MiniBlock, mapHashTx map[string]data.TransactionHandler) (uint64, uint64, error)
- func (stub *MyGasHandlerStub) ComputeGasConsumedByTx(txSenderShardId uint32, txReceiverShardId uint32, ...) (uint64, uint64, error)
- func (stub *MyGasHandlerStub) GasConsumed(hash []byte) uint64
- func (stub *MyGasHandlerStub) GasRefunded(hash []byte) uint64
- func (stub *MyGasHandlerStub) Init()
- func (stub *MyGasHandlerStub) IsInterfaceNil() bool
- func (stub *MyGasHandlerStub) RemoveGasConsumed(hashes [][]byte)
- func (stub *MyGasHandlerStub) RemoveGasRefunded(hashes [][]byte)
- func (stub *MyGasHandlerStub) SetGasConsumed(gasConsumed uint64, hash []byte)
- func (stub *MyGasHandlerStub) SetGasRefunded(gasRefunded uint64, hash []byte)
- func (stub *MyGasHandlerStub) TotalGasConsumed() uint64
- func (stub *MyGasHandlerStub) TotalGasRefunded() uint64
- type MyPathManagerHandlerStub
- type MyTransactionFeeHandlerStub
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 ¶
func (stub *MyFeeHandlerStub) ComputeFee(tx process.TransactionWithFeeHandler) *big.Int
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.
Click to show internal directories.
Click to hide internal directories.