Update bsip-0040.md
This commit is contained in:
parent
4349e8da45
commit
2051ff38f8
1 changed files with 2 additions and 3 deletions
|
@ -79,7 +79,6 @@ List of possible asserts are:
|
||||||
| `any` | [`list`, `of`, `allowed`, `values`] | stateless |
|
| `any` | [`list`, `of`, `allowed`, `values`] | stateless |
|
||||||
| `none` | [`none`, `of`, `these`, `values`] | stateless |
|
| `none` | [`none`, `of`, `these`, `values`] | stateless |
|
||||||
| `lt, le, gt, ge` | `comparative` | stateless |
|
| `lt, le, gt, ge` | `comparative` | stateless |
|
||||||
| `length` | [`min`, `max`] | stateless |
|
|
||||||
| `limit` | [`max_cumsum`, `interval_in_sec`] | [`current_cumsum`, `interval_began`] |
|
| `limit` | [`max_cumsum`, `interval_in_sec`] | [`current_cumsum`, `interval_began`] |
|
||||||
| `limit_monthly` | [`max_cumsum`, `interval_in_months`] | [`current_cumsum`, `interval_began`] |
|
| `limit_monthly` | [`max_cumsum`, `interval_in_months`] | [`current_cumsum`, `interval_began`] |
|
||||||
| `contains_only` | [`list`, `of`, `allowed`, `fields`] | stateless |
|
| `contains_only` | [`list`, `of`, `allowed`, `fields`] | stateless |
|
||||||
|
@ -95,7 +94,7 @@ Stateless assert, all argument types. `Argument value` must be equal to one of v
|
||||||
Stateless assert, all argument types. `Argument value` must NOT be equal to any of the values in the list.
|
Stateless assert, all argument types. `Argument value` must NOT be equal to any of the values in the list.
|
||||||
|
|
||||||
#### `lt, le, gt, ge`
|
#### `lt, le, gt, ge`
|
||||||
Stateless assert, only `int` type arguments.
|
Stateless assert, applies to `int` and `string` type arguments. If argument is `string` type, use its length as `argument value`.
|
||||||
- `lt`: `Argument value` must be less than `comparative`
|
- `lt`: `Argument value` must be less than `comparative`
|
||||||
- `le`: `Argument value` must be less than or equal to `comparative`
|
- `le`: `Argument value` must be less than or equal to `comparative`
|
||||||
- `gt`: `Argument value` must be greater than `comparative`
|
- `gt`: `Argument value` must be greater than `comparative`
|
||||||
|
@ -178,7 +177,7 @@ Notes: The implementation must not differentiate on which operation the custom a
|
||||||
# Milestones
|
# Milestones
|
||||||
We propose do split the implmentation into two milestones:
|
We propose do split the implmentation into two milestones:
|
||||||
|
|
||||||
1. Implementation of basic functionaliy to allow custom active permissions and authorities, including `any`, `none`, `lt, le, gt, ge` and `length` `asserts`. If deemed necessary by developpers, reduce to only allow one key or one account for every `custom active authority`
|
1. Implementation of basic functionaliy to allow custom active permissions and authorities, including `any`, `none` and `lt, le, gt, ge` `asserts`. If deemed necessary by developpers, reduce to only allow one key or one account for every `custom active authority`
|
||||||
2. Evaluation of stateful asserts `limit`, `limit_monthly` and more sophisticated assert `contains_only` in terms of performance. If positively evaluated, implement
|
2. Evaluation of stateful asserts `limit`, `limit_monthly` and more sophisticated assert `contains_only` in terms of performance. If positively evaluated, implement
|
||||||
|
|
||||||
This approach allows as well to add other asserts at a later stage (with a new BSIP).
|
This approach allows as well to add other asserts at a later stage (with a new BSIP).
|
||||||
|
|
Loading…
Reference in a new issue