tx · 4UX9GT7eJdxnddVYeSW7w4YpQrQdees4GKWicyjFcXwM 3N3giqcqo68bVfkcJt2q7zaaWE7iAJAcKcb: -0.01000010 Waves 2021.07.08 12:31 [1604448] smart account 3N3giqcqo68bVfkcJt2q7zaaWE7iAJAcKcb > SELF 0.00000000 Waves
{ "type": 13, "id": "4UX9GT7eJdxnddVYeSW7w4YpQrQdees4GKWicyjFcXwM", "fee": 1000010, "feeAssetId": null, "timestamp": 1625736735492, "version": 2, "chainId": 84, "sender": "3N3giqcqo68bVfkcJt2q7zaaWE7iAJAcKcb", "senderPublicKey": "DjiSdNEMrwCK2ABBPRVSzf8xNRsUAy1if8qvaRtPrWkJ", "proofs": [ "4U65aCPxMWVVq3ZmxYqWerznCUfjoLH9qMQ9vTBqrFCaPDZfZb19L6nqQpxdJQseKkYnRiCk212d8auBCLaZ95s7" ], "script": "base64:AAIFAAAAAAAAAIcIAhIAEgMKAQEaCgoCYTESBHdFVVIaBwoCYTISAWkaCQoCYTMSA3BtdBoQCgJhNBIKY3VycmVudEtleRoTCgJhNRINY3VycmVudEFtb3VudBoNCgJhNhIHJG1hdGNoMBoHCgJhNxIBYRoPCgJhOBIJbmV3QW1vdW50GgwKAmE5EgZhbW91bnQAAAABAAAAAAJhMQEAAAAgVu8vcsSgHvEQ2SYqrWVs5BIpH1m+hkINf29KhB4c4/AAAAACAAAAAmEyAQAAAAdkZXBvc2l0AAAAAAQAAAACYTMJAAGRAAAAAggFAAAAAmEyAAAACHBheW1lbnRzAAAAAAAAAAAAAwkBAAAAAiE9AAAAAggFAAAAAmEzAAAAB2Fzc2V0SWQFAAAAAmExCQAAAgAAAAECAAAANXdFVVIgLSAnNnJNYmpBQlJaYXZIUmM3ZjZ5Z1pGV1BxWURXRm0zakd3M2hxWWV1blpBR3cnBAAAAAJhNAkAAlgAAAABCAgFAAAAAmEyAAAABmNhbGxlcgAAAAVieXRlcwQAAAACYTUEAAAAAmE2CQAEGgAAAAIFAAAABHRoaXMFAAAAAmE0AwkAAAEAAAACBQAAAAJhNgIAAAADSW50BAAAAAJhNwUAAAACYTYFAAAAAmE3AAAAAAAAAAAABAAAAAJhOAkAAGQAAAACBQAAAAJhNQgFAAAAAmEzAAAABmFtb3VudAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAACYTQFAAAAAmE4BQAAAANuaWwAAAACYTIBAAAAB3dpdGRyYXcAAAABAAAAAmE5BAAAAAJhNAkAAlgAAAABCAgFAAAAAmEyAAAABmNhbGxlcgAAAAVieXRlcwQAAAACYTUEAAAAAmE2CQAEGgAAAAIFAAAABHRoaXMFAAAAAmE0AwkAAAEAAAACBQAAAAJhNgIAAAADSW50BAAAAAJhNwUAAAACYTYFAAAAAmE3AAAAAAAAAAAABAAAAAJhOAkAAGUAAAACBQAAAAJhNQUAAAACYTkDCQAAZgAAAAIAAAAAAAAAAAAFAAAAAmE5CQAAAgAAAAECAAAAH2Nhbid0IHdpdGhkcmF3IG5lZ2F0aXZlcyBhbW91bnQDCQAAZgAAAAIAAAAAAAAAAAAFAAAAAmE4CQAAAgAAAAECAAAAEk5vdCBlbm91Z2ggYmFsYW5jZQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAACYTQFAAAAAmE4CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAJhMgAAAAZjYWxsZXIFAAAAAmE5BQAAAAJhMQUAAAADbmlsAAAAACTU4Ws=", "height": 1604448, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7g9zk8EgE11znA85kuAvSCARcyqp3usvFBU4aBRuwDko Next: B9MWNUY4PTgmhdW6ChmkVyto11f7Z4GtZ7njTUP8Tsi1 Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let wEUR = base58'' | |
4 | + | let wEUR = base58'6rMbjABRZavHRc7f6ygZFWPqYDWFm3jGw3hqYeunZAGw' | |
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | 7 | func deposit () = { | |
8 | 8 | let pmt = i.payments[0] | |
9 | 9 | if ((pmt.assetId != wEUR)) | |
10 | - | then throw("wEUR - ' | |
10 | + | then throw("wEUR - '6rMbjABRZavHRc7f6ygZFWPqYDWFm3jGw3hqYeunZAGw'") | |
11 | 11 | else { | |
12 | 12 | let currentKey = toBase58String(i.caller.bytes) | |
13 | 13 | let currentAmount = match getInteger(this, currentKey) { |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let wEUR = base58'' | |
4 | + | let wEUR = base58'6rMbjABRZavHRc7f6ygZFWPqYDWFm3jGw3hqYeunZAGw' | |
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | 7 | func deposit () = { | |
8 | 8 | let pmt = i.payments[0] | |
9 | 9 | if ((pmt.assetId != wEUR)) | |
10 | - | then throw("wEUR - ' | |
10 | + | then throw("wEUR - '6rMbjABRZavHRc7f6ygZFWPqYDWFm3jGw3hqYeunZAGw'") | |
11 | 11 | else { | |
12 | 12 | let currentKey = toBase58String(i.caller.bytes) | |
13 | 13 | let currentAmount = match getInteger(this, currentKey) { | |
14 | 14 | case a: Int => | |
15 | 15 | a | |
16 | 16 | case _ => | |
17 | 17 | 0 | |
18 | 18 | } | |
19 | 19 | let newAmount = (currentAmount + pmt.amount) | |
20 | 20 | [IntegerEntry(currentKey, newAmount)] | |
21 | 21 | } | |
22 | 22 | } | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | ||
26 | 26 | @Callable(i) | |
27 | 27 | func witdraw (amount) = { | |
28 | 28 | let currentKey = toBase58String(i.caller.bytes) | |
29 | 29 | let currentAmount = match getInteger(this, currentKey) { | |
30 | 30 | case a: Int => | |
31 | 31 | a | |
32 | 32 | case _ => | |
33 | 33 | 0 | |
34 | 34 | } | |
35 | 35 | let newAmount = (currentAmount - amount) | |
36 | 36 | if ((0 > amount)) | |
37 | 37 | then throw("can't withdraw negatives amount") | |
38 | 38 | else if ((0 > newAmount)) | |
39 | 39 | then throw("Not enough balance") | |
40 | 40 | else [IntegerEntry(currentKey, newAmount), ScriptTransfer(i.caller, amount, wEUR)] | |
41 | 41 | } | |
42 | 42 | ||
43 | 43 |
github/deemru/w8io/169f3d6 24.51 ms ◑