tx · EJyqSgKBWjzNn5gTnu83Xss5tFZUE6XD7erDGDcN7JMw 3MyR7tR3rqJJDyvsotfqT1SzuyC2th2GX2g: -0.01000000 Waves 2023.08.09 01:13 [2702202] smart account 3MyR7tR3rqJJDyvsotfqT1SzuyC2th2GX2g > SELF 0.00000000 Waves
{ "type": 13, "id": "EJyqSgKBWjzNn5gTnu83Xss5tFZUE6XD7erDGDcN7JMw", "fee": 1000000, "feeAssetId": null, "timestamp": 1691532859115, "version": 2, "chainId": 84, "sender": "3MyR7tR3rqJJDyvsotfqT1SzuyC2th2GX2g", "senderPublicKey": "BNhrJZCabKcMuPTo84Uz3QTUH237UCr6Dhe64RkkFxC3", "proofs": [ "HiHrS9SHtgBpxtWuYjRVjbC3mu2oUdDyCbpXDGcBFYdb6t94xeWoERTWioaaLTL6y1ZzB35akJtNrLogVkSgrzo" ], "script": "base64:AAIFAAAAAAAAAA8IAhIDCgEIEgYKBAgICAgAAAAAAAAAAgAAAAFpAQAAABlwb3N0X2luY29taW5nX3BvbHlnb25fdHhuAAAAAQAAAAxJbmNvbWluZ19UeG4EAAAAEnNwbGl0X2luY29taW5nX3R4bgkABLUAAAACBQAAAAxJbmNvbWluZ19UeG4CAAAAAV8EAAAAEWdldF9pbmNvbWluZ19oYXNoCQABkQAAAAIFAAAAEnNwbGl0X2luY29taW5nX3R4bgAAAAAAAAAAAAQAAAAUZ2V0X2luY29taW5nX2FkZHJlc3MJAAGRAAAAAgUAAAASc3BsaXRfaW5jb21pbmdfdHhuAAAAAAAAAAABBAAAABhnZXRfaW5jb21pbmdfYWRkcmVzc19oZXgJAAJcAAAAAQkAAZsAAAABBQAAABRnZXRfaW5jb21pbmdfYWRkcmVzcwQAAAATZ2V0X2luY29taW5nX2Ftb3VudAkAAZEAAAACBQAAABJzcGxpdF9pbmNvbWluZ190eG4AAAAAAAAAAAIEAAAAF2NvbnZlcnRfaW5jb21pbmdfYW1vdW50CQEAAAANcGFyc2VJbnRWYWx1ZQAAAAEFAAAA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AAES2V5MQAAAARLZXkyAAAABEtleTMJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAADS2V5CQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAABEtleTEJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAES2V5MgkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAARLZXkzBQAAAANuaWwAAAAAsJ51VA==", "height": 2702202, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3YoTGmsffXNBJA6b39FTWYoSvf2ZcmNfogDM5J3dVi79 Next: none Diff:
Old | New | Differences | |
---|---|---|---|
10 | 10 | let get_incoming_address = split_incoming_txn[1] | |
11 | 11 | let get_incoming_address_hex = toBase16String(toBytes(get_incoming_address)) | |
12 | 12 | let get_incoming_amount = split_incoming_txn[2] | |
13 | - | let convert_incoming_amount = | |
13 | + | let convert_incoming_amount = parseIntValue(get_incoming_amount) | |
14 | 14 | let read_incoming_txn = match getInteger(this, "Total_Incoming_Txns") { | |
15 | 15 | case a: Int => | |
16 | 16 | 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_address_hex = toBase16String(toBytes(get_incoming_address)) | |
12 | 12 | let get_incoming_amount = split_incoming_txn[2] | |
13 | - | let convert_incoming_amount = | |
13 | + | let convert_incoming_amount = parseIntValue(get_incoming_amount) | |
14 | 14 | let read_incoming_txn = match getInteger(this, "Total_Incoming_Txns") { | |
15 | 15 | case a: Int => | |
16 | 16 | a | |
17 | 17 | case _ => | |
18 | 18 | 0 | |
19 | 19 | } | |
20 | 20 | let total_incoming_txn = (read_incoming_txn + 1) | |
21 | 21 | let read_incoming_amount = match getInteger(this, "Total_Funds_Deposited") { | |
22 | 22 | case a: Int => | |
23 | 23 | a | |
24 | 24 | case _ => | |
25 | 25 | 0 | |
26 | 26 | } | |
27 | 27 | let total_incoming_amount = (read_incoming_amount + convert_incoming_amount) | |
28 | 28 | let read_incoming_amount_to_address = match getInteger(this, ("Total_Funds_Deposited_at_" + get_incoming_address)) { | |
29 | 29 | case a: Int => | |
30 | 30 | a | |
31 | 31 | case _ => | |
32 | 32 | 0 | |
33 | 33 | } | |
34 | 34 | let total_incoming_amount_to_address = (read_incoming_amount_to_address + convert_incoming_amount) | |
35 | 35 | let if_hash_already_exist = getString(this, ("Incoming_Txn_Hash_" + get_incoming_hash)) | |
36 | 36 | if ((if_hash_already_exist == get_incoming_hash)) | |
37 | 37 | then throw((get_incoming_hash + " Already Exist and released by Dapp.")) | |
38 | 38 | else [IntegerEntry("Total_Incoming_Txns", total_incoming_txn), StringEntry(("Incoming_Txn_Hash_" + get_incoming_hash), get_incoming_hash), StringEntry(("Hex_of_" + get_incoming_address), get_incoming_address_hex), IntegerEntry("Total_Funds_Deposited", total_incoming_amount), IntegerEntry(("Total_Funds_Deposited_at_" + get_incoming_address), total_incoming_amount_to_address), ScriptTransfer(addressFromStringValue(get_incoming_address), convert_incoming_amount, unit)] | |
39 | 39 | } | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | ||
43 | 43 | @Callable(i) | |
44 | 44 | func Delete (Key,Key1,Key2,Key3) = [DeleteEntry(Key), DeleteEntry(Key1), DeleteEntry(Key2), DeleteEntry(Key3)] | |
45 | 45 | ||
46 | 46 |
github/deemru/w8io/169f3d6 20.71 ms ◑