manifold

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const APIBaseURL = "https://apps.api.manifoldxyz.com/public/instance/"

Variables

This section is empty.

Functions

This section is empty.

Types

type Creator

type Creator struct {
	ID         int         `json:"id"`
	Image      interface{} `json:"image"`
	Name       string      `json:"name"`
	TwitterURL string      `json:"twitterUrl"`

	// Creator wallet address
	Address common.Address `json:"address"`
}

type DataResponse

type DataResponse struct {
	ID            int        `json:"id"`
	Creator       Creator    `json:"creator"`
	Slug          string     `json:"slug"`
	PublicData    PublicData `json:"publicData"`
	AppID         int64      `json:"appId"`
	MintPrice     float64    `json:"mintPrice"`
	IsOpenEdition bool       `json:"isOpenEdition"`
}

DataResponse is the response from the Manifold API endpoint /data?id=1337...

type PublicData

type PublicData struct {
	Name             string `json:"name"`
	Description      string `json:"description"`
	Image            string `json:"image"`
	Animation        string `json:"animation"`
	MediaIsLandscape bool   `json:"mediaIsLandscape"`

	ClaimType    string         `json:"claimType"`
	ClaimIndex   int            `json:"claimIndex"`
	MerkleTreeID int            `json:"merkleTreeId"`
	Erc20        common.Address `json:"erc20"`
	AudienceID   interface{}    `json:"audienceId"`

	// Manifold contract address (to mint from)
	ExtensionContractAddress common.Address `json:"extensionAddress"`
	// Collection/NFT contract address
	CreatorContractAddress common.Address `json:"creatorContractAddress"`

	// Chain ID
	Network int `json:"network"`
}

Jump to

Keyboard shortcuts

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