mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-05 13:58:23 +00:00
14 lines
540 B
Go
14 lines
540 B
Go
|
package royalty
|
||
|
|
||
|
import (
|
||
|
"github.com/nspcc-dev/neo-go/pkg/interop"
|
||
|
"github.com/nspcc-dev/neo-go/pkg/interop/native/std"
|
||
|
"github.com/nspcc-dev/neo-go/pkg/interop/runtime"
|
||
|
)
|
||
|
|
||
|
// RoyaltiesTransferred notifies about royalty payment. This method is called by marketplace
|
||
|
// contract when royalties are transferred.
|
||
|
func RoyaltiesTransferred(royaltyToken, royaltyRecipient, buyer interop.Hash160, tokenId []byte, amount int) {
|
||
|
runtime.Notify("RoyaltiesTransferred", royaltyToken, royaltyRecipient, buyer, std.Deserialize(tokenId), amount)
|
||
|
}
|