contracts

package
v4.0.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(value interface{}) ([]byte, error)

Types

type ApproveNftTransfer

type ApproveNftTransfer struct {
	Spender string `json:"spender"`
	TokenId string `json:"token_id"`
	Expires string `json:"expires,omitempty"`
}

type InitiateNftContract

type InitiateNftContract struct {
	Name   string `json:"name"`
	Symbol string `json:"symbol"`
	/// The minter is the only one who can create new NFTs.
	Minter string `json:"minter"`
}

type Mint

type Mint struct {
	/// Unique ID of the NFT
	TokenId string `json:"token_id"`
	/// The owner of the newly minter NFT
	Owner string `json:"owner"`
	/// Universal resource identifier for this NFT
	/// Should point to a JSON file that conforms to the ERC721
	/// Metadata JSON Schema
	TokenUri string `json:"token_uri"`
	/// Any custom extension used by this contract
	Extension json.RawMessage `json:"extension"`
}

/ Mint a new NFT, can only be called by the contract minter

type OwnerOf

type OwnerOf struct {
	TokenId string `json:"token_id"`
}

type OwnerOfResponse

type OwnerOfResponse struct {
	Owner     string   `json:"owner"`
	Approvals []string `json:"approvals"`
}

type TransferNft

type TransferNft struct {
	TokenId   string `json:"token_id"`
	Recipient string `json:"recipient"`
}

type WasmMsgApprove

type WasmMsgApprove struct {
	ApproveNftTransfer ApproveNftTransfer `json:"approve"`
}

/ Allows operator to transfer / send the token from the owner's account. / If expiration is set, then this allowance has a time/height limit

type WasmMsgInitiateNftContract

type WasmMsgInitiateNftContract struct {
	InstantiateMsg InitiateNftContract `json:"instantiate_msg"`
}

type WasmMsgMint

type WasmMsgMint struct {
	Mint Mint `json:"mint"`
}

type WasmMsgTransferNft

type WasmMsgTransferNft struct {
	TransferNft TransferNft `json:"transfer_nft"`
}

/ Transfer is a base message to move a token to another account without triggering actions

type WasmQueryOwnerOf

type WasmQueryOwnerOf struct {
	OwnerOf OwnerOf `json:"owner_of"`
}

/ Return the owner of the given token, error if token does not exist #[returns(cw721::OwnerOfResponse)]

Jump to

Keyboard shortcuts

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