forked from TrueCloudLab/frostfs-node
[#86] Add alphabet contract processor
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
4308a6f522
commit
f1f20b49db
5 changed files with 151 additions and 0 deletions
20
pkg/innerring/invoke/alphabet.go
Normal file
20
pkg/innerring/invoke/alphabet.go
Normal file
|
@ -0,0 +1,20 @@
|
|||
package invoke
|
||||
|
||||
import (
|
||||
"github.com/nspcc-dev/neo-go/pkg/util"
|
||||
"github.com/nspcc-dev/neofs-node/pkg/morph/client"
|
||||
)
|
||||
|
||||
const (
|
||||
emitMethod = "emit"
|
||||
)
|
||||
|
||||
// AlphabetEmit invokes emit method on alphabet contract.
|
||||
func AlphabetEmit(cli *client.Client, con util.Uint160) error {
|
||||
if cli == nil {
|
||||
return client.ErrNilClient
|
||||
}
|
||||
|
||||
// there is no signature collecting, so we don't need extra fee
|
||||
return cli.Invoke(con, 0, emitMethod)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue