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