tx · Be8kKnf3JyQ1j2DvdJHb2oaAYXHxfMudogcxUduWyTYZ

3Mqzhyb3ayfeb2bnZzAthD1W8oKsNaw7on1:  -0.01400000 Waves

2022.03.19 09:45 [1970483] smart account 3Mqzhyb3ayfeb2bnZzAthD1W8oKsNaw7on1 > SELF 0.00000000 Waves

{ "type": 13, "id": "Be8kKnf3JyQ1j2DvdJHb2oaAYXHxfMudogcxUduWyTYZ", "fee": 1400000, "feeAssetId": null, "timestamp": 1647672378200, "version": 2, "chainId": 84, "sender": "3Mqzhyb3ayfeb2bnZzAthD1W8oKsNaw7on1", "senderPublicKey": "Ehngpik6DXwbcV8tpLbd3qBFjChSdW49YqyxinREgabT", "proofs": [ "3fz86DPW2jZD4PjnFf3Qip39BtSi5sMgTTNsbmS8bzVg5beVMq3ADvFXmuAfVTPdDZCvY7DVg9nXm4JcrNKGgDSb" ], "script": "base64:AAIEAAAAAAAAAAYIAhIAEgAAAAAHAAAAAAdEYXBwRmVlAAAAAAABfXhAAAAAAA9nZXRjdXJyZW50cm91bmQJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAABHRoaXMCAAAADWN1cnJlbnRfcm91bmQAAAAAC3hVU0RBc3NldElEAQAAACAUvqy5I7Pn2Q+5aTq4aUxjl04TnuAMD5q9EZXpvqd6qwAAAAAMRkFJVEhBc3NldElEAQAAACAtb1sBuZ3lSm8ahGink+4TF5YYAu/xRHYwe1h195OooAAAAAARQ29sbGVjdEZlZUFkZHJlc3MJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEBAAAAIFKD2aCL15CSOzPl4EBEchtzseD8Xh+YHSzFnrJIx+IgAAAAAA5mZXRjaHRvdGFsdHhucwQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzAgAAAApUb3RhbF9UeG5zAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAAAAAACXRvdG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WQuCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAApUb3RhbF9UeG5zBQAAAAl0b3RhbHR4bnMJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgIAAAAPVG90YWxfVXNlclR4bnNfBQAAAApjdXJyZW50S2V5BQAAAA11c2VydG90YWx0eG5zCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAAEsAAAAAgIAAAASRGVwb3NpdF9BbW91bnRfT2ZfBQAAAApjdXJyZW50S2V5CQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAAEsAAAAAgIAAAARQ3VycmVudF9Sb3VuZF9PZl8FAAAACmN1cnJlbnRLZXkJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACAgAAABBDbGFpbV9TdGF0dXNfT2ZfBQAAAApjdXJyZW50S2V5AgAAAARQQUlECQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAAEsAAAAAgIAAAAPTm9fT2ZfRGVwb3NpdHNfBQAAAApjdXJyZW50S2V5CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAAPZmV0Y2h1c2VyYW1vdW50BQAAAAt4VVNEQXNzZXRJRAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5du3m9w==", "height": 1970483, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: ANpTBJUMz6v5SvxB74dnyRMpg5rWwLrmMKxbnzWdSjyL Next: 4E3APTNNNj9hRuiEcwANsRnt7gWrkRmMnoDoU1gP78eG Diff:
OldNewDifferences
7171 let r = valueOrErrorMessage(getInteger(this, ("Current_Round_Of_" + m)), "Your Address did not participated in any latest round Yet. Please Depoist again to WIN.")
7272 let s = getIntegerValue(this, (toString(r) + "_Start_Capital"))
7373 let t = getIntegerValue(this, (toString(r) + "_End_Capital"))
74- let u = getIntegerValue(this, ("Deposit_Amount_Of_" + m))
74+ let u = getStringValue(this, (toString(r) + "_status"))
75+ let v = getIntegerValue(this, ("Deposit_Amount_Of_" + m))
7576 let n = {
7677 let g = getInteger(this, ("Total_UserTxns_" + m))
7778 if ($isInstanceOf(g, "Int"))
8485 let o = (n + 1)
8586 if ((0 >= r))
8687 then throw("You don't have any dues of Round to Claim.")
87- else [IntegerEntry("Total_Txns", i), IntegerEntry(("Total_UserTxns_" + m), o), DeleteEntry(("Deposit_Amount_Of_" + m)), DeleteEntry(("Current_Round_Of_" + m)), StringEntry(("Claim_Status_Of_" + m), "PAID"), DeleteEntry(("No_Of_Deposits_" + m)), ScriptTransfer(j.caller, u, c)]
88+ else if ((u == "Start"))
89+ then throw("Round has Just Started Yet results are Pending to Post.")
90+ else if ((u == "Skipped"))
91+ then throw("Round results are Skipped.")
92+ else [IntegerEntry("Total_Txns", i), IntegerEntry(("Total_UserTxns_" + m), o), DeleteEntry(("Deposit_Amount_Of_" + m)), DeleteEntry(("Current_Round_Of_" + m)), StringEntry(("Claim_Status_Of_" + m), "PAID"), DeleteEntry(("No_Of_Deposits_" + m)), ScriptTransfer(j.caller, v, c)]
8893 }
8994
9095
91-@Verifier(v)
92-func w () = {
93- let g = v
94- sigVerify(v.bodyBytes, v.proofs[0], v.senderPublicKey)
96+@Verifier(w)
97+func x () = {
98+ let g = w
99+ sigVerify(w.bodyBytes, w.proofs[0], w.senderPublicKey)
95100 }
96101
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = 25000000
55
66 let b = getIntegerValue(this, "current_round")
77
88 let c = base58'2PyngaPGAFjV9AVFXSQANwumY6FSY1cqZDBK8NsEGCup'
99
1010 let d = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y'
1111
1212 let e = addressFromPublicKey(base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR')
1313
1414 let f = {
1515 let g = getInteger(this, "Total_Txns")
1616 if ($isInstanceOf(g, "Int"))
1717 then {
1818 let h = g
1919 h
2020 }
2121 else 0
2222 }
2323
2424 let i = (f + 1)
2525
2626 @Callable(j)
2727 func Deposit () = {
2828 let k = if ((size(j.payments) == 1))
2929 then j.payments[0]
3030 else throw((("No Payments Attached Please Attach " + toBase58String(c)) + " Asset Only."))
3131 let l = 1000000000000
3232 let m = toBase58String(j.caller.bytes)
3333 let n = {
3434 let g = getInteger(this, ("Total_UserTxns_" + m))
3535 if ($isInstanceOf(g, "Int"))
3636 then {
3737 let h = g
3838 h
3939 }
4040 else 0
4141 }
4242 let o = (n + 1)
4343 let p = {
4444 let g = getInteger(this, ("No_Of_Deposits_" + m))
4545 if ($isInstanceOf(g, "Int"))
4646 then {
4747 let h = g
4848 h
4949 }
5050 else 0
5151 }
5252 let q = (p + 1)
5353 if ((k.assetId != c))
5454 then throw("Incorrect asset attached, please attach only xUSD AssetID.")
5555 else if ((499999999 >= k.amount))
5656 then throw("Please attach minimum 5 xUSD to deposit to enter round.")
5757 else if ((k.amount > l))
5858 then throw("Please attach correct amount in between [5-10000] xUSD.")
5959 else if ((size(j.payments) > 1))
6060 then throw("Two assets attached, Kindly Attach only payment1 = xUSD with in [5-10000] xUSD Range.")
6161 else if ((p == 1))
6262 then throw("You Already participated for an Round, Which has not been settled Yet. Wait until round end and re-enter again.")
6363 else [IntegerEntry("Total_Txns", i), IntegerEntry(("Total_UserTxns_" + m), o), IntegerEntry(("Current_Round_Of_" + m), b), IntegerEntry(("Deposit_Amount_Of_" + m), (k.amount - a)), IntegerEntry(("No_Of_Deposits_" + m), q), StringEntry(("Claim_Status_Of_" + m), "PENDING"), ScriptTransfer(e, a, c)]
6464 }
6565
6666
6767
6868 @Callable(j)
6969 func Claim () = {
7070 let m = toBase58String(j.caller.bytes)
7171 let r = valueOrErrorMessage(getInteger(this, ("Current_Round_Of_" + m)), "Your Address did not participated in any latest round Yet. Please Depoist again to WIN.")
7272 let s = getIntegerValue(this, (toString(r) + "_Start_Capital"))
7373 let t = getIntegerValue(this, (toString(r) + "_End_Capital"))
74- let u = getIntegerValue(this, ("Deposit_Amount_Of_" + m))
74+ let u = getStringValue(this, (toString(r) + "_status"))
75+ let v = getIntegerValue(this, ("Deposit_Amount_Of_" + m))
7576 let n = {
7677 let g = getInteger(this, ("Total_UserTxns_" + m))
7778 if ($isInstanceOf(g, "Int"))
7879 then {
7980 let h = g
8081 h
8182 }
8283 else 0
8384 }
8485 let o = (n + 1)
8586 if ((0 >= r))
8687 then throw("You don't have any dues of Round to Claim.")
87- else [IntegerEntry("Total_Txns", i), IntegerEntry(("Total_UserTxns_" + m), o), DeleteEntry(("Deposit_Amount_Of_" + m)), DeleteEntry(("Current_Round_Of_" + m)), StringEntry(("Claim_Status_Of_" + m), "PAID"), DeleteEntry(("No_Of_Deposits_" + m)), ScriptTransfer(j.caller, u, c)]
88+ else if ((u == "Start"))
89+ then throw("Round has Just Started Yet results are Pending to Post.")
90+ else if ((u == "Skipped"))
91+ then throw("Round results are Skipped.")
92+ else [IntegerEntry("Total_Txns", i), IntegerEntry(("Total_UserTxns_" + m), o), DeleteEntry(("Deposit_Amount_Of_" + m)), DeleteEntry(("Current_Round_Of_" + m)), StringEntry(("Claim_Status_Of_" + m), "PAID"), DeleteEntry(("No_Of_Deposits_" + m)), ScriptTransfer(j.caller, v, c)]
8893 }
8994
9095
91-@Verifier(v)
92-func w () = {
93- let g = v
94- sigVerify(v.bodyBytes, v.proofs[0], v.senderPublicKey)
96+@Verifier(w)
97+func x () = {
98+ let g = w
99+ sigVerify(w.bodyBytes, w.proofs[0], w.senderPublicKey)
95100 }
96101

github/deemru/w8io/026f985 
26.92 ms