tx · 8W9XsVN32Fe9hVEKhhrMju1rHpr2aPK836oj4b52shig
3MsWjZnJQ153rbLHvn6hqKELqn35R472VpQ: -0.05000000 Waves
2021.09.10 21:45 [1697328] smart account 3MsWjZnJQ153rbLHvn6hqKELqn35R472VpQ > SELF 0.00000000 Waves
{
"type": 13,
"id": "8W9XsVN32Fe9hVEKhhrMju1rHpr2aPK836oj4b52shig",
"fee": 5000000,
"feeAssetId": null,
"timestamp": 1631299550855,
"version": 2,
"chainId": 84,
"sender": "3MsWjZnJQ153rbLHvn6hqKELqn35R472VpQ",
"senderPublicKey": "CdNy1QDsxM9o785GEAVwFCkE3kkrhgdcZ8VFAm6Nu8nx",
"proofs": [
"v4rfhuceWfCu4Twdh44CaxKVRzftCdKqeafy9qU5WAeRJHinTpP8YT3HCinpnLEM8UuTFPVqAqb5D7wUXqD1dKj"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAgEAAAAYcHJpdmF0ZUdldEFjY291bnRCYWxhbmNlAAAAAQAAAAdhc3NldElkAwkAAAAAAAACBQAAAAdhc3NldElkAgAAAAVXQVZFUwgJAAPvAAAAAQUAAAAEdGhpcwAAAAlhdmFpbGFibGUJAAPwAAAAAgUAAAAEdGhpcwkAAlkAAAABBQAAAAdhc3NldElkAQAAAAtnZXRCYWxhbmNlcwAAAAAEAAAACnd2c0JhbGFuY2UJAQAAABhwcml2YXRlR2V0QWNjb3VudEJhbGFuY2UAAAABAgAAAAVXQVZFUwQAAAAKdGtuQmFsYW5jZQkBAAAAGHByaXZhdGVHZXRBY2NvdW50QmFsYW5jZQAAAAECAAAALDVTaDlLZ2hma1p5aGp3dW9kb3ZEaEI2UGdoRFVHQkhpQVBaNE1rclBnS3RYCQAETAAAAAIFAAAACnd2c0JhbGFuY2UJAARMAAAAAgUAAAAKdGtuQmFsYW5jZQUAAAADbmlsAAAAAQAAAAFpAQAAAARjYWxsAAAAAAQAAAABYgkBAAAAC2dldEJhbGFuY2VzAAAAAAMGCQAAAgAAAAEJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAABndhdmVzIAkAAaQAAAABCQABkQAAAAIFAAAAAWIAAAAAAAAAAAACAAAABXVzZG4gCQABpAAAAAEJAAGRAAAAAgUAAAABYgAAAAAAAAAAAQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAFd2F2ZXMJAAGRAAAAAgUAAAABYgAAAAAAAAAAAAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAEdXNkbgkAAZEAAAACBQAAAAFiAAAAAAAAAAABBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tledEXp8I=",
"height": 1697328,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: Bp1X984TttFFfuDZiM1Xa7y1M9168t2smRZDasQDhUJT
Next: none
Diff:
Old | New | | Differences |
---|
16 | 16 | | @Callable(i) |
---|
17 | 17 | | func call () = { |
---|
18 | 18 | | let b = getBalances() |
---|
19 | | - | [IntegerEntry("waves", b[0]), IntegerEntry("usdn", b[1])] |
---|
| 19 | + | if (true) |
---|
| 20 | + | then throw(((("waves " + toString(b[0])) + "usdn ") + toString(b[1]))) |
---|
| 21 | + | else [IntegerEntry("waves", b[0]), IntegerEntry("usdn", b[1])] |
---|
20 | 22 | | } |
---|
21 | 23 | | |
---|
22 | 24 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func privateGetAccountBalance (assetId) = if ((assetId == "WAVES")) |
---|
5 | 5 | | then wavesBalance(this).available |
---|
6 | 6 | | else assetBalance(this, fromBase58String(assetId)) |
---|
7 | 7 | | |
---|
8 | 8 | | |
---|
9 | 9 | | func getBalances () = { |
---|
10 | 10 | | let wvsBalance = privateGetAccountBalance("WAVES") |
---|
11 | 11 | | let tknBalance = privateGetAccountBalance("5Sh9KghfkZyhjwuodovDhB6PghDUGBHiAPZ4MkrPgKtX") |
---|
12 | 12 | | [wvsBalance, tknBalance] |
---|
13 | 13 | | } |
---|
14 | 14 | | |
---|
15 | 15 | | |
---|
16 | 16 | | @Callable(i) |
---|
17 | 17 | | func call () = { |
---|
18 | 18 | | let b = getBalances() |
---|
19 | | - | [IntegerEntry("waves", b[0]), IntegerEntry("usdn", b[1])] |
---|
| 19 | + | if (true) |
---|
| 20 | + | then throw(((("waves " + toString(b[0])) + "usdn ") + toString(b[1]))) |
---|
| 21 | + | else [IntegerEntry("waves", b[0]), IntegerEntry("usdn", b[1])] |
---|
20 | 22 | | } |
---|
21 | 23 | | |
---|
22 | 24 | | |
---|
23 | 25 | | @Verifier(tx) |
---|
24 | 26 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
25 | 27 | | |
---|