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

campaign state

Back to all declarations

packBase

untyped bigint

// bps is 0..10000

Value

(10001 <untyped> bigint)

collectionOwner

.uverse.address

Value

<gnolang.StringValue>

approvedConsumer

string

Value

"gno.land/r/g17cjym5e9hhws46lt6329pv2gtx2ay0503hgems/gems/stable"

grants

map[string]int64

// wallet -> remainingUses\*packBase + bps

Open
OID
07847a…fea3:6
grants details

Inspect map

pack

func(bps int64, uses int64) int64
Open
OID
07847a…fea3:8
pack details

Inspect func

unpack

func(v int64) (bps int64, uses int64)
Open
OID
07847a…fea3:10
unpack details

Inspect func

callerAddress

func() .uverse.address
Open
OID
07847a…fea3:11
callerAddress details

Inspect func

SetApprovedConsumer

func(pkgpath string)
Open
OID
07847a…fea3:13
SetApprovedConsumer details

Inspect func

validateMaxUses

func(maxUses int64)
Open
OID
07847a…fea3:15
validateMaxUses details

Inspect func

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.

Open
OID
07847a…fea3:16
grantOne details

Inspect func

AddWallet

func(wallet .uverse.address, bps int64, maxUses int64)
Open
OID
07847a…fea3:18
AddWallet details

Inspect func

AddWalletsBatch

func(walletsCSV string, bps int64, maxUses int64)
Open
OID
07847a…fea3:19
AddWalletsBatch details

Inspect func

RemoveWallet

func(wallet .uverse.address)
Open
OID
07847a…fea3:20
RemoveWallet details

Inspect func

RemoveWalletsBatch

func(walletsCSV string)
Open
OID
07847a…fea3:21
RemoveWalletsBatch details

Inspect func

assertCallerIsApprovedConsumer

func()
Open
OID
07847a…fea3:22
assertCallerIsApprovedConsumer details

Inspect func

Peek

func(wallet .uverse.address) (bps int64, remainingUses int64, ok bool)
Open
OID
07847a…fea3:23
Peek details

Inspect func

ConsumeDiscount

func(wallet .uverse.address) (bps int64, ok bool)
Open
OID
07847a…fea3:24
ConsumeDiscount details

Inspect func

EntryAt

func(index int) (wallet string, bps int64, remainingUses int64)
Open
OID
07847a…fea3:26
EntryAt details

Inspect func
packBase : untyped bigint =(10001 <untyped> bigint)
collectionOwner : .uverse.address =<gnolang.StringValue>
approvedConsumer : string ="gno.land/r/g17cjym5e9hhws46lt6329pv2gtx2ay0503hgems/gems/stable"
grants : map[string]int64 Inspect
order : []string (len=277) Inspect
pack : func(bps int64, uses int64) int64 Inspect
unpack : func(v int64) (bps int64, uses int64) Inspect
callerAddress : func() .uverse.address Inspect
assertOwner : func() Inspect
SetApprovedConsumer : func(pkgpath string) Inspect
validateBps : func(bps int64) Inspect
validateMaxUses : func(maxUses int64) Inspect
grantOne : func(wallet string, bps int64, maxUses int64) Inspect
removeOne : func(wallet string) Inspect
AddWallet : func(wallet .uverse.address, bps int64, maxUses int64) Inspect
AddWalletsBatch : func(walletsCSV string, bps int64, maxUses int64) Inspect
RemoveWallet : func(wallet .uverse.address) Inspect
RemoveWalletsBatch : func(walletsCSV string) Inspect
assertCallerIsApprovedConsumer : func() Inspect
Peek : func(wallet .uverse.address) (bps int64, remainingUses int64, ok bool) Inspect
ConsumeDiscount : func(wallet .uverse.address) (bps int64, ok bool) Inspect
Count : func() int64 Inspect
EntryAt : func(index int) (wallet string, bps int64, remainingUses int64) Inspect