tx · 99AQ9TzmwbCt5TQ1FuK4vSjyNY5f7Qt7VYT5H8CdfqyJ 3N9QhjBmyFRrGW5d8VQojB4wZhHmQhuvVrL: -0.01400000 Waves 2022.11.14 14:38 [2316755] smart account 3N9QhjBmyFRrGW5d8VQojB4wZhHmQhuvVrL > SELF 0.00000000 Waves
{ "type": 13, "id": "99AQ9TzmwbCt5TQ1FuK4vSjyNY5f7Qt7VYT5H8CdfqyJ", "fee": 1400000, "feeAssetId": null, "timestamp": 1668425915600, "version": 2, "chainId": 84, "sender": "3N9QhjBmyFRrGW5d8VQojB4wZhHmQhuvVrL", "senderPublicKey": "BefhVEanzhrtdYfeWquaoSsMZw3BEaEZZB86Kosqw7Qb", "proofs": [ "3Vs3yS9XwiT3X1c9MNBGawqXgUPkKxYsB46ewryB1qgD6sHb11aPAi77uf9qZnVYK9XCJ9Wqku3AAJdHhwe2poqg" ], "script": "base64:AAIFAAAAAAAAABsIAhIDCgEBEgMKAQESCAoGCAgICAgIEgMKAQgAAAAOAAAAAAVhZG1pbgIAAAAsN1R0NzRyOFI3YXVUQlRkNnJKTUE0cVlyOVdEV2pjMlNVSEhTclJNdzlCcnMAAAAADnJlc3VsdENvbnRyYWN0AgAAAAAAAAAADGJldEFtb3VudEtleQIAAAAQZ2xvYmFsX2JldEFtb3VudAAAAAALZGVhZGxpbmVLZXkCAAAAEWdsb2JhbF9kZWFkbGluZV9oAAAAAAVzY2FsZQAAAAAABfXhAAEAAAAOZ2V0QXNzZXRTdHJpbmcAAAABAAAAB2Fzc2V0SWQEAAAAByRtYXRjaDAFAAAAB2Fzc2V0SWQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAAWIFAAAAByRtYXRjaDAJAAJYAAAAAQUAAAABYgIAAAAFV0FWRVMBAAAADWdldEFzc2V0Qnl0ZXMAAAABAAAAB2Fzc2V0SWQDCQAAAAAAAAIFAAAAB2Fzc2V0SWQCAAAABVdBVkVTBQAAAAR1bml0CQAC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QAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tlef9eoTc=", "height": 2316755, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8NiydrX6aUyhUYzBANfeJ2Eb5VT8BwGKe7KNA2MiKbaK Next: 4mqPFv5BewH8KEvdpp9uLrmPJnn7tYx31sfhemGXYcEH Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let admin = " | |
4 | + | let admin = "7Tt74r8R7auTBTd6rJMA4qYr9WDWjc2SUHHSrRMw9Brs" | |
5 | 5 | ||
6 | 6 | let resultContract = "" | |
7 | 7 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let admin = " | |
4 | + | let admin = "7Tt74r8R7auTBTd6rJMA4qYr9WDWjc2SUHHSrRMw9Brs" | |
5 | 5 | ||
6 | 6 | let resultContract = "" | |
7 | 7 | ||
8 | 8 | let betAmountKey = "global_betAmount" | |
9 | 9 | ||
10 | 10 | let deadlineKey = "global_deadline_h" | |
11 | 11 | ||
12 | 12 | let scale = 100000000 | |
13 | 13 | ||
14 | 14 | func getAssetString (assetId) = match assetId { | |
15 | 15 | case b: ByteVector => | |
16 | 16 | toBase58String(b) | |
17 | 17 | case _ => | |
18 | 18 | "WAVES" | |
19 | 19 | } | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | func getAssetBytes (assetId) = if ((assetId == "WAVES")) | |
23 | 23 | then unit | |
24 | 24 | else fromBase58String(assetId) | |
25 | 25 | ||
26 | 26 | ||
27 | 27 | func tryGetInteger (key) = match getInteger(this, key) { | |
28 | 28 | case i: Int => | |
29 | 29 | i | |
30 | 30 | case _ => | |
31 | 31 | 0 | |
32 | 32 | } | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func tryGetBoolean (key) = match getBoolean(this, key) { | |
36 | 36 | case b: Boolean => | |
37 | 37 | b | |
38 | 38 | case _ => | |
39 | 39 | false | |
40 | 40 | } | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func tryGetString (key) = match getString(this, key) { | |
44 | 44 | case s: String => | |
45 | 45 | s | |
46 | 46 | case _ => | |
47 | 47 | "" | |
48 | 48 | } | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func allow (callerPBK) = (toBase58String(callerPBK) == admin) | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func isBet (address) = tryGetBoolean((address + "_betted")) | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func getBetAmount () = tryGetInteger(betAmountKey) | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func getDeadLine () = tryGetInteger(deadlineKey) | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | @Callable(i) | |
64 | 64 | func setBetAmount (amount) = if (allow(i.callerPublicKey)) | |
65 | 65 | then [IntegerEntry(betAmountKey, amount)] | |
66 | 66 | else throw("Only admin") | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | ||
70 | 70 | @Callable(i) | |
71 | 71 | func setDeadLine (deadlineHeight) = if (allow(i.callerPublicKey)) | |
72 | 72 | then [IntegerEntry(deadlineKey, deadlineHeight)] | |
73 | 73 | else throw("Only admin") | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | ||
77 | 77 | @Callable(i) | |
78 | 78 | func makeBet (group_winners,group_second,octo_winners,quarter_winners,semi_winners,winner) = { | |
79 | 79 | let pmt = i.payments[0] | |
80 | 80 | let pmt_asset = value(pmt.assetId) | |
81 | 81 | let pmt_amount = value(pmt.amount) | |
82 | 82 | let callerAddr = toString(i.caller) | |
83 | 83 | let betted = isBet(callerAddr) | |
84 | 84 | let deadline = getDeadLine() | |
85 | 85 | if ((deadline > height)) | |
86 | 86 | then if (!(betted)) | |
87 | 87 | then if ((getAssetString(pmt_asset) == "WAVES")) | |
88 | 88 | then { | |
89 | 89 | let betAmount = getBetAmount() | |
90 | 90 | if ((betAmount != 0)) | |
91 | 91 | then if ((pmt_amount == betAmount)) | |
92 | 92 | then { | |
93 | 93 | let groupWinners = split(group_winners, "_") | |
94 | 94 | let groupSecond = split(group_second, "_") | |
95 | 95 | let octoWinners = split(octo_winners, "_") | |
96 | 96 | let quarterWinners = split(quarter_winners, "_") | |
97 | 97 | let semiWinners = split(semi_winners, "_") | |
98 | 98 | if (if (if (if (if ((size(groupWinners) == 8)) | |
99 | 99 | then (size(groupSecond) == 8) | |
100 | 100 | else false) | |
101 | 101 | then (size(octoWinners) == 8) | |
102 | 102 | else false) | |
103 | 103 | then (size(quarterWinners) == 4) | |
104 | 104 | else false) | |
105 | 105 | then (size(semiWinners) == 2) | |
106 | 106 | else false) | |
107 | 107 | 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)] | |
108 | 108 | else throw("Incorrect data arrived in arguments") | |
109 | 109 | } | |
110 | 110 | else throw((("Attach exactly " + toString(betAmount)) + " /100000000 Waves as payment")) | |
111 | 111 | else throw("Zero betAmount from contract storage") | |
112 | 112 | } | |
113 | 113 | else throw("Only Waves is allowed as payment asset to bet") | |
114 | 114 | else throw("Bet already made") | |
115 | 115 | else throw("Betting closed") | |
116 | 116 | } | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | ||
120 | 120 | @Callable(i) | |
121 | 121 | func deleteAddress (address) = { | |
122 | 122 | let callerAddr = toString(i.caller) | |
123 | 123 | if (allow(i.callerPublicKey)) | |
124 | 124 | 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"))] | |
125 | 125 | else throw("Only admin") | |
126 | 126 | } | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | @Verifier(tx) | |
130 | 130 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
131 | 131 |
github/deemru/w8io/026f985 48.33 ms ◑