Skip to content

Commit 3d7f2b0

Browse files
committed
Update README.md about sample transactions
1 parent 99098fa commit 3d7f2b0

File tree

1 file changed

+45
-19
lines changed

1 file changed

+45
-19
lines changed

README.md

Lines changed: 45 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -64,22 +64,48 @@ Follow steps below:
6464
cargo run -- cc_to_secp --tx_hash <tx-hash> --tx_index <index> --key_file key.json --lock_arg <LOCK-ARG> --sp_tx_hash <SPHINCS+ Script in step 2> --sp_tx_index <index> --fee 10000
6565
```
6666

67-
## Deployment on testnet
68-
The contract can be used on testnet
69-
```
70-
tx_hash: 0x35f51257673c7a7edd009fa2166e6f8645156207c9da38202f04ba4d94d9e519
71-
index: 0
72-
```
73-
74-
I made a transaction with this contract.
75-
76-
```
77-
Default lock script (secp256k1) to SPHINCS+
78-
tx hash: 0x1a48fb4def03465ab826e56fbf77943db65fad57db19d02279465d954e28be64
79-
80-
```
81-
After that, I transaction the contract:
82-
```
83-
tx hash: 0x1e3fcf73f02bb98e90239ed01e4fec63dc3469471309a19ee4eec7cfc00a8637
84-
```
85-
67+
## Deployment
68+
69+
* Mirana(mainnet)
70+
71+
| parameter | value |
72+
| --------- | ------------ |
73+
| code_hash | not deployed |
74+
| hash_type | type |
75+
| tx_hash | not deployed |
76+
| index | 0 |
77+
| dep_type | code |
78+
79+
* Pudge(testnet)
80+
81+
| parameter | value |
82+
| --------- | ------------------------------------------------------------------ |
83+
| code_hash | 0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8 |
84+
| hash_type | type |
85+
| tx_hash | 0x35f51257673c7a7edd009fa2166e6f8645156207c9da38202f04ba4d94d9e519 |
86+
| index | 0 |
87+
| dep_type | code |
88+
89+
## Sample transactions.
90+
91+
### Convert a cell lock script to SPHINCS+ through transactions.
92+
* Note, The output cell hash_type need to use data1. Because the contract uses the B extensions.
93+
94+
| parameter | value |
95+
| --------- | ------------------------------------------------------------------ |
96+
| code_hash | 0x989ab456455509a1c2ad1cb8116b7d209df228144445c741b101ec3e55ee8351 |
97+
| hash_type | data1 |
98+
| tx_hash | 0x1a48fb4def03465ab826e56fbf77943db65fad57db19d02279465d954e28be64 |
99+
| index | 0 |
100+
| dep_type | code |
101+
102+
### Unlock this Cell
103+
Transfer out this Cell (use SPHINCS+ to unlock).
104+
105+
| parameter | value |
106+
| --------- | ------------------------------------------------------------------ |
107+
| code_hash | 0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8 |
108+
| hash_type | type |
109+
| tx_hash | 0x1e3fcf73f02bb98e90239ed01e4fec63dc3469471309a19ee4eec7cfc00a8637 |
110+
| index | 0 |
111+
| dep_type | code |

0 commit comments

Comments
 (0)