tx · 4yLv1fMY9jV1sGSMdqK42fHnEdYGEHAw6NGC89SXYce7
3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W: -0.01000000 Waves
2021.09.16 01:27 [1704754] smart account 3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W > SELF 0.00000000 Waves
{
"type": 13,
"id": "4yLv1fMY9jV1sGSMdqK42fHnEdYGEHAw6NGC89SXYce7",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1631744885606,
"version": 2,
"chainId": 84,
"sender": "3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W",
"senderPublicKey": "4Tgbt8hFUrh9Ljuh7RR6JU7FGF6Vy8J55djUNpJj8DvX",
"proofs": [
"2cwWvgEYq9ywGRDvP38K6Gk5Qi9EpyDwjEPpRii58KpywFEYDAH8NCXsbENXQ7j38CwKr5ggZWMFvJ6bAMubWP8p"
],
"script": "base64:AAIFAAAAAAAAAMoIAhIECgIICBoHCgJhMRIBaRoMCgJhMhIGYWN0aW9uGgoKAmEzEgR0eXBlGhMKAmE0Eg10cmFuc2FjdGlvbklkGhAKAmE1EgpjdXJyZW50S2V5Gg8KAmE2EglwYXlBbW91bnQaFQoCYTcSD2N1cnJlbnRLZXlCeXRlcxoNCgJhOBIHbmFtZU5mdBoQCgJhORIKaGlzdG9yaWNJZBoNCgJiMRIHJG1hdGNoMBoHCgJiMhIBdBoVCgJiMxIPaW5pdGlhbFBvd2VyTmZ0AAAAAAAAAAEAAAACYTEBAAAABXN0YXJ0AAAAAgAAAAJhMgAAAAJhMwQAAAACYTQJAAJYAAAAAQgFAAAAAmExAAAADXRyYW5zYWN0aW9uSWQEAAAAAmE1CAUAAAACYTEAAAAGY2FsbGVyBAAAAAJhNgkBAAAABXZhbHVlAAAAAQgJAAGRAAAAAggFAAAAAmExAAAACHBheW1lbnRzAAAAAAAAAAAAAAAABmFtb3VudAQAAAACYTcJAAJYAAAAAQgIBQAAAAJhMQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAAAmE4CQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAAJhMwIAAAABXwkAAS8AAAACBQAAAAJhNAAAAAAAAAAACgIAAAABXwUAAAACYTcCAAAAAV8FAAAAAmE0BAAAAAJhOQQAAAACYjEJAAQaAAAAAgUAAAAEdGhpcwIAAAAKaGlzdG9yaWNJZAMJAAABAAAAAgUAAAACYjECAAAAA0ludAQAAAACYjIFAAAAAmIxBQAAAAJiMgAAAAAAAAAAAAQAAAACYjMEAAAAAmIxCQAEGgAAAAIFAAAABHRoaXMFAAAAAmEzAwkAAAEAAAACBQAAAAJiMQIAAAADSW50BAAAAAJiMgUAAAACYjEFAAAAAmIyAAAAAAAAAABkAwkAAAAAAAACBQAAAAJhMgIAAAAHQnV5IE5GVAkABEwAAAACCQAEQgAAAAUJAAEsAAAAAgkAASwAAAACBQAAAAJhMwIAAAABXwkAAS8AAAACBQAAAAJhNAAAAAAAAAAACgIAAAAAAAAAAAAAAAABAAAAAAAAAAAABwkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAACYTgFAAAAAmIzBQAAAANuaWwJAAACAAAAAQIAAAA9TsOjbyBmb2kgcG9zc2l2ZWwgY3JpYXIgc2V1IE5GVC4gVmVyaWZpcXVlIHN1YSBzb2xpY2l0YcOnw6NvIQAAAACY+U7N",
"height": 1704754,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 6B7xT9tgKvjKpJknpWpfHQpLDXNRgDiDp5ph8U2bfGEF
Next: XrGuGWgab475JjPtVwEjuXbNKGkGk9uwejnD9XkLxRA
Diff:
Old | New | | Differences |
---|
9 | 9 | | let currentKey = i.caller |
---|
10 | 10 | | let payAmount = value(i.payments[0].amount) |
---|
11 | 11 | | let currentKeyBytes = toBase58String(i.caller.bytes) |
---|
12 | | - | let nameNft = ((((type + "_") + currentKeyBytes) + "_") + transactionId) |
---|
| 12 | + | let nameNft = ((((((type + "_") + take(transactionId, 10)) + "_") + currentKeyBytes) + "_") + transactionId) |
---|
13 | 13 | | let historicId = match getInteger(this, "historicId") { |
---|
14 | 14 | | case t: Int => |
---|
15 | 15 | | t |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func start (action,type) = { |
---|
8 | 8 | | let transactionId = toBase58String(i.transactionId) |
---|
9 | 9 | | let currentKey = i.caller |
---|
10 | 10 | | let payAmount = value(i.payments[0].amount) |
---|
11 | 11 | | let currentKeyBytes = toBase58String(i.caller.bytes) |
---|
12 | | - | let nameNft = ((((type + "_") + currentKeyBytes) + "_") + transactionId) |
---|
| 12 | + | let nameNft = ((((((type + "_") + take(transactionId, 10)) + "_") + currentKeyBytes) + "_") + transactionId) |
---|
13 | 13 | | let historicId = match getInteger(this, "historicId") { |
---|
14 | 14 | | case t: Int => |
---|
15 | 15 | | t |
---|
16 | 16 | | case _ => |
---|
17 | 17 | | 0 |
---|
18 | 18 | | } |
---|
19 | 19 | | let initialPowerNft = match getInteger(this, type) { |
---|
20 | 20 | | case t: Int => |
---|
21 | 21 | | t |
---|
22 | 22 | | case _ => |
---|
23 | 23 | | 100 |
---|
24 | 24 | | } |
---|
25 | 25 | | if ((action == "Buy NFT")) |
---|
26 | 26 | | then [Issue(((type + "_") + take(transactionId, 10)), "", 1, 0, false), IntegerEntry(nameNft, initialPowerNft)] |
---|
27 | 27 | | else throw("Não foi possivel criar seu NFT. Verifique sua solicitação!") |
---|
28 | 28 | | } |
---|
29 | 29 | | |
---|
30 | 30 | | |
---|