tx · CGRXBfaf3XtCzcmrv3E7yocXiJi3zighm1uZT58JQWgJ

3MsEp5GMHPrs1NzqaZARSmKnq53mcemf7yS:  -0.00900000 Waves

2023.08.08 11:20 [2701380] smart account 3MsEp5GMHPrs1NzqaZARSmKnq53mcemf7yS > SELF 0.00000000 Waves

{ "type": 13, "id": "CGRXBfaf3XtCzcmrv3E7yocXiJi3zighm1uZT58JQWgJ", "fee": 900000, "feeAssetId": null, "timestamp": 1691482845213, "version": 2, "chainId": 84, "sender": "3MsEp5GMHPrs1NzqaZARSmKnq53mcemf7yS", "senderPublicKey": "BmV3aPhqkjNgu3zD3rx1oaWTnPqgB8uRBQuvYjpYWtTu", "proofs": [ "HkNX6AyxknxFxaou4uyhBCdLjKhkkHWAvD8ynzECozAnnwuCpA1DiFhFjSeFujGW8ESkzwj1fVaW7YQJ7YfBmEQ" ], "script": null, "height": 2701380, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: A9ydu9RDwhVTgh6tfVsJqmSxkVYyLNAyDk8tVRS9gmyH Next: none Full:
OldNewDifferences
1-{-# STDLIB_VERSION 5 #-}
2-{-# SCRIPT_TYPE ACCOUNT #-}
3-{-# CONTENT_TYPE DAPP #-}
4-
5-
6-@Callable(i)
7-func post_incoming_polygon_txn (Incoming_Txn) = {
8- let split_incoming_txn = split(Incoming_Txn, "_")
9- let get_incoming_hash = split_incoming_txn[0]
10- let get_incoming_address = split_incoming_txn[1]
11- let get_incoming_address_hex = toBase16String(toBytes(get_incoming_address))
12- let get_incoming_amount = split_incoming_txn[2]
13- let convert_incoming_amount = fraction(parseIntValue(get_incoming_amount), 1, 10000000000)
14- let read_incoming_txn = match getInteger(this, "Total_Incoming_Txns") {
15- case a: Int =>
16- a
17- case _ =>
18- 0
19- }
20- let total_incoming_txn = (read_incoming_txn + 1)
21- let read_incoming_amount = match getInteger(this, "Total_Funds_Deposited") {
22- case a: Int =>
23- a
24- case _ =>
25- 0
26- }
27- let total_incoming_amount = (read_incoming_amount + convert_incoming_amount)
28- let read_incoming_amount_to_address = match getInteger(this, get_incoming_address) {
29- case a: Int =>
30- a
31- case _ =>
32- 0
33- }
34- let total_incoming_amount_to_address = (read_incoming_amount_to_address + convert_incoming_amount)
35- let if_hash_already_exist = getString(this, ("Incoming_Txn_Hash_" + get_incoming_hash))
36- if ((if_hash_already_exist == get_incoming_hash))
37- then throw((get_incoming_hash + " Already Exist and released by Dapp."))
38- 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), StringEntry(get_incoming_address_hex, get_incoming_address)]
39- }
40-
41-
42-
43-@Callable(i)
44-func Delete (Key,Key1,Key2,Key3) = [DeleteEntry(Key), DeleteEntry(Key1), DeleteEntry(Key2), DeleteEntry(Key3)]
45-
46-
1+# no script

github/deemru/w8io/026f985 
38.46 ms