Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
3947e0f
update contract addresses
pravigya Nov 16, 2024
1a2cf4d
fix: small fixes made while debugging
Mrtn-Omwenga Mar 12, 2025
e988cde
Feature1403: Changed the previous format of i17n to a new supported b…
picaroloco Mar 14, 2025
e0ae714
Feat1403: Sovled the proxy test
picaroloco Mar 14, 2025
e008c8b
Feat1403: Setup to avoid the next.cache problem
picaroloco Mar 14, 2025
04ac60e
Feat1603: Solved the problem in oracle test
picaroloco Mar 16, 2025
c4eb0d3
Feat1603: Solved the interaction with the createLoan function
picaroloco Mar 16, 2025
dda1ffa
Feat1703: Solved the calls to the api for mongodb to list the marketp…
picaroloco Mar 17, 2025
0933f24
Chore2003: Updated ABI, config, and type definitions
picaroloco Mar 20, 2025
fb97cb3
Feat2003: Improved loan fetching, UI layout, and loan status handling
picaroloco Mar 20, 2025
1a163bb
Feat2003: Refactored loan creation and collateral addition logic
picaroloco Mar 20, 2025
eaa5047
Feat2003: Refactored loan actions and UI improvements
picaroloco Mar 20, 2025
129fa28
Feat2003: Refactored loan status handling and updated loan DTOs
picaroloco Mar 20, 2025
8d2f677
Feat2003: Refactored loan service logic
picaroloco Mar 20, 2025
b7d301a
Feat2103: Enhanced filter button and layout for loan positions display
picaroloco Mar 21, 2025
83d526c
Feat2103: Refactor create loan panel toggle & highlight UI
picaroloco Mar 21, 2025
853ee92
Feat2103: Filter active positions to show only my positions & enhanc…
picaroloco Mar 21, 2025
d8ceda7
Feat2203: Solved reference to the market and list all the market pos…
picaroloco Mar 22, 2025
ae371e2
Feat2303: Refactor update-loan API, MarketModal, and loan service id…
picaroloco Mar 23, 2025
61532b6
Fix0404: Resolve yarn build errors and improve Netlify deployment com…
picaroloco Apr 4, 2025
1a5428d
Fix0404: Update ABIs and fix contract instantiation type errors
picaroloco Apr 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .env-example
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
NEXT_PUBLIC_TEST_MONGODB_URI=""
NEXT_PUBLIC_TEST_ORACLE_CONTRACT_ADDRESS=""
NEXT_PUBLIC_TEST_RPC_URL=""
NEXT_PUBLIC_NETWORK_ID=""
NEXT_PUBLIC_CHAIN_NAME=""
NEXT_PUBLIC_NETWORK_NAME=""
NEXT_PUBLIC_NETWORK_ID=""
NEXT_PUBLIC_BASE_URL=""
NEXT_PUBLIC_LOAN_POSITION_MANAGER_ADDRESS=""
NEXT_PUBLIC_LOAN_POSITION_NFT_ADDRESS=""
NEXT_PUBLIC_TEST_ORACLE_CONTRACT_ADDRESS=""
NEXT_PUBLIC_TREASURY_ADDRESS=""
NEXT_PUBLIC_TOKEN_A_ADDRESS=""
NEXT_PUBLIC_TOKEN_B_ADDRESS=""
25 changes: 13 additions & 12 deletions .env.local
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
NEXT_PUBLIC_TEST_MONGODB_URI=mongodb+srv://omwengamrtn:siMxdVRJm6RWP5Ro@cluster0.1iszo.mongodb.net/Koryntia?retryWrites=true&w=majority&appName=Cluster0 # mongodb+srv://koryntia-mongo:8S2DHed3sXvqNMFx@korintya-staging-databa.jmcewla.mongodb.net/
NEXT_PUBLIC_TEST_ORACLE_CONTRACT_ADDRESS=0x2279B7A0a67DB372996a5FaB50D91eAA73d2eBe6
NEXT_PUBLIC_TEST_RPC_URL="http://localhost:8545"
NEXT_PUBLIC_CHAIN_NAME=Hardhat
NEXT_PUBLIC_NETWORK_NAME=Local
NEXT_PUBLIC_NETWORK_ID=31337 # 11155111
NEXT_PUBLIC_BASE_URL="http://localhost:3000/api"
NEXT_PUBLIC_LOAN_POSITION_MANAGER_ADDRESS=0x68B1D87F95878fE05B998F19b66F4baba5De1aed
NEXT_PUBLIC_LOAN_POSITION_NFT_ADDRESS=0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9
NEXT_PUBLIC_TREASURY_ADDRESS=0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9
NEXT_PUBLIC_TOKEN_A_ADDRESS=0x5FbDB2315678afecb367f032d93F642f64180aa3
NEXT_PUBLIC_TOKEN_B_ADDRESS=0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512
NEXT_PUBLIC_TEST_RPC_URL=https://sepolia.infura.io/v3/902f983a6f544f8596bd9476b712b892
NEXT_PUBLIC_CHAIN_NAME=Sepolia
NEXT_PUBLIC_NETWORK_NAME=Sepolia
NEXT_PUBLIC_NETWORK_ID=11155111
NEXT_PUBLIC_BASE_URL="/api"

# siMxdVRJm6RWP5Ro
NEXT_PUBLIC_TEST_ORACLE_CONTRACT_ADDRESS=0xa7a0F2F89F6BD11AaC07eAc88E290d935707611C
NEXT_PUBLIC_LOAN_POSITION_MANAGER_ADDRESS=0x753958d26De0A6BfC9a3d948B84A65038bf0d827
NEXT_PUBLIC_LOAN_POSITION_NFT_ADDRESS=0xFB3e5F7caF4ab07fF0e2bf8bb82cE1B801349e2D
NEXT_PUBLIC_TREASURY_ADDRESS=0x070730a8C64bC8B3ebBC9878F32919A686B71a25
NEXT_PUBLIC_TOKEN_A_ADDRESS=0x6F794633f1042244B1795f9bb1104f79A5185b2A
NEXT_PUBLIC_TOKEN_B_ADDRESS=0x03a0744e44Dcb34634BC12FbB87994D944ABF620

# siMxdVRJm6RWP5Ro
26 changes: 26 additions & 0 deletions .idx/dev.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{pkgs}: {
channel = "stable-23.11";
packages = [
pkgs.nodejs_20
];
idx.extensions = [

];
idx.previews = {
previews = {
web = {
command = [
"npm"
"run"
"dev"
"--"
"--port"
"$PORT"
"--hostname"
"0.0.0.0"
];
manager = "web";
};
};
};
}
6 changes: 0 additions & 6 deletions i18nConfig.js

This file was deleted.

11 changes: 9 additions & 2 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import type { Config } from "jest";
import nextJest from "next/jest";
import type { Config } from 'jest';
import nextJest from 'next/jest';
import path from 'path';
import { config as loadEnv } from 'dotenv';

loadEnv({
path: path.resolve(process.cwd(), '.env.local')
});

const createJestConfig = nextJest({
dir: "./",
Expand All @@ -13,6 +19,7 @@ const config: Config = {
"^@/(.*)$": "<rootDir>/src/$1",
},
testTimeout: 10000000,
setupFilesAfterEnv: ["<rootDir>/jest.setup.js"],
};

export default createJestConfig(config);
7 changes: 7 additions & 0 deletions jest.setup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// jest.setup.js
import React from 'react';

if (typeof React.cache !== 'function') {
// Parchea React.cache para evitar el error
React.cache = () => {};
}
5 changes: 5 additions & 0 deletions next-intl.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
locales: ['en', 'de', 'es'],
defaultLocale: 'en',
messagesDir: 'messages'
};
1 change: 1 addition & 0 deletions next-intl.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
declare module "next-intl";
7 changes: 7 additions & 0 deletions next-navigation.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
declare module "next/navigation" {
export function notFound(): never;
export function useRouter(): {
push(url: string): void;
};
export function usePathname(): string;
}
Loading