Documentation
¶
Index ¶
- func CanTransfer(db vm.StateDB, addr common.Address, amount *big.Int) bool
- func GetHashFunc(blockDB block.Interface) func(height uint64) common.Hash
- func NewVMContext(header *pb.BlockHeader, msg *Message, blockDB block.Interface) vm.Context
- func SetupGenesis(factory database.Factory, genesis *Genesis, execContract bool) error
- func Transfer(db vm.StateDB, sender, recipient common.Address, amount *big.Int)
- type Executor
- type Genesis
- type GenesisAccount
- type GenesisAlloc
- type Message
- func (m Message) CheckNonce() bool
- func (m Message) Data() []byte
- func (m Message) From() common.Address
- func (m Message) Nonce() uint64
- func (m Message) Quota() uint64
- func (m Message) QuotaPrice() *big.Int
- func (m Message) To() *common.Address
- func (m Message) TxHash() []byte
- func (m Message) Value() *big.Int
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanTransfer ¶
CanTransfer checks whether there are enough funds in the address' account to make a transfer. This does not take the necessary gas in to account to make the transfer valid.
func GetHashFunc ¶
GetHashFunc returns the hash corresponding to n
func NewVMContext ¶
func SetupGenesis ¶
Types ¶
type Executor ¶
type Executor interface { Call(ctx context.Context, header *pb.BlockHeader, signedTxs []*pb.SignedTransaction) ([]*pb.Receipt, []byte, error) StaticCall(ctx context.Context, height uint64, from, to, data []byte) ([]byte, bool, error) }
func NewExecutor ¶
type Genesis ¶
type Genesis struct { Timestamp uint64 `json:"timestamp` Prevhash string `json:"prevhash"` Alloc GenesisAlloc `json:"alloc"` }
type GenesisAccount ¶
type GenesisAlloc ¶
type GenesisAlloc map[string]GenesisAccount
type Message ¶
type Message struct {
// contains filtered or unexported fields
}
func NewMessage ¶
func (Message) CheckNonce ¶
func (Message) QuotaPrice ¶
Click to show internal directories.
Click to hide internal directories.