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":"VII","Rarity":"Mythic Rare","Suit":"NONE"},"description":"After reaching the euphoric heights of The Lovers, we now come back down to Aerthe a bit and begin to manifest action. This card represents victories and boundaries. This could be in the mundane sense of exerting firm boundaries to ensure your success as well as exploring the mystery of where your creative boundaries end and those of The Divine begin. This card has subtle references to card X (The Wheel of Fortune), with both the X in the image and the wheel as we begin to create momentum in our manifestations—the discovery between our impacts on creation and destiny continues. Are we indeed creating everything around us if the Grand Beloved has united with our very essence, or are we simply experiencing Karma, or Destiny? The horse-like entities are a synthesis of both the light (consciousness) and the dark (unconscious) within us, which is used as a catalyst to our goals, propelling us through equal parts unresolved ego and trauma and the taste of Divine Union, Waheguru, that came to us in card 6. Yet, the quest must go on. Can you pinpoint the boundary where you end and Creator’s creation begins? Or are you going to crawl back in your shell, overwhelmed by the illusion of “other” and protect yourself in the dark unconscious and the unformed?","id":7,"image":"ipfs://QmQaKV6Ko8YYcXfXDbo5mf1LLysEwUH8aEksPECT1uhEWZ/","name":"The Chariott"}' Name:metadataFormat Type:string Value:'json'] |