tx · 8JVpb6bdBY4B2k1gEzFR2UhNDd93X5tM7zMUTXyfnti6 3N5wJ2ZhRVwoT7WLuTpTJ3CXrgQu2NUgUPG: -0.01500000 Waves 2023.01.05 14:52 [2391623] smart account 3N5wJ2ZhRVwoT7WLuTpTJ3CXrgQu2NUgUPG > SELF 0.00000000 Waves
{ "type": 13, "id": "8JVpb6bdBY4B2k1gEzFR2UhNDd93X5tM7zMUTXyfnti6", "fee": 1500000, "feeAssetId": null, "timestamp": 1672919603349, "version": 2, "chainId": 84, "sender": "3N5wJ2ZhRVwoT7WLuTpTJ3CXrgQu2NUgUPG", "senderPublicKey": "9oVPUzQkCTgQDc9YhdhZaVS1w5go2NMUN8rd1sfk11F", "proofs": [ "5mD3yMwcAtJhxZofwM7dXRSqHfMK3zeFbyuJfCXBi1bii6zB8WSrS7cgUkR3hf54qMPQtYBSNi2TmDdnmuhM9Q8z" ], "script": "base64:AAIFAAAAAAAAACsIAhIDCgEEEgkKBwgICAEBCAESAwoBARIDCgEBEgMKAQESAwoBARIDCgEIAAAAGQAAAAAIZEFwcE5hbWUCAAAAC0Nyb3dkeUZ1bmR5AAAAAAZhZG1QdWIBAAAAIAJBNlYoKV8Mj1bKi6rPOVmuCbhWfpbeuMkUql7JW5tmAAAAAARiYW5rCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUpnzQ/t1f6+VN/Y0p5nIm0jWkBdGUvTkoAAAAAAxwYXltZW50QXNzZXQBAAAAICE5ROkpfF/Pivgzkjj1JL6vC/b6udUDj0UtxqhSv/q5AAAAAAhjbGFpbUtleQIAAAAHX2NsYWltXwAAAAAGbmZ0S2V5AgAAAAVfbmZ0XwAAAAALc2h1dERvd25LZXkCAAAACl9zaHV0RG93bl8AAAAACGV2ZW50S2V5AgAAAAdfZXZlbnRfAAAAAApwYXltZW50S2V5AgAAAAlfcGF5bWVudF8AAAAAEGdsb2JhbEV2ZW50SWRLZXkCAAAACV9ldmVudElkXwAAAAANc3RhcnRCbG9ja0tleQI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jYWxsZXJQdWJsaWNLZXkFAAAABmFkbVB1YgkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAANrZXkFAAAAA25pbAkAAAIAAAABAgAAAAt5b3UgY2FuIG5vdAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5xb/Svg==", "height": 2391623, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AwKyAXwRALWAzbEC8Kpox5kWXsQo7cq4cdBzYTubLSin Next: AvdG4HNhBVWBGHEUo6cr24xitnYofX5ZZCQeqXYnTCPb Diff:
Old | New | Differences | |
---|---|---|---|
175 | 175 | let totalPayment = valueOrElse(getInteger(this, ((paymentKey + totalPaymentKey) + toString(eventId))), 0) | |
176 | 176 | let walletPayment = valueOrElse(getInteger(this, (((paymentKey + walletPaymentKey) + currentKey) + toString(eventId))), 0) | |
177 | 177 | let shutDown = valueOrElse(getBoolean(this, shutDownKey), true) | |
178 | - | let isRefunded = valueOrElse(getBoolean(this, (((isRefundedKey + currentKey) + "_") + toString(eventId))), | |
178 | + | let isRefunded = valueOrElse(getBoolean(this, (((isRefundedKey + currentKey) + "_") + toString(eventId))), false) | |
179 | 179 | if (if (if (if (if ((endBlock > height)) | |
180 | 180 | then (totalPayment > hardCap) | |
181 | 181 | else false) | |
183 | 183 | else false) | |
184 | 184 | then shutDown | |
185 | 185 | else false) | |
186 | - | then | |
186 | + | then isRefunded | |
187 | 187 | else false) | |
188 | 188 | then [IntegerEntry((((refundKey + currentKey) + "_") + toString(eventId)), walletPayment), BooleanEntry((((isRefundedKey + currentKey) + "_") + toString(eventId)), true), ScriptTransfer(i.caller, walletPayment, paymentAsset)] | |
189 | 189 | else throw("can not refund.") |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let dAppName = "CrowdyFundy" | |
5 | 5 | ||
6 | 6 | let admPub = base58'9oVPUzQkCTgQDc9YhdhZaVS1w5go2NMUN8rd1sfk11F' | |
7 | 7 | ||
8 | 8 | let bank = Address(base58'3N56PUABa6tqTXc4cv6QvntyMPb1KHnzC79') | |
9 | 9 | ||
10 | 10 | let paymentAsset = base58'3Eh6z6z6ouFpWxGKrPaPnZwmDnDjgYHV6tqCmZf2G7tk' | |
11 | 11 | ||
12 | 12 | let claimKey = "_claim_" | |
13 | 13 | ||
14 | 14 | let nftKey = "_nft_" | |
15 | 15 | ||
16 | 16 | let shutDownKey = "_shutDown_" | |
17 | 17 | ||
18 | 18 | let eventKey = "_event_" | |
19 | 19 | ||
20 | 20 | let paymentKey = "_payment_" | |
21 | 21 | ||
22 | 22 | let globalEventIdKey = "_eventId_" | |
23 | 23 | ||
24 | 24 | let startBlockKey = "_startBlock_" | |
25 | 25 | ||
26 | 26 | let endBlockKey = "_endBlock_" | |
27 | 27 | ||
28 | 28 | let imageKey = "_image_" | |
29 | 29 | ||
30 | 30 | let ownerKey = "_owner_" | |
31 | 31 | ||
32 | 32 | let urlKey = "_url_" | |
33 | 33 | ||
34 | 34 | let hardCapKey = "_hardCap_" | |
35 | 35 | ||
36 | 36 | let titleKey = "_title_" | |
37 | 37 | ||
38 | 38 | let shareHolderCountKey = "_shareHolderCount_" | |
39 | 39 | ||
40 | 40 | let totalPaymentKey = "_totalPayment_" | |
41 | 41 | ||
42 | 42 | let walletPaymentKey = "_walletPayment_" | |
43 | 43 | ||
44 | 44 | let refundKey = "_refund_" | |
45 | 45 | ||
46 | 46 | let isRefundedKey = "_isRefunded_" | |
47 | 47 | ||
48 | 48 | let commissionFee = 500000000 | |
49 | 49 | ||
50 | 50 | let scale8 = 10000000000 | |
51 | 51 | ||
52 | 52 | func isPaymentOk (i) = { | |
53 | 53 | let acceptableAssetId = paymentAsset | |
54 | 54 | if ((size(i.payments) == 0)) | |
55 | 55 | then throw("Payment not attached") | |
56 | 56 | else { | |
57 | 57 | let p = i.payments[0] | |
58 | 58 | let walletBalance = assetBalance(i.caller, acceptableAssetId) | |
59 | 59 | match p.assetId { | |
60 | 60 | case assetId: ByteVector => | |
61 | 61 | if ((assetId == acceptableAssetId)) | |
62 | 62 | then (p.amount > 0) | |
63 | 63 | else false | |
64 | 64 | case _ => | |
65 | 65 | throw("Wrong payment") | |
66 | 66 | } | |
67 | 67 | } | |
68 | 68 | } | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | @Callable(i) | |
72 | 72 | func shutdown (isOpen) = if ((i.callerPublicKey == admPub)) | |
73 | 73 | then [BooleanEntry(shutDownKey, isOpen)] | |
74 | 74 | else throw("you are not allow to do this!") | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | ||
78 | 78 | @Callable(i) | |
79 | 79 | func create (title,image,owner,startBlock,endBlock,url,hardCap) = { | |
80 | 80 | let eventId = valueOrElse(getInteger(this, (eventKey + globalEventIdKey)), 0) | |
81 | 81 | let increaseEventId = (eventId + 1) | |
82 | 82 | if ((i.callerPublicKey == admPub)) | |
83 | 83 | then [StringEntry(((eventKey + imageKey) + toString(increaseEventId)), image), StringEntry(((eventKey + ownerKey) + toString(increaseEventId)), owner), StringEntry(((eventKey + titleKey) + toString(increaseEventId)), title), IntegerEntry(((eventKey + startBlockKey) + toString(increaseEventId)), startBlock), IntegerEntry(((eventKey + endBlockKey) + toString(increaseEventId)), endBlock), StringEntry(((eventKey + urlKey) + toString(increaseEventId)), url), IntegerEntry(((eventKey + hardCapKey) + toString(increaseEventId)), hardCap), IntegerEntry((eventKey + globalEventIdKey), increaseEventId)] | |
84 | 84 | else throw("you are not allowed") | |
85 | 85 | } | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | ||
89 | 89 | @Callable(i) | |
90 | 90 | func funding (eventId) = { | |
91 | 91 | let startBlock = valueOrErrorMessage(getInteger(this, ((eventKey + startBlockKey) + toString(eventId))), "can not find event 1") | |
92 | 92 | let endBlock = valueOrErrorMessage(getInteger(this, ((eventKey + endBlockKey) + toString(eventId))), "can not find event 2") | |
93 | 93 | let hardCap = valueOrErrorMessage(getInteger(this, ((eventKey + hardCapKey) + toString(eventId))), "can not find event 3") | |
94 | 94 | let currentKey = toBase58String(i.caller.bytes) | |
95 | 95 | let totalPayment = valueOrElse(getInteger(this, ((paymentKey + totalPaymentKey) + toString(eventId))), 0) | |
96 | 96 | let walletPayment = valueOrElse(getInteger(this, (((paymentKey + walletPaymentKey) + currentKey) + toString(eventId))), 0) | |
97 | 97 | let shareHolderCount = valueOrElse(getInteger(this, ((paymentKey + shareHolderCountKey) + toString(eventId))), 0) | |
98 | 98 | let p = i.payments[0] | |
99 | 99 | let paymentAmount = p.amount | |
100 | 100 | if ((startBlock > height)) | |
101 | 101 | then throw("crowdfunding not started") | |
102 | 102 | else if ((height >= endBlock)) | |
103 | 103 | then throw("crowdfunding is over") | |
104 | 104 | else if (((totalPayment + paymentAmount) > hardCap)) | |
105 | 105 | then throw("crowdfunding is reached to hard cap. thank you for participating!") | |
106 | 106 | else if (isPaymentOk(i)) | |
107 | 107 | then { | |
108 | 108 | let shutDown = valueOrElse(getBoolean(this, shutDownKey), true) | |
109 | 109 | if (!(shutDown)) | |
110 | 110 | then throw("emergency shutdown") | |
111 | 111 | else [IntegerEntry(((paymentKey + shareHolderCountKey) + toString(eventId)), (shareHolderCount + 1)), IntegerEntry(((paymentKey + totalPaymentKey) + toString(eventId)), (totalPayment + paymentAmount)), IntegerEntry(((((paymentKey + walletPaymentKey) + currentKey) + "_") + toString(eventId)), (walletPayment + paymentAmount))] | |
112 | 112 | } | |
113 | 113 | else throw("attach payment correctly") | |
114 | 114 | } | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | ||
118 | 118 | @Callable(i) | |
119 | 119 | func claim (eventId) = { | |
120 | 120 | let owner = valueOrErrorMessage(getString(this, ((eventKey + ownerKey) + toString(eventId))), "can not find the owner") | |
121 | 121 | let currentKey = toBase58String(i.caller.bytes) | |
122 | 122 | let startBlock = valueOrErrorMessage(getInteger(this, ((eventKey + startBlockKey) + toString(eventId))), "can not find event 1") | |
123 | 123 | let endBlock = valueOrErrorMessage(getInteger(this, ((eventKey + endBlockKey) + toString(eventId))), "can not find event 2") | |
124 | 124 | let hardCap = valueOrErrorMessage(getInteger(this, ((eventKey + hardCapKey) + toString(eventId))), "can not find event 3") | |
125 | 125 | let totalPayment = valueOrElse(getInteger(this, ((paymentKey + totalPaymentKey) + toString(eventId))), 0) | |
126 | 126 | let shutDown = valueOrElse(getBoolean(this, shutDownKey), true) | |
127 | 127 | if ((toBytes(owner) == i.caller.bytes)) | |
128 | 128 | then throw("you are not able to claim") | |
129 | 129 | else if (if (if ((height > endBlock)) | |
130 | 130 | then (totalPayment >= hardCap) | |
131 | 131 | else false) | |
132 | 132 | then shutDown | |
133 | 133 | else false) | |
134 | 134 | then [ScriptTransfer(i.caller, totalPayment, paymentAsset), IntegerEntry((((claimKey + currentKey) + "_") + toString(eventId)), totalPayment)] | |
135 | 135 | else throw("not allowed") | |
136 | 136 | } | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | ||
140 | 140 | @Callable(i) | |
141 | 141 | func claimShare (eventId) = { | |
142 | 142 | let currentKey = toBase58String(i.caller.bytes) | |
143 | 143 | let startBlock = valueOrErrorMessage(getInteger(this, ((eventKey + startBlockKey) + toString(eventId))), "can not find event 1") | |
144 | 144 | let endBlock = valueOrErrorMessage(getInteger(this, ((eventKey + endBlockKey) + toString(eventId))), "can not find event 2") | |
145 | 145 | let hardCap = valueOrErrorMessage(getInteger(this, ((eventKey + hardCapKey) + toString(eventId))), "can not find event 3") | |
146 | 146 | let totalPayment = valueOrElse(getInteger(this, ((paymentKey + totalPaymentKey) + toString(eventId))), 0) | |
147 | 147 | let walletPayment = valueOrElse(getInteger(this, ((((paymentKey + walletPaymentKey) + currentKey) + "_") + toString(eventId))), 0) | |
148 | 148 | let calcFee = fraction(walletPayment, scale8, totalPayment) | |
149 | 149 | let desc = ((toString(calcFee) + "_") + toString(eventId)) | |
150 | 150 | let issueNft = Issue(((dAppName + "_") + toString(eventId)), desc, 1, 0, false) | |
151 | 151 | let nftId = calculateAssetId(issueNft) | |
152 | 152 | let shutDown = valueOrElse(getBoolean(this, shutDownKey), true) | |
153 | 153 | let isClaimed = valueOrElse(getBoolean(this, (((nftKey + toString(eventId)) + "_") + currentKey)), false) | |
154 | 154 | if (!(isClaimed)) | |
155 | 155 | then if (if (if (if ((height > endBlock)) | |
156 | 156 | then (hardCap >= totalPayment) | |
157 | 157 | else false) | |
158 | 158 | then (walletPayment > 0) | |
159 | 159 | else false) | |
160 | 160 | then shutDown | |
161 | 161 | else false) | |
162 | 162 | then [issueNft, StringEntry((nftKey + toString(eventId)), toBase58String(nftId)), BooleanEntry((((nftKey + toString(eventId)) + "_") + currentKey), true), BooleanEntry(toBase58String(nftId), true), ScriptTransfer(i.caller, 1, nftId)] | |
163 | 163 | else throw("you are not able to claim NFT") | |
164 | 164 | else throw("you already claimed!") | |
165 | 165 | } | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | ||
169 | 169 | @Callable(i) | |
170 | 170 | func refund (eventId) = { | |
171 | 171 | let currentKey = toBase58String(i.caller.bytes) | |
172 | 172 | let startBlock = valueOrErrorMessage(getInteger(this, ((eventKey + startBlockKey) + toString(eventId))), "can not find event 1") | |
173 | 173 | let endBlock = valueOrErrorMessage(getInteger(this, ((eventKey + endBlockKey) + toString(eventId))), "can not find event 2") | |
174 | 174 | let hardCap = valueOrErrorMessage(getInteger(this, ((eventKey + hardCapKey) + toString(eventId))), "can not find event 3") | |
175 | 175 | let totalPayment = valueOrElse(getInteger(this, ((paymentKey + totalPaymentKey) + toString(eventId))), 0) | |
176 | 176 | let walletPayment = valueOrElse(getInteger(this, (((paymentKey + walletPaymentKey) + currentKey) + toString(eventId))), 0) | |
177 | 177 | let shutDown = valueOrElse(getBoolean(this, shutDownKey), true) | |
178 | - | let isRefunded = valueOrElse(getBoolean(this, (((isRefundedKey + currentKey) + "_") + toString(eventId))), | |
178 | + | let isRefunded = valueOrElse(getBoolean(this, (((isRefundedKey + currentKey) + "_") + toString(eventId))), false) | |
179 | 179 | if (if (if (if (if ((endBlock > height)) | |
180 | 180 | then (totalPayment > hardCap) | |
181 | 181 | else false) | |
182 | 182 | then (walletPayment > 0) | |
183 | 183 | else false) | |
184 | 184 | then shutDown | |
185 | 185 | else false) | |
186 | - | then | |
186 | + | then isRefunded | |
187 | 187 | else false) | |
188 | 188 | then [IntegerEntry((((refundKey + currentKey) + "_") + toString(eventId)), walletPayment), BooleanEntry((((isRefundedKey + currentKey) + "_") + toString(eventId)), true), ScriptTransfer(i.caller, walletPayment, paymentAsset)] | |
189 | 189 | else throw("can not refund.") | |
190 | 190 | } | |
191 | 191 | ||
192 | 192 | ||
193 | 193 | ||
194 | 194 | @Callable(i) | |
195 | 195 | func delete (key) = if ((i.callerPublicKey == admPub)) | |
196 | 196 | then [DeleteEntry(key)] | |
197 | 197 | else throw("you can not") | |
198 | 198 | ||
199 | 199 | ||
200 | 200 | @Verifier(tx) | |
201 | 201 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
202 | 202 |
github/deemru/w8io/169f3d6 57.02 ms ◑