-
Notifications
You must be signed in to change notification settings - Fork 386
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: move the grc721 interface in p/grc/
Signed-off-by: Manfred Touron <[email protected]>
- Loading branch information
Showing
3 changed files
with
54 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package grc721 | ||
|
||
import "std" | ||
|
||
type GRC721 interface { | ||
BalanceOf(owner std.Address) (count int64) | ||
OwnerOf(tid TokenID) std.Address | ||
SafeTransferFrom(from, to std.Address, tid TokenID) | ||
TransferFrom(from, to std.Address, tid TokenID) | ||
Approve(approved std.Address, tid TokenID) | ||
SetApprovalForAll(operator std.Address, approved bool) | ||
GetApproved(tid TokenID) std.Address | ||
IsApprovedForAll(owner, operator std.Address) bool | ||
} | ||
|
||
type TokenID string | ||
|
||
type TransferEvent struct { | ||
From std.Address | ||
To std.Address | ||
TokenID TokenID | ||
} | ||
|
||
type ApprovalEvent struct { | ||
Owner std.Address | ||
Approved std.Address | ||
TokenID TokenID | ||
} | ||
|
||
type ApprovalForAllEvent struct { | ||
Owner std.Address | ||
Operator std.Address | ||
Approved bool | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters