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/+rkAAAAACGNsYWltS2V5AgAAAAdfY2xhaW1fAAAAAAZuZnRLZXkCAAAABV9uZnRfAAAAAAtzaHV0RG93bktleQIAAAAKX3NodXREb3duXwAAAAAIZXZlbnRLZXkCAAAAB19ldmVudF8AAAAACnBheW1lbnRLZXkCAAAACV9wYXltZW50XwAAAAAQZ2xvYmFsRXZlbnRJZEtleQIAAAAJX2V2ZW50SWRfAAAAAA1zdGFydEJsb2NrS2V5AgAAAAxfc3RhcnRCbG9ja18AAAA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EsAAAAAgUAAAAJcmVmdW5kS2V5BQAAAApjdXJyZW50S2V5AgAAAAFfCQABpAAAAAEFAAAAB2V2ZW50SWQFAAAADXdhbGxldFBheW1lbnQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAA13YWxsZXRQYXltZW50BQAAAAxwYXltZW50QXNzZXQFAAAAA25pbAkAAAIAAAABAgAAACBjYW4gbm90IHJlZnVuZC4gY2FtcGFpZ24gc3VjY2VzcwAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5G9vPcw==", "height": 2372666, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GpHyuXyv86UWfJ2nLRbh26oJdt7CKwwP7Cq1jNLuzM8i Next: FQM6ga19EjDLZ6JUHPTMuctR9BC4mGzi41ASNDByawHS Diff:
OldNewDifferences
1212 let claimKey = "_claim_"
1313
1414 let nftKey = "_nft_"
15-
16-let nftIdKey = "_nftId_"
1715
1816 let shutDownKey = "_shutDown_"
1917
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let dAppName = "CROWDFUNDING_ON_WAVES_SHARE"
55
66 let admPub = base58'E5xdZLn3yHKAn29pTyubhr9R1mkRGg9WKAcpPrCYFYHx'
77
88 let bank = Address(base58'3N56PUABa6tqTXc4cv6QvntyMPb1KHnzC79')
99
1010 let paymentAsset = base58'3Eh6z6z6ouFpWxGKrPaPnZwmDnDjgYHV6tqCmZf2G7tk'
1111
1212 let claimKey = "_claim_"
1313
1414 let nftKey = "_nft_"
15-
16-let nftIdKey = "_nftId_"
1715
1816 let shutDownKey = "_shutDown_"
1917
2018 let eventKey = "_event_"
2119
2220 let paymentKey = "_payment_"
2321
2422 let globalEventIdKey = "_eventId_"
2523
2624 let startBlockKey = "_startBlock_"
2725
2826 let endBlockKey = "_endBlock_"
2927
3028 let imageKey = "_image_"
3129
3230 let ownerKey = "_owner_"
3331
3432 let urlKey = "_url_"
3533
3634 let hardCapKey = "_hardCap_"
3735
3836 let titleKey = "_title_"
3937
4038 let shareHolderCountKey = "_shareHolderCount_"
4139
4240 let totalPaymentKey = "_totalPayment_"
4341
4442 let walletPaymentKey = "_walletPayment_"
4543
4644 let refundKey = "_refund_"
4745
4846 let commissionFee = 500000000
4947
5048 let scale8 = 100000000
5149
5250 func isPaymentOk (i) = {
5351 let acceptableAssetId = paymentAsset
5452 if ((size(i.payments) == 0))
5553 then throw("Payment not attached")
5654 else {
5755 let p = i.payments[0]
5856 match p.assetId {
5957 case assetId: ByteVector =>
6058 if ((assetId == acceptableAssetId))
6159 then (p.amount > 0)
6260 else false
6361 case _ =>
6462 throw("Wrong payment asset")
6563 }
6664 }
6765 }
6866
6967
7068 @Callable(i)
7169 func shutdown (isOpen) = if ((i.callerPublicKey == admPub))
7270 then [BooleanEntry(shutDownKey, isOpen)]
7371 else throw("you are not allow to do this!")
7472
7573
7674
7775 @Callable(i)
7876 func create (title,image,owner,startBlock,endBlock,url,hardCap) = {
7977 let eventId = valueOrElse(getInteger(this, (eventKey + globalEventIdKey)), 0)
8078 let increaseEventId = (eventId + 1)
8179 if ((i.callerPublicKey == admPub))
8280 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)]
8381 else throw("you are not allowed")
8482 }
8583
8684
8785
8886 @Callable(i)
8987 func funding (eventId) = {
9088 let startBlock = valueOrErrorMessage(getInteger(this, ((eventKey + startBlockKey) + toString(eventId))), "can not find event 1")
9189 let endBlock = valueOrErrorMessage(getInteger(this, ((eventKey + endBlockKey) + toString(eventId))), "can not find event 2")
9290 let hardCap = valueOrErrorMessage(getInteger(this, ((eventKey + hardCapKey) + toString(eventId))), "can not find event 3")
9391 let currentKey = toBase58String(i.caller.bytes)
9492 let totalPayment = valueOrElse(getInteger(this, ((paymentKey + totalPaymentKey) + toString(eventId))), 0)
9593 let walletPayment = valueOrElse(getInteger(this, (((paymentKey + walletPaymentKey) + currentKey) + toString(eventId))), 0)
9694 let shareHolderCount = valueOrElse(getInteger(this, ((paymentKey + shareHolderCountKey) + toString(eventId))), 0)
9795 if ((startBlock > height))
9896 then throw("crowdfunding not started")
9997 else if ((height >= endBlock))
10098 then throw("crowdfunding is over")
10199 else if ((totalPayment >= hardCap))
102100 then throw("crowdfunding is reached to hard cap. thank you for participating!")
103101 else if (!(isPaymentOk(i)))
104102 then throw("you have to attach payment greater than zero")
105103 else {
106104 let shutDown = valueOrElse(getBoolean(this, shutDownKey), true)
107105 if (!(shutDown))
108106 then throw("emergency shutdown")
109107 else {
110108 let p = i.payments[0]
111109 let paymentAmount = p.amount
112110 let calcFee = fraction(paymentAmount, commissionFee, scale8)
113111 let realAmount = (paymentAmount - calcFee)
114112 [IntegerEntry(((paymentKey + shareHolderCountKey) + toString(eventId)), (shareHolderCount + 1)), IntegerEntry(((paymentKey + totalPaymentKey) + toString(eventId)), (totalPayment + realAmount)), IntegerEntry(((((paymentKey + walletPaymentKey) + currentKey) + "_") + toString(eventId)), (walletPayment + realAmount)), ScriptTransfer(bank, calcFee, paymentAsset)]
115113 }
116114 }
117115 }
118116
119117
120118
121119 @Callable(i)
122120 func claim (eventId) = {
123121 let owner = valueOrErrorMessage(getString(this, ((eventKey + ownerKey) + toString(eventId))), "can not find the owner")
124122 let currentKey = toBase58String(i.caller.bytes)
125123 let startBlock = valueOrErrorMessage(getInteger(this, ((eventKey + startBlockKey) + toString(eventId))), "can not find event 1")
126124 let endBlock = valueOrErrorMessage(getInteger(this, ((eventKey + endBlockKey) + toString(eventId))), "can not find event 2")
127125 let hardCap = valueOrErrorMessage(getInteger(this, ((eventKey + hardCapKey) + toString(eventId))), "can not find event 3")
128126 let totalPayment = valueOrElse(getInteger(this, ((paymentKey + totalPaymentKey) + toString(eventId))), 0)
129127 let shutDown = valueOrElse(getBoolean(this, shutDownKey), true)
130128 if ((toBytes(owner) == i.caller.bytes))
131129 then throw("you are not able to claim")
132130 else if (if (if ((height > endBlock))
133131 then (totalPayment >= hardCap)
134132 else false)
135133 then shutDown
136134 else false)
137135 then [ScriptTransfer(i.caller, totalPayment, paymentAsset), IntegerEntry((((claimKey + currentKey) + "_") + toString(eventId)), totalPayment)]
138136 else throw("not allowed")
139137 }
140138
141139
142140
143141 @Callable(i)
144142 func claimShare (eventId) = {
145143 let currentKey = toBase58String(i.caller.bytes)
146144 let startBlock = valueOrErrorMessage(getInteger(this, ((eventKey + startBlockKey) + toString(eventId))), "can not find event 1")
147145 let endBlock = valueOrErrorMessage(getInteger(this, ((eventKey + endBlockKey) + toString(eventId))), "can not find event 2")
148146 let hardCap = valueOrErrorMessage(getInteger(this, ((eventKey + hardCapKey) + toString(eventId))), "can not find event 3")
149147 let totalPayment = valueOrElse(getInteger(this, ((paymentKey + totalPaymentKey) + toString(eventId))), 0)
150148 let walletPayment = valueOrElse(getInteger(this, (((paymentKey + walletPaymentKey) + currentKey) + toString(eventId))), 0)
151149 let calcFee = fraction(walletPayment, scale8, totalPayment)
152150 let desc = ((toString(calcFee) + "_") + toString(eventId))
153151 let issueNft = Issue(((dAppName + "_") + toString(eventId)), desc, 1, 0, false)
154152 let nftId = calculateAssetId(issueNft)
155153 let shutDown = valueOrElse(getBoolean(this, shutDownKey), true)
156154 if (if (if (if ((height > endBlock))
157155 then (hardCap >= totalPayment)
158156 else false)
159157 then (walletPayment > 0)
160158 else false)
161159 then shutDown
162160 else false)
163161 then [issueNft, StringEntry((nftKey + toString(eventId)), toBase58String(nftId)), ScriptTransfer(i.caller, 1, nftId)]
164162 else throw("you are not able to claim NFT")
165163 }
166164
167165
168166
169167 @Callable(i)
170168 func refund (eventId) = {
171169 let currentKey = toBase58String(i.caller.bytes)
172170 let startBlock = valueOrErrorMessage(getInteger(this, ((eventKey + startBlockKey) + toString(eventId))), "can not find event 1")
173171 let endBlock = valueOrErrorMessage(getInteger(this, ((eventKey + endBlockKey) + toString(eventId))), "can not find event 2")
174172 let hardCap = valueOrErrorMessage(getInteger(this, ((eventKey + hardCapKey) + toString(eventId))), "can not find event 3")
175173 let totalPayment = valueOrElse(getInteger(this, ((paymentKey + totalPaymentKey) + toString(eventId))), 0)
176174 let walletPayment = valueOrElse(getInteger(this, (((paymentKey + walletPaymentKey) + currentKey) + toString(eventId))), 0)
177175 let shutDown = valueOrElse(getBoolean(this, shutDownKey), true)
178176 if (if (if (if ((endBlock > height))
179177 then (totalPayment > hardCap)
180178 else false)
181179 then (walletPayment > 0)
182180 else false)
183181 then shutDown
184182 else false)
185183 then [IntegerEntry((((refundKey + currentKey) + "_") + toString(eventId)), walletPayment), ScriptTransfer(i.caller, walletPayment, paymentAsset)]
186184 else throw("can not refund. campaign success")
187185 }
188186
189187
190188 @Verifier(tx)
191189 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
192190

github/deemru/w8io/026f985 
53.46 ms