LaneDirect
untyped stringValue
"direct"
LaneFairSale
untyped stringValue
"fairsale"
LaneAirdrop
untyped stringValue
"airdrop"
LaneCollection
untyped stringValue
"collection"
LaneNFTDrops
untyped stringValue
"nft_drops"
LaneNFTMarket
untyped stringValue
"nft_market"
NativeCurrency
untyped stringValue
"ugnot"
LedgerTokens
untyped stringValue
"tokens"
LedgerNFT
untyped stringValue
"nft"
maxCurrencies
untyped bigintValue
(16 <untyped> bigint)
maxIssuers
untyped bigintValue
(32 <untyped> bigint)
issuerPrefix
untyped stringValue
"gno.land/r/samcrew/"
maxCreationFee
int64Value
768614336404564650
CurrencyParams
typeCurrencyParams holds the terms of one quote currency. A fee of -1 closes the lane that charges it.
Value
v1.CurrencyParams
Params
typeParams is one immutable snapshot of launch terms. A rate of -1 closes the lane that charges it.
Value
v1.Params
lanes
[]string- OID
- 0375b0…2098:4
lanes details
unspendable
[]string- OID
- 0375b0…2098:6
unspendable details
admin
.uverse.addressValue
<gnolang.StringValue>
pendingAdmin
.uverse.addressValue
<zero>
pauser
.uverse.addressValue
<gnolang.StringValue>
issuers
map[string]bool// "\<ledger>:\<realm address>"
- OID
- 0375b0…2098:11
issuers details
versions
[]v1.Params- OID
- 0375b0…2098:113
versions details
allowed
map[string]bool- OID
- 0375b0…2098:14
allowed details
paused
map[string]bool- OID
- 0375b0…2098:16
paused details
verified
map[string]bool- OID
- 0375b0…2098:18
verified details
reserved
map[string]bool- OID
- 0375b0…2098:20
reserved details
owedCeilings
map[string]int64// absent: no ceiling
- OID
- 0375b0…2098:22
owedCeilings details
init.27
func()- OID
- 0375b0…2098:23
init.27 details
caller
func() .uverse.address- OID
- 0375b0…2098:25
caller details
requireAdmin
func()- OID
- 0375b0…2098:26
requireAdmin details
unspendableRealm
func(who .uverse.address) bool- OID
- 0375b0…2098:27
unspendableRealm details
IsUnspendable
func(who .uverse.address) boolIsUnspendable reports whether a fee or a royalty paid to who could never be paid out again: who is one of the realms listed above, which have no function for that, or it is not an address as the chain writes one, so no caller can ever present it. It is a check for such receivers only, not for the recipient of a transfer: the sales realm is on the list and rightly holds and moves ledger balances of its own.
- OID
- 0375b0…2098:28
IsUnspendable details
validLane
func(lane string) bool- OID
- 0375b0…2098:29
validLane details
versionString
func() string- OID
- 0375b0…2098:30
versionString details
validAssetID
func(id string) bool- OID
- 0375b0…2098:31
validAssetID details
ProposeAdmin
func(next .uverse.address)ProposeAdmin stages a handoff to a user account or a realm. Nothing changes until that exact address accepts, so a target that cannot call is harmless.
- OID
- 0375b0…2098:32
ProposeAdmin details
CancelAdminProposal
func()- OID
- 0375b0…2098:33
CancelAdminProposal details
AcceptAdmin
func()- OID
- 0375b0…2098:34
AcceptAdmin details
validIssuerPath
func(path string) boolvalidIssuerPath accepts a realm path below the samcrew namespace whose segments are plain lowercase names: nothing that could resolve elsewhere.
- OID
- 0375b0…2098:35
validIssuerPath details
AllowIssuer
func(ledger string, pkgPath string)AllowIssuer lists a realm under gno.land/r/samcrew/ as an issuer for one ledger to read. The list only grows, so a ledger can bind what an issuer created to that issuer for good.
- OID
- 0375b0…2098:36
AllowIssuer details
IsIssuer
func(ledger string, who .uverse.address) bool- OID
- 0375b0…2098:37
IsIssuer details
GetAdmin
func() .uverse.address- OID
- 0375b0…2098:38
GetAdmin details
GetPendingAdmin
func() .uverse.address- OID
- 0375b0…2098:39
GetPendingAdmin details
GetPauser
func() .uverse.address- OID
- 0375b0…2098:40
GetPauser details
copyParams
func(p v1.Params) v1.Params- OID
- 0375b0…2098:41
copyParams details
GetCurrentVersion
func() int64- OID
- 0375b0…2098:42
GetCurrentVersion details
GetVersion
func(version int64) v1.Params- OID
- 0375b0…2098:43
GetVersion details
GetTreasury
func() .uverse.address- OID
- 0375b0…2098:44
GetTreasury details
GetPrimaryFeeBPS
func() int64- OID
- 0375b0…2098:45
GetPrimaryFeeBPS details
GetNFTPrimaryFeeBPS
func() int64- OID
- 0375b0…2098:46
GetNFTPrimaryFeeBPS details
GetNFTSecondaryFeeBPS
func() int64- OID
- 0375b0…2098:47
GetNFTSecondaryFeeBPS details
GetTokenTerms
func(key string) stringGetTokenTerms is "\<direct creation fee>,\<fair-sale creation fee>,\<raise cap>" in a currency.
- OID
- 0375b0…2098:48
GetTokenTerms details
GetCollectionFee
func(key string) int64- OID
- 0375b0…2098:49
GetCollectionFee details
AssertExpectedVersion
func(expected int64)- OID
- 0375b0…2098:50
AssertExpectedVersion details
validateParams
func(p v1.Params)- OID
- 0375b0…2098:51
validateParams details
latest
func() v1.Params- OID
- 0375b0…2098:52
latest details
appendVersion
func(next v1.Params, change string) int64- OID
- 0375b0…2098:53
appendVersion details
findCurrency
func(p v1.Params, key string) (v1.CurrencyParams, bool)- OID
- 0375b0…2098:54
findCurrency details
currencyTerms
func(p *v1.Params, key string) intcurrencyTerms returns the index of key's terms in p, adding them with every lane closed when the currency is new.
- OID
- 0375b0…2098:55
currencyTerms details
SetTreasury
func(treasury .uverse.address) int64SetTreasury names the receiver of protocol fees. Once named it can be replaced, not removed.
- OID
- 0375b0…2098:56
SetTreasury details
SetPrimaryFeeBPS
func(bps int64) int64- OID
- 0375b0…2098:57
SetPrimaryFeeBPS details
SetNFTPrimaryFeeBPS
func(bps int64) int64- OID
- 0375b0…2098:58
SetNFTPrimaryFeeBPS details
SetNFTSecondaryFeeBPS
func(bps int64) int64- OID
- 0375b0…2098:59
SetNFTSecondaryFeeBPS details
SetTokenTerms
func(key string, directCreationFee int64, fairSaleCreationFee int64, fairSaleRaiseCap int64) int64SetTokenTerms prices token creation in one currency and bounds what a single fair sale may raise in it.
- OID
- 0375b0…2098:60
SetTokenTerms details
SetCollectionFee
func(key string, fee int64) int64- OID
- 0375b0…2098:61
SetCollectionFee details
RemoveCurrency
func(key string) int64RemoveCurrency drops a currency's terms, its allowlist entry and its owed ceiling, so adding terms again later neither reopens it nor brings back an old ceiling by itself.
- OID
- 0375b0…2098:62
RemoveCurrency details
IsLaneReady
func(lane string, currency string) boolIsLaneReady checks only immutable terms. The immediate allowlist is checked at action time so delisting cannot prevent an old launch's exits.
- OID
- 0375b0…2098:63
IsLaneReady details
Pause
func(lane string)Pause closes a lane to new launches and contributions. Claims, refunds and settlements never read the gate, so nothing here can hold funds back.
- OID
- 0375b0…2098:64
Pause details
Unpause
func(lane string, currency string)Unpause opens a lane. It needs a pauser in place and one listed currency whose terms for the lane are complete.
- OID
- 0375b0…2098:65
Unpause details
IsPaused
func(lane string) bool- OID
- 0375b0…2098:66
IsPaused details
AssertLaneOpen
func(lane string, currency string)AssertLaneOpen gates a new inflow: the lane is open and the currency is listed with complete terms. A caller that charges the terms in force reads them in the same transaction, as the NFT realms do; one that charges at the version its user signed for checks that version with AssertNewAction, as token creations and fair-sale launches do. The token lanes' exits use the terms recorded at launch and pass no gate.
- OID
- 0375b0…2098:67
AssertLaneOpen details
AssertNewAction
func(lane string, currency string, expectedVersion int64)AssertNewAction also pins the version whose prices the caller signed for.
- OID
- 0375b0…2098:68
AssertNewAction details
SetPauser
func(next .uverse.address)SetPauser names the one address, besides the admin, that may close lanes.
- OID
- 0375b0…2098:69
SetPauser details
SetCurrencyAllowed
func(key string, value bool)- OID
- 0375b0…2098:70
SetCurrencyAllowed details
IsCurrencyAllowed
func(key string) bool- OID
- 0375b0…2098:71
IsCurrencyAllowed details
SetSalesOwedCeiling
func(key string, ceiling int64)SetSalesOwedCeiling bounds what the sales realm may owe in one currency, its fees, escrow, refunds and proceeds together, for a fair-sale contribution to be accepted. Nothing else reads it: settlements, claims, releases and sweeps go through at any ceiling, and a ceiling below what is already owed only stops new contributions. Unlike a pause, it lets running sales take orders while there is room. MaxInt64, the default, is no ceiling. It is not a term a launch signs for, so it adds no version.
- OID
- 0375b0…2098:72
SetSalesOwedCeiling details
GetSalesOwedCeiling
func(key string) int64- OID
- 0375b0…2098:73
GetSalesOwedCeiling details
SetVerified
func(assetID string, value bool)- OID
- 0375b0…2098:74
SetVerified details
IsVerified
func(assetID string) bool- OID
- 0375b0…2098:75
IsVerified details
SetReserved
func(ticker string, value bool)- OID
- 0375b0…2098:76
SetReserved details
IsReserved
func(ticker string) bool- OID
- 0375b0…2098:77
IsReserved details
ActionStatusJSON
func(lane string, currency string) stringActionStatusJSON reports only the current config gate for a new action. Other realm, custody and publication requirements are separate.
- OID
- 0375b0…2098:78