forked from Zapper-fi/studio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(clearpool): Add token position fetchers for Clearpool (Zapper-fi…
- Loading branch information
rekt0x
committed
Aug 8, 2022
1 parent
033c398
commit db4a614
Showing
12 changed files
with
4,429 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { Register } from '~app-toolkit/decorators'; | ||
import { appDefinition, AppDefinition } from '~app/app.definition'; | ||
import { AppAction, AppTag, GroupType } from '~app/app.interface'; | ||
import { Network } from '~types/network.interface'; | ||
|
||
export const CLEARPOOL_DEFINITION = appDefinition({ | ||
id: 'clearpool', | ||
name: 'Clearpool', | ||
description: 'Clearpool is a decentralized marketplace for unsecured institutional capital.', | ||
url: 'https://clearpool.finance', | ||
|
||
groups: { | ||
pool: { | ||
id: 'pool', | ||
type: GroupType.TOKEN, | ||
label: 'Pool', | ||
}, | ||
}, | ||
|
||
tags: [AppTag.LENDING], | ||
keywords: [], | ||
links: {}, | ||
|
||
supportedNetworks: { | ||
[Network.ETHEREUM_MAINNET]: [AppAction.VIEW], | ||
[Network.POLYGON_MAINNET]: [AppAction.VIEW], | ||
}, | ||
|
||
primaryColor: '#fff', | ||
}); | ||
|
||
@Register.AppDefinition(CLEARPOOL_DEFINITION.id) | ||
export class ClearpoolAppDefinition extends AppDefinition { | ||
constructor() { | ||
super(CLEARPOOL_DEFINITION); | ||
} | ||
} | ||
|
||
export default CLEARPOOL_DEFINITION; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Register } from '~app-toolkit/decorators'; | ||
import { AbstractApp } from '~app/app.dynamic-module'; | ||
|
||
import { ClearpoolAppDefinition, CLEARPOOL_DEFINITION } from './clearpool.definition'; | ||
import { ClearpoolContractFactory } from './contracts'; | ||
import { EthereumClearpoolPoolTokenFetcher } from './ethereum/clearpool.pool.token-fetcher'; | ||
import { PolygonClearpoolPoolTokenFetcher } from './polygon/clearpool.pool.token-fetcher'; | ||
|
||
@Register.AppModule({ | ||
appId: CLEARPOOL_DEFINITION.id, | ||
providers: [ | ||
ClearpoolAppDefinition, | ||
ClearpoolContractFactory, | ||
EthereumClearpoolPoolTokenFetcher, | ||
PolygonClearpoolPoolTokenFetcher, | ||
], | ||
}) | ||
export class ClearpoolAppModule extends AbstractApp() {} |
Oops, something went wrong.