tx · HhWr51wuEnHxs7MpmPQsHQQ6zCmLaKhqrt6DHwqwwJrJ 3MyR7tR3rqJJDyvsotfqT1SzuyC2th2GX2g: -0.01000000 Waves 2023.08.07 17:32 [2700288] smart account 3MyR7tR3rqJJDyvsotfqT1SzuyC2th2GX2g > SELF 0.00000000 Waves
{ "type": 13, "id": "HhWr51wuEnHxs7MpmPQsHQQ6zCmLaKhqrt6DHwqwwJrJ", "fee": 1000000, "feeAssetId": null, "timestamp": 1691418726139, "version": 2, "chainId": 84, "sender": "3MyR7tR3rqJJDyvsotfqT1SzuyC2th2GX2g", "senderPublicKey": "BNhrJZCabKcMuPTo84Uz3QTUH237UCr6Dhe64RkkFxC3", "proofs": [ "4Ewu3FBgvhiAmpwctS1LvPu8WgDaVSCTmwSKihN9Av25NtWYNtNNZHxWaRZH9BfWqtfv8nTzbbaTT5Q49C51ACHn" ], "script": "base64:AAIFAAAAAAAAAA8IAhIDCgEIEgYKBAgICAgAAAAAAAAAAgAAAAFpAQAAABlwb3N0X2luY29taW5nX3BvbHlnb25fdHhuAAAAAQAAAAxJbmNvbWluZ19UeG4EAAAAEnNwbGl0X2luY29taW5nX3R4bgkABLUAAAACBQAAAAxJbmNvbWluZ19UeG4CAAAAAV8EAAAAEWdldF9pbmNvbWluZ19oYXNoCQABkQAAAAIFAAAAEnNwbGl0X2luY29taW5nX3R4bgAAAAAAAAAAAAQAAAAUZ2V0X2luY29taW5nX2FkZHJlc3MJAAGRAAAAAgUAAAASc3BsaXRfaW5jb21pbmdfdHhuAAAAAAAAAAABBAAAABNnZXRfaW5jb21pbmdfYW1vdW50CQABkQAAAAIFAAAAEnNwbGl0X2luY29taW5nX3R4bgAAAAAAAAAAAgQAAAAXY29udmVydF9pbmNvbWluZ19hbW91bnQJAABrAAAAAwkBAAAADXBhcnNlSW50VmFsdWUAAAABBQAAABNnZXRfaW5jb21pbmdfYW1vdW50AAAAAAAAAAABAAAAAAJUC+QABAAAABFyZWFkX2luY29taW5nX3R4bgQAA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wAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAANLZXkJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAES2V5MQkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAARLZXkyCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAABEtleTMFAAAAA25pbAAAAABfhdqs", "height": 2700288, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BGSkZo6Enh9CXbmHvY25U7WHgS2r8gYYDWnN6Diwdb1h Next: EnRHoAkVV6TRaEg8ZfQwvhjJduBzYRYbnc84Z4FjHieh 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)) | |
14 | 13 | let read_incoming_txn = match getInteger(this, "Total_Incoming_Txns") { | |
15 | 14 | case a: Int => | |
16 | 15 | a | |
18 | 17 | 0 | |
19 | 18 | } | |
20 | 19 | let total_incoming_txn = (read_incoming_txn + 1) | |
20 | + | let read_incoming_hash = match getStringValue(this, ("get_incoming_hash_" + get_incoming_hash)) { | |
21 | + | case a: String => | |
22 | + | a | |
23 | + | case _ => | |
24 | + | 0 | |
25 | + | } | |
26 | + | let check_if_hash_exits = read_incoming_hash | |
21 | 27 | let read_incoming_amount = match getInteger(this, "Total_Funds_Deposited") { | |
22 | 28 | case a: Int => | |
23 | 29 | a |
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)) | |
14 | 13 | let read_incoming_txn = match getInteger(this, "Total_Incoming_Txns") { | |
15 | 14 | case a: Int => | |
16 | 15 | a | |
17 | 16 | case _ => | |
18 | 17 | 0 | |
19 | 18 | } | |
20 | 19 | let total_incoming_txn = (read_incoming_txn + 1) | |
20 | + | let read_incoming_hash = match getStringValue(this, ("get_incoming_hash_" + get_incoming_hash)) { | |
21 | + | case a: String => | |
22 | + | a | |
23 | + | case _ => | |
24 | + | 0 | |
25 | + | } | |
26 | + | let check_if_hash_exits = read_incoming_hash | |
21 | 27 | let read_incoming_amount = match getInteger(this, "Total_Funds_Deposited") { | |
22 | 28 | case a: Int => | |
23 | 29 | a | |
24 | 30 | case _ => | |
25 | 31 | 0 | |
26 | 32 | } | |
27 | 33 | let total_incoming_amount = (read_incoming_amount + convert_incoming_amount) | |
28 | 34 | let read_incoming_amount_to_address = match getInteger(this, get_incoming_address) { | |
29 | 35 | case a: Int => | |
30 | 36 | a | |
31 | 37 | case _ => | |
32 | 38 | 0 | |
33 | 39 | } | |
34 | 40 | let total_incoming_amount_to_address = (read_incoming_amount_to_address + convert_incoming_amount) | |
35 | 41 | if ((check_if_hash_exits == get_incoming_hash)) | |
36 | 42 | then throw((("Txn ID:" + get_incoming_hash) + " is already claimed.")) | |
37 | 43 | 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)] | |
38 | 44 | } | |
39 | 45 | ||
40 | 46 | ||
41 | 47 | ||
42 | 48 | @Callable(i) | |
43 | 49 | func Delete (Key,Key1,Key2,Key3) = [DeleteEntry(Key), DeleteEntry(Key1), DeleteEntry(Key2), DeleteEntry(Key3)] | |
44 | 50 | ||
45 | 51 |
github/deemru/w8io/026f985 38.50 ms ◑