tx · 4nU6GWtYodqrhD3LwHSxd1HAejnLxMuYLSzzZpVtLsoL
3MyR7tR3rqJJDyvsotfqT1SzuyC2th2GX2g: -0.01000000 Waves
2023.08.07 13:32 [2700054] smart account 3MyR7tR3rqJJDyvsotfqT1SzuyC2th2GX2g > SELF 0.00000000 Waves
{
"type": 13,
"id": "4nU6GWtYodqrhD3LwHSxd1HAejnLxMuYLSzzZpVtLsoL",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1691404325017,
"version": 2,
"chainId": 84,
"sender": "3MyR7tR3rqJJDyvsotfqT1SzuyC2th2GX2g",
"senderPublicKey": "BNhrJZCabKcMuPTo84Uz3QTUH237UCr6Dhe64RkkFxC3",
"proofs": [
"x5fdivXJ4yX4dJKffLXcfUS8F7fHn2VYczN2fyWWeWx1Cxwo8CVtgdhfxMeksV42MdFPkpgtyGHchfumMJfNVyX"
],
"script": "base64:AAIFAAAAAAAAAAwIAhIDCgEIEgMKAQgAAAAAAAAAAgAAAAFpAQAAABhyZWdpc3Rlcl9wb2x5Z29uX2FkZHJlc3MAAAABAAAAD1BvbHlnb25fQWRkcmVzcwQAAAAKY3VycmVudEtleQkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAABRyZWFkX2ZpcnN0X3R3b19jaGFycwkAAS8AAAACBQAAAA9Qb2x5Z29uX0FkZHJlc3MAAAAAAAAAAAIEAAAAFWVuc3VyZV9hZGRyZXNzX3ByZWZpeAIAAAACMHgDCQEAAAACIT0AAAACCQABMQAAAAEFAAAAD1BvbHlnb25fQWRkcmVzcwAAAAAAAAAAKgkAAAIAAAABAgAAAHlFbnRlcmVkIEFkZHJlc3MgbGVuZ3RoIGlzIFdyb25nLCBBZGRyZXNzIGxlbmd0aCBzaG91bGQgYmUgNDIgY2hhcnMuIFBsZWFzZSBFbnRlciBhIHZhbGlkIFBvbHlnb24gQWRkcmVzcyBzdGFydHMgd2l0aCAnMHgnAwkBAAAAAiE9AAAAAgUAAAAU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dldF9pbmNvbWluZ19hZGRyZXNzBQAAAANuaWwAAAAAatj/RQ==",
"height": 2700054,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: BjamD5Uy11uWkyD4ZMLj4UTdXELKXRspoZDoJyfrEVnL
Next: 43pTvML6sqVVfGrgoAnLuGRt69BVMGyJMtfND5HpCwqC
Diff:
Old | New | | Differences |
---|
29 | 29 | | else 0 |
---|
30 | 30 | | } |
---|
31 | 31 | | let j = (g + 1) |
---|
32 | | - | [IntegerEntry("Total_Incoming_Txns", j), StringEntry((toString(j) + "_Polygon_Incoming_Txn"), f)] |
---|
| 32 | + | let k = split(f, "_") |
---|
| 33 | + | let l = k[0] |
---|
| 34 | + | [IntegerEntry("Total_Incoming_Txns", j), StringEntry((toString(j) + "_Polygon_Incoming_Txn"), f), StringEntry("Incoming_Address", l)] |
---|
33 | 35 | | } |
---|
34 | 36 | | |
---|
35 | 37 | | |
---|
Full:
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 | 10 | | let e = "0x" |
---|
11 | 11 | | if ((size(b) != 42)) |
---|
12 | 12 | | then throw("Entered Address length is Wrong, Address length should be 42 chars. Please Enter a valid Polygon Address starts with '0x'") |
---|
13 | 13 | | else if ((d != e)) |
---|
14 | 14 | | then throw("Wrong Polygon Address, Prefix must start with '0x'") |
---|
15 | 15 | | else [StringEntry(("Polygon_Address_" + c), b)] |
---|
16 | 16 | | } |
---|
17 | 17 | | |
---|
18 | 18 | | |
---|
19 | 19 | | |
---|
20 | 20 | | @Callable(a) |
---|
21 | 21 | | func post_incoming_polygon_txn (f) = { |
---|
22 | 22 | | let g = { |
---|
23 | 23 | | let h = getInteger(this, "Total_Incoming_Txns") |
---|
24 | 24 | | if ($isInstanceOf(h, "Int")) |
---|
25 | 25 | | then { |
---|
26 | 26 | | let i = h |
---|
27 | 27 | | i |
---|
28 | 28 | | } |
---|
29 | 29 | | else 0 |
---|
30 | 30 | | } |
---|
31 | 31 | | let j = (g + 1) |
---|
32 | | - | [IntegerEntry("Total_Incoming_Txns", j), StringEntry((toString(j) + "_Polygon_Incoming_Txn"), f)] |
---|
| 32 | + | let k = split(f, "_") |
---|
| 33 | + | let l = k[0] |
---|
| 34 | + | [IntegerEntry("Total_Incoming_Txns", j), StringEntry((toString(j) + "_Polygon_Incoming_Txn"), f), StringEntry("Incoming_Address", l)] |
---|
33 | 35 | | } |
---|
34 | 36 | | |
---|
35 | 37 | | |
---|