tx · 8bFKGdbo4ek6GazxUAZscWFL2tC3KduVERVj5ZnDD6BL

3N7Wiiso7vo69pqWfLtpzT3tbzMUGahqpgo:  -0.01400000 Waves

2019.08.15 11:08 [631910] smart account 3N7Wiiso7vo69pqWfLtpzT3tbzMUGahqpgo > SELF 0.00000000 Waves

{ "type": 13, "id": "8bFKGdbo4ek6GazxUAZscWFL2tC3KduVERVj5ZnDD6BL", "fee": 1400000, "feeAssetId": null, "timestamp": 1565856524902, "version": 1, "sender": "3N7Wiiso7vo69pqWfLtpzT3tbzMUGahqpgo", "senderPublicKey": "5GQSFwNMkJFTT3FeLT3KENqoSr42yiJP3Av5qAYq1F7f", "proofs": [ "5nq4Urn7a8uxpmrNv6EvjYxBymbfk66TGfwRQwdwzhwWU9WGG1RdRPCvmi1zWBdwLvfmFgPShrK9WNb9nmmLn1Sj" ], "script": "base64:AAIDAAAAAAAAAAAAAAALAAAAAAdSVU5OSU5HAgAAAAdSVU5OSU5HAAAAAAZDTE9TRUQCAAAABkNMT1NFRAAAAAAJREFQUE9XTkVSAgAAACMzTjdXaWlzbzd2bzY5cHFXZkx0cHpUM3Riek1VR2FocXBnbwAAAAAFV0FWRVMCAAAABVdBVkVTAAAAAAROT05FAgAAAAROT05FAAAAAANGRUUAAAAAAAANu6AAAAAAA1dMVAEAAAAgXc1YMiAxtU0669iAvoWYChIkz8rePUfYvMDdGTUOq6oBAAAAC2dldE51bUJ5S2V5AAAAAQAAAANrZXkEAAAAA251bQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAUAAAADbnVtAQAAAAtnZXRTdHJCeUtleQAAAAEAAAADa2V5BAAAAANzdHIEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpb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jdGlvbgYJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXSW52b2tlU2NyaXB0VHJhbnNhY3Rpb24GBtGF/nw=", "chainId": 84, "height": 631910, "spentComplexity": 0 } View: original | compacted Prev: 6kpNXiBJW1cYZ9NUpFm22AfxxdncXKSx4Tm9zJqpJJXn Next: 2rSeQNDLW3gxzmezBKto11hVyPWMomd2kt6ZNWtvLyLp Diff:
OldNewDifferences
1313
1414 let FEE = 900000
1515
16-let WLT = base58'29mZRgJoBtdqFUDjeSoW2MRuaMj32F8Lr5ne774trpXi'
16+let WLT = base58'7KAXNTswj6947a6cVpGhVrh1utWpLcjwf8AFpWCtuMT7'
1717
1818 func getNumByKey (key) = {
1919 let num = match getInteger(this, key) {
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let RUNNING = "RUNNING"
55
66 let CLOSED = "CLOSED"
77
88 let DAPPOWNER = "3N7Wiiso7vo69pqWfLtpzT3tbzMUGahqpgo"
99
1010 let WAVES = "WAVES"
1111
1212 let NONE = "NONE"
1313
1414 let FEE = 900000
1515
16-let WLT = base58'29mZRgJoBtdqFUDjeSoW2MRuaMj32F8Lr5ne774trpXi'
16+let WLT = base58'7KAXNTswj6947a6cVpGhVrh1utWpLcjwf8AFpWCtuMT7'
1717
1818 func getNumByKey (key) = {
1919 let num = match getInteger(this, key) {
2020 case a: Int =>
2121 a
2222 case _ =>
2323 0
2424 }
2525 num
2626 }
2727
2828
2929 func getStrByKey (key) = {
3030 let str = match getString(this, key) {
3131 case a: String =>
3232 a
3333 case _ =>
3434 NONE
3535 }
3636 str
3737 }
3838
3939
4040 func getContestStatus () = {
4141 let contestCurrNumber = getNumByKey("contest_currentnumber")
4242 getStrByKey((("contest_" + toString(contestCurrNumber)) + "_status"))
4343 }
4444
4545
4646 func getExtWAVESUSDCurrencyRate () = {
4747 let oracleAddress = extract(addressFromString("3PPTrTo3AzR56N7ArzbU3Bpq9zYMgcf39Mk"))
4848 let WAVESUSDCurrencyRate = match getInteger(oracleAddress, "waves_usd_2") {
4949 case a: Int =>
5050 a
5151 case _ =>
5252 0
5353 }
5454 WAVESUSDCurrencyRate
5555 }
5656
5757
5858 @Callable(i)
5959 func setContestStatus (contestNumber,contestStatus) = {
6060 let account = toBase58String(i.caller.bytes)
6161 if ((account != DAPPOWNER))
6262 then throw("Only dAPP Owner can set Contest Status.")
6363 else if (if ((contestStatus != RUNNING))
6464 then (contestStatus != CLOSED)
6565 else false)
6666 then throw(("Invalid status: " + contestStatus))
6767 else WriteSet([DataEntry((("contest_" + toString(contestNumber)) + "_status"), contestStatus)])
6868 }
6969
7070
7171
7272 @Callable(i)
7373 func setContestConfiguration (currencyTicker,contestStartHeight) = {
7474 let account = toBase58String(i.caller.bytes)
7575 let contestCurrNumber = getNumByKey("contest_currentnumber")
7676 let contestCurrStatus = getStrByKey((("contest_" + toString(contestCurrNumber)) + "_status"))
7777 let contestNewNumber = (contestCurrNumber + 1)
7878 if ((account != DAPPOWNER))
7979 then throw(((("Only dAPP Owner can Configure Contest. Caller account: " + account) + " dapp owner: ") + DAPPOWNER))
8080 else if ((height >= contestStartHeight))
8181 then throw(("Start Height must be greater than current Blockchain height: " + toString(height)))
8282 else if ((contestCurrStatus == RUNNING))
8383 then throw(("You cannot configure a new Contest while old Contest status is: " + contestCurrStatus))
8484 else if ((currencyTicker != WAVES))
8585 then throw((("dAPP does not support currency: " + currencyTicker) + " yet."))
8686 else {
8787 let contestFinishHeight = (contestStartHeight + (7 * 1440))
8888 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)])
8989 }
9090 }
9191
9292
9393
9494 @Callable(i)
9595 func bet (currencyValue) = {
9696 let account = toBase58String(i.caller.bytes)
9797 let pmt = extract(i.payment)
9898 let contestCurrNumber = getNumByKey("contest_currentnumber")
9999 let contestStartHeight = getNumByKey((("contest_" + toString(contestCurrNumber)) + "_startheight"))
100100 let contestFinishHeight = getNumByKey((("contest_" + toString(contestCurrNumber)) + "_finishheight"))
101101 let contestVoteCounter = getNumByKey((("contest_" + toString(contestCurrNumber)) + "_votecounter"))
102102 let contestCurrStatus = getStrByKey((("contest_" + toString(contestCurrNumber)) + "_status"))
103103 let thisVoteId = (contestVoteCounter + 1)
104104 let key = ((("bet_" + toString(contestCurrNumber)) + "_") + currencyValue)
105105 let contestStatus = getStrByKey((("contest_" + toString(contestCurrNumber)) + "_status"))
106106 let existingBetAccount = getStrByKey(((("bet_" + toString(contestCurrNumber)) + "_") + currencyValue))
107107 if ((height > (contestFinishHeight - (2 * 1440))))
108108 then throw("You cannot bet anymore at this height.")
109109 else if ((contestCurrStatus != RUNNING))
110110 then throw("Invalid status: you cannot bet now.")
111111 else if (if ((pmt.assetId != WLT))
112112 then true
113113 else (pmt.amount != 500000))
114114 then throw("You must pay 5 WLT to bet.")
115115 else if (if ((existingBetAccount != NONE))
116116 then (existingBetAccount != account)
117117 else false)
118118 then throw(((((((("Key: " + key) + " Account:") + account) + " Existing Bet Account: ") + existingBetAccount) + " Currency Value:") + currencyValue))
119119 else WriteSet([DataEntry((((("bet_" + toString(contestCurrNumber)) + "_") + toString(thisVoteId)) + "_owner"), account), DataEntry(((("bet_" + toString(contestCurrNumber)) + "_") + toString(thisVoteId)), currencyValue), DataEntry((("contest_" + toString(contestCurrNumber)) + "_votecounter"), thisVoteId)])
120120 }
121121
122122
123123
124124 @Callable(i)
125125 func closecontest (currencyRate) = {
126126 let contestCurrNumber = getNumByKey("contest_currentnumber")
127127 let key = ((("bet_" + toString(contestCurrNumber)) + "_") + currencyRate)
128128 let winnerAccount = getStrByKey(key)
129129 let account = toBase58String(i.caller.bytes)
130130 let balance = wavesBalance(this)
131131 let contestCurrStatus = getStrByKey((("contest_" + toString(contestCurrNumber)) + "_status"))
132132 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)])
133133 if ((account != DAPPOWNER))
134134 then throw("Only dAPP Owner can Close Contest.")
135135 else if ((contestCurrStatus != RUNNING))
136136 then throw(("Cannot close a contest in status: " + contestCurrStatus))
137137 else if ((winnerAccount != NONE))
138138 then {
139139 let winTransfer = TransferSet([ScriptTransfer(extract(addressFromString(winnerAccount)), (wavesBalance(this) - FEE), unit)])
140140 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)
141141 }
142142 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)])
143143 }
144144
145145
146146 @Verifier(tx)
147147 func verify () = match tx {
148148 case _: SetScriptTransaction|DataTransaction =>
149149 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
150150 case _: InvokeScriptTransaction =>
151151 true
152152 case _ =>
153153 true
154154 }
155155

github/deemru/w8io/026f985 
34.22 ms