tx · F1HWUuNrY8Qt9q7A6AMoRzGk7R8ngCtCnpWGTAY41C13

3Mr9dr53WfCEhsUAUdVw5pgy5X8VXQSiNE1:  -0.01400000 Waves

2019.11.15 10:20 [765879] smart account 3Mr9dr53WfCEhsUAUdVw5pgy5X8VXQSiNE1 > SELF 0.00000000 Waves

{ "type": 13, "id": "F1HWUuNrY8Qt9q7A6AMoRzGk7R8ngCtCnpWGTAY41C13", "fee": 1400000, "feeAssetId": null, "timestamp": 1573802440924, "version": 1, "sender": "3Mr9dr53WfCEhsUAUdVw5pgy5X8VXQSiNE1", "senderPublicKey": "5JzGcJEtLxWD9C1pzmvrj77LkgxLZGFd1RaierZeLnfP", "proofs": [ "3qCnpyE7fazJmVnkMTxXNUsu11CaQLN3PLdkb9fQwYYVH7WCTdR8sfiyo4VQKCcNRf54212BHeuQSoxSCNFGLScq" ], "script": "base64:AAIDAAAAAAAAAAsIARIDCgEIEgASAAAAAAQAAAAAE2xvdHRlcnlUaWNrZXRIb2xkZXIJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVQY85hy7YeAyDRGFObJCypdEQTLdt733vIAAAAADGxvdHRlcnlPd25lcgIAAAAjM014dHpuY0tNOXgxa0twTFAzc3A4V1pQdmcxY3phOGpIR20AAAAAC293bmVyUHViS2V5AQAAACBACmA336blA7mhW2RNsGuI98cymECCc90nQd7Dqss6DgAAAAARZEFwcFJhbmRvbUFkZHJlc3MJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVQs+qsE+m8UScrki/mi9Vg1BPLz1NtSCiEAAAADAAAACmNvbnRleHRPYmoBAAAAF3JhbmRvbVJlcXVlc3RUeElkUmVjb3JkAAAAAQAAABFyYW5kb21SZXF1ZXN0VHhJZAMJAQAAAAlpc0RlZmluZWQAAAABCQAEHQAAAAIFAAAABHRoaXMCAAAAEXJhbmRvbVJlcXVlc3RUeElkCQAAAgAAAAECAAAAInJhbmRvbUlkVHggaXMgYWxyZWFkeSBpbiB0aGUgc3RhdGUDCQAA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3TTzcMkPUVp36YCCjz72vqBWZVEZuTf Next: 9r8y9f4uz5A7zkQBfAA62t98B55fJCak9CxBXvjNZkta Diff:
OldNewDifferences
55
66 let b = "3MxtzncKM9x1kKpLP3sp8WZPvg1cza8jHGm"
77
8-let c = base58'CBoRgqiPjXZMaoN8BwCSFfXsRX5jvNDiZ9SArkfMQX1Z'
8+let c = base58'5JzGcJEtLxWD9C1pzmvrj77LkgxLZGFd1RaierZeLnfP'
99
1010 let d = Address(base58'3Mt1uo5ieYK8Pk9XyVZp88HBLMfprrq515z')
1111
7979 then sigVerify(n.bodyBytes, n.proofs[0], c)
8080 else false
8181 }
82- else true
82+ else sigVerify(n.bodyBytes, n.proofs[0], c)
8383 }
8484
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = Address(base58'3MrC1oqVCoLkfHabhJtrLJS6GxcooQwRWuP')
55
66 let b = "3MxtzncKM9x1kKpLP3sp8WZPvg1cza8jHGm"
77
8-let c = base58'CBoRgqiPjXZMaoN8BwCSFfXsRX5jvNDiZ9SArkfMQX1Z'
8+let c = base58'5JzGcJEtLxWD9C1pzmvrj77LkgxLZGFd1RaierZeLnfP'
99
1010 let d = Address(base58'3Mt1uo5ieYK8Pk9XyVZp88HBLMfprrq515z')
1111
1212 @Callable(e)
1313 func randomRequestTxIdRecord (f) = if (isDefined(getString(this, "randomRequestTxId")))
1414 then throw("randomIdTx is already in the state")
1515 else if ((e.caller == addressFromString(b)))
1616 then WriteSet([DataEntry("randomRequestTxId", f)])
1717 else throw("only owner can start the lottery")
1818
1919
2020
2121 @Callable(e)
2222 func checkRandom () = {
2323 let g = getStringValue(this, "randomRequestTxId")
2424 let h = getStringValue(d, g)
2525 let i = split(h, "_")[0]
2626 let j = split(h, "--")[1]
2727 if ((i == "FINISHED"))
2828 then WriteSet([DataEntry("randomResult", parseIntValue(j))])
2929 else throw("Incorrect random result")
3030 }
3131
3232
3333
3434 @Callable(e)
3535 func defineTheWinner () = {
3636 let j = getIntegerValue(this, "randomResult")
3737 if (isDefined(getInteger(a, ("winningTicket" + toString(j)))))
3838 then {
3939 let k = getIntegerValue(a, "ticketAmount")
4040 let l = if ((j == k))
4141 then 1
4242 else (j + 1)
4343 WriteSet([DataEntry("randomResult", l)])
4444 }
4545 else {
4646 let m = getStringValue(a, ("ticket" + toString(j)))
4747 WriteSet([DataEntry("winnerTicket", j), DataEntry("winnerAddress", m)])
4848 }
4949 }
5050
5151
5252 @Verifier(n)
5353 func o () = {
5454 let p = 1
5555 let q = 0
5656 let r = n
5757 if ($isInstanceOf(r, "LeaseTransaction"))
5858 then {
5959 let s = r
6060 if (if (if ((height > p))
6161 then (q > height)
6262 else false)
6363 then isDefined(getString(this, "winnerAddress"))
6464 else false)
6565 then (s.recipient == addressFromString(getStringValue(this, "winnerAddress")))
6666 else false
6767 }
6868 else if ($isInstanceOf(r, "LeaseCancelTransaction"))
6969 then {
7070 let t = r
7171 if ((height > p))
7272 then sigVerify(n.bodyBytes, n.proofs[0], c)
7373 else false
7474 }
7575 else if ($isInstanceOf(r, "TransferTransaction"))
7676 then {
7777 let u = r
7878 if ((height > p))
7979 then sigVerify(n.bodyBytes, n.proofs[0], c)
8080 else false
8181 }
82- else true
82+ else sigVerify(n.bodyBytes, n.proofs[0], c)
8383 }
8484

github/deemru/w8io/026f985 
88.88 ms