From 8694c1702369f1710541d19726251257a541b84c Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 17 Feb 2020 09:26:36 -0500 Subject: [PATCH] sketch out metadata commands for allow lists --- lib/metadata.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lib/metadata.js b/lib/metadata.js index 220327456..92a5d7541 100644 --- a/lib/metadata.js +++ b/lib/metadata.js @@ -19,6 +19,19 @@ var isValidOwner = function (owner) { return typeof(owner) === 'string' && owner.length === 44; }; +// ["RESTRICT_ACCESS", [true], 1561623438989] +// ["RESTRICT_ACCESS", [false], 1561623438989] +// commands.RESTRICT_ACCESS = function (meta, args) {}; + +// ["ADD_ALLOWED", ["7eEqelGso3EBr5jHlei6av4r9w2B9XZiGGwA1EgZ-5I=", ...], 1561623438989] +// commands.ADD_ALLOWED = function (meta, args) {}; + +// ["RM_ALLOWED", ["7eEqelGso3EBr5jHlei6av4r9w2B9XZiGGwA1EgZ-5I=", ...], 1561623438989] +// commands.RM_ALLOWED = function (meta, args) {}; + +// ["RESET_ALLOWED", ["7eEqelGso3EBr5jHlei6av4r9w2B9XZiGGwA1EgZ-5I=", ...], 1561623438989] +// commands.RESET_ALLOWED = function (meta, args) {}; + // ["ADD_OWNERS", ["7eEqelGso3EBr5jHlei6av4r9w2B9XZiGGwA1EgZ-5I="], 1561623438989] commands.ADD_OWNERS = function (meta, args) { // bail out if args isn't an array