tx · 91jYKpLqW6U9oTXWF8nmKSoVJ3R7LRrPdDCarTo8CBz5 3MyR7tR3rqJJDyvsotfqT1SzuyC2th2GX2g: -0.01000000 Waves 2023.08.07 16:26 [2700223] smart account 3MyR7tR3rqJJDyvsotfqT1SzuyC2th2GX2g > SELF 0.00000000 Waves
{ "type": 13, "id": "91jYKpLqW6U9oTXWF8nmKSoVJ3R7LRrPdDCarTo8CBz5", "fee": 1000000, "feeAssetId": null, "timestamp": 1691414765189, "version": 2, "chainId": 84, "sender": "3MyR7tR3rqJJDyvsotfqT1SzuyC2th2GX2g", "senderPublicKey": "BNhrJZCabKcMuPTo84Uz3QTUH237UCr6Dhe64RkkFxC3", "proofs": [ "3Y8KWSHhuRrqjqahE4ERWAzSpLHo7EFfZ77arh1feUHYKudteiXN4f3CXPAhipFTf3vqVvM3he5TDMFzyxXPiWS5" ], "script": "base64:AAIFAAAAAAAAAA8IAhIDCgEIEgYKBAgICAgAAAAAAAAAAgAAAAFpAQAAABlwb3N0X2luY29taW5nX3BvbHlnb25fdHhuAAAAAQAAAAxJbmNvbWluZ19UeG4EAAAAEnNwbGl0X2luY29taW5nX3R4bgkABLUAAAACBQAAAAxJbmNvbWluZ19UeG4CAAAAAV8EAAAAFGdldF9pbmNvbWluZ19hZGRyZXNzCQABkQAAAAIFAAAAEnNwbGl0X2luY29taW5nX3R4bgAAAAAAAAAAAAQAAAATZ2V0X2luY29taW5nX2Ftb3VudAkAAZEAAAACBQAAABJzcGxpdF9pbmNvbWluZ190eG4AAAAAAAAAAAEEAAAAEXJlYWRfaW5jb21pbmdfdHhuBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMCAAAAE1RvdGFsX0luY29taW5nX1R4bnMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAQAAAASdG90YWxfaW5jb21pbmdfdHhuCQAAZAAAAAIFAAAAEXJlYWRfaW5jb21pbmdfdHhuAAAAAAAAAAABCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAABNUb3RhbF9JbmNvbWluZ19UeG5zBQAAABJ0b3RhbF9pbmNvbWluZ190eG4JAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAAaQAAAABBQAAABJ0b3RhbF9pbmNvbWluZ190eG4FAAAADEluY29taW5nX1R4bgkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABBQAAABRnZXRfaW5jb21pbmdfYWRkcmVzcwkBAAAADXBhcnNlSW50VmFsdWUAAAABBQAAABNnZXRfaW5jb21pbmdfYW1vdW50BQAAAAR1bml0BQAAAANuaWwAAAABaQEAAAAGRGVsZXRlAAAABAAAAANLZXkAAAAES2V5MQAAAARLZXkyAAAABEtleTMJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAADS2V5CQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAABEtleTEJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAES2V5MgkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAARLZXkzBQAAAANuaWwAAAAARsgZOA==", "height": 2700223, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HV3G4qAvppPb7HFdaJF6uckg9xWop26ESMbidt5rMYw6 Next: 2KnJSsT8MVAe8yiE9fNpi4SeuyLe4WDyiUPcS4xBxhro Diff:
Old | New | Differences | |
---|---|---|---|
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | - | func register_polygon_address (Polygon_Address) = { | |
8 | - | let currentKey = toBase58String(i.caller.bytes) | |
9 | - | let fetch_pre_register = getStringValue(this, Polygon_Address) | |
10 | - | let read_first_two_chars = take(Polygon_Address, 2) | |
11 | - | let ensure_address_prefix = "0x" | |
12 | - | if ((size(Polygon_Address) != 42)) | |
13 | - | then throw("Entered Address length is Wrong, Address length should be 42 chars. Please Enter a valid Polygon Address starts with '0x'") | |
14 | - | else if ((read_first_two_chars != ensure_address_prefix)) | |
15 | - | then throw("Wrong Polygon Address, Prefix must start with '0x'") | |
16 | - | else if ((fetch_pre_register == Polygon_Address)) | |
17 | - | then throw(("Address Already Registered by " + getStringValue(this, currentKey))) | |
18 | - | else [StringEntry(currentKey, Polygon_Address)] | |
19 | - | } | |
20 | - | ||
21 | - | ||
22 | - | ||
23 | - | @Callable(i) | |
24 | 7 | func post_incoming_polygon_txn (Incoming_Txn) = { | |
25 | 8 | let split_incoming_txn = split(Incoming_Txn, "_") | |
26 | 9 | let get_incoming_address = split_incoming_txn[0] | |
27 | - | let get_incoming_hash = split_incoming_txn[1] | |
28 | - | let get_incoming_amount = split_incoming_txn[2] | |
29 | - | let check_user_registerd_address = getStringValue(this, get_incoming_address) | |
10 | + | let get_incoming_amount = split_incoming_txn[1] | |
30 | 11 | let read_incoming_txn = match getInteger(this, "Total_Incoming_Txns") { | |
31 | 12 | case a: Int => | |
32 | 13 | a | |
34 | 15 | 0 | |
35 | 16 | } | |
36 | 17 | let total_incoming_txn = (read_incoming_txn + 1) | |
37 | - | [IntegerEntry("Total_Incoming_Txns", total_incoming_txn), | |
18 | + | [IntegerEntry("Total_Incoming_Txns", total_incoming_txn), StringEntry(toString(total_incoming_txn), Incoming_Txn), ScriptTransfer(addressFromStringValue(get_incoming_address), parseIntValue(get_incoming_amount), unit)] | |
38 | 19 | } | |
39 | 20 | ||
40 | 21 |
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 | - | func register_polygon_address (Polygon_Address) = { | |
8 | - | let currentKey = toBase58String(i.caller.bytes) | |
9 | - | let fetch_pre_register = getStringValue(this, Polygon_Address) | |
10 | - | let read_first_two_chars = take(Polygon_Address, 2) | |
11 | - | let ensure_address_prefix = "0x" | |
12 | - | if ((size(Polygon_Address) != 42)) | |
13 | - | then throw("Entered Address length is Wrong, Address length should be 42 chars. Please Enter a valid Polygon Address starts with '0x'") | |
14 | - | else if ((read_first_two_chars != ensure_address_prefix)) | |
15 | - | then throw("Wrong Polygon Address, Prefix must start with '0x'") | |
16 | - | else if ((fetch_pre_register == Polygon_Address)) | |
17 | - | then throw(("Address Already Registered by " + getStringValue(this, currentKey))) | |
18 | - | else [StringEntry(currentKey, Polygon_Address)] | |
19 | - | } | |
20 | - | ||
21 | - | ||
22 | - | ||
23 | - | @Callable(i) | |
24 | 7 | func post_incoming_polygon_txn (Incoming_Txn) = { | |
25 | 8 | let split_incoming_txn = split(Incoming_Txn, "_") | |
26 | 9 | let get_incoming_address = split_incoming_txn[0] | |
27 | - | let get_incoming_hash = split_incoming_txn[1] | |
28 | - | let get_incoming_amount = split_incoming_txn[2] | |
29 | - | let check_user_registerd_address = getStringValue(this, get_incoming_address) | |
10 | + | let get_incoming_amount = split_incoming_txn[1] | |
30 | 11 | let read_incoming_txn = match getInteger(this, "Total_Incoming_Txns") { | |
31 | 12 | case a: Int => | |
32 | 13 | a | |
33 | 14 | case _ => | |
34 | 15 | 0 | |
35 | 16 | } | |
36 | 17 | let total_incoming_txn = (read_incoming_txn + 1) | |
37 | - | [IntegerEntry("Total_Incoming_Txns", total_incoming_txn), | |
18 | + | [IntegerEntry("Total_Incoming_Txns", total_incoming_txn), StringEntry(toString(total_incoming_txn), Incoming_Txn), ScriptTransfer(addressFromStringValue(get_incoming_address), parseIntValue(get_incoming_amount), unit)] | |
38 | 19 | } | |
39 | 20 | ||
40 | 21 | ||
41 | 22 | ||
42 | 23 | @Callable(i) | |
43 | 24 | func Delete (Key,Key1,Key2,Key3) = [DeleteEntry(Key), DeleteEntry(Key1), DeleteEntry(Key2), DeleteEntry(Key3)] | |
44 | 25 | ||
45 | 26 |
github/deemru/w8io/169f3d6 27.71 ms ◑