Skip to content Search Apps Documentation Source Content File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

gnofish state

Back to all declarations

denom

untyped string

Value

"ugnot"

mintPrice

int64

Value

100000000

maxAsk

int64

Value

100000000000000

maxMint

untyped bigint

Value

(10000 <untyped> bigint)

listCap

untyped bigint

Value

(50 <untyped> bigint)

slug

untyped string

Value

"gnofish"

imageIPFS

untyped string

Value

"ipfs://bafybeifdmgbtq3nf7xuepvygotk6ulk4wo7xshsi2yr4xukglsdpzz7p2i/"

imageHTTPS

untyped string

Value

"https://gateway.pinata.cloud/ipfs/bafybeifdmgbtq3nf7xuepvygotk6ulk4wo7xshsi2yr4xukglsdpzz7p2i/"

fish

type

Value

gnofish.fish

inited

bool

Value

true

self

.uverse.address

Value

<gnolang.StringValue>

admin

.uverse.address

Value

<gnolang.StringValue>

minted

int

Value

0

listed

map[.uverse.address]bool
Open
OID
0cde53…8642:91
listed details

Inspect map

seq

v0.ID

Value

<zero>

Init

func()

Init opens the sale. The caller becomes the admin and the owner of every mint. No coins.

Open
OID
0cde53…8642:28
Init details

Inspect func

Grant

func(who .uverse.address)

Grant lets that wallet mint without paying. Admin only. There is no per-address cap.

Open
OID
0cde53…8642:30
Grant details

Inspect func

Revoke

func(who .uverse.address)

Revoke removes the free mint.

Open
OID
0cde53…8642:31
Revoke details

Inspect func

TransferAdmin

func(next .uverse.address)

TransferAdmin moves the wallet that receives NFTs and GNOT.

Open
OID
0cde53…8642:32
TransferAdmin details

Inspect func

Mint

func() int

Mint 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.

Open
OID
0cde53…8642:33
Mint details

Inspect func

Transfer

func(to .uverse.address, id int)

Transfer moves a fish the caller owns. The call sends no coins.

Open
OID
0cde53…8642:34
Transfer details

Inspect func

TransferFrom

func(from .uverse.address, to .uverse.address, id int)

TransferFrom moves a fish. The caller must own it or be approved for it.

Open
OID
0cde53…8642:35
TransferFrom details

Inspect func

Approve

func(to .uverse.address, id int)

Approve lets to move this fish once. The caller must own it.

Open
OID
0cde53…8642:36
Approve details

Inspect func

SetApprovalForAll

func(operator .uverse.address, approved bool)

SetApprovalForAll lets operator move every fish of the caller, or revokes it.

Open
OID
0cde53…8642:37
SetApprovalForAll details

Inspect func

List

func(id int, priceUgnot int64)

List escrows the fish to this realm and puts it on sale. The caller sends no coins.

Open
OID
0cde53…8642:38
List details

Inspect func

UpdatePrice

func(id int, priceUgnot int64)

UpdatePrice changes the ask of a fish the caller is selling.

Open
OID
0cde53…8642:39
UpdatePrice details

Inspect func

Cancel

func(id int)

Cancel returns a listed fish to its seller. The call sends no coins.

Open
OID
0cde53…8642:40
Cancel details

Inspect func

Buy

func(id int)

Buy pays the ask, in full, to the seller and gives the fish to the buyer.

Open
OID
0cde53…8642:41
Buy details

Inspect func

Whitelisted

func(who string) bool
Open
OID
0cde53…8642:53
Whitelisted details

Inspect func

TokensOf

func(owner .uverse.address) string
Open
OID
0cde53…8642:59
TokensOf details

Inspect func

OwnerOf

func(tid v0.TokenID) (.uverse.address, .uverse.error)
Open
OID
0cde53…8642:61
OwnerOf details

Inspect func

BalanceOf

func(addr .uverse.address) (int64, .uverse.error)
Open
OID
0cde53…8642:62
BalanceOf details

Inspect func

GetApproved

func(tid v0.TokenID) (.uverse.address, .uverse.error)
Open
OID
0cde53…8642:64
GetApproved details

Inspect func

IsApprovedForAll

func(owner .uverse.address, operator .uverse.address) bool
Open
OID
0cde53…8642:65
IsApprovedForAll details

Inspect func

TokenByIndex

func(index int64) (v0.TokenID, .uverse.error)
Open
OID
0cde53…8642:66
TokenByIndex details

Inspect func

TokenOfOwnerByIndex

func(owner .uverse.address, index int64) (v0.TokenID, .uverse.error)
Open
OID
0cde53…8642:67
TokenOfOwnerByIndex details

Inspect func

TokenURI

func(tid v0.TokenID) (string, .uverse.error)

TokenURI is the https image Adena puts in an img tag.

Open
OID
0cde53…8642:72
TokenURI details

Inspect func

TokenMetadata

func(tid v0.TokenID) (string, .uverse.error)

TokenMetadata is the JSON Adena reads. Attribute keys are traitType.

Open
OID
0cde53…8642:73
TokenMetadata details

Inspect func

Roll

func(caller .uverse.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.

Open
OID
0cde53…8642:74
Roll details

Inspect func

send

func(to .uverse.address, amt int64, rlm .uverse.realm)
Open
OID
0cde53…8642:78
send details

Inspect func

revealed

func(id int) *gnofish.fish
Open
OID
0cde53…8642:81
revealed details

Inspect func

nameTaken

func(name string) bool
Open
OID
0cde53…8642:83
nameTaken details

Inspect func

move

func(from .uverse.address, to .uverse.address, id int)
Open
OID
0cde53…8642:84
move details

Inspect func

ledgerMove

func(spender .uverse.address, from .uverse.address, to .uverse.address, id int)
Open
OID
0cde53…8642:85
ledgerMove details

Inspect func

byToken

func(tid v0.TokenID) (*gnofish.fish, .uverse.error)
Open
OID
0cde53…8642:87
byToken details

Inspect func

speciesOf

func(rarity string) string
Open
OID
0cde53…8642:88
speciesOf details

Inspect func

attr

func(key string, value string) string
Open
OID
0cde53…8642:89
attr details

Inspect func
denom : untyped string ="ugnot"
mintPrice : int64 =100000000
maxAsk : int64 =100000000000000
maxMint : untyped bigint =(10000 <untyped> bigint)
listCap : untyped bigint =(50 <untyped> bigint)
slug : untyped string ="gnofish"
imageIPFS : untyped string ="ipfs://bafybeifdmgbtq3nf7xuepvygotk6ulk4wo7xshsi2yr4xukglsdpzz7p2i/"
imageHTTPS : untyped string ="https://gateway.pinata.cloud/ipfs/bafybeifdmgbtq3nf7xuepvygotk6ulk4wo7xshsi2yr4xukglsdpzz7p2i/"
species : [6]string Inspect
rarities : [6]string Inspect
portrait : [6]string Inspect
traits : [3]string Inspect
biteBase : [6]int Inspect
hpBase : [6]int Inspect
spdBase : [6]int Inspect
fish : type =gnofish.fish
inited : bool =true
self : .uverse.address =<gnolang.StringValue>
admin : .uverse.address =<gnolang.StringValue>
minted : int =0
roster : []gnofish.fish (len=1) Inspect
listed : map[.uverse.address]bool Inspect
token : *v0.Token Inspect
ledger : *v0.PrivateLedger Inspect
teller : *v0.fnTeller Inspect
indexed : *v0.Enumerable Inspect
seq : v0.ID =<zero>
Init : func() Inspect
Grant : func(who .uverse.address) Inspect
Revoke : func(who .uverse.address) Inspect
TransferAdmin : func(next .uverse.address) Inspect
Mint : func() int Inspect
Transfer : func(to .uverse.address, id int) Inspect
TransferFrom : func(from .uverse.address, to .uverse.address, id int) Inspect
Approve : func(to .uverse.address, id int) Inspect
SetApprovalForAll : func(operator .uverse.address, approved bool) Inspect
List : func(id int, priceUgnot int64) Inspect
UpdatePrice : func(id int, priceUgnot int64) Inspect
Cancel : func(id int) Inspect
Buy : func(id int) Inspect
Version : func() string Inspect
Name : func() string Inspect
GrcName : func() string Inspect
Symbol : func() string Inspect
GrcSymbol : func() string Inspect
Creator : func() string Inspect
MintPrice : func() int64 Inspect
MaxMint : func() int Inspect
Minted : func() int Inspect
Realm : func() .uverse.address Inspect
Admin : func() string Inspect
Whitelisted : func(who string) bool Inspect
Listed : func(id int) bool Inspect
PriceOf : func(id int) int64 Inspect
SellerOf : func(id int) string Inspect
ItemLine : func(id int) string Inspect
ListOpen : func() string Inspect
TokensOf : func(owner .uverse.address) string Inspect
PayerOf : func(id int) string Inspect
OwnerOf : func(tid v0.TokenID) (.uverse.address, .uverse.error) Inspect
BalanceOf : func(addr .uverse.address) (int64, .uverse.error) Inspect
TotalSupply : func() int64 Inspect
GetApproved : func(tid v0.TokenID) (.uverse.address, .uverse.error) Inspect
IsApprovedForAll : func(owner .uverse.address, operator .uverse.address) bool Inspect
TokenByIndex : func(index int64) (v0.TokenID, .uverse.error) Inspect
TokenOfOwnerByIndex : func(owner .uverse.address, index int64) (v0.TokenID, .uverse.error) Inspect
RarityOf : func(id int) string Inspect
TraitOf : func(id int) string Inspect
NameOf : func(id int) string Inspect
ImageOf : func(id int) string Inspect
TokenURI : func(tid v0.TokenID) (string, .uverse.error) Inspect
TokenMetadata : func(tid v0.TokenID) (string, .uverse.error) Inspect
Roll : func(caller .uverse.address, height int64, id int) (rarity string, trait string, bite int, hp int, speed int, tier int) Inspect
Render : func(path string) string Inspect
adminOnly : func() Inspect
gate : func() .uverse.address Inspect
send : func(to .uverse.address, amt int64, rlm .uverse.realm) Inspect
grow : func() int Inspect
must : func(id int) *gnofish.fish Inspect
revealed : func(id int) *gnofish.fish Inspect
pickName : func(tier int) string Inspect
nameTaken : func(name string) bool Inspect
move : func(from .uverse.address, to .uverse.address, id int) Inspect
ledgerMove : func(spender .uverse.address, from .uverse.address, to .uverse.address, id int) Inspect
tidOf : func(id int) v0.TokenID Inspect
byToken : func(tid v0.TokenID) (*gnofish.fish, .uverse.error) Inspect
speciesOf : func(rarity string) string Inspect
attr : func(key string, value string) string Inspect
takeExact : func(n int64) Inspect