forked from TrueCloudLab/frostfs-node
[#496] pkg/innerring: provide wrappers to processors
The only thing we need hashes for is to process notifications. Balance contract if left for now, as it has some initialization. Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
9b87e6267d
commit
8a2b7f4501
24 changed files with 215 additions and 228 deletions
|
@ -56,3 +56,18 @@ func (c *Client) TransferX(args TransferXArgs) error {
|
|||
|
||||
return nil
|
||||
}
|
||||
|
||||
// Mint invokes `mint` method of the balance contract.
|
||||
func (c *Client) Mint(to []byte, amount int64, id []byte) error {
|
||||
return c.client.Invoke(c.mintMethod, to, amount, id)
|
||||
}
|
||||
|
||||
// Burn invokes `burn` method of the balance contract.
|
||||
func (c *Client) Burn(to []byte, amount int64, id []byte) error {
|
||||
return c.client.Invoke(c.burnMethod, to, amount, id)
|
||||
}
|
||||
|
||||
// Lock invokes `lock` method of the balance contract.
|
||||
func (c *Client) Lock(id, user, lock []byte, amount, dueEpoch int64) error {
|
||||
return c.client.Invoke(c.lockMethod, id, user, lock, amount, dueEpoch)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue