SC CODE: Function InitializePrivate(collection String, metadataFormat String, metadata String) Uint64
1 IF EXISTS("minter") == 1 THEN GOTO 11
2 STORE("minter", SIGNER())
3 STORE("type", "G45-NFT")
4 STORE("owner", "")
5 STORE("timestamp", BLOCK_TIMESTAMP())
6 SEND_ASSET_TO_ADDRESS(SIGNER(), 1, SCID())
7 STORE("collection", collection)
8 STORE("metadataFormat", metadataFormat)
9 STORE("metadata", metadata)
10 RETURN 0
11 RETURN 1
End Function
Function DisplayNFT() Uint64
1 IF ADDRESS_STRING(SIGNER()) == "" THEN GOTO 5
2 IF ASSETVALUE(SCID()) != 1 THEN GOTO 5
3 STORE("owner", ADDRESS_STRING(SIGNER()))
4 RETURN 0
5 RETURN 1
End Function
Function RetrieveNFT() Uint64
1 IF LOAD("owner") != ADDRESS_STRING(SIGNER()) THEN GOTO 5
2 SEND_ASSET_TO_ADDRESS(SIGNER(), 1, SCID())
3 STORE("owner", "")
4 RETURN 0
5 RETURN 1
End Function |
SC Arguments: [Name:SC_ACTION Type:uint64 Value:'1' Name:SC_CODE Type:string Value:'Function InitializePrivate(collection String, metadataFormat String, metadata String) Uint64
1 IF EXISTS("minter") == 1 THEN GOTO 11
2 STORE("minter", SIGNER())
3 STORE("type", "G45-NFT")
4 STORE("owner", "")
5 STORE("timestamp", BLOCK_TIMESTAMP())
6 SEND_ASSET_TO_ADDRESS(SIGNER(), 1, SCID())
7 STORE("collection", collection)
8 STORE("metadataFormat", metadataFormat)
9 STORE("metadata", metadata)
10 RETURN 0
11 RETURN 1
End Function
Function DisplayNFT() Uint64
1 IF ADDRESS_STRING(SIGNER()) == "" THEN GOTO 5
2 IF ASSETVALUE(SCID()) != 1 THEN GOTO 5
3 STORE("owner", ADDRESS_STRING(SIGNER()))
4 RETURN 0
5 RETURN 1
End Function
Function RetrieveNFT() Uint64
1 IF LOAD("owner") != ADDRESS_STRING(SIGNER()) THEN GOTO 5
2 SEND_ASSET_TO_ADDRESS(SIGNER(), 1, SCID())
3 STORE("owner", "")
4 RETURN 0
5 RETURN 1
End Function' Name:collection Type:string Value:'ec90b4365fff397d2cd3d6b023f37f6c4397d78d34f17617febf4ec8a7e920de' Name:metadata Type:string Value:'{"attributes":{"Alchemical Potency":"6","Arcanum":"The Major Arcana","Card Number":"XIII","Rarity":"Mythic Rare","Suit":"NONE"},"description":"Originally called “The Card With No Name”. In this rendition, you see a horse beast flying through the night, representing a Nightmare, or a mare running in the night. We don’t know why this mare is running. Did a gust of wind scare it, or was it due to its own other worldly connections? This card represents the first initiation on The Fool’s Journey, and that is one of The Unknown—the deep subconscious, the unspoken, that which we cannot see. Alluding to the feminine aspects with both symbolism of the Moon and the number 13, we could assume this horse is, in fact, a mare. This initiation allows us to feel an “external” force working against us. After many cards of accessing our divine spiritual power, we are now ready to be initiated deeper into our power by an unknown force majeure. Don’t shy away from such an experience and shut down the light of your consciousness. Explore, learn and become curious once again! You are being offered a new beginning and it will serve you to tap into beginner’s mind.","id":13,"image":"ipfs://QmUpviStavtUogjzVZEB66BNYycuyrw2ZWKMptQB12emhR/","name":"The Unspoken"}' Name:metadataFormat Type:string Value:'json'] |