From db84fde73ac98226a4c90b021a4f70c874a634e4 Mon Sep 17 00:00:00 2001 From: Konstantin Date: Fri, 26 Aug 2022 19:59:46 +0300 Subject: [PATCH] Bump version; --- Beacon.Sdk/Beacon.Sdk.csproj | 8 ++------ Beacon.Sdk/Beacon/Permission/BeaconHelper.cs | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+), 6 deletions(-) create mode 100644 Beacon.Sdk/Beacon/Permission/BeaconHelper.cs diff --git a/Beacon.Sdk/Beacon.Sdk.csproj b/Beacon.Sdk/Beacon.Sdk.csproj index 3cd3ec1..017459b 100644 --- a/Beacon.Sdk/Beacon.Sdk.csproj +++ b/Beacon.Sdk/Beacon.Sdk.csproj @@ -14,7 +14,7 @@ Mikhail Tatarenko Beacon.Sdk Beacon .NET SDK for Tezos wallet developers to seamlessly connect to multiple dApps. - 0.0.7 + 1.0.0 Copyright © Baking Bad 2019-2021 enable netstandard2.0 @@ -26,11 +26,7 @@ - - - - - + diff --git a/Beacon.Sdk/Beacon/Permission/BeaconHelper.cs b/Beacon.Sdk/Beacon/Permission/BeaconHelper.cs new file mode 100644 index 0000000..7c1bb2a --- /dev/null +++ b/Beacon.Sdk/Beacon/Permission/BeaconHelper.cs @@ -0,0 +1,20 @@ +using System.Collections.Generic; +using System.Linq; + +namespace Beacon.Sdk.Beacon.Permission +{ + public static class BeaconHelper + { + public static List GetPermissionStrings(IEnumerable permissions) + { + return permissions.Select(p => p switch + { + PermissionScope.sign => "Sign transactions", + PermissionScope.operation_request => "Operation request", + PermissionScope.encrypt => "Encrypt", + PermissionScope.threshold => "Treshold", + _ => "Unknown permission" + }).ToList(); + } + } +} \ No newline at end of file