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