tx · 2ZLXqE1ZV21dnEHHndv2SgBGHd66Ug49BdeS3U2ZfSwn 3N3giqcqo68bVfkcJt2q7zaaWE7iAJAcKcb: -0.01000010 Waves 2021.07.08 12:51 [1604466] smart account 3N3giqcqo68bVfkcJt2q7zaaWE7iAJAcKcb > SELF 0.00000000 Waves
{ "type": 13, "id": "2ZLXqE1ZV21dnEHHndv2SgBGHd66Ug49BdeS3U2ZfSwn", "fee": 1000010, "feeAssetId": null, "timestamp": 1625738000743, "version": 2, "chainId": 84, "sender": "3N3giqcqo68bVfkcJt2q7zaaWE7iAJAcKcb", "senderPublicKey": "DjiSdNEMrwCK2ABBPRVSzf8xNRsUAy1if8qvaRtPrWkJ", "proofs": [ "5JZ3NAtFcfp11uSn1VijgAEXcuVushHYp8d6H5Z2dVcwz3XigpHk9cbWsaLJd5zjhsDXgfko7gG3xhewYFNjT6sp" ], "script": "base64:AAIFAAAAAAAAAIcIAhIAEgMKAQEaCgoCYTESBHdFVVIaBwoCYTISAWkaCQoCYTMSA3BtdBoQCgJhNBIKY3VycmVudEtleRoTCgJhNRINY3VycmVudEFtb3VudBoNCgJhNhIHJG1hdGNoMBoHCgJhNxIBYRoPCgJhOBIJbmV3QW1vdW50GgwKAmE5EgZhbW91bnQAAAABAAAAAAJhMQEAAAAgUYDNpePZyi43x72koNnu5jkWsoz2abdYReRwz6rJw9oAAAACAAAAAmEyAQAAAAdkZXBvc2l0AAAAAAQAAAACYTMJAAGRAAAAAggFAAAAAmEyAAAACHBheW1lbnRzAAAAAAAAAAAAAwkBAAAAAiE9AAAAAggFAAAAAmEzAAAAB2Fzc2V0SWQFAAAAAmExCQAAAgAAAAECAAAANXdFVVIgLSAnNlY5d1BxQjNnTVRxYTgyOVhWa3hqcFJueHJNR1pNaHhSNDQxSkMya21maDMnBAAAAAJhNAkAAlgAAAABCAgFAAAAAmEyAAAABmNhbGxlcgAAAAVieXRlcwQAAAACYTUEAAAAAmE2CQAEGgAAAAIFAAAABHRoaXMFAAAAAmE0AwkAAAEAAAACBQAAAAJhNgIAAAADSW50BAAAAAJhNwUAAAACYTYFAAAAAmE3AAAAAAAAAAAABAAAAAJhOAkAAGQAAAACBQAAAAJhNQgFAAAAAmEzAAAABmFtb3VudAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAACYTQFAAAAAmE4BQAAAANuaWwAAAACYTIBAAAAB3dpdGRyYXcAAAABAAAAAmE5BAAAAAJhNAkAAlgAAAABCAgFAAAAAmEyAAAABmNhbGxlcgAAAAVieXRlcwQAAAACYTUEAAAAAmE2CQAEGgAAAAIFAAAABHRoaXMFAAAAAmE0AwkAAAEAAAACBQAAAAJhNgIAAAADSW50BAAAAAJhNwUAAAACYTYFAAAAAmE3AAAAAAAAAAAABAAAAAJhOAkAAGUAAAACBQAAAAJhNQUAAAACYTkDCQAAZgAAAAIAAAAAAAAAAAAFAAAAAmE5CQAAAgAAAAECAAAAH2Nhbid0IHdpdGhkcmF3IG5lZ2F0aXZlcyBhbW91bnQDCQAAZgAAAAIAAAAAAAAAAAAFAAAAAmE4CQAAAgAAAAECAAAAEk5vdCBlbm91Z2ggYmFsYW5jZQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAACYTQFAAAAAmE4CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAJhMgAAAAZjYWxsZXIFAAAAAmE5BQAAAAJhMQUAAAADbmlsAAAAAEcXQVY=", "height": 1604466, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9GnA8sqHhmiaJEyJiAkzkk9xkGi6kfXDTncZoA4htmug Next: FyoDZk8tVYeGeKAbVZHnHazkwHdeFsXCWo6ZMJsHatZi Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'6V9wPqB3gMTqa829XVkxjpRnxrMGZMhxR441JC2kmfh3' | |
5 | 5 | ||
6 | 6 | @Callable(b) | |
7 | 7 | func deposit () = { | |
8 | 8 | let c = b.payments[0] | |
9 | 9 | if ((c.assetId != a)) | |
10 | 10 | then throw("wEUR - '6V9wPqB3gMTqa829XVkxjpRnxrMGZMhxR441JC2kmfh3'") | |
11 | 11 | else { | |
12 | 12 | let d = toBase58String(b.caller.bytes) | |
13 | 13 | let e = { | |
14 | 14 | let f = getInteger(this, d) | |
15 | 15 | if ($isInstanceOf(f, "Int")) | |
16 | 16 | then { | |
17 | 17 | let g = f | |
18 | 18 | g | |
19 | 19 | } | |
20 | 20 | else 0 | |
21 | 21 | } | |
22 | 22 | let h = (e + c.amount) | |
23 | 23 | [IntegerEntry(d, h)] | |
24 | 24 | } | |
25 | 25 | } | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | ||
29 | 29 | @Callable(b) | |
30 | 30 | func witdraw (i) = { | |
31 | 31 | let d = toBase58String(b.caller.bytes) | |
32 | 32 | let e = { | |
33 | 33 | let f = getInteger(this, d) | |
34 | 34 | if ($isInstanceOf(f, "Int")) | |
35 | 35 | then { | |
36 | 36 | let g = f | |
37 | 37 | g | |
38 | 38 | } | |
39 | 39 | else 0 | |
40 | 40 | } | |
41 | 41 | let h = (e - i) | |
42 | 42 | if ((0 > i)) | |
43 | 43 | then throw("can't withdraw negatives amount") | |
44 | 44 | else if ((0 > h)) | |
45 | 45 | then throw("Not enough balance") | |
46 | 46 | else [IntegerEntry(d, h), ScriptTransfer(b.caller, i, a)] | |
47 | 47 | } | |
48 | 48 | ||
49 | 49 |
github/deemru/w8io/169f3d6 33.74 ms ◑