tx · FhDSuZnFi3qXQNKETf3H4UA9Ay7V9TPdN7arAaHTrkFV

3N4NPivoThtskr7JxnNrKL7s8BzmRGx9rT2:  -0.01400000 Waves

2019.08.10 20:15 [625205] smart account 3N4NPivoThtskr7JxnNrKL7s8BzmRGx9rT2 > SELF 0.00000000 Waves

{ "type": 13, "id": "FhDSuZnFi3qXQNKETf3H4UA9Ay7V9TPdN7arAaHTrkFV", "fee": 1400000, "feeAssetId": null, "timestamp": 1565457325423, "version": 1, "sender": "3N4NPivoThtskr7JxnNrKL7s8BzmRGx9rT2", "senderPublicKey": "F3vhYapU4NBzfM2X4KNkoFcxj3UbYnJjqituG6KE7ZPG", "proofs": [ "5bmaqELswhbi17VpmNPs1boRWU7jc7nHWquUYErtG5bchJnAZ8SC8B4nsNbpxkRrvDKkVirW6CKjVBkUEwtFUBUG" ], "script": "base64:AAIDAAAAAAAAAAAAAAAJAAAAAAdSVU5OSU5HAgAAAAdSVU5OSU5HAAAAABBDTE9TRURGT1JCRVRUSU5HAgAAABBDTE9TRURGT1JCRVRUSU5HAAAAAAZDTE9TRUQCAAAABkNMT1NFRAAAAAAJREFQUE9XTkVSAgAAACMzTjROUGl2b1RodHNrcjdKeG5OcktMN3M4QnptUkd4OXJUMgAAAAAFV0FWRVMCAAAABVdBVkVTAAAAAAROT05FAgAAAAROT05FAQAAAAtnZXROdW1CeUtleQAAAAEAAAADa2V5BAAAAANudW0EAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAFAAAAA251bQEAAAALZ2V0U3RyQnlLZXkAAAABAAAAA2tleQQAAAADc3RyBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQA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QJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAADmNvbnRlc3Rfc3RhdHVzBQAAAAdSVU5OSU5HBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBgkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24JAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdJbnZva2VTY3JpcHRUcmFuc2FjdGlvbgYGwDBrzg==", "chainId": 84, "height": 625205, "spentComplexity": 0 } View: original | compacted Prev: 9jhKM4L4z1DfgZ8gkYbuai8ajGidfHocXq7TGxPDzpPz Next: 7nzjChksjw9bSAc4PP7EvfG6bWUf4rKHfsKSUbpnGfh2 Diff:
OldNewDifferences
5555
5656
5757 @Callable(i)
58-func setContestConfigurationC (currencyTicker,contestStartHeight) = {
58+func setContestConfiguration (currencyTicker,contestStartHeight) = {
5959 let account = toBase58String(i.caller.bytes)
6060 let contestStatus = getContestStatus()
6161 let currentHeight = match transactionHeightById(i.transactionId) {
6868 if ((account != DAPPOWNER))
6969 then throw("Only dAPP Owner can Configure Contest.")
7070 else if ((currentHeight >= contestStartHeight))
71- then throw("Start Height must be greater than current Blockchain height.")
71+ then throw(("Start Height must be greater than current Blockchain height: " + toString(currentHeight)))
7272 else if ((contestStatus != RUNNING))
7373 then throw(("You cannot configure Contest while status is: " + contestStatus))
7474 else if ((currencyTicker != WAVES))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let RUNNING = "RUNNING"
55
66 let CLOSEDFORBETTING = "CLOSEDFORBETTING"
77
88 let CLOSED = "CLOSED"
99
1010 let DAPPOWNER = "3N4NPivoThtskr7JxnNrKL7s8BzmRGx9rT2"
1111
1212 let WAVES = "WAVES"
1313
1414 let NONE = "NONE"
1515
1616 func getNumByKey (key) = {
1717 let num = match getInteger(this, key) {
1818 case a: Int =>
1919 a
2020 case _ =>
2121 0
2222 }
2323 num
2424 }
2525
2626
2727 func getStrByKey (key) = {
2828 let str = match getString(this, key) {
2929 case a: String =>
3030 a
3131 case _ =>
3232 NONE
3333 }
3434 str
3535 }
3636
3737
3838 func getContestStatus () = getStrByKey("contest_status")
3939
4040
4141 @Callable(i)
4242 func setContestStatus (contestStatus) = {
4343 let account = toBase58String(i.caller.bytes)
4444 if ((account != DAPPOWNER))
4545 then throw("Only dAPP Owner can set Contest Status.")
4646 else if (if (if ((contestStatus != RUNNING))
4747 then (contestStatus != CLOSEDFORBETTING)
4848 else false)
4949 then (contestStatus != CLOSED)
5050 else false)
5151 then throw(("Invalid status: " + contestStatus))
5252 else WriteSet([DataEntry("contest_status", contestStatus)])
5353 }
5454
5555
5656
5757 @Callable(i)
58-func setContestConfigurationC (currencyTicker,contestStartHeight) = {
58+func setContestConfiguration (currencyTicker,contestStartHeight) = {
5959 let account = toBase58String(i.caller.bytes)
6060 let contestStatus = getContestStatus()
6161 let currentHeight = match transactionHeightById(i.transactionId) {
6262 case a: Int =>
6363 a
6464 case _ =>
6565 0
6666 }
6767 let contestFinishHeight = currentHeight
6868 if ((account != DAPPOWNER))
6969 then throw("Only dAPP Owner can Configure Contest.")
7070 else if ((currentHeight >= contestStartHeight))
71- then throw("Start Height must be greater than current Blockchain height.")
71+ then throw(("Start Height must be greater than current Blockchain height: " + toString(currentHeight)))
7272 else if ((contestStatus != RUNNING))
7373 then throw(("You cannot configure Contest while status is: " + contestStatus))
7474 else if ((currencyTicker != WAVES))
7575 then throw((("dAPP does not support currency: " + currencyTicker) + "yet."))
7676 else WriteSet([DataEntry("contest_currency", currencyTicker), DataEntry("contest_startheight", contestStartHeight), DataEntry("contest_finishheight", contestFinishHeight), DataEntry("contest_status", RUNNING)])
7777 }
7878
7979
8080 @Verifier(tx)
8181 func verify () = match tx {
8282 case _: SetScriptTransaction|DataTransaction =>
8383 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
8484 case _: InvokeScriptTransaction =>
8585 true
8686 case _ =>
8787 true
8888 }
8989

github/deemru/w8io/169f3d6 
42.65 ms