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

As a Project Owner, I want to add a Solana address to receive donations to #3393

Closed
divine-comedian opened this issue Oct 25, 2023 · 42 comments
Assignees
Labels

Comments

@divine-comedian
Copy link
Contributor

divine-comedian commented Oct 25, 2023

A Project Owner should be able to simply add a solana address to their project page that defines the recipient address of donations made on Solana
Should consider any changes in #3078

image

@MoeNick
Copy link
Member

MoeNick commented Dec 19, 2023

For adding the Addresses on the front end we have 2 views that should work:

  • My projects, manage addresses, add address
  • Add / Edit project view.

@aminlatifi aminlatifi assigned RamRamez and unassigned aminlatifi Dec 20, 2023
@aminlatifi
Copy link
Member

@RamRamez To add a Solana address to a project note these:

  • NetworkId: 0,
  • ChainType: SOLANA
  • Address capitalization must be preserved

@RamRamez
Copy link
Collaborator

@aminlatifi This error is coming from "walletAddressIsValid" endpoint. I suggest replacing "Eth address" with "Address" to contain Solana addresses as well.

image

@aminlatifi
Copy link
Member

@aminlatifi This error is coming from "walletAddressIsValid" endpoint. I suggest replacing "Eth address" with "Address" to contain Solana addresses as well.

image

Which mutation are you calling? with which parameters?

@RamRamez
Copy link
Collaborator

@aminlatifi This error is coming from "walletAddressIsValid" endpoint. I suggest replacing "Eth address" with "Address" to contain Solana addresses as well.

image

I already sent the mutation here. If you call this endpoint and query a wallet address that is already being used for a project, you will see that error.

@aminlatifi
Copy link
Member

@aminlatifi This error is coming from "walletAddressIsValid" endpoint. I suggest replacing "Eth address" with "Address" to contain Solana addresses as well.
image

I already sent the mutation here. If you call this endpoint and query a wallet address that is already being used for a project, you will see that error.

I tested the endpoint with some random address, it works fine

curl --location 'https://impact-graph.serve.giveth.io/graphql' \
--header 'Content-Type: application/json' \
--data '{"query":"# Write your query or mutation here\nquery {\n  walletAddressIsValid(address:\"2axeaEqsJe9HPrK8QZWD2y9Y3zzdRRQXd9q5qVuuM3Pt\") \n}","variables":{}}'

@MoeNick
Copy link
Member

MoeNick commented Dec 24, 2023

@RamRamez can we make it today?

@RamRamez
Copy link
Collaborator

@RamRamez can we make it today?

I even worked on it on my weekend (Friday and Saturday) and sent a draft PR.
Adding Solana to create project page is done. I created some projects with Solana address and it's working well.
But we have some typescript problems and some other issues like adding network config.
I'm trying to finalize it today.

@MoeNick
Copy link
Member

MoeNick commented Dec 24, 2023

Great, Thanks @RamRamez

@RamRamez
Copy link
Collaborator

I can't submit Solana addresses with "updateProjectVerificationForm" endpoint. @aminlatifi Please check it.

image

@RamRamez
Copy link
Collaborator

I sent the PR.
Create project page, manage funds in verification modal and donations tab in project view, is done.
Tomorrow I will work on Manage addresses in user dashboard (My projects).

@aminlatifi
Copy link
Member

I can't submit Solana addresses with "updateProjectVerificationForm" endpoint. @aminlatifi Please check it.

image

It will be fixed by Giveth/impact-graph#1210

@RamRamez
Copy link
Collaborator

Adding Solana to managing addresses in My projects in done. I think we need to update backend as well.
When I try to add Solana address with "addRecipientAddressToProject" I get this error.
@aminlatifi can you check please:
image

@MoeNick
Copy link
Member

MoeNick commented Dec 26, 2023

Adding Solana to managing addresses in My projects in done. I think we need to update backend as well. When I try to add Solana address with "addRecipientAddressToProject" I get this error. @aminlatifi can you check please: image

@CarlosQ96 can you take a look, please?

@MoeNick
Copy link
Member

MoeNick commented Dec 26, 2023

@mohammadranjbarz is on it :))

@mohammadranjbarz
Copy link
Contributor

mohammadranjbarz commented Dec 26, 2023

@RamRamez Do you send chainType in this query?
If you want to add solana address you should send it chainType:'SOLANA'

@RamRamez
Copy link
Collaborator

@RamRamez Do you send chainType in this query? I you want to add solana address you should send it chainType:'SOLANA'

Yes, I'm sending it.

@mohammadranjbarz
Copy link
Contributor

@RamRamez Can you change this line

mutation ($projectId: Float!, $networkId: Float!, $address: String!) {

and replace $address: String! with $address: ChainType! and test it again?

@RamRamez
Copy link
Collaborator

Thanks @mohammadranjbarz , it's fixed

@maryjaf
Copy link
Collaborator

maryjaf commented Dec 28, 2023

1-
please take a look on this error in create project page @RamRamez
image.png

@maryjaf
Copy link
Collaborator

maryjaf commented Dec 28, 2023

2-
In edit page, when I set an ETH address in solane address, no error message is shown in below modal
and when I tap on publish I get an error
image.png
image.png

@maryjaf
Copy link
Collaborator

maryjaf commented Dec 28, 2023

1- please take a look on this error in create project page @RamRamez

I haven't seen this error again, maybe it's about my connection

and item 2 have been resolved

@RamRamez
Copy link
Collaborator

Thanks @maryjaf, I tested these two issues with different browsers and couldn't reproduce the bugs either.

@maryjaf
Copy link
Collaborator

maryjaf commented Jan 1, 2024

  • Add solana in create project page-- Test is passed
  • Add solana in edit project page -- Test is passed
  • add solana in manage address modal (my project list) -- Waiting for Code Review

@MoeNick
Copy link
Member

MoeNick commented Jan 1, 2024

This issue is still in code review, shall I put it in QA?

@maryjaf
Copy link
Collaborator

maryjaf commented Jan 1, 2024

  • Add solana in create project page-- Test is passed
  • Add solana in edit project page -- Test is passed
  • add solana in manage address modal (my project list) -- Waiting for Code Review

it is the last status

@MoeNick
Copy link
Member

MoeNick commented Jan 4, 2024

@jainkrati
You wil talk with team to resolve this problem

@maryjaf
Copy link
Collaborator

maryjaf commented Jan 8, 2024

[ ] add solana in manage address modal (my project list) -- Waiting for Code Review

Is this still in code review state?

@maryjaf
Copy link
Collaborator

maryjaf commented Jan 8, 2024

I'm not sure this bug be related to incomplete implementation of this part or not however I describe this to be checked.
When My project has a solana recipient address, by tapping on manage address and select a chain this address is shown in Eth chain by default
I think it's better if a project doesn't have an eth address the default value of address won't be set
@RamRamez

Screen.Recording.2024-01-08.at.3.12.52.PM.mov

@MoeNick
Copy link
Member

MoeNick commented Jan 8, 2024

Good catch @maryjaf

@RamRamez
Copy link
Collaborator

RamRamez commented Jan 8, 2024

@maryjaf I've fixed it PR #3533 (without recurring donations enabled)

@MoeNick
Copy link
Member

MoeNick commented Jan 9, 2024

@maryjaf to QA add solana in manage address modal (my project list) again please

@maryjaf
Copy link
Collaborator

maryjaf commented Jan 9, 2024

last changes aren't on stg, maybe it hasn't been reviewed yet.

@aminlatifi
Copy link
Member

@maryjaf @MoeNick The PR is merged.

@maryjaf
Copy link
Collaborator

maryjaf commented Jan 9, 2024

Screen.Recording.2024-01-09.at.2.35.15.PM.mov

The user has a same address on one or more ETH chain and one address on solana , in this situation by tapping on other eth chain the default address isn't set, is it accepted? @MoeNick
or current address that it is set on ETH chain should be shown ?

@MoeNick
Copy link
Member

MoeNick commented Jan 10, 2024

If user has set an eth address before and want to set another eth, we should suggest the same eth address to user.

This was according to @GriffGreen requirement once and we applied it.
I think @MohammadPCh was implemented that.

But however if it's too complicated to implement, I think its fine.

@aminlatifi
Copy link
Member

If user has set and eth address before and want to set another eth, we should suggest the same eth address to user.

This was according to @GriffGreen requirement once and we applied it. I think @MohammadPCh was implemented that.

But however if it's too complicated to implement, I think its fine.

@RamRamez has refactored that part. Ramin, can you look at this issue?

@RamRamez
Copy link
Collaborator

In PR #3605, I excluded non EVM chains. So, we won't suggest anything for non EVM chains and will only have address suggestion for ETH addresses

@MoeNick
Copy link
Member

MoeNick commented Jan 11, 2024

Screen.Recording.2024-01-09.at.2.35.15.PM.mov

The user has a same address on one or more ETH chain and one address on solana , in this situation by tapping on other eth chain the default address isn't set, is it accepted? @MoeNick

or current address that it is set on ETH chain should be shown ?

@RamRamez so in this case, user get some suggestions for eth addresses?

@RamRamez
Copy link
Collaborator

@MoeNick Yes, we should suggest

@maryjaf
Copy link
Collaborator

maryjaf commented Jan 11, 2024

Plz check this @RamRamez
when my user has a solana address and one address on eth chain, the default address won't be set correctly for other eth chains and solana address be shown

Screen.Recording.2024-01-11.at.1.22.56.PM.mov

@maryjaf
Copy link
Collaborator

maryjaf commented Jan 11, 2024

when my user has a solana address and one address on eth chain, the default address won't be set correctly for other eth chains and solana address be shown

Thanks @RamRamez this problem has been resolved

@MoeNick MoeNick closed this as completed Jan 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants