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

Support hidden entities #38

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Support hidden entities #38

wants to merge 6 commits into from

Conversation

jtourkos
Copy link
Contributor

@jtourkos jtourkos commented Dec 2, 2024

No description provided.

@jtourkos jtourkos linked an issue Dec 2, 2024 that may be closed by this pull request
Copy link

railway-app bot commented Dec 2, 2024

🚅 Previously deployed to Railway in the Drips App project. Environment has been deleted.

@railway-app railway-app bot temporarily deployed to events-processor-pr-38 December 2, 2024 09:37 Destroyed
.env.template Outdated Show resolved Hide resolved
@@ -109,6 +118,9 @@ export default class TransferEventHandler extends EventHandlerBase<'Transfer(add
dripList.previousOwnerAddress = from;
dripList.ownerAccountId = await calcAccountId(to);

// This is real transfer. The Drip List should not be visible unless the block number is less than the visibility threshold.
dripList.isVisible = blockNumber < visibilityThresholdBlockNumber;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't minting a new NFT account produce transfer where from === null address? should this set isVisible to true if from is null address?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The creation of the drip list (from === ZeroAddress) is covered before in the code.
If the code reaches this point, the list already exists. Makes sense?

@railway-app railway-app bot requested a deployment to app-pr-1366 December 4, 2024 17:22 Abandoned
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.

Index isVisible flag
2 participants