Token
func() v0.TellerToken returns the collection as a read-only GRC721 teller.
- OID
- 00bda8…fa9e:3
Token details
GetName
func() stringGetName returns the name of the collection.
- OID
- 00bda8…fa9e:5
GetName details
GetSymbol
func() stringGetSymbol returns the symbol of the collection.
- OID
- 00bda8…fa9e:6
GetSymbol details
ID
func() stringID returns the ID of the collection.
- OID
- 00bda8…fa9e:7
ID details
TotalSupply
func() int64TotalSupply returns the number of Settlers minted so far.
- OID
- 00bda8…fa9e:8
TotalSupply details
BalanceOf
func(owner .uverse.address) (int64, .uverse.error)BalanceOf returns the number of Settlers of an account, 0 or 1.
- OID
- 00bda8…fa9e:9
BalanceOf details
OwnerOf
func(tid v0.TokenID) (.uverse.address, .uverse.error)- OID
- 00bda8…fa9e:10
OwnerOf details
GetApproved
func(tid v0.TokenID) (.uverse.address, .uverse.error)- OID
- 00bda8…fa9e:11
GetApproved details
IsApprovedForAll
func(owner .uverse.address, operator .uverse.address) boolIsApprovedForAll reports whether an account is allowed to move the Settler of another account. Settlers are soulbound, so it is always false.
- OID
- 00bda8…fa9e:12
IsApprovedForAll details
Approve
func(to .uverse.address, tid v0.TokenID)Approve always fails, Settlers are soulbound.
- OID
- 00bda8…fa9e:13
Approve details
SetApprovalForAll
func(operator .uverse.address, approved bool)SetApprovalForAll always fails, Settlers are soulbound.
- OID
- 00bda8…fa9e:14
SetApprovalForAll details
TransferFrom
func(from .uverse.address, to .uverse.address, tid v0.TokenID)TransferFrom always fails, Settlers are soulbound.
- OID
- 00bda8…fa9e:15
TransferFrom details
TokenURI
func(tid v0.TokenID) (string, .uverse.error)TokenURI returns the Settler image as an SVG data URI. Wallets such as Adena read TokenURI directly as the token image, so this must be the image itself. The metadata lives in TokenMetadata.
- OID
- 00bda8…fa9e:16
TokenURI details
TokenMetadata
func(tid v0.TokenID) (string, .uverse.error)TokenMetadata returns a JSON string with the metadata of a Settler in the format the Adena wallet can understand.
- OID
- 00bda8…fa9e:18
TokenMetadata details
ExternalURL
func(tid v0.TokenID) stringExternalURL returns the URL to a Settler profile page.
- OID
- 00bda8…fa9e:19
ExternalURL details
Name
untyped stringValue
"Settlers"
Symbol
untyped stringValue
"SETTLER"
capacity
untyped bigintValue
(3000 <untyped> bigint)
maxNonce
untyped bigintValue
(64 <untyped> bigint)
maxAunts
untyped bigintValue
(40 <untyped> bigint)
ErrSoulbound
*errors.errorStringErrSoulbound is returned for operation that are not allowed on a soulbound NFT.
- OID
- 00bda8…fa9e:21
ErrSoulbound details
RealmPath
stringValue
"/r/g17khqpukees4237dtn3astzapmp462vjhsz6st4/settlers/nft"
Notice
stringValue
""
NoticeType
v0.TypeValue
<zero>
admin
*v0.Ownable- OID
- 00bda8…fa9e:78
admin details
supplyCap
intValue
3000
root
[]uint8- OID
- 00bda8…fa9e:90
root details
total
intValue
363791
collection
*v0.Token- OID
- 00bda8…fa9e:80
collection details
ledger
*v0.PrivateLedger- OID
- 00bda8…fa9e:82
ledger details
tokens
*v0.BPTree- OID
- 00bda8…fa9e:33
tokens details
claimed
*v0.BPTree- OID
- 00bda8…fa9e:36
claimed details
seenTraits
*bloom.Bloom- OID
- 00bda8…fa9e:39
seenTraits details
init.33
func()- OID
- 00bda8…fa9e:43
init.33 details
soulbound
typeSoulbound is a GRC721 extension that aborts any transfer of a Settler. The realm never exposes a teller that can write, so a transfer can't be started, this makes sure that it could never finish either.
Value
nft.soulbound
newCollection
func() (*v0.Token, *v0.PrivateLedger)newCollection creates the GRC721 token of the Settlers.
- OID
- 00bda8…fa9e:45
newCollection details
SetSnapshot
func(rootHex string, count int)SetSnapshot opens the mint. It sets the Merkle root of the list of eligible accounts, in hex, and the number of accounts in the list. Only the owner can call it. It can be called again to correct a mistake until the first Settler is minted, from then on the list is frozen.
- OID
- 00bda8…fa9e:46
SetSnapshot details
Admin
func() .uverse.address- OID
- 00bda8…fa9e:47
Admin details
TransferAdmin
func(newAdmin .uverse.address)TransferAdmin makes another account the admin. Only the admin can call it.
- OID
- 00bda8…fa9e:48
TransferAdmin details
SetNotice
func(alertType v0.Type, msg string)SetNotice posts a realm-wide message, shown at the top of the page.
- OID
- 00bda8…fa9e:49
SetNotice details
ClearNotice
func()ClearNotice removes the current notice.
- OID
- 00bda8…fa9e:50
ClearNotice details
Mint
func(proof string) v0.TokenIDMint mints a Settler to the caller and returns its ID. The proof shows that the caller is in the list of eligible accounts. Proof format is "\<index>.\<aunts>". Only user accounts can mint, either with a call or a run transaction, realms can't.
- OID
- 00bda8…fa9e:51
Mint details
Cap
func() intCap returns the number of Settlers that can be minted.
- OID
- 00bda8…fa9e:52
Cap details
MerkleRoot
func() stringMerkleRoot returns the Merkle root of the list of eligible accounts, in hex.
- OID
- 00bda8…fa9e:53
MerkleRoot details
Total
func() intTotal returns the number of eligible accounts in the list.
- OID
- 00bda8…fa9e:54
Total details
TokenOf
func(addr .uverse.address) v0.TokenIDTokenOf returns the ID of the Settler of an account, or an empty ID if it has none.
- OID
- 00bda8…fa9e:55
TokenOf details
TraitsOf
func(tid v0.TokenID) (v0.Traits, .uverse.error)TraitsOf returns the traits of a Settler.
- OID
- 00bda8…fa9e:56
TraitsOf details
traitsOf
func(tid v0.TokenID) (uint32, bool)traitsOf returns the packed traits of a Settler, or false if the ID is not a minted Settler.
- OID
- 00bda8…fa9e:57
traitsOf details
tokenID
func(settlerID int) v0.TokenIDtokenID returns the GRC721 ID of a Settler number.
- OID
- 00bda8…fa9e:58
tokenID details
parseTokenID
func(tid v0.TokenID) (int, bool)parseTokenID returns the Settler number of an ID, only for the canonical form ("1", not "01" or "+1").
- OID
- 00bda8…fa9e:59
parseTokenID details
newTraitsFilter
func() *bloom.Bloom- OID
- 00bda8…fa9e:60
newTraitsFilter details
generateSeed
func(caller .uverse.address, settlerID int, nonce int) string- OID
- 00bda8…fa9e:61
generateSeed details
seedPrefix
func(caller .uverse.address, settlerID int) string- OID
- 00bda8…fa9e:62
seedPrefix details
hashSeed
func(prefix string, nonce int) string- OID
- 00bda8…fa9e:63
hashSeed details
splitProof
func(proof string) (int, []uint8, string)- OID
- 00bda8…fa9e:64
splitProof details
makeKey
func(settlerID int) string- OID
- 00bda8…fa9e:65
makeKey details
assertIsCurrent
func()- OID
- 00bda8…fa9e:66
assertIsCurrent details
assertIsValidAlertType
func(t v0.Type)- OID
- 00bda8…fa9e:67
assertIsValidAlertType details
galleryWidth
untyped bigintValue
(96 <untyped> bigint)
detailWidth
untyped bigintValue
(256 <untyped> bigint)
galleryLen
untyped bigintValue
(5 <untyped> bigint)
Render
func(path string) stringRender renders the realm. By default renders the state of the mint and the last minted Settlers. Paths: - \`token/{id}\`: A Settler with its traits and its owner. - \`addr/{address}\`: The Settler of an account.
- OID
- 00bda8…fa9e:68
Render details
renderHome
func(res *v0.ResponseWriter, *v0.Request)- OID
- 00bda8…fa9e:70
renderHome details
renderToken
func(res *v0.ResponseWriter, req *v0.Request)- OID
- 00bda8…fa9e:71
renderToken details
renderAddr
func(res *v0.ResponseWriter, req *v0.Request)- OID
- 00bda8…fa9e:72
renderAddr details
image
func(settlerID int, t v0.Traits, width int) string- OID
- 00bda8…fa9e:73
image details
tokenPath
func(settlerID int) string- OID
- 00bda8…fa9e:74
tokenPath details
backHomeLink
func() string- OID
- 00bda8…fa9e:75
backHomeLink details
settlerName
func(settlerID int) string- OID
- 00bda8…fa9e:76
settlerName details
footer
func() string- OID
- 00bda8…fa9e:77