-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Description
This issue comes from #232
The case provided by .bit team is https://github.com/dotbitHQ/das-contracts/blob/docs/docs/zh-hans/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/%E4%BA%A4%E6%98%93%E7%BB%93%E6%9E%84%E5%8D%8F%E8%AE%AE.md#%E5%88%9B%E5%BB%BA%E5%8F%8D%E5%90%91%E8%A7%A3%E6%9E%90-smt-%E6%A0%91createreverserecordroot
And it's actually transactions of business logic but not contract deployment. So the case is tracked by this issue, respectively.
There are two types of transactions:
- create a cell for reverse record
CellDeps:
das-lock
balance-cell-type
reverse-record-root-cell-type
ConfigCellMain
ConfigCellReverseResolution
Inputs:
BalanceCell {1,}
Outputs:
ReverseRecordRootCell {1,}
BalanceCell {1,}- update a cell of reverse record
HeaderDeps:
block_hash(ReverseRecordRootCell)
CellDeps:
das-lock
balance-cell-type
reverse-record-root-cell-type
ConfigCellMain
ConfigCellReverseResolution
ConfigCellSMTNodeWhitelist
Inputs:
ReverseRecordRootCell
BalanceCell {1,}
Outputs:
ReverseRecordRootCell
BalanceCell {1,}The differences between these two types of transactions are as follows:
+ HeaderDeps:
+ block_hash(ReverseRecordRootCell)
CellDeps:
das-lock
balance-cell-type
reverse-record-root-cell-type
ConfigCellMain
ConfigCellReverseResolution
+ ConfigCellSMTNodeWhitelist
Inputs:
+ ReverseRecordRootCell
BalanceCell {1,}
Outputs:
ReverseRecordRootCell
BalanceCell {1,}Among them,
+ ReverseRecordRootCellis updated by store model, and
+ HeaderDeps:
+ block_hash(ReverseRecordRootCell)
CellDeps:
+ ConfigCellSMTNodeWhitelistis updated by the view layer in MVP dapp at https://github.com/ckb-js/kuai/blob/develop/packages/samples/mvp-dapp/src/views/tx.view.ts#L20
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Type
Projects
Status
🔖 Ready