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