tx · BGSkZo6Enh9CXbmHvY25U7WHgS2r8gYYDWnN6Diwdb1h 3MyR7tR3rqJJDyvsotfqT1SzuyC2th2GX2g: -0.01000000 Waves 2023.08.07 17:27 [2700284] smart account 3MyR7tR3rqJJDyvsotfqT1SzuyC2th2GX2g > SELF 0.00000000 Waves
{ "type": 13, "id": "BGSkZo6Enh9CXbmHvY25U7WHgS2r8gYYDWnN6Diwdb1h", "fee": 1000000, "feeAssetId": null, "timestamp": 1691418455429, "version": 2, "chainId": 84, "sender": "3MyR7tR3rqJJDyvsotfqT1SzuyC2th2GX2g", "senderPublicKey": "BNhrJZCabKcMuPTo84Uz3QTUH237UCr6Dhe64RkkFxC3", "proofs": [ "48RCJKpXueLrCC3K36toLz36qGjwpGsYneRKDGQSE49Bdjqd6yapThbMXQzJqkmTMiyqQaLNVvaaC3thkLhq8cN8" ], "script": "base64:AAIFAAAAAAAAAA8IAhIDCgEIEgYKBAgICAgAAAAAAAAAAgAAAAFpAQAAABlwb3N0X2luY29taW5nX3BvbHlnb25fdHhuAAAAAQAAAAxJbmNvbWluZ19UeG4EAAAAEnNwbGl0X2luY29taW5nX3R4bgkABLUAAAACBQAAAAxJbmNvbWluZ19UeG4CAAAAAV8EAAAAEWdldF9pbmNvbWluZ19oYXNoCQABkQAAAAIFAAAAEnNwbGl0X2luY29taW5nX3R4bgAAAAAAAAAAAAQAAAAUZ2V0X2luY29taW5nX2FkZHJlc3MJAAGRAAAAAgUAAAASc3BsaXRfaW5jb21pbmdfdHhuAAAAAAAAAAABBAAAABNnZXRfaW5jb21pbmdfYW1vdW50CQABkQAAAAIFAAAAEnNwbGl0X2luY29taW5nX3R4bgAAAAAAAAAAAgQAAAAXY29udmVydF9pbmNvbWluZ19hbW91bnQJAABrAAAAAwkBAAAADXBhcnNlSW50VmFsdWUAAAABBQAAABNnZXRfaW5jb21pbmdfYW1vdW50AAAAAAAAAAABAAAAAAJUC+QABAAAABNjaGVja19pZl9oYXNoX2V4aXRzCQEAAAARQGV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BAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAES2V5MwUAAAADbmlsAAAAAHzrzos=", "height": 2700284, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: obFpV8X8u4sKAGwH4MpmZjMfxnpvd8cZjDo9LVWdLK6 Next: HhWr51wuEnHxs7MpmPQsHQQ6zCmLaKhqrt6DHwqwwJrJ Diff:
Old | New | Differences | |
---|---|---|---|
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 | + | let check_if_hash_exits = getStringValue(this, ("get_incoming_hash" + get_incoming_hash)) | |
13 | 14 | let read_incoming_txn = match getInteger(this, "Total_Incoming_Txns") { | |
14 | 15 | case a: Int => | |
15 | 16 | a | |
31 | 32 | 0 | |
32 | 33 | } | |
33 | 34 | let total_incoming_amount_to_address = (read_incoming_amount_to_address + convert_incoming_amount) | |
34 | - | [IntegerEntry("Total_Incoming_Txns", total_incoming_txn), IntegerEntry("Total_Funds_Deposited", total_incoming_amount), IntegerEntry(get_incoming_address, total_incoming_amount_to_address), StringEntry(toString(total_incoming_txn), Incoming_Txn), ScriptTransfer(addressFromStringValue(get_incoming_address), convert_incoming_amount, unit)] | |
35 | + | if ((check_if_hash_exits == get_incoming_hash)) | |
36 | + | then throw((("Txn ID:" + get_incoming_hash) + " is already claimed.")) | |
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), StringEntry(toString(total_incoming_txn), Incoming_Txn), ScriptTransfer(addressFromStringValue(get_incoming_address), convert_incoming_amount, unit)] | |
35 | 38 | } | |
36 | 39 | ||
37 | 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 | + | let check_if_hash_exits = getStringValue(this, ("get_incoming_hash" + get_incoming_hash)) | |
13 | 14 | let read_incoming_txn = match getInteger(this, "Total_Incoming_Txns") { | |
14 | 15 | case a: Int => | |
15 | 16 | a | |
16 | 17 | case _ => | |
17 | 18 | 0 | |
18 | 19 | } | |
19 | 20 | let total_incoming_txn = (read_incoming_txn + 1) | |
20 | 21 | let read_incoming_amount = match getInteger(this, "Total_Funds_Deposited") { | |
21 | 22 | case a: Int => | |
22 | 23 | a | |
23 | 24 | case _ => | |
24 | 25 | 0 | |
25 | 26 | } | |
26 | 27 | let total_incoming_amount = (read_incoming_amount + convert_incoming_amount) | |
27 | 28 | let read_incoming_amount_to_address = match getInteger(this, get_incoming_address) { | |
28 | 29 | case a: Int => | |
29 | 30 | a | |
30 | 31 | case _ => | |
31 | 32 | 0 | |
32 | 33 | } | |
33 | 34 | let total_incoming_amount_to_address = (read_incoming_amount_to_address + convert_incoming_amount) | |
34 | - | [IntegerEntry("Total_Incoming_Txns", total_incoming_txn), IntegerEntry("Total_Funds_Deposited", total_incoming_amount), IntegerEntry(get_incoming_address, total_incoming_amount_to_address), StringEntry(toString(total_incoming_txn), Incoming_Txn), ScriptTransfer(addressFromStringValue(get_incoming_address), convert_incoming_amount, unit)] | |
35 | + | if ((check_if_hash_exits == get_incoming_hash)) | |
36 | + | then throw((("Txn ID:" + get_incoming_hash) + " is already claimed.")) | |
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), StringEntry(toString(total_incoming_txn), Incoming_Txn), ScriptTransfer(addressFromStringValue(get_incoming_address), convert_incoming_amount, unit)] | |
35 | 38 | } | |
36 | 39 | ||
37 | 40 | ||
38 | 41 | ||
39 | 42 | @Callable(i) | |
40 | 43 | func Delete (Key,Key1,Key2,Key3) = [DeleteEntry(Key), DeleteEntry(Key1), DeleteEntry(Key2), DeleteEntry(Key3)] | |
41 | 44 | ||
42 | 45 |
github/deemru/w8io/169f3d6 23.71 ms ◑