tx · RY88okCaxByZC5JUKqdTs3dgPNVevxSEoQjtrDafoXk

3NByvCG2T14xJ3bfRNpKCns37ehfBSTGja3:  -0.01400000 Waves

2019.07.28 18:28 [606101] smart account 3NByvCG2T14xJ3bfRNpKCns37ehfBSTGja3 > SELF 0.00000000 Waves

{ "type": 13, "id": "RY88okCaxByZC5JUKqdTs3dgPNVevxSEoQjtrDafoXk", "fee": 1400000, "feeAssetId": null, "timestamp": 1564327778782, "version": 1, "sender": "3NByvCG2T14xJ3bfRNpKCns37ehfBSTGja3", "senderPublicKey": "5ADSy4csCWyBrq24UKNhxf9g1q3ntYJ1JJC7582a5sF1", "proofs": [ "3u2jCRyCgUEy7qwYPopzV7BnzHgV6xV3CZsCYUEDsCZCmh1zSWCbajB8SMGHGbipGueUdw2boaXfcfHdEAYnExHy" ], "script": "base64:AAIDAAAAAAAAAAAAAAADAAAAAARzYWx0AgAAAARzYWx0AAAAAAZyZWJhaXQAAAAAAAAPaVABAAAAEmdldEludGVyZ2VyRGVmYXVsdAAAAAIAAAADa2V5AAAAB2RlZmF1bHQEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEFAAAAB2RlZmF1bHQAAAADAAAAAWkBAAAAB3Nwb25zb3IAAAABAAAADm9yYWNsZUFkZGRyZXNzBAAAAANrZXkJAAEsAAAAAgIAAAAKc3BvbnNvcmVkXwUAAAAOb3JhY2xlQWRkZHJlc3MEAAAAB3BheW1lbnQJAQAAAAdleHRyYWN0AAAAAQgFAAAAAWkAAAAHcGF5bWVudAMJAQAAAAIhPQAAAAIIBQAAAAdwYXltZW50AAAAB2Fzc2V0SWQFAAAABHVuaXQJAAACAAAAAQIAAAAcc3BvbnNvcnNoaXAgbXVzdCBiZSBpbiBXQVZFUwQAAAAIbmV3VmFsdWUJAABkAAAAAggFAAAAB3BheW1lbnQAAAA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yeQAAAAIFAAAACXJldmVhbEtleQUAAAAGcmFuZG9tBQAAAANuaWwAAAAAjxF51Q==", "chainId": 84, "height": 606101, "spentComplexity": 0 } View: original | compacted Prev: GRhoZrFn7UeBasXSDqY4KCPH1YXix5VkyUC5QmvjSFje Next: none Diff:
OldNewDifferences
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "salt"
55
6-let b = 600000
6+let b = 1010000
77
88 func c (d,e) = {
99 let f = getInteger(this, d)
3535 let m = toBase58String(h.caller.bytes)
3636 let n = ((("commit_" + m) + "_") + toString(height))
3737 if (isDefined(getString(this, n)))
38- then throw("commit already done")
38+ then throw((("commit for height " + toString(height)) + " already done"))
3939 else WriteSet([DataEntry(n, l)])
4040 }
4141
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "salt"
55
6-let b = 600000
6+let b = 1010000
77
88 func c (d,e) = {
99 let f = getInteger(this, d)
1010 if ($isInstanceOf(f, "Int"))
1111 then {
1212 let g = f
1313 g
1414 }
1515 else e
1616 }
1717
1818
1919 @Callable(h)
2020 func sponsor (i) = {
2121 let d = ("sponsored_" + i)
2222 let j = extract(h.payment)
2323 if ((j.assetId != unit))
2424 then throw("sponsorship must be in WAVES")
2525 else {
2626 let k = (j.amount + c(d, 0))
2727 WriteSet([DataEntry(d, k)])
2828 }
2929 }
3030
3131
3232
3333 @Callable(h)
3434 func commit (l) = {
3535 let m = toBase58String(h.caller.bytes)
3636 let n = ((("commit_" + m) + "_") + toString(height))
3737 if (isDefined(getString(this, n)))
38- then throw("commit already done")
38+ then throw((("commit for height " + toString(height)) + " already done"))
3939 else WriteSet([DataEntry(n, l)])
4040 }
4141
4242
4343
4444 @Callable(h)
4545 func reveal (o,p) = if ((extract(parseInt(o)) >= height))
4646 then throw("reveal must be in the past blocks after commit")
4747 else {
4848 let m = toBase58String(h.caller.bytes)
4949 let l = extract(getString(this, ((("commit_" + m) + "_") + o)))
5050 let q = toBase16String(sha256(toBytes((p + a))))
5151 if ((l != q))
5252 then throw("invalid reveal")
5353 else {
5454 let r = ((("reveal_" + m) + "_") + o)
5555 if (isDefined(getString(this, r)))
5656 then throw("reveal already in blockchain")
5757 else {
5858 let s = ("sponsored_" + m)
5959 let t = c(s, 0)
6060 if ((t >= b))
6161 then ScriptResult(WriteSet([DataEntry(s, (t - b)), DataEntry(r, p)]), TransferSet([ScriptTransfer(h.caller, b, unit)]))
6262 else WriteSet([DataEntry(r, p)])
6363 }
6464 }
6565 }
6666
6767

github/deemru/w8io/169f3d6 
31.67 ms