v1 source pure
Package currency moves launchpad payments in native ugnot or any GRC20 token.
Package currency moves launchpad payments in native ugnot or any GRC20 token.
Every function takes the calling realm's own cur as rlm, so funds always move to or from that realm and never from a realm the caller can name.
1
3
func AssertNoCoins
AssertNoCoins refuses coins attached by a user who calls the realm directly: they would land in the realm, which keeps no account of them. Coins attached to a call that reaches the realm through another realm went to that other realm and are its business. The pinned chain also fails a call whose coins no code reads; this check does not depend on that.
func PayNative
PayNative sends amount ugnot from the calling realm.
func PayToken
PayToken sends amount of tok from the calling realm's own balance.
5
- chain stdlib
- chain/banker stdlib
- chain/runtime/unsafe stdlib
- gno.land/p/nt/grc20/v0 package
- gno.land/p/samcrew/launchpad/meta/v1 package