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