From 46f4739fbd6879f083d0c50e67d46c323e791dda Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 1 Mar 2022 13:29:39 +0300 Subject: [PATCH] Playground around Tip4.1 NFT --- true-nft/components/tip4.1/Collection.sol | 8 ++++++++ true-nft/components/tip4.1/NFT.sol | 8 ++++++++ true-nft/components/tip4.1/readme.md | 3 +++ 3 files changed, 19 insertions(+) create mode 100644 true-nft/components/tip4.1/Collection.sol create mode 100644 true-nft/components/tip4.1/NFT.sol create mode 100644 true-nft/components/tip4.1/readme.md diff --git a/true-nft/components/tip4.1/Collection.sol b/true-nft/components/tip4.1/Collection.sol new file mode 100644 index 0000000..eee3948 --- /dev/null +++ b/true-nft/components/tip4.1/Collection.sol @@ -0,0 +1,8 @@ +pragma ton-solidity >=0.43.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); +} \ No newline at end of file diff --git a/true-nft/components/tip4.1/NFT.sol b/true-nft/components/tip4.1/NFT.sol new file mode 100644 index 0000000..1b6e0a0 --- /dev/null +++ b/true-nft/components/tip4.1/NFT.sol @@ -0,0 +1,8 @@ +pragma ton-solidity >=0.43.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); +} \ No newline at end of file diff --git a/true-nft/components/tip4.1/readme.md b/true-nft/components/tip4.1/readme.md new file mode 100644 index 0000000..4efa930 --- /dev/null +++ b/true-nft/components/tip4.1/readme.md @@ -0,0 +1,3 @@ +# Template + +https://github.com/itgoldio/docs/blob/main/src/Standard/TIP-4/1.md \ No newline at end of file