From c1be23894224c62276b8581e6e2e0c8ba743f6bf Mon Sep 17 00:00:00 2001 From: Rodrigo Perez Date: Thu, 24 Feb 2022 23:44:17 -0300 Subject: [PATCH 1/2] roles for specific app --- packages/connect-core/src/entities/Organization.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/connect-core/src/entities/Organization.ts b/packages/connect-core/src/entities/Organization.ts index 6dfceb5d..edd64e01 100644 --- a/packages/connect-core/src/entities/Organization.ts +++ b/packages/connect-core/src/entities/Organization.ts @@ -19,6 +19,7 @@ import { subscription } from '../utils/subscriptions' import App from './App' import Permission from './Permission' import Transaction from './Transaction' +import Role from './Role' // TODO // Organization#addApp(repoName, options) @@ -160,6 +161,13 @@ export default class Organization { ) } + ///////// ROLES /////////// + + async roles(appAddress: Address): Promise { + return this.connection.orgConnector.rolesForAddress(this, appAddress) + } + + //////// DESCRIPTIONS ///////// // Return a description of the forwarding path encoded on the evm script From 27a3732b0fc7feac2bb1d9154332fae7d2f9ab1a Mon Sep 17 00:00:00 2001 From: Lint Action Date: Fri, 25 Feb 2022 02:49:38 +0000 Subject: [PATCH 2/2] Fix code style issues with Prettier --- packages/connect-core/src/entities/Organization.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/connect-core/src/entities/Organization.ts b/packages/connect-core/src/entities/Organization.ts index edd64e01..0bef251f 100644 --- a/packages/connect-core/src/entities/Organization.ts +++ b/packages/connect-core/src/entities/Organization.ts @@ -167,7 +167,6 @@ export default class Organization { return this.connection.orgConnector.rolesForAddress(this, appAddress) } - //////// DESCRIPTIONS ///////// // Return a description of the forwarding path encoded on the evm script