jobs

package
v0.0.0-...-3befcbb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2023 License: GPL-3.0 Imports: 33 Imported by: 0

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

View Source
const MAX_DB_CONN = 77

Variables

This section is empty.

Functions

func FixHustlerImages

func FixHustlerImages()

func GearClaims

func GearClaims()

func GearMetrics

func GearMetrics()

func GetHustlerContractBinding

func GetHustlerContractBinding(log zerolog.Logger) *bindings.Hustler

func GetHustlerMetaForOwner

func GetHustlerMetaForOwner(owner a.OwnerAddress) []a.Nft

func GetHustlerMetaForTokenId

func GetHustlerMetaForTokenId(id big.Int) []byte

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 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()

func UpsertHustlerFromAlchemy

func UpsertHustlerFromAlchemy(ctx context.Context, t a.Nft)

Types

This section is empty.

Directories

Path Synopsis
Some of the data returned from the opensea api is a string that needs to be converted to an int.
Some of the data returned from the opensea api is a string that needs to be converted to an int.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL