Skip to content

Commit 54805ca

Browse files
authored
doc(pallet-dao): missing documentation (#984)
1 parent 65c2de3 commit 54805ca

12 files changed

+98
-62
lines changed

docs/architecture/0015-duplicate-veto.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,12 @@ Accepted
88

99
## Context
1010

11-
See [here](https://github.com/threefoldtech/tfchain/issues/858) for more details.
11+
See [here](https://github.com/threefoldtech/tfchain/issues/858) for more
12+
details.
1213

1314
## Decision
1415

15-
Since we don't want a council member to veto a DAO proposal alone by being able to submit its veto more than once we need to prevent duplicate veto.
16-
In `pallet-dao`, `veto()` extrinsic should return an appropriate error while this situation occures.
16+
Since we don't want a council member to veto a DAO proposal alone by being able
17+
to submit its veto more than once we need to prevent duplicate veto. In
18+
`pallet-dao`, `veto()` extrinsic should return an appropriate error while this
19+
situation occures.

docs/architecture/0016-BurnTransaction-BurnTransactionExpired-changed.md

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# 16. Add condition to DAO motion approval
2+
3+
Date: 2023-11-07
4+
5+
## Status
6+
7+
Accepted
8+
9+
## Context
10+
11+
See [here](https://github.com/threefoldtech/tfchain/issues/803) for more
12+
details.
13+
14+
## Decision
15+
16+
Stick to specs initial idea by adding new condition
17+
`number of votes >= threshold` for proposal to be approved. If by the end of the
18+
vote the minimal amount of votes is not reached, the proposal fails due to
19+
insufficient interest.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# 17. Add Source account ID to BurnTransaction and BurnTransactionExpired
2+
3+
Date: 2023-11-14
4+
5+
## Status
6+
7+
Accepted
8+
9+
## Context
10+
11+
See [here](https://github.com/threefoldtech/tfchain/issues/883) for more
12+
details.
13+
14+
## Decision
15+
16+
Add `Source` account ID to `BurnTransaction` storage type and
17+
`BurnTransactionExpired` event and migrate previous `BurnTransactions` and
18+
`ExecutedBurnTransactions` storages

docs/architecture/0017-rework_cancel_contracts.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

docs/architecture/0018-allow-renting-standby-node.md

Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# 18. Allow collective approval to cancel contracts
2+
3+
Date: 2023-11-06
4+
5+
## Status
6+
7+
Accepted
8+
9+
## Context
10+
11+
See [here](https://github.com/threefoldtech/tfchain/issues/884) for more
12+
details.
13+
14+
## Decision
15+
16+
In `pallet-smart-contract`, add `cancel_contract_collective()` extrinsic to
17+
allow a collective approval (council or farmers) to cancel a contract. For this
18+
purpose we also add a new entry `CanceledByCollective` in `Cause` enum to better
19+
qualify the cancelation cause.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# 19. Allow renting standby node
2+
3+
Date: 2024-01-09
4+
5+
## Status
6+
7+
Accepted
8+
9+
## Context
10+
11+
See [here](https://github.com/threefoldtech/tfchain/issues/923) for more
12+
details.
13+
14+
## Decision
15+
16+
We want to be able to create a rent contract on node even if it is in standby
17+
phase. Moreover, user should be billed for this contract only during online
18+
periods.
19+
20+
In `pallet-smart-contract`:
21+
22+
- Remove the `node_power.is_down()` restriction when trying to create a rent
23+
contract in `create_rent_contract()` extrinsic. restriction
24+
25+
- Modify rent contract billing logic by allowing billing only if the node is
26+
online (`PowerState` = `Up`). To skip the billing during the standby period we
27+
update the contract lock when the node power state is switched to `Up`.
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 19. Rework change power target on node
1+
# 20. Rework change power target on node
22

33
Date: 2024-01-09
44

@@ -8,8 +8,10 @@ Accepted
88

99
## Context
1010

11-
See [here](https://github.com/threefoldtech/tfchain/issues/924) for more details.
11+
See [here](https://github.com/threefoldtech/tfchain/issues/924) for more
12+
details.
1213

1314
## Decision
1415

15-
Make sure that node has no active contracts on it to be able to change its `PowerTarget` to `Down` when calling `change_power_target()` extrinsic.
16+
Make sure that node has no active contracts on it to be able to change its
17+
`PowerTarget` to `Down` when calling `change_power_target()` extrinsic.

docs/architecture/0020-rework-dao-voting.md renamed to docs/architecture/0021-rework-dao-voting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 20. Harden closing of a DAO motion voting
1+
# 21. Harden closing of a DAO motion voting
22

33
Date: 2024-05-02
44

0 commit comments

Comments
 (0)