tx · GpHyuXyv86UWfJ2nLRbh26oJdt7CKwwP7Cq1jNLuzM8i

3MyLnBsVm9pw43K9eba5UExxb3efeai91KP:  -0.01300000 Waves

2022.12.23 11:00 [2372658] smart account 3MyLnBsVm9pw43K9eba5UExxb3efeai91KP > SELF 0.00000000 Waves

{ "type": 13, "id": "GpHyuXyv86UWfJ2nLRbh26oJdt7CKwwP7Cq1jNLuzM8i", "fee": 1300000, "feeAssetId": null, "timestamp": 1671782411754, "version": 2, "chainId": 84, "sender": "3MyLnBsVm9pw43K9eba5UExxb3efeai91KP", "senderPublicKey": "E5xdZLn3yHKAn29pTyubhr9R1mkRGg9WKAcpPrCYFYHx", "proofs": [ "YR2JP9RLETjbrx7TUhZk6DfsfJ8RnRTzr3fPMb8WkgBE7FjNG6RuoKeFqyEaSxw61dFzSZxcUg55auKbwLt8Wu8" ], "script": "base64:AAIFAAAAAAAAACYIAhIDCgEEEgkKBwgICAEBCAESAwoBARIDCgEBEgMKAQESAwoBAQAAABkAAAAACGRBcHBOYW1lAgAAABtDUk9XREZVTkRJTkdfT05fV0FWRVNfU0hBUkUAAAAABmFkbVB1YgEAAAAgwm0nmAhWSDqW+K/S1mvC+NNow4ujn8UBfOoCFti2ZnMAAAAABGJhbmsJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVSmfND+3V/r5U39jSnmcibSNaQF0ZS9OSgAAAAADHBheW1lbnRBc3NldAEAAAAgITlE6Sl8X8+K+DOSOPUkvq8L9vq51QOPRS3GqFK/+rkAAAAACGNsYWltS2V5AgAAAAdfY2xhaW1fAAAAAAZuZnRLZXkCAAAABV9uZnRfAAAAAAhuZnRJZEtleQIAAAAHX25mdElkXwAAAAALc2h1dERvd25LZXkCAAAACl9zaHV0RG93bl8AAAAACGV2ZW50S2V5AgAAAAdfZXZlbnRfAAAAAApwYXltZW50S2V5AgAAAAlfcGF5bWVudF8AAAAAEGdsb2JhbEV2ZW50SWRLZXkCAAAACV9ldmVudElkXwAAAAANc3RhcnRCbG9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AAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAACXJlZnVuZEtleQUAAAAKY3VycmVudEtleQIAAAABXwkAAaQAAAABBQAAAAdldmVudElkBQAAAA13YWxsZXRQYXltZW50CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAANd2FsbGV0UGF5bWVudAUAAAAMcGF5bWVudEFzc2V0BQAAAANuaWwJAAACAAAAAQIAAAAgY2FuIG5vdCByZWZ1bmQuIGNhbXBhaWduIHN1Y2Nlc3MAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tlefF2OFQ=", "height": 2372658, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CTPTFkrBHKNV6X6hXHzV4eAMRUDzxD4cCvG2ojPU7Ba8 Next: 2WZBfb41jsPbbKdpJhgDyXTgeDg6ScsNUfhgxhBH7mi2 Diff:
OldNewDifferences
120120
121121 @Callable(i)
122122 func claim (eventId) = {
123- let owner = valueOrErrorMessage(getInteger(this, ((eventKey + ownerKey) + toString(eventId))), "can not find the owner")
123+ let owner = valueOrErrorMessage(getString(this, ((eventKey + ownerKey) + toString(eventId))), "can not find the owner")
124124 let currentKey = toBase58String(i.caller.bytes)
125125 let startBlock = valueOrErrorMessage(getInteger(this, ((eventKey + startBlockKey) + toString(eventId))), "can not find event 1")
126126 let endBlock = valueOrErrorMessage(getInteger(this, ((eventKey + endBlockKey) + toString(eventId))), "can not find event 2")
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_"
1515
1616 let nftIdKey = "_nftId_"
1717
1818 let shutDownKey = "_shutDown_"
1919
2020 let eventKey = "_event_"
2121
2222 let paymentKey = "_payment_"
2323
2424 let globalEventIdKey = "_eventId_"
2525
2626 let startBlockKey = "_startBlock_"
2727
2828 let endBlockKey = "_endBlock_"
2929
3030 let imageKey = "_image_"
3131
3232 let ownerKey = "_owner_"
3333
3434 let urlKey = "_url_"
3535
3636 let hardCapKey = "_hardCap_"
3737
3838 let titleKey = "_title_"
3939
4040 let shareHolderCountKey = "_shareHolderCount_"
4141
4242 let totalPaymentKey = "_totalPayment_"
4343
4444 let walletPaymentKey = "_walletPayment_"
4545
4646 let refundKey = "_refund_"
4747
4848 let commissionFee = 500000000
4949
5050 let scale8 = 100000000
5151
5252 func isPaymentOk (i) = {
5353 let acceptableAssetId = paymentAsset
5454 if ((size(i.payments) == 0))
5555 then throw("Payment not attached")
5656 else {
5757 let p = i.payments[0]
5858 match p.assetId {
5959 case assetId: ByteVector =>
6060 if ((assetId == acceptableAssetId))
6161 then (p.amount > 0)
6262 else false
6363 case _ =>
6464 throw("Wrong payment asset")
6565 }
6666 }
6767 }
6868
6969
7070 @Callable(i)
7171 func shutdown (isOpen) = if ((i.callerPublicKey == admPub))
7272 then [BooleanEntry(shutDownKey, isOpen)]
7373 else throw("you are not allow to do this!")
7474
7575
7676
7777 @Callable(i)
7878 func create (title,image,owner,startBlock,endBlock,url,hardCap) = {
7979 let eventId = valueOrElse(getInteger(this, (eventKey + globalEventIdKey)), 0)
8080 let increaseEventId = (eventId + 1)
8181 if ((i.callerPublicKey == admPub))
8282 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)]
8383 else throw("you are not allowed")
8484 }
8585
8686
8787
8888 @Callable(i)
8989 func funding (eventId) = {
9090 let startBlock = valueOrErrorMessage(getInteger(this, ((eventKey + startBlockKey) + toString(eventId))), "can not find event 1")
9191 let endBlock = valueOrErrorMessage(getInteger(this, ((eventKey + endBlockKey) + toString(eventId))), "can not find event 2")
9292 let hardCap = valueOrErrorMessage(getInteger(this, ((eventKey + hardCapKey) + toString(eventId))), "can not find event 3")
9393 let currentKey = toBase58String(i.caller.bytes)
9494 let totalPayment = valueOrElse(getInteger(this, ((paymentKey + totalPaymentKey) + toString(eventId))), 0)
9595 let walletPayment = valueOrElse(getInteger(this, (((paymentKey + walletPaymentKey) + currentKey) + toString(eventId))), 0)
9696 let shareHolderCount = valueOrElse(getInteger(this, ((paymentKey + shareHolderCountKey) + toString(eventId))), 0)
9797 if ((startBlock > height))
9898 then throw("crowdfunding not started")
9999 else if ((height >= endBlock))
100100 then throw("crowdfunding is over")
101101 else if ((totalPayment >= hardCap))
102102 then throw("crowdfunding is reached to hard cap. thank you for participating!")
103103 else if (!(isPaymentOk(i)))
104104 then throw("you have to attach payment greater than zero")
105105 else {
106106 let shutDown = valueOrElse(getBoolean(this, shutDownKey), true)
107107 if (!(shutDown))
108108 then throw("emergency shutdown")
109109 else {
110110 let p = i.payments[0]
111111 let paymentAmount = p.amount
112112 let calcFee = fraction(paymentAmount, commissionFee, scale8)
113113 let realAmount = (paymentAmount - calcFee)
114114 [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)]
115115 }
116116 }
117117 }
118118
119119
120120
121121 @Callable(i)
122122 func claim (eventId) = {
123- let owner = valueOrErrorMessage(getInteger(this, ((eventKey + ownerKey) + toString(eventId))), "can not find the owner")
123+ let owner = valueOrErrorMessage(getString(this, ((eventKey + ownerKey) + toString(eventId))), "can not find the owner")
124124 let currentKey = toBase58String(i.caller.bytes)
125125 let startBlock = valueOrErrorMessage(getInteger(this, ((eventKey + startBlockKey) + toString(eventId))), "can not find event 1")
126126 let endBlock = valueOrErrorMessage(getInteger(this, ((eventKey + endBlockKey) + toString(eventId))), "can not find event 2")
127127 let hardCap = valueOrErrorMessage(getInteger(this, ((eventKey + hardCapKey) + toString(eventId))), "can not find event 3")
128128 let totalPayment = valueOrElse(getInteger(this, ((paymentKey + totalPaymentKey) + toString(eventId))), 0)
129129 let shutDown = valueOrElse(getBoolean(this, shutDownKey), true)
130130 if ((toBytes(owner) == i.caller.bytes))
131131 then throw("you are not able to claim")
132132 else if (if (if ((height > endBlock))
133133 then (totalPayment >= hardCap)
134134 else false)
135135 then shutDown
136136 else false)
137137 then [ScriptTransfer(i.caller, totalPayment, paymentAsset), IntegerEntry((((claimKey + currentKey) + "_") + toString(eventId)), totalPayment)]
138138 else throw("not allowed")
139139 }
140140
141141
142142
143143 @Callable(i)
144144 func claimShare (eventId) = {
145145 let currentKey = toBase58String(i.caller.bytes)
146146 let startBlock = valueOrErrorMessage(getInteger(this, ((eventKey + startBlockKey) + toString(eventId))), "can not find event 1")
147147 let endBlock = valueOrErrorMessage(getInteger(this, ((eventKey + endBlockKey) + toString(eventId))), "can not find event 2")
148148 let hardCap = valueOrErrorMessage(getInteger(this, ((eventKey + hardCapKey) + toString(eventId))), "can not find event 3")
149149 let totalPayment = valueOrElse(getInteger(this, ((paymentKey + totalPaymentKey) + toString(eventId))), 0)
150150 let walletPayment = valueOrElse(getInteger(this, (((paymentKey + walletPaymentKey) + currentKey) + toString(eventId))), 0)
151151 let calcFee = fraction(walletPayment, scale8, totalPayment)
152152 let desc = ((toString(calcFee) + "_") + toString(eventId))
153153 let issueNft = Issue(((dAppName + "_") + toString(eventId)), desc, 1, 0, false)
154154 let nftId = calculateAssetId(issueNft)
155155 let shutDown = valueOrElse(getBoolean(this, shutDownKey), true)
156156 if (if (if (if ((height > endBlock))
157157 then (hardCap >= totalPayment)
158158 else false)
159159 then (walletPayment > 0)
160160 else false)
161161 then shutDown
162162 else false)
163163 then [issueNft, StringEntry((nftKey + toString(eventId)), toBase58String(nftId)), ScriptTransfer(i.caller, 1, nftId)]
164164 else throw("you are not able to claim NFT")
165165 }
166166
167167
168168
169169 @Callable(i)
170170 func refund (eventId) = {
171171 let currentKey = toBase58String(i.caller.bytes)
172172 let startBlock = valueOrErrorMessage(getInteger(this, ((eventKey + startBlockKey) + toString(eventId))), "can not find event 1")
173173 let endBlock = valueOrErrorMessage(getInteger(this, ((eventKey + endBlockKey) + toString(eventId))), "can not find event 2")
174174 let hardCap = valueOrErrorMessage(getInteger(this, ((eventKey + hardCapKey) + toString(eventId))), "can not find event 3")
175175 let totalPayment = valueOrElse(getInteger(this, ((paymentKey + totalPaymentKey) + toString(eventId))), 0)
176176 let walletPayment = valueOrElse(getInteger(this, (((paymentKey + walletPaymentKey) + currentKey) + toString(eventId))), 0)
177177 let shutDown = valueOrElse(getBoolean(this, shutDownKey), true)
178178 if (if (if (if ((endBlock > height))
179179 then (totalPayment > hardCap)
180180 else false)
181181 then (walletPayment > 0)
182182 else false)
183183 then shutDown
184184 else false)
185185 then [IntegerEntry((((refundKey + currentKey) + "_") + toString(eventId)), walletPayment), ScriptTransfer(i.caller, walletPayment, paymentAsset)]
186186 else throw("can not refund. campaign success")
187187 }
188188
189189
190190 @Verifier(tx)
191191 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
192192

github/deemru/w8io/026f985 
30.96 ms