Documentation
¶
Overview ¶
Some SVGs cannot be rendered on-chain because of errors in the smart contract arguments.
@bort was able to figure out that Hustlers who have unknown items in their storage slots will cause errors when trying to render them on-chain.
Potentially an issue with this might be our indexer generating the images AFTER reading the storage slots.
Updates DOPE NFT items in our database if they have been "Opened" or had their "Gear Claimed" by checking the Ethereum blockchain.
Updates PAPER balance for wallets we have stored inside our database.
Updates DOPE NFT items in our database after checking their CLAIM status on the PAPER contract.
Index ¶
- Constants
- func FixHustlerImages()
- func GearClaims()
- func GearMetrics()
- func GetHustlerContractBinding(log zerolog.Logger) *bindings.Hustler
- func GetHustlerMetaForOwner(owner a.OwnerAddress) []a.Nft
- func GetHustlerMetaForTokenId(id big.Int) []byte
- func GetHustlerOwners() []a.OwnerAddress
- func OpenSeaListings()
- func PaperBalances()
- func PaperClaims()
- func SeedPaperWallets() error
- func SyncHustlers()
- func UpsertHustlerFromAlchemy(ctx context.Context, t a.Nft)
Constants ¶
const MAX_DB_CONN = 77
Variables ¶
This section is empty.
Functions ¶
func FixHustlerImages ¶
func FixHustlerImages()
func GearClaims ¶
func GearClaims()
func GearMetrics ¶
func GearMetrics()
func GetHustlerMetaForOwner ¶
func GetHustlerMetaForOwner(owner a.OwnerAddress) []a.Nft
func GetHustlerMetaForTokenId ¶
Gets meta for one token ID passed in. Used elsewhere to get meta for a single token. Here we use the getNFTMetadataBatch method instead.
func GetHustlerOwners ¶
func GetHustlerOwners() []a.OwnerAddress
func OpenSeaListings ¶
func OpenSeaListings()
func PaperBalances ¶
func PaperBalances()
Assumes Wallets are already in the database, otherwise it does nothing.
func PaperClaims ¶
func PaperClaims()
func SeedPaperWallets ¶
func SeedPaperWallets() error
Gets all wallet addresses who have ever transferred PAPER using the BigQuery Ethereum dataset. https://cloud.google.com/blog/products/data-analytics/ethereum-bigquery-public-dataset-smart-contract-analytics
func SyncHustlers ¶
func SyncHustlers()
Types ¶
This section is empty.