tx · 5PAouPpZz2qdF9QK9UaDSYWzzAhDiUW8d71Qk3rrLLS8 3MyR7tR3rqJJDyvsotfqT1SzuyC2th2GX2g: -0.01000000 Waves 2023.08.07 14:07 [2700092] smart account 3MyR7tR3rqJJDyvsotfqT1SzuyC2th2GX2g > SELF 0.00000000 Waves
{ "type": 13, "id": "5PAouPpZz2qdF9QK9UaDSYWzzAhDiUW8d71Qk3rrLLS8", "fee": 1000000, "feeAssetId": null, "timestamp": 1691406482899, "version": 2, "chainId": 84, "sender": "3MyR7tR3rqJJDyvsotfqT1SzuyC2th2GX2g", "senderPublicKey": "BNhrJZCabKcMuPTo84Uz3QTUH237UCr6Dhe64RkkFxC3", "proofs": [ "43zaZtzkiCDCNmQPMJMAsHnx3v6RwqPvNpqRRh7Wv9S4KXCzajbCH7NZycKFxXFKH59EKhKNWwQRBLnnRJPqYupy" ], "script": "base64:AAIFAAAAAAAAABQIAhIDCgEIEgMKAQgSBgoECAgICAAAAAAAAAADAAAAAWkBAAAAGHJlZ2lzdGVyX3BvbHlnb25fYWRkcmVzcwAAAAEAAAAPUG9seWdvbl9BZGRyZXNzBAAAAApjdXJyZW50S2V5CQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAAFHJlYWRfZmlyc3RfdHdvX2NoYXJzCQABLwAAAAIFAAAAD1BvbHlnb25fQWRkcmVzcwAAAAAAAAAAAgQAAAAUcmVhZF9hZGRyZXNzX2lmX2V4aXQJAQAAABFAZXh0ck5hdGl2ZSgxMDUzKQAAAAIFAAAABHRoaXMFAAAAD1BvbHlnb25fQWRkcmVzcwQAAAAVZW5zdXJlX2FkZHJlc3NfcHJlZml4AgAAAAIweAMJAQAAAAIhPQAAAAIJAAExAAAAAQUAAAAPUG9seWdvbl9BZGRyZXNzAAAAAAAAAAAqCQAAAgAAAAECAAAAeUVudGVyZWQgQWRkcmVzcyBsZW5ndGggaXMgV3JvbmcsIEFkZHJlc3MgbGVuZ3RoIHNob3VsZCBi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VHhucwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAABAAAABJ0b3RhbF9pbmNvbWluZ190eG4JAABkAAAAAgUAAAARcmVhZF9pbmNvbWluZ190eG4AAAAAAAAAAAEJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAAE1RvdGFsX0luY29taW5nX1R4bnMFAAAAEnRvdGFsX2luY29taW5nX3R4bgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAARZ2V0X2luY29taW5nX2hhc2gJAQAAAA1wYXJzZUludFZhbHVlAAAAAQUAAAATZ2V0X2luY29taW5nX2Ftb3VudAUAAAADbmlsAAAAAWkBAAAABkRlbGV0ZQAAAAQAAAADS2V5AAAABEtleTEAAAAES2V5MgAAAARLZXkzCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAAA0tleQkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAARLZXkxCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAABEtleTIJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAES2V5MwUAAAADbmlsAAAAAHqf4OA=", "height": 2700092, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: ETGREjpTdEuMALhKRFvSsX71DL3HQ9WPqXXudp5HE2Nm Next: 5GQ3LYfyx1WZRWiC9C8zVQobFt9JQjXZaCXrFDB5egNK Diff:
Old | New | Differences | |
---|---|---|---|
7 | 7 | func register_polygon_address (b) = { | |
8 | 8 | let c = toBase58String(a.caller.bytes) | |
9 | 9 | let d = take(b, 2) | |
10 | - | let e = | |
10 | + | let e = getStringValue(this, b) | |
11 | 11 | let f = "0x" | |
12 | 12 | if ((size(b) != 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'") |
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(a) | |
7 | 7 | func register_polygon_address (b) = { | |
8 | 8 | let c = toBase58String(a.caller.bytes) | |
9 | 9 | let d = take(b, 2) | |
10 | - | let e = | |
10 | + | let e = getStringValue(this, b) | |
11 | 11 | let f = "0x" | |
12 | 12 | if ((size(b) != 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 ((d != f)) | |
15 | 15 | then throw("Wrong Polygon Address, Prefix must start with '0x'") | |
16 | 16 | else if ((e == b)) | |
17 | 17 | then throw("Address already Registered") | |
18 | 18 | else [StringEntry(b, c)] | |
19 | 19 | } | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | ||
23 | 23 | @Callable(a) | |
24 | 24 | func post_incoming_polygon_txn (g) = { | |
25 | 25 | let h = split(g, "_") | |
26 | 26 | let i = h[0] | |
27 | 27 | let j = h[1] | |
28 | 28 | let k = h[2] | |
29 | 29 | let l = getStringValue(this, i) | |
30 | 30 | let m = { | |
31 | 31 | let n = getInteger(this, "Total_Incoming_Txns") | |
32 | 32 | if ($isInstanceOf(n, "Int")) | |
33 | 33 | then { | |
34 | 34 | let o = n | |
35 | 35 | o | |
36 | 36 | } | |
37 | 37 | else 0 | |
38 | 38 | } | |
39 | 39 | let p = (m + 1) | |
40 | 40 | [IntegerEntry("Total_Incoming_Txns", p), IntegerEntry(j, parseIntValue(k))] | |
41 | 41 | } | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | ||
45 | 45 | @Callable(a) | |
46 | 46 | func Delete (q,r,s,t) = [DeleteEntry(q), DeleteEntry(r), DeleteEntry(s), DeleteEntry(t)] | |
47 | 47 | ||
48 | 48 |
github/deemru/w8io/169f3d6 31.50 ms ◑