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:
Old | New | | Differences |
---|
20 | 20 | | let assetId = calculateAssetId(asset) |
---|
21 | 21 | | let gen = "01" |
---|
22 | 22 | | 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)] |
---|
24 | 24 | | } |
---|
25 | 25 | | |
---|
26 | 26 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let COLS = 1024 |
---|
5 | 5 | | |
---|
6 | 6 | | let ROWS = 1024 |
---|
7 | 7 | | |
---|
8 | 8 | | let proof = "4PyZQCQZkzuwCdNAtZ7XeEgqz4s4vBtr7USJKWdezWXCBq9AnUSbeUoB2jcHGe6gReGETdJYz9HSgAkrdRNNi9ev" |
---|
9 | 9 | | |
---|
10 | 10 | | let nftDomain = "https://nft.gridgang.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 = ((x + ", ") + y) |
---|
18 | 18 | | let assetUrl = ((nftDomain + toBase58String(i.transactionId)) + ".png") |
---|
19 | 19 | | let asset = Issue((assetName + " Gen 1"), assetUrl, 1, 0, false) |
---|
20 | 20 | | let assetId = calculateAssetId(asset) |
---|
21 | 21 | | let gen = "01" |
---|
22 | 22 | | 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)] |
---|
24 | 24 | | } |
---|
25 | 25 | | |
---|
26 | 26 | | |
---|
27 | 27 | | @Verifier(tx) |
---|
28 | 28 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
29 | 29 | | |
---|