Blockchain WriteSet、TransferSet和ContractResult在RIDE4DAPP中的主要区别是什么?
在Ride4dApps中,可调用函数返回WriteSet、TransferSet或ContractResult,但我仍然不知道它们之间的主要区别是什么?谁为这种DAPP付费?Blockchain WriteSet、TransferSet和ContractResult在RIDE4DAPP中的主要区别是什么?,blockchain,smartcontracts,wavesplatform,ride,Blockchain,Smartcontracts,Wavesplatform,Ride,在Ride4dApps中,可调用函数返回WriteSet、TransferSet或ContractResult,但我仍然不知道它们之间的主要区别是什么?谁为这种DAPP付费? TransferSet,它是一个键值列表,用于定义传出的内容 付款将在您调用合同时进行 WriteSet,它是一个键值列表,定义要存储的数据 在合同调用时在合同的帐户中(例如 来电者地址和余额)。所以基本上它是一个数据项列表 应记录以读取dApp状态 ContractResult,它是WriteSet和TransferSe
- TransferSet,它是一个键值列表,用于定义传出的内容 付款将在您调用合同时进行
- WriteSet,它是一个键值列表,定义要存储的数据 在合同调用时在合同的帐户中(例如 来电者地址和余额)。所以基本上它是一个数据项列表 应记录以读取dApp状态
- ContractResult,它是WriteSet和TransferSet的组合
ContractResult(
WriteSet([DataEntry(currentKey, amount)]),
TransferSet([ContractTransfer(i.caller, amount, unit)])
)
其中:
DataEntry(键:String,值:String | Binary | Integer | Boolean)。
是呼叫者地址i.caller