Documentation ¶
Index ¶
- type CodeDriver
- type InitInput
- type Input
- type NativeProxy
- func (p *NativeProxy) AddBalance(addr ethcomm.Address, val *big.Int) error
- func (p *NativeProxy) GetBalance(addr ethcomm.Address) (*big.Int, error)
- func (p *NativeProxy) QueryBalanceByAddr20(addr20 []byte) ([]byte, error)
- func (p *NativeProxy) QueryBalanceByAddr32(addr32 []byte) ([]byte, error)
- func (p *NativeProxy) QueryContractAddr20(hash []byte) ([]byte, error)
- func (p *NativeProxy) QueryContractAddr32(hash []byte) ([]byte, error)
- func (p *NativeProxy) SetBalance(addr ethcomm.Address, val *big.Int) error
- func (p *NativeProxy) SetBalanceByAddr20(addr20 []byte, value uint64) error
- func (p *NativeProxy) SetBalanceByAddr32(addr32 []byte, value uint64) error
- func (p *NativeProxy) SubBalance(addr ethcomm.Address, val *big.Int) error
- type Runner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CodeDriver ¶
type CodeDriver struct {
// contains filtered or unexported fields
}
func NewCodeDriver ¶
func NewCodeDriver(codeDir string, nativeDriver common.CodeDriver, storage storage.PersistStore) *CodeDriver
func (*CodeDriver) GetInstance ¶
func (drv *CodeDriver) GetInstance(codeID []byte) (common.Chaincode, error)
func (*CodeDriver) Install ¶
func (drv *CodeDriver) Install(codeID, data []byte) error
type NativeProxy ¶
type NativeProxy struct {
// contains filtered or unexported fields
}
func NewNativeProxy ¶
func NewNativeProxy(driver common.CodeDriver) *NativeProxy
func (*NativeProxy) AddBalance ¶
func (*NativeProxy) GetBalance ¶
func (*NativeProxy) QueryBalanceByAddr20 ¶
func (p *NativeProxy) QueryBalanceByAddr20(addr20 []byte) ([]byte, error)
func (*NativeProxy) QueryBalanceByAddr32 ¶
func (p *NativeProxy) QueryBalanceByAddr32(addr32 []byte) ([]byte, error)
func (*NativeProxy) QueryContractAddr20 ¶
func (p *NativeProxy) QueryContractAddr20(hash []byte) ([]byte, error)
func (*NativeProxy) QueryContractAddr32 ¶
func (p *NativeProxy) QueryContractAddr32(hash []byte) ([]byte, error)
func (*NativeProxy) SetBalance ¶
func (*NativeProxy) SetBalanceByAddr20 ¶
func (p *NativeProxy) SetBalanceByAddr20(addr20 []byte, value uint64) error
func (*NativeProxy) SetBalanceByAddr32 ¶
func (p *NativeProxy) SetBalanceByAddr32(addr32 []byte, value uint64) error
func (*NativeProxy) SubBalance ¶
type Runner ¶
type Runner struct { Proxy *NativeProxy CodePath string Storage storage.PersistStore StateDB *statedb.StateDB // contains filtered or unexported fields }
func (*Runner) Init ¶
func (r *Runner) Init(ctx common.CallContext) error
Init deploys the solidity contract and binds the eth address.
func (*Runner) SetTxTrk ¶
func (r *Runner) SetTxTrk(txTrk *common.StateTracker)
Click to show internal directories.
Click to hide internal directories.