Skip to content

Commit

Permalink
feat(types): add a new field named 'hash_type' in types of script and…
Browse files Browse the repository at this point in the history
… cell output

hash_type has alternative values of 'Data' and 'Type'

BREAKING CHANGE: types of script and cell output changed
  • Loading branch information
Keith-CY committed Jul 22, 2019
1 parent ed09614 commit 2692c0a
Show file tree
Hide file tree
Showing 8 changed files with 175 additions and 59 deletions.
18 changes: 12 additions & 6 deletions packages/ckb-sdk-rpc/__tests__/formatters/params.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@
{
"cell": {
"txHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"index": "4294967295"
"index": "4294967295",
"hashType": "Data"
},
"blockHash": "0x0000000000000000000000000000000000000000000000000000000000000000"
}
Expand All @@ -99,7 +100,8 @@
"previousOutput": {
"cell": {
"txHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"index": "4294967295"
"index": "4294967295",
"hashType": "Data"
},
"blockHash": "0x0000000000000000000000000000000000000000000000000000000000000000"
},
Expand All @@ -112,7 +114,8 @@
"data": "0x",
"lock": {
"args": [],
"codeHash": "0x0000000000000000000000000000000000000000000000000000000000000001"
"codeHash": "0x0000000000000000000000000000000000000000000000000000000000000001",
"hashType": "Data"
},
"type": null
}
Expand All @@ -124,7 +127,8 @@
{
"cell": {
"tx_hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"index": "4294967295"
"index": "4294967295",
"hash_type": "Data"
},
"block_hash": "0x0000000000000000000000000000000000000000000000000000000000000000"
}
Expand All @@ -134,7 +138,8 @@
"previous_output": {
"cell": {
"tx_hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"index": "4294967295"
"index": "4294967295",
"hash_type": "Data"
},
"block_hash": "0x0000000000000000000000000000000000000000000000000000000000000000"
},
Expand All @@ -147,7 +152,8 @@
"data": "0x",
"lock": {
"args": [],
"code_hash": "0x0000000000000000000000000000000000000000000000000000000000000001"
"code_hash": "0x0000000000000000000000000000000000000000000000000000000000000001",
"hash_type": "Data"
},
"type": null
}
Expand Down
Loading

0 comments on commit 2692c0a

Please sign in to comment.