tx · Cw6L1j5WJeA45U1wuzBJ8cUbyAvXEm3c8YBHFntTu7YU 3N5wJ2ZhRVwoT7WLuTpTJ3CXrgQu2NUgUPG: -0.01500000 Waves 2022.12.27 11:10 [2378422] smart account 3N5wJ2ZhRVwoT7WLuTpTJ3CXrgQu2NUgUPG > SELF 0.00000000 Waves
{ "type": 13, "id": "Cw6L1j5WJeA45U1wuzBJ8cUbyAvXEm3c8YBHFntTu7YU", "fee": 1500000, "feeAssetId": null, "timestamp": 1672128651075, "version": 2, "chainId": 84, "sender": "3N5wJ2ZhRVwoT7WLuTpTJ3CXrgQu2NUgUPG", "senderPublicKey": "9oVPUzQkCTgQDc9YhdhZaVS1w5go2NMUN8rd1sfk11F", "proofs": [ "3Lpwy1Hb1t6Uw2vzqYYtR3qAAa4jgeoGo162oiiGamar3Y7z2Arht5FiCvVi5MQV4w2MTj4gdVxgt5JNQrrWV2Hq" ], "script": "base64:AAIFAAAAAAAAACYIAhIDCgEEEgkKBwgICAEBCAESAwoBARIDCgEBEgMKAQESAwoBAQAAABgAAAAACGRBcHBOYW1lAgAAABtDUk9XREZVTkRJTkdfT05fV0FWRVNfU0hBUkUAAAAABmFkbVB1YgEAAAAgAkE2VigpXwyPVsqLqs85Wa4JuFZ+lt64yRSqXslbm2YAAAAABGJhbmsJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVSmfND+3V/r5U39jSnmcibSNaQF0ZS9OSgAAAAADHBheW1lbnRBc3NldAEAAAAgITlE6Sl8X8+K+DOSOPUkvq8L9vq51QOPRS3GqFK/+rkAAAAACGNsYWltS2V5AgAAAAdfY2xhaW1fAAAAAAZuZnRLZXkCAAAABV9uZnRfAAAAAAtzaHV0RG93bktleQIAAAAKX3NodXREb3duXwAAAAAIZXZlbnRLZXkCAAAAB19ldmVudF8AAAAACnBheW1lbnRLZXkCAAAACV9wYXltZW50XwAAAAAQZ2xvYmFsRXZlbnRJZEtleQIAAAAJX2V2ZW50SWRfAAAAAA1zdGFydEJsb2NrS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heW1lbnQAAAAAAAAAAAAHBQAAAAhzaHV0RG93bgcJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAACXJlZnVuZEtleQUAAAAKY3VycmVudEtleQIAAAABXwkAAaQAAAABBQAAAAdldmVudElkBQAAAA13YWxsZXRQYXltZW50CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAANd2FsbGV0UGF5bWVudAUAAAAMcGF5bWVudEFzc2V0BQAAAANuaWwJAAACAAAAAQIAAAAgY2FuIG5vdCByZWZ1bmQuIGNhbXBhaWduIHN1Y2Nlc3MAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleZcG4CM=", "height": 2378422, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Dcsk4npDNqmCXwcbKaS2NqhUeFcozQkNJcaDTA3ZAzDq Next: 4vTUz3755YWtariTa7D52MLvsFjNo2L4T6SgZ5YyCisV Diff:
Old | New | Differences | |
---|---|---|---|
143 | 143 | let J = valueOrErrorMessage(getInteger(this, ((h + l) + toString(M))), "can not find event 2") | |
144 | 144 | let L = valueOrErrorMessage(getInteger(this, ((h + p) + toString(M))), "can not find event 3") | |
145 | 145 | let P = valueOrElse(getInteger(this, ((i + s) + toString(M))), 0) | |
146 | - | let Q = valueOrElse(getInteger(this, (((( | |
146 | + | let Q = valueOrElse(getInteger(this, ((((i + t) + O) + "_") + toString(M))), 0) | |
147 | 147 | let U = fraction(Q, w, P) | |
148 | 148 | let V = ((toString(U) + "_") + toString(M)) | |
149 | 149 | let W = Issue(((a + "_") + toString(M)), V, 1, 0, false) |
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'9oVPUzQkCTgQDc9YhdhZaVS1w5go2NMUN8rd1sfk11F' | |
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) = { | |
51 | 51 | let z = d | |
52 | 52 | if ((size(y.payments) == 0)) | |
53 | 53 | then throw("Payment not attached") | |
54 | 54 | else { | |
55 | 55 | let A = y.payments[0] | |
56 | 56 | let B = assetBalance(y.caller, z) | |
57 | 57 | let C = A.assetId | |
58 | 58 | if ($isInstanceOf(C, "ByteVector")) | |
59 | 59 | then { | |
60 | 60 | let D = C | |
61 | 61 | if ((D == z)) | |
62 | 62 | then (A.amount > 0) | |
63 | 63 | else false | |
64 | 64 | } | |
65 | 65 | else throw("Wrong payment") | |
66 | 66 | } | |
67 | 67 | } | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | @Callable(y) | |
71 | 71 | func shutdown (E) = if ((y.callerPublicKey == b)) | |
72 | 72 | then [BooleanEntry(g, E)] | |
73 | 73 | else throw("you are not allow to do this!") | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | ||
77 | 77 | @Callable(y) | |
78 | 78 | func create (F,G,H,I,J,K,L) = { | |
79 | 79 | let M = valueOrElse(getInteger(this, (h + j)), 0) | |
80 | 80 | let N = (M + 1) | |
81 | 81 | if ((y.callerPublicKey == b)) | |
82 | 82 | 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)] | |
83 | 83 | else throw("you are not allowed") | |
84 | 84 | } | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | ||
88 | 88 | @Callable(y) | |
89 | 89 | func funding (M) = { | |
90 | 90 | let I = valueOrErrorMessage(getInteger(this, ((h + k) + toString(M))), "can not find event 1") | |
91 | 91 | let J = valueOrErrorMessage(getInteger(this, ((h + l) + toString(M))), "can not find event 2") | |
92 | 92 | let L = valueOrErrorMessage(getInteger(this, ((h + p) + toString(M))), "can not find event 3") | |
93 | 93 | let O = toBase58String(y.caller.bytes) | |
94 | 94 | let P = valueOrElse(getInteger(this, ((i + s) + toString(M))), 0) | |
95 | 95 | let Q = valueOrElse(getInteger(this, (((i + t) + O) + toString(M))), 0) | |
96 | 96 | let R = valueOrElse(getInteger(this, ((i + r) + toString(M))), 0) | |
97 | 97 | let A = y.payments[0] | |
98 | 98 | let S = A.amount | |
99 | 99 | if ((I > height)) | |
100 | 100 | then throw("crowdfunding not started") | |
101 | 101 | else if ((height >= J)) | |
102 | 102 | then throw("crowdfunding is over") | |
103 | 103 | else if (((P + S) > L)) | |
104 | 104 | then throw("crowdfunding is reached to hard cap. thank you for participating!") | |
105 | 105 | else if (x(y)) | |
106 | 106 | then { | |
107 | 107 | let T = valueOrElse(getBoolean(this, g), true) | |
108 | 108 | if (!(T)) | |
109 | 109 | then throw("emergency shutdown") | |
110 | 110 | else [IntegerEntry(((i + r) + toString(M)), (R + 1)), IntegerEntry(((i + s) + toString(M)), (P + S)), IntegerEntry(((((i + t) + O) + "_") + toString(M)), (Q + S))] | |
111 | 111 | } | |
112 | 112 | else throw("attach payment correctly") | |
113 | 113 | } | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | ||
117 | 117 | @Callable(y) | |
118 | 118 | func claim (M) = { | |
119 | 119 | let H = valueOrErrorMessage(getString(this, ((h + n) + toString(M))), "can not find the owner") | |
120 | 120 | let O = toBase58String(y.caller.bytes) | |
121 | 121 | let I = valueOrErrorMessage(getInteger(this, ((h + k) + toString(M))), "can not find event 1") | |
122 | 122 | let J = valueOrErrorMessage(getInteger(this, ((h + l) + toString(M))), "can not find event 2") | |
123 | 123 | let L = valueOrErrorMessage(getInteger(this, ((h + p) + toString(M))), "can not find event 3") | |
124 | 124 | let P = valueOrElse(getInteger(this, ((i + s) + toString(M))), 0) | |
125 | 125 | let T = valueOrElse(getBoolean(this, g), true) | |
126 | 126 | if ((toBytes(H) == y.caller.bytes)) | |
127 | 127 | then throw("you are not able to claim") | |
128 | 128 | else if (if (if ((height > J)) | |
129 | 129 | then (P >= L) | |
130 | 130 | else false) | |
131 | 131 | then T | |
132 | 132 | else false) | |
133 | 133 | then [ScriptTransfer(y.caller, P, d), IntegerEntry((((e + O) + "_") + toString(M)), P)] | |
134 | 134 | else throw("not allowed") | |
135 | 135 | } | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | ||
139 | 139 | @Callable(y) | |
140 | 140 | func claimShare (M) = { | |
141 | 141 | let O = toBase58String(y.caller.bytes) | |
142 | 142 | let I = valueOrErrorMessage(getInteger(this, ((h + k) + toString(M))), "can not find event 1") | |
143 | 143 | let J = valueOrErrorMessage(getInteger(this, ((h + l) + toString(M))), "can not find event 2") | |
144 | 144 | let L = valueOrErrorMessage(getInteger(this, ((h + p) + toString(M))), "can not find event 3") | |
145 | 145 | let P = valueOrElse(getInteger(this, ((i + s) + toString(M))), 0) | |
146 | - | let Q = valueOrElse(getInteger(this, (((( | |
146 | + | let Q = valueOrElse(getInteger(this, ((((i + t) + O) + "_") + toString(M))), 0) | |
147 | 147 | let U = fraction(Q, w, P) | |
148 | 148 | let V = ((toString(U) + "_") + toString(M)) | |
149 | 149 | let W = Issue(((a + "_") + toString(M)), V, 1, 0, false) | |
150 | 150 | let X = calculateAssetId(W) | |
151 | 151 | let T = valueOrElse(getBoolean(this, g), true) | |
152 | 152 | if (if (if (if ((height > J)) | |
153 | 153 | then (L >= P) | |
154 | 154 | else false) | |
155 | 155 | then (Q > 0) | |
156 | 156 | else false) | |
157 | 157 | then T | |
158 | 158 | else false) | |
159 | 159 | then [W, StringEntry((f + toString(M)), toBase58String(X)), BooleanEntry((((f + toString(M)) + "_") + O), true), BooleanEntry(toBase58String(X), true), ScriptTransfer(y.caller, 1, X)] | |
160 | 160 | else throw("you are not able to claim NFT") | |
161 | 161 | } | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | ||
165 | 165 | @Callable(y) | |
166 | 166 | func refund (M) = { | |
167 | 167 | let O = toBase58String(y.caller.bytes) | |
168 | 168 | let I = valueOrErrorMessage(getInteger(this, ((h + k) + toString(M))), "can not find event 1") | |
169 | 169 | let J = valueOrErrorMessage(getInteger(this, ((h + l) + toString(M))), "can not find event 2") | |
170 | 170 | let L = valueOrErrorMessage(getInteger(this, ((h + p) + toString(M))), "can not find event 3") | |
171 | 171 | let P = valueOrElse(getInteger(this, ((i + s) + toString(M))), 0) | |
172 | 172 | let Q = valueOrElse(getInteger(this, (((i + t) + O) + toString(M))), 0) | |
173 | 173 | let T = valueOrElse(getBoolean(this, g), true) | |
174 | 174 | if (if (if (if ((J > height)) | |
175 | 175 | then (P > L) | |
176 | 176 | else false) | |
177 | 177 | then (Q > 0) | |
178 | 178 | else false) | |
179 | 179 | then T | |
180 | 180 | else false) | |
181 | 181 | then [IntegerEntry((((u + O) + "_") + toString(M)), Q), ScriptTransfer(y.caller, Q, d)] | |
182 | 182 | else throw("can not refund. campaign success") | |
183 | 183 | } | |
184 | 184 | ||
185 | 185 | ||
186 | 186 | @Verifier(Y) | |
187 | 187 | func Z () = sigVerify(Y.bodyBytes, Y.proofs[0], Y.senderPublicKey) | |
188 | 188 |
github/deemru/w8io/026f985 43.44 ms ◑