tx · Cgs4kgSLhfrChh5WH96ugTMHy59aV293bcPdp3S2A4Wu 3MshECSyzvqxEmRbzCGfL36NeZmJKLdo3nN: -0.01400000 Waves 2022.01.30 03:12 [1900935] smart account 3MshECSyzvqxEmRbzCGfL36NeZmJKLdo3nN > SELF 0.00000000 Waves
{ "type": 13, "id": "Cgs4kgSLhfrChh5WH96ugTMHy59aV293bcPdp3S2A4Wu", "fee": 1400000, "feeAssetId": null, "timestamp": 1643501553124, "version": 2, "chainId": 84, "sender": "3MshECSyzvqxEmRbzCGfL36NeZmJKLdo3nN", "senderPublicKey": "7VZDUsa6QgaFEedQ8z2o1pa7LT7hqMPf9ZaqKt4KzeC6", "proofs": [ "5yNMWx3R2DGdFfuu3fup35iVMXksEQaAWeMoad1wo5xmScgWQvzpH9yKycrpiVrfB77BemciWH34nuqVyYAonCy9" ], "script": "base64:AAIFAAAAAAAAAAgIAhIAEgASAAAAAAMAAAAAC2Jkc21Bc3NldElkAQAAACBV7sO+qgvwUOhxyBuqbnCepLHI/kouucHxzMVrD3iXSwAAAAAETU9URAIAAAAAAAAAAAZiZG1zU0MBAAAAGgFXmrWduIs+QWpr5BidLjsKdq8GItA1inUQAAAAAwAAAAFpAQAAAARiZHNtAAAAAAQAAAALd2F2ZXNBbW91bnQICQAD7wAAAAEFAAAABHRoaXMAAAAJYXZhaWxhYmxlBAAAAApiZHNtQW1vdW50CQAD8AAAAAIFAAAABHRoaXMFAAAAC2Jkc21Bc3NldElkBAAAAAFyCQAD/AAAAAQJAQAAAAdBZGRyZXNzAAAAAQUAAAAGYmRtc1NDAgAAAAdidXlOc2J0BQAAAANuaWwJAARMAAAAAgkBAAAAD0F0dGFjaGVkUGF5bWVudAAAAAIFAAAABHVuaXQAAAAAADuaygAFAAAAA25pbAMJAAAAAAAAAgUAAAABcgUAAAABcgQAAAAObmV3V2F2ZXNBbW91bnQICQAD7wAAAAEFAAAABHRoaXMAAAAJYXZhaWxhYmxlBAAAAA1uZXdCZHNtQW1vdW50CQAD8AAAAAIFAAAABHRoaXMFAAAAC2Jkc21Bc3NldElkAwkAAGYAAAACCQAAZQAAAAIFAAAADW5ld0Jkc21BbW91bnQFAAAACmJkc21BbW91bnQAAAAAAACYloAFAAAAA25pbAkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAAA3c6IAkAAaQAAAABBQAAAAt3YXZlc0Ftb3VudAIAAAAFLCBiOiAJAAGkAAAAAQUAAAAKYmRzbUFtb3VudAIAAAAHdyBuZXc6IAkAAaQAAAABBQAAAA5uZXdXYXZlc0Ftb3VudAIAAAAJLCBiIG5ldzogCQABpAAAAAEFAAAADW5ld0Jkc21BbW91bnQJAAACAAAAAQIAAAAHYmFkIHJlcQAAAAFpAQAAAAVjYWxsMQAAAAAEAAAAAXIJAAP8AAAABAUAAAAEdGhpcwIAAAAFY2FsbDIFAAAAA25pbAUAAAADbmlsAwkAAAAAAAACBQAAAAFyBQAAAAFyBQAAAANuaWwJAAACAAAAAQIAAAAHYmFkIHJlcQAAAAFpAQAAAAVjYWxsMgAAAAAEAAAAAXIJAAP8AAAABAUAAAAEdGhpcwIAAAAFY2FsbDEFAAAAA25pbAUAAAADbmlsAwkAAAAAAAACBQAAAAFyBQAAAAFyBQAAAANuaWwJAAACAAAAAQIAAAAHYmFkIHJlcQAAAAC7nraY", "height": 1900935, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 98MFMy9g77h9tEmA6gGuG9P4tSPkVaibrLe3VCBPZvDR Next: none Diff:
Old | New | Differences | |
---|---|---|---|
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let bdsmAssetId = base58'6nSpVyNH7yM69eg446wrQR94ipbbcmZMU1ENPwanC97g' | |
5 | + | ||
6 | + | let MOTD = "" | |
5 | 7 | ||
6 | 8 | let bdmsSC = base58'3PG2vMhK5CPqsCDodvLGzQ84QkoHXCJ3oNP' | |
7 | 9 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let bdsmAssetId = base58'6nSpVyNH7yM69eg446wrQR94ipbbcmZMU1ENPwanC97g' | |
5 | + | ||
6 | + | let MOTD = "" | |
5 | 7 | ||
6 | 8 | let bdmsSC = base58'3PG2vMhK5CPqsCDodvLGzQ84QkoHXCJ3oNP' | |
7 | 9 | ||
8 | 10 | @Callable(i) | |
9 | 11 | func bdsm () = { | |
10 | 12 | let wavesAmount = wavesBalance(this).available | |
11 | 13 | let bdsmAmount = assetBalance(this, bdsmAssetId) | |
12 | 14 | let r = invoke(Address(bdmsSC), "buyNsbt", nil, [AttachedPayment(unit, 1000000000)]) | |
13 | 15 | if ((r == r)) | |
14 | 16 | then { | |
15 | 17 | let newWavesAmount = wavesBalance(this).available | |
16 | 18 | let newBdsmAmount = assetBalance(this, bdsmAssetId) | |
17 | 19 | if (((newBdsmAmount - bdsmAmount) > 10000000)) | |
18 | 20 | then nil | |
19 | 21 | else throw(((((((("w: " + toString(wavesAmount)) + ", b: ") + toString(bdsmAmount)) + "w new: ") + toString(newWavesAmount)) + ", b new: ") + toString(newBdsmAmount))) | |
20 | 22 | } | |
21 | 23 | else throw("bad req") | |
22 | 24 | } | |
23 | 25 | ||
24 | 26 | ||
25 | 27 | ||
26 | 28 | @Callable(i) | |
27 | 29 | func call1 () = { | |
28 | 30 | let r = invoke(this, "call2", nil, nil) | |
29 | 31 | if ((r == r)) | |
30 | 32 | then nil | |
31 | 33 | else throw("bad req") | |
32 | 34 | } | |
33 | 35 | ||
34 | 36 | ||
35 | 37 | ||
36 | 38 | @Callable(i) | |
37 | 39 | func call2 () = { | |
38 | 40 | let r = invoke(this, "call1", nil, nil) | |
39 | 41 | if ((r == r)) | |
40 | 42 | then nil | |
41 | 43 | else throw("bad req") | |
42 | 44 | } | |
43 | 45 | ||
44 | 46 |
github/deemru/w8io/026f985 19.90 ms ◑