tx · Bp1X984TttFFfuDZiM1Xa7y1M9168t2smRZDasQDhUJT
3MsWjZnJQ153rbLHvn6hqKELqn35R472VpQ: -0.05000000 Waves
2021.09.10 21:42 [1697323] smart account 3MsWjZnJQ153rbLHvn6hqKELqn35R472VpQ > SELF 0.00000000 Waves
{
"type": 13,
"id": "Bp1X984TttFFfuDZiM1Xa7y1M9168t2smRZDasQDhUJT",
"fee": 5000000,
"feeAssetId": null,
"timestamp": 1631299377550,
"version": 2,
"chainId": 84,
"sender": "3MsWjZnJQ153rbLHvn6hqKELqn35R472VpQ",
"senderPublicKey": "CdNy1QDsxM9o785GEAVwFCkE3kkrhgdcZ8VFAm6Nu8nx",
"proofs": [
"XeRpco6AnghoUDP9Dos4HJV5BSPKxJLDUxHbUABSjfTQKHUcr14MfsuGDZs7CuFK94XjePovjfG7Av3NJyxtskZ"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAgEAAAAYcHJpdmF0ZUdldEFjY291bnRCYWxhbmNlAAAAAQAAAAdhc3NldElkAwkAAAAAAAACBQAAAAdhc3NldElkAgAAAAVXQVZFUwgJAAPvAAAAAQUAAAAEdGhpcwAAAAlhdmFpbGFibGUJAAPwAAAAAgUAAAAEdGhpcwkAAlkAAAABBQAAAAdhc3NldElkAQAAAAtnZXRCYWxhbmNlcwAAAAAEAAAACnd2c0JhbGFuY2UJAQAAABhwcml2YXRlR2V0QWNjb3VudEJhbGFuY2UAAAABAgAAAAVXQVZFUwQAAAAKdGtuQmFsYW5jZQkBAAAAGHByaXZhdGVHZXRBY2NvdW50QmFsYW5jZQAAAAECAAAALDVTaDlLZ2hma1p5aGp3dW9kb3ZEaEI2UGdoRFVHQkhpQVBaNE1rclBnS3RYCQAETAAAAAIFAAAACnd2c0JhbGFuY2UJAARMAAAAAgUAAAAKdGtuQmFsYW5jZQUAAAADbmlsAAAAAQAAAAFpAQAAAARjYWxsAAAAAAQAAAABYgkBAAAAC2dldEJhbGFuY2VzAAAAAAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAFd2F2ZXMJAAGRAAAAAgUAAAABYgAAAAAAAAAAAAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAEdXNkbgkAAZEAAAACBQAAAAFiAAAAAAAAAAABBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tled1p0H4=",
"height": 1697323,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 4Nr4quFBJr36rC87S5ncAx2m9d7iXNReXQMfdRspiqxb
Next: 8W9XsVN32Fe9hVEKhhrMju1rHpr2aPK836oj4b52shig
Diff:
Old | New | | Differences |
---|
8 | 8 | | |
---|
9 | 9 | | func getBalances () = { |
---|
10 | 10 | | let wvsBalance = privateGetAccountBalance("WAVES") |
---|
11 | | - | let tknBalance = privateGetAccountBalance("25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT") |
---|
| 11 | + | let tknBalance = privateGetAccountBalance("5Sh9KghfkZyhjwuodovDhB6PghDUGBHiAPZ4MkrPgKtX") |
---|
12 | 12 | | [wvsBalance, tknBalance] |
---|
13 | 13 | | } |
---|
14 | 14 | | |
---|
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 | | - | let tknBalance = privateGetAccountBalance("25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT") |
---|
| 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 | 19 | | [IntegerEntry("waves", b[0]), IntegerEntry("usdn", b[1])] |
---|
20 | 20 | | } |
---|
21 | 21 | | |
---|
22 | 22 | | |
---|
23 | 23 | | @Verifier(tx) |
---|
24 | 24 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
25 | 25 | | |
---|