2020-09-08 08:38:23 +00:00
|
|
|
package neofs
|
|
|
|
|
|
|
|
import (
|
2020-10-26 14:46:15 +00:00
|
|
|
"github.com/nspcc-dev/neo-go/pkg/vm/stackitem"
|
2020-09-08 08:38:23 +00:00
|
|
|
"github.com/nspcc-dev/neofs-node/pkg/morph/event"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Unbind struct {
|
2021-05-31 18:09:02 +00:00
|
|
|
bindCommon
|
2020-09-08 08:38:23 +00:00
|
|
|
}
|
|
|
|
|
2020-10-26 14:46:15 +00:00
|
|
|
func ParseUnbind(params []stackitem.Item) (event.Event, error) {
|
2020-09-08 08:38:23 +00:00
|
|
|
var (
|
|
|
|
ev Unbind
|
|
|
|
err error
|
|
|
|
)
|
|
|
|
|
2021-05-31 18:09:02 +00:00
|
|
|
err = parseBind(&ev.bindCommon, params)
|
2020-09-08 08:38:23 +00:00
|
|
|
if err != nil {
|
2021-05-31 18:09:02 +00:00
|
|
|
return nil, err
|
2020-09-08 08:38:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return ev, nil
|
|
|
|
}
|