tx · 3T4QqXTjYdmhy52Q6GcqsvQV9EuvcqzdXgm5UBBQaC7r
3MsX9C2MzzxE4ySF5aYcJoaiPfkyxZMg4cW: -0.01400000 Waves
2021.12.20 16:47 [1842658] smart account 3MsX9C2MzzxE4ySF5aYcJoaiPfkyxZMg4cW > SELF 0.00000000 Waves
{
"type": 13,
"id": "3T4QqXTjYdmhy52Q6GcqsvQV9EuvcqzdXgm5UBBQaC7r",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1640008105189,
"version": 2,
"chainId": 84,
"sender": "3MsX9C2MzzxE4ySF5aYcJoaiPfkyxZMg4cW",
"senderPublicKey": "AXbaBkJNocyrVpwqTzD4TpUY8fQ6eeRto9k1m2bNCzXV",
"proofs": [
"LAnzLaRZf9fd67MY14ybkp94LKYDUqo99BfLDPxzYayQ6C1KiAjiQJu9ZKTf9tFhcy3xhJGnvHnbsEqH9kVNSYW"
],
"script": "base64:AAIFAAAAAAAAAMkIAhIECgIICBoJCgFhEgRDT0xTGgkKAWISBFJPV1MaCgoBYxIFcHJvb2YaDgoBZBIJbmZ0RG9tYWluGhIKAWUSDWNvb3Jkc1RvSW5kZXgaBgoBZhIBeBoGCgFnEgF5GgYKAWgSAWkaDgoBaRIJYXNzZXROYW1lGg0KAWoSCGFzc2V0VXJsGgoKAWsSBWFzc2V0GgwKAWwSB2Fzc2V0SWQaEgoBbRINZGF0YUtleVByZWZpeBoHCgFuEgJ0eBoLCgFvEgZ2ZXJpZnkAAAAFAAAAAAFhAAAAAAAAAAPoAAAAAAFiAAAAAAAAAAPoAAAAAAFjAgAAAFg0UHlaUUNRWmt6dXdDZE5BdFo3WGVFZ3F6NHM0dkJ0cjdVU0pLV2RleldYQ0JxOUFuVVNiZVVvQjJqY0hHZTZnUmVHRVRkSll6OUhTZ0FrcmRSTk5pOWV2AAAAAAFkAgAAABpodHRwczovL25mdC5yZWJlbHBpeGVsLmNhLwEAAAABZQAAAAIAAAABZgAAAAFnCQAAZAAAAAIJAABoAAAAAgUAAAABZgUAAAABYQUAAAABZwAAAAEAAAABaAEAAAAIcHVyY2hhc2UAAAACAAAAAWYAAAABZwQAAAABaQIAAAAITmZ0IEdhbmcEAAAAAWoJAAEsAAAAAgkAASwAAAACBQAAAAFkCQACWAAAAAEIBQAAAAFoAAAADXRyYW5zYWN0aW9uSWQCAAAABC5wbmcEAAAAAWsJAARCAAAABQUAAAABaQUAAAABagAAAAAAAAAAAQAAAAAAAAAAAAcEAAAAAWwJAAQ4AAAAAQUAAAABawQAAAABbQkAAlgAAAABBQAAAAFsCQAETAAAAAIFAAAAAWsJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACBQAAAAFtAgAAAANfeHkJAAEsAAAAAgkAASwAAAACBQAAAAFmAgAAAAEsBQAAAAFnCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgUAAAABbQIAAAAFX25hbWUFAAAAAWkJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACBQAAAAFtAgAAAAZfYXNzZXQFAAAAAWoJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACBQAAAAFtAgAAAAZfb3duZXIJAAJYAAAAAQgIBQAAAAFoAAAABmNhbGxlcgAAAAVieXRlcwkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaAAAAAZjYWxsZXIAAAAAAAAAAAEFAAAAAWwFAAAAA25pbAAAAAEAAAABbgEAAAABbwAAAAAJAAH0AAAAAwgFAAAAAW4AAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAFuAAAABnByb29mcwAAAAAAAAAAAAgFAAAAAW4AAAAPc2VuZGVyUHVibGljS2V5hh9IHA==",
"height": 1842658,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: HDH6KAGvTm56HwVypQmeC9Dc3Hc82deyTYJe9gJyjt2J
Next: 41UM9Apu2rvhv2yLN1imAYe6JeRZcMRfz9FBc2MK7ioD
Diff:
Old | New | | Differences |
---|
19 | 19 | | let asset = Issue(assetName, assetUrl, 1, 0, false) |
---|
20 | 20 | | let assetId = calculateAssetId(asset) |
---|
21 | 21 | | let dataKeyPrefix = toBase58String(assetId) |
---|
22 | | - | [asset, StringEntry((dataKeyPrefix + "_xy"), ((x + ",") + y)), StringEntry((dataKeyPrefix + "_name"), assetName), StringEntry((dataKeyPrefix + "_asset"), assetUrl), ScriptTransfer(i.caller, 1, assetId)] |
---|
| 22 | + | [asset, StringEntry((dataKeyPrefix + "_xy"), ((x + ",") + y)), StringEntry((dataKeyPrefix + "_name"), assetName), StringEntry((dataKeyPrefix + "_asset"), assetUrl), StringEntry((dataKeyPrefix + "_owner"), toBase58String(i.caller.bytes)), ScriptTransfer(i.caller, 1, assetId)] |
---|
23 | 23 | | } |
---|
24 | 24 | | |
---|
25 | 25 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let COLS = 1000 |
---|
5 | 5 | | |
---|
6 | 6 | | let ROWS = 1000 |
---|
7 | 7 | | |
---|
8 | 8 | | let proof = "4PyZQCQZkzuwCdNAtZ7XeEgqz4s4vBtr7USJKWdezWXCBq9AnUSbeUoB2jcHGe6gReGETdJYz9HSgAkrdRNNi9ev" |
---|
9 | 9 | | |
---|
10 | 10 | | let nftDomain = "https://nft.rebelpixel.ca/" |
---|
11 | 11 | | |
---|
12 | 12 | | func coordsToIndex (x,y) = ((x * COLS) + y) |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
15 | 15 | | @Callable(i) |
---|
16 | 16 | | func purchase (x,y) = { |
---|
17 | 17 | | let assetName = "Nft Gang" |
---|
18 | 18 | | let assetUrl = ((nftDomain + toBase58String(i.transactionId)) + ".png") |
---|
19 | 19 | | let asset = Issue(assetName, assetUrl, 1, 0, false) |
---|
20 | 20 | | let assetId = calculateAssetId(asset) |
---|
21 | 21 | | let dataKeyPrefix = toBase58String(assetId) |
---|
22 | | - | [asset, StringEntry((dataKeyPrefix + "_xy"), ((x + ",") + y)), StringEntry((dataKeyPrefix + "_name"), assetName), StringEntry((dataKeyPrefix + "_asset"), assetUrl), ScriptTransfer(i.caller, 1, assetId)] |
---|
| 22 | + | [asset, StringEntry((dataKeyPrefix + "_xy"), ((x + ",") + y)), StringEntry((dataKeyPrefix + "_name"), assetName), StringEntry((dataKeyPrefix + "_asset"), assetUrl), StringEntry((dataKeyPrefix + "_owner"), toBase58String(i.caller.bytes)), ScriptTransfer(i.caller, 1, assetId)] |
---|
23 | 23 | | } |
---|
24 | 24 | | |
---|
25 | 25 | | |
---|
26 | 26 | | @Verifier(tx) |
---|
27 | 27 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
28 | 28 | | |
---|