Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

v1 source pure

Package currency moves launchpad payments in native ugnot or any GRC20 token.

Overview

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.

Constants 1

Functions 3

func AssertNoCoins

1func AssertNoCoins(_ int, rlm realm)
source

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

1func PayNative(_ int, rlm realm, to address, amount int64)
source

PayNative sends amount ugnot from the calling realm.

func PayToken

1func PayToken(_ int, rlm realm, tok *grc20.Token, to address, amount int64)
source

PayToken sends amount of tok from the calling realm's own balance.

Imports 5

Source Files 2