packBase
untyped bigint// bps is 0..10000
Value
(10001 <untyped> bigint)
collectionOwner
.uverse.addressValue
<gnolang.StringValue>
approvedConsumer
stringValue
"gno.land/r/g17cjym5e9hhws46lt6329pv2gtx2ay0503hgems/gems/stable"
grants
map[string]int64// wallet -> remainingUses\*packBase + bps
- OID
- 07847a…fea3:6
grants details
order
[]string// wallets with a grant, for EntryAt
- OID
- 07847a…fea3:41
order details
pack
func(bps int64, uses int64) int64- OID
- 07847a…fea3:8
pack details
unpack
func(v int64) (bps int64, uses int64)- OID
- 07847a…fea3:10
unpack details
callerAddress
func() .uverse.address- OID
- 07847a…fea3:11
callerAddress details
assertOwner
func()- OID
- 07847a…fea3:12
assertOwner details
SetApprovedConsumer
func(pkgpath string)- OID
- 07847a…fea3:13
SetApprovedConsumer details
validateBps
func(bps int64)- OID
- 07847a…fea3:14
validateBps details
validateMaxUses
func(maxUses int64)- OID
- 07847a…fea3:15
validateMaxUses details
grantOne
func(wallet string, bps int64, maxUses int64)grantOne adds uses to a wallet; a second grant stacks its uses and keeps the better (lower) bps.
- OID
- 07847a…fea3:16
grantOne details
removeOne
func(wallet string)- OID
- 07847a…fea3:17
removeOne details
AddWallet
func(wallet .uverse.address, bps int64, maxUses int64)- OID
- 07847a…fea3:18
AddWallet details
AddWalletsBatch
func(walletsCSV string, bps int64, maxUses int64)- OID
- 07847a…fea3:19
AddWalletsBatch details
RemoveWallet
func(wallet .uverse.address)- OID
- 07847a…fea3:20
RemoveWallet details
RemoveWalletsBatch
func(walletsCSV string)- OID
- 07847a…fea3:21
RemoveWalletsBatch details
assertCallerIsApprovedConsumer
func()- OID
- 07847a…fea3:22
assertCallerIsApprovedConsumer details
Peek
func(wallet .uverse.address) (bps int64, remainingUses int64, ok bool)- OID
- 07847a…fea3:23
Peek details
ConsumeDiscount
func(wallet .uverse.address) (bps int64, ok bool)- OID
- 07847a…fea3:24
ConsumeDiscount details
Count
func() int64- OID
- 07847a…fea3:25
Count details
EntryAt
func(index int) (wallet string, bps int64, remainingUses int64)- OID
- 07847a…fea3:26
EntryAt details
packBase
:
untyped bigint
=(10001 <untyped> bigint)
collectionOwner
:
.uverse.address
=<gnolang.StringValue>
approvedConsumer
:
string
="gno.land/r/g17cjym5e9hhws46lt6329pv2gtx2ay0503hgems/gems/stable"