From e9c8e9bc88749f16200fad8b8cc497ca8e3e8a63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Schie=C3=9Fl?= Date: Fri, 10 Aug 2018 06:56:05 +0200 Subject: [PATCH] add neq --- bsip-0040.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bsip-0040.md b/bsip-0040.md index 6b1caaf..a33801e 100644 --- a/bsip-0040.md +++ b/bsip-0040.md @@ -102,7 +102,7 @@ List of possible restrictions are: | ------------- |:-------------:| -----:| | `any` | [`list`, `of`, `allowed`, `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 | | `limit` | [`max_cumsum`, `interval_in_sec`] | [`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` 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: - `int` type: use as is - `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` - `ge`: `Argument value` must be greater than or equal to `comparative` - `eq`: `Argument value` must equal to `comparative` +- `eq`: `Argument value` must NOT be equal to `comparative` #### `contains, not_contains` 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: -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` 3. Implement `logical_or`