tx · 87HBxcXXaK3M6AtQwLAPB3G4fUzrJhSoRvdgGmUu4UEV

3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W:  -0.01000000 Waves

2021.09.16 07:39 [1705139] smart account 3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W > SELF 0.00000000 Waves

{ "type": 13, "id": "87HBxcXXaK3M6AtQwLAPB3G4fUzrJhSoRvdgGmUu4UEV", "fee": 1000000, "feeAssetId": null, "timestamp": 1631767195480, "version": 2, "chainId": 84, "sender": "3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W", "senderPublicKey": "4Tgbt8hFUrh9Ljuh7RR6JU7FGF6Vy8J55djUNpJj8DvX", "proofs": [ "fWZCq3sorpLw6UGMVc4qg2EwrLuZ52ZbaPKhc1qbtL89J6rXXRPr9rMsbVRpzemxJDxW6sQ2cbo8rX6ejkdCxJP" ], "script": "base64:AAIFAAAAAAAAAQEIAhIFCgMICAgaBwoCYTESAWkaDAoCYTISBmFjdGlvbhoKCgJhMxIEdHlwZRoRCgJhNBILdmFsdWVBY3Rpb24aEwoCYTUSDXRyYW5zYWN0aW9uSWQaGAoCYTYSEmN1cnJlbnRXYWxsZXRCeXRlcxoPCgJhNxIJcGF5QW1vdW50GhMKAmE4Eg1jdXJyZW50V2FsbGV0Gg0KAmE5EgduYW1lTmZ0GhAKAmIxEgpoaXN0b3JpY0lkGg0KAmIyEgckbWF0Y2gwGgcKAmIzEgF0GhUKAmI0Eg9pbml0aWFsUG93ZXJOZnQaCwoCYjUSBXBvd2VyGg4KAmI2EghuZXdQb3dlcgAAAAAAAAABAAAAAmExAQAAAAVzdGFydAAAAAMAAAACYTIAAAACYTMAAAACYTQEAAAAAmE1CQACWAAAAAEIBQAAAAJhMQAAAA10cmFuc2FjdGlvbklkBAAAAAJhNggFAAAAAmExAAAABmNhbGxlcgQAAAACYTcJAQAAAAV2YWx1ZQAAAAEICQABkQAAAAIIBQAAAAJhMQAAAAhwYXltZ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OAIAAAAjM043WW0xV0szWmFGcDdWZmp2ejZLRlJHRjZBeHNBWG03NlcHCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAAAdBZGRyZXNzAAAAAQkAAlkAAAABBQAAAAJhMwAAAAAAAAAAAQkAAlkAAAABBQAAAAJhNAUAAAADbmlsCQAAAgAAAAECAAAALUFsZ28gZGV1IGVycmFkbyEgVmVyaWZpcXVlIHN1YSBzb2xpY2l0YcOnw6NvIQAAAADqVuEt", "height": 1705139, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: G5qB2yXbnR7ZTgevapKu3eNYdGnphfZzafN9W3HzjXK3 Next: 59s8D8C6fY2NcmrSAwdrBsTT4pZBqCWiTiD17mwsL29y Diff:
OldNewDifferences
2626 let l = k
2727 l
2828 }
29- else 100
29+ else 0
3030 }
31+ let n = {
32+ let k = getInteger(this, ("power_" + h))
33+ if ($isInstanceOf(k, "Int"))
34+ then {
35+ let l = k
36+ l
37+ }
38+ else 0
39+ }
40+ let o = (n + m)
3141 if ((b == "Buy NFT"))
32- then [Issue(((c + "_") + take(e, 9)), "", 1, 0, false), IntegerEntry(i, m)]
42+ then [Issue(((c + "_") + take(e, 9)), "", 1, 0, false), IntegerEntry(i, m), IntegerEntry(("power_" + h), o)]
3343 else if (if ((b == "Send NFT"))
3444 then (h == "3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W")
3545 else false)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func start (b,c,d) = {
88 let e = toBase58String(a.transactionId)
99 let f = a.caller
1010 let g = value(a.payments[0].amount)
1111 let h = toBase58String(a.caller.bytes)
1212 let i = ((((((("nft_" + c) + "_") + take(e, 10)) + "_") + h) + "_") + e)
1313 let j = {
1414 let k = getInteger(this, "historicId")
1515 if ($isInstanceOf(k, "Int"))
1616 then {
1717 let l = k
1818 l
1919 }
2020 else 0
2121 }
2222 let m = {
2323 let k = getInteger(this, c)
2424 if ($isInstanceOf(k, "Int"))
2525 then {
2626 let l = k
2727 l
2828 }
29- else 100
29+ else 0
3030 }
31+ let n = {
32+ let k = getInteger(this, ("power_" + h))
33+ if ($isInstanceOf(k, "Int"))
34+ then {
35+ let l = k
36+ l
37+ }
38+ else 0
39+ }
40+ let o = (n + m)
3141 if ((b == "Buy NFT"))
32- then [Issue(((c + "_") + take(e, 9)), "", 1, 0, false), IntegerEntry(i, m)]
42+ then [Issue(((c + "_") + take(e, 9)), "", 1, 0, false), IntegerEntry(i, m), IntegerEntry(("power_" + h), o)]
3343 else if (if ((b == "Send NFT"))
3444 then (h == "3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W")
3545 else false)
3646 then [ScriptTransfer(Address(fromBase58String(c)), 1, fromBase58String(d))]
3747 else throw("Algo deu errado! Verifique sua solicitação!")
3848 }
3949
4050

github/deemru/w8io/169f3d6 
50.77 ms