gnofish source realm
Package gnofish is the GnoFish sale NFT. A listed wallet mints for free. Anyone else pays exactly 100 GNOT. An addres...
Package gnofish is the GnoFish sale NFT. A listed wallet mints for free. Anyone else pays exactly 100 GNOT. An address may mint as many times as the 10000 cap allows. The portrait is rolled in the same call. Every NFT is owned by the admin. The whole 100 GNOT is sent to that admin. This realm does not add FISH liquidity. The height and the next id are public before the transaction, so the roll can be predicted. This is not drand. Adena reads OwnerOf, BalanceOf, TokenURI (the https image) and TokenMetadata (JSON, traitType). NewToken and Transfer come from the GRC721 ledger. This package does not swim, settle, or draw FISH. fishlive stays untouched. Nomaq lists with List, UpdatePrice, Cancel, and Buy. ItemLine and ListOpen feed the page. gnofish-1.
44
func Approve
crossing ActionApprove lets to move this fish once. The caller must own it.
func BalanceOf
Actionfunc Buy
crossing ActionBuy pays the ask, in full, to the seller and gives the fish to the buyer.
func Cancel
crossing ActionCancel returns a listed fish to its seller. The call sends no coins.
func Creator
Actionfunc Grant
crossing ActionGrant lets that wallet mint without paying. Admin only. There is no per-address cap.
func GrcName
Actionfunc GrcSymbol
Actionfunc ImageOf
Actionfunc Init
crossing ActionInit opens the sale. The caller becomes the admin and the owner of every mint. No coins.
func IsApprovedForAll
Actionfunc ItemLine
Actionfunc List
crossing ActionList escrows the fish to this realm and puts it on sale. The caller sends no coins.
func ListOpen
Actionfunc Listed
Actionfunc MaxMint
Actionfunc Mint
crossing ActionMint rolls one fish and gives it to the admin. A listed wallet sends nothing. Everyone else sends 100 GNOT, and that full amount goes to the admin.
func MintPrice
Actionfunc Minted
Actionfunc Name
Actionfunc NameOf
Actionfunc PayerOf
Actionfunc PriceOf
Actionfunc RarityOf
Actionfunc Render
func Revoke
crossing ActionRevoke removes the free mint.
func Roll
Action1func Roll(caller address, height int64, id int) (rarity string, trait string, bite int, hp int, speed int, tier int)Roll is sha256 of caller|height|id. mythic 1/10000, legendary 3, epic 10, rare 40, uncommon 200, the rest common.
func SellerOf
Actionfunc SetApprovalForAll
crossing ActionSetApprovalForAll lets operator move every fish of the caller, or revokes it.
func Symbol
Actionfunc TokenByIndex
Actionfunc TokenMetadata
ActionTokenMetadata is the JSON Adena reads. Attribute keys are traitType.
func TokenOfOwnerByIndex
Actionfunc TokenURI
ActionTokenURI is the https image Adena puts in an img tag.
func TokensOf
Actionfunc TotalSupply
Actionfunc TraitOf
Actionfunc Transfer
crossing ActionTransfer moves a fish the caller owns. The call sends no coins.
func TransferAdmin
crossing ActionTransferAdmin moves the wallet that receives NFTs and GNOT.
func TransferFrom
crossing ActionTransferFrom moves a fish. The caller must own it or be approved for it.
func UpdatePrice
crossing ActionUpdatePrice changes the ask of a fish the caller is selling.