tx · F24i5Y7oQ5DncfDiNLATKpdVAG8Y7Dxik1aSzP3BY6Fi 3Mqzhyb3ayfeb2bnZzAthD1W8oKsNaw7on1: -0.01400000 Waves 2022.03.21 21:54 [1974082] smart account 3Mqzhyb3ayfeb2bnZzAthD1W8oKsNaw7on1 > SELF 0.00000000 Waves
{ "type": 13, "id": "F24i5Y7oQ5DncfDiNLATKpdVAG8Y7Dxik1aSzP3BY6Fi", "fee": 1400000, "feeAssetId": null, "timestamp": 1647888839825, "version": 2, "chainId": 84, "sender": "3Mqzhyb3ayfeb2bnZzAthD1W8oKsNaw7on1", "senderPublicKey": "Ehngpik6DXwbcV8tpLbd3qBFjChSdW49YqyxinREgabT", "proofs": [ "5EoBe751fUVmfEqtpSaAKiqqvpimFYxHttQW6GNRjAhon8pd4qhPSUhHqPwUKrWCk5vUegxcKXSirJC9sKP19JtF" ], "script": "base64:AAIEAAAAAAAAAAYIAhIAEgAAAAAHAAAAAAdEYXBwRmVlAAAAAAABfXhAAAAAAA9nZXRjdXJyZW50cm91bmQJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAABHRoaXMCAAAADWN1cnJlbnRfcm91bmQAAAAAC3hVU0RBc3NldElEAQAAACAUvqy5I7Pn2Q+5aTq4aUxjl04TnuAMD5q9EZXpvqd6qwAAAAAMRkFJVEhBc3NldElEAQAAACCfF3/PaxN6cW7VNmJnqi278KmHTR47I5PqZMwrgb0oSgAAAAARQ29sbGVjdEZlZUFkZHJlc3MJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEBAAAAIFKD2aCL15CSOzPl4EBEchtzseD8Xh+YHSzFnrJIx+IgAAAAAA5mZXRjaHRvdGFsdHhucwQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzAgAAAApUb3RhbF9UeG5zAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAAAAAACXRvdGF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GF0dXNfT2ZfBQAAAApjdXJyZW50S2V5AgAAAARQQUlECQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAAEsAAAAAgIAAAAPTm9fT2ZfRGVwb3NpdHNfBQAAAApjdXJyZW50S2V5CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAAPZmV0Y2h1c2VyYW1vdW50BQAAAAt4VVNEQXNzZXRJRAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAAdtZXNzYWdlCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAABU8aDE+WW91IExvc2UhIFJvdW5kOiAJAAGkAAAAAQkAAGUAAAACBQAAAA9nZXRjdXJyZW50cm91bmQAAAAAAAAAAAECAAAAECBTdGFydCBDYXBpdGFsOiAJAAGkAAAAAQUAAAAPZ2V0c3RhcnRjYXBpdGFsAgAAABUsIFJvdW5kIEVuZCBDYXB0aWFsOiAJAAGkAAAAAQUAAAANZ2V0ZW5kY2FwaXRhbAIAAAAKLjwvaDE+PGJyPgUAAAADbmlsCQAAAgAAAAECAAAAH1BsZWFzZSBXYWl0IGZvciBSb3VuZCB0byBTdGFydC4AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmu1MF0", "height": 1974082, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: JDhLciiE9mNvwGHNXdwV1cpk7vpmjwQHnZ5t9UsMqxMD Next: 3vf9a7QkUZqM2srGauKuT1nqkQHQqDRuD6rFdcZjNFak Diff:
Old | New | Differences | |
---|---|---|---|
96 | 96 | else if ((u == "Ended")) | |
97 | 97 | then (v == "Noresults") | |
98 | 98 | else false) | |
99 | - | then [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, w, c), StringEntry("message", "<h1>Round | |
99 | + | then [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, w, c), StringEntry("message", (("<h1>Round: " + toString((b - 1))) + "results were Skipped due to Oracle Crash.Funds are Returned back.</h1><br>"))] | |
100 | 100 | else if (if ((u == "Ended")) | |
101 | 101 | then (x > 0) | |
102 | 102 | else false) | |
103 | - | then [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, w, c), Reissue(d, x, true), StringEntry("message", (((((("<h1>You Win! Round: " + toString(b)) + " Start Capital: ") + toString(s)) + ", Round End Captial: ") + toString(t)) + ".</h1><br>"))] | |
103 | + | then [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, w, c), Reissue(d, x, true), StringEntry("message", (((((("<h1>You Win! Round: " + toString((b - 1))) + " Start Capital: ") + toString(s)) + ", Round End Captial: ") + toString(t)) + ".</h1><br>"))] | |
104 | 104 | else if (if ((u == "Ended")) | |
105 | 105 | then (0 > x) | |
106 | 106 | else false) | |
107 | - | then [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, w, c), StringEntry("message", (((((("<h1>You Lose! Round: " + toString(b)) + " Start Capital: ") + toString(s)) + ", Round End Captial: ") + toString(t)) + ".</h1><br>"))] | |
107 | + | then [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, w, c), StringEntry("message", (((((("<h1>You Lose! Round: " + toString((b - 1))) + " Start Capital: ") + toString(s)) + ", Round End Captial: ") + toString(t)) + ".</h1><br>"))] | |
108 | 108 | else throw("Please Wait for Round to Start.") | |
109 | 109 | } | |
110 | 110 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 25000000 | |
5 | 5 | ||
6 | 6 | let b = getIntegerValue(this, "current_round") | |
7 | 7 | ||
8 | 8 | let c = base58'2PyngaPGAFjV9AVFXSQANwumY6FSY1cqZDBK8NsEGCup' | |
9 | 9 | ||
10 | 10 | let d = base58'Bi2cCJSLQfWraZHSmcVeyXNF1r3yBG3dLYBZwWcuj873' | |
11 | 11 | ||
12 | 12 | let e = addressFromPublicKey(base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR') | |
13 | 13 | ||
14 | 14 | let f = { | |
15 | 15 | let g = getInteger(this, "Total_Txns") | |
16 | 16 | if ($isInstanceOf(g, "Int")) | |
17 | 17 | then { | |
18 | 18 | let h = g | |
19 | 19 | h | |
20 | 20 | } | |
21 | 21 | else 0 | |
22 | 22 | } | |
23 | 23 | ||
24 | 24 | let i = (f + 1) | |
25 | 25 | ||
26 | 26 | @Callable(j) | |
27 | 27 | func Deposit () = { | |
28 | 28 | let k = if ((size(j.payments) == 1)) | |
29 | 29 | then j.payments[0] | |
30 | 30 | else throw((("No Payments Attached Please Attach " + toBase58String(c)) + " Asset Only.")) | |
31 | 31 | let l = 1000000000000 | |
32 | 32 | let m = toBase58String(j.caller.bytes) | |
33 | 33 | let n = { | |
34 | 34 | let g = getInteger(this, ("Total_UserTxns_" + m)) | |
35 | 35 | if ($isInstanceOf(g, "Int")) | |
36 | 36 | then { | |
37 | 37 | let h = g | |
38 | 38 | h | |
39 | 39 | } | |
40 | 40 | else 0 | |
41 | 41 | } | |
42 | 42 | let o = (n + 1) | |
43 | 43 | let p = { | |
44 | 44 | let g = getInteger(this, ("No_Of_Deposits_" + m)) | |
45 | 45 | if ($isInstanceOf(g, "Int")) | |
46 | 46 | then { | |
47 | 47 | let h = g | |
48 | 48 | h | |
49 | 49 | } | |
50 | 50 | else 0 | |
51 | 51 | } | |
52 | 52 | let q = (p + 1) | |
53 | 53 | if ((k.assetId != c)) | |
54 | 54 | then throw("Incorrect asset attached, please attach only xUSD AssetID.") | |
55 | 55 | else if ((499999999 >= k.amount)) | |
56 | 56 | then throw("Please attach minimum 5 xUSD to deposit to enter round.") | |
57 | 57 | else if ((k.amount > l)) | |
58 | 58 | then throw("Please attach correct amount in between [5-10000] xUSD.") | |
59 | 59 | else if ((size(j.payments) > 1)) | |
60 | 60 | then throw("Two assets attached, Kindly Attach only payment1 = xUSD with in [5-10000] xUSD Range.") | |
61 | 61 | else if ((p == 1)) | |
62 | 62 | then throw("You Already participated for an Round, Which has not been settled Yet. Wait until round end and re-enter again.") | |
63 | 63 | 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)] | |
64 | 64 | } | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | ||
68 | 68 | @Callable(j) | |
69 | 69 | func Claim () = { | |
70 | 70 | let m = toBase58String(j.caller.bytes) | |
71 | 71 | let r = valueOrErrorMessage(getInteger(this, ("Current_Round_Of_" + m)), "Your Address did not participated in any latest round Yet. Please Click Deposit to WIN.") | |
72 | 72 | let s = getIntegerValue(this, (toString(r) + "_Start_Capital")) | |
73 | 73 | let t = getIntegerValue(this, (toString((b - 1)) + "_End_Capital")) | |
74 | 74 | let u = getStringValue(this, (toString((b - 1)) + "_status")) | |
75 | 75 | let v = getStringValue(this, (toString((b - 1)) + "_mktresults")) | |
76 | 76 | let w = getIntegerValue(this, ("Deposit_Amount_Of_" + m)) | |
77 | 77 | let x = (s - t) | |
78 | 78 | let n = { | |
79 | 79 | let g = getInteger(this, ("Total_UserTxns_" + m)) | |
80 | 80 | if ($isInstanceOf(g, "Int")) | |
81 | 81 | then { | |
82 | 82 | let h = g | |
83 | 83 | h | |
84 | 84 | } | |
85 | 85 | else 0 | |
86 | 86 | } | |
87 | 87 | let o = (n + 1) | |
88 | 88 | if ((0 >= r)) | |
89 | 89 | then throw("You don't have any dues of Round to Claim.") | |
90 | 90 | else if ((u == "Started")) | |
91 | 91 | then throw((toString(r) + " round has just started, results are pending to post. Please Wait until round end.")) | |
92 | 92 | else if (if (if ((u == "Skipped")) | |
93 | 93 | then (v == "Noresults") | |
94 | 94 | else false) | |
95 | 95 | then true | |
96 | 96 | else if ((u == "Ended")) | |
97 | 97 | then (v == "Noresults") | |
98 | 98 | else false) | |
99 | - | then [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, w, c), StringEntry("message", "<h1>Round | |
99 | + | then [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, w, c), StringEntry("message", (("<h1>Round: " + toString((b - 1))) + "results were Skipped due to Oracle Crash.Funds are Returned back.</h1><br>"))] | |
100 | 100 | else if (if ((u == "Ended")) | |
101 | 101 | then (x > 0) | |
102 | 102 | else false) | |
103 | - | then [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, w, c), Reissue(d, x, true), StringEntry("message", (((((("<h1>You Win! Round: " + toString(b)) + " Start Capital: ") + toString(s)) + ", Round End Captial: ") + toString(t)) + ".</h1><br>"))] | |
103 | + | then [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, w, c), Reissue(d, x, true), StringEntry("message", (((((("<h1>You Win! Round: " + toString((b - 1))) + " Start Capital: ") + toString(s)) + ", Round End Captial: ") + toString(t)) + ".</h1><br>"))] | |
104 | 104 | else if (if ((u == "Ended")) | |
105 | 105 | then (0 > x) | |
106 | 106 | else false) | |
107 | - | then [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, w, c), StringEntry("message", (((((("<h1>You Lose! Round: " + toString(b)) + " Start Capital: ") + toString(s)) + ", Round End Captial: ") + toString(t)) + ".</h1><br>"))] | |
107 | + | then [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, w, c), StringEntry("message", (((((("<h1>You Lose! Round: " + toString((b - 1))) + " Start Capital: ") + toString(s)) + ", Round End Captial: ") + toString(t)) + ".</h1><br>"))] | |
108 | 108 | else throw("Please Wait for Round to Start.") | |
109 | 109 | } | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | @Verifier(y) | |
113 | 113 | func z () = { | |
114 | 114 | let g = y | |
115 | 115 | sigVerify(y.bodyBytes, y.proofs[0], y.senderPublicKey) | |
116 | 116 | } | |
117 | 117 |
github/deemru/w8io/026f985 38.37 ms ◑