test20.gno
0.85 Kb · 25 lines
1// Package test20 implements a deliberately insecure ERC20 token for testing purposes.
2// The Test20 token allows anyone to mint any amount of tokens to any address, making
3// it unsuitable for production use. The primary goal of this package is to facilitate
4// testing and experimentation without any security measures or restrictions.
5//
6// WARNING: This token is highly insecure and should not be used in any
7// production environment. It is intended solely for testing and
8// educational purposes.
9package test20
10
11import (
12 "gno.land/p/demo/tokens/grc20"
13 "gno.land/r/demo/defi/grc20reg"
14)
15
16var (
17 Token *grc20.Token
18 PrivateLedger *grc20.PrivateLedger
19)
20
21func init(cur realm) {
22 // test20 only ever creates this one token, so id 0 can't collide.
23 Token, PrivateLedger = grc20.NewToken("Test20", "TST", 4, 0, cur)
24 grc20reg.Register(cross(cur), Token, "")
25}