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/hwEAAAALZ2V0TnVtQnlLZXkAAAABAAAAA2tleQQAAAADbnVtBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAA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AARY29udGVzdEN1cnJOdW1iZXICAAAABl9wcml6ZQAAAAAAAAAAAAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgYJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXSW52b2tlU2NyaXB0VHJhbnNhY3Rpb24GBqAQA04=", "chainId": 84, "height": 735436, "spentComplexity": 0 } View: original | compacted Prev: Hd4nsd56M7sSkqVUo4rZ7pTVBke6HA8HbbtPYT6ZWskz Next: 8bH1iibquGxHSc1vnZdg8LhhFXguVYgKJf5tGK37msWL Diff:
OldNewDifferences
77
88 let CANCELED = "CANCELED"
99
10-let DAPPOWNER = "3N5mwuqT6dXpbqwT5VKDXzGJJ6c14rKqxS7"
10+let DAPPOWNER = "3P4NZR6ckE8aLC7Bogr5NXBzSi6p13DQg67"
1111
12-let ORACLEWALLET = "3NAcoeWdUTWn8csXJPG47v1Fjtjcfqxb5tu"
12+let ORACLEWALLET = "3PPTrTo3AzR56N7ArzbU3Bpq9zYMgcf39Mk"
1313
14-let WAVESKITWALLET = "3MqPpbWPRsZFoT9X74qWocU4BpypGEPhiCn"
14+let WAVESKITWALLET = "3PDEEMRU3tBJffag7sRPnjwEQ8GZGikUWBi"
1515
1616 let WAVES = "WAVES"
1717
1919
2020 let FEE = 900000
2121
22-let WLT = base58'7KAXNTswj6947a6cVpGhVrh1utWpLcjwf8AFpWCtuMT7'
22+let WLT = base58'CM8J4Z9HW3MdKgTxrpf3WYauXfjdu1zZKg19AGTicEYe'
2323
2424 func getNumByKey (key) = {
2525 let num = match getInteger(this, key) {
113113 then (existingBetAccount != account)
114114 else false)
115115 then throw((("Another user: " + existingBetAccount) + " did bet already on this rate."))
116- else if ((accountBetsNumber >= 5))
117- then throw("You can do at most 5 bets.")
116+ else if ((accountBetsNumber >= 1))
117+ then throw("You can do at most 1 bet.")
118118 else WriteSet([DataEntry(((("bet_" + toString(contestCurrNumber)) + "_") + toString(currencyValue)), account), DataEntry((((("contest_" + toString(contestCurrNumber)) + "_") + account) + "_bets"), (accountBetsNumber + 1))])
119119 }
120120
140140 let WLTOracleShareRevenue = ((assetBalance(this, WLT) * 1) / 100)
141141 let WLTWavesKitShareRevenue = ((assetBalance(this, WLT) * 4) / 100)
142142 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)])
143+ let winTransfer = TransferSet([ScriptTransfer(extract(addressFromString(winningBetAccount)), WLTPrize, WLT), ScriptTransfer(extract(addressFromString(ORACLEWALLET)), WLTOracleShareRevenue, WLT), ScriptTransfer(extract(addressFromString(WAVESKITWALLET)), WLTWavesKitShareRevenue, WLT)])
144144 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)
145145 }
146146 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)])
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 CANCELED = "CANCELED"
99
10-let DAPPOWNER = "3N5mwuqT6dXpbqwT5VKDXzGJJ6c14rKqxS7"
10+let DAPPOWNER = "3P4NZR6ckE8aLC7Bogr5NXBzSi6p13DQg67"
1111
12-let ORACLEWALLET = "3NAcoeWdUTWn8csXJPG47v1Fjtjcfqxb5tu"
12+let ORACLEWALLET = "3PPTrTo3AzR56N7ArzbU3Bpq9zYMgcf39Mk"
1313
14-let WAVESKITWALLET = "3MqPpbWPRsZFoT9X74qWocU4BpypGEPhiCn"
14+let WAVESKITWALLET = "3PDEEMRU3tBJffag7sRPnjwEQ8GZGikUWBi"
1515
1616 let WAVES = "WAVES"
1717
1818 let NONE = "NONE"
1919
2020 let FEE = 900000
2121
22-let WLT = base58'7KAXNTswj6947a6cVpGhVrh1utWpLcjwf8AFpWCtuMT7'
22+let WLT = base58'CM8J4Z9HW3MdKgTxrpf3WYauXfjdu1zZKg19AGTicEYe'
2323
2424 func getNumByKey (key) = {
2525 let num = match getInteger(this, key) {
2626 case a: Int =>
2727 a
2828 case _ =>
2929 0
3030 }
3131 num
3232 }
3333
3434
3535 func getStrByKey (key) = {
3636 let str = match getString(this, key) {
3737 case a: String =>
3838 a
3939 case _ =>
4040 NONE
4141 }
4242 str
4343 }
4444
4545
4646 func getExtWAVESUSDCurrencyRate () = {
4747 let oracleAddress = extract(addressFromString(ORACLEWALLET))
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 (contestStatus) = {
6060 let account = toBase58String(i.caller.bytes)
6161 let contestCurrNumber = getNumByKey("contest_currentnumber")
6262 if ((account != DAPPOWNER))
6363 then throw("Only dAPP Owner can set Contest Status.")
6464 else if (if ((contestStatus != CANCELED))
6565 then (contestStatus != CLOSED)
6666 else false)
6767 then throw(("Invalid status: " + contestStatus))
6868 else WriteSet([DataEntry((("contest_" + toString(contestCurrNumber)) + "_status"), contestStatus)])
6969 }
7070
7171
7272
7373 @Callable(i)
7474 func setContestConfiguration (contestBetCost) = {
7575 let account = toBase58String(i.caller.bytes)
7676 let contestCurrNumber = getNumByKey("contest_currentnumber")
7777 let contestCurrStatus = getStrByKey((("contest_" + toString(contestCurrNumber)) + "_status"))
7878 let contestNewNumber = (contestCurrNumber + 1)
7979 let balance = wavesBalance(this)
8080 if ((account != DAPPOWNER))
8181 then throw(((("Only dAPP Owner can Configure Contest. Caller account: " + account) + " dapp owner: ") + DAPPOWNER))
8282 else if ((contestCurrStatus == RUNNING))
8383 then throw(("You cannot configure a new Contest while old Contest status is: " + contestCurrStatus))
8484 else {
8585 let contestFinishHeight = (height + (6 * 1440))
8686 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)])
8787 }
8888 }
8989
9090
9191
9292 @Callable(i)
9393 func bet (currencyValue) = {
9494 let account = toBase58String(i.caller.bytes)
9595 let pmt = extract(i.payment)
9696 let contestCurrNumber = getNumByKey("contest_currentnumber")
9797 let contestStartHeight = getNumByKey((("contest_" + toString(contestCurrNumber)) + "_startheight"))
9898 let contestFinishHeight = getNumByKey((("contest_" + toString(contestCurrNumber)) + "_finishheight"))
9999 let contestCurrStatus = getStrByKey((("contest_" + toString(contestCurrNumber)) + "_status"))
100100 let contestCurrBetCost = getNumByKey((("contest_" + toString(contestCurrNumber)) + "_betcost"))
101101 let contestStatus = getStrByKey((("contest_" + toString(contestCurrNumber)) + "_status"))
102102 let accountBetsNumber = getNumByKey((((("contest_" + toString(contestCurrNumber)) + "_") + account) + "_bets"))
103103 let existingBetAccount = getStrByKey(((("bet_" + toString(contestCurrNumber)) + "_") + toString(currencyValue)))
104104 if ((height > (contestFinishHeight - (2 * 1440))))
105105 then throw("You cannot bet anymore at this height.")
106106 else if ((contestCurrStatus != RUNNING))
107107 then throw(("Invalid status: you cannot bet now, contest status is: " + contestCurrStatus))
108108 else if (if ((pmt.assetId != WLT))
109109 then true
110110 else (pmt.amount != contestCurrBetCost))
111111 then throw(((("You must pay at least: " + toString(contestCurrBetCost)) + " WLT to bet. You paid: ") + toString(pmt.amount)))
112112 else if (if ((existingBetAccount != NONE))
113113 then (existingBetAccount != account)
114114 else false)
115115 then throw((("Another user: " + existingBetAccount) + " did bet already on this rate."))
116- else if ((accountBetsNumber >= 5))
117- then throw("You can do at most 5 bets.")
116+ else if ((accountBetsNumber >= 1))
117+ then throw("You can do at most 1 bet.")
118118 else WriteSet([DataEntry(((("bet_" + toString(contestCurrNumber)) + "_") + toString(currencyValue)), account), DataEntry((((("contest_" + toString(contestCurrNumber)) + "_") + account) + "_bets"), (accountBetsNumber + 1))])
119119 }
120120
121121
122122
123123 @Callable(i)
124124 func closecontest () = {
125125 let currencyRate = getExtWAVESUSDCurrencyRate()
126126 let contestCurrNumber = getNumByKey("contest_currentnumber")
127127 let winningBetAccount = getStrByKey(((("bet_" + toString(contestCurrNumber)) + "_") + toString(currencyRate)))
128128 let contestFinishHeight = getNumByKey((("contest_" + toString(contestCurrNumber)) + "_finishheight"))
129129 let account = toBase58String(i.caller.bytes)
130130 let balance = wavesBalance(this)
131131 let contestCurrStatus = getStrByKey((("contest_" + toString(contestCurrNumber)) + "_status"))
132132 if ((account != DAPPOWNER))
133133 then throw("Only dAPP Owner can Close Contest.")
134134 else if ((contestFinishHeight > height))
135135 then throw(((("account: " + account) + ": Cannot close the contest before height:") + toString(contestFinishHeight)))
136136 else if ((contestCurrStatus != RUNNING))
137137 then throw(("Cannot close a contest in status: " + contestCurrStatus))
138138 else if ((winningBetAccount != NONE))
139139 then {
140140 let WLTOracleShareRevenue = ((assetBalance(this, WLT) * 1) / 100)
141141 let WLTWavesKitShareRevenue = ((assetBalance(this, WLT) * 4) / 100)
142142 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)])
143+ let winTransfer = TransferSet([ScriptTransfer(extract(addressFromString(winningBetAccount)), WLTPrize, WLT), ScriptTransfer(extract(addressFromString(ORACLEWALLET)), WLTOracleShareRevenue, WLT), ScriptTransfer(extract(addressFromString(WAVESKITWALLET)), WLTWavesKitShareRevenue, WLT)])
144144 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)
145145 }
146146 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)])
147147 }
148148
149149
150150 @Verifier(tx)
151151 func verify () = match tx {
152152 case _: SetScriptTransaction|DataTransaction =>
153153 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
154154 case _: InvokeScriptTransaction =>
155155 true
156156 case _ =>
157157 true
158158 }
159159

github/deemru/w8io/026f985 
48.97 ms