tx · 4znRZigWURLw6KWiJHdC7SwFkKQ6DrV8KJqLsmaKLhMV

3N1iBA7nz6KkAP7RaHtQxU3TC1io912SWBz:  -0.01000000 Waves

2022.04.12 18:03 [2005514] smart account 3N1iBA7nz6KkAP7RaHtQxU3TC1io912SWBz > SELF 0.00000000 Waves

{ "type": 13, "id": "4znRZigWURLw6KWiJHdC7SwFkKQ6DrV8KJqLsmaKLhMV", "fee": 1000000, "feeAssetId": null, "timestamp": 1649775836852, "version": 1, "sender": "3N1iBA7nz6KkAP7RaHtQxU3TC1io912SWBz", "senderPublicKey": "upcZco3mz5KhMJ6hafUZU18QAKjN92atRHzDfYdeJJt", "proofs": [ "54tnhZxUtpXaLfJ1CSwK4e32mrvSYCGq8eMUTph8iU137waD3B2EyKZ5dai1K9oUHQyEqM6VwKVgpqFJue1Tf6Vs" ], "script": "base64:AAIFAAAAAAAAABIIAhIAEgMKAQESBwoFBAIBCB8AAAAAAAAAAwAAAANjdHgBAAAAB2RlcG9zaXQAAAAABAAAAANwbXQDCQAAZgAAAAIJAAGQAAAAAQgFAAAAA2N0eAAAAAhwYXltZW50cwAAAAAAAAAAAAkAAZEAAAACCAUAAAADY3R4AAAACHBheW1lbnRzAAAAAAAAAAAACQAAAgAAAAECAAAAHUF0IGxlYXN0IG9uZSBwYXltZW50IGV4cGVjdGVkBAAAAAdhc3NldElkAwkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAANwbXQAAAAHYXNzZXRJZAkBAAAABXZhbHVlAAAAAQgFAAAAA3BtdAAAAAdhc3NldElkCQAAAgAAAAECAAAAG09ubHkgV0FWRVMgcGF5bWVudCBhY2NlcHRlZAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkABCUAAAABCAUAAAADY3R4AAAABmNhbGxlcggFAAAAA3BtdAAAAAZhbW91bnQFAAAAA25pbAAAAANjdHgBAAAACHdpdGhkcmF3AAAAAQAAAAZhbW91bnQEAAAAB2FkZHJlc3MJAAQlAAAAAQgFAAAAA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QAAAAIkaQoBAAAABSRmMF8yAAAAAgAAAAIkYQAAAAIkaQMJAABnAAAAAgUAAAACJGkFAAAAAiRzBQAAAAIkYQkAAAIAAAABAgAAABNMaXN0IHNpemUgZXhjZWVkcyA1CQEAAAAFJGYwXzIAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACBQAAAAUkYWNjMAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAgAAAAAAAAAAAwAAAAAAAAAABAAAAAAAAAAABQAAAABWejDo", "chainId": 84, "height": 2005514, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 14C6tdG1EZFpvkYuVGRfc1c2V2pfn54UZBWSh4AQMnZe Next: 7n2ZAjBNWS1rPMiagEnEsTRkce9cmGXEnMGR76X9zcYL Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func deposit () = {
88 let b = if ((size(a.payments) > 0))
99 then a.payments[0]
1010 else throw("At least one payment expected")
1111 let c = if (isDefined(b.assetId))
1212 then value(b.assetId)
1313 else throw("Only WAVES payment accepted")
1414 [IntegerEntry(toString(a.caller), b.amount)]
1515 }
1616
1717
1818
1919 @Callable(a)
2020 func withdraw (d) = {
2121 let e = toString(a.caller)
2222 let f = valueOrErrorMessage(getInteger(this, e), "You don't have a deposit")
2323 let g = if (if ((d > 0))
2424 then true
2525 else (d > f))
2626 then d
2727 else throw("Amount to withdraw must be more than 0 and less than current deposit")
2828 if ((d == f))
2929 then [DeleteEntry(e)]
3030 else [IntegerEntry(e, (f - d)), ScriptTransfer(a.caller, d, unit)]
3131 }
3232
3333
3434
3535 @Callable(a)
3636 func allArgTypes (h,i,j,k,l) = {
3737 let m = [1, 2, 3, 4, 5]
3838 func n (o,p) = if ((p >= size(l)))
3939 then o
4040 else {
4141 let q = toString(p)
4242 (o :+ {
4343 let r = l[p]
4444 if ($isInstanceOf(r, "Boolean"))
4545 then {
4646 let s = r
4747 BooleanEntry((q + "-bool"), s)
4848 }
4949 else if ($isInstanceOf(r, "ByteVector"))
5050 then {
5151 let s = r
5252 BinaryEntry((q + "-bin"), s)
5353 }
5454 else if ($isInstanceOf(r, "Int"))
5555 then {
5656 let t = r
5757 IntegerEntry((q + "-int"), t)
5858 }
5959 else if ($isInstanceOf(r, "String"))
6060 then {
6161 let u = r
6262 StringEntry((q + "-str"), u)
6363 }
6464 else throw("Match error")
6565 })
6666 }
6767
6868 ([BooleanEntry("bool", h), BinaryEntry("bin", i), IntegerEntry("int", j), StringEntry("str", k)] ++ {
6969 let v = m
7070 let w = size(v)
7171 let x = nil
7272 func y (z,A) = if ((A >= w))
7373 then z
7474 else n(z, v[A])
7575
7676 func B (z,A) = if ((A >= w))
7777 then z
7878 else throw("List size exceeds 5")
7979
8080 B(y(y(y(y(y(x, 0), 1), 2), 3), 4), 5)
8181 })
8282 }
8383
8484

github/deemru/w8io/169f3d6 
40.03 ms