package
Version:
v0.0.0-...-76fd6e2
Opens a new window with list of versions in this module.
Published: Jul 4, 2023
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
const (
TaskNewCollection EnumTask = "TaskNewCollection"
TaskNewErc721 EnumTask = "TaskNewErc721"
)
type GetNftReq struct {
ContractAddr string `query:"contract_addr"`
TokenId string `param:"tokenId"`
}
type GetNftsReq struct {
ContractAddr string `query:"contract_addr" validate:"omitempty,eth_addr"`
Owner string `query:"owner" validate:"omitempty,eth_addr"`
Offset int32 `query:"offset" validate:"gte=0"`
}
type GetNftsRes struct {
Nfts []Nft `json:"nfts"`
Limit int32 `json:"limit"`
Offset int32 `json:"offset"`
}
type HTTPError struct {
Code int
Err error
}
type NewCollectionTask struct {
Address common.Address `json:"address"`
}
type NewErc721Task struct {
Token common.Address `json:"token"`
Identifier *big.Int `json:"idientifier"`
}
type NftListing struct {
ListingId *big.Int `json:"listing_id"`
Seller common.Address `json:"seller"`
Price *big.Int `json:"price"`
}
type NftMetadata struct {
Name string `json:"name"`
Description string `json:"description"`
Image string `json:"image"`
}
type Response struct {
Data any `json:"data,omitempty"`
IsSuccess bool `json:"is_success"`
Error any `json:"error,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.