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+QABAAAABNjaGVja19pZl9oYXNoX2V4aXRzCQEAAAARQG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kBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAES2V5MwUAAAADbmlsAAAAAHzrzos=", "height": 2700284, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: obFpV8X8u4sKAGwH4MpmZjMfxnpvd8cZjDo9LVWdLK6 Next: HhWr51wuEnHxs7MpmPQsHQQ6zCmLaKhqrt6DHwqwwJrJ Diff:
OldNewDifferences
1010 let e = c[1]
1111 let f = c[2]
1212 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"))
1617 then {
17- let j = i
18- j
18+ let k = j
19+ k
1920 }
2021 else 0
2122 }
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"))
2627 then {
27- let j = i
28- j
28+ let k = j
29+ k
2930 }
3031 else 0
3132 }
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"))
3637 then {
37- let j = i
38- j
38+ let k = j
39+ k
3940 }
4041 else 0
4142 }
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)]
4447 }
4548
4649
4750
4851 @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)]
5053
5154
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func post_incoming_polygon_txn (b) = {
88 let c = split(b, "_")
99 let d = c[0]
1010 let e = c[1]
1111 let f = c[2]
1212 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"))
1617 then {
17- let j = i
18- j
18+ let k = j
19+ k
1920 }
2021 else 0
2122 }
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"))
2627 then {
27- let j = i
28- j
28+ let k = j
29+ k
2930 }
3031 else 0
3132 }
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"))
3637 then {
37- let j = i
38- j
38+ let k = j
39+ k
3940 }
4041 else 0
4142 }
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)]
4447 }
4548
4649
4750
4851 @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)]
5053
5154

github/deemru/w8io/169f3d6 
32.62 ms