add neq
This commit is contained in:
parent
a1ce8ab255
commit
e9c8e9bc88
1 changed files with 4 additions and 3 deletions
|
@ -102,7 +102,7 @@ List of possible restrictions 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, eq` | `comparative` | stateless |
|
| `lt, le, gt, ge, eq, neq` | `comparative` | stateless |
|
||||||
| `contains, not_contains` | [`list`, `of`, `values`] | stateless |
|
| `contains, not_contains` | [`list`, `of`, `values`] | 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`] |
|
||||||
|
@ -127,7 +127,7 @@ Stateless assert, all argument types. `Argument value` must be equal to one of v
|
||||||
#### `none`
|
#### `none`
|
||||||
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, eq, neq`
|
||||||
Stateless assert. Allows explicit type conversion:
|
Stateless assert. Allows explicit type conversion:
|
||||||
- `int` type: use as is
|
- `int` type: use as is
|
||||||
- `string` type: use `length` of string as `argument value`
|
- `string` type: use `length` of string as `argument value`
|
||||||
|
@ -140,6 +140,7 @@ The different asserts read as:
|
||||||
- `gt`: `Argument value` must be greater than `comparative`
|
- `gt`: `Argument value` must be greater than `comparative`
|
||||||
- `ge`: `Argument value` must be greater than or equal to `comparative`
|
- `ge`: `Argument value` must be greater than or equal to `comparative`
|
||||||
- `eq`: `Argument value` must equal to `comparative`
|
- `eq`: `Argument value` must equal to `comparative`
|
||||||
|
- `eq`: `Argument value` must NOT be equal to `comparative`
|
||||||
|
|
||||||
#### `contains, not_contains`
|
#### `contains, not_contains`
|
||||||
Stateless assert, for `list` type arguments.
|
Stateless assert, for `list` type arguments.
|
||||||
|
@ -373,7 +374,7 @@ the transaction is executed.
|
||||||
|
|
||||||
We propose do split the implmentation into two milestones. Each milestone will be voted on as a separate BSIP:
|
We propose do split the implmentation into two milestones. Each milestone will be voted on as a separate BSIP:
|
||||||
|
|
||||||
1. Implementation of basic functionaliy to allow custom active permissions and authorities, including `any`, `none` and `lt, le, gt, ge`, `contains, not_contains` and `attribute_assert` `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, eq, neq`, `contains, not_contains` and `attribute_assert` `asserts`. If deemed necessary by developpers, reduce to only allow one key or one account for every `custom active authority`
|
||||||
2. Implement stateful asserts `limit` and `limit_monthly`
|
2. Implement stateful asserts `limit` and `limit_monthly`
|
||||||
3. Implement `logical_or`
|
3. Implement `logical_or`
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue