tx · 5dfTQBUf4mjFaVjbqJe1kzyjKGdqG6DYFe69sUanuYvm

3Mz29fiz3zgY9JDbiHKANvHsFgQutdfu4Ua:  -0.01400000 Waves

2021.03.15 17:00 [1438928] smart account 3Mz29fiz3zgY9JDbiHKANvHsFgQutdfu4Ua > SELF 0.00000000 Waves

{ "type": 13, "id": "5dfTQBUf4mjFaVjbqJe1kzyjKGdqG6DYFe69sUanuYvm", "fee": 1400000, "feeAssetId": null, "timestamp": 1615816808990, "version": 2, "chainId": 84, "sender": "3Mz29fiz3zgY9JDbiHKANvHsFgQutdfu4Ua", "senderPublicKey": "CTyHhnVTxf16Z4CmGGneAK8WB5g2QyT4MB8kUn8vPPcu", "proofs": [ "3pmapJVdy1RNo3m8BHEzfFp1SFZf1TGvZMimPsUMuFEGdym8ktbnjaW9Z5eW9xwnkvmpsheH8QH7qC1u9kNHETcA" ], "script": "base64:AAIEAAAAAAAAAAYIAhIAEgAAAAACAQAAAAxpc1dhdmVzQXNzZXQAAAABAAAAB2Fzc2V0SWQEAAAAByRtYXRjaDAFAAAAB2Fzc2V0SWQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAABWFzc2V0BQAAAAckbWF0Y2gwBwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAEVW5pdAQAAAAFd2F2ZXMFAAAAByRtYXRjaDAGCQAAAgAAAAECAAAAC01hdGNoIGVycm9yAQAAABBnZXRUcmVhc3VyeVZhbHVlAAAAAQAAAAdhc3NldElkBAAAAAx0cmVhc3VyeU5hbWUEAAAAByRtYXRjaDAFAAAAB2Fzc2V0SWQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAABWFzc2V0BQAAAAckbWF0Y2gwCQABLAAAAAICAAAACVRyZWFzdXJ5LQkAAlgAAAABBQAAAAVhc3NldAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAANzdHIFAAAAByRtYXRja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WF0Y2gwAgAAAANJbnQEAAAAA3ZhbAUAAAAHJG1hdGNoMAUAAAADdmFsBAAAAARudWxsBQAAAAckbWF0Y2gwCQAAAgAAAAECAAAAJURhdGEgbWlzc2luZzogJ2dvdmVybm9yQ3JlYXRpb25QcmljZScDCQEAAAACIT0AAAACCAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAAAAAZhbW91bnQFAAAAFWdvdmVybm9yQ3JlYXRpb25QcmljZQkAAAIAAAABAgAAABdOb3QgYSB2YWxpZCBhbW91bnQgc2VudAQAAAALZ292Q29udHJhY3QJAARCAAAABQIAAAAQR292ZXJub3JDb250cmFjdAkAAaQAAAABBQAAAAZoZWlnaHQAAAAAAAAAAAEAAAAAAAAAAAAHBAAAAA1nb3ZDb250cmFjdElkCQAEOAAAAAEFAAAAC2dvdkNvbnRyYWN0CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAA5UcmVhc3VyeS1XQVZFUwkAAGQAAAACCQEAAAAQZ2V0VHJlYXN1cnlWYWx1ZQAAAAECAAAABVdBVkVTCAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAAAAAZhbW91bnQJAARMAAAAAgUAAAALZ292Q29udHJhY3QJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyCAUAAAALZ292Q29udHJhY3QAAAAIcXVhbnRpdHkFAAAADWdvdkNvbnRyYWN0SWQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5s6P4DA==", "height": 1438928, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GUwUBq2f1UWYheHhcuFGKZMR3LU1sNSwJYCae9kNm4tQ Next: UF3eaEgYPUUtwtUxJFMMBP5ZqHADjpHrNqM2WN6VwcC Diff:
OldNewDifferences
7979 else {
8080 let m = Issue("GovernorContract", toString(height), 1, 0, false)
8181 let n = calculateAssetId(m)
82-[StringEntry("Treasury-WAVES", toString((f("WAVES") + k.payments[0].amount))), m, ScriptTransfer(k.caller, m.quantity, n)]
82+[IntegerEntry("Treasury-WAVES", (f("WAVES") + k.payments[0].amount)), m, ScriptTransfer(k.caller, m.quantity, n)]
8383 }
8484 }
8585
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b) = {
55 let c = b
66 if ($isInstanceOf(c, "ByteVector"))
77 then {
88 let d = c
99 false
1010 }
1111 else if ($isInstanceOf(c, "Unit"))
1212 then {
1313 let e = c
1414 true
1515 }
1616 else throw("Match error")
1717 }
1818
1919
2020 func f (b) = {
2121 let g = {
2222 let c = b
2323 if ($isInstanceOf(c, "ByteVector"))
2424 then {
2525 let d = c
2626 ("Treasury-" + toBase58String(d))
2727 }
2828 else if ($isInstanceOf(c, "String"))
2929 then {
3030 let h = c
3131 ("Treasury-" + h)
3232 }
3333 else if ($isInstanceOf(c, "Unit"))
3434 then throw("Unknown treasury")
3535 else throw("Match error")
3636 }
3737 let c = getInteger(this, g)
3838 if ($isInstanceOf(c, "Int"))
3939 then {
4040 let i = c
4141 i
4242 }
4343 else {
4444 let j = c
4545 0
4646 }
4747 }
4848
4949
5050 @Callable(k)
5151 func init () = if ((this != k.caller))
5252 then throw("Access denied")
5353 else [IntegerEntry("governorCreationPrice", 1)]
5454
5555
5656
5757 @Callable(k)
5858 func createGovernor () = if ((size(k.payments) != 1))
5959 then throw("No payment attached")
6060 else if ((this == k.caller))
6161 then throw("dApp self sending is denied")
6262 else if ((a(k.payments[0].assetId) == false))
6363 then throw("Payment should be in WAVES")
6464 else {
6565 let l = {
6666 let c = getInteger(this, "governorCreationPrice")
6767 if ($isInstanceOf(c, "Int"))
6868 then {
6969 let i = c
7070 i
7171 }
7272 else {
7373 let j = c
7474 throw("Data missing: 'governorCreationPrice'")
7575 }
7676 }
7777 if ((k.payments[0].amount != l))
7878 then throw("Not a valid amount sent")
7979 else {
8080 let m = Issue("GovernorContract", toString(height), 1, 0, false)
8181 let n = calculateAssetId(m)
82-[StringEntry("Treasury-WAVES", toString((f("WAVES") + k.payments[0].amount))), m, ScriptTransfer(k.caller, m.quantity, n)]
82+[IntegerEntry("Treasury-WAVES", (f("WAVES") + k.payments[0].amount)), m, ScriptTransfer(k.caller, m.quantity, n)]
8383 }
8484 }
8585
8686
8787 @Verifier(o)
8888 func p () = sigVerify(o.bodyBytes, o.proofs[0], o.senderPublicKey)
8989

github/deemru/w8io/169f3d6 
42.60 ms