tx · 6ZedKy5ddrUPpyUNZKcwHhMciEU7yRo6HpiMxDB3TyKJ

3N9QhjBmyFRrGW5d8VQojB4wZhHmQhuvVrL:  -0.01400000 Waves

2022.11.14 14:28 [2316743] smart account 3N9QhjBmyFRrGW5d8VQojB4wZhHmQhuvVrL > SELF 0.00000000 Waves

{ "type": 13, "id": "6ZedKy5ddrUPpyUNZKcwHhMciEU7yRo6HpiMxDB3TyKJ", "fee": 1400000, "feeAssetId": null, "timestamp": 1668425310507, "version": 2, "chainId": 84, "sender": "3N9QhjBmyFRrGW5d8VQojB4wZhHmQhuvVrL", "senderPublicKey": "BefhVEanzhrtdYfeWquaoSsMZw3BEaEZZB86Kosqw7Qb", "proofs": [ "5MybYjMR3hqT6ijWuK5wS7r9CYvzASmVdRcHhenLxDm5YNWxxpQjW1eXJuFiqkP8zAwhmy7ktVLXZc79FuPDNstc" ], "script": "base64:AAIFAAAAAAAAABsIAhIDCgEBEgMKAQESCAoGCAgICAgIEgMKAQgAAAANAAAAAAVhZG1pbgIAAAAsQmVmaFZFYW56aHJ0ZFlmZVdxdWFvU3NNWnczQkVhRVpaQjg2S29zcXc3UWIAAAAADnJlc3VsdENvbnRyYWN0AgAAAAAAAAAADGJldEFtb3VudEtleQIAAAAQZ2xvYmFsX2JldEFtb3VudAAAAAALZGVhZGxpbmVLZXkCAAAAEWdsb2JhbF9kZWFkbGluZV9oAAAAAAVzY2FsZQAAAAAABfXhAAEAAAAOZ2V0QXNzZXRTdHJpbmcAAAABAAAAB2Fzc2V0SWQEAAAAByRtYXRjaDAFAAAAB2Fzc2V0SWQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAAWIFAAAAByRtYXRjaDAJAAJYAAAAAQUAAAABYgIAAAAFV0FWRVMBAAAADWdldEFzc2V0Qnl0ZXMAAAABAAAAB2Fzc2V0SWQDCQAAAAAAAAIFAAAAB2Fzc2V0SWQCAAAABVdBVkVTBQAAAAR1bml0CQACWQAAAAE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AAAApjYWxsZXJBZGRyAgAAAA1fT2N0bzctd2lubmVyCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAAEsAAAAAgUAAAAKY2FsbGVyQWRkcgIAAAANX09jdG84LXdpbm5lcgkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQABLAAAAAIFAAAACmNhbGxlckFkZHICAAAAEF9RdWFydGVyMS13aW5uZXIJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkAASwAAAACBQAAAApjYWxsZXJBZGRyAgAAABBfUXVhcnRlcjItd2lubmVyCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAAEsAAAAAgUAAAAKY2FsbGVyQWRkcgIAAAAQX1F1YXJ0ZXIzLXdpbm5lcgkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQABLAAAAAIFAAAACmNhbGxlckFkZHICAAAAEF9RdWFydGVyNC13aW5uZXIJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkAASwAAAACBQAAAApjYWxsZXJBZGRyAgAAAA1fU2VtaTEtd2lubmVyCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAAEsAAAAAgUAAAAKY2FsbGVyQWRkcgIAAAANX1NlbWkyLXdpbm5lcgkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQABLAAAAAIFAAAACmNhbGxlckFkZHICAAAADEZpbmFsLXdpbm5lcgUAAAADbmlsCQAAAgAAAAECAAAACk9ubHkgYWRtaW4AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleahrYS8=", "height": 2316743, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: C2uUEFgyxQazoPp1iwJYPiqPsCdwLQNDF27Wc6WJ4Yro Next: 8NiydrX6aUyhUYzBANfeJ2Eb5VT8BwGKe7KNA2MiKbaK Diff:
OldNewDifferences
8383 then {
8484 let betAmount = getBetAmount()
8585 if ((betAmount != 0))
86- then if ((pmt_amount == (betAmount * scale)))
86+ then if ((pmt_amount == betAmount))
8787 then {
8888 let groupWinners = split(group_winners, "_")
8989 let groupSecond = split(group_second, "_")
102102 then [BooleanEntry((callerAddr + "_betted"), true), IntegerEntry((callerAddr + "_height"), height), StringEntry((callerAddr + "_GroupA-1st"), groupWinners[0]), StringEntry((callerAddr + "_GroupA-2nd"), groupSecond[0]), StringEntry((callerAddr + "_GroupB-1st"), groupWinners[1]), StringEntry((callerAddr + "_GroupB-2nd"), groupWinners[1]), StringEntry((callerAddr + "_GroupC-1st"), groupWinners[2]), StringEntry((callerAddr + "_GroupC-2nd"), groupSecond[2]), StringEntry((callerAddr + "_GroupD-1st"), groupWinners[3]), StringEntry((callerAddr + "_GroupD-2nd"), groupWinners[3]), StringEntry((callerAddr + "_GroupE-1st"), groupWinners[4]), StringEntry((callerAddr + "_GroupE-2nd"), groupSecond[4]), StringEntry((callerAddr + "_GroupF-1st"), groupWinners[5]), StringEntry((callerAddr + "_GroupF-2nd"), groupWinners[5]), StringEntry((callerAddr + "_GroupG-1st"), groupWinners[6]), StringEntry((callerAddr + "_GroupG-2nd"), groupSecond[6]), StringEntry((callerAddr + "_GroupH-1st"), groupWinners[7]), StringEntry((callerAddr + "_GroupH-2nd"), groupWinners[7]), StringEntry((callerAddr + "_Octo1-winner"), octoWinners[0]), StringEntry((callerAddr + "_Octo2-winner"), octoWinners[1]), StringEntry((callerAddr + "_Octo3-winner"), octoWinners[2]), StringEntry((callerAddr + "_Octo4-winner"), octoWinners[3]), StringEntry((callerAddr + "_Octo5-winner"), octoWinners[4]), StringEntry((callerAddr + "_Octo6-winner"), octoWinners[5]), StringEntry((callerAddr + "_Octo7-winner"), octoWinners[6]), StringEntry((callerAddr + "_Octo8-winner"), octoWinners[7]), StringEntry((callerAddr + "_Quarter1-winner"), quarterWinners[0]), StringEntry((callerAddr + "_Quarter2-winner"), quarterWinners[1]), StringEntry((callerAddr + "_Quarter3-winner"), quarterWinners[2]), StringEntry((callerAddr + "_Quarter4-winner"), quarterWinners[3]), StringEntry((callerAddr + "_Semi1-winner"), semiWinners[0]), StringEntry((callerAddr + "_Semi2-winner"), semiWinners[1]), StringEntry((callerAddr + "Final-winner"), winner)]
103103 else throw("Incorrect data arrived in arguments")
104104 }
105- else throw((("Attach exactly " + toString(betAmount)) + " Waves as payment"))
105+ else throw((("Attach exactly " + toString(betAmount)) + " /100000000 Waves as payment"))
106106 else throw("Zero betAmount from contract storage")
107107 }
108108 else throw("Only Waves is allowed as payment asset to bet")
109109 else throw("Bet already made")
110+ }
111+
112+
113+
114+@Callable(i)
115+func deleteAddress (address) = {
116+ let callerAddr = toString(i.caller)
117+ if (allow(i.callerPublicKey))
118+ then [DeleteEntry((callerAddr + "_betted")), DeleteEntry((callerAddr + "_height")), DeleteEntry((callerAddr + "_GroupA-1st")), DeleteEntry((callerAddr + "_GroupA-2nd")), DeleteEntry((callerAddr + "_GroupB-1st")), DeleteEntry((callerAddr + "_GroupB-2nd")), DeleteEntry((callerAddr + "_GroupC-1st")), DeleteEntry((callerAddr + "_GroupC-2nd")), DeleteEntry((callerAddr + "_GroupD-1st")), DeleteEntry((callerAddr + "_GroupD-2nd")), DeleteEntry((callerAddr + "_GroupE-1st")), DeleteEntry((callerAddr + "_GroupE-2nd")), DeleteEntry((callerAddr + "_GroupF-1st")), DeleteEntry((callerAddr + "_GroupF-2nd")), DeleteEntry((callerAddr + "_GroupG-1st")), DeleteEntry((callerAddr + "_GroupG-2nd")), DeleteEntry((callerAddr + "_GroupH-1st")), DeleteEntry((callerAddr + "_GroupH-2nd")), DeleteEntry((callerAddr + "_Octo1-winner")), DeleteEntry((callerAddr + "_Octo2-winner")), DeleteEntry((callerAddr + "_Octo3-winner")), DeleteEntry((callerAddr + "_Octo4-winner")), DeleteEntry((callerAddr + "_Octo5-winner")), DeleteEntry((callerAddr + "_Octo6-winner")), DeleteEntry((callerAddr + "_Octo7-winner")), DeleteEntry((callerAddr + "_Octo8-winner")), DeleteEntry((callerAddr + "_Quarter1-winner")), DeleteEntry((callerAddr + "_Quarter2-winner")), DeleteEntry((callerAddr + "_Quarter3-winner")), DeleteEntry((callerAddr + "_Quarter4-winner")), DeleteEntry((callerAddr + "_Semi1-winner")), DeleteEntry((callerAddr + "_Semi2-winner")), DeleteEntry((callerAddr + "Final-winner"))]
119+ else throw("Only admin")
110120 }
111121
112122
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let admin = "BefhVEanzhrtdYfeWquaoSsMZw3BEaEZZB86Kosqw7Qb"
55
66 let resultContract = ""
77
88 let betAmountKey = "global_betAmount"
99
1010 let deadlineKey = "global_deadline_h"
1111
1212 let scale = 100000000
1313
1414 func getAssetString (assetId) = match assetId {
1515 case b: ByteVector =>
1616 toBase58String(b)
1717 case _ =>
1818 "WAVES"
1919 }
2020
2121
2222 func getAssetBytes (assetId) = if ((assetId == "WAVES"))
2323 then unit
2424 else fromBase58String(assetId)
2525
2626
2727 func tryGetInteger (key) = match getInteger(this, key) {
2828 case i: Int =>
2929 i
3030 case _ =>
3131 0
3232 }
3333
3434
3535 func tryGetBoolean (key) = match getBoolean(this, key) {
3636 case b: Boolean =>
3737 b
3838 case _ =>
3939 false
4040 }
4141
4242
4343 func tryGetString (key) = match getString(this, key) {
4444 case s: String =>
4545 s
4646 case _ =>
4747 ""
4848 }
4949
5050
5151 func allow (callerPBK) = (toBase58String(callerPBK) == admin)
5252
5353
5454 func isBet (address) = tryGetBoolean((address + "_betted"))
5555
5656
5757 func getBetAmount () = tryGetInteger(betAmountKey)
5858
5959
6060 @Callable(i)
6161 func setBetAmount (amount) = if (allow(i.callerPublicKey))
6262 then [IntegerEntry(betAmountKey, amount)]
6363 else throw("Only admin")
6464
6565
6666
6767 @Callable(i)
6868 func setDeadLine (deadlineHeight) = if (allow(i.callerPublicKey))
6969 then [IntegerEntry(deadlineKey, deadlineHeight)]
7070 else throw("Only admin")
7171
7272
7373
7474 @Callable(i)
7575 func makeBet (group_winners,group_second,octo_winners,quarter_winners,semi_winners,winner) = {
7676 let pmt = i.payments[0]
7777 let pmt_asset = value(pmt.assetId)
7878 let pmt_amount = value(pmt.amount)
7979 let callerAddr = toString(i.caller)
8080 let betted = isBet(callerAddr)
8181 if (!(betted))
8282 then if ((getAssetString(pmt_asset) == "WAVES"))
8383 then {
8484 let betAmount = getBetAmount()
8585 if ((betAmount != 0))
86- then if ((pmt_amount == (betAmount * scale)))
86+ then if ((pmt_amount == betAmount))
8787 then {
8888 let groupWinners = split(group_winners, "_")
8989 let groupSecond = split(group_second, "_")
9090 let octoWinners = split(octo_winners, "_")
9191 let quarterWinners = split(quarter_winners, "_")
9292 let semiWinners = split(semi_winners, "_")
9393 if (if (if (if (if ((size(groupWinners) == 8))
9494 then (size(groupSecond) == 8)
9595 else false)
9696 then (size(octoWinners) == 8)
9797 else false)
9898 then (size(quarterWinners) == 4)
9999 else false)
100100 then (size(semiWinners) == 2)
101101 else false)
102102 then [BooleanEntry((callerAddr + "_betted"), true), IntegerEntry((callerAddr + "_height"), height), StringEntry((callerAddr + "_GroupA-1st"), groupWinners[0]), StringEntry((callerAddr + "_GroupA-2nd"), groupSecond[0]), StringEntry((callerAddr + "_GroupB-1st"), groupWinners[1]), StringEntry((callerAddr + "_GroupB-2nd"), groupWinners[1]), StringEntry((callerAddr + "_GroupC-1st"), groupWinners[2]), StringEntry((callerAddr + "_GroupC-2nd"), groupSecond[2]), StringEntry((callerAddr + "_GroupD-1st"), groupWinners[3]), StringEntry((callerAddr + "_GroupD-2nd"), groupWinners[3]), StringEntry((callerAddr + "_GroupE-1st"), groupWinners[4]), StringEntry((callerAddr + "_GroupE-2nd"), groupSecond[4]), StringEntry((callerAddr + "_GroupF-1st"), groupWinners[5]), StringEntry((callerAddr + "_GroupF-2nd"), groupWinners[5]), StringEntry((callerAddr + "_GroupG-1st"), groupWinners[6]), StringEntry((callerAddr + "_GroupG-2nd"), groupSecond[6]), StringEntry((callerAddr + "_GroupH-1st"), groupWinners[7]), StringEntry((callerAddr + "_GroupH-2nd"), groupWinners[7]), StringEntry((callerAddr + "_Octo1-winner"), octoWinners[0]), StringEntry((callerAddr + "_Octo2-winner"), octoWinners[1]), StringEntry((callerAddr + "_Octo3-winner"), octoWinners[2]), StringEntry((callerAddr + "_Octo4-winner"), octoWinners[3]), StringEntry((callerAddr + "_Octo5-winner"), octoWinners[4]), StringEntry((callerAddr + "_Octo6-winner"), octoWinners[5]), StringEntry((callerAddr + "_Octo7-winner"), octoWinners[6]), StringEntry((callerAddr + "_Octo8-winner"), octoWinners[7]), StringEntry((callerAddr + "_Quarter1-winner"), quarterWinners[0]), StringEntry((callerAddr + "_Quarter2-winner"), quarterWinners[1]), StringEntry((callerAddr + "_Quarter3-winner"), quarterWinners[2]), StringEntry((callerAddr + "_Quarter4-winner"), quarterWinners[3]), StringEntry((callerAddr + "_Semi1-winner"), semiWinners[0]), StringEntry((callerAddr + "_Semi2-winner"), semiWinners[1]), StringEntry((callerAddr + "Final-winner"), winner)]
103103 else throw("Incorrect data arrived in arguments")
104104 }
105- else throw((("Attach exactly " + toString(betAmount)) + " Waves as payment"))
105+ else throw((("Attach exactly " + toString(betAmount)) + " /100000000 Waves as payment"))
106106 else throw("Zero betAmount from contract storage")
107107 }
108108 else throw("Only Waves is allowed as payment asset to bet")
109109 else throw("Bet already made")
110+ }
111+
112+
113+
114+@Callable(i)
115+func deleteAddress (address) = {
116+ let callerAddr = toString(i.caller)
117+ if (allow(i.callerPublicKey))
118+ then [DeleteEntry((callerAddr + "_betted")), DeleteEntry((callerAddr + "_height")), DeleteEntry((callerAddr + "_GroupA-1st")), DeleteEntry((callerAddr + "_GroupA-2nd")), DeleteEntry((callerAddr + "_GroupB-1st")), DeleteEntry((callerAddr + "_GroupB-2nd")), DeleteEntry((callerAddr + "_GroupC-1st")), DeleteEntry((callerAddr + "_GroupC-2nd")), DeleteEntry((callerAddr + "_GroupD-1st")), DeleteEntry((callerAddr + "_GroupD-2nd")), DeleteEntry((callerAddr + "_GroupE-1st")), DeleteEntry((callerAddr + "_GroupE-2nd")), DeleteEntry((callerAddr + "_GroupF-1st")), DeleteEntry((callerAddr + "_GroupF-2nd")), DeleteEntry((callerAddr + "_GroupG-1st")), DeleteEntry((callerAddr + "_GroupG-2nd")), DeleteEntry((callerAddr + "_GroupH-1st")), DeleteEntry((callerAddr + "_GroupH-2nd")), DeleteEntry((callerAddr + "_Octo1-winner")), DeleteEntry((callerAddr + "_Octo2-winner")), DeleteEntry((callerAddr + "_Octo3-winner")), DeleteEntry((callerAddr + "_Octo4-winner")), DeleteEntry((callerAddr + "_Octo5-winner")), DeleteEntry((callerAddr + "_Octo6-winner")), DeleteEntry((callerAddr + "_Octo7-winner")), DeleteEntry((callerAddr + "_Octo8-winner")), DeleteEntry((callerAddr + "_Quarter1-winner")), DeleteEntry((callerAddr + "_Quarter2-winner")), DeleteEntry((callerAddr + "_Quarter3-winner")), DeleteEntry((callerAddr + "_Quarter4-winner")), DeleteEntry((callerAddr + "_Semi1-winner")), DeleteEntry((callerAddr + "_Semi2-winner")), DeleteEntry((callerAddr + "Final-winner"))]
119+ else throw("Only admin")
110120 }
111121
112122
113123 @Verifier(tx)
114124 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
115125

github/deemru/w8io/026f985 
31.15 ms