tx · HPdgpUHczLMJjQhsCJGcRBywR2kzjaWvz5LqeKhNeAyg

3N4Lz2iWoYPd82cxU6vMMa8cZ9BCcPCaaXu:  -0.00100000 Waves

2022.07.21 01:15 [2148668] smart account 3N4Lz2iWoYPd82cxU6vMMa8cZ9BCcPCaaXu > SELF 0.00000000 Waves

{ "type": 13, "id": "HPdgpUHczLMJjQhsCJGcRBywR2kzjaWvz5LqeKhNeAyg", "fee": 100000, "feeAssetId": null, "timestamp": 1658355416691, "version": 2, "chainId": 84, "sender": "3N4Lz2iWoYPd82cxU6vMMa8cZ9BCcPCaaXu", "senderPublicKey": "5sUTyr8zPCCZHgVwgBgFhQA8Q26w2V1dnitx3izrEJ1B", "proofs": [ "5R5DHuMXg2vsLz2vWZhaTjLztakoXbpYsm4wNRw7D6pWcCZRrGJuPnrxf9Wi7BUC52v3YPxh58GmRPQsrM1DeaFo" ], "script": "base64:BQkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXlzTh3b", "height": 2148668, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3rspKqb9kjzZRZXCWoqZyWUgM9yRF4xje3fMjnEcBhQc Next: HYBSYnWEJq72HCHHPNLHST3VVffMpiUq9CUfp3NrzpHi Full:
OldNewDifferences
1-{-# STDLIB_VERSION 3 #-}
2-{-# SCRIPT_TYPE ACCOUNT #-}
3-{-# CONTENT_TYPE DAPP #-}
4-
5-
6-@Callable(a)
7-func distributeMinerReward () = {
8- let b = extract(a.payment)
9- if (isDefined(b.assetId))
10- then throw("can hodl waves only at the moment")
11- else {
12- let c = toBase58String(a.caller.bytes)
13- let d = {
14- let e = getInteger(this, c)
15- if ($isInstanceOf(e, "Int"))
16- then {
17- let f = e
18- f
19- }
20- else 0
21- }
22- let g = (d + b.amount)
23- WriteSet([DataEntry(c, g)])
24- }
25- }
26-
27-
28-
29-@Callable(a)
30-func withdraw (h) = {
31- let c = toBase58String(a.caller.bytes)
32- let d = {
33- let e = getInteger(this, c)
34- if ($isInstanceOf(e, "Int"))
35- then {
36- let f = e
37- f
38- }
39- else 0
40- }
41- let g = (d - h)
42- if ((0 > h))
43- then throw("Can't withdraw negative amount")
44- else if ((0 > g))
45- then throw("Not enough balance")
46- else ScriptResult(WriteSet([DataEntry(c, g)]), TransferSet([ScriptTransfer(a.caller, h, unit)]))
47- }
48-
49-
50-@Verifier(i)
51-func j () = sigVerify(i.bodyBytes, i.proofs[0], i.senderPublicKey)
52-
1+{-# STDLIB_VERSION 5 #-}
2+{-# CONTENT_TYPE EXPRESSION #-}
3+sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)

github/deemru/w8io/169f3d6 
22.78 ms