Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

feat(argo-finance): added argo-finance to Zapper #652

Merged
merged 10 commits into from
Jun 21, 2022
18 changes: 0 additions & 18 deletions .env.sample

This file was deleted.

41 changes: 41 additions & 0 deletions src/apps/argo-finance/argo-finance.definition.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
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 ARGO_FINANCE_DEFINITION = appDefinition({
id: 'argo-finance',
name: 'Argo Finance',
description:
'Argo is the premier liquid staking protocol built on top of the Cronos blockchain that aims to unlock the value of all staked CRO and maximize the capital efficiency of CRO across the Crypto.com ecosystem.',
url: 'https://www.argofinance.money/',

groups: {

pledging: {
id: 'pledging',
type: GroupType.POSITION,
label: 'Pledging',
},

},

tags: [AppTag.LIQUID_STAKING],
keywords: [],
links: {},

supportedNetworks: {
[Network.CRONOS_MAINNET]: [AppAction.VIEW],
},

primaryColor: '#fff',
});

@Register.AppDefinition(ARGO_FINANCE_DEFINITION.id)
export class ArgoFinanceAppDefinition extends AppDefinition {
constructor() {
super(ARGO_FINANCE_DEFINITION);
}
}

export default ARGO_FINANCE_DEFINITION;
18 changes: 18 additions & 0 deletions src/apps/argo-finance/argo-finance.module.ts
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 { ArgoFinanceAppDefinition, ARGO_FINANCE_DEFINITION } from './argo-finance.definition';
import { ArgoFinanceContractFactory } from './contracts';
import { CronosArgoFinanceBalanceFetcher } from './cronos/argo-finance.balance-fetcher';
import { CronosArgoFinancePledgingContractPositionFetcher } from './cronos/argo-finance.pledging.contract-position-fetcher';

@Register.AppModule({
appId: ARGO_FINANCE_DEFINITION.id,
providers: [
ArgoFinanceAppDefinition,
ArgoFinanceContractFactory,
CronosArgoFinanceBalanceFetcher,
CronosArgoFinancePledgingContractPositionFetcher
],
})
export class ArgoFinanceAppModule extends AbstractApp() { }
Loading