Versions in this module Expand all Collapse all v0 v0.0.1 Oct 8, 2022 Changes in this version + type AndesMessenger struct + func NewAndesMessenger(reader *os.File, writer *os.File, marshalizer marshaling.Marshalizer) *AndesMessenger + func (messenger *AndesMessenger) ReceiveNodeRequest() (common.MessageHandler, error) + func (messenger *AndesMessenger) SendContractResponse(response common.MessageHandler) error + func (messenger *AndesMessenger) SendHookCallRequest(request common.MessageHandler) (common.MessageHandler, error) + type AndesPart struct + Messenger *AndesMessenger + Repliers []common.MessageReplier + VMHost vmcommon.VMExecutionHandler + Version string + func NewAndesPart(version string, input *os.File, output *os.File, ...) (*AndesPart, error) + func (part *AndesPart) StartLoop() error + type BlockchainHookGateway struct + func NewBlockchainHookGateway(messenger *AndesMessenger) *BlockchainHookGateway + func (blockchain *BlockchainHookGateway) ClearCompiledCodes() + func (blockchain *BlockchainHookGateway) CurrentEpoch() uint32 + func (blockchain *BlockchainHookGateway) CurrentNonce() uint64 + func (blockchain *BlockchainHookGateway) CurrentRandomSeed() []byte + func (blockchain *BlockchainHookGateway) CurrentRound() uint64 + func (blockchain *BlockchainHookGateway) CurrentTimeStamp() uint64 + func (blockchain *BlockchainHookGateway) GetAllState(address []byte) (map[string][]byte, error) + func (blockchain *BlockchainHookGateway) GetBlockhash(nonce uint64) ([]byte, error) + func (blockchain *BlockchainHookGateway) GetBuiltinFunctionNames() vmcommon.FunctionNames + func (blockchain *BlockchainHookGateway) GetCode(account vmcommon.UserAccountHandler) []byte + func (blockchain *BlockchainHookGateway) GetCompiledCode(codeHash []byte) (bool, []byte) + func (blockchain *BlockchainHookGateway) GetMECTToken(address []byte, tokenID []byte, nonce uint64) (*mect.MECToken, error) + func (blockchain *BlockchainHookGateway) GetShardOfAddress(address []byte) uint32 + func (blockchain *BlockchainHookGateway) GetSnapshot() int + func (blockchain *BlockchainHookGateway) GetStateRootHash() []byte + func (blockchain *BlockchainHookGateway) GetStorageData(accountAddress []byte, index []byte) ([]byte, error) + func (blockchain *BlockchainHookGateway) GetUserAccount(address []byte) (vmcommon.UserAccountHandler, error) + func (blockchain *BlockchainHookGateway) IsInterfaceNil() bool + func (blockchain *BlockchainHookGateway) IsLimitedTransfer(_ []byte) bool + func (blockchain *BlockchainHookGateway) IsPaused(_ []byte) bool + func (blockchain *BlockchainHookGateway) IsPayable(_, address []byte) (bool, error) + func (blockchain *BlockchainHookGateway) IsSmartContract(address []byte) bool + func (blockchain *BlockchainHookGateway) LastEpoch() uint32 + func (blockchain *BlockchainHookGateway) LastNonce() uint64 + func (blockchain *BlockchainHookGateway) LastRandomSeed() []byte + func (blockchain *BlockchainHookGateway) LastRound() uint64 + func (blockchain *BlockchainHookGateway) LastTimeStamp() uint64 + func (blockchain *BlockchainHookGateway) NewAddress(creatorAddress []byte, creatorNonce uint64, vmType []byte) ([]byte, error) + func (blockchain *BlockchainHookGateway) ProcessBuiltInFunction(input *vmcommon.ContractCallInput) (*vmcommon.VMOutput, error) + func (blockchain *BlockchainHookGateway) RevertToSnapshot(snapshot int) error + func (blockchain *BlockchainHookGateway) SaveCompiledCode(codeHash []byte, code []byte) + type CryptoHookGateway struct + func NewCryptoHookGateway() *CryptoHookGateway + func (hook *CryptoHookGateway) Ecrecover(_ []byte, _ []byte, _ []byte, _ []byte) ([]byte, error) + func (hook *CryptoHookGateway) IsInterfaceNil() bool + func (hook *CryptoHookGateway) Keccak256(data []byte) ([]byte, error) + func (hook *CryptoHookGateway) Ripemd160(data []byte) ([]byte, error) + func (hook *CryptoHookGateway) Sha256(data []byte) ([]byte, error)