tx · 3E4Yuv1Y2Xm52ZKy8G1GJA7c2gjwoStDJWdsDvtTj5M5

3Mr47Kpwz3hxvXt417SP42WaoT5iGsSEr5h:  -0.04000000 Waves

2019.11.14 16:20 [764792] smart account 3Mr47Kpwz3hxvXt417SP42WaoT5iGsSEr5h > SELF 0.00000000 Waves

{ "type": 13, "id": "3E4Yuv1Y2Xm52ZKy8G1GJA7c2gjwoStDJWdsDvtTj5M5", "fee": 4000000, "feeAssetId": null, "timestamp": 1573737609060, "version": 1, "sender": "3Mr47Kpwz3hxvXt417SP42WaoT5iGsSEr5h", "senderPublicKey": "8JFVEhPAiLA1CbnTkMF6GdCqYJoNYUYUX6bmt8wk7VNc", "proofs": [ "oWzkcpMZgS9UmKqeTxv893jM5eq6CdPvjvqMbmmANFyNi9W4y9Red515RAh5HS9ut6g9eMHNitmJkfrmdWv1F3o" ], "script": "base64:AAIDAAAAAAAAAAgIARIECgIIAQAAAAAAAAABAAAAAWkBAAAACWJ1eVRpY2tldAAAAAIAAAAIdGlja2V0SWQAAAAGYW1vdW50BAAAAAdwYXltZW50CQEAAAAFdmFsdWUAAAABCAUAAAABaQAAAAdwYXltZW50BAAAAAp0aWNrZXRJbmZvCQEAAAAFdmFsdWUAAAABCQAD7AAAAAEJAAJZAAAAAQUAAAAIdGlja2V0SWQEAAAAC3N0YXJ0SGVpZ2h0BAAAAAckbWF0Y2gwCQAEGgAAAAIIBQAAAAp0aWNrZXRJbmZvAAAABmlzc3VlcgIAAAAFc3RhcnQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABFVuaXQEAAAAAXgFAAAAByRtYXRjaDAAAAAAAAAAAAADCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABeAUAAAAHJG1hdGNoMAUAAAABeAkBAAAABXRocm93AAAAAAQAAAAKc3RvcEhlaWdodAQAAAAHJG1hdGNoMAkABBoAAAACCAUAAAAKdGlja2V0SW5mbwAAAAZpc3N1ZXICAAAAA2VuZAMJAAABAAAAAg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AALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAAGYW1vdW50CQACWQAAAAEFAAAACHRpY2tldElkBQAAAANuaWwAAAAA8WI4Jg==", "chainId": 84, "height": 764792, "spentComplexity": 0 } View: original | compacted Prev: CsePCZpMtuL4Sp2CezH1qUuvnLThUeEfWrGhDr1HmiEn Next: none Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func buyTicket (b,c) = {
88 let d = value(a.payment)
99 let e = value(assetInfo(fromBase58String(b)))
1010 let f = {
1111 let g = getInteger(e.issuer, "start")
1212 if ($isInstanceOf(g, "Unit"))
1313 then {
1414 let h = g
1515 0
1616 }
1717 else if ($isInstanceOf(g, "Int"))
1818 then {
1919 let h = g
2020 h
2121 }
2222 else throw()
2323 }
2424 let i = {
2525 let g = getInteger(e.issuer, "end")
2626 if ($isInstanceOf(g, "Unit"))
2727 then {
2828 let h = g
2929 0
3030 }
3131 else if ($isInstanceOf(g, "Int"))
3232 then {
3333 let h = g
3434 h
3535 }
3636 else throw()
3737 }
3838 if (isDefined(d.assetId))
3939 then throw("only waves for now")
4040 else if (if (((f + i) > 0))
4141 then if ((f > height))
4242 then true
4343 else (height > i)
4444 else false)
4545 then throw(((("you can only by a ticket between block: " + toString(f)) + " and ") + toString(i)))
4646 else {
4747 let j = getIntegerValue(e.issuer, "price")
4848 if (((j * c) != d.amount))
4949 then throw(((((("Not the correct price. The price for " + toString(c)) + " tickets = ") + toString((j * c))) + ". You are paying: ") + toString(d.amount)))
5050 else TransferSet([ScriptTransfer(a.caller, c, fromBase58String(b))])
5151 }
5252 }
5353
5454

github/deemru/w8io/169f3d6 
45.10 ms