A simple deposit and profit bytom dapp demo
Revision | 3bb6757c4f94410e13dc891e1c7fb33b57256fa8 (tree) |
---|---|
Time | 2019-04-02 11:21:14 |
Author | Zhiting Lin <zlin035@uott...> |
Commiter | Zhiting Lin |
update the readme file
@@ -18,6 +18,14 @@ Currently we are manually deploy the contract using the [equity compiler tool](h | ||
18 | 18 | Network and smart contract control program's constants configurations are stored under the `contracts/configure.json.js` file. |
19 | 19 | You may edit the configure after an new control program is launched. |
20 | 20 | |
21 | +### Dapp logic | |
22 | +Under the `./src/components/util/submitContract.js`, you will see the basic and reusable logic, for developing a Dapp. Including the following steps: | |
23 | +- list utxo from buffer server | |
24 | +- create the custom contract transaction | |
25 | +- lock utxo | |
26 | +- call `window.bytom.advancedTransfer` to create the advanced Transaction | |
27 | +- update balance if success. | |
28 | + | |
21 | 29 | ### Input and Output Object |
22 | 30 | #### Input |
23 | 31 | The first Input object must be spend utxo action, utxo will be selected according to the amount matches. |