tx · FtevosLQ8eg4WvPp7AX5kw1aA5ygYmk1VpPn6DFCqkSs

3N7Wiiso7vo69pqWfLtpzT3tbzMUGahqpgo:  -0.01400000 Waves

2019.08.15 10:51 [631895] smart account 3N7Wiiso7vo69pqWfLtpzT3tbzMUGahqpgo > SELF 0.00000000 Waves

{ "type": 13, "id": "FtevosLQ8eg4WvPp7AX5kw1aA5ygYmk1VpPn6DFCqkSs", "fee": 1400000, "feeAssetId": null, "timestamp": 1565855502817, "version": 1, "sender": "3N7Wiiso7vo69pqWfLtpzT3tbzMUGahqpgo", "senderPublicKey": "5GQSFwNMkJFTT3FeLT3KENqoSr42yiJP3Av5qAYq1F7f", "proofs": [ "3g1wg7fR3iWtXyeZvUz2nCFN7frxRoYTVpDkGbjNWhVrRUuXEdz5fDoUaa9S41JhYWZBkiR5WdbaWZtT4UX5mQy2" ], "script": "base64:AAIDAAAAAAAAAAAAAAALAAAAAAdSVU5OSU5HAgAAAAdSVU5OSU5HAAAAAAZDTE9TRUQCAAAABkNMT1NFRAAAAAAJREFQUE9XTkVSAgAAACMzTjdXaWlzbzd2bzY5cHFXZkx0cHpUM3Riek1VR2FocXBnbwAAAAAFV0FWRVMCAAAABVdBVkVTAAAAAAROT05FAgAAAAROT05FAAAAAANGRUUAAAAAAAANu6AAAAAAA1dMVAEAAAAguhzhiEkXRAZBdFhaB2FMQW+3WMuNgvHvyYRPNpTXmmUBAAAAC2dldE51bUJ5S2V5AAAAAQAAAANrZXkEAAAAA251bQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAUAAAADbnVtAQAAAAtnZXRTdHJCeUtleQAAAAEAAAADa2V5BAAAAANzdHIEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZ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nJOdW1iZXICAAAAB19zdGF0dXMFAAAABkNMT1NFRAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACCQABLAAAAAICAAAACGNvbnRlc3RfCQABpAAAAAEFAAAAEWNvbnRlc3RDdXJyTnVtYmVyAgAAAAdfd2lubmVyBQAAAA13aW5uZXJBY2NvdW50CQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAIY29udGVzdF8JAAGkAAAAAQUAAAARY29udGVzdEN1cnJOdW1iZXICAAAADV9jdXJyZW5jeXJhdGUFAAAADGN1cnJlbmN5UmF0ZQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACCQABLAAAAAICAAAACGNvbnRlc3RfCQABpAAAAAEFAAAAEWNvbnRlc3RDdXJyTnVtYmVyAgAAAAdfaGVpZ2h0BQAAAAZoZWlnaHQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0RhdGFUcmFuc2FjdGlvbgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAF0ludm9rZVNjcmlwdFRyYW5zYWN0aW9uBgbhE+Rd", "chainId": 84, "height": 631895, "spentComplexity": 0 } View: original | compacted Prev: Cs5tpMFExCyvrYrqNjqMVsxjVmLieAgVPtbJGko9Nybb Next: DMQvsxwcqg5czv31bTLATZac3Gu79JULvHqLyMFyQbtC Diff:
OldNewDifferences
7676 let contestCurrStatus = getStrByKey((("contest_" + toString(contestCurrNumber)) + "_status"))
7777 let contestNewNumber = (contestCurrNumber + 1)
7878 if ((account != DAPPOWNER))
79- then throw("Only dAPP Owner can Configure Contest.")
79+ 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))
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
1616 let WLT = base58'DXWNi4KTciwBKCqMoK9jHmesmAVRbM47dmD3jsiBhEMA'
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))
79- then throw("Only dAPP Owner can Configure Contest.")
79+ 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 thisVoteId = (contestVoteCounter + 1)
103103 let key = ((("bet_" + toString(contestCurrNumber)) + "_") + currencyValue)
104104 let contestStatus = getStrByKey((("contest_" + toString(contestCurrNumber)) + "_status"))
105105 let existingBetAccount = getStrByKey(((("bet_" + toString(contestCurrNumber)) + "_") + currencyValue))
106106 if ((height > (contestFinishHeight - (2 * 1440))))
107107 then throw("You cannot bet anymore at this height.")
108108 else if ((contestStatus != RUNNING))
109109 then throw("Invalid status: you cannot bet now.")
110110 else if (if ((pmt.assetId != WLT))
111111 then true
112112 else (pmt.amount != 500000))
113113 then throw("You must pay 5 WLT to bet.")
114114 else if (if ((existingBetAccount != NONE))
115115 then (existingBetAccount != account)
116116 else false)
117117 then throw(((((((("Key: " + key) + " Account:") + account) + " Existing Bet Account: ") + existingBetAccount) + " Currency Value:") + currencyValue))
118118 else WriteSet([DataEntry((((("bet_" + toString(contestCurrNumber)) + "_") + toString(thisVoteId)) + "_owner"), account), DataEntry(((("bet_" + toString(contestCurrNumber)) + "_") + toString(thisVoteId)), currencyValue), DataEntry((("contest_" + toString(contestCurrNumber)) + "_votecounter"), thisVoteId)])
119119 }
120120
121121
122122
123123 @Callable(i)
124124 func closecontest (currencyRate) = {
125125 let contestCurrNumber = getNumByKey("contest_currentnumber")
126126 let key = ((("bet_" + toString(contestCurrNumber)) + "_") + currencyRate)
127127 let winnerAccount = getStrByKey(key)
128128 let account = toBase58String(i.caller.bytes)
129129 let balance = wavesBalance(this)
130130 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)])
131131 if ((account != DAPPOWNER))
132132 then throw("Only dAPP Owner can Close Contest.")
133133 else if ((winnerAccount != NONE))
134134 then {
135135 let winTransfer = TransferSet([ScriptTransfer(extract(addressFromString(winnerAccount)), (wavesBalance(this) - FEE), unit)])
136136 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)
137137 }
138138 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)])
139139 }
140140
141141
142142 @Verifier(tx)
143143 func verify () = match tx {
144144 case _: SetScriptTransaction|DataTransaction =>
145145 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
146146 case _: InvokeScriptTransaction =>
147147 true
148148 case _ =>
149149 true
150150 }
151151

github/deemru/w8io/026f985 
32.92 ms