tx · 9mFtNVb4PDuJ9Brm1sbKkuocvy4ZQ9pNc8vzzZzFMCXC

3MsX9C2MzzxE4ySF5aYcJoaiPfkyxZMg4cW:  -0.01400000 Waves

2021.12.20 07:51 [1842127] smart account 3MsX9C2MzzxE4ySF5aYcJoaiPfkyxZMg4cW > SELF 0.00000000 Waves

{ "type": 13, "id": "9mFtNVb4PDuJ9Brm1sbKkuocvy4ZQ9pNc8vzzZzFMCXC", "fee": 1400000, "feeAssetId": null, "timestamp": 1639975901756, "version": 2, "chainId": 84, "sender": "3MsX9C2MzzxE4ySF5aYcJoaiPfkyxZMg4cW", "senderPublicKey": "AXbaBkJNocyrVpwqTzD4TpUY8fQ6eeRto9k1m2bNCzXV", "proofs": [ "2nB23uEHtbHeKSRD247uBQTCECajXaJhyH6SjA8qXhbUMJs33gdZYHPDpaR1PHg6dt5r4m3rnc2jXqBTZegreBH8" ], "script": "base64:AAIFAAAAAAAAAMkIAhIECgIICBoJCgFhEgRDT0xTGgkKAWISBFJPV1MaCgoBYxIFcHJvb2YaDgoBZBIJbmZ0RG9tYWluGhIKAWUSDWNvb3Jkc1RvSW5kZXgaBgoBZhIBeBoGCgFnEgF5GgYKAWgSAWkaDgoBaRIJYXNzZXROYW1lGg0KAWoSCGFzc2V0VXJsGgoKAWsSBWFzc2V0GgwKAWwSB2Fzc2V0SWQaEgoBbRINZGF0YUtleVByZWZpeBoHCgFuEgJ0eBoLCgFvEgZ2ZXJpZnkAAAAFAAAAAAFhAAAAAAAAAAPoAAAAAAFiAAAAAAAAAAPoAAAAAAFjAgAAAFg0UHlaUUNRWmt6dXdDZE5BdFo3WGVFZ3F6NHM0dkJ0cjdVU0pLV2RleldYQ0JxOUFuVVNiZVVvQjJqY0hHZTZnUmVHRVRkSll6OUhTZ0FrcmRSTk5pOWV2AAAAAAFkAgAAABpodHRwczovL25mdC5yZWJlbHBpeGVsLmNhLwEAAAABZQAAAAIAAAABZgAAAAFnCQAAZAAAAAIJAABoAAAAAgUAAAABZgUAAAABYQUAAAABZwAAAAEAAAABaAEAAAAIcHVyY2hhc2UAAAACAAAAAWYAAAABZwQAAAABaQkAASwAAAACCQABLAAAAAIFAAAAAWYCAAAAASwFAAAAAWcEAAAAAWoJAAEsAAAAAgkAASwAAAACBQAAAAFkCQACWgAAAAEIBQAAAAFoAAAADXRyYW5zYWN0aW9uSWQCAAAABC5wbmcEAAAAAWsJAARCAAAABQUAAAABaQUAAAABagAAAAAAAAAAAQAAAAAAAAAAAAcEAAAAAWwJAAQ4AAAAAQUAAAABawQAAAABbQkAAloAAAABBQAAAAFsCQAETAAAAAIFAAAAAWsJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACBQAAAAFtAgAAAAVfbmFtZQUAAAABaQkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAIFAAAAAW0CAAAABl9hc3NldAUAAAABagkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaAAAAAZjYWxsZXIAAAAAAAAAAAEFAAAAAWwFAAAAA25pbAAAAAEAAAABbgEAAAABbwAAAAAJAAH0AAAAAwgFAAAAAW4AAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAFuAAAABnByb29mcwAAAAAAAAAAAAgFAAAAAW4AAAAPc2VuZGVyUHVibGljS2V590Jwbw==", "height": 1842127, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2aL5jukFDb6D4dkTSUY5BPKTpNDQLqRb5ybxMUSfN8fi Next: Bg5kkAzXLD92iH16efdVh98Dg7LLCKqbVHovbqY4Uqjq Diff:
OldNewDifferences
1414
1515 @Callable(i)
1616 func purchase (x,y) = {
17- let assetName = "Nft test token"
18- let assetUrl = makeString([nftDomain, "something", ".png"], "")
17+ let assetName = ((x + ",") + y)
18+ let assetUrl = ((nftDomain + toBase64String(i.transactionId)) + ".png")
1919 let asset = Issue(assetName, assetUrl, 1, 0, false)
2020 let assetId = calculateAssetId(asset)
2121 let dataKeyPrefix = toBase64String(assetId)
22-[asset, StringEntry((dataKeyPrefix + "_name"), assetName), StringEntry((dataKeyPrefix + "_asset"), assetUrl), BinaryEntry("id", assetId)]
22+[asset, StringEntry((dataKeyPrefix + "_name"), assetName), StringEntry((dataKeyPrefix + "_asset"), assetUrl), ScriptTransfer(i.caller, 1, assetId)]
2323 }
2424
2525
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let COLS = 1000
55
66 let ROWS = 1000
77
88 let proof = "4PyZQCQZkzuwCdNAtZ7XeEgqz4s4vBtr7USJKWdezWXCBq9AnUSbeUoB2jcHGe6gReGETdJYz9HSgAkrdRNNi9ev"
99
1010 let nftDomain = "https://nft.rebelpixel.ca/"
1111
1212 func coordsToIndex (x,y) = ((x * COLS) + y)
1313
1414
1515 @Callable(i)
1616 func purchase (x,y) = {
17- let assetName = "Nft test token"
18- let assetUrl = makeString([nftDomain, "something", ".png"], "")
17+ let assetName = ((x + ",") + y)
18+ let assetUrl = ((nftDomain + toBase64String(i.transactionId)) + ".png")
1919 let asset = Issue(assetName, assetUrl, 1, 0, false)
2020 let assetId = calculateAssetId(asset)
2121 let dataKeyPrefix = toBase64String(assetId)
22-[asset, StringEntry((dataKeyPrefix + "_name"), assetName), StringEntry((dataKeyPrefix + "_asset"), assetUrl), BinaryEntry("id", assetId)]
22+[asset, StringEntry((dataKeyPrefix + "_name"), assetName), StringEntry((dataKeyPrefix + "_asset"), assetUrl), ScriptTransfer(i.caller, 1, assetId)]
2323 }
2424
2525
2626 @Verifier(tx)
2727 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
2828

github/deemru/w8io/026f985 
17.83 ms