Versions in this module Expand all Collapse all v3 v3.0.1 Dec 26, 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 ChainIdTest + var ByteCodeFile = "./test/contract01/token.bin" + var CertFilePath = "./config/admin1.sing.crt" + var ContractName = "contract01" + var ContractVersion = "v1.0.0" + func BaseParam(parameters map[string][]byte) + type TxContextMockTest struct + func InitContextTest(runtimeType commonPb.RuntimeType, t *testing.T) (*commonPb.Contract, *TxContextMockTest, []byte) + func (*TxContextMockTest) GetBlockHeight() uint64 + func (*TxContextMockTest) GetBlockchainStore() protocol.BlockchainStore + func (*TxContextMockTest) GetLastChainConfig() *configPb.ChainConfig + 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) GetAccessControl() (protocol.AccessControlProvider, 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) 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-evm/v2