tx · XrGuGWgab475JjPtVwEjuXbNKGkGk9uwejnD9XkLxRA
3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W: -0.01000000 Waves
2021.09.16 03:08 [1704854] smart account 3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W > SELF 0.00000000 Waves
{
"type": 13,
"id": "XrGuGWgab475JjPtVwEjuXbNKGkGk9uwejnD9XkLxRA",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1631750943621,
"version": 2,
"chainId": 84,
"sender": "3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W",
"senderPublicKey": "4Tgbt8hFUrh9Ljuh7RR6JU7FGF6Vy8J55djUNpJj8DvX",
"proofs": [
"3W8rAyhpDNAVfWYyXVegnRX5nHGETGX2rXpDWDawaSRkt6K4cMjLvWz5BKA5vJMe5C5add3JmRgsLBfvAhLa5ZE5"
],
"script": "base64:AAIFAAAAAAAAAN4IAhIFCgMICAgaBwoCYTESAWkaDAoCYTISBmFjdGlvbhoKCgJhMxIEdHlwZRoRCgJhNBILdmFsdWVBY3Rpb24aEwoCYTUSDXRyYW5zYWN0aW9uSWQaEAoCYTYSCmN1cnJlbnRLZXkaDwoCYTcSCXBheUFtb3VudBoVCgJhOBIPY3VycmVudEtleUJ5dGVzGg0KAmE5EgduYW1lTmZ0GhAKAmIxEgpoaXN0b3JpY0lkGg0KAmIyEgckbWF0Y2gwGgcKAmIzEgF0GhUKAmI0Eg9pbml0aWFsUG93ZXJOZnQAAAAAAAAAAQAAAAJhMQEAAAAFc3RhcnQAAAADAAAAAmEyAAAAAmEzAAAAAmE0BAAAAAJhNQkAAlgAAAABCAUAAAACYTEAAAANdHJhbnNhY3Rpb25JZAQAAAACYTYIBQAAAAJhMQAAAAZjYWxsZXIEAAAAAmE3CQEAAAAFdmFsdWUAAAABCAkAAZEAAAACCAUAAAACYTEAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAGYW1vdW50BAAAAAJhOAkAAlgAAAABCAgFAAAAAmExAAAABmNhbGxlcgAAAAVieXRlcwQAAAACYTkJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAAAmEzAgAAAAFfCQABLwAAAAIFAAAAAmE1AAAAAAAAAAAKAgAAAAFfBQAAAAJhOAIAAAABXwUAAAACYTUEAAAAAmIxBAAAAAJiMgkABBoAAAACBQAAAAR0aGlzAgAAAApoaXN0b3JpY0lkAwkAAAEAAAACBQAAAAJiMgIAAAADSW50BAAAAAJiMwUAAAACYjIFAAAAAmIzAAAAAAAAAAAABAAAAAJiNAQAAAACYjIJAAQaAAAAAgUAAAAEdGhpcwUAAAACYTMDCQAAAQAAAAIFAAAAAmIyAgAAAANJbnQEAAAAAmIzBQAAAAJiMgUAAAACYjMAAAAAAAAAAGQDCQAAAAAAAAIFAAAAAmEyAgAAAAdCdXkgTkZUCQAETAAAAAIJAARCAAAABQkAASwAAAACCQABLAAAAAIFAAAAAmEzAgAAAAFfCQABLwAAAAIFAAAAAmE1AAAAAAAAAAAKAgAAAAAAAAAAAAAAAAEAAAAAAAAAAAAHCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAAAJhOQUAAAACYjQFAAAAA25pbAMJAAAAAAAAAgUAAAACYTICAAAACFNlbmQgTkZUCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAAAdBZGRyZXNzAAAAAQkAAZsAAAABBQAAAAJhMwAAAAAAAAAAAQkAAZsAAAABBQAAAAJhNAUAAAADbmlsCQAAAgAAAAECAAAAPU7Do28gZm9pIHBvc3NpdmVsIGNyaWFyIHNldSBORlQuIFZlcmlmaXF1ZSBzdWEgc29saWNpdGHDp8OjbyEAAAAAG92XGQ==",
"height": 1704854,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 4yLv1fMY9jV1sGSMdqK42fHnEdYGEHAw6NGC89SXYce7
Next: 97veQMst5SC79MVN8p8qjhsX33nNGb56TFvCSqofFaM8
Diff:
Old | New | | Differences |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | | - | func start (action,type) = { |
---|
| 7 | + | func start (action,type,valueAction) = { |
---|
8 | 8 | | let transactionId = toBase58String(i.transactionId) |
---|
9 | 9 | | let currentKey = i.caller |
---|
10 | 10 | | let payAmount = value(i.payments[0].amount) |
---|
|
24 | 24 | | } |
---|
25 | 25 | | if ((action == "Buy NFT")) |
---|
26 | 26 | | then [Issue(((type + "_") + take(transactionId, 10)), "", 1, 0, false), IntegerEntry(nameNft, initialPowerNft)] |
---|
27 | | - | else throw("Não foi possivel criar seu NFT. Verifique sua solicitação!") |
---|
| 27 | + | else if ((action == "Send NFT")) |
---|
| 28 | + | then [ScriptTransfer(Address(toBytes(type)), 1, toBytes(valueAction))] |
---|
| 29 | + | else throw("Não foi possivel criar seu NFT. Verifique sua solicitação!") |
---|
28 | 30 | | } |
---|
29 | 31 | | |
---|
30 | 32 | | |
---|
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 | | - | func start (action,type) = { |
---|
| 7 | + | func start (action,type,valueAction) = { |
---|
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 | 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 | | - | else throw("Não foi possivel criar seu NFT. Verifique sua solicitação!") |
---|
| 27 | + | else if ((action == "Send NFT")) |
---|
| 28 | + | then [ScriptTransfer(Address(toBytes(type)), 1, toBytes(valueAction))] |
---|
| 29 | + | else throw("Não foi possivel criar seu NFT. Verifique sua solicitação!") |
---|
28 | 30 | | } |
---|
29 | 31 | | |
---|
30 | 32 | | |
---|