-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
7,565 additions
and
7,686 deletions.
There are no files selected for viewing
Binary file not shown.
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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,8 +1,15 @@ | ||
pragma ton-solidity >=0.43.0; | ||
pragma ton-solidity >=0.55.0; | ||
|
||
interface TIP4NftCollection { | ||
function name() public view responsible returns (string); | ||
function totalSupply() public view responsible returns (uint128); | ||
function maxSupply() public view responsible returns (uint128); | ||
function nftCode() public view responsible returns (TvmCell); | ||
} | ||
} | ||
|
||
event nftCreated( | ||
uint256 id, // nft token id | ||
address addrNft, // nft token address | ||
address addrOwner, // nft token owner | ||
address addrCreator // initiator of creating the nft token | ||
); |
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 |
---|---|---|
@@ -1,8 +1,44 @@ | ||
pragma ton-solidity >=0.43.0; | ||
pragma ton-solidity >=0.55.0; | ||
|
||
interface TIP4Nft { | ||
function getNftInfo() external responsible returns(uint128 id, address addrOwner, address addrManager, address addrCollection); | ||
function transferOwnership(address addrTo, address addrSendGasTo, mapping(address => CallbackParams) callbacks); | ||
function setManager(address addrManager, address addrSendGasTo, mapping(address => CallbackParams) callbacks); | ||
function getNftJsonContent() external responsible returns(string json); | ||
} | ||
} | ||
|
||
struct CallbackParams { | ||
uint256 value; // ever value will send to address | ||
TvmCell payload; | ||
} | ||
|
||
interface ITokenTransferCallback { | ||
function tokenTransferCallback( | ||
uint256 id, | ||
address addrOldOwner, | ||
address addrOldManager, | ||
address addrNewOwner, | ||
address addrCollection, | ||
address addrSendGasTo, | ||
TvmCell payload | ||
) external; | ||
} | ||
|
||
interface ISetManagerCallback { | ||
function setManagerCallback( | ||
uint256 id, | ||
address addrOwner, | ||
address addrOldManager, | ||
address addrNewManager, | ||
address addrCollection, | ||
address addrSendGasTo, | ||
TvmCell payload | ||
) external; | ||
} | ||
|
||
event TokenWasMinted(address owner); | ||
event OwnershipTransferred(address oldOwner, address newOwner); | ||
event ManagerChanged(address oldManager, address newManager); | ||
|
||
|
||
|
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,12 @@ | ||
pragma ton-solidity >=0.55.0; | ||
|
||
// Standard Interface Detection Interface (TIP-6.1) | ||
|
||
interface TIP6 { | ||
/// @notice Query if a contract implements an interface | ||
/// @param interfaceID The interface identifier, as specified in TIP6.1 | ||
/// @dev Interface identification is specified in TIP6.1. | ||
/// @return `true` if the contract implements `interfaceID` and | ||
/// `interfaceID` is not 0xffffffff, `false` otherwise | ||
function supportsInterface(bytes4 interfaceID) external view responsible returns (bool); | ||
} |