# README
合约领域组件编程规范
1.领域上下文。
2.对外暴露接口。
3.驱动组件约束接口。
4.公共数据结构。
# Functions
No description provided by the author
No description provided by the author
// FromPbLimits converts []*pb.ResourceLimit to Limits.
No description provided by the author
// FromPbLimits converts Limits to []*pb.ResourceLimit.
ValidContractName return error when contractName is not a valid contract name.
# Constants
StatusError is used when contract fails.
StatusErrorThreshold is the status dividing line for the normal operation of the contract.
StatusOK is used when contract successfully ends.
# Variables
MaxLimits describes the maximum limit of resources.
# Structs
ContextConfig define the config of context.
ContractConfig define the config of XuperBridge.
No description provided by the author
Limits describes the usage or limit of resources.
LogConfig is the log config of node.
No description provided by the author
NativeConfig contains the two above config.
NativeDockerConfig native contract use docker config.
Response is the result of the contract run.
No description provided by the author
No description provided by the author
No description provided by the author
WasmConfig wasm config.
No description provided by the author
XVMConfig contains the xvm configuration.
# Interfaces
ChainCore is the interface of chain service.
Context define context interface.
No description provided by the author
CrossQueryState 对XuperBridge暴露对跨链只读合约的操作能力.
Iterator iterates over key/value pairs in key order.
No description provided by the author
No description provided by the author
No description provided by the author
State 抽象了链的状态机接口,合约通过State里面的方法来修改状态。.
StateSandbox 在沙盒环境里面执行状态修改操作,最终生成读写集.
No description provided by the author
XMState 对XuperBridge暴露对账本的UTXO操作能力.
XMState 对XuperBridge暴露对XModel的读写接口,不同于XMReader, Get和Select方法得到的不是VersionedData,而是[]byte.