tx · 67FpX3wri59oKkLugwu63KoTNg29dGxMozMKU7VimTyu

3ND6eWcMiGMX15X4H4WmGTTdNwLhtWhQ2DR:  -0.01000000 Waves

2023.01.21 14:20 [2414670] smart account 3ND6eWcMiGMX15X4H4WmGTTdNwLhtWhQ2DR > SELF 0.00000000 Waves

{ "type": 13, "id": "67FpX3wri59oKkLugwu63KoTNg29dGxMozMKU7VimTyu", "fee": 1000000, "feeAssetId": null, "timestamp": 1674300112977, "version": 2, "chainId": 84, "sender": "3ND6eWcMiGMX15X4H4WmGTTdNwLhtWhQ2DR", "senderPublicKey": "BXQbCij24fARRpQ4sXWsSBap3mfJwbkCuk7ACoCJTZSg", "proofs": [ "3vhky42E1HvAw1PWg64zDQxfLhyB7V6Ddipuxrth4MKx7sWWZxw2Kefbb2ophht4fE6baxCPgikE49gY5qsr5Dwm" ], "script": "base64:AAIFAAAAAAAAABEIAhIHCgUICAgBCBIECgIICAAAAAQBAAAAFHRyeUdldFN0cmluZ0V4dGVybmFsAAAAAgAAAAdhZGRyZXNzAAAAA2tleQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAdhZGRyZXNzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQIAAAAAAQAAABV0cnlHZXRJbnRlZ2VyRXh0ZXJuYWwAAAACAAAAB2FkZHJlc3MAAAADa2V5BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAAB2FkZHJlc3MFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFiBQAAAAckbWF0Y2gwBQAAAAFiAAAAAAAAAAAAAQAAAAx0cnlHZXRTdHJpbmcAAAABAAAAA2tleQkBAAAAFHRyeUdldFN0cmluZ0V4dGVybmFsAAAAAgUAAAAEdGhpcwUAAAADa2V5AQAAAA10cnlHZXRJbnRlZ2VyAAAAAQAAAANrZXkJAQAAABV0cnlHZXRJbnRlZ2VyRX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AAgkAASwAAAACCQABLAAAAAICAAAAA3R4XwUAAAAEdHhJZAIAAAAHX2Ftb3VudAUAAAAGYW1vdW50BQAAAANuaWwAAAABaQEAAAASZmluYWxpemVPdXRnb2luZ1R4AAAAAgAAAAR0eElkAAAACW90aGVyVHhJZAMJAQAAAAIhPQAAAAIJAQAAAAx0cnlHZXRTdHJpbmcAAAABCQABLAAAAAIJAAEsAAAAAgIAAAADdHhfBQAAAAR0eElkAgAAAAhfb3RoZXJJZAIAAAAACQAAAgAAAAEJAAEsAAAAAgUAAAAEdHhJZAIAAAAcIGlzIGFscmVhZHkgZnVsbHkgcHJvY2Vzc2VkIQMJAQAAAAIhPQAAAAIIBQAAAAFpAAAABmNhbGxlcgUAAAAEdGhpcwkAAAIAAAABAgAAAA1EaXJ0eSBoYWNrZXIhCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAN0eF8FAAAABHR4SWQCAAAAB19zdGF0dXMCAAAACVBST0NFU1NFRAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgIAAAADdHhfBQAAAAR0eElkAgAAAAhfb3RoZXJJZAUAAAAJb3RoZXJUeElkBQAAAANuaWwAAAAARg5OFg==", "height": 2414670, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+func tryGetStringExternal (address,key) = match getString(address, key) {
5+ case a: String =>
6+ a
7+ case _ =>
8+ ""
9+}
10+
11+
12+func tryGetIntegerExternal (address,key) = match getInteger(address, key) {
13+ case b: Int =>
14+ b
15+ case _ =>
16+ 0
17+}
18+
19+
20+func tryGetString (key) = tryGetStringExternal(this, key)
21+
22+
23+func tryGetInteger (key) = tryGetIntegerExternal(this, key)
24+
25+
26+@Callable(i)
27+func storeDataIncomingTx (txId,destination,assetId,amount,assetIdToReceive) = if (if ((tryGetString((("tx_" + txId) + "_status")) != ""))
28+ then true
29+ else (tryGetString((("tx_" + txId) + "_dest")) != ""))
30+ then throw((txId + " is already stored!"))
31+ else if ((i.caller != this))
32+ then throw("Dirty hacker")
33+ else [StringEntry((("tx_" + txId) + "_dest"), destination), StringEntry((("tx_" + txId) + "_status"), "UNPROCESSED"), StringEntry((("tx_" + txId) + "_assetId"), assetId), StringEntry((("tx_" + txId) + "_assetId_to_receive"), assetIdToReceive), IntegerEntry((("tx_" + txId) + "_amount"), amount)]
34+
35+
36+
37+@Callable(i)
38+func finalizeOutgoingTx (txId,otherTxId) = if ((tryGetString((("tx_" + txId) + "_otherId")) != ""))
39+ then throw((txId + " is already fully processed!"))
40+ else if ((i.caller != this))
41+ then throw("Dirty hacker!")
42+ else [StringEntry((("tx_" + txId) + "_status"), "PROCESSED"), StringEntry((("tx_" + txId) + "_otherId"), otherTxId)]
43+
44+

github/deemru/w8io/026f985 
30.98 ms