tx · 6iKwBM18VxhwvsPGHhtiahvXFSFeFqNmgfzvT75eTCyG 3N7KPSUwpMgvDEVGw1DYBnKDiixSQUXhn2P: -0.01000000 Waves 2023.05.31 07:45 [2601682] smart account 3N7KPSUwpMgvDEVGw1DYBnKDiixSQUXhn2P > SELF 0.00000000 Waves
{ "type": 13, "id": "6iKwBM18VxhwvsPGHhtiahvXFSFeFqNmgfzvT75eTCyG", "fee": 1000000, "feeAssetId": null, "timestamp": 1685508336058, "version": 2, "chainId": 84, "sender": "3N7KPSUwpMgvDEVGw1DYBnKDiixSQUXhn2P", "senderPublicKey": "BTvXQMmkgSf57dbcqWxpEvbi3ZYcEeWFkkXDZC6FrneM", "proofs": [ "2eDTaaEjq6hiwiQT8LHsyHb2NNqp4ct2Xmv2yendtJXR3eFCNshAZExJhCUxS6mtR7JjDo6AqdAAf4wQZcayKRuk" ], "script": "base64:BgILCAISABIAEgMKAQEBAAxvd25lckFkZHJlc3MCIzNNdmpBYURZSHBTNEE1SzRDVjNrWk1NRUg5bTlKZEJTdmJxAwFpAQRjYWxsAAQFYXNzZXQJAMMIBwIFQXNzZXQCAAABAAAGBQR1bml0AAAEB2Fzc2V0SWQJALgIAQUFYXNzZXQJAMwIAgkBC0JpbmFyeUVudHJ5AgIDYmluAQAJAMwIAgkBDEJvb2xlYW5FbnRyeQICBGJvb2wGCQDMCAIJAQxJbnRlZ2VyRW50cnkCAgNpbnQAAQkAzAgCCQELU3RyaW5nRW50cnkCAgNzdHICAAkAzAgCCQELRGVsZXRlRW50cnkBAgNzdHIJAMwIAgUFYXNzZXQJAMwIAgkBB1JlaXNzdWUDBQdhc3NldElkAAEHCQDMCAIJAQRCdXJuAgUHYXNzZXRJZAABCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMIBQFpBmNhbGxlcgABBQdhc3NldElkBQNuaWwBaQEHZGVwb3NpdAAECmN1cnJlbnRLZXkJANgEAQgIBQFpBmNhbGxlcgVieXRlcwQNZGVwb3NpdEFtb3VudA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dAUDbmlsAIJ0T98=", "height": 2601682, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3kCgctn8UTQtPQPzqTq415tFqZjJFrHGjwRY4TcwnaDj Next: 6py2KX9oKWHjv8AHGXqfSjG1nEcZTzrUDV2LBfz2FCQf Diff:
Old | New | Differences | |
---|---|---|---|
1 | - | {-# STDLIB_VERSION | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "3MvjAaDYHpS4A5K4CV3kZMMEH9m9JdBSvbq" | |
46 | 46 | } | |
47 | 47 | ||
48 | 48 | ||
49 | - | @Verifier(p) | |
50 | - | func q () = sigVerify(p.bodyBytes, p.proofs[0], p.senderPublicKey) | |
51 | - |
Old | New | Differences | |
---|---|---|---|
1 | - | {-# STDLIB_VERSION | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "3MvjAaDYHpS4A5K4CV3kZMMEH9m9JdBSvbq" | |
5 | 5 | ||
6 | 6 | @Callable(b) | |
7 | 7 | func call () = { | |
8 | 8 | let c = Issue("Asset", "", 1, 0, true, unit, 0) | |
9 | 9 | let d = calculateAssetId(c) | |
10 | 10 | [BinaryEntry("bin", base58''), BooleanEntry("bool", true), IntegerEntry("int", 1), StringEntry("str", ""), DeleteEntry("str"), c, Reissue(d, 1, false), Burn(d, 1), ScriptTransfer(b.caller, 1, d)] | |
11 | 11 | } | |
12 | 12 | ||
13 | 13 | ||
14 | 14 | ||
15 | 15 | @Callable(b) | |
16 | 16 | func deposit () = { | |
17 | 17 | let e = toBase58String(b.caller.bytes) | |
18 | 18 | let f = (b.payments[0].amount - 5000000) | |
19 | 19 | let g = 5000000 | |
20 | 20 | let h = getIntegerValue(this, ("platform_bal" + a)) | |
21 | 21 | let i = (h + g) | |
22 | 22 | [IntegerEntry(("balance_" + e), f), IntegerEntry(("platform_bal_" + a), i)] | |
23 | 23 | } | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | ||
27 | 27 | @Callable(b) | |
28 | 28 | func withDraw (j) = { | |
29 | 29 | let k = toBase58String(b.caller.bytes) | |
30 | 30 | let e = toBase58String(b.caller.bytes) | |
31 | 31 | let l = { | |
32 | 32 | let m = getInteger(this, ("platform_bal_" + k)) | |
33 | 33 | if ($isInstanceOf(m, "Int")) | |
34 | 34 | then { | |
35 | 35 | let n = m | |
36 | 36 | n | |
37 | 37 | } | |
38 | 38 | else 0 | |
39 | 39 | } | |
40 | 40 | let o = (l - j) | |
41 | 41 | if ((k != a)) | |
42 | 42 | then throw("Not Authorized") | |
43 | 43 | else if ((l == 0)) | |
44 | 44 | then throw("No sufficent amount available") | |
45 | 45 | else [IntegerEntry(("platform_bal" + a), o), ScriptTransfer(b.caller, j, unit)] | |
46 | 46 | } | |
47 | 47 | ||
48 | 48 | ||
49 | - | @Verifier(p) | |
50 | - | func q () = sigVerify(p.bodyBytes, p.proofs[0], p.senderPublicKey) | |
51 | - |
github/deemru/w8io/169f3d6 27.93 ms ◑