PathrockNetwork Gno Explorer
HomeBlocksTransactionsTokensRealmsPackagesValidatorsAnalytics

PathrockNetwork Gno Explorer — an independent explorer for Gno.land Mainnet (gnoland-1), operated by PathrockNetwork. Not an official Gno.land service.

gnowebarchive RPC

gno.land/r/akkadia/beta/abt

Realm
Open in gnoweb ↗

Overview

Kind
Realm (renderable)
Name
abt
Namespace
akkadia / beta
Files
10 (gnomod.toml)
Exported functions
13
Module
gno.land/r/akkadia/beta/abt
gno
0.9
This realm implements a recognized token.abt →

Files (10)

  • gnomod.tomltoml
  • abt.gnogno
  • render.gnogno
  • abt_test.gnogno
  • events_filetest.gnogno
  • external_test.gnogno
  • render_test.gnogno
  • security_test.gnogno
  • setup_test.gnogno
  • transfer_test.gnogno
  • events_filetest.gnogno
    1// PKGPATH: gno.land/r/akkadia/beta/abt_events2package abt_events34import (5	"testing"67	"gno.land/p/nt/testutils/v0"8

    Functions

    • Allowance(owner string, spender string) int64

    • Approve(cur 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}, spender string, amount int64)

    • BalanceOf(owner string) int64

    • GetDecimals() int

    • GetName() string

    • GetSymbol() string

    • IsFrozen() bool

    • Mint(cur 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}, to string, amount int64)

    • Render(path string) string

    • SetFrozen(cur 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 bool)

    • TotalSupply() int64

    • Transfer(cur 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}, to string, amount int64)

    • TransferFrom(cur 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}, from string, to string, amount int64)

    Signatures reconstructed verbatim from vm/qfuncs — interface params keep their inline definitions.

    Rendered

    RenderedRawgnoweb ↗

    vm/qrender output, sanitized (docs/render-security.md) and displayed in an empty-sandbox iframe — scripts, forms and popups cannot run. Links stay inert in-preview; right-click to open.

    "gno.land/r/akkadia/beta/abt"
    9 "gno.land/r/akkadia/beta/admin"
    10)
    11
    12func main(cur realm) {
    13 caller := testutils.TestAddress("abtEventAdmin")
    14 testing.SetOriginCaller(admin.GetAdmin())
    15 testing.SetRealm(testing.NewUserRealm(admin.GetAdmin()))
    16 admin.TransferAdmin(cross(cur), caller)
    17 testing.SetOriginCaller(caller)
    18 testing.SetRealm(testing.NewUserRealm(caller))
    19 admin.AcceptAdmin(cross(cur))
    20 abt.Mint(cross(cur), caller, 10)
    21 abt.SetFrozen(cross(cur), true) // No event for the initial value.
    22 abt.SetFrozen(cross(cur), false)
    23 abt.SetFrozen(cross(cur), false) // No duplicate event.
    24 abt.SetFrozen(cross(cur), true)
    25 println(abt.TotalSupply(), abt.IsFrozen())
    26}
    27
    28// Output:
    29// 10 true
    30
    31// Events:
    32// [
    33// {
    34// "type": "TransferAdmin",
    35// "attrs": [
    36// {
    37// "key": "from",
    38// "value": ""
    39// },
    40// {
    41// "key": "to",
    42// "value": "g1v938g3tkv4h8gstyd45kuh6lta047h6lx2s576"
    43// }
    44// ],
    45// "pkg_path": "gno.land/r/akkadia/beta/admin"
    46// },
    47// {
    48// "type": "AcceptAdmin",
    49// "attrs": [
    50// {
    51// "key": "from",
    52// "value": ""
    53// },
    54// {
    55// "key": "to",
    56// "value": "g1v938g3tkv4h8gstyd45kuh6lta047h6lx2s576"
    57// }
    58// ],
    59// "pkg_path": "gno.land/r/akkadia/beta/admin"
    60// },
    61// {
    62// "type": "Transfer",
    63// "attrs": [
    64// {
    65// "key": "token",
    66// "value": "gno.land/r/akkadia/beta/abt.abt.0000000"
    67// },
    68// {
    69// "key": "from",
    70// "value": ""
    71// },
    72// {
    73// "key": "to",
    74// "value": "g1v938g3tkv4h8gstyd45kuh6lta047h6lx2s576"
    75// },
    76// {
    77// "key": "value",
    78// "value": "10"
    79// }
    80// ],
    81// "pkg_path": "gno.land/p/nt/grc20/v0"
    82// },
    83// {
    84// "type": "FrozenChanged",
    85// "attrs": [
    86// {
    87// "key": "executor",
    88// "value": "g1v938g3tkv4h8gstyd45kuh6lta047h6lx2s576"
    89// },
    90// {
    91// "key": "previous",
    92// "value": "true"
    93// },
    94// {
    95// "key": "frozen",
    96// "value": "false"
    97// }
    98// ],
    99// "pkg_path": "gno.land/r/akkadia/beta/abt"
    100// },
    101// {
    102// "type": "FrozenChanged",
    103// "attrs": [
    104// {
    105// "key": "executor",
    106// "value": "g1v938g3tkv4h8gstyd45kuh6lta047h6lx2s576"
    107// },
    108// {
    109// "key": "previous",
    110// "value": "false"
    111// },
    112// {
    113// "key": "frozen",
    114// "value": "true"
    115// }
    116// ],
    117// "pkg_path": "gno.land/r/akkadia/beta/abt"
    118// }
    119// ]
    120