14 lines
579 B
Go
Executable File
14 lines
579 B
Go
Executable File
package royalty
|
|
|
|
import (
|
|
"git.marketally.com/tutus-one/tutus-chain/pkg/interop"
|
|
"git.marketally.com/tutus-one/tutus-chain/pkg/interop/native/std"
|
|
"git.marketally.com/tutus-one/tutus-chain/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)
|
|
}
|