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

[SUBGRAPH] approval mapping #1878

Merged

Conversation

0xdavinchee
Copy link
Contributor

@0xdavinchee 0xdavinchee commented Mar 6, 2024

  • create ApprovalEvent when Approval event is emitted from a SuperToken contract.

closes #1834

@kasparkallas
Copy link
Contributor

kasparkallas commented Mar 6, 2024

We use the same event entity for the ERC-20 Approval and the NFT Approval? Why not use another entity?

@0xdavinchee
Copy link
Contributor Author

We use the same event entity for the ERC-20 Approval and the NFT Approval? Why not use another entity?

we can, no strong reason to use the same for both

@kasparkallas
Copy link
Contributor

We use the same event entity for the ERC-20 Approval and the NFT Approval? Why not use another entity?

we can, no strong reason to use the same for both

we decided to re-use the event

@0xdavinchee 0xdavinchee changed the base branch from dev to subgraph-poolmember-bug March 8, 2024 12:27
@0xdavinchee 0xdavinchee requested review from d10r and a team as code owners March 8, 2024 12:27
@hellwolf
Copy link
Contributor

test is broken

@kasparkallas
Copy link
Contributor

test is broken

ah, it's the test that's currently supposed to fail, will ignore

image

@hellwolf hellwolf marked this pull request as draft March 12, 2024 10:12
@hellwolf
Copy link
Contributor

ah, it's the test that's currently supposed to fail, will ignore

So we shall wait for the fix, from some future PR. Right?

@kasparkallas kasparkallas marked this pull request as ready for review March 12, 2024 12:18
@kasparkallas kasparkallas changed the base branch from subgraph-poolmember-bug to 2024-03-subgraph-gda-feature-branch March 12, 2024 12:18
@kasparkallas
Copy link
Contributor

ah, it's the test that's currently supposed to fail, will ignore

So we shall wait for the fix, from some future PR. Right?

future PR, we're already working it

created a feature branch (2024-03-subgraph-gda-feature-branch) to merge all the latest updates/fixes we want to finally test and release together

@kasparkallas kasparkallas merged commit a58cf6b into 2024-03-subgraph-gda-feature-branch Mar 12, 2024
14 checks passed
@kasparkallas kasparkallas deleted the 1834-approval-event-mapping branch March 12, 2024 13:31
Copy link

XKCD Comic Relif

Link: https://xkcd.com/1878
https://xkcd.com/1878

github-merge-queue bot pushed a commit that referenced this pull request Mar 26, 2024
* [SUBGRAPH] [BUG] PoolMember not getting updated when the member units change (#1877)

* add a test starter

* add the test

* fixes

* improve test

* update dev container for matchstick compatibility

* implement the fix

* clean-up

* add elaborate test for pool  total amount received

* fix test issue

* add even more comments

* fix test name

* ignore test

---------

Co-authored-by: 0xdavinchee <[email protected]>

* [SUBGRAPH] approval mapping (#1878)

* approval mapping

* missing addresses

* missing addresses cont.

* no-op, trigger build

* fix tests

---------

Co-authored-by: Kaspar Kallas <[email protected]>

* [subgraph] Fix Correctness of GDA Entities (#1890)



---------

Co-authored-by: 0xdavinchee <[email protected]>

* add createdAtTimestamp/BlockNumber for ATS entity (#1909)

* [SUBGRAPH] fix governance config always null (#1908)

* fix governance config always null

* fix broken tests

* [SUBGRAPH] fix resolver entry (#1843)

* fix resolver entry

* do resolver rpc call on token initialization and remove handleTokenRPCCalls in subsequent token calls

* fix broken tests

* TODO comment can be removed

* remove mistakenly added files

---------

Co-authored-by: 0xdavinchee <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Mar 26, 2024
* add gda pool subgraph entity queries

* improve infinity paging api

* add some robustness to transaction serialization

* reduce tx tracking timeout from 10 mins to 3 mins

* remove unnecessary toLowerCase

* changeset

* [SUBGRAPH] [BUG] PoolMember not getting updated when the member units change (#1877)

* add a test starter

* add the test

* fixes

* improve test

* update dev container for matchstick compatibility

* implement the fix

* clean-up

* add elaborate test for pool  total amount received

* fix test issue

* add even more comments

* fix test name

* ignore test

---------

Co-authored-by: 0xdavinchee <[email protected]>

* [SUBGRAPH] approval mapping (#1878)

* approval mapping

* missing addresses

* missing addresses cont.

* no-op, trigger build

* fix tests

---------

Co-authored-by: Kaspar Kallas <[email protected]>

* [subgraph] Fix Correctness of GDA Entities (#1890)



---------

Co-authored-by: 0xdavinchee <[email protected]>

* add getTotalAmountReceivedByPoolMember to sdk-core (#1902)

* update entities based on new subgraph

* map name, isnfttransfer, isnftapproval

* fix merge issue

* remove unnecessary files

* update gitignore

---------

Co-authored-by: 0xdavinchee <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[SUBGRAPH] Investigate issues with Approval event mapping
3 participants