Versions in this module Expand all Collapse all v3 v3.0.1 Dec 27, 2023 Changes in this version + func CallContractGasUsed(blockVersion uint32, gasConfig *gasutils.GasConfig, gasUsed uint64, ...) (uint64, error) + func CallContractGasUsed2312(gasConfig *gasutils.GasConfig, gasUsed uint64, contractName string, ...) (uint64, error) + func ConsumeKeyHistoryIterGasUsed2312(gasConfig *gasutils.GasConfig, gasUsed uint64) (uint64, error) + func ConsumeKeyHistoryIterGasUsedLt2312(gasUsed uint64) (uint64, error) + func ConsumeKeyHistoryIterNextGasUsed2312(gasConfig *gasutils.GasConfig, gasUsed uint64, value []byte) (uint64, error) + func ConsumeKvIteratorGasUsed2312(gasConfig *gasutils.GasConfig, gasUsed uint64) (uint64, error) + func ConsumeKvIteratorGasUsedLt2312(gasUsed uint64) (uint64, error) + func ConsumeKvIteratorNextGasUsed2312(gasConfig *gasutils.GasConfig, gasUsed uint64, key string, field string, ...) (uint64, error) + func CreateKeyHistoryIterGasUsed2312(gasConfig *gasutils.GasConfig, params map[string][]byte, gasUsed uint64, ...) (uint64, error) + func CreateKeyHistoryIterGasUsedLt2312(gasUsed uint64) (uint64, error) + func CreateKvIteratorGasUsed2312(gasConfig *gasutils.GasConfig, params map[string][]byte, gasUsed uint64, ...) (uint64, error) + func CreateKvIteratorGasUsedLt2312(gasUsed uint64) (uint64, error) + func EmitEventGasUsed2312(gasConfig *gasutils.GasConfig, gasUsed uint64, ...) (uint64, error) + func EmitEventGasUsedLt2312(gasUsed uint64, contractEvent *common.ContractEvent) (uint64, error) + func GetBatchStateGasUsed2312(gasConfig *gasutils.GasConfig, gasUsed uint64, payload []byte) (uint64, error) + func GetBatchStateGasUsedLt2312(gasUsed uint64, payload []byte) (uint64, error) + func GetStateGasUsed2312(gasConfig *gasutils.GasConfig, gasUsed uint64, contractName, key, field string, ...) (uint64, error) + func GetStateGasUsedLt2312(gasUsed uint64, value []byte) (uint64, error) + func InitFuncGasUsedLt2312(gasUsed, configDefaultGas uint64) (uint64, error) + func PutStateGasUsed2312(gasConfig *gasutils.GasConfig, gasUsed uint64, contractName, key, field string, ...) (uint64, error) + func PutStateGasUsedLt2312(gasUsed uint64, contractName, key, field string, value []byte) (uint64, error) v3.0.0 Dec 23, 2022 Changes in this version + const ContractParamBlockHeight + const ContractParamCreatorOrgId + const ContractParamCreatorPk + const ContractParamCreatorRole + const ContractParamSenderOrgId + const ContractParamSenderPk + const ContractParamSenderRole + const ContractParamTxId + const ContractParamTxTimeStamp + const DelStateGasPrice + const EmitEventGasPrice + const GetArgsGasPrice + const GetBatchStateGasPrice + const GetBlockHeightGasPrice + const GetCreatorOrgIdGasPrice + const GetCreatorPkGasPrice + const GetCreatorRoleGasPrice + const GetSenderAddressGasPrice + const GetSenderOrgIdGasPrice + const GetSenderPkGasPrice + const GetSenderRoleGasPrice + const GetStateGasPrice + const GetTimeStampPrice + const GetTxIdGasPrice + const KeyHistoryIterCloseGasPrice + const KeyHistoryIterCreateGasPrice + const KeyHistoryIterHasNextGasPrice + const KeyHistoryIterNextGasPrice + const KvIteratorCloseGasPrice + const KvIteratorCreateGasPrice + const KvIteratorHasNextGasPrice + const KvIteratorNextGasPrice + const KvPreIteratorCreateGasPrice + const LogGasPrice + const PutStateGasPrice + func CheckGasLimit(gasUsed uint64) bool + func ConsumeKeyHistoryIterGasUsed(gasUsed uint64) (uint64, error) + func ConsumeKvIteratorGasUsed(gasUsed uint64) (uint64, error) + func ContractGasUsed(gasUsed uint64, method string, contractName string, byteCode []byte) (uint64, error) + func CreateKeyHistoryIterGasUsed(gasUsed uint64) (uint64, error) + func CreateKvIteratorGasUsed(gasUsed uint64) (uint64, error) + func DelStateGasUsed(gasUsed uint64, value []byte) (uint64, error) + func EmitEventGasUsed(gasUsed uint64, contractEvent *common.ContractEvent) (uint64, error) + func GetArgsGasUsed(gasUsed uint64, args map[string]string) (uint64, error) + func GetBatchStateGasUsed(gasUsed uint64, payload []byte) (uint64, error) + func GetSenderAddressGasUsed(gasUsed uint64) (uint64, error) + func GetStateGasUsed(gasUsed uint64, value []byte) (uint64, error) + func InitFuncGasUsed(gasUsed, configDefaultGas uint64) (uint64, error) + func InitFuncGasUsedOld(gasUsed uint64, parameters map[string][]byte, keys ...string) (uint64, error) + func PutStateGasUsed(gasUsed uint64, contractName, key, field string, value []byte) (uint64, error) Other modules containing this package chainmaker.org/chainmaker/vm-engine/v2