tx · EevvGhJDZRVT9wS9oATjHWcopesVJYhprABws4LMjJou 3N22BYqtPzVTSgJBrhE8yYUSZPRCmkXmtcP: -0.05000000 Waves 2021.07.25 16:25 [1629227] smart account 3N22BYqtPzVTSgJBrhE8yYUSZPRCmkXmtcP > SELF 0.00000000 Waves
{ "type": 13, "id": "EevvGhJDZRVT9wS9oATjHWcopesVJYhprABws4LMjJou", "fee": 5000000, "feeAssetId": null, "timestamp": 1627219557362, "version": 2, "chainId": 84, "sender": "3N22BYqtPzVTSgJBrhE8yYUSZPRCmkXmtcP", "senderPublicKey": "2uZLPvTfcSdSqd6m8q85ZpiWEmxSkGWzb5ocbziqSzCj", "proofs": [ "5ijVDhJ7sWiM6SN8Gkd8nUVHXjWpuziXsmnvsDrXJvR3WDgbgb2GFr3H93unNi9jVGQn41K9ZieyCMSZiKiRhJHf" ], "script": "base64:AAIFAAAAAAAAAAgIAhIAEgASAAAAAAAAAAADAAAAAWkBAAAABGNhbGwAAAAABAAAAANpbnYJAAP8AAAABAkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQIAAAAjM01zTmJ1cEtRMVpmNXlWbzk1MkFrRmlLdTJyaDRvZXZXZUMCAAAADGxvY2tOZXV0cmlubwUAAAADbmlsCQAETAAAAAIJAQAAAA9BdHRhY2hlZFBheW1lbnQAAAACCQACWQAAAAECAAAALDI1RkVxRWpSa3FLNnlDa2lUN0x6NlNBWXo3Z1VGQ3R4ZkNDaG5yVkZENUFUAAAAAAAAAYagBQAAAANuaWwDCQAAAAAAAAIFAAAAA2ludgUAAAADaW52CQAETAAAAAIJAQAAAAtCaW5hcnlFbnRyeQAAAAICAAAAA2JpbgEAAAAACQAETAAAAAIJAQAAAAxCb29sZWFuRW50cnkAAAACAgAAAARib29sBgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAADaW50AAAAAAAAAAABCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAA3N0cgIAAAAABQAAAAN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AICAAAACHBheW1lbnQgBQAAAAR0eElkCAUAAAAHcGF5bWVudAAAAAZhbW91bnQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgIAAAAHYmVmb3JlIAUAAAAEdHhJZAUAAAAOYXZhaWxhYmxlV2F2ZXMJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgIAAAAGYWZ0ZXIgBQAAAAR0eElkBQAAABRhdmFpbGFibGVQbHVzUGF5bWVudAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXnj/jnB", "height": 1629227, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3j1xV4kAEYEhE2paoNNNrEqPvquchpuZGiUxhsSfjLEo Next: 9emsfUh27naRtrYYvZ34XcAk96GGkqw1VWMKmgkQMvu6 Diff:
Old | New | Differences | |
---|---|---|---|
22 | 22 | } | |
23 | 23 | ||
24 | 24 | ||
25 | - | @Verifier(c) | |
26 | - | func d () = sigVerify(c.bodyBytes, c.proofs[0], c.senderPublicKey) | |
25 | + | ||
26 | + | @Callable(a) | |
27 | + | func checkBalancest () = { | |
28 | + | let c = value(a.payments[0]) | |
29 | + | let d = wavesBalance(this).available | |
30 | + | let e = (d + c.amount) | |
31 | + | let f = toBase58String(a.transactionId) | |
32 | + | [IntegerEntry(("payment " + f), c.amount), IntegerEntry(("before " + f), d), IntegerEntry(("after " + f), e)] | |
33 | + | } | |
34 | + | ||
35 | + | ||
36 | + | @Verifier(g) | |
37 | + | func h () = sigVerify(g.bodyBytes, g.proofs[0], g.senderPublicKey) | |
27 | 38 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(a) | |
7 | 7 | func call () = { | |
8 | 8 | let b = invoke(addressFromStringValue("3MsNbupKQ1Zf5yVo952AkFiKu2rh4oevWeC"), "lockNeutrino", nil, [AttachedPayment(fromBase58String("25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), 100000)]) | |
9 | 9 | if ((b == b)) | |
10 | 10 | then [BinaryEntry("bin", base58''), BooleanEntry("bool", true), IntegerEntry("int", 1), StringEntry("str", "")] | |
11 | 11 | else throw("Strict value is not equal to itself.") | |
12 | 12 | } | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | ||
16 | 16 | @Callable(a) | |
17 | 17 | func callUnlock () = { | |
18 | 18 | let b = invoke(addressFromStringValue("3MsNbupKQ1Zf5yVo952AkFiKu2rh4oevWeC"), "unlockNeutrino", [100000, "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"], nil) | |
19 | 19 | if ((b == b)) | |
20 | 20 | then [BinaryEntry("bin", base58''), BooleanEntry("bool", true), IntegerEntry("int", 1), StringEntry("str", "")] | |
21 | 21 | else throw("Strict value is not equal to itself.") | |
22 | 22 | } | |
23 | 23 | ||
24 | 24 | ||
25 | - | @Verifier(c) | |
26 | - | func d () = sigVerify(c.bodyBytes, c.proofs[0], c.senderPublicKey) | |
25 | + | ||
26 | + | @Callable(a) | |
27 | + | func checkBalancest () = { | |
28 | + | let c = value(a.payments[0]) | |
29 | + | let d = wavesBalance(this).available | |
30 | + | let e = (d + c.amount) | |
31 | + | let f = toBase58String(a.transactionId) | |
32 | + | [IntegerEntry(("payment " + f), c.amount), IntegerEntry(("before " + f), d), IntegerEntry(("after " + f), e)] | |
33 | + | } | |
34 | + | ||
35 | + | ||
36 | + | @Verifier(g) | |
37 | + | func h () = sigVerify(g.bodyBytes, g.proofs[0], g.senderPublicKey) | |
27 | 38 |
github/deemru/w8io/169f3d6 29.54 ms ◑