tx · 2WZBfb41jsPbbKdpJhgDyXTgeDg6ScsNUfhgxhBH7mi2 3MyLnBsVm9pw43K9eba5UExxb3efeai91KP: -0.01300000 Waves 2022.12.23 11:06 [2372666] smart account 3MyLnBsVm9pw43K9eba5UExxb3efeai91KP > SELF 0.00000000 Waves
{ "type": 13, "id": "2WZBfb41jsPbbKdpJhgDyXTgeDg6ScsNUfhgxhBH7mi2", "fee": 1300000, "feeAssetId": null, "timestamp": 1671782800296, "version": 2, "chainId": 84, "sender": "3MyLnBsVm9pw43K9eba5UExxb3efeai91KP", "senderPublicKey": "E5xdZLn3yHKAn29pTyubhr9R1mkRGg9WKAcpPrCYFYHx", "proofs": [ "2bd9iafQ6FKyLDx5zYExcJjm6EAkokFzqVAChZprZoR4ZFAL5J7kjX2CgQgtqVV8cq7A2MdLNy5XMKh7GS8kKihD" ], "script": "base64:AAIFAAAAAAAAACYIAhIDCgEEEgkKBwgICAEBCAESAwoBARIDCgEBEgMKAQESAwoBAQAAABgAAAAACGRBcHBOYW1lAgAAABtDUk9XREZVTkRJTkdfT05fV0FWRVNfU0hBUkUAAAAABmFkbVB1YgEAAAAgwm0nmAhWSDqW+K/S1mvC+NNow4ujn8UBfOoCFti2ZnMAAAAABGJhbmsJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVSmfND+3V/r5U39jSnmcibSNaQF0ZS9OSgAAAAADHBheW1lbnRBc3NldAEAAAAgITlE6Sl8X8+K+DOSOPUkvq8L9vq51QOPRS3GqFK/+rkAAAAACGNsYWltS2V5AgAAAAdfY2xhaW1fAAAAAAZuZnRLZXkCAAAABV9uZnRfAAAAAAtzaHV0RG93bktleQIAAAAKX3NodXREb3duXwAAAAAIZXZlbnRLZXkCAAAAB19ldmVudF8AAAAACnBheW1lbnRLZXkCAAAACV9wYXltZW50XwAAAAAQZ2xvYmFsRXZlbnRJZEtleQIAAAAJX2V2ZW50SWRfAAAAAA1zdGFydEJsb2NrS2V5AgAAAAxfc3RhcnRCbG9ja18AAAAA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sAAAAAgUAAAAJcmVmdW5kS2V5BQAAAApjdXJyZW50S2V5AgAAAAFfCQABpAAAAAEFAAAAB2V2ZW50SWQFAAAADXdhbGxldFBheW1lbnQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAA13YWxsZXRQYXltZW50BQAAAAxwYXltZW50QXNzZXQFAAAAA25pbAkAAAIAAAABAgAAACBjYW4gbm90IHJlZnVuZC4gY2FtcGFpZ24gc3VjY2VzcwAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5G9vPcw==", "height": 2372666, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GpHyuXyv86UWfJ2nLRbh26oJdt7CKwwP7Cq1jNLuzM8i Next: FQM6ga19EjDLZ6JUHPTMuctR9BC4mGzi41ASNDByawHS Diff:
Old | New | Differences | |
---|---|---|---|
13 | 13 | ||
14 | 14 | let f = "_nft_" | |
15 | 15 | ||
16 | - | let g = "_ | |
16 | + | let g = "_shutDown_" | |
17 | 17 | ||
18 | - | let h = "_ | |
18 | + | let h = "_event_" | |
19 | 19 | ||
20 | - | let i = "_ | |
20 | + | let i = "_payment_" | |
21 | 21 | ||
22 | - | let j = "_ | |
22 | + | let j = "_eventId_" | |
23 | 23 | ||
24 | - | let k = "_ | |
24 | + | let k = "_startBlock_" | |
25 | 25 | ||
26 | - | let l = "_ | |
26 | + | let l = "_endBlock_" | |
27 | 27 | ||
28 | - | let m = "_ | |
28 | + | let m = "_image_" | |
29 | 29 | ||
30 | - | let n = "_ | |
30 | + | let n = "_owner_" | |
31 | 31 | ||
32 | - | let o = "_ | |
32 | + | let o = "_url_" | |
33 | 33 | ||
34 | - | let p = "_ | |
34 | + | let p = "_hardCap_" | |
35 | 35 | ||
36 | - | let q = "_ | |
36 | + | let q = "_title_" | |
37 | 37 | ||
38 | - | let r = "_ | |
38 | + | let r = "_shareHolderCount_" | |
39 | 39 | ||
40 | - | let s = "_ | |
40 | + | let s = "_totalPayment_" | |
41 | 41 | ||
42 | - | let t = "_ | |
42 | + | let t = "_walletPayment_" | |
43 | 43 | ||
44 | - | let u = "_ | |
44 | + | let u = "_refund_" | |
45 | 45 | ||
46 | - | let v = | |
46 | + | let v = 500000000 | |
47 | 47 | ||
48 | - | let w = | |
48 | + | let w = 100000000 | |
49 | 49 | ||
50 | - | let x = 100000000 | |
51 | - | ||
52 | - | func y (z) = { | |
53 | - | let A = d | |
54 | - | if ((size(z.payments) == 0)) | |
50 | + | func x (y) = { | |
51 | + | let z = d | |
52 | + | if ((size(y.payments) == 0)) | |
55 | 53 | then throw("Payment not attached") | |
56 | 54 | else { | |
57 | - | let | |
58 | - | let | |
59 | - | if ($isInstanceOf( | |
55 | + | let A = y.payments[0] | |
56 | + | let B = A.assetId | |
57 | + | if ($isInstanceOf(B, "ByteVector")) | |
60 | 58 | then { | |
61 | - | let | |
62 | - | if (( | |
63 | - | then ( | |
59 | + | let C = B | |
60 | + | if ((C == z)) | |
61 | + | then (A.amount > 0) | |
64 | 62 | else false | |
65 | 63 | } | |
66 | 64 | else throw("Wrong payment asset") | |
68 | 66 | } | |
69 | 67 | ||
70 | 68 | ||
71 | - | @Callable( | |
72 | - | func shutdown ( | |
73 | - | then [BooleanEntry( | |
69 | + | @Callable(y) | |
70 | + | func shutdown (D) = if ((y.callerPublicKey == b)) | |
71 | + | then [BooleanEntry(g, D)] | |
74 | 72 | else throw("you are not allow to do this!") | |
75 | 73 | ||
76 | 74 | ||
77 | 75 | ||
78 | - | @Callable( | |
79 | - | func create (F,G,H,I,J,K | |
80 | - | let | |
81 | - | let | |
82 | - | if (( | |
83 | - | then [StringEntry((( | |
76 | + | @Callable(y) | |
77 | + | func create (E,F,G,H,I,J,K) = { | |
78 | + | let L = valueOrElse(getInteger(this, (h + j)), 0) | |
79 | + | let M = (L + 1) | |
80 | + | if ((y.callerPublicKey == b)) | |
81 | + | then [StringEntry(((h + m) + toString(M)), F), StringEntry(((h + n) + toString(M)), G), StringEntry(((h + q) + toString(M)), E), IntegerEntry(((h + k) + toString(M)), H), IntegerEntry(((h + l) + toString(M)), I), StringEntry(((h + o) + toString(M)), J), IntegerEntry(((h + p) + toString(M)), K), IntegerEntry((h + j), M)] | |
84 | 82 | else throw("you are not allowed") | |
85 | 83 | } | |
86 | 84 | ||
87 | 85 | ||
88 | 86 | ||
89 | - | @Callable( | |
90 | - | func funding ( | |
91 | - | let | |
92 | - | let | |
93 | - | let | |
94 | - | let | |
95 | - | let | |
96 | - | let | |
97 | - | let | |
98 | - | if (( | |
87 | + | @Callable(y) | |
88 | + | func funding (L) = { | |
89 | + | let H = valueOrErrorMessage(getInteger(this, ((h + k) + toString(L))), "can not find event 1") | |
90 | + | let I = valueOrErrorMessage(getInteger(this, ((h + l) + toString(L))), "can not find event 2") | |
91 | + | let K = valueOrErrorMessage(getInteger(this, ((h + p) + toString(L))), "can not find event 3") | |
92 | + | let N = toBase58String(y.caller.bytes) | |
93 | + | let O = valueOrElse(getInteger(this, ((i + s) + toString(L))), 0) | |
94 | + | let P = valueOrElse(getInteger(this, (((i + t) + N) + toString(L))), 0) | |
95 | + | let Q = valueOrElse(getInteger(this, ((i + r) + toString(L))), 0) | |
96 | + | if ((H > height)) | |
99 | 97 | then throw("crowdfunding not started") | |
100 | - | else if ((height >= | |
98 | + | else if ((height >= I)) | |
101 | 99 | then throw("crowdfunding is over") | |
102 | - | else if (( | |
100 | + | else if ((O >= K)) | |
103 | 101 | then throw("crowdfunding is reached to hard cap. thank you for participating!") | |
104 | - | else if (!(y | |
102 | + | else if (!(x(y))) | |
105 | 103 | then throw("you have to attach payment greater than zero") | |
106 | 104 | else { | |
107 | - | let | |
108 | - | if (!( | |
105 | + | let R = valueOrElse(getBoolean(this, g), true) | |
106 | + | if (!(R)) | |
109 | 107 | then throw("emergency shutdown") | |
110 | 108 | else { | |
111 | - | let | |
112 | - | let | |
113 | - | let | |
114 | - | let | |
115 | - | [IntegerEntry((( | |
109 | + | let A = y.payments[0] | |
110 | + | let S = A.amount | |
111 | + | let T = fraction(S, v, w) | |
112 | + | let U = (S - T) | |
113 | + | [IntegerEntry(((i + r) + toString(L)), (Q + 1)), IntegerEntry(((i + s) + toString(L)), (O + U)), IntegerEntry(((((i + t) + N) + "_") + toString(L)), (P + U)), ScriptTransfer(c, T, d)] | |
116 | 114 | } | |
117 | 115 | } | |
118 | 116 | } | |
119 | 117 | ||
120 | 118 | ||
121 | 119 | ||
122 | - | @Callable( | |
123 | - | func claim ( | |
124 | - | let | |
125 | - | let | |
126 | - | let | |
127 | - | let | |
128 | - | let | |
129 | - | let | |
130 | - | let | |
131 | - | if ((toBytes( | |
120 | + | @Callable(y) | |
121 | + | func claim (L) = { | |
122 | + | let G = valueOrErrorMessage(getString(this, ((h + n) + toString(L))), "can not find the owner") | |
123 | + | let N = toBase58String(y.caller.bytes) | |
124 | + | let H = valueOrErrorMessage(getInteger(this, ((h + k) + toString(L))), "can not find event 1") | |
125 | + | let I = valueOrErrorMessage(getInteger(this, ((h + l) + toString(L))), "can not find event 2") | |
126 | + | let K = valueOrErrorMessage(getInteger(this, ((h + p) + toString(L))), "can not find event 3") | |
127 | + | let O = valueOrElse(getInteger(this, ((i + s) + toString(L))), 0) | |
128 | + | let R = valueOrElse(getBoolean(this, g), true) | |
129 | + | if ((toBytes(G) == y.caller.bytes)) | |
132 | 130 | then throw("you are not able to claim") | |
133 | - | else if (if (if ((height > | |
134 | - | then ( | |
131 | + | else if (if (if ((height > I)) | |
132 | + | then (O >= K) | |
135 | 133 | else false) | |
136 | - | then | |
134 | + | then R | |
137 | 135 | else false) | |
138 | - | then [ScriptTransfer( | |
136 | + | then [ScriptTransfer(y.caller, O, d), IntegerEntry((((e + N) + "_") + toString(L)), O)] | |
139 | 137 | else throw("not allowed") | |
140 | 138 | } | |
141 | 139 | ||
142 | 140 | ||
143 | 141 | ||
144 | - | @Callable( | |
145 | - | func claimShare ( | |
146 | - | let | |
147 | - | let | |
148 | - | let | |
149 | - | let | |
150 | - | let | |
151 | - | let | |
152 | - | let | |
153 | - | let | |
154 | - | let | |
155 | - | let | |
156 | - | let | |
157 | - | if (if (if (if ((height > | |
158 | - | then ( | |
142 | + | @Callable(y) | |
143 | + | func claimShare (L) = { | |
144 | + | let N = toBase58String(y.caller.bytes) | |
145 | + | let H = valueOrErrorMessage(getInteger(this, ((h + k) + toString(L))), "can not find event 1") | |
146 | + | let I = valueOrErrorMessage(getInteger(this, ((h + l) + toString(L))), "can not find event 2") | |
147 | + | let K = valueOrErrorMessage(getInteger(this, ((h + p) + toString(L))), "can not find event 3") | |
148 | + | let O = valueOrElse(getInteger(this, ((i + s) + toString(L))), 0) | |
149 | + | let P = valueOrElse(getInteger(this, (((i + t) + N) + toString(L))), 0) | |
150 | + | let T = fraction(P, w, O) | |
151 | + | let V = ((toString(T) + "_") + toString(L)) | |
152 | + | let W = Issue(((a + "_") + toString(L)), V, 1, 0, false) | |
153 | + | let X = calculateAssetId(W) | |
154 | + | let R = valueOrElse(getBoolean(this, g), true) | |
155 | + | if (if (if (if ((height > I)) | |
156 | + | then (K >= O) | |
159 | 157 | else false) | |
160 | - | then ( | |
158 | + | then (P > 0) | |
161 | 159 | else false) | |
162 | - | then | |
160 | + | then R | |
163 | 161 | else false) | |
164 | - | then [ | |
162 | + | then [W, StringEntry((f + toString(L)), toBase58String(X)), ScriptTransfer(y.caller, 1, X)] | |
165 | 163 | else throw("you are not able to claim NFT") | |
166 | 164 | } | |
167 | 165 | ||
168 | 166 | ||
169 | 167 | ||
170 | - | @Callable( | |
171 | - | func refund ( | |
172 | - | let | |
173 | - | let | |
174 | - | let | |
175 | - | let | |
176 | - | let | |
177 | - | let | |
178 | - | let | |
179 | - | if (if (if (if (( | |
180 | - | then ( | |
168 | + | @Callable(y) | |
169 | + | func refund (L) = { | |
170 | + | let N = toBase58String(y.caller.bytes) | |
171 | + | let H = valueOrErrorMessage(getInteger(this, ((h + k) + toString(L))), "can not find event 1") | |
172 | + | let I = valueOrErrorMessage(getInteger(this, ((h + l) + toString(L))), "can not find event 2") | |
173 | + | let K = valueOrErrorMessage(getInteger(this, ((h + p) + toString(L))), "can not find event 3") | |
174 | + | let O = valueOrElse(getInteger(this, ((i + s) + toString(L))), 0) | |
175 | + | let P = valueOrElse(getInteger(this, (((i + t) + N) + toString(L))), 0) | |
176 | + | let R = valueOrElse(getBoolean(this, g), true) | |
177 | + | if (if (if (if ((I > height)) | |
178 | + | then (O > K) | |
181 | 179 | else false) | |
182 | - | then ( | |
180 | + | then (P > 0) | |
183 | 181 | else false) | |
184 | - | then | |
182 | + | then R | |
185 | 183 | else false) | |
186 | - | then [IntegerEntry(((( | |
184 | + | then [IntegerEntry((((u + N) + "_") + toString(L)), P), ScriptTransfer(y.caller, P, d)] | |
187 | 185 | else throw("can not refund. campaign success") | |
188 | 186 | } | |
189 | 187 | ||
190 | 188 | ||
191 | - | @Verifier( | |
192 | - | func | |
189 | + | @Verifier(Y) | |
190 | + | func Z () = sigVerify(Y.bodyBytes, Y.proofs[0], Y.senderPublicKey) | |
193 | 191 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "CROWDFUNDING_ON_WAVES_SHARE" | |
5 | 5 | ||
6 | 6 | let b = base58'E5xdZLn3yHKAn29pTyubhr9R1mkRGg9WKAcpPrCYFYHx' | |
7 | 7 | ||
8 | 8 | let c = Address(base58'3N56PUABa6tqTXc4cv6QvntyMPb1KHnzC79') | |
9 | 9 | ||
10 | 10 | let d = base58'3Eh6z6z6ouFpWxGKrPaPnZwmDnDjgYHV6tqCmZf2G7tk' | |
11 | 11 | ||
12 | 12 | let e = "_claim_" | |
13 | 13 | ||
14 | 14 | let f = "_nft_" | |
15 | 15 | ||
16 | - | let g = "_ | |
16 | + | let g = "_shutDown_" | |
17 | 17 | ||
18 | - | let h = "_ | |
18 | + | let h = "_event_" | |
19 | 19 | ||
20 | - | let i = "_ | |
20 | + | let i = "_payment_" | |
21 | 21 | ||
22 | - | let j = "_ | |
22 | + | let j = "_eventId_" | |
23 | 23 | ||
24 | - | let k = "_ | |
24 | + | let k = "_startBlock_" | |
25 | 25 | ||
26 | - | let l = "_ | |
26 | + | let l = "_endBlock_" | |
27 | 27 | ||
28 | - | let m = "_ | |
28 | + | let m = "_image_" | |
29 | 29 | ||
30 | - | let n = "_ | |
30 | + | let n = "_owner_" | |
31 | 31 | ||
32 | - | let o = "_ | |
32 | + | let o = "_url_" | |
33 | 33 | ||
34 | - | let p = "_ | |
34 | + | let p = "_hardCap_" | |
35 | 35 | ||
36 | - | let q = "_ | |
36 | + | let q = "_title_" | |
37 | 37 | ||
38 | - | let r = "_ | |
38 | + | let r = "_shareHolderCount_" | |
39 | 39 | ||
40 | - | let s = "_ | |
40 | + | let s = "_totalPayment_" | |
41 | 41 | ||
42 | - | let t = "_ | |
42 | + | let t = "_walletPayment_" | |
43 | 43 | ||
44 | - | let u = "_ | |
44 | + | let u = "_refund_" | |
45 | 45 | ||
46 | - | let v = | |
46 | + | let v = 500000000 | |
47 | 47 | ||
48 | - | let w = | |
48 | + | let w = 100000000 | |
49 | 49 | ||
50 | - | let x = 100000000 | |
51 | - | ||
52 | - | func y (z) = { | |
53 | - | let A = d | |
54 | - | if ((size(z.payments) == 0)) | |
50 | + | func x (y) = { | |
51 | + | let z = d | |
52 | + | if ((size(y.payments) == 0)) | |
55 | 53 | then throw("Payment not attached") | |
56 | 54 | else { | |
57 | - | let | |
58 | - | let | |
59 | - | if ($isInstanceOf( | |
55 | + | let A = y.payments[0] | |
56 | + | let B = A.assetId | |
57 | + | if ($isInstanceOf(B, "ByteVector")) | |
60 | 58 | then { | |
61 | - | let | |
62 | - | if (( | |
63 | - | then ( | |
59 | + | let C = B | |
60 | + | if ((C == z)) | |
61 | + | then (A.amount > 0) | |
64 | 62 | else false | |
65 | 63 | } | |
66 | 64 | else throw("Wrong payment asset") | |
67 | 65 | } | |
68 | 66 | } | |
69 | 67 | ||
70 | 68 | ||
71 | - | @Callable( | |
72 | - | func shutdown ( | |
73 | - | then [BooleanEntry( | |
69 | + | @Callable(y) | |
70 | + | func shutdown (D) = if ((y.callerPublicKey == b)) | |
71 | + | then [BooleanEntry(g, D)] | |
74 | 72 | else throw("you are not allow to do this!") | |
75 | 73 | ||
76 | 74 | ||
77 | 75 | ||
78 | - | @Callable( | |
79 | - | func create (F,G,H,I,J,K | |
80 | - | let | |
81 | - | let | |
82 | - | if (( | |
83 | - | then [StringEntry((( | |
76 | + | @Callable(y) | |
77 | + | func create (E,F,G,H,I,J,K) = { | |
78 | + | let L = valueOrElse(getInteger(this, (h + j)), 0) | |
79 | + | let M = (L + 1) | |
80 | + | if ((y.callerPublicKey == b)) | |
81 | + | then [StringEntry(((h + m) + toString(M)), F), StringEntry(((h + n) + toString(M)), G), StringEntry(((h + q) + toString(M)), E), IntegerEntry(((h + k) + toString(M)), H), IntegerEntry(((h + l) + toString(M)), I), StringEntry(((h + o) + toString(M)), J), IntegerEntry(((h + p) + toString(M)), K), IntegerEntry((h + j), M)] | |
84 | 82 | else throw("you are not allowed") | |
85 | 83 | } | |
86 | 84 | ||
87 | 85 | ||
88 | 86 | ||
89 | - | @Callable( | |
90 | - | func funding ( | |
91 | - | let | |
92 | - | let | |
93 | - | let | |
94 | - | let | |
95 | - | let | |
96 | - | let | |
97 | - | let | |
98 | - | if (( | |
87 | + | @Callable(y) | |
88 | + | func funding (L) = { | |
89 | + | let H = valueOrErrorMessage(getInteger(this, ((h + k) + toString(L))), "can not find event 1") | |
90 | + | let I = valueOrErrorMessage(getInteger(this, ((h + l) + toString(L))), "can not find event 2") | |
91 | + | let K = valueOrErrorMessage(getInteger(this, ((h + p) + toString(L))), "can not find event 3") | |
92 | + | let N = toBase58String(y.caller.bytes) | |
93 | + | let O = valueOrElse(getInteger(this, ((i + s) + toString(L))), 0) | |
94 | + | let P = valueOrElse(getInteger(this, (((i + t) + N) + toString(L))), 0) | |
95 | + | let Q = valueOrElse(getInteger(this, ((i + r) + toString(L))), 0) | |
96 | + | if ((H > height)) | |
99 | 97 | then throw("crowdfunding not started") | |
100 | - | else if ((height >= | |
98 | + | else if ((height >= I)) | |
101 | 99 | then throw("crowdfunding is over") | |
102 | - | else if (( | |
100 | + | else if ((O >= K)) | |
103 | 101 | then throw("crowdfunding is reached to hard cap. thank you for participating!") | |
104 | - | else if (!(y | |
102 | + | else if (!(x(y))) | |
105 | 103 | then throw("you have to attach payment greater than zero") | |
106 | 104 | else { | |
107 | - | let | |
108 | - | if (!( | |
105 | + | let R = valueOrElse(getBoolean(this, g), true) | |
106 | + | if (!(R)) | |
109 | 107 | then throw("emergency shutdown") | |
110 | 108 | else { | |
111 | - | let | |
112 | - | let | |
113 | - | let | |
114 | - | let | |
115 | - | [IntegerEntry((( | |
109 | + | let A = y.payments[0] | |
110 | + | let S = A.amount | |
111 | + | let T = fraction(S, v, w) | |
112 | + | let U = (S - T) | |
113 | + | [IntegerEntry(((i + r) + toString(L)), (Q + 1)), IntegerEntry(((i + s) + toString(L)), (O + U)), IntegerEntry(((((i + t) + N) + "_") + toString(L)), (P + U)), ScriptTransfer(c, T, d)] | |
116 | 114 | } | |
117 | 115 | } | |
118 | 116 | } | |
119 | 117 | ||
120 | 118 | ||
121 | 119 | ||
122 | - | @Callable( | |
123 | - | func claim ( | |
124 | - | let | |
125 | - | let | |
126 | - | let | |
127 | - | let | |
128 | - | let | |
129 | - | let | |
130 | - | let | |
131 | - | if ((toBytes( | |
120 | + | @Callable(y) | |
121 | + | func claim (L) = { | |
122 | + | let G = valueOrErrorMessage(getString(this, ((h + n) + toString(L))), "can not find the owner") | |
123 | + | let N = toBase58String(y.caller.bytes) | |
124 | + | let H = valueOrErrorMessage(getInteger(this, ((h + k) + toString(L))), "can not find event 1") | |
125 | + | let I = valueOrErrorMessage(getInteger(this, ((h + l) + toString(L))), "can not find event 2") | |
126 | + | let K = valueOrErrorMessage(getInteger(this, ((h + p) + toString(L))), "can not find event 3") | |
127 | + | let O = valueOrElse(getInteger(this, ((i + s) + toString(L))), 0) | |
128 | + | let R = valueOrElse(getBoolean(this, g), true) | |
129 | + | if ((toBytes(G) == y.caller.bytes)) | |
132 | 130 | then throw("you are not able to claim") | |
133 | - | else if (if (if ((height > | |
134 | - | then ( | |
131 | + | else if (if (if ((height > I)) | |
132 | + | then (O >= K) | |
135 | 133 | else false) | |
136 | - | then | |
134 | + | then R | |
137 | 135 | else false) | |
138 | - | then [ScriptTransfer( | |
136 | + | then [ScriptTransfer(y.caller, O, d), IntegerEntry((((e + N) + "_") + toString(L)), O)] | |
139 | 137 | else throw("not allowed") | |
140 | 138 | } | |
141 | 139 | ||
142 | 140 | ||
143 | 141 | ||
144 | - | @Callable( | |
145 | - | func claimShare ( | |
146 | - | let | |
147 | - | let | |
148 | - | let | |
149 | - | let | |
150 | - | let | |
151 | - | let | |
152 | - | let | |
153 | - | let | |
154 | - | let | |
155 | - | let | |
156 | - | let | |
157 | - | if (if (if (if ((height > | |
158 | - | then ( | |
142 | + | @Callable(y) | |
143 | + | func claimShare (L) = { | |
144 | + | let N = toBase58String(y.caller.bytes) | |
145 | + | let H = valueOrErrorMessage(getInteger(this, ((h + k) + toString(L))), "can not find event 1") | |
146 | + | let I = valueOrErrorMessage(getInteger(this, ((h + l) + toString(L))), "can not find event 2") | |
147 | + | let K = valueOrErrorMessage(getInteger(this, ((h + p) + toString(L))), "can not find event 3") | |
148 | + | let O = valueOrElse(getInteger(this, ((i + s) + toString(L))), 0) | |
149 | + | let P = valueOrElse(getInteger(this, (((i + t) + N) + toString(L))), 0) | |
150 | + | let T = fraction(P, w, O) | |
151 | + | let V = ((toString(T) + "_") + toString(L)) | |
152 | + | let W = Issue(((a + "_") + toString(L)), V, 1, 0, false) | |
153 | + | let X = calculateAssetId(W) | |
154 | + | let R = valueOrElse(getBoolean(this, g), true) | |
155 | + | if (if (if (if ((height > I)) | |
156 | + | then (K >= O) | |
159 | 157 | else false) | |
160 | - | then ( | |
158 | + | then (P > 0) | |
161 | 159 | else false) | |
162 | - | then | |
160 | + | then R | |
163 | 161 | else false) | |
164 | - | then [ | |
162 | + | then [W, StringEntry((f + toString(L)), toBase58String(X)), ScriptTransfer(y.caller, 1, X)] | |
165 | 163 | else throw("you are not able to claim NFT") | |
166 | 164 | } | |
167 | 165 | ||
168 | 166 | ||
169 | 167 | ||
170 | - | @Callable( | |
171 | - | func refund ( | |
172 | - | let | |
173 | - | let | |
174 | - | let | |
175 | - | let | |
176 | - | let | |
177 | - | let | |
178 | - | let | |
179 | - | if (if (if (if (( | |
180 | - | then ( | |
168 | + | @Callable(y) | |
169 | + | func refund (L) = { | |
170 | + | let N = toBase58String(y.caller.bytes) | |
171 | + | let H = valueOrErrorMessage(getInteger(this, ((h + k) + toString(L))), "can not find event 1") | |
172 | + | let I = valueOrErrorMessage(getInteger(this, ((h + l) + toString(L))), "can not find event 2") | |
173 | + | let K = valueOrErrorMessage(getInteger(this, ((h + p) + toString(L))), "can not find event 3") | |
174 | + | let O = valueOrElse(getInteger(this, ((i + s) + toString(L))), 0) | |
175 | + | let P = valueOrElse(getInteger(this, (((i + t) + N) + toString(L))), 0) | |
176 | + | let R = valueOrElse(getBoolean(this, g), true) | |
177 | + | if (if (if (if ((I > height)) | |
178 | + | then (O > K) | |
181 | 179 | else false) | |
182 | - | then ( | |
180 | + | then (P > 0) | |
183 | 181 | else false) | |
184 | - | then | |
182 | + | then R | |
185 | 183 | else false) | |
186 | - | then [IntegerEntry(((( | |
184 | + | then [IntegerEntry((((u + N) + "_") + toString(L)), P), ScriptTransfer(y.caller, P, d)] | |
187 | 185 | else throw("can not refund. campaign success") | |
188 | 186 | } | |
189 | 187 | ||
190 | 188 | ||
191 | - | @Verifier( | |
192 | - | func | |
189 | + | @Verifier(Y) | |
190 | + | func Z () = sigVerify(Y.bodyBytes, Y.proofs[0], Y.senderPublicKey) | |
193 | 191 |
github/deemru/w8io/026f985 90.43 ms ◑