foo20 package

Overview

foo20 is a GRC20 token contract where all the grc20.Teller methods are proxified with top-level functions. see also gno.land/r/demo/bar20.

Function

Faucet

func Faucet(cur realm)

Faucet is distributing foo20 tokens without restriction (unsafe). For a real token faucet, you should take care of setting limits are asking payment.

Command

gnokey query -remote "https://rpc.gno.land:443" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/demo/defi/foo20" -func "Faucet"  -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "staging" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.gno.land:443" call.tx