Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lidangzzz authored Jun 10, 2023
1 parent 1974628 commit 92bdba2
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,18 @@ operations on DARC. For example:

```javascript
mint_tokens( // mint token operation
[addr1, addr2, addr3], // token address
[[addr1, addr2, addr3], // token address
[0, 0, 0], // token class
[500, 300, 200]
] // number of tokens
)
;
[500, 300, 200]] // number of tokens
);

pay_cash(100000000, 0, 1); // pay 0.1 ETH as purchase

transfer_tokens( // transfer token operation
[addr1, addr2, addr3], // token address
[[addr1, addr2, addr3], // token address
[0, 0, 0], // token class
[100, 100, 200]
] // number of tokens
)
;
[100, 100, 200]] // number of tokens
);

add_withdraw_cash(10000000); // add 0.01 ETH to withdraw balance

Expand Down Expand Up @@ -119,9 +115,7 @@ The law of DARC is defined in below psuedo-code:

```javascript
if (plugin_condition == true) {
plugin_decision = allows / denies / requires
a
vote
plugin_decision = allows / denies / requires a vote
}
```

Expand Down Expand Up @@ -530,4 +524,4 @@ Since Hardhat and OpenZeppelin are used, the project can be built using the foll

```shell
npm run deploy
```
```

0 comments on commit 92bdba2

Please sign in to comment.