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

Next Release Aug 2024 #1783

Merged
merged 579 commits into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
579 commits
Select commit Hold shift + click to select a range
69f4630
Merge branch 'master' into staging
mohammadranjbarz Jul 1, 2024
f6a55f5
Merge pull request #1654 from Giveth/User-Story---Rejected-project-ow…
RamRamez Jul 1, 2024
685ac4d
Merge branch 'refs/heads/staging' into Replace-ortto-External-Embedde…
RamRamez Jul 1, 2024
078efce
Merge pull request #1657 from Giveth/Replace-ortto-External-Embedded-…
RamRamez Jul 1, 2024
80bf7f1
fixed last step verification
kkatusic Jul 1, 2024
e3d7294
fixed typo
kkatusic Jul 1, 2024
922f701
WIP: add field to user that holds user MBD score for an active round
Meriem-BM Jul 2, 2024
641ae06
disable DB Replica on staging
RamRamez Jul 2, 2024
6935405
Merge branch 'master' into staging
mohammadranjbarz Jul 3, 2024
bb44cca
Merge branch 'staging' of github.com:Giveth/impact-graph into staging
mohammadranjbarz Jul 3, 2024
511029d
Merge branch 'master' into staging
mohammadranjbarz Jul 3, 2024
b2c6f83
Merge branch 'master' into staging
mohammadranjbarz Jul 3, 2024
2775e01
Merge branch 'master' into staging
mohammadranjbarz Jul 3, 2024
f569275
fetch data uere with the score from MBD & remove non needed query
Meriem-BM Jul 3, 2024
1c17941
Fix some test cases about stable coin donations
mohammadranjbarz Jul 3, 2024
0ce70b8
fix: issue with adminJs authentication when user has hash as null
Meriem-BM Jul 4, 2024
03eecc6
Merge branch 'staging' into feature_new_qf_scoring_model
Meriem-BM Jul 4, 2024
13001a1
Merge branch 'staging' of github.com:Giveth/impact-graph into feature…
Meriem-BM Jul 4, 2024
de8c3a0
Merge branch 'feature_new_qf_scoring_model' of github.com:Giveth/impa…
Meriem-BM Jul 4, 2024
69a00a8
"Last Update" on project card is not correct
RamRamez Jul 4, 2024
d680f4c
Fix some test cases about stable coin donations (#1665)
mohammadranjbarz Jul 7, 2024
475289e
Merge branch 'staging' of github.com:Giveth/impact-graph into staging
mohammadranjbarz Jul 7, 2024
63f28d1
Bump follow-redirects from 1.15.5 to 1.15.6 (#1414)
dependabot[bot] Jul 7, 2024
2ab5971
Bump @solana/web3.js from 1.87.6 to 1.87.7 (#1492)
dependabot[bot] Jul 7, 2024
0a27af2
Bump express from 4.18.2 to 4.19.2 (#1430)
dependabot[bot] Jul 7, 2024
0e02367
Bump braces from 3.0.2 to 3.0.3 (#1629)
dependabot[bot] Jul 7, 2024
a1e9e68
Merge branch 'staging' into add_ver_step
mohammadranjbarz Jul 7, 2024
56da750
Merge branch 'staging' of github.com:Giveth/impact-graph into staging
mohammadranjbarz Jul 7, 2024
cb53599
Merge branch 'staging' into feature_new_qf_scoring_model
mohammadranjbarz Jul 7, 2024
dc2009f
Bump undici from 5.28.3 to 5.28.4 (#1454)
dependabot[bot] Jul 7, 2024
4e47ddf
Merge pull request #1666 from Giveth/fix/adminJs_auth_issue
Meriem-BM Jul 7, 2024
596bb99
Merge branch 'staging' into add_ver_step
RamRamez Jul 7, 2024
dc7c369
Merge branch 'staging' into Last-Update-on-project-card-is-not-correc…
RamRamez Jul 7, 2024
a0daa2b
fix types
RamRamez Jul 7, 2024
20a581a
Updated project verification form resolver test
kkatusic Jul 8, 2024
323036d
fix extracting last comment
RamRamez Jul 8, 2024
9836981
get donation to giveth with donation box analytics (#1661)
ae2079 Jul 9, 2024
f4cd115
add test for fetching and refreshing qfroundscore for model
CarlosQ96 Jul 9, 2024
06e747f
Merge pull request #1658 from Giveth/add_ver_step
kkatusic Jul 9, 2024
63671a3
Merge branch 'staging' of github.com:Giveth/impact-graph into staging
mohammadranjbarz Jul 10, 2024
bbecb74
revert changes on package,json
RamRamez Jul 10, 2024
5254fac
Merge branch 'refs/heads/staging' into Last-Update-on-project-card-is…
RamRamez Jul 10, 2024
54363dc
revert changes on package,json
RamRamez Jul 10, 2024
2c2c866
fix migration error
RamRamez Jul 10, 2024
dea4ebc
fix migration error
RamRamez Jul 10, 2024
58ee0c8
Merge pull request #1667 from Giveth/Last-Update-on-project-card-is-n…
RamRamez Jul 10, 2024
dc3a424
fix: turn minimumValidUsdValue to nullable when querying
Meriem-BM Jul 10, 2024
2666a56
remove updatedAt from projects tab
RamRamez Jul 10, 2024
039617e
Remove old donation and add new ones (#1674)
ae2079 Jul 10, 2024
b3a3337
Merge branch 'staging' of github.com:Giveth/impact-graph into staging
mohammadranjbarz Jul 11, 2024
f7462a2
remove verified from projects tab edit menu
RamRamez Jul 11, 2024
8533319
remove verified from projectVerificationTab edit menu
RamRamez Jul 11, 2024
e5403d2
fix total donations query
CarlosQ96 Jul 12, 2024
2d8a829
Merge branch 'staging' of github.com:Giveth/impact-graph into feature…
Meriem-BM Jul 12, 2024
dbb7a8f
fix archived_round totals
CarlosQ96 Jul 12, 2024
62947a4
fix latestUpdate column if not exists
CarlosQ96 Jul 12, 2024
3bf23df
fix join for totals
CarlosQ96 Jul 12, 2024
83f06a9
Merge pull request #1675 from Giveth/hotfix_total_donations_query
CarlosQ96 Jul 12, 2024
cd839dc
fix total donations with subquery
CarlosQ96 Jul 13, 2024
45e5011
Merge branch 'master' into staging
CarlosQ96 Jul 13, 2024
890ca7b
Merge branch 'refs/heads/master' into staging
RamRamez Jul 14, 2024
bbd4bc6
Merge branch 'refs/heads/master' into staging
RamRamez Jul 14, 2024
4f1676c
Reslove conflict and merge from `staging` into `feature_new_qf_scorin…
Meriem-BM Jul 15, 2024
390d8b3
fix add some error handling and remove commented interface
Meriem-BM Jul 15, 2024
d50953c
fix: resolve conflict
Meriem-BM Jul 15, 2024
cde4877
fix: resolve conflict
Meriem-BM Jul 15, 2024
7cabdf5
fix USD value not showing
RamRamez Jul 15, 2024
977a932
fix: convert timestap retrieved from RPC provider to milisconds
Meriem-BM Jul 15, 2024
51afe2f
fix: donation test cases (milliseconds)
Meriem-BM Jul 15, 2024
ba12770
fix: donation test cases (milliseconds)
Meriem-BM Jul 15, 2024
6aa30a6
Endaoment integration (#1663)
mohammadranjbarz Jul 15, 2024
6b96e6c
fix: donation test cases (milliseconds)
Meriem-BM Jul 15, 2024
757bad9
Merge branch 'staging' of github.com:Giveth/impact-graph into staging
mohammadranjbarz Jul 15, 2024
53afd42
fix: donation test cases (milliseconds)
Meriem-BM Jul 15, 2024
9f66159
Merge pull request #1634 from Giveth/feature_new_qf_scoring_model
Meriem-BM Jul 15, 2024
e1ccfc4
Merge branch 'staging' into fix/3456_ethDonation_not_showing
Meriem-BM Jul 15, 2024
c2ce143
Merge pull request #1684 from Giveth/fix/3456_ethDonation_not_showing
Meriem-BM Jul 15, 2024
886ab6a
Modify ormconfig for running migrations
mohammadranjbarz Jul 15, 2024
15a957f
Merge branch 'staging' of github.com:Giveth/impact-graph into staging
mohammadranjbarz Jul 15, 2024
f53c7da
Merge branch 'master' into staging
mohammadranjbarz Jul 15, 2024
d49daae
Run ts files for migrations
mohammadranjbarz Jul 15, 2024
be5325c
Make isRecipient of project_addresses of endaoment project true
mohammadranjbarz Jul 16, 2024
96d4505
Fix type error of one of endaoment projects
mohammadranjbarz Jul 16, 2024
ef0079c
add test case for filling prices
RamRamez Jul 16, 2024
c474a49
Merge pull request #1683 from Giveth/fix-USD-value-not-showing
RamRamez Jul 17, 2024
6770bd8
Modify add endaoment organization migration to pass the tests
mohammadranjbarz Jul 17, 2024
a34c008
fix: convert minimumUserAnalysisScore to Float on qfRound entity
Meriem-BM Jul 17, 2024
4b2b8a7
fix: revert migration changes
Meriem-BM Jul 17, 2024
1f35df3
add log for filling prices
RamRamez Jul 17, 2024
f14a053
Merge pull request #1692 from Giveth/fix/minimumUserAnalysisScore
Meriem-BM Jul 17, 2024
f9b8109
feat: add github on project socialmedia enum
Reshzera Jul 17, 2024
fb57167
Merge master to staging (#1696)
ae2079 Jul 18, 2024
bb71f47
Add organization filter to projectsTab.ts in admin panel
mohammadranjbarz Jul 18, 2024
af850a4
Merge branch 'staging' of github.com:Giveth/impact-graph into staging
mohammadranjbarz Jul 18, 2024
b74a17e
Fill description summary for endaoment projects
mohammadranjbarz Jul 18, 2024
c4dbe05
Fix eslint errors
mohammadranjbarz Jul 18, 2024
67b33fc
Replace special characters of slugs of endaoment projects with -
mohammadranjbarz Jul 18, 2024
40d4b47
Fix eslint errors
mohammadranjbarz Jul 18, 2024
f63c770
return hardcoded as user MBD score
Meriem-BM Jul 18, 2024
5b84c6b
Merge pull request #1699 from Giveth/fix/minimumUserAnalysisScore
Meriem-BM Jul 18, 2024
fef23d3
Merge pull request #1694 from Giveth/feat/issue-4216
RamRamez Jul 18, 2024
ab9fe0b
rename qfRound minimumUserAnalysisScore field
Meriem-BM Jul 18, 2024
2effef3
Merge pull request #1701 from Giveth/fix/minimumUserAnalysisScore
Meriem-BM Jul 18, 2024
5c45e23
Resolve conflicts (#1703)
ae2079 Jul 19, 2024
ce073bc
Modify endaoment categories and relate them to projects
mohammadranjbarz Jul 19, 2024
2210303
Merge branch 'staging' of github.com:Giveth/impact-graph into staging
mohammadranjbarz Jul 19, 2024
bf527a2
Add canUseOnFrontend to category so can show a category but don't all…
mohammadranjbarz Jul 19, 2024
2877a5b
Fix project resolver test case
mohammadranjbarz Jul 19, 2024
e22bb43
feat: add tacking recurring donations queries
Meriem-BM Jul 19, 2024
6dec94f
fix: delete unwanted recurring donation test cases
Meriem-BM Jul 19, 2024
553db78
fix CPU spikes
RamRamez Jul 19, 2024
15e364d
add new test case for project update
RamRamez Jul 20, 2024
e41fb43
fix test case
RamRamez Jul 20, 2024
8a3957d
Merge pull request #1705 from Giveth/fix-CPU-spikes
RamRamez Jul 20, 2024
695d7cd
Fix add endaoment integration
mohammadranjbarz Jul 20, 2024
2e0175c
Merge branch 'staging' of github.com:Giveth/impact-graph into staging
mohammadranjbarz Jul 20, 2024
2f8c7e5
Filter isActive and canUseOnFrontend categories in projectResolver
mohammadranjbarz Jul 20, 2024
345acfe
Filter isActive and canUseOnFrontend categories in projectResolver
mohammadranjbarz Jul 20, 2024
93e80b0
Return canUseOnFrontend in main category list
mohammadranjbarz Jul 20, 2024
1f36055
optimize projectUpdates query
RamRamez Jul 20, 2024
c7223db
Comment migrations related to endaoment (#1706)
mohammadranjbarz Jul 21, 2024
b3267b6
1.24.0
mohammadranjbarz Jul 21, 2024
d62dc68
Test ci/cd
mohammadranjbarz Jul 21, 2024
1e15b69
Resolve merge conflicts
mohammadranjbarz Jul 21, 2024
6182ec0
Fix build problem
mohammadranjbarz Jul 21, 2024
0171095
Merge branch 'refs/heads/staging' into optimize-projectUpdates-query
RamRamez Jul 21, 2024
f7d8c9c
optimize projectUpdates endpoint
RamRamez Jul 21, 2024
e380bf8
optimize projectUpdates endpoint - add cache
RamRamez Jul 21, 2024
03ef6c2
add dynamic field selection
RamRamez Jul 21, 2024
eed3698
add a default value for etc mordor url (#1709)
ae2079 Jul 22, 2024
9b0e57a
Remove redundant backslash
ae2079 Jul 22, 2024
3675378
fix test cases
RamRamez Jul 22, 2024
6e05995
Merge branch 'refs/heads/staging' into optimize-projectUpdates-query
RamRamez Jul 22, 2024
b12b70c
Merge pull request #1707 from Giveth/optimize-projectUpdates-query
RamRamez Jul 22, 2024
b659c58
feat: add per token data for recurring donations statistcs (pie chart…
Meriem-BM Jul 22, 2024
c217c1c
Merge pull request #1704 from Giveth/fix/track_recurring_donations
Meriem-BM Jul 23, 2024
18f3239
Change commands to run migrations as js (#1714)
ae2079 Jul 23, 2024
4b570a7
Fix build command (#1715)
ae2079 Jul 23, 2024
1fb9fa2
Check config directory existing and then copy content to it
ae2079 Jul 23, 2024
79ccb2a
Revert migration changes (#1717)
ae2079 Jul 23, 2024
4e47095
Merge branch 'refs/heads/master' into staging
RamRamez Jul 23, 2024
0c464f2
Optimise relevant donation flow (#1698)
ae2079 Jul 23, 2024
13299b8
fix: minimumPassportScore issue when tapping float number on adminJS
Meriem-BM Jul 24, 2024
e65768f
Merge pull request #1720 from Giveth/fix/minimumPassportScore
Meriem-BM Jul 24, 2024
9c56ef7
Add index to useDonationBox field (#1723)
ae2079 Jul 24, 2024
015e383
Run migrations as js files (#1718)
ae2079 Jul 24, 2024
5bbe523
Revert "Run migrations as js files (#1718)" (#1724)
ae2079 Jul 24, 2024
d9fbb5d
Which tokens are used the most on each chain by unique donors
RamRamez Jul 25, 2024
9155c7d
change getDonationStats to typeorm
RamRamez Jul 28, 2024
68a7eb1
Merge pull request #1728 from Giveth/Which-tokens-are-used-the-most-o…
RamRamez Jul 29, 2024
4a778be
update Bull
RamRamez Jul 29, 2024
1ddfb27
Merge pull request #1731 from Giveth/update-Bull
RamRamez Jul 29, 2024
27eed6f
Use raw select query instead of find function from typeorm (#1729)
ae2079 Jul 29, 2024
0bbfed0
gitcoin API update
RamRamez Jul 29, 2024
802f614
gitcoin API update
RamRamez Jul 29, 2024
c342bed
Merge pull request #1734 from Giveth/gitcoin-API-update
RamRamez Jul 29, 2024
b6ce9e1
gitcoin API update
RamRamez Jul 29, 2024
43ee401
Merge branch 'refs/heads/master' into staging
RamRamez Jul 30, 2024
cd62fb2
Add all network labels in admin panel, project tab
mohammadranjbarz Jul 30, 2024
7f6fd89
Fix eslint errors
mohammadranjbarz Jul 30, 2024
2713e07
added graphql query to fetch recurring donations by date adn project id
lovelgeorge99 Jul 30, 2024
0a0ea65
Merge branch 'staging' of https://github.com/Giveth/impact-graph into…
lovelgeorge99 Jul 30, 2024
07cfa35
fixed lint
lovelgeorge99 Jul 30, 2024
9057b77
Add all network labels in admin panel, project tab
mohammadranjbarz Jul 31, 2024
ecf19d4
allow to download email addresses
RamRamez Jul 31, 2024
2e76144
Merge pull request #1739 from Giveth/allow-to-download-email-addresses
RamRamez Jul 31, 2024
8ba5cda
Merge branch 'staging' of https://github.com/Giveth/impact-graph into…
lovelgeorge99 Aug 1, 2024
4a76b72
fix: returning QF tag to the user bookmarked projects
kkatusic Aug 1, 2024
be29a06
removed unnecessary ql fields
kkatusic Aug 2, 2024
962d94e
Merge branch 'develop' of https://github.com/Giveth/impact-graph into…
lovelgeorge99 Aug 5, 2024
ef2d009
added test cases for recurring donations by date resolver
lovelgeorge99 Aug 5, 2024
1cc3b52
feat: add endpoint to delete draft project
Reshzera Aug 5, 2024
50bfd89
Merge pull request #1738 from Giveth/query-for-recurring-donation-by-…
lovelgeorge99 Aug 6, 2024
f6eb385
Make sure all Endaoment projects have been added to our DB (#1751)
mohammadranjbarz Aug 7, 2024
60f1bca
feat: stellar integration
Meriem-BM Aug 7, 2024
a590220
feat: stellar integration
Meriem-BM Aug 7, 2024
d2da9ac
Merge branch 'staging' into feat/stellar_integration
Meriem-BM Aug 7, 2024
6f158aa
fix: linter errors
Meriem-BM Aug 7, 2024
c723157
Merge branch 'feat/stellar_integration' of github.com:Giveth/impact-g…
Meriem-BM Aug 7, 2024
a0c6242
feat: ajusts quary to make it the same as allProjects query
Reshzera Aug 7, 2024
86d7453
fix: createDonation test errors
Meriem-BM Aug 7, 2024
a6b7fe8
fix: change joi validation from switch to is => then
Meriem-BM Aug 7, 2024
c39e1b9
fix: change back joi validation to switch
Meriem-BM Aug 7, 2024
f6dd4b8
fix: query issue
Meriem-BM Aug 7, 2024
304ed0e
fix: add qf round logic for cron job
Meriem-BM Aug 7, 2024
29ca609
Add on conflict do nothing for create endaoment organization migration
mohammadranjbarz Aug 8, 2024
2bac2c4
Merge branch 'staging' of github.com:Giveth/impact-graph into staging
mohammadranjbarz Aug 8, 2024
510ef4e
Make organizationId serial if it's not already
mohammadranjbarz Aug 8, 2024
bd32949
Fix eslint errors
mohammadranjbarz Aug 8, 2024
0d32b06
Fix add endaoment organization migration
mohammadranjbarz Aug 8, 2024
e8b6365
Fix eslint errors
mohammadranjbarz Aug 8, 2024
019d01a
fix: filter stellar projects
Meriem-BM Aug 8, 2024
4d99fc4
Merge pull request #1758 from Giveth/master
RamRamez Aug 9, 2024
11154ef
Comment run migrations on production ci
mohammadranjbarz Aug 11, 2024
0b9a293
Merge pull request #1745 from Giveth/fix_qf_card_badge
kkatusic Aug 11, 2024
de6c813
Fix categories of endaoment projects
mohammadranjbarz Aug 11, 2024
7dbcf2e
Merge branch 'staging' of github.com:Giveth/impact-graph into staging
mohammadranjbarz Aug 11, 2024
34a615d
feat: Dont allow owner of project to donate to his/her own project (#…
HrithikSampson Aug 12, 2024
d0a7ccd
fix: merge conflict with staging
Reshzera Aug 12, 2024
bbdb457
Merge pull request #1752 from Giveth/feat/issue-1519
Reshzera Aug 12, 2024
12bcb3a
add test cases
Meriem-BM Aug 12, 2024
81dc9d1
Merge branch 'staging' into feat/stellar_integration
Meriem-BM Aug 12, 2024
d9d44e0
Merge branch 'feat/stellar_integration' of github.com:Giveth/impact-g…
Meriem-BM Aug 12, 2024
92b0319
add test cases
Meriem-BM Aug 12, 2024
aea8862
Merge pull request #1753 from Giveth/feat/stellar_integration
Meriem-BM Aug 12, 2024
6e1717e
Fix: handle stellar cahin for project verification
Meriem-BM Aug 14, 2024
b136a45
Fix: memo is optional
Meriem-BM Aug 14, 2024
f1421e4
Fix: add stellar address to projectVerificationResolver test case
Meriem-BM Aug 14, 2024
85557a3
Merge pull request #1762 from Giveth/feat/stellar_integration
Meriem-BM Aug 14, 2024
0c5512f
fix: add createDraftDonation Test Cases to prevent Users from Donatin…
Aug 14, 2024
df9c0ad
Merge pull request #1763 from Giveth/fix/issue-743
HrithikSampson Aug 16, 2024
d164f47
Fix: add instant trx check indpoint
Meriem-BM Aug 18, 2024
58aa8d8
Merge branch 'staging' into feat/stellar_integration
Meriem-BM Aug 18, 2024
53c5e4d
fix: update project statistics for Stellar chain
Meriem-BM Aug 19, 2024
74b0b02
Merge branch 'feat/stellar_integration' of github.com:Giveth/impact-g…
Meriem-BM Aug 19, 2024
b206f40
fix: changes resolver name
Meriem-BM Aug 19, 2024
a720bb0
fix: lint errors
Meriem-BM Aug 19, 2024
2d263fd
Merge pull request #1767 from Giveth/feat/stellar_integration
Meriem-BM Aug 19, 2024
6ff94fe
use sepolia instead of goerli
MohammadPCh Aug 20, 2024
9bd361a
add AddSepoliaToken1724166731604 migration
MohammadPCh Aug 21, 2024
d63954f
add ChangeProjectAddressToSepolia1724168597216 migration
MohammadPCh Aug 21, 2024
24a9640
only add sepolia token on development env
MohammadPCh Aug 21, 2024
09bb7a3
Merge pull request #1773 from Giveth/feat/replace-goerli-with-sepolia
MohammadPCh Aug 21, 2024
7f3286b
fix: reduce timer to 15 mins & update renew draft donation expiration…
Meriem-BM Aug 22, 2024
bf37bc7
fix: remove console logs
Meriem-BM Aug 22, 2024
97b0cec
fix: replace console log with logger
Meriem-BM Aug 22, 2024
9bfd0a5
Merge pull request #1776 from Giveth/feat/stellar_integration
Meriem-BM Aug 22, 2024
3eae98b
feat: add filter by active projects by default
Reshzera Aug 22, 2024
0210f4c
Merge pull request #1754 from Giveth/feat/issue-analytics-dashboard-34
Reshzera Aug 23, 2024
cf37daa
fix: change from WS to SSE
Meriem-BM Aug 25, 2024
a14ccba
fix: remove ws dependency
Meriem-BM Aug 25, 2024
ddda14d
Merge pull request #1780 from Giveth/feat/stellar_integration
Meriem-BM Aug 25, 2024
a199e2c
fix: add Transfer-Encoding header
Meriem-BM Aug 26, 2024
dbd2a21
Merge pull request #1782 from Giveth/feat/stellar_integration
Meriem-BM Aug 26, 2024
d80872c
fix: add Access-Control-Allow-Headers\ headerA
Meriem-BM Aug 26, 2024
f76d611
fix: add Access-Control-Allow-Headers\ headerA
Meriem-BM Aug 26, 2024
6c76233
Merge pull request #1784 from Giveth/feat/stellar_integration
Meriem-BM Aug 26, 2024
9810b92
1.25.0
mohammadranjbarz Aug 28, 2024
1aec1c3
fix: SSE headers
Meriem-BM Aug 28, 2024
7b2f627
Merge pull request #1785 from Giveth/feat/stellar_integration
Meriem-BM Aug 28, 2024
a88985b
fix: add welcome message to SSE
Meriem-BM Aug 28, 2024
214e984
fix: add welcome message to SSE
Meriem-BM Aug 28, 2024
41e9169
Merge pull request #1786 from Giveth/feat/stellar_integration
Meriem-BM Aug 28, 2024
9484612
fix: comment SSE headers
Meriem-BM Aug 28, 2024
d8f297b
Merge pull request #1787 from Giveth/feat/stellar_integration
Meriem-BM Aug 28, 2024
00dc034
fix: uncomment SSE headers
Meriem-BM Aug 28, 2024
5e5f1de
Merge pull request #1788 from Giveth/feat/stellar_integration
Meriem-BM Aug 28, 2024
dccb358
Merge branch 'staging' of github.com:Giveth/impact-graph into staging
mohammadranjbarz Aug 28, 2024
d15b653
Resolve merge conflicts
mohammadranjbarz Aug 28, 2024
c0765f4
Fix build error
mohammadranjbarz Aug 28, 2024
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
6 changes: 5 additions & 1 deletion config/example.env
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ BCRYPT_SALT=$2b$10$44gNUOnBXavOBMPOqzd48e
XDAI_NODE_HTTP_URL=https://xxxxxx.xdai.quiknode.pro/
ETHERSCAN_MAINNET_API_URL=https://api.etherscan.io/api
ETHERSCAN_ROPSTEN_API_URL=https://api-ropsten.etherscan.io/api
ETHERSCAN_GOERLI_API_URL=https://api-goerli.etherscan.io/api
ETHERSCAN_SEPOLIA_API_URL=https://api-sepolia.etherscan.io/api
POLYGON_SCAN_API_URL=https://api.polygonscan.com/api
POLYGON_SCAN_API_KEY=0000000000000000000000000000000000
OPTIMISTIC_SCAN_API_URL=https://api-optimistic.etherscan.io/api
Expand Down Expand Up @@ -321,4 +321,8 @@ ZKEVM_MAINNET_NODE_HTTP_URL=
# ZKEVM CARDONA we should fill it as Infura doesnt support polygon zkevm
ZKEVM_CARDONA_NODE_HTTP_URL=

# STELLAR
STELLAR_HORIZON_API_URL=https://horizon.stellar.org
STELLAR_SCAN_API_URL=https://stellar.expert/explorer/public

ENDAOMENT_ADMIN_WALLET_ADDRESS=0xfE3524e04E4e564F9935D34bB5e80c5CaB07F5b4
6 changes: 5 additions & 1 deletion config/test.env
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ MAINNET_NODE_WS_URL=xxx
INFURA_ID=xxx
ETHERSCAN_MAINNET_API_URL=https://api.etherscan.io/api
ETHERSCAN_ROPSTEN_API_URL=https://api-ropsten.etherscan.io/api
ETHERSCAN_GOERLI_API_URL=https://api-goerli.etherscan.io/api
ETHERSCAN_SEPOLIA_API_URL=https://api-sepolia.etherscan.io/api
POLYGON_SCAN_API_URL=https://api.polygonscan.com/api
OPTIMISTIC_SCAN_API_URL=https://api-optimistic.etherscan.io/api
OPTIMISTIC_SEPOLIA_SCAN_API_URL=https://api-sepolia-optimistic.etherscan.io/api
Expand Down Expand Up @@ -252,4 +252,8 @@ ZKEVM_MAINNET_NODE_HTTP_URL=https://polygon-zkevm.drpc.org
# ZKEVM CARDONA we should fill it as Infura doesnt support polygon zkevm, I found this rpc link from https://chainlist.org/chain/2442
ZKEVM_CARDONA_NODE_HTTP_URL=https://rpc.cardona.zkevm-rpc.com

# STELLAR
STELLAR_HORIZON_API_URL=https://horizon.stellar.org
STELLAR_SCAN_API_URL=https://stellar.expert/explorer/public

ENDAOMENT_ADMIN_WALLET_ADDRESS=0xfE3524e04E4e564F9935D34bB5e80c5CaB07F5b4
17 changes: 17 additions & 0 deletions migration/1722379846122-AddMemoToProjectAddressFields.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { MigrationInterface, QueryRunner } from 'typeorm';

export class AddMemoToProjectAddressFields1722379846122
implements MigrationInterface
{
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "project_address" ADD COLUMN IF NOT EXISTS "memo" VARCHAR`,
);
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "project_address" DROP COLUMN IF EXISTS "memo"`,
);
}
}
69 changes: 69 additions & 0 deletions migration/1722475689162-AddStellarTokens.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
import { MigrationInterface, QueryRunner } from 'typeorm';
import { Token } from '../src/entities/token';
import seedTokens from './data/seedTokens';
import { NETWORK_IDS } from '../src/provider';

export class AddStellarTokens1722475689162 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
const networkId = NETWORK_IDS.STELLAR_MAINNET;

//add isQR code to token
await queryRunner.query(
`ALTER TABLE token ADD COLUMN IF NOT EXISTS "isQR" BOOLEAN DEFAULT FALSE NOT NULL`,
);

await queryRunner.manager.save(
Token,
seedTokens
.filter(token => token.networkId === networkId)
.map(token => {
const t = {
...token,
};
t.address = t.address?.toUpperCase();
return t;
}),
);
const tokens = await queryRunner.query(`
SELECT * FROM token
WHERE "networkId" = ${networkId}
`);
const givethOrganization = (
await queryRunner.query(`SELECT * FROM organization
WHERE label='giveth'`)
)[0];

const traceOrganization = (
await queryRunner.query(`SELECT * FROM organization
WHERE label='trace'`)
)[0];

for (const token of tokens) {
// Add all Stellar tokens to Giveth organization
await queryRunner.query(`INSERT INTO organization_tokens_token ("tokenId","organizationId") VALUES
(${token.id}, ${givethOrganization.id}),
(${token.id}, ${traceOrganization.id})
;`);
}
}

public async down(queryRunner: QueryRunner): Promise<void> {
const networkId = NETWORK_IDS.STELLAR_MAINNET;

await queryRunner.query(`ALTER TABLE token DROP COLUMN IF EXISTS "isQR"`);

const tokens = await queryRunner.query(`
SELECT * FROM token
WHERE "networkId" = ${networkId}
`);

for (const token of tokens) {
await queryRunner.query(
`DELETE FROM organization_tokens_token WHERE "tokenId" = ${token.id}`,
);
}
await queryRunner.query(
`DELETE FROM token WHERE "networkId" = ${networkId}`,
);
}
}
39 changes: 39 additions & 0 deletions migration/1722800845343-AddDraftDonationQRFields.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import { MigrationInterface, QueryRunner } from 'typeorm';

export class AddDraftDonationQRFields1722800845343
implements MigrationInterface
{
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`
ALTER TABLE draft_donation
ADD COLUMN IF NOT EXISTS "toWalletMemo" VARCHAR NULL,
ADD COLUMN IF NOT EXISTS "qrCodeDataUrl" TEXT NULL,
ADD COLUMN IF NOT EXISTS "isQRDonation" BOOLEAN DEFAULT FALSE;
`);

// update enum draft_donation_chaintype_enum (add 'STELLAR');
await queryRunner.query(
`ALTER TYPE public.draft_donation_chaintype_enum ADD VALUE IF NOT EXISTS 'STELLAR';`,
);
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`
ALTER TABLE draft_donation
DROP COLUMN IF EXISTS "toWalletMemo",
DROP COLUMN IF EXISTS "qrCodeDataUrl",
DROP COLUMN IF EXISTS "isQRDonation";
`);

// update enum draft_donation_chaintype_enum (remove 'STELLAR');
await queryRunner.query(`
DELETE FROM pg_enum
WHERE enumlabel = 'STELLAR'
AND enumtypid = (
SELECT oid
FROM pg_type
WHERE typname = 'draft_donation_chaintype_enum'
);
`);
}
}
35 changes: 35 additions & 0 deletions migration/1722860378721-UpdateDraftDonationIndex.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import { MigrationInterface, QueryRunner } from 'typeorm';

export class UpdateDraftDonationIndex1722860378721
implements MigrationInterface
{
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`DROP INDEX "IDX_af180374473ea402e7595196a6"`);
await queryRunner.query(`
CREATE UNIQUE INDEX IF NOT EXISTS "IDX_af180374473ea402e7595196a6"
ON public.draft_donation USING btree
("fromWalletAddress" COLLATE pg_catalog."default" ASC NULLS LAST,
"toWalletAddress" COLLATE pg_catalog."default" ASC NULLS LAST,
"networkId" ASC NULLS LAST,
amount ASC NULLS LAST,
currency COLLATE pg_catalog."default" ASC NULLS LAST)
TABLESPACE pg_default
WHERE status = 'pending'::draft_donation_status_enum AND "isQRDonation" = false;
`);
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`DROP INDEX "IDX_af180374473ea402e7595196a6"`);
await queryRunner.query(`
CREATE UNIQUE INDEX IF NOT EXISTS "IDX_af180374473ea402e7595196a6"
ON public.draft_donation USING btree
("fromWalletAddress" COLLATE pg_catalog."default" ASC NULLS LAST,
"toWalletAddress" COLLATE pg_catalog."default" ASC NULLS LAST,
"networkId" ASC NULLS LAST,
amount ASC NULLS LAST,
currency COLLATE pg_catalog."default" ASC NULLS LAST)
TABLESPACE pg_default
WHERE status = 'pending'::draft_donation_status_enum;
`);
}
}
30 changes: 30 additions & 0 deletions migration/1722963339892-UpdateDonationIndex.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { MigrationInterface, QueryRunner } from 'typeorm';

export class UpdateDonationIndex1722963339892 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
// update donation table
await queryRunner.query(`
ALTER TABLE "donation"
ADD COLUMN IF NOT EXISTS "isQRDonation" boolean DEFAULT false,
ADD COLUMN IF NOT EXISTS "toWalletMemo" text;
`);

await queryRunner.query(`DROP INDEX "idx_donation_project_user"`);
await queryRunner.query(
`CREATE INDEX IF NOT EXISTS idx_donation_project_user ON donation("projectId", "userId", "valueUsd") WHERE "status" = 'verified' AND "recurringDonationId" IS NULL AND "isQRDonation" = false AND "userId" IS NOT NULL`,
);
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`DROP INDEX "idx_donation_project_user"`);
await queryRunner.query(
`CREATE INDEX IF NOT EXISTS idx_donation_project_user ON donation("projectId", "userId", "valueUsd") WHERE "status" = 'verified' AND "recurringDonationId" IS NULL`,
);

await queryRunner.query(`
ALTER TABLE "donation"
DROP COLUMN IF EXISTS "isQRDonation",
DROP COLUMN IF EXISTS "toWalletMemo";
`);
}
}
17 changes: 17 additions & 0 deletions migration/1723025859680-AddExpirationDateToDraftDonation.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { MigrationInterface, QueryRunner } from 'typeorm';

export class AddExpirationDateToDraftDonation1723025859680
implements MigrationInterface
{
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE draft_donation ADD COLUMN IF NOT EXISTS "expiresAt" TIMESTAMP`,
);
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE draft_donation DROP COLUMN IF EXISTS "expiresAt"`,
);
}
}
65 changes: 65 additions & 0 deletions migration/1724166731604-addSepoliaToken.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
import { MigrationInterface, QueryRunner } from 'typeorm';
import { Token } from '../src/entities/token';
import { NETWORK_IDS } from '../src/provider';
import seedTokens from './data/seedTokens';
import config from '../src/config';

export class AddSepoliaToken1724166731604 implements MigrationInterface {
async up(queryRunner: QueryRunner): Promise<void> {
const environment = config.get('ENVIRONMENT') as string;
// We don't add sepolia tokens in production ENV
if (environment === 'production') return;

await queryRunner.manager.save(
Token,
seedTokens
.filter(token => token.networkId === NETWORK_IDS.SEPOLIA)
.map(token => {
const t = {
...token,
};
t.address = t.address?.toLowerCase();
delete t.chainType;
return t;
}),
);

const tokens = await queryRunner.query(`
SELECT * FROM token
WHERE "networkId" = ${NETWORK_IDS.SEPOLIA}
`);

const givethOrganization = (
await queryRunner.query(`SELECT * FROM organization
WHERE label='giveth'`)
)[0];

const traceOrganization = (
await queryRunner.query(`SELECT * FROM organization
WHERE label='trace'`)
)[0];

for (const token of tokens) {
await queryRunner.query(`INSERT INTO organization_tokens_token ("tokenId","organizationId") VALUES
(${token.id}, ${givethOrganization.id}),
(${token.id}, ${traceOrganization.id})
;`);
}
}

async down(queryRunner: QueryRunner): Promise<void> {
const environment = config.get('ENVIRONMENT') as string;
// We don't add sepolia tokens in production ENV
if (environment === 'production') return;
await queryRunner.query(`
DELETE FROM organization_tokens_token
WHERE "tokenId" IN (
SELECT id FROM token WHERE "networkId" = ${NETWORK_IDS.SEPOLIA}
);
`);

await queryRunner.query(`
DELETE FROM token WHERE "networkId" = ${NETWORK_IDS.SEPOLIA};
`);
}
}
35 changes: 35 additions & 0 deletions migration/1724168597216-ChangeProjectAddressToSepolia.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import { MigrationInterface, QueryRunner } from 'typeorm';

export class ChangeProjectAddressToSepolia1724168597216
implements MigrationInterface
{
async up(queryRunner: QueryRunner): Promise<void> {
const projectAddressTableExists =
await queryRunner.hasTable('project_address');
if (!projectAddressTableExists) {
// eslint-disable-next-line no-console
console.log('The project_address table doesn’t exist');
return;
}
await queryRunner.query(`
UPDATE project_address
SET "networkId" = 11155111
WHERE "networkId" = 5
`);
}

async down(queryRunner: QueryRunner): Promise<void> {
const projectAddressTableExists =
await queryRunner.hasTable('project_address');
if (!projectAddressTableExists) {
// eslint-disable-next-line no-console
console.log('The project_address table doesn’t exist');
return;
}
await queryRunner.query(`
UPDATE project_address
SET "networkId" = 5
WHERE "networkId" = 11155111
`);
}
}
Loading
Loading