Versions in this module Expand all Collapse all v3 v3.0.1 Dec 27, 2023 Changes in this version type TxContextMockTest + func (s *TxContextMockTest) GetGasRemaining() uint64 + func (s *TxContextMockTest) SubtractGas(gasUsed uint64) error v3.0.0 Dec 23, 2022 Changes in this version + const ContractNameAddr + const ContractNameTest + const ContractVersionTest + var CertFilePath = "./testdata/admin1.sing.crt" + var TxIds = []string + func BaseParam(parameters map[string][]byte) + func GetBlockVersion() uint32 + type GoLogger struct + func (GoLogger) Debug(args ...interface{}) + func (GoLogger) DebugDynamic(l func() string) + func (GoLogger) Debugf(format string, args ...interface{}) + func (GoLogger) Debugw(msg string, keysAndValues ...interface{}) + func (GoLogger) Error(args ...interface{}) + func (GoLogger) Errorf(format string, args ...interface{}) + func (GoLogger) Errorw(msg string, keysAndValues ...interface{}) + func (GoLogger) Fatal(args ...interface{}) + func (GoLogger) Fatalf(format string, args ...interface{}) + func (GoLogger) Fatalw(msg string, keysAndValues ...interface{}) + func (GoLogger) Info(args ...interface{}) + func (GoLogger) InfoDynamic(l func() string) + func (GoLogger) Infof(format string, args ...interface{}) + func (GoLogger) Infow(msg string, keysAndValues ...interface{}) + func (GoLogger) Panic(args ...interface{}) + func (GoLogger) Panicf(format string, args ...interface{}) + func (GoLogger) Panicw(msg string, keysAndValues ...interface{}) + func (GoLogger) Warn(args ...interface{}) + func (GoLogger) Warnf(format string, args ...interface{}) + func (GoLogger) Warnw(msg string, keysAndValues ...interface{}) + type TxContextMockTest struct + CacheMap map[string][]byte + func InitContextTest() *TxContextMockTest + func (*TxContextMockTest) GetAccessControl() (protocol.AccessControlProvider, error) + func (*TxContextMockTest) GetBlockHeight() uint64 + func (*TxContextMockTest) GetBlockchainStore() protocol.BlockchainStore + func (*TxContextMockTest) GetTxExecSeq() int + func (*TxContextMockTest) SetTxExecSeq(i int) + func (TxContextMockTest) GetTxRWSet(runVmSuccess bool) *commonPb.TxRWSet + func (s *TxContextMockTest) CallContract(caller, contract *commonPb.Contract, method string, byteCode []byte, ...) (*commonPb.ContractResult, protocol.ExecOrderTxType, commonPb.TxStatusCode) + func (s *TxContextMockTest) Del(name string, key []byte) error + func (s *TxContextMockTest) Get(name string, key []byte) ([]byte, error) + func (s *TxContextMockTest) GetBlockFingerprint() string + func (s *TxContextMockTest) GetBlockProposer() *acPb.Member + func (s *TxContextMockTest) GetBlockTimestamp() int64 + func (s *TxContextMockTest) GetBlockVersion() uint32 + func (s *TxContextMockTest) GetChainNodesInfoProvider() (protocol.ChainNodesInfoProvider, error) + func (s *TxContextMockTest) GetConsensusStateWrapper() protocol.ConsensusStateWrapper + func (s *TxContextMockTest) GetContractByName(name string) (*commonPb.Contract, error) + func (s *TxContextMockTest) GetContractBytecode(name string) ([]byte, error) + func (s *TxContextMockTest) GetCreator(namespace string) *acPb.Member + func (s *TxContextMockTest) GetCrossInfo() uint64 + func (s *TxContextMockTest) GetCurrentResult() []byte + func (s *TxContextMockTest) GetDepth() int + func (s *TxContextMockTest) GetHistoryIterForKey(contractName string, key []byte) (protocol.KeyHistoryIterator, error) + func (s *TxContextMockTest) GetIterHandle(index int32) (interface{}, bool) + func (s *TxContextMockTest) GetKeys(keys []*vmPb.BatchKey) ([]*vmPb.BatchKey, error) + func (s *TxContextMockTest) GetLastChainConfig() *configPb.ChainConfig + func (s *TxContextMockTest) GetNoRecord(contractName string, key []byte) ([]byte, error) + func (s *TxContextMockTest) GetSender() *acPb.Member + func (s *TxContextMockTest) GetSnapshot() protocol.Snapshot + func (s *TxContextMockTest) GetStateKvHandle(i int32) (protocol.StateIterator, bool) + func (s *TxContextMockTest) GetStateSqlHandle(i int32) (protocol.SqlRows, bool) + func (s *TxContextMockTest) GetStrAddrFromPbMember(pbMember *acPb.Member) (string, error) + func (s *TxContextMockTest) GetTx() *commonPb.Transaction + func (s *TxContextMockTest) GetTxRWMapByContractName(contractName string) (map[string]*commonPb.TxRead, map[string]*commonPb.TxWrite) + func (s *TxContextMockTest) GetTxResult() *commonPb.Result + func (s *TxContextMockTest) HasUsed(runtimeType commonPb.RuntimeType) bool + func (s *TxContextMockTest) Put(name string, key []byte, value []byte) error + func (s *TxContextMockTest) PutIntoReadSet(contractName string, key []byte, value []byte) + func (s *TxContextMockTest) PutRecord(contractName string, value []byte, sqlType protocol.SqlType) + func (s *TxContextMockTest) RecordRuntimeTypeIntoCrossInfo(runtimeType commonPb.RuntimeType) + func (s *TxContextMockTest) RemoveRuntimeTypeFromCrossInfo() + func (s *TxContextMockTest) Select(name string, startKey []byte, limit []byte) (protocol.StateIterator, error) + func (s *TxContextMockTest) SetIterHandle(index int32, iter interface{}) + func (s *TxContextMockTest) SetStateKvHandle(i int32, iterator protocol.StateIterator) + func (s *TxContextMockTest) SetStateSqlHandle(i int32, rows protocol.SqlRows) + func (s *TxContextMockTest) SetTxResult(txResult *commonPb.Result) Other modules containing this package chainmaker.org/chainmaker/vm-engine/v2