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

v0 state

Back to all declarations

SetTokenKeys

func(keys []string)

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

Open
OID
0f428e…7711:8
SetTokenKeys details

Inspect func

Send

func(payment v0.Payment)

Send sends a payment using the treasury instance.

Open
OID
0f428e…7711: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
0f428e…7711:10
History details

Inspect func

Balances

func(bankerID string) []v0.Balance

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

Open
OID
0f428e…7711:11
Balances details

Inspect func

Address

func(bankerID string) string

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

Open
OID
0f428e…7711:12
Address details

Inspect func

HasBanker

func(bankerID string) bool

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

Open
OID
0f428e…7711:13
HasBanker details

Inspect func

ListBankerIDs

func() []string

ListBankerIDs returns a list of all registered banker IDs.

Open
OID
0f428e…7711: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