Skip to content

Commit

Permalink
Merge pull request #64 from supermean-org/release/v1.3.17
Browse files Browse the repository at this point in the history
Updated Credix program address in devnet and bumped version
  • Loading branch information
MexicanSparker authored Jun 22, 2023
2 parents 8d8a73e + 9599ed2 commit d62f282
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mean-dao/mean-multisig-apps",
"version": "1.3.16",
"version": "1.3.17",
"description": "Mean Multisig applications repository",
"main": "lib/index.js",
"repository": "https://github.com/supermean-org/supersafe-apps.git",
Expand Down
2 changes: 1 addition & 1 deletion src/apps.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
"active": true
},
{
"id": "CRDx2YkdtYtGZXGHZ59wNv1EwKHQndnRc1gT4p8i2vPX",
"id": "crdszSnZQu7j36KfsMJ4VEmMUTJgrNYXwoPVHUANpAu",
"name": "Credix Finance",
"network": 103,
"folder": "credix-devnet",
Expand Down
2 changes: 1 addition & 1 deletion src/apps/credix-devnet/func.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import * as credixIdl from "./definition.json";
import NodeWallet from "@coral-xyz/anchor/dist/cjs/nodewallet";

const credixProgram = new PublicKey(
"CRDx2YkdtYtGZXGHZ59wNv1EwKHQndnRc1gT4p8i2vPX"
"crdszSnZQu7j36KfsMJ4VEmMUTJgrNYXwoPVHUANpAu"
);

const DEFAULT_MARKET_PLACE = "credix-marketplace";
Expand Down
13 changes: 7 additions & 6 deletions tests/app.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,35 +34,36 @@ describe('apps.ts', () => {
})

describe('getAppConfig CREDIX', () => {
const credixId = 'CRDx2YkdtYtGZXGHZ59wNv1EwKHQndnRc1gT4p8i2vPX';
const credixIdMainnet = 'CRDx2YkdtYtGZXGHZ59wNv1EwKHQndnRc1gT4p8i2vPX';
const credixIdDevnet = 'crdszSnZQu7j36KfsMJ4VEmMUTJgrNYXwoPVHUANpAu';
it('should get credix for devnet', async () => {
const config = await appsProviderDevnet.getAppConfig(credixId);
const config = await appsProviderDevnet.getAppConfig(credixIdDevnet);
expect(config).toBeDefined();
expect(config?.ui.length).toBeGreaterThan(0);
})

it('should get Credix for mainnet', async () => {
const config = await appsProviderMainnet.getAppConfig(credixId);
const config = await appsProviderMainnet.getAppConfig(credixIdMainnet);
expect(config).toBeDefined();
expect(config?.ui.length).toBeGreaterThan(0);
})

it('should get Credix depositTranche [mainnet]', async () => {
const config = await appsProviderMainnet.getAppConfig(credixId);
const config = await appsProviderMainnet.getAppConfig(credixIdMainnet);
const depositTranche = config?.ui.find(x => x.name === 'depositTranche');
expect(config).toBeDefined();
expect(depositTranche).toBeDefined();
})

it('should get Credix depositTranche [devnet]', async () => {
const config = await appsProviderDevnet.getAppConfig(credixId);
const config = await appsProviderDevnet.getAppConfig(credixIdDevnet);
const depositTranche = config?.ui.find(x => x.name === 'depositTranche');
expect(config).toBeDefined();
expect(depositTranche).toBeDefined();
})

it('should get Credix withdrawTranche [devnet]', async () => {
const config = await appsProviderDevnet.getAppConfig(credixId);
const config = await appsProviderDevnet.getAppConfig(credixIdDevnet);
const withdrawTranche = config?.ui.find(x => x.name === 'withdrawTranche');
expect(config).toBeDefined();
expect(withdrawTranche).toBeDefined();
Expand Down

0 comments on commit d62f282

Please sign in to comment.