tx · F4qr6mi4fT4LsQjPsogUX4FoYobARwT8iT2WQ1eLQiqe

3MsX9C2MzzxE4ySF5aYcJoaiPfkyxZMg4cW:  -0.04000000 Waves

2021.12.27 21:38 [1853028] smart account 3MsX9C2MzzxE4ySF5aYcJoaiPfkyxZMg4cW > SELF 0.00000000 Waves

{ "type": 13, "id": "F4qr6mi4fT4LsQjPsogUX4FoYobARwT8iT2WQ1eLQiqe", "fee": 4000000, "feeAssetId": null, "timestamp": 1640630380399, "version": 2, "chainId": 84, "sender": "3MsX9C2MzzxE4ySF5aYcJoaiPfkyxZMg4cW", "senderPublicKey": "AXbaBkJNocyrVpwqTzD4TpUY8fQ6eeRto9k1m2bNCzXV", "proofs": [ "4mD7r2bmXH14mcC4q8y88npuNbRAu4emQE2JDR1VQ7rf5LHsE4oz2mjPq3gj7JuatrUdbMRDSw6usaLDitWGEdvS" ], "script": "base64:AAIFAAAAAAAAANMIAhIECgIICBoJCgFhEgRDT0xTGgkKAWISBFJPV1MaCgoBYxIFcHJvb2YaDgoBZBIJbmZ0RG9tYWluGhIKAWUSDWNvb3Jkc1RvSW5kZXgaBgoBZhIBeBoGCgFnEgF5GgYKAWgSAWkaDgoBaRIJYXNzZXROYW1lGg0KAWoSCGFzc2V0VXJsGgoKAWsSBWFzc2V0GgwKAWwSB2Fzc2V0SWQaCAoBbRIDZ2VuGhIKAW4SDWRhdGFLZXlQcmVmaXgaBwoBbxICdHgaCwoBcBIGdmVyaWZ5AAAABQAAAAABYQAAAAAAAAAEAAAAAAABYgAAAAAAAAAEAAAAAAABYwIAAABYNFB5WlFDUVprenV3Q2ROQXRaN1hlRWdxejRzNHZCdHI3VVNKS1dkZXpXWENCcTlBblVTYmVVb0IyamNIR2U2Z1JlR0VUZEpZejlIU2dBa3JkUk5OaTlldgAAAAABZAIAAAAYaHR0cHM6Ly9uZnQuZ3JpZGdhbmcuY2EvAQAAAAFlAAAAAgAAAAFmAAAAAWcJAABkAAAAAgkAAGgAAAACBQAAAAFmBQAAAAFhBQAAAAFnAAAAAQAAAAFoAQAAAAhwdXJjaGFzZQAAAAIAAAABZgAAAAFnBAAAAAFpCQABLAAAAAIJAAEsAAAAAgUAAAABZgIAAAACLCAFAAAAAWcEAAAAAWoJAAEsAAAAAgkAASwAAAACBQAAAAFkCQACWAAAAAEIBQAAAAFoAAAADXRyYW5zYWN0aW9uSWQCAAAABC5wbmcEAAAAAWsJAARCAAAABQkAASwAAAACBQAAAAFpAgAAAAYgR2VuIDEFAAAAAWoAAAAAAAAAAAEAAAAAAAAAAAAHBAAAAAFsCQAEOAAAAAEFAAAAAWsEAAAAAW0CAAAAAjAxBAAAAAFuCQABLAAAAAIJAAEsAAAAAgUAAAABaQIAAAABLAUAAAABbQkABEwAAAACBQAAAAFrCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAAAW4JAAJYAAAAAQUAAAABbAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAIFAAAAAW4CAAAABl9hc3NldAUAAAABagkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAIFAAAAAW4CAAAABl9vd25lcgkAAlgAAAABCAgFAAAAAWgAAAAGY2FsbGVyAAAABWJ5dGVzCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFoAAAABmNhbGxlcgAAAAAAAAAAAQUAAAABbAUAAAADbmlsAAAAAQAAAAFvAQAAAAFwAAAAAAkAAfQAAAADCAUAAAABbwAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAW8AAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAABbwAAAA9zZW5kZXJQdWJsaWNLZXmISwR5", "height": 1853028, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Btx3qbS1P8AbRBuW7wVP2qv2aajKckjgrS6FLpyJ1CNn Next: DKJFWnG6gGZH7DZMP1HtzLLWat5KG1Y64RV7kNRARc2V Diff:
OldNewDifferences
2020 let assetId = calculateAssetId(asset)
2121 let gen = "01"
2222 let dataKeyPrefix = ((assetName + ",") + gen)
23-[asset, StringEntry(dataKeyPrefix, toBase58String(assetId)), StringEntry((dataKeyPrefix + "_asset"), assetUrl), StringEntry((dataKeyPrefix + "_owner"), toBase58String(i.caller.bytes)), ScriptTransfer(i.caller, 5, assetId)]
23+[asset, StringEntry(dataKeyPrefix, toBase58String(assetId)), StringEntry((dataKeyPrefix + "_asset"), assetUrl), StringEntry((dataKeyPrefix + "_owner"), toBase58String(i.caller.bytes)), ScriptTransfer(i.caller, 1, assetId)]
2424 }
2525
2626
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let COLS = 1024
55
66 let ROWS = 1024
77
88 let proof = "4PyZQCQZkzuwCdNAtZ7XeEgqz4s4vBtr7USJKWdezWXCBq9AnUSbeUoB2jcHGe6gReGETdJYz9HSgAkrdRNNi9ev"
99
1010 let nftDomain = "https://nft.gridgang.ca/"
1111
1212 func coordsToIndex (x,y) = ((x * COLS) + y)
1313
1414
1515 @Callable(i)
1616 func purchase (x,y) = {
1717 let assetName = ((x + ", ") + y)
1818 let assetUrl = ((nftDomain + toBase58String(i.transactionId)) + ".png")
1919 let asset = Issue((assetName + " Gen 1"), assetUrl, 1, 0, false)
2020 let assetId = calculateAssetId(asset)
2121 let gen = "01"
2222 let dataKeyPrefix = ((assetName + ",") + gen)
23-[asset, StringEntry(dataKeyPrefix, toBase58String(assetId)), StringEntry((dataKeyPrefix + "_asset"), assetUrl), StringEntry((dataKeyPrefix + "_owner"), toBase58String(i.caller.bytes)), ScriptTransfer(i.caller, 5, assetId)]
23+[asset, StringEntry(dataKeyPrefix, toBase58String(assetId)), StringEntry((dataKeyPrefix + "_asset"), assetUrl), StringEntry((dataKeyPrefix + "_owner"), toBase58String(i.caller.bytes)), ScriptTransfer(i.caller, 1, assetId)]
2424 }
2525
2626
2727 @Verifier(tx)
2828 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
2929

github/deemru/w8io/026f985 
25.01 ms