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