tx · 88dtVwKsTZzTxQ6mYMcnUgwCCVkXiJsFeyzuvR5xRxsY

3N13n17wshqM6LLToE94FsSWPxCeZuShJc1:  -0.01000000 Waves

2022.05.27 16:58 [2070166] smart account 3N13n17wshqM6LLToE94FsSWPxCeZuShJc1 > SELF 0.00000000 Waves

{ "type": 13, "id": "88dtVwKsTZzTxQ6mYMcnUgwCCVkXiJsFeyzuvR5xRxsY", "fee": 1000000, "feeAssetId": null, "timestamp": 1653659940401, "version": 1, "sender": "3N13n17wshqM6LLToE94FsSWPxCeZuShJc1", "senderPublicKey": "2YKRAaXsuhkg3ZHAoEot7REoGmSy8R5XnqU8nKpVC9Pb", "proofs": [ "5hcgqpWQfh67jxCfDaEXDrdtpBuS38JDzRwCPwZ5F8qiafxisRAeSmKFpR6KbpDD8KEkKJFMXpV11hic9S45u6LD" ], "script": "base64:AAIDAAAAAAAAAA4IARIAEgASBgoEAQQIAgAAAAEBAAAAC2RlcG9zaXRJbXBsAAAAAgAAAANwbXQAAAAGY2FsbGVyAwkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAANwbXQAAAAHYXNzZXRJZAkAAAIAAAABAgAAACFjYW4gaG9kbCB3YXZlcyBvbmx5IGF0IHRoZSBtb21lbnQEAAAACmN1cnJlbnRLZXkJAAJYAAAAAQgFAAAABmNhbGxlcgAAAAVieXRlcwQAAAANY3VycmVudEFtb3VudAQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAApjdXJyZW50S2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAEAAAACW5ld0Ftb3VudAkAAGQAAAACBQAAAA1jdXJyZW50QW1vdW50CAUAAAADcG10AAAABmFtb3VudAkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAKY3VycmVudEtleQUAAAAJbmV3QW1vdW50BQAAAANuaWwAAAADAA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AgAAAAECAAAAEk5vdCBlbm91Z2ggYmFsYW5jZQMJAQAAAAIhPQAAAAIFAAAAC2V4cGVjdGVkVmVjBQAAAAN2ZWMJAAACAAAAAQIAAAAqdmVjIHBhcmFtZXRlciBkb2Vzbid0IG1hdGNoIGV4cGVjdGVkIHZhbHVlCQEAAAAMU2NyaXB0UmVzdWx0AAAAAgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAKY3VycmVudEtleQUAAAAJbmV3QW1vdW50CQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAABG5hbWUCAAAABiBUb3RhbAUAAAANd2l0aGRyYXdUb3RhbAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAARuYW1lAgAAAAkgRG9uYXRpb24FAAAABmFtb3VudAUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAAGYW1vdW50BQAAAAR1bml0CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAAD2RvbmF0aW9uQWRkcmVzcwUAAAAGYW1vdW50BQAAAAR1bml0BQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABhgl/Jk=", "chainId": 84, "height": 2070166, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+func a (b,c) = if (isDefined(b.assetId))
5+ then throw("can hodl waves only at the moment")
6+ else {
7+ let d = toBase58String(c.bytes)
8+ let e = {
9+ let f = getInteger(this, d)
10+ if ($isInstanceOf(f, "Int"))
11+ then {
12+ let g = f
13+ g
14+ }
15+ else 0
16+ }
17+ let h = (e + b.amount)
18+ WriteSet([DataEntry(d, h)])
19+ }
20+
21+
22+@Callable(i)
23+func default () = a(extract(i.payment), i.caller)
24+
25+
26+
27+@Callable(i)
28+func deposit () = a(extract(i.payment), i.caller)
29+
30+
31+
32+@Callable(i)
33+func withdraw (j,k,l,m) = {
34+ let n = toBytes("Hello, Ride4DApp!")
35+ let o = extract(addressFromString("3MuRvopWuz8btE9Bx8faC8Ev14aSVifNbuF"))
36+ let p = if (k)
37+ then (2 * j)
38+ else j
39+ let d = toBase58String(i.caller.bytes)
40+ let e = {
41+ let f = getInteger(this, d)
42+ if ($isInstanceOf(f, "Int"))
43+ then {
44+ let g = f
45+ g
46+ }
47+ else 0
48+ }
49+ let h = (e - p)
50+ if ((0 > p))
51+ then throw("Can't withdraw negative amount")
52+ else if ((0 > h))
53+ then throw("Not enough balance")
54+ else if ((n != m))
55+ then throw("vec parameter doesn't match expected value")
56+ else ScriptResult(WriteSet([DataEntry(d, h), DataEntry((l + " Total"), p), DataEntry((l + " Donation"), j)]), TransferSet([ScriptTransfer(i.caller, j, unit), ScriptTransfer(o, j, unit)]))
57+ }
58+
59+
60+@Verifier(q)
61+func r () = true
62+

github/deemru/w8io/169f3d6 
22.84 ms