tx · AEaHTefo6PjA3d37Cv6rkSjs1kKJjWy7ZVWUQTYrAQbC

3MrC1oqVCoLkfHabhJtrLJS6GxcooQwRWuP:  -0.01400000 Waves

2019.11.15 12:07 [765991] smart account 3MrC1oqVCoLkfHabhJtrLJS6GxcooQwRWuP > SELF 0.00000000 Waves

{ "type": 13, "id": "AEaHTefo6PjA3d37Cv6rkSjs1kKJjWy7ZVWUQTYrAQbC", "fee": 1400000, "feeAssetId": null, "timestamp": 1573808878671, "version": 1, "sender": "3MrC1oqVCoLkfHabhJtrLJS6GxcooQwRWuP", "senderPublicKey": "3bmZaUZ9wp3K1YZQFqTkN1oZzumQPi7WLQ9QowMaqqEZ", "proofs": [ "2qFfujATXSJZhKKJin5vPYUmXVsVUuJF2dQLAGdTCGYwoFYVqPg2YtdByV728M7uGnTgDnPNSv2CZk2e1ZMGws5w" ], "script": "base64:AAIDAAAAAAAAAAwIARIDCgEIEgMKAQgAAAACAAAAAAt0aWNrZXRQcmljZQAAAAAAAAAnEAAAAAAFTVJUaWQCAAAALDhhZllyYkRCcjZUdzVKZ2FXVWdtMkduY1k3ckw4N0p2R0c3YVdleldNR2daAAAAAgAAAApjb250ZXh0T2JqAQAAAAlidXlUaWNrZXQAAAABAAAADWFkZHJlc1RvTGVhc2UEAAAAByRtYXRjaDAIBQAAAApjb250ZXh0T2JqAAAAB3BheW1lbnQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0F0dGFjaGVkUGF5bWVudAQAAAABcAUAAAAHJG1hdGNoMAMDCQAAAAAAAAIIBQAAAAFwAAAABmFtb3VudAUAAAALdGlja2V0UHJpY2UJAAAAAAAAAgkAAlgAAAABCQEAAAAHZXh0cmFjdAAAAAEIBQAAAAFwAAAAB2Fzc2V0SWQFAAAABU1SVGlkBwQAAAAPdGlja2V0QW1vdW50TmV3CQAAZAAAAAIJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAABHRoaXMCAAAADHRpY2tldEFtb3VudAAAAAAAAAAAAQkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACAgAAAAZ0aWNrZXQJAAGkAAAAAQUAAAAPdGlja2V0QW1vdW50TmV3BQAAAA1hZGRyZXNUb0xlYXNlCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAx0aWNrZXRBbW91bnQFAAAAD3RpY2tldEFtb3VudE5ldwUAAAADbmlsCQAAAgAAAAECAAAAJkluY29ycmVjdCBhbW91bnQgb3IgYXNzZXRJZCBpbiBwYXltZW50CQAAAgAAAAECAAAAFFBheW1lbnQgbm90IGF0dGFjaGVkAAAACmNvbnRleHRPYmoBAAAACWFkZFdpbm5lcgAAAAEAAAAHbG90dGVyeQQAAAAObG90dGVyeUFkZHJlc3MJAQAAAAdleHRyYWN0AAAAAQkBAAAAEWFkZHJlc3NGcm9tU3RyaW5nAAAAAQUAAAAHbG90dGVyeQMJAQAAAAlpc0RlZmluZWQAAAABCQAEHQAAAAIFAAAABHRoaXMFAAAAB2xvdHRlcnkEAAAADXdpbm5lckFkZHJlc3MJAQAAABFAZXh0ck5hdGl2ZSgxMDUzKQAAAAIFAAAADmxvdHRlcnlBZGRyZXNzAgAAAA13aW5uZXJBZGRyZXNzBAAAAAx3aW5uZXJUaWNrZXQJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAADmxvdHRlcnlBZGRyZXNzAgAAAAx3aW5uZXJUaWNrZXQJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAANd2lubmluZ1RpY2tldAkAAaQAAAABBQAAAAx3aW5uZXJUaWNrZXQFAAAADXdpbm5lckFkZHJlc3MFAAAAA25pbAkAAAIAAAABAgAAACN5b3UgdG91Y2ggaW5jb3JyZWN0IGxvdHRlcnkgYWRkcmVzcwAAAAD7YlhW", "chainId": 84, "height": 765991, "spentComplexity": 0 } View: original | compacted Prev: 2as9TnjHo2pu1BxK6VttkgSZq1uSKQXimx9HV1SumSDp Next: J7iWmSH2DdnaqvG88AKpfMMBVPWT6i7kW9juqb8MAx3a Diff:
OldNewDifferences
2626
2727
2828 @Callable(c)
29-func addWinner (h,i) = {
30- let j = extract(addressFromString(h))
29+func addWinner (h) = {
30+ let i = extract(addressFromString(h))
3131 if (isDefined(getString(this, h)))
3232 then {
33- let k = getStringValue(j, "winnerAddress")
34- let l = getIntegerValue(j, "winnerTicket")
35- WriteSet([DataEntry(("winningTicket" + toString(l)), k)])
33+ let j = getStringValue(i, "winnerAddress")
34+ let k = getIntegerValue(i, "winnerTicket")
35+ WriteSet([DataEntry(("winningTicket" + toString(k)), j)])
3636 }
3737 else throw("you touch incorrect lottery address")
3838 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = 10000
55
66 let b = "8afYrbDBr6Tw5JgaWUgm2GncY7rL87JvGG7aWezWMGgZ"
77
88 @Callable(c)
99 func buyTicket (d) = {
1010 let e = c.payment
1111 if ($isInstanceOf(e, "AttachedPayment"))
1212 then {
1313 let f = e
1414 if (if ((f.amount == a))
1515 then (toBase58String(extract(f.assetId)) == b)
1616 else false)
1717 then {
1818 let g = (getIntegerValue(this, "ticketAmount") + 1)
1919 WriteSet([DataEntry(("ticket" + toString(g)), d), DataEntry("ticketAmount", g)])
2020 }
2121 else throw("Incorrect amount or assetId in payment")
2222 }
2323 else throw("Payment not attached")
2424 }
2525
2626
2727
2828 @Callable(c)
29-func addWinner (h,i) = {
30- let j = extract(addressFromString(h))
29+func addWinner (h) = {
30+ let i = extract(addressFromString(h))
3131 if (isDefined(getString(this, h)))
3232 then {
33- let k = getStringValue(j, "winnerAddress")
34- let l = getIntegerValue(j, "winnerTicket")
35- WriteSet([DataEntry(("winningTicket" + toString(l)), k)])
33+ let j = getStringValue(i, "winnerAddress")
34+ let k = getIntegerValue(i, "winnerTicket")
35+ WriteSet([DataEntry(("winningTicket" + toString(k)), j)])
3636 }
3737 else throw("you touch incorrect lottery address")
3838 }
3939
4040

github/deemru/w8io/169f3d6 
90.67 ms