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 | + | ||
26 | + | @Callable(i) | |
27 | + | func checkBalancest () = { | |
28 | + | let payment = value(i.payments[0]) | |
29 | + | let availableWaves = wavesBalance(this).available | |
30 | + | let availablePlusPayment = (availableWaves + payment.amount) | |
31 | + | let txId = toBase58String(i.transactionId) | |
32 | + | [IntegerEntry(("payment " + txId), payment.amount), IntegerEntry(("before " + txId), availableWaves), IntegerEntry(("after " + txId), availablePlusPayment)] | |
33 | + | } | |
34 | + | ||
35 | + | ||
25 | 36 | @Verifier(tx) | |
26 | 37 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.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(i) | |
7 | 7 | func call () = { | |
8 | 8 | let inv = invoke(addressFromStringValue("3MsNbupKQ1Zf5yVo952AkFiKu2rh4oevWeC"), "lockNeutrino", nil, [AttachedPayment(fromBase58String("25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), 100000)]) | |
9 | 9 | if ((inv == inv)) | |
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(i) | |
17 | 17 | func callUnlock () = { | |
18 | 18 | let inv = invoke(addressFromStringValue("3MsNbupKQ1Zf5yVo952AkFiKu2rh4oevWeC"), "unlockNeutrino", [100000, "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"], nil) | |
19 | 19 | if ((inv == inv)) | |
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 | + | ||
26 | + | @Callable(i) | |
27 | + | func checkBalancest () = { | |
28 | + | let payment = value(i.payments[0]) | |
29 | + | let availableWaves = wavesBalance(this).available | |
30 | + | let availablePlusPayment = (availableWaves + payment.amount) | |
31 | + | let txId = toBase58String(i.transactionId) | |
32 | + | [IntegerEntry(("payment " + txId), payment.amount), IntegerEntry(("before " + txId), availableWaves), IntegerEntry(("after " + txId), availablePlusPayment)] | |
33 | + | } | |
34 | + | ||
35 | + | ||
25 | 36 | @Verifier(tx) | |
26 | 37 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
27 | 38 |
github/deemru/w8io/169f3d6 28.22 ms ◑