tx · H6dQTtqJGzEdQnsMvxK9yAQRHxXvTADvSrWFjUmMsBpA 3MyR7tR3rqJJDyvsotfqT1SzuyC2th2GX2g: -0.01000000 Waves 2023.08.07 18:44 [2700364] smart account 3MyR7tR3rqJJDyvsotfqT1SzuyC2th2GX2g > SELF 0.00000000 Waves
{ "type": 13, "id": "H6dQTtqJGzEdQnsMvxK9yAQRHxXvTADvSrWFjUmMsBpA", "fee": 1000000, "feeAssetId": null, "timestamp": 1691423116632, "version": 2, "chainId": 84, "sender": "3MyR7tR3rqJJDyvsotfqT1SzuyC2th2GX2g", "senderPublicKey": "BNhrJZCabKcMuPTo84Uz3QTUH237UCr6Dhe64RkkFxC3", "proofs": [ "27eqH3igt1rbB3XAf24M1uYqTKpRonFAGUHrT94cXbvhQNPHZKtS33tfMoKCYTxiRwhDhBReUb4fF5uDrAGMg9Br" ], "script": "base64:AAIFAAAAAAAAAA8IAhIDCgEIEgYKBAgICAgAAAAAAAAAAgAAAAFpAQAAABlwb3N0X2luY29taW5nX3BvbHlnb25fdHhuAAAAAQAAAAxJbmNvbWluZ19UeG4EAAAAEnNwbGl0X2luY29taW5nX3R4bgkABLUAAAACBQAAAAxJbmNvbWluZ19UeG4CAAAAAV8EAAAAEWdldF9pbmNvbWluZ19oYXNoCQABkQAAAAIFAAAAEnNwbGl0X2luY29taW5nX3R4bgAAAAAAAAAAAAQAAAAUZ2V0X2luY29taW5nX2FkZHJlc3MJAAGRAAAAAgUAAAASc3BsaXRfaW5jb21pbmdfdHhuAAAAAAAAAAABBAAAABNnZXRfaW5jb21pbmdfYW1vdW50CQABkQAAAAIFAAAAEnNwbGl0X2luY29taW5nX3R4bgAAAAAAAAAAAgQAAAAXY29udmVydF9pbmNvbWluZ19hbW91bnQJAABrAAAAAwkBAAAADXBhcnNlSW50VmFsdWUAAAABBQAAABNnZXRfaW5jb21pbmdfYW1vdW50AAAAAAAAAAABAAAAAAJUC+QABAAAABFyZWFkX2luY29taW5nX3R4bgQAAAAHJG1hd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wAAAACBQAAABFnZXRfaW5jb21pbmdfaGFzaAIAAAAkIEFscmVhZHkgRXhpc3QgYW5kIHJlbGVhc2VkIGJ5IERhcHAuCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAABNUb3RhbF9JbmNvbWluZ19UeG5zBQAAABJ0b3RhbF9pbmNvbWluZ190eG4JAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACAgAAABJJbmNvbWluZ19UeG5fSGFzaF8FAAAAEWdldF9pbmNvbWluZ19oYXNoBQAAABFnZXRfaW5jb21pbmdfaGFzaAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAVVG90YWxfRnVuZHNfRGVwb3NpdGVkBQAAABV0b3RhbF9pbmNvbWluZ19hbW91bnQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIFAAAAFGdldF9pbmNvbWluZ19hZGRyZXNzBQAAACB0b3RhbF9pbmNvbWluZ19hbW91bnRfdG9fYWRkcmVzcwkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABBQAAABRnZXRfaW5jb21pbmdfYWRkcmVzcwUAAAAXY29udmVydF9pbmNvbWluZ19hbW91bnQFAAAABHVuaXQFAAAAA25pbAAAAAFpAQAAAAZEZWxldGUAAAAEAAAAA0tleQAAAARLZXkxAAAABEtleTIAAAAES2V5MwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAANLZXkJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAES2V5MQkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAARLZXkyCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAABEtleTMFAAAAA25pbAAAAAAydC0L", "height": 2700364, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: ZKZNd4frAKW2kJdJUxATtAkcUjWUysqHUQctZCHUQA2 Next: 9KvRx5oVhak5bvVU6M92iJ6ZRE9QkG4UMru88JTQb1iz Diff:
Old | New | Differences | |
---|---|---|---|
31 | 31 | 0 | |
32 | 32 | } | |
33 | 33 | let total_incoming_amount_to_address = (read_incoming_amount_to_address + convert_incoming_amount) | |
34 | - | let | |
35 | - | if (( | |
36 | - | then throw(" | |
37 | - | else [IntegerEntry("Total_Incoming_Txns", total_incoming_txn), StringEntry((" | |
34 | + | let if_hash_already_exist = getString(this, ("Incoming_Txn_Hash_" + get_incoming_hash)) | |
35 | + | if ((if_hash_already_exist == get_incoming_hash)) | |
36 | + | then throw((get_incoming_hash + " Already Exist and released by Dapp.")) | |
37 | + | else [IntegerEntry("Total_Incoming_Txns", total_incoming_txn), StringEntry(("Incoming_Txn_Hash_" + get_incoming_hash), get_incoming_hash), IntegerEntry("Total_Funds_Deposited", total_incoming_amount), IntegerEntry(get_incoming_address, total_incoming_amount_to_address), ScriptTransfer(addressFromStringValue(get_incoming_address), convert_incoming_amount, unit)] | |
38 | 38 | } | |
39 | 39 | ||
40 | 40 |
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 post_incoming_polygon_txn (Incoming_Txn) = { | |
8 | 8 | let split_incoming_txn = split(Incoming_Txn, "_") | |
9 | 9 | let get_incoming_hash = split_incoming_txn[0] | |
10 | 10 | let get_incoming_address = split_incoming_txn[1] | |
11 | 11 | let get_incoming_amount = split_incoming_txn[2] | |
12 | 12 | let convert_incoming_amount = fraction(parseIntValue(get_incoming_amount), 1, 10000000000) | |
13 | 13 | let read_incoming_txn = match getInteger(this, "Total_Incoming_Txns") { | |
14 | 14 | case a: Int => | |
15 | 15 | a | |
16 | 16 | case _ => | |
17 | 17 | 0 | |
18 | 18 | } | |
19 | 19 | let total_incoming_txn = (read_incoming_txn + 1) | |
20 | 20 | let read_incoming_amount = match getInteger(this, "Total_Funds_Deposited") { | |
21 | 21 | case a: Int => | |
22 | 22 | a | |
23 | 23 | case _ => | |
24 | 24 | 0 | |
25 | 25 | } | |
26 | 26 | let total_incoming_amount = (read_incoming_amount + convert_incoming_amount) | |
27 | 27 | let read_incoming_amount_to_address = match getInteger(this, get_incoming_address) { | |
28 | 28 | case a: Int => | |
29 | 29 | a | |
30 | 30 | case _ => | |
31 | 31 | 0 | |
32 | 32 | } | |
33 | 33 | let total_incoming_amount_to_address = (read_incoming_amount_to_address + convert_incoming_amount) | |
34 | - | let | |
35 | - | if (( | |
36 | - | then throw(" | |
37 | - | else [IntegerEntry("Total_Incoming_Txns", total_incoming_txn), StringEntry((" | |
34 | + | let if_hash_already_exist = getString(this, ("Incoming_Txn_Hash_" + get_incoming_hash)) | |
35 | + | if ((if_hash_already_exist == get_incoming_hash)) | |
36 | + | then throw((get_incoming_hash + " Already Exist and released by Dapp.")) | |
37 | + | else [IntegerEntry("Total_Incoming_Txns", total_incoming_txn), StringEntry(("Incoming_Txn_Hash_" + get_incoming_hash), get_incoming_hash), IntegerEntry("Total_Funds_Deposited", total_incoming_amount), IntegerEntry(get_incoming_address, total_incoming_amount_to_address), ScriptTransfer(addressFromStringValue(get_incoming_address), convert_incoming_amount, unit)] | |
38 | 38 | } | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | ||
42 | 42 | @Callable(i) | |
43 | 43 | func Delete (Key,Key1,Key2,Key3) = [DeleteEntry(Key), DeleteEntry(Key1), DeleteEntry(Key2), DeleteEntry(Key3)] | |
44 | 44 | ||
45 | 45 |
github/deemru/w8io/026f985 32.74 ms ◑