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