tx · 6QMEPfe38jx5gjSLktj25Fn8dxEg9pquDq1fhpenS6TS
3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph: -0.01400000 Waves
2021.09.20 13:13 [1711235] smart account 3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph > SELF 0.00000000 Waves
{
"type": 13,
"id": "6QMEPfe38jx5gjSLktj25Fn8dxEg9pquDq1fhpenS6TS",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1632132820236,
"version": 2,
"chainId": 84,
"sender": "3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph",
"senderPublicKey": "G7cNXePvAHUHmZfXa1eHnvFeH6DuykPC5wm9v9djTKgD",
"proofs": [
"4oWjwLjayys1SoM1zre6vdr2UJr1xaSUrcsYT4r4tmWyuBiwymeqcaHiTB5RjTzRLUKFU26bXgUa8LtTwn8GaNDh"
],
"script": "base64:AAIFAAAAAAAAAAsIAhIAEgASAwoBCAAAAAIAAAAACXVzZXJBc3NldAIAAAAsR3JmZ3BjemNjcm41QWJydUxjdFh3Qzk0MWRnd2lwQnk2SFpZRGFRWEhidWsAAAAACWRBcHBBc3NldAIAAAAsN2FwU0p4TG54REt1bmI3YUJHYXVnNXFmVFg4OGpwYzNSMjI0OXBidUpVMngAAAADAAAAAmE4AQAAAARpbml0AAAAAAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAxM1BQSDd4N2lxb2JXNXppeWlSQ2ljMTlyUXFLcjZuUFlhSzFfYXNzZXRfYmFsYW5jZQAAAAAAAAAAAAUAAAADbmlsAAAAAmE4AQAAAARjYWxsAAAAAAQAAAACYTkJAARDAAAABwIAAAAGQXNzZXQxAgAAAA9Bc3NldCBmcm9tIGRBcHAAAAAAAAABhqAAAAAAAAAAAAIGBQAAAAR1bml0AAAAAAAAAAAABAAAAAJiMQkABDgAAAABBQAAAAJhOQkABEwAAAACCQEAAAALQmluYXJ5RW50cnkAAAACAgAAAANiaW4BAAAAAAkABEwAAAACCQEAAAAMQm9vbGVhbkVudHJ5AAAAAgIAAAAEYm9vbAYJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAAA2ludAAAAAAAAAAAAQkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAANzdHICAAAAAAkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABAgAAAANzdHIJAARMAAAAAgUAAAACYTkFAAAAA25pbAAAAAFpAQAAAAdkZXBvc2l0AAAAAQAAAARwb29sBAAAAAZhbW91bnQICQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAAAABmFtb3VudAQAAAAHYXNzZXRJZAgJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAHYXNzZXRJZAQAAAANcG9vbEFtb3VudEtleQkAASwAAAACBQAAAARwb29sAgAAAA5fYXNzZXRfYmFsYW5jZQQAAAAKcG9vbEFtb3VudAkBAAAAEUBleHRyTmF0aXZlKDEwNTApAAAAAgUAAAAEdGhpcwUAAAANcG9vbEFtb3VudEtleQQAAAANbmV3UG9vbEFtb3VudAkAAGQAAAACBQAAAApwb29sQW1vdW50BQAAAAZhbW91bnQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAAZhbW91bnQJAAJZAAAAAQUAAAAJZEFwcEFzc2V0CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAAA1wb29sQW1vdW50S2V5BQAAAA1uZXdQb29sQW1vdW50BQAAAANuaWwAAAABAAAAAmI2AQAAAAJiNwAAAAAJAAH0AAAAAwgFAAAAAmI2AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACYjYAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACYjYAAAAPc2VuZGVyUHVibGljS2V5AbbF9w==",
"height": 1711235,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 6jWyNn2zjNhhgB6cgrrD5dwE5z4Y3S6o9efwYwyL2fru
Next: 2cnxR8XgG2QRYPY2fekjbgWFU9xAmcmMj5uhDH8c6XTz
Diff:
Old | New | | Differences |
---|
4 | 4 | | let userAsset = "Grfgpczccrn5AbruLctXwC941dgwipBy6HZYDaQXHbuk" |
---|
5 | 5 | | |
---|
6 | 6 | | let dAppAsset = "7apSJxLnxDKunb7aBGaug5qfTX88jpc3R2249pbuJU2x" |
---|
| 7 | + | |
---|
| 8 | + | @Callable(a8) |
---|
| 9 | + | func init () = [IntegerEntry("3PPH7x7iqobW5ziyiRCic19rQqKr6nPYaK1_asset_balance", 0)] |
---|
| 10 | + | |
---|
| 11 | + | |
---|
| 12 | + | |
---|
| 13 | + | @Callable(a8) |
---|
| 14 | + | func call () = { |
---|
| 15 | + | let a9 = Issue("Asset1", "Asset from dApp", 100000, 2, true, unit, 0) |
---|
| 16 | + | let b1 = calculateAssetId(a9) |
---|
| 17 | + | [BinaryEntry("bin", base58''), BooleanEntry("bool", true), IntegerEntry("int", 1), StringEntry("str", ""), DeleteEntry("str"), a9] |
---|
| 18 | + | } |
---|
| 19 | + | |
---|
| 20 | + | |
---|
7 | 21 | | |
---|
8 | 22 | | @Callable(i) |
---|
9 | 23 | | func deposit (pool) = { |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let userAsset = "Grfgpczccrn5AbruLctXwC941dgwipBy6HZYDaQXHbuk" |
---|
5 | 5 | | |
---|
6 | 6 | | let dAppAsset = "7apSJxLnxDKunb7aBGaug5qfTX88jpc3R2249pbuJU2x" |
---|
| 7 | + | |
---|
| 8 | + | @Callable(a8) |
---|
| 9 | + | func init () = [IntegerEntry("3PPH7x7iqobW5ziyiRCic19rQqKr6nPYaK1_asset_balance", 0)] |
---|
| 10 | + | |
---|
| 11 | + | |
---|
| 12 | + | |
---|
| 13 | + | @Callable(a8) |
---|
| 14 | + | func call () = { |
---|
| 15 | + | let a9 = Issue("Asset1", "Asset from dApp", 100000, 2, true, unit, 0) |
---|
| 16 | + | let b1 = calculateAssetId(a9) |
---|
| 17 | + | [BinaryEntry("bin", base58''), BooleanEntry("bool", true), IntegerEntry("int", 1), StringEntry("str", ""), DeleteEntry("str"), a9] |
---|
| 18 | + | } |
---|
| 19 | + | |
---|
| 20 | + | |
---|
7 | 21 | | |
---|
8 | 22 | | @Callable(i) |
---|
9 | 23 | | func deposit (pool) = { |
---|
10 | 24 | | let amount = i.payments[0].amount |
---|
11 | 25 | | let assetId = i.payments[0].assetId |
---|
12 | 26 | | let poolAmountKey = (pool + "_asset_balance") |
---|
13 | 27 | | let poolAmount = getIntegerValue(this, poolAmountKey) |
---|
14 | 28 | | let newPoolAmount = (poolAmount + amount) |
---|
15 | 29 | | [ScriptTransfer(i.caller, amount, fromBase58String(dAppAsset)), IntegerEntry(poolAmountKey, newPoolAmount)] |
---|
16 | 30 | | } |
---|
17 | 31 | | |
---|
18 | 32 | | |
---|
19 | 33 | | @Verifier(b6) |
---|
20 | 34 | | func b7 () = sigVerify(b6.bodyBytes, b6.proofs[0], b6.senderPublicKey) |
---|
21 | 35 | | |
---|