tx · 2rSeQNDLW3gxzmezBKto11hVyPWMomd2kt6ZNWtvLyLp 3N7Wiiso7vo69pqWfLtpzT3tbzMUGahqpgo: -0.01400000 Waves 2019.08.15 11:54 [631951] smart account 3N7Wiiso7vo69pqWfLtpzT3tbzMUGahqpgo > SELF 0.00000000 Waves
{ "type": 13, "id": "2rSeQNDLW3gxzmezBKto11hVyPWMomd2kt6ZNWtvLyLp", "fee": 1400000, "feeAssetId": null, "timestamp": 1565859073641, "version": 1, "sender": "3N7Wiiso7vo69pqWfLtpzT3tbzMUGahqpgo", "senderPublicKey": "5GQSFwNMkJFTT3FeLT3KENqoSr42yiJP3Av5qAYq1F7f", "proofs": [ "2WHpS2v83mSnZdWreX4aricRoMXwxy7qoihKeWDaoVRiThLdELT5NrxvNTmket5KQsSXUTgffvsJV4dFPYrEAf1Y" ], "script": "base64:AAIDAAAAAAAAAAAAAAAMAAAAAAdSVU5OSU5HAgAAAAdSVU5OSU5HAAAAAAZDTE9TRUQCAAAABkNMT1NFRAAAAAAJREFQUE9XTkVSAgAAACMzTjdXaWlzbzd2bzY5cHFXZkx0cHpUM3Riek1VR2FocXBnbwAAAAAFV0FWRVMCAAAABVdBVkVTAAAAAAROT05FAgAAAAROT05FAAAAAANGRUUAAAAAAAANu6AAAAAAA1dMVAEAAAAgXc1YMiAxtU0669iAvoWYChIkz8rePUfYvMDdGTUOq6oBAAAAC2dldE51bUJ5S2V5AAAAAQAAAANrZXkEAAAAA251bQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAUAAAADbnVtAQAAAAtnZXRTdHJCeUtleQAAAAEAAAADa2V5BAAAAANzdHIEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAA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AAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAIY29udGVzdF8JAAGkAAAAAQUAAAARY29udGVzdEN1cnJOdW1iZXICAAAAB19oZWlnaHQFAAAABmhlaWdodAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgYJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXSW52b2tlU2NyaXB0VHJhbnNhY3Rpb24GBkyf+RM=", "chainId": 84, "height": 631951, "spentComplexity": 0 } View: original | compacted Prev: 8bFKGdbo4ek6GazxUAZscWFL2tC3KduVERVj5ZnDD6BL Next: 39Sc6mMPjtSkoWJBA9aUqNoyCwuchgxkD4N1kTkTtj7P Diff:
Old | New | Differences | |
---|---|---|---|
40 | 40 | func getContestStatus () = { | |
41 | 41 | let contestCurrNumber = getNumByKey("contest_currentnumber") | |
42 | 42 | getStrByKey((("contest_" + toString(contestCurrNumber)) + "_status")) | |
43 | + | } | |
44 | + | ||
45 | + | ||
46 | + | func getBetAccount (betId) = { | |
47 | + | let contestCurrNumber = getNumByKey("contest_currentnumber") | |
48 | + | getStrByKey((("contest_" + toString(contestCurrNumber)) + toString(betId))) | |
43 | 49 | } | |
44 | 50 | ||
45 | 51 | ||
103 | 109 | let thisVoteId = (contestVoteCounter + 1) | |
104 | 110 | let key = ((("bet_" + toString(contestCurrNumber)) + "_") + currencyValue) | |
105 | 111 | let contestStatus = getStrByKey((("contest_" + toString(contestCurrNumber)) + "_status")) | |
106 | - | let existingBetAccount = getStrByKey(((("bet_" + toString(contestCurrNumber)) + "_") + currencyValue)) | |
112 | + | let existingBetVoteId = getNumByKey(((("bet_" + toString(contestCurrNumber)) + "_") + currencyValue)) | |
113 | + | let existingBetAccount = getBetAccount(existingBetVoteId) | |
107 | 114 | if ((height > (contestFinishHeight - (2 * 1440)))) | |
108 | 115 | then throw("You cannot bet anymore at this height.") | |
109 | 116 | else if ((contestCurrStatus != RUNNING)) | |
115 | 122 | else if (if ((existingBetAccount != NONE)) | |
116 | 123 | then (existingBetAccount != account) | |
117 | 124 | else false) | |
118 | - | then throw(((( | |
119 | - | else WriteSet([DataEntry((((("bet_" + toString(contestCurrNumber)) + "_") + toString(thisVoteId)) + "_owner"), account), DataEntry(((("bet_" + toString(contestCurrNumber)) + "_") + toString(thisVoteId) | |
125 | + | then throw(((("Another wallet: " + existingBetAccount) + " did bet already on rate: ") + currencyValue)) | |
126 | + | else WriteSet([DataEntry((((("bet_" + toString(contestCurrNumber)) + "_") + toString(thisVoteId)) + "_owner"), account), DataEntry(((("bet_" + toString(contestCurrNumber)) + "_") + currencyValue), toString(thisVoteId)), DataEntry((("contest_" + toString(contestCurrNumber)) + "_votecounter"), thisVoteId)]) | |
120 | 127 | } | |
121 | 128 | ||
122 | 129 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let RUNNING = "RUNNING" | |
5 | 5 | ||
6 | 6 | let CLOSED = "CLOSED" | |
7 | 7 | ||
8 | 8 | let DAPPOWNER = "3N7Wiiso7vo69pqWfLtpzT3tbzMUGahqpgo" | |
9 | 9 | ||
10 | 10 | let WAVES = "WAVES" | |
11 | 11 | ||
12 | 12 | let NONE = "NONE" | |
13 | 13 | ||
14 | 14 | let FEE = 900000 | |
15 | 15 | ||
16 | 16 | let WLT = base58'7KAXNTswj6947a6cVpGhVrh1utWpLcjwf8AFpWCtuMT7' | |
17 | 17 | ||
18 | 18 | func getNumByKey (key) = { | |
19 | 19 | let num = match getInteger(this, key) { | |
20 | 20 | case a: Int => | |
21 | 21 | a | |
22 | 22 | case _ => | |
23 | 23 | 0 | |
24 | 24 | } | |
25 | 25 | num | |
26 | 26 | } | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func getStrByKey (key) = { | |
30 | 30 | let str = match getString(this, key) { | |
31 | 31 | case a: String => | |
32 | 32 | a | |
33 | 33 | case _ => | |
34 | 34 | NONE | |
35 | 35 | } | |
36 | 36 | str | |
37 | 37 | } | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func getContestStatus () = { | |
41 | 41 | let contestCurrNumber = getNumByKey("contest_currentnumber") | |
42 | 42 | getStrByKey((("contest_" + toString(contestCurrNumber)) + "_status")) | |
43 | + | } | |
44 | + | ||
45 | + | ||
46 | + | func getBetAccount (betId) = { | |
47 | + | let contestCurrNumber = getNumByKey("contest_currentnumber") | |
48 | + | getStrByKey((("contest_" + toString(contestCurrNumber)) + toString(betId))) | |
43 | 49 | } | |
44 | 50 | ||
45 | 51 | ||
46 | 52 | func getExtWAVESUSDCurrencyRate () = { | |
47 | 53 | let oracleAddress = extract(addressFromString("3PPTrTo3AzR56N7ArzbU3Bpq9zYMgcf39Mk")) | |
48 | 54 | let WAVESUSDCurrencyRate = match getInteger(oracleAddress, "waves_usd_2") { | |
49 | 55 | case a: Int => | |
50 | 56 | a | |
51 | 57 | case _ => | |
52 | 58 | 0 | |
53 | 59 | } | |
54 | 60 | WAVESUSDCurrencyRate | |
55 | 61 | } | |
56 | 62 | ||
57 | 63 | ||
58 | 64 | @Callable(i) | |
59 | 65 | func setContestStatus (contestNumber,contestStatus) = { | |
60 | 66 | let account = toBase58String(i.caller.bytes) | |
61 | 67 | if ((account != DAPPOWNER)) | |
62 | 68 | then throw("Only dAPP Owner can set Contest Status.") | |
63 | 69 | else if (if ((contestStatus != RUNNING)) | |
64 | 70 | then (contestStatus != CLOSED) | |
65 | 71 | else false) | |
66 | 72 | then throw(("Invalid status: " + contestStatus)) | |
67 | 73 | else WriteSet([DataEntry((("contest_" + toString(contestNumber)) + "_status"), contestStatus)]) | |
68 | 74 | } | |
69 | 75 | ||
70 | 76 | ||
71 | 77 | ||
72 | 78 | @Callable(i) | |
73 | 79 | func setContestConfiguration (currencyTicker,contestStartHeight) = { | |
74 | 80 | let account = toBase58String(i.caller.bytes) | |
75 | 81 | let contestCurrNumber = getNumByKey("contest_currentnumber") | |
76 | 82 | let contestCurrStatus = getStrByKey((("contest_" + toString(contestCurrNumber)) + "_status")) | |
77 | 83 | let contestNewNumber = (contestCurrNumber + 1) | |
78 | 84 | if ((account != DAPPOWNER)) | |
79 | 85 | then throw(((("Only dAPP Owner can Configure Contest. Caller account: " + account) + " dapp owner: ") + DAPPOWNER)) | |
80 | 86 | else if ((height >= contestStartHeight)) | |
81 | 87 | then throw(("Start Height must be greater than current Blockchain height: " + toString(height))) | |
82 | 88 | else if ((contestCurrStatus == RUNNING)) | |
83 | 89 | then throw(("You cannot configure a new Contest while old Contest status is: " + contestCurrStatus)) | |
84 | 90 | else if ((currencyTicker != WAVES)) | |
85 | 91 | then throw((("dAPP does not support currency: " + currencyTicker) + " yet.")) | |
86 | 92 | else { | |
87 | 93 | let contestFinishHeight = (contestStartHeight + (7 * 1440)) | |
88 | 94 | WriteSet([DataEntry("contest_currentnumber", contestNewNumber), DataEntry((("contest_" + toString(contestNewNumber)) + "_currency"), currencyTicker), DataEntry((("contest_" + toString(contestNewNumber)) + "_startheight"), contestStartHeight), DataEntry((("contest_" + toString(contestNewNumber)) + "_finishheight"), contestFinishHeight), DataEntry((("contest_" + toString(contestNewNumber)) + "_status"), RUNNING), DataEntry((("contest_" + toString(contestNewNumber)) + "_votecounter"), 0)]) | |
89 | 95 | } | |
90 | 96 | } | |
91 | 97 | ||
92 | 98 | ||
93 | 99 | ||
94 | 100 | @Callable(i) | |
95 | 101 | func bet (currencyValue) = { | |
96 | 102 | let account = toBase58String(i.caller.bytes) | |
97 | 103 | let pmt = extract(i.payment) | |
98 | 104 | let contestCurrNumber = getNumByKey("contest_currentnumber") | |
99 | 105 | let contestStartHeight = getNumByKey((("contest_" + toString(contestCurrNumber)) + "_startheight")) | |
100 | 106 | let contestFinishHeight = getNumByKey((("contest_" + toString(contestCurrNumber)) + "_finishheight")) | |
101 | 107 | let contestVoteCounter = getNumByKey((("contest_" + toString(contestCurrNumber)) + "_votecounter")) | |
102 | 108 | let contestCurrStatus = getStrByKey((("contest_" + toString(contestCurrNumber)) + "_status")) | |
103 | 109 | let thisVoteId = (contestVoteCounter + 1) | |
104 | 110 | let key = ((("bet_" + toString(contestCurrNumber)) + "_") + currencyValue) | |
105 | 111 | let contestStatus = getStrByKey((("contest_" + toString(contestCurrNumber)) + "_status")) | |
106 | - | let existingBetAccount = getStrByKey(((("bet_" + toString(contestCurrNumber)) + "_") + currencyValue)) | |
112 | + | let existingBetVoteId = getNumByKey(((("bet_" + toString(contestCurrNumber)) + "_") + currencyValue)) | |
113 | + | let existingBetAccount = getBetAccount(existingBetVoteId) | |
107 | 114 | if ((height > (contestFinishHeight - (2 * 1440)))) | |
108 | 115 | then throw("You cannot bet anymore at this height.") | |
109 | 116 | else if ((contestCurrStatus != RUNNING)) | |
110 | 117 | then throw("Invalid status: you cannot bet now.") | |
111 | 118 | else if (if ((pmt.assetId != WLT)) | |
112 | 119 | then true | |
113 | 120 | else (pmt.amount != 500000)) | |
114 | 121 | then throw("You must pay 5 WLT to bet.") | |
115 | 122 | else if (if ((existingBetAccount != NONE)) | |
116 | 123 | then (existingBetAccount != account) | |
117 | 124 | else false) | |
118 | - | then throw(((( | |
119 | - | else WriteSet([DataEntry((((("bet_" + toString(contestCurrNumber)) + "_") + toString(thisVoteId)) + "_owner"), account), DataEntry(((("bet_" + toString(contestCurrNumber)) + "_") + toString(thisVoteId) | |
125 | + | then throw(((("Another wallet: " + existingBetAccount) + " did bet already on rate: ") + currencyValue)) | |
126 | + | else WriteSet([DataEntry((((("bet_" + toString(contestCurrNumber)) + "_") + toString(thisVoteId)) + "_owner"), account), DataEntry(((("bet_" + toString(contestCurrNumber)) + "_") + currencyValue), toString(thisVoteId)), DataEntry((("contest_" + toString(contestCurrNumber)) + "_votecounter"), thisVoteId)]) | |
120 | 127 | } | |
121 | 128 | ||
122 | 129 | ||
123 | 130 | ||
124 | 131 | @Callable(i) | |
125 | 132 | func closecontest (currencyRate) = { | |
126 | 133 | let contestCurrNumber = getNumByKey("contest_currentnumber") | |
127 | 134 | let key = ((("bet_" + toString(contestCurrNumber)) + "_") + currencyRate) | |
128 | 135 | let winnerAccount = getStrByKey(key) | |
129 | 136 | let account = toBase58String(i.caller.bytes) | |
130 | 137 | let balance = wavesBalance(this) | |
131 | 138 | let contestCurrStatus = getStrByKey((("contest_" + toString(contestCurrNumber)) + "_status")) | |
132 | 139 | let writeStatistics = WriteSet([DataEntry((("contest_" + toString(contestCurrNumber)) + "_status"), CLOSED), DataEntry((("contest_" + toString(contestCurrNumber)) + "_winner"), winnerAccount), DataEntry((("contest_" + toString(contestCurrNumber)) + "_currencyrate"), currencyRate), DataEntry((("contest_" + toString(contestCurrNumber)) + "_height"), height)]) | |
133 | 140 | if ((account != DAPPOWNER)) | |
134 | 141 | then throw("Only dAPP Owner can Close Contest.") | |
135 | 142 | else if ((contestCurrStatus != RUNNING)) | |
136 | 143 | then throw(("Cannot close a contest in status: " + contestCurrStatus)) | |
137 | 144 | else if ((winnerAccount != NONE)) | |
138 | 145 | then { | |
139 | 146 | let winTransfer = TransferSet([ScriptTransfer(extract(addressFromString(winnerAccount)), (wavesBalance(this) - FEE), unit)]) | |
140 | 147 | ScriptResult(WriteSet([DataEntry((("contest_" + toString(contestCurrNumber)) + "_status"), CLOSED), DataEntry((("contest_" + toString(contestCurrNumber)) + "_winner"), winnerAccount), DataEntry((("contest_" + toString(contestCurrNumber)) + "_currencyrate"), currencyRate), DataEntry((("contest_" + toString(contestCurrNumber)) + "_height"), height)]), winTransfer) | |
141 | 148 | } | |
142 | 149 | else WriteSet([DataEntry((("contest_" + toString(contestCurrNumber)) + "_status"), CLOSED), DataEntry((("contest_" + toString(contestCurrNumber)) + "_winner"), winnerAccount), DataEntry((("contest_" + toString(contestCurrNumber)) + "_currencyrate"), currencyRate), DataEntry((("contest_" + toString(contestCurrNumber)) + "_height"), height)]) | |
143 | 150 | } | |
144 | 151 | ||
145 | 152 | ||
146 | 153 | @Verifier(tx) | |
147 | 154 | func verify () = match tx { | |
148 | 155 | case _: SetScriptTransaction|DataTransaction => | |
149 | 156 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
150 | 157 | case _: InvokeScriptTransaction => | |
151 | 158 | true | |
152 | 159 | case _ => | |
153 | 160 | true | |
154 | 161 | } | |
155 | 162 |
github/deemru/w8io/026f985 38.34 ms ◑