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