pool_register.gno

Used for interacting with tokens without manual imports.

RegisterGRC20Interface

func RegisterGRC20Interface(pkgPath string, igrc20 GRC20Interface)

Registers a GRC20 token to the registry.

Parameters

NameTypeDescription

pkgPath

string

The path of the GRC20 to register.

igrc20

GRC20Interface

The interface of the GRC20 token. Includes the functions that the interface will call, including Transfer, TransferFrom, Approve, BalanceOf.

UnregisterGRC20Interface

func UnregisterGRC20Interface(pkgPath string)

Unregisters a GRC20 token to the registry.

Parameters

NameTypeDescription

pkgPath

string

The path of the GRC20 token to unregister.

Last updated