import { Address , AppFilters , Network , SubscriptionCallback , SubscriptionHandler , } from '@aragon/connect-types' ; import { App , ConnectionContext , IOrganizationConnector , Organization , Permission , Repo , Role , } from '@aragon/connect-core' ; export type ConnectorEthereumConfig = { network : Network ; } ; class ConnectorEthereum implements IOrganizationConnector { connection ? : ConnectionContext ; readonly config : ConnectorEthereumConfig ; readonly name = 'ethereum' ; readonly network : Network ; constructor ( config ) { this . config = config ; this . network = config . network ; } async connect ( connection ) { this . connection = connection ; } async disconnect ( ) { delete this . connection ; } async permissionsForOrg ( ) { return new Promise ( ( resolve ) => { resolve ( [ ] ) ; } ) ; } onPermissionsForOrg ( organization , callback ) { return { unsubscribe : ( ) => { } , } ; } appForOrg ( organization , filters ) { return new Promise ( ( resolve ) => { resolve ( ) ; } ) ; } appsForOrg ( organization , filters ) { return new Promise ( ( resolve ) => { resolve ( [ ] ) ; } ) ; } onAppForOrg ( organization , filters , callback ) { return { unsubscribe : ( ) => { } , } ; } onAppsForOrg ( organization , filters , callback ) { return { unsubscribe : ( ) => { } , } ; } repoForApp ( organization , appAddress ) { return new Promise ( ( resolve ) => { resolve ( ) ; } ) ; } appByAddress ( organization , appAddress ) { return new Promise ( ( resolve ) => { resolve ( ) ; } ) ; } rolesForAddress ( organization , appAddress ) { return new Promise ( ( resolve ) => { resolve ( [ ] ) ; } ) ; } } export default ConnectorEthereum ;