Versions in this module Expand all Collapse all v0 v0.1.0 Dec 10, 2018 Changes in this version + const APP_NAME + const DatabaseCache + const DatabaseHandles + const OfficialAddress + const StateRemoveEmptyObj + var ABIPrefix = []byte("solidity-abi-") + var EVMCreateContractTxTag = append(EVMTag, 0x02) + var EVMTag = []byte + var EVMTxTag = append(EVMTag, 0x01) + var EmptyTrieRoot = ethcmn.HexToHash("56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421") + var ErrDataTransfer = errors.New("data transfer err") + var ErrRevertFromBackup = errors.New("revert from backup,not find data") + var EthSigner = ethtypes.HomesteadSigner + var IsHomestead = true + var ReceiptsPrefix = []byte("receipts-") + func EncodeCreateContract(tx CreateContractTx) ([]byte, error) + func OpenDatabase(datadir string, name string, cache int, handles int) (ethdb.Database, error) + type AppTool struct + func (t *AppTool) BackupLastBlock(branchName string) error + func (t *AppTool) Init(datadir string) error + func (t *AppTool) LastHeightHash() (def.INT, []byte) + func (t *AppTool) SaveNewLastBlock(fromHeight def.INT, fromAppHash []byte) error + type CreateContractTx struct + EthAbi []byte + EthTx []byte + func DecodeCreateContract(bs []byte) (*CreateContractTx, error) + type EVMApp struct + AngineHooks agtypes.Hooks + Config *viper.Viper + func NewEVMApp(logger *zap.Logger, config *viper.Viper, privkey crypto.PrivKey) (*EVMApp, error) + func (app *EVMApp) CheckTx(bs []byte) error + func (app *EVMApp) CompatibleWithAngine() + func (app *EVMApp) ExecuteEVMTx(stateDup *stateDup, header *ethtypes.Header, blockHash ethcmn.Hash, ...) (hash []byte, err error) + func (app *EVMApp) GetAngineHooks() agtypes.Hooks + func (app *EVMApp) HandleEvent(eventData civil.EventData, notification *civil.EventNotificationTx) + func (app *EVMApp) Info() (resInfo agtypes.ResultInfo) + func (app *EVMApp) OnCommit(height, round def.INT, block *agtypes.BlockCache) (interface{}, error) + func (app *EVMApp) OnExecute(height, round def.INT, block *agtypes.BlockCache) (interface{}, error) + func (app *EVMApp) OnNewRound(height, round def.INT, block *agtypes.BlockCache) (interface{}, error) + func (app *EVMApp) OnPrevote(height, round def.INT, block *agtypes.BlockCache) (interface{}, error) + func (app *EVMApp) Query(query []byte) agtypes.Result + func (app *EVMApp) SaveReceipts(stdup *stateDup) []byte + func (app *EVMApp) SetCore(core civil.Core) + func (app *EVMApp) Start() (err error) + func (app *EVMApp) Stop() + type LastBlockInfo struct + AppHash []byte + Height def.INT