Transaction
A8B64166545C55…CBE27D82AED4
Block 26,337 · index 0 · indexed
Summary
- Hash
- A8B64166545C55743995056820734F876AE55E2D6062958C5C62CBE27D82AED4
- Block
- 26,337
- Size
- 1873 bytes
- Gas used
- 6,667,551 / 8,001,121
- Fee
- 1000000ugnot
- Memo
- gnopublish
- Status
- success
Messages
Arguments · 9
- #1grc20
- #2README.md
- #3# `gno.land/r/moul/demo/grc20/v0` _TODO: describe this package._ <!-- BEGIN GNOCONTRACTS FOOTER (generated by `make readmes`; do not edit below) --> --- Part of **[moul/gno-contracts](https://github.com/moul/gno-contracts)** — moul's versioned gno.land contracts. See the repository for the full catalog, build/test tooling, and usage. **Dependency graph:**  > ⚠️ **Disclaimer:** provided as-is, without warranty; not security-audited. Full disclaimer: [DISCLAIMER](https://github.com/moul/gno-contracts/blob/main/DISCLAIMER.md). <!-- END GNOCONTRACTS FOOTER -->
- #4contract.gno
- #5package grc20 import ( "chain/runtime/unsafe" tokens "gno.land/p/nt/grc20/v0" ) // test1 receives the initial mint at construction. var test1 = address("g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5") // Token is exported. Other contracts can read it (balances, metadata). // privateLedger stays unexported: it grants unrestricted mint/burn/transfer. var ( Token *tokens.Token privateLedger *tokens.PrivateLedger ) func init(cur realm) { // generate the token and mint some tokens to test1. Token, privateLedger = tokens.NewToken("Foo Token", "FOO", 4, 0, cur) privateLedger.Mint(test1, 100000000) } func MyBalance() int64 { return Token.BalanceOf(unsafe.OriginCaller()) }
- #6gnomod.toml
- #7module = "gno.land/r/moul/demo/grc20/v0" gno = "0.9"
- #8/gno.MemPackageType
- #9 MPUserProd
Result log
msg:0,success:true,log:,events:[]