tx · HrRyXSmCQ1HmXUqYFCv7oF2P4iMarSBGPptzuQhSaeCv 3NAxsbHxS63azdAicVvLGsxjAQ9DsK6L4NL: -0.01400000 Waves 2019.08.23 10:44 [643502] smart account 3NAxsbHxS63azdAicVvLGsxjAQ9DsK6L4NL > SELF 0.00000000 Waves
{ "type": 13, "id": "HrRyXSmCQ1HmXUqYFCv7oF2P4iMarSBGPptzuQhSaeCv", "fee": 1400000, "feeAssetId": null, "timestamp": 1566546292470, "version": 1, "sender": "3NAxsbHxS63azdAicVvLGsxjAQ9DsK6L4NL", "senderPublicKey": "FbEMepLNcZb6VBpsH5JJg4j43UEV27dMRqv1Pq6JFLgy", "proofs": [ "4Z7BLSBdhLKPnX53wmxeWQD4BW44vjwqwTpdSLBv6Hdt2ShS7nfKDywjFQBiiULWQ18kPY8PdLSh3LNR6TwufGzE" ], "script": "base64:AAIDAAAAAAAAAAAAAAAKAAAAAApiZXRBc3NldElkAQAAACAea7QCZF/XAXMBPEnDQ5kqHUHyOfWmXu9KHDHL6zcNNwAAAAAGbWF4RmVlAAAAAAAATEtAAAAAAAZtaW5CZXQAAAAAAABMS0AAAAAAD21pbk1hdGNoTm9taW5hbAAAAAAAAExLQAEAAAATZ2V0Q2FsbGVyQnlEZWxlZ2F0ZQAAAAIAAAABaQAAAAhmdW5jdGlvbgQAAAAGY2FsbGVyCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAADGNhbGxlclByZWZpeAkAASwAAAACAgAAAAlkZWxlZ2F0ZV8FAAAABmNhbGxlcgMJAAAAAAAAAgkABBsAAAACBQAAAAR0aGlzCQABLAAAAAIJAAEsAAAAAgUAAAAMY2FsbGVyUHJlZml4AgAAAAFfBQAAAAhmdW5jdGlvbgYEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwkAASwAAAACBQAAAAxjYWxsZXJQcmVmaXgCAAAACF9hZGRyZXNzAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA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cml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAHbWF0Y2hJZAIAAAAFX3BhaWQJAAJYAAAAAQgFAAAAAWkAAAANdHJhbnNhY3Rpb25JZAUAAAADbmlsBQAAAAZhbW91bnQJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAEFAAAADXdpbm5lckFkZHJlc3MAAAABaQEAAAAIZGVsZWdhdGUAAAADAAAACmRlbGVnYXRlVG8AAAARZW5hYmxlQXV0b0FwcHJvdmUAAAAQZW5hYmxlQXV0b0NhbmNlbAkBAAAACHJlcGF5RmVlAAAABAUAAAABaQkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACCQABLAAAAAICAAAACWRlbGVnYXRlXwUAAAAKZGVsZWdhdGVUbwIAAAAIX2FkZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACCQABLAAAAAICAAAACWRlbGVnYXRlXwUAAAAKZGVsZWdhdGVUbwIAAAAMX2F1dG9hcHByb3ZlBQAAABFlbmFibGVBdXRvQXBwcm92ZQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACCQABLAAAAAICAAAACWRlbGVnYXRlXwUAAAAKZGVsZWdhdGVUbwIAAAALX2F1dG9jYW5jZWwFAAAAEGVuYWJsZUF1dG9DYW5jZWwFAAAAA25pbAAAAAAAAAAAAAUAAAAEdW5pdAAAAABzSEGp", "chainId": 84, "height": 643502, "spentComplexity": 0 } View: original | compacted Prev: CMRpJhjREvmHTstb8x5YFj4TTurSwVpQn2ZFjnE26RXs Next: BUXNsgiCoCmLHLRWHdTGAdVvnSBLYMTdfnB6cKf554De Diff:
Old | New | Differences | |
---|---|---|---|
11 | 11 | ||
12 | 12 | func e (f,g) = { | |
13 | 13 | let h = toBase58String(f.caller.bytes) | |
14 | - | let i = (" | |
14 | + | let i = ("delegate_" + h) | |
15 | 15 | if ((getBoolean(this, ((i + "_") + g)) == true)) | |
16 | 16 | then { | |
17 | 17 | let j = getString(this, (i + "_address")) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'33kV5hRVtgEGpYqhp9wQn2g9hP1fNWSYGCzzYk1T9Hyg' | |
5 | 5 | ||
6 | 6 | let b = 5000000 | |
7 | 7 | ||
8 | 8 | let c = 5000000 | |
9 | 9 | ||
10 | 10 | let d = 5000000 | |
11 | 11 | ||
12 | 12 | func e (f,g) = { | |
13 | 13 | let h = toBase58String(f.caller.bytes) | |
14 | - | let i = (" | |
14 | + | let i = ("delegate_" + h) | |
15 | 15 | if ((getBoolean(this, ((i + "_") + g)) == true)) | |
16 | 16 | then { | |
17 | 17 | let j = getString(this, (i + "_address")) | |
18 | 18 | if ($isInstanceOf(j, "String")) | |
19 | 19 | then { | |
20 | 20 | let k = j | |
21 | 21 | k | |
22 | 22 | } | |
23 | 23 | else h | |
24 | 24 | } | |
25 | 25 | else h | |
26 | 26 | } | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func l (f) = if ((f.fee > b)) | |
30 | 30 | then throw("unreasonable large fee") | |
31 | 31 | else if ((f.feeAssetId != unit)) | |
32 | 32 | then throw("fee must be in WAVES") | |
33 | 33 | else true | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func m (f,n,o,p) = if (l(f)) | |
37 | 37 | then if (if ((o > 0)) | |
38 | 38 | then isDefined(p) | |
39 | 39 | else false) | |
40 | 40 | then ScriptResult(n, TransferSet([ScriptTransfer(f.caller, f.fee, unit), ScriptTransfer(extract(p), o, a)])) | |
41 | 41 | else ScriptResult(n, TransferSet([ScriptTransfer(f.caller, f.fee, unit)])) | |
42 | 42 | else throw("error") | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | func q (f,r) = (getString(this, (r + "_owner")) == toBase58String(f.caller.bytes)) | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func s (r) = (extract(getInteger(this, (r + "_amount"))) - extract(getInteger(this, (r + "_spent")))) | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func t (r) = { | |
52 | 52 | let u = getInteger(this, (r + "_defeat")) | |
53 | 53 | if ((u == 1)) | |
54 | 54 | then true | |
55 | 55 | else (u == 3) | |
56 | 56 | } | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | @Callable(f) | |
60 | 60 | func bet (v,w,x,y) = { | |
61 | 61 | let z = toBase58String(f.caller.bytes) | |
62 | 62 | let A = extract(f.payment) | |
63 | 63 | if ((A.assetId != a)) | |
64 | 64 | then throw(("bet must be in asset " + toBase58String(a))) | |
65 | 65 | else if ((c > A.amount)) | |
66 | 66 | then throw(("minimum allowed bet is " + toString(c))) | |
67 | 67 | else if (if ((x != "for")) | |
68 | 68 | then (x != "against") | |
69 | 69 | else false) | |
70 | 70 | then throw("unexpected side") | |
71 | 71 | else { | |
72 | 72 | let r = (((((("bet_" + v) + "_") + toBase58String(f.caller.bytes)) + "_") + take(toBase58String(f.transactionId), 15)) + "_") | |
73 | 73 | let B = ((("seq_" + v) + "_") + w) | |
74 | 74 | let C = { | |
75 | 75 | let j = getInteger(this, B) | |
76 | 76 | if ($isInstanceOf(j, "Int")) | |
77 | 77 | then { | |
78 | 78 | let D = j | |
79 | 79 | (D + 1) | |
80 | 80 | } | |
81 | 81 | else 1 | |
82 | 82 | } | |
83 | 83 | m(f, WriteSet([DataEntry((r + "owner"), z), DataEntry((r + "event"), v), DataEntry((r + "subevent"), w), DataEntry((r + "side"), x), DataEntry((r + "odds"), y), DataEntry((r + "amount"), A.amount), DataEntry((r + "spent"), 0), DataEntry((r + "timestamp"), lastBlock.timestamp), DataEntry((r + "sequence"), C), DataEntry(B, C)]), 0, unit) | |
84 | 84 | } | |
85 | 85 | } | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | ||
89 | 89 | @Callable(f) | |
90 | 90 | func cancel (r) = if ((getString(this, (r + "_owner")) != e(f, "autocancel"))) | |
91 | 91 | then throw("must be owner or its delegate to cancel") | |
92 | 92 | else { | |
93 | 93 | let o = extract(getInteger(this, (r + "_amount"))) | |
94 | 94 | let E = extract(getInteger(this, (r + "_spent"))) | |
95 | 95 | let F = (o - E) | |
96 | 96 | m(f, WriteSet([DataEntry((r + "_spent"), o), DataEntry((r + "_cancel_amount"), F), DataEntry((r + "_cancel_tx"), toBase58String(f.transactionId))]), F, f.caller) | |
97 | 97 | } | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | ||
101 | 101 | @Callable(f) | |
102 | 102 | func betMatch (G,H) = if ((getString(this, (G + "_event")) != getString(this, (H + "_event")))) | |
103 | 103 | then throw("event id must match") | |
104 | 104 | else if ((getString(this, (G + "_subevent")) != getString(this, (H + "_subevent")))) | |
105 | 105 | then throw("subevent id must match") | |
106 | 106 | else if ((getString(this, (G + "_side")) != "for")) | |
107 | 107 | then throw("invalid *for* bet") | |
108 | 108 | else if ((getString(this, (H + "_side")) != "against")) | |
109 | 109 | then throw("invalid *against* bet") | |
110 | 110 | else { | |
111 | 111 | let I = getStringValue(this, (G + "_owner")) | |
112 | 112 | let J = getStringValue(this, (H + "_owner")) | |
113 | 113 | let K = extract(getString(this, (G + "_event"))) | |
114 | 114 | let L = (((((((("match_" + K) + "_") + takeRight(I, 10)) + "_") + takeRight(J, 10)) + "_") + toBase58String(f.transactionId)) + "_") | |
115 | 115 | let y = extract(getInteger(this, (G + "_odds"))) | |
116 | 116 | let M = s(G) | |
117 | 117 | let N = s(H) | |
118 | 118 | let O = M | |
119 | 119 | let P = ((N * 100) / (y - 100)) | |
120 | 120 | let Q = if ((O > P)) | |
121 | 121 | then P | |
122 | 122 | else O | |
123 | 123 | if ((d > Q)) | |
124 | 124 | then throw("match nominal too low") | |
125 | 125 | else { | |
126 | 126 | let R = Q | |
127 | 127 | let S = ((Q * (y - 100)) / 100) | |
128 | 128 | let T = (R + extract(getInteger(this, (G + "_spent")))) | |
129 | 129 | let U = (S + extract(getInteger(this, (H + "_spent")))) | |
130 | 130 | if ((T > extract(getInteger(this, (G + "_amount"))))) | |
131 | 131 | then throw("invalid match") | |
132 | 132 | else if ((U > extract(getInteger(this, (H + "_amount"))))) | |
133 | 133 | then throw("invalid match") | |
134 | 134 | else m(f, WriteSet([DataEntry((L + "amount"), (R + S)), DataEntry((L + "for"), G), DataEntry((L + "against"), H), DataEntry((G + "_spent"), T), DataEntry((H + "_spent"), U)]), 0, unit) | |
135 | 135 | } | |
136 | 136 | } | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | ||
140 | 140 | @Callable(f) | |
141 | 141 | func approveDefeat (V,W) = if (if (isDefined(getInteger(this, (V + "_defeat")))) | |
142 | 142 | then (W == 2) | |
143 | 143 | else false) | |
144 | 144 | then throw("can't dispute after approve") | |
145 | 145 | else if ((getString(this, (V + "_owner")) != e(f, "autoapprove"))) | |
146 | 146 | then throw("must be owner or its delegate to approve") | |
147 | 147 | else m(f, WriteSet([DataEntry((V + "_defeat"), W)]), 0, unit) | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | ||
151 | 151 | @Callable(f) | |
152 | 152 | func payWinner (X) = if (isDefined(getInteger(this, (X + "_paid")))) | |
153 | 153 | then throw("already paid") | |
154 | 154 | else { | |
155 | 155 | let Y = extract(getString(this, (X + "_for"))) | |
156 | 156 | let Z = extract(getString(this, (X + "_against"))) | |
157 | 157 | let aa = t(Y) | |
158 | 158 | let ab = t(Z) | |
159 | 159 | if (if (!(aa)) | |
160 | 160 | then !(ab) | |
161 | 161 | else false) | |
162 | 162 | then throw("no side approved defeat") | |
163 | 163 | else { | |
164 | 164 | let ac = if (aa) | |
165 | 165 | then Z | |
166 | 166 | else Y | |
167 | 167 | let ad = getStringValue(this, (ac + "_owner")) | |
168 | 168 | let o = extract(getInteger(this, (X + "_amount"))) | |
169 | 169 | m(f, WriteSet([DataEntry((X + "_paid"), toBase58String(f.transactionId))]), o, addressFromString(ad)) | |
170 | 170 | } | |
171 | 171 | } | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | ||
175 | 175 | @Callable(f) | |
176 | 176 | func delegate (ae,af,ag) = m(f, WriteSet([DataEntry((("delegate_" + ae) + "_address"), toBase58String(f.caller.bytes)), DataEntry((("delegate_" + ae) + "_autoapprove"), af), DataEntry((("delegate_" + ae) + "_autocancel"), ag)]), 0, unit) | |
177 | 177 | ||
178 | 178 |
github/deemru/w8io/169f3d6 38.01 ms ◑