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

treasury state

Back to all declarations

SetTokenKeys

func(keys []string)

SetTokenKeys sets the GRC20 token registry keys that the treasury will use.

Open
OID
04d2cd…e4ae:8
SetTokenKeys details

Inspect func

Send

func(payment v0.Payment)

Send sends a payment using the treasury instance.

Open
OID
04d2cd…e4ae:9
Send details

Inspect func

History

func(bankerID string, pageNumber int, pageSize int) []v0.Payment

History returns the payment history sent by the banker with the given ID. Payments are paginated, with the most recent payments first.

Open
OID
04d2cd…e4ae:10
History details

Inspect func

Balances

func(bankerID string) []v0.Balance

Balances returns the balances of the banker with the given ID.

Open
OID
04d2cd…e4ae:11
Balances details

Inspect func

Address

func(bankerID string) string

Address returns the address of the banker with the given ID.

Open
OID
04d2cd…e4ae:12
Address details

Inspect func

HasBanker

func(bankerID string) bool

HasBanker checks if a banker with the given ID is registered.

Open
OID
04d2cd…e4ae:13
HasBanker details

Inspect func

ListBankerIDs

func() []string

ListBankerIDs returns a list of all registered banker IDs.

Open
OID
04d2cd…e4ae:14
ListBankerIDs details

Inspect func
treasury : *v0.Treasury Inspect
tokenKeys : []string
init.2 : func() Inspect
SetTokenKeys : func(keys []string) Inspect
Send : func(payment v0.Payment) Inspect
History : func(bankerID string, pageNumber int, pageSize int) []v0.Payment Inspect
Balances : func(bankerID string) []v0.Balance Inspect
Address : func(bankerID string) string Inspect
HasBanker : func(bankerID string) bool Inspect
ListBankerIDs : func() []string Inspect
Render : func(path string) string Inspect