Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vouched projects and superfluid Base improvements #1897

Merged
merged 76 commits into from
Jan 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
6ba562f
throw error on un-vouching the givbackseligible projects
MohammadPCh Oct 27, 2024
5565767
update message
MohammadPCh Oct 27, 2024
a744af6
optimize the approveMultipleProjects
MohammadPCh Oct 27, 2024
8d017d1
make projects verified if they become givbacksEligible
MohammadPCh Oct 27, 2024
7db802f
prevent approve or reject draft projects
MohammadPCh Oct 28, 2024
a680fa2
Merge branch 'staging' into update-verify-approve-conditions
MohammadPCh Oct 29, 2024
f33cb33
fix records
MohammadPCh Oct 29, 2024
7c23f75
fix conditions
MohammadPCh Oct 29, 2024
102ce11
use redirectUrl
MohammadPCh Oct 29, 2024
d23a58a
fix tests
MohammadPCh Oct 29, 2024
4d8b591
add unverifyProjectsTestCases
MohammadPCh Oct 29, 2024
9d99aff
add test:projectVerificationTab
MohammadPCh Oct 29, 2024
4d82302
temporary comment
MohammadPCh Oct 29, 2024
52cfb82
fix typo
MohammadPCh Nov 4, 2024
b3dfb59
send email when project verification status changed
MohammadPCh Nov 4, 2024
baa24d1
Feat/Generating public user data
kkatusic Dec 3, 2024
e5605eb
Merge branch 'staging' into feat/user_sitemap_list
kkatusic Dec 5, 2024
fd8ea0e
added tests for querying user basic data
kkatusic Dec 5, 2024
e89c1ea
add includeUnlisted to FilterProjectQueryInputParams
MohammadPCh Dec 9, 2024
92f15c9
return proper projects
MohammadPCh Dec 9, 2024
2051be0
add recipient address to streams when nonexistent (#1890)
CarlosQ96 Dec 9, 2024
d6e3888
Merge branch 'master' into staging
CarlosQ96 Dec 10, 2024
d12453d
Merge pull request #1889 from Giveth/fetch-unlisted-projects
MohammadPCh Dec 10, 2024
5cf1e60
started endaoment update feature
kkatusic Dec 11, 2024
f0c3fc8
Superfluid Base Support (#1893)
CarlosQ96 Dec 17, 2024
445fe68
Merge pull request #1866 from Giveth/update-verify-approve-conditions
divine-comedian Dec 18, 2024
82dfc17
remove project validation from anchor contract
CarlosQ96 Dec 21, 2024
b41c543
Merge pull request #1887 from Giveth/feat/user_sitemap_list
kkatusic Dec 26, 2024
ff91c4d
Add networkId logic to superfluid subgraphs (#1896)
CarlosQ96 Dec 26, 2024
b703497
fix linkedin scope
lovelgeorge99 Dec 30, 2024
b930c80
Merge pull request #1898 from Giveth/fix-linkedin-scope
lovelgeorge99 Dec 31, 2024
3e62ce6
fix user info link to user info
lovelgeorge99 Jan 2, 2025
829f973
cron job for sitemap generating
kkatusic Jan 2, 2025
c74dc3b
Merge pull request #1899 from Giveth/fix-linkedin-scope
lovelgeorge99 Jan 2, 2025
09186cd
Merge pull request #1900 from Giveth/feat/sitemap_cron_job
kkatusic Jan 3, 2025
7ebaeca
adding additional projects to Endaoment list
kkatusic Jan 3, 2025
03e134e
Merge branch 'staging' into feat/check_periodically_endaoment
kkatusic Jan 3, 2025
5a866ad
started cronjob
kkatusic Jan 3, 2025
d4cf597
finished cron job
kkatusic Jan 8, 2025
b558266
Feature cluster matching (#1862)
CarlosQ96 Jan 9, 2025
ed8e7da
Merge branch 'staging' into feat/check_periodically_endaoment
kkatusic Jan 9, 2025
b224a32
fix updateUser condition to handle email undefined case
CarlosQ96 Jan 9, 2025
60f30ad
fixed one variable; added cronjob env suggested by Carlos
kkatusic Jan 10, 2025
2d79a58
removed redundant code
kkatusic Jan 10, 2025
e8a6120
check config value
kkatusic Jan 10, 2025
baa7450
fix calling env variable
kkatusic Jan 10, 2025
448da9e
Merge pull request #1892 from Giveth/feat/check_periodically_endaoment
kkatusic Jan 10, 2025
1c37bc0
fix/removing endaomentId from update
kkatusic Jan 13, 2025
039d808
Merge pull request #1904 from Giveth/feat/check_periodically_endaoment
kkatusic Jan 13, 2025
9d61941
add qfStrategy to qfRounds (#1903)
CarlosQ96 Jan 13, 2025
acd0e5d
update bootstrap.js adding check endaoment
kkatusic Jan 13, 2025
e9ea066
adding sitemap cronjob to bootstrap
kkatusic Jan 13, 2025
e8a7de5
Merge pull request #1905 from Giveth/feat/check_periodically_endaoment
kkatusic Jan 13, 2025
9a1a8a1
additional logger data
kkatusic Jan 14, 2025
c7af69c
fine tuninnig log
kkatusic Jan 14, 2025
66e8cce
Merge pull request #1906 from Giveth/feat/check_periodically_endaoment
kkatusic Jan 14, 2025
7621d4b
improve logger
kkatusic Jan 14, 2025
1374e40
Merge pull request #1907 from Giveth/feat/check_periodically_endaoment
kkatusic Jan 14, 2025
9f5752b
fixing endaoment id
kkatusic Jan 14, 2025
2825385
Merge pull request #1908 from Giveth/feat/check_periodically_endaoment
kkatusic Jan 14, 2025
e4f6b26
Set default zero for power balance snapshot on no return from balance…
aminlatifi Jan 18, 2025
ed56a80
Fix/Sitemap env variables
kkatusic Jan 20, 2025
a80ff7c
Merge pull request #1910 from Giveth/fix/sitemap_calling
kkatusic Jan 20, 2025
b1104b9
fix missing prefix for url
kkatusic Jan 20, 2025
7bbfcdf
Merge pull request #1911 from Giveth/fix/sitemap_calling
kkatusic Jan 20, 2025
734dbab
fix matching cap calculation
CarlosQ96 Jan 22, 2025
54fa338
fix data insertion for cluster matching
CarlosQ96 Jan 22, 2025
5822180
add user passport score null case to clustermatching queries
CarlosQ96 Jan 22, 2025
9bcaded
fix error handling in cocm adapter
CarlosQ96 Jan 22, 2025
7e9c1b6
add cluster matching sync timestamp and logs (#1913)
CarlosQ96 Jan 22, 2025
0edb4e8
fix db call in worker for cluster matching
CarlosQ96 Jan 22, 2025
dc57537
add uniquness constraint to estimatedclustedMatching
CarlosQ96 Jan 22, 2025
7797caa
handle undefined case for instant power boosting services
CarlosQ96 Jan 23, 2025
73d6cfa
better error handling in worker job
CarlosQ96 Jan 27, 2025
be3b485
fixing prettier problem
kkatusic Jan 27, 2025
ad5949d
Disable cluster matching
CarlosQ96 Jan 27, 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
34 changes: 34 additions & 0 deletions migration/1728554628004-AddEstimatedClusterMatching.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import { MigrationInterface, QueryRunner } from 'typeorm';

export class AddEstimatedClusterMatching1728554628004
implements MigrationInterface
{
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`
CREATE TABLE estimated_cluster_matching (
id SERIAL PRIMARY KEY,
"projectId" INT NOT NULL,
"qfRoundId" INT NOT NULL,
matching DOUBLE PRECISION NOT NULL
);
`);

// Create indexes on the new table
await queryRunner.query(`
CREATE INDEX estimated_cluster_matching_project_id_qfround_id
ON estimated_cluster_matching ("projectId", "qfRoundId");
`);

await queryRunner.query(`
CREATE INDEX estimated_cluster_matching_matching
ON estimated_cluster_matching (matching);
`);
}

public async down(queryRunner: QueryRunner): Promise<void> {
// Revert changes if necessary by dropping the table and restoring the view
await queryRunner.query(`
DROP TABLE IF EXISTS estimated_cluster_matching;
`);
}
}
56 changes: 56 additions & 0 deletions migration/1735909243926-insertEndaomentProjectsIds.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/**
* This migration script is used to insert the endaomentId values for the projects in the endaomentProjects array.
* The endaomentId values are used to link the projects in the database with the projects in the Endaoment platform.
*
* The script will add a new column to the project table called "endaomentId".
*/

import { MigrationInterface, QueryRunner } from 'typeorm';
import { endaomentProjects } from './data/updatedEndaomentProjects';

export class InsertEndaomentProjectsIds1735909243926
implements MigrationInterface
{
public async up(queryRunner: QueryRunner): Promise<void> {
// Add endaomentId column to the project table
queryRunner.query(`
ALTER TABLE "project"
ADD COLUMN IF NOT EXISTS "endaomentId" UUID;
`);

// Get the organization ID for Endaoment
const endaomentOrgIdResult = await queryRunner.query(`
SELECT "id" FROM "organization" WHERE "label" = 'endaoment';
`);
const endaomentOrgId = endaomentOrgIdResult[0].id;

// Go through each project in the endaomentProjects array and update the endaomentId value in the database
for (const project of endaomentProjects) {
const singleProject = await queryRunner.query(
`SELECT "id" FROM "project" WHERE "title" = $1 AND "organizationId" = $2`,
[project.name, endaomentOrgId],
);

// Update project endaomentId value
if (
singleProject &&
singleProject.length > 0 &&
singleProject[0].id > 0
) {
await queryRunner.query(
`UPDATE "project"
SET "endaomentId" = $1
WHERE "id" = $2;`,
[project.endaomentID, singleProject[0].id],
);
}
}
}

public async down(queryRunner: QueryRunner): Promise<void> {
queryRunner.query(`
ALTER TABLE "project"
DROP COLUMN IF EXISTS "endaomentId";
`);
}
}
24 changes: 24 additions & 0 deletions migration/1736719823637-MarkRoundsStrategy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { MigrationInterface, QueryRunner } from 'typeorm';

export class MarkRoundsStrategy1736719823637 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`
CREATE TYPE "qf_strategy_enum" AS ENUM ('cocm', 'regular');
`);

await queryRunner.query(`
ALTER TABLE "qf_round"
ADD COLUMN "qfStrategy" "qf_strategy_enum" DEFAULT 'regular';
`);
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`
ALTER TABLE "qf_round"
DROP COLUMN "qfStrategy";
`);
await queryRunner.query(`
DROP TYPE "qf_strategy_enum";
`);
}
}
25 changes: 25 additions & 0 deletions migration/1737544105947-addClusterMatchingSyncAtTimestamp.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { MigrationInterface, QueryRunner, TableColumn } from 'typeorm';

export class addClusterMatchingSyncAtTimestamp1737544105947
implements MigrationInterface
{
public async up(queryRunner: QueryRunner): Promise<void> {
const table = await queryRunner.getTable('qf_round');
const columnExists = table?.findColumnByName('clusterMatchingSyncAt');

if (!columnExists) {
await queryRunner.addColumn(
'qf_round',
new TableColumn({
name: 'clusterMatchingSyncAt',
type: 'timestamp',
isNullable: true,
}),
);
}
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.dropColumn('qf_round', 'clusterMatchingSyncAt');
}
}
22 changes: 22 additions & 0 deletions migration/1737553475189-addUniquenessToEstimatedClusterMatching.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { MigrationInterface, QueryRunner, TableUnique } from 'typeorm';

export class addUniquenessToEstimatedClusterMatching1737553475189
implements MigrationInterface
{
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.createUniqueConstraint(
'estimated_cluster_matching',
new TableUnique({
name: 'unique_projectId_qfRoundId',
columnNames: ['projectId', 'qfRoundId'],
}),
);
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.dropUniqueConstraint(
'estimated_cluster_matching',
'unique_projectId_qfRoundId',
);
}
}
10 changes: 10 additions & 0 deletions migration/data/seedTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1695,6 +1695,16 @@ const seedTokens: ITokenData[] = [
coingeckoId: 'degen-base',
isGivbackEligible: false,
},
// cbBTC - https://basescan.org/token/0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf
{
name: 'Coinbase Wrapped BTC',
symbol: 'cbBTC',
address: '0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf',
decimals: 8,
networkId: NETWORK_IDS.BASE_MAINNET,
coingeckoId: 'coinbase-wrapped-btc',
isGivbackEligible: false,
},
// Osaka Protocol - https://basescan.org/token/0xbFd5206962267c7b4b4A8B3D76AC2E1b2A5c4d5e
{
name: 'Osaka Protocol',
Expand Down
Loading
Loading