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