Realm

gno.land/r/g16m0r7rm7fv5hx0ekr7gvx8g4fr7eu08nzhk6gt/subscription

Render

this realm has no Render() output

Query (read-only)

non-crossing functions · no tx, no wallet needed
GetSubAmountPerPeriod(subID int64) → int64
GetSubBalance(subID int64) → int64
GetSubNextDueHeight(subID int64) → int64
GetSubPayee(subID int64) → string
GetSubPayer(subID int64) → string
IsSubActive(subID int64) → bool

Call functions (state-changing)

signs a tx via Adena
CancelSubscription(subID int64)
CreateSubscription(payee string, amountPerPeriod int64, periodBlocks int64)
TopUp(subID int64)
Withdraw(subID int64)

All exported functions (10)

show raw signatures
NameParamsReturns
CreateSubscription [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}, {"Name": "payee", "Type": "string", "Value": ""}, {"Name": "amountPerPeriod", "Type": "int64", "Value": ""}, {"Name": "periodBlocks", "Type": "int64", "Value": ""}] [{"Name": ".res.0", "Type": "int64", "Value": ""}]
TopUp [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}, {"Name": "subID", "Type": "int64", "Value": ""}]
Withdraw [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}, {"Name": "subID", "Type": "int64", "Value": ""}]
CancelSubscription [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}, {"Name": "subID", "Type": "int64", "Value": ""}]
GetSubPayer [{"Name": "subID", "Type": "int64", "Value": ""}] [{"Name": ".res.0", "Type": "string", "Value": ""}]
GetSubPayee [{"Name": "subID", "Type": "int64", "Value": ""}] [{"Name": ".res.0", "Type": "string", "Value": ""}]
GetSubBalance [{"Name": "subID", "Type": "int64", "Value": ""}] [{"Name": ".res.0", "Type": "int64", "Value": ""}]
GetSubNextDueHeight [{"Name": "subID", "Type": "int64", "Value": ""}] [{"Name": ".res.0", "Type": "int64", "Value": ""}]
GetSubAmountPerPeriod [{"Name": "subID", "Type": "int64", "Value": ""}] [{"Name": ".res.0", "Type": "int64", "Value": ""}]
IsSubActive [{"Name": "subID", "Type": "int64", "Value": ""}] [{"Name": ".res.0", "Type": "bool", "Value": ""}]

Files

Storage

{
  "raw": "storage: 14731, deposit: 1473100"
}