Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IBlockchainGateway ¶
type IBlockchainGateway interface { GetAccountBalance(ctx context.Context, blockchain common.Blockchain, address string) (string, error) GetERC1155URI(ctx context.Context, contract *entities.Contract, tokenId string) (string, error) GetERC721URI(ctx context.Context, contract *entities.Contract, tokenId string) (string, error) GetERC1155Balance(ctx context.Context, address string, contract *entities.Contract, tokenId string) (string, error) GetERC721Balance(ctx context.Context, address string, contract *entities.Contract, tokenId string) (string, error) GetPunkBalance(ctx context.Context, address string, contract *entities.Contract, tokenId string) (string, error) GetERC20Balance(ctx context.Context, address string, contract *entities.Contract) (string, error) GetERC20Name(ctx context.Context, contract *entities.Contract) (string, error) GetERC20Symbol(ctx context.Context, contract *entities.Contract) (string, error) GetERC20Decimals(ctx context.Context, contract *entities.Contract) (uint8, error) GetENSAddressFromName(ctx context.Context, ensName string) (string, error) GetENSNameFromAddress(ctx context.Context, address string) (name string, err error) GetTransactionData(ctx context.Context, tx *entities.Transaction) (*entities.TransactionData, error) GetStoreBalanceBatch(ctx context.Context, address string, ids *[]string) ([]*big.Int, error) }
type IBlockchainIndexGateway ¶
type ICacheGateway ¶
type ICacheGateway interface { Init(context.Context) error GetProfileByAddress(ctx context.Context, key string, address string) (*entities.Profile, error) SaveProfile(ctx context.Context, key string, profile *entities.Profile) error DeleteProfile(ctx context.Context, key string, address string) error GetProfiles(ctx context.Context, key string) (*[]entities.Profile, error) SaveProfiles(ctx context.Context, key string, profiles *[]entities.Profile) error GetChallengeByAddress(ctx context.Context, address string) (*entities.Challenge, error) SaveChallenge(ctx context.Context, challenge *entities.Challenge) error GetNonFungibleMetadata(ctx context.Context, contract *entities.Contract, tokenId string) (*entities.NonFungibleMetadata, error) SaveNonFungibleMetadata(ctx context.Context, contract *entities.Contract, tokenId string, metadata *entities.NonFungibleMetadata) error GetFungibleMetadata(ctx context.Context, contract *entities.Contract) (*entities.FungibleMetadata, error) SaveFungibleMetadata(ctx context.Context, contract *entities.Contract, metadata *entities.FungibleMetadata) error GetENSAddressFromName(ctx context.Context, name string) (string, error) SaveENSAddress(ctx context.Context, name string, address string) error GetENSNameFromAddress(ctx context.Context, address string) (string, error) SaveENSName(ctx context.Context, address string, name string) error RecordAddressView(ctx context.Context, address string, ipAddress string) error GetTopViewedAddresses(ctx context.Context) (*[]string, error) VerifyRateLimit(ctx context.Context, ipAddress string) error }
type IDatabaseGateway ¶
type IOffchainGateway ¶
type IOffchainGateway interface { Init(context.Context) error GetNonFungibleTokens(ctx context.Context, address string) (*[]entities.NonFungibleToken, error) GetNonFungibleMetadata(ctx context.Context, uri string) (*entities.NonFungibleMetadata, error) GetPunkMetadata(ctx context.Context, tokenId string) (*entities.NonFungibleMetadata, error) GetKittieMetadata(ctx context.Context, tokenId string) (*entities.NonFungibleMetadata, error) // return a slice of contracts relating to erc20 tokens that the provided address has a non-zero balance for GetFungibleContracts(ctx context.Context, address string) (*[]entities.Contract, error) GetFungibleMetadata(ctx context.Context, contract *entities.Contract) (*entities.FungibleMetadata, error) }
Click to show internal directories.
Click to hide internal directories.