tx · BGSkZo6Enh9CXbmHvY25U7WHgS2r8gYYDWnN6Diwdb1h
3MyR7tR3rqJJDyvsotfqT1SzuyC2th2GX2g: -0.01000000 Waves
2023.08.07 17:27 [2700284] smart account 3MyR7tR3rqJJDyvsotfqT1SzuyC2th2GX2g > SELF 0.00000000 Waves
{
"type": 13,
"id": "BGSkZo6Enh9CXbmHvY25U7WHgS2r8gYYDWnN6Diwdb1h",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1691418455429,
"version": 2,
"chainId": 84,
"sender": "3MyR7tR3rqJJDyvsotfqT1SzuyC2th2GX2g",
"senderPublicKey": "BNhrJZCabKcMuPTo84Uz3QTUH237UCr6Dhe64RkkFxC3",
"proofs": [
"48RCJKpXueLrCC3K36toLz36qGjwpGsYneRKDGQSE49Bdjqd6yapThbMXQzJqkmTMiyqQaLNVvaaC3thkLhq8cN8"
],
"script": "base64:AAIFAAAAAAAAAA8IAhIDCgEIEgYKBAgICAgAAAAAAAAAAgAAAAFpAQAAABlwb3N0X2luY29taW5nX3BvbHlnb25fdHhuAAAAAQAAAAxJbmNvbWluZ19UeG4EAAAAEnNwbGl0X2luY29taW5nX3R4bgkABLUAAAACBQAAAAxJbmNvbWluZ19UeG4CAAAAAV8EAAAAEWdldF9pbmNvbWluZ19oYXNoCQABkQAAAAIFAAAAEnNwbGl0X2luY29taW5nX3R4bgAAAAAAAAAAAAQAAAAUZ2V0X2luY29taW5nX2FkZHJlc3MJAAGRAAAAAgUAAAASc3BsaXRfaW5jb21pbmdfdHhuAAAAAAAAAAABBAAAABNnZXRfaW5jb21pbmdfYW1vdW50CQABkQAAAAIFAAAAEnNwbGl0X2luY29taW5nX3R4bgAAAAAAAAAAAgQAAAAXY29udmVydF9pbmNvbWluZ19hbW91bnQJAABrAAAAAwkBAAAADXBhcnNlSW50VmFsdWUAAAABBQAAABNnZXRfaW5jb21pbmdfYW1vdW50AAAAAAAAAAABAAAAAAJUC+QABAAAABNjaGVja19pZl9oYXNoX2V4aXRz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AARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAES2V5MwUAAAADbmlsAAAAAHzrzos=",
"height": 2700284,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: obFpV8X8u4sKAGwH4MpmZjMfxnpvd8cZjDo9LVWdLK6
Next: HhWr51wuEnHxs7MpmPQsHQQ6zCmLaKhqrt6DHwqwwJrJ
Diff:
Old | New | | Differences |
---|
10 | 10 | | let e = c[1] |
---|
11 | 11 | | let f = c[2] |
---|
12 | 12 | | let g = fraction(parseIntValue(f), 1, 10000000000) |
---|
13 | | - | let h = { |
---|
14 | | - | let i = getInteger(this, "Total_Incoming_Txns") |
---|
15 | | - | if ($isInstanceOf(i, "Int")) |
---|
| 13 | + | let h = getStringValue(this, ("get_incoming_hash" + d)) |
---|
| 14 | + | let i = { |
---|
| 15 | + | let j = getInteger(this, "Total_Incoming_Txns") |
---|
| 16 | + | if ($isInstanceOf(j, "Int")) |
---|
16 | 17 | | then { |
---|
17 | | - | let j = i |
---|
18 | | - | j |
---|
| 18 | + | let k = j |
---|
| 19 | + | k |
---|
19 | 20 | | } |
---|
20 | 21 | | else 0 |
---|
21 | 22 | | } |
---|
22 | | - | let k = (h + 1) |
---|
23 | | - | let l = { |
---|
24 | | - | let i = getInteger(this, "Total_Funds_Deposited") |
---|
25 | | - | if ($isInstanceOf(i, "Int")) |
---|
| 23 | + | let l = (i + 1) |
---|
| 24 | + | let m = { |
---|
| 25 | + | let j = getInteger(this, "Total_Funds_Deposited") |
---|
| 26 | + | if ($isInstanceOf(j, "Int")) |
---|
26 | 27 | | then { |
---|
27 | | - | let j = i |
---|
28 | | - | j |
---|
| 28 | + | let k = j |
---|
| 29 | + | k |
---|
29 | 30 | | } |
---|
30 | 31 | | else 0 |
---|
31 | 32 | | } |
---|
32 | | - | let m = (l + g) |
---|
33 | | - | let n = { |
---|
34 | | - | let i = getInteger(this, e) |
---|
35 | | - | if ($isInstanceOf(i, "Int")) |
---|
| 33 | + | let n = (m + g) |
---|
| 34 | + | let o = { |
---|
| 35 | + | let j = getInteger(this, e) |
---|
| 36 | + | if ($isInstanceOf(j, "Int")) |
---|
36 | 37 | | then { |
---|
37 | | - | let j = i |
---|
38 | | - | j |
---|
| 38 | + | let k = j |
---|
| 39 | + | k |
---|
39 | 40 | | } |
---|
40 | 41 | | else 0 |
---|
41 | 42 | | } |
---|
42 | | - | let o = (n + g) |
---|
43 | | - | [IntegerEntry("Total_Incoming_Txns", k), IntegerEntry("Total_Funds_Deposited", m), IntegerEntry(e, o), StringEntry(toString(k), b), ScriptTransfer(addressFromStringValue(e), g, unit)] |
---|
| 43 | + | let p = (o + g) |
---|
| 44 | + | if ((h == d)) |
---|
| 45 | + | then throw((("Txn ID:" + d) + " is already claimed.")) |
---|
| 46 | + | else [IntegerEntry("Total_Incoming_Txns", l), StringEntry(("Incoming_Txn_Hash_" + d), d), IntegerEntry("Total_Funds_Deposited", n), IntegerEntry(e, p), StringEntry(toString(l), b), ScriptTransfer(addressFromStringValue(e), g, unit)] |
---|
44 | 47 | | } |
---|
45 | 48 | | |
---|
46 | 49 | | |
---|
47 | 50 | | |
---|
48 | 51 | | @Callable(a) |
---|
49 | | - | func Delete (p,q,r,s) = [DeleteEntry(p), DeleteEntry(q), DeleteEntry(r), DeleteEntry(s)] |
---|
| 52 | + | func Delete (q,r,s,t) = [DeleteEntry(q), DeleteEntry(r), DeleteEntry(s), DeleteEntry(t)] |
---|
50 | 53 | | |
---|
51 | 54 | | |
---|
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 post_incoming_polygon_txn (b) = { |
---|
8 | 8 | | let c = split(b, "_") |
---|
9 | 9 | | let d = c[0] |
---|
10 | 10 | | let e = c[1] |
---|
11 | 11 | | let f = c[2] |
---|
12 | 12 | | let g = fraction(parseIntValue(f), 1, 10000000000) |
---|
13 | | - | let h = { |
---|
14 | | - | let i = getInteger(this, "Total_Incoming_Txns") |
---|
15 | | - | if ($isInstanceOf(i, "Int")) |
---|
| 13 | + | let h = getStringValue(this, ("get_incoming_hash" + d)) |
---|
| 14 | + | let i = { |
---|
| 15 | + | let j = getInteger(this, "Total_Incoming_Txns") |
---|
| 16 | + | if ($isInstanceOf(j, "Int")) |
---|
16 | 17 | | then { |
---|
17 | | - | let j = i |
---|
18 | | - | j |
---|
| 18 | + | let k = j |
---|
| 19 | + | k |
---|
19 | 20 | | } |
---|
20 | 21 | | else 0 |
---|
21 | 22 | | } |
---|
22 | | - | let k = (h + 1) |
---|
23 | | - | let l = { |
---|
24 | | - | let i = getInteger(this, "Total_Funds_Deposited") |
---|
25 | | - | if ($isInstanceOf(i, "Int")) |
---|
| 23 | + | let l = (i + 1) |
---|
| 24 | + | let m = { |
---|
| 25 | + | let j = getInteger(this, "Total_Funds_Deposited") |
---|
| 26 | + | if ($isInstanceOf(j, "Int")) |
---|
26 | 27 | | then { |
---|
27 | | - | let j = i |
---|
28 | | - | j |
---|
| 28 | + | let k = j |
---|
| 29 | + | k |
---|
29 | 30 | | } |
---|
30 | 31 | | else 0 |
---|
31 | 32 | | } |
---|
32 | | - | let m = (l + g) |
---|
33 | | - | let n = { |
---|
34 | | - | let i = getInteger(this, e) |
---|
35 | | - | if ($isInstanceOf(i, "Int")) |
---|
| 33 | + | let n = (m + g) |
---|
| 34 | + | let o = { |
---|
| 35 | + | let j = getInteger(this, e) |
---|
| 36 | + | if ($isInstanceOf(j, "Int")) |
---|
36 | 37 | | then { |
---|
37 | | - | let j = i |
---|
38 | | - | j |
---|
| 38 | + | let k = j |
---|
| 39 | + | k |
---|
39 | 40 | | } |
---|
40 | 41 | | else 0 |
---|
41 | 42 | | } |
---|
42 | | - | let o = (n + g) |
---|
43 | | - | [IntegerEntry("Total_Incoming_Txns", k), IntegerEntry("Total_Funds_Deposited", m), IntegerEntry(e, o), StringEntry(toString(k), b), ScriptTransfer(addressFromStringValue(e), g, unit)] |
---|
| 43 | + | let p = (o + g) |
---|
| 44 | + | if ((h == d)) |
---|
| 45 | + | then throw((("Txn ID:" + d) + " is already claimed.")) |
---|
| 46 | + | else [IntegerEntry("Total_Incoming_Txns", l), StringEntry(("Incoming_Txn_Hash_" + d), d), IntegerEntry("Total_Funds_Deposited", n), IntegerEntry(e, p), StringEntry(toString(l), b), ScriptTransfer(addressFromStringValue(e), g, unit)] |
---|
44 | 47 | | } |
---|
45 | 48 | | |
---|
46 | 49 | | |
---|
47 | 50 | | |
---|
48 | 51 | | @Callable(a) |
---|
49 | | - | func Delete (p,q,r,s) = [DeleteEntry(p), DeleteEntry(q), DeleteEntry(r), DeleteEntry(s)] |
---|
| 52 | + | func Delete (q,r,s,t) = [DeleteEntry(q), DeleteEntry(r), DeleteEntry(s), DeleteEntry(t)] |
---|
50 | 53 | | |
---|
51 | 54 | | |
---|