indexer's People
Forkers
foreman3890indexer's Issues
Fix new indexer
- creation_date is missing
- rev_addr not removed
Update referral indexers
custom auto renewal data finality
Auto renewal would start renewing domains too quickly and transactions would fail because allowance is not yet accepted.
Fix buggy data from main indexer (copy for altindexer)
Will fix: starknet-id/api.starknet.id#62
referral events are not indexed
speed up indexers to pending blocks
Equipment Update Event Indexing
Develop an indexer to manage the 'nfts_images' collection by indexing 'EquipmentUpdated' events.
{ token_id, image_id }
Brief: https://app.skiff.com/file/47a912b4-2f07-48d6-b6eb-4e799a20c240
Update to Cairo2 events
Add new indexers to support new naming events and disable the old indexers at a specified block.
starknet_id_update -> DomainRenewal and DomainMint
domain_to_resolver_update -> DomainResolverUpdate
domain_transfer -> DomainTransfer
domain_to_addr_update -> removed, check starknetid
addr_to_domain_update -> AddressToDomainUpdate
reset_subdomains_update -> SubdomainsReset
When minting a domain that used to be owned by someone, legacy address is not reset
Add referrals stats
Description
We have trouble managing data for referrals, Ideally, we would have something where we can have:
- Check the revenue generated by a particular address on direct referrals for Starknet ID (so the 75%)
- Check the revenue generated by a particular address on direct referrals for the affiliate (so the 25%)
- Check the revenue generated by a particular address on indirect referrals for the Starknet ID
- Check the revenue generated by a particular address on indirect referrals for the affiliate
- Check the total revenue generated by Starknet ID on direct/indirect affiliates
- Check the total revenue generated by Affiliates
- Check the top affiliates
Maybe we can use the the current stats dashboard made in python but Idk
Asset Burn Event Indexing (Deferred)
We meed a database to keep updated the balances of assets owned by a user off chain.
These balances can be updated by our server:
- increased when the user completes an achievement for example
- decreased when a signature for updating the image_id is generated
But also by our indexer:
- decreased when someone claims an asset on chain in AssetsContract (via
mint_assets
, see https://github.com/starknet-id/starkurabu_asset_contract/issues/1 ) - increased when someone burns an asset on chain (also in AssetsContract)
- updated (with + and -) when someone changes the equipment (via EquipmentUpdated in Starkurabu NFT Contract)
Collections:
on_chain_credits:
{ asset_id, variant_id, owner, amount }
off_chain_credits:
{ asset_id, variant_id, owner, amount, cursor }
To get the balance of user, find his credits on_chain and off_chain and do the sum.
If a chain reorganization happens, it's possible that a user could end up double spending:
He burns an asset on chain and receives it off chain, and then generate the signature to mint it back on chain. If a reorg cancels the burn, he can still mint it even though he didn't burn the first one. I think it's not a too big issue but we need to know what would happen in that case (would the balance be -1, 0, ...).
Add custom-resolvers to new_indexer
Add support to custom resolving to indexer
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.