This commit is contained in:
aozhiwei 2024-06-23 13:33:53 +08:00
parent 15752e0317
commit b93520dd62
2 changed files with 23 additions and 2 deletions

View File

@ -0,0 +1,19 @@
package spec_transfer721
type hero struct {
}
func (this* hero) onMint(dbIdx int64, netId int32, contractAddress string, tokenId string,
from string, to string) bool {
return true
}
func (this* hero) onLock(dbIdx int64, netId int32, contractAddress string, tokenId string,
from string, to string) bool {
return true
}
func (this *hero) onUnlock(dbIdx int64, netId int32, contractAddress string, tokenId string,
from string, to string) bool {
return true
}

View File

@ -3,6 +3,8 @@ package spec_transfer721
type specTransfer721Handle interface {
onMint(dbIdx int64, netId int32, contractAddress string, tokenId string,
from string, to string) bool
onLock() bool
onUnlock() bool
onLock(dbIdx int64, netId int32, contractAddress string, tokenId string,
from string, to string) bool
onUnlock(dbIdx int64, netId int32, contractAddress string, tokenId string,
from string, to string) bool
}