Documentation ¶
Index ¶
- Constants
- func CheckGasLimit(gasUsed uint64) bool
- func ConsumeKeyHistoryIterGasUsed(gasUsed uint64) (uint64, error)
- func ConsumeKvIteratorGasUsed(gasUsed uint64) (uint64, error)
- func ContractGasUsed(txSimContext protocol.TxSimContext, gasUsed uint64, method string, ...) (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 uint64, parameters map[string][]byte) (uint64, error)
- func InitFuncGasUsedLT2310(gasUsed uint64, parameters map[string][]byte) (uint64, error)
- func PutStateGasUsed(gasUsed uint64, contractName, key, field string, value []byte) (uint64, error)
Constants ¶
View Source
const ( // function list gas price GetArgsGasPrice uint64 = 1 GetStateGasPrice uint64 = 1 GetBatchStateGasPrice uint64 = 1 PutStateGasPrice uint64 = 10 DelStateGasPrice uint64 = 10 GetCreatorOrgIdGasPrice uint64 = 1 GetCreatorRoleGasPrice uint64 = 1 GetCreatorPkGasPrice uint64 = 1 GetSenderOrgIdGasPrice uint64 = 1 GetSenderRoleGasPrice uint64 = 1 GetSenderPkGasPrice uint64 = 1 GetBlockHeightGasPrice uint64 = 1 GetTxIdGasPrice uint64 = 1 GetTimeStampPrice uint64 = 1 EmitEventGasPrice uint64 = 5 LogGasPrice uint64 = 5 KvIteratorCreateGasPrice uint64 = 1 KvPreIteratorCreateGasPrice uint64 = 1 KvIteratorHasNextGasPrice uint64 = 1 KvIteratorNextGasPrice uint64 = 1 KvIteratorCloseGasPrice uint64 = 1 KeyHistoryIterCreateGasPrice uint64 = 1 KeyHistoryIterHasNextGasPrice uint64 = 1 KeyHistoryIterNextGasPrice uint64 = 1 KeyHistoryIterCloseGasPrice uint64 = 1 GetSenderAddressGasPrice uint64 = 1 // special parameters passed to contract ContractParamCreatorOrgId = "__creator_org_id__" ContractParamCreatorRole = "__creator_role__" ContractParamCreatorPk = "__creator_pk__" ContractParamSenderOrgId = "__sender_org_id__" ContractParamSenderRole = "__sender_role__" ContractParamSenderPk = "__sender_pk__" ContractParamBlockHeight = "__block_height__" ContractParamTxId = "__tx_id__" ContractParamTxTimeStamp = "__tx_time_stamp__" )
Variables ¶
This section is empty.
Functions ¶
func ConsumeKeyHistoryIterGasUsed ¶
func ContractGasUsed ¶
func EmitEventGasUsed ¶
func EmitEventGasUsed(gasUsed uint64, contractEvent *common.ContractEvent) (uint64, error)
func GetBatchStateGasUsed ¶
func InitFuncGasUsed ¶
func InitFuncGasUsedLT2310 ¶ added in v3.0.1
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.