[#447] invoke: Add alphabet update method
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
999ad5e1c0
commit
34f25adc8c
1 changed files with 12 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
package invoke
|
package invoke
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"github.com/nspcc-dev/neo-go/pkg/crypto/keys"
|
||||||
"github.com/nspcc-dev/neo-go/pkg/util"
|
"github.com/nspcc-dev/neo-go/pkg/util"
|
||||||
"github.com/nspcc-dev/neofs-node/pkg/morph/client"
|
"github.com/nspcc-dev/neofs-node/pkg/morph/client"
|
||||||
)
|
)
|
||||||
|
@ -25,7 +26,8 @@ const (
|
||||||
// execution stage. Otherwise invocation will fail due to gas limit.
|
// execution stage. Otherwise invocation will fail due to gas limit.
|
||||||
extraFee = 2_0000_0000 // 2.0 Fixed8 gas
|
extraFee = 2_0000_0000 // 2.0 Fixed8 gas
|
||||||
|
|
||||||
chequeMethod = "cheque"
|
chequeMethod = "cheque"
|
||||||
|
alphabetUpdateMethod = "alphabetUpdate"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CashOutCheque invokes Cheque method.
|
// CashOutCheque invokes Cheque method.
|
||||||
|
@ -41,3 +43,12 @@ func CashOutCheque(cli *client.Client, con util.Uint160, p *ChequeParams) error
|
||||||
p.LockAccount.BytesBE(),
|
p.LockAccount.BytesBE(),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// AlphabetUpdate invokes alphabetUpdate method.
|
||||||
|
func AlphabetUpdate(cli *client.Client, con util.Uint160, id []byte, list keys.PublicKeys) error {
|
||||||
|
if cli == nil {
|
||||||
|
return client.ErrNilClient
|
||||||
|
}
|
||||||
|
|
||||||
|
return cli.Invoke(con, extraFee, alphabetUpdateMethod, id, list)
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue