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":"3","Arcanum":"The Major Arcana","Card Number":"I","Rarity":"Mythic Rare","Suit":"NONE"},"description":"Originally “Le Bateleur” in the Marseilles deck, this is the first proper lesson and initiation on our journey together. Consider this the base line programming that we get when we drop into this realm as a baby. Every brand-new soul comes in with basic programming that is force-fed either through school or media, the generic collective consciousness that everyone receives by default. This card represents learning and mastering all the mundane third dimensional aspects of existence in the “normal world”. The Fool has learned to navigate the sea of basic human life, and yet something feels amiss. This is the stage in which awakening can take place, the alchemical fires within him stir, he looks out into “reality” to see that not all is as he’s been told. The search for occult Truth begins to take shape within himself as he becomes increasingly jaded with the world view he was given. This is the stage when the seed activates and attempts to burst out of the confines of the it’s husk. The intelligence of the seed knows something grander is out there but cannot quite perceive what it is. The confines of this formerly protective shell while the seed was dormant now feels like a prison to the awakening consciousness craving to expand beyond it. Deep despair grows as the juxtaposition begins to become more extreme. This feeling will soon become a catalyst for growth on his journeys into the dark night of the soul..","id":1,"image":"ipfs://Qmadp9mXqhWKMaicUxZPSTrCQm5WBXojyrMThNTgtxpDvF/","name":"THE MAGICIAN"}' Name:metadataFormat Type:string Value:'json'] |