tx · AApqRyrQSF48dUxEgMy55suavF82ipXJAGmNo3ngKDxp

3MyLnBsVm9pw43K9eba5UExxb3efeai91KP:  -0.01000000 Waves

2022.12.22 13:56 [2371408] smart account 3MyLnBsVm9pw43K9eba5UExxb3efeai91KP > SELF 0.00000000 Waves

{ "type": 13, "id": "AApqRyrQSF48dUxEgMy55suavF82ipXJAGmNo3ngKDxp", "fee": 1000000, "feeAssetId": null, "timestamp": 1671706616737, "version": 2, "chainId": 84, "sender": "3MyLnBsVm9pw43K9eba5UExxb3efeai91KP", "senderPublicKey": "E5xdZLn3yHKAn29pTyubhr9R1mkRGg9WKAcpPrCYFYHx", "proofs": [ "3VsmrzHj1CGArEahfdGX6PCne7AHnR5NpPXfoGBkCtgkAALNFpCoTtUCUwky661F63DhtTbQF9PPrYmJQfwL8ifS" ], "script": "base64:AAIFAAAAAAAAAB8IAhIAEgASCQoHCAgIAQEIARIDCgEBEgASABIDCgEIAAAAEAAAAAAGYWRtUHViAQAAACDCbSeYCFZIOpb4r9LWa8L402jDi6OfxQF86gIW2LZmcwAAAAAMcGF5bWVudEFzc2V0AQAAACAhOUTpKXxfz4r4M5I49SS+rwv2+rnVA49FLcaoUr/6uQAAAAAIZXZlbnRLZXkCAAAAB19ldmVudF8AAAAACnBheW1lbnRLZXkCAAAAA19wXwAAAAAQZ2xvYmFsRXZlbnRJZEtleQIAAAAJX2V2ZW50SWRfAAAAAA1zdGFydEJsb2NrS2V5AgAAAAxfc3RhcnRCbG9ja18AAAAAC2VuZEJsb2NrS2V5AgAAAApfZW5kQmxvY2tfAAAAAAhpbWFnZUtleQIAAAAHX2ltYWdlXwAAAAAIb3duZXJLZXkCAAAAB19vd25lcl8AAAAABnVybEtleQIAAAAFX3VybF8AAAAACmhhcmRDYXBLZXkCAAAACV9oYXJkQ2FwXwAAAAAIdGl0bGVLZXkCAAAAB190aXRsZV8AAAAAE3NoYXJlSG9sZGVyQ291bnRLZXkCAAAAEl9zaGFyZUhvbGRlckNvdW50XwAA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LZXkFAAAAD3RvdGFsUGF5bWVudEtleQkAAaQAAAABBQAAAAdldmVudElkCQAAZAAAAAIFAAAADHRvdGFsUGF5bWVudAUAAAANcGF5bWVudEFtb3VudAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAAKcGF5bWVudEtleQUAAAAQd2FsbGV0UGF5bWVudEtleQUAAAAKY3VycmVudEtleQkAAaQAAAABBQAAAAdldmVudElkCQAAZAAAAAIFAAAADXdhbGxldFBheW1lbnQFAAAADXBheW1lbnRBbW91bnQFAAAAA25pbAAAAAFpAQAAAAVjbGFpbQAAAAAJAAACAAAAAQIAAAAgZXZlbnQgb3duZXIgd2lsbCBjbGFpbSB0aGUgbW9uZXkAAAABaQEAAAAGcmVmdW5kAAAAAAkAAAIAAAABAgAAACJpZiBub3Qgc3VjY2VzcyBwYXllcnMgZ29ubmEgcmVmdW5kAAAAAWkBAAAABmRlbGV0ZQAAAAEAAAADa2V5AwkAAAAAAAACCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkFAAAABmFkbVB1YgkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAANrZXkFAAAAA25pbAkAAAIAAAABAgAAAB95b3UgYXJlIG5vdCBhbGxvd2VkIHRvIGRvIHRoaXMhAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkevj0N", "height": 2371408, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8GasfyfQ9dWSyYpp4VVgYuLEhZ9p4hbUQrE6fyqZFmmX Next: ADEVQy7NTuyiKWCi6hjERR7zqqA7p8M3BNBBvhE9Yw2C Diff:
OldNewDifferences
66 let paymentAsset = base58'3Eh6z6z6ouFpWxGKrPaPnZwmDnDjgYHV6tqCmZf2G7tk'
77
88 let eventKey = "_event_"
9+
10+let paymentKey = "_p_"
911
1012 let globalEventIdKey = "_eventId_"
1113
6264 let eventId = valueOrElse(getInteger(this, globalEventIdKey), 0)
6365 let increaseEventId = (eventId + 1)
6466 if ((i.callerPublicKey == admPub))
65- then [StringEntry((imageKey + toString(increaseEventId)), image), StringEntry((ownerKey + toString(increaseEventId)), owner), StringEntry((titleKey + toString(increaseEventId)), title), IntegerEntry((startBlockKey + toString(increaseEventId)), startBlock), IntegerEntry((endBlockKey + toString(increaseEventId)), endBlock), StringEntry((urlKey + toString(increaseEventId)), url), IntegerEntry((hardCapKey + toString(increaseEventId)), hardCap), IntegerEntry(globalEventIdKey, increaseEventId)]
67+ 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)]
6668 else throw("you are not allowed")
6769 }
6870
7072
7173 @Callable(i)
7274 func funding (eventId) = {
73- let startBlock = valueOrErrorMessage(getInteger(this, (startBlockKey + toString(eventId))), "err")
74- let endBlock = valueOrErrorMessage(getInteger(this, (endBlockKey + toString(eventId))), "err")
75- let hardCap = valueOrErrorMessage(getInteger(this, (hardCapKey + toString(eventId))), "err")
75+ let startBlock = valueOrErrorMessage(getInteger(this, ((eventKey + startBlockKey) + toString(eventId))), "err")
76+ let endBlock = valueOrErrorMessage(getInteger(this, ((eventKey + endBlockKey) + toString(eventId))), "err")
77+ let hardCap = valueOrErrorMessage(getInteger(this, ((eventKey + hardCapKey) + toString(eventId))), "err")
7678 let currentKey = toBase58String(i.caller.bytes)
77- let totalPayment = valueOrElse(getInteger(this, (totalPaymentKey + toString(eventId))), 0)
78- let walletPayment = valueOrElse(getInteger(this, ((walletPaymentKey + currentKey) + toString(eventId))), 0)
79- let shareHolderCount = valueOrElse(getInteger(this, shareHolderCountKey), 0)
79+ let totalPayment = valueOrElse(getInteger(this, ((paymentKey + totalPaymentKey) + toString(eventId))), 0)
80+ let walletPayment = valueOrElse(getInteger(this, (((paymentKey + walletPaymentKey) + currentKey) + toString(eventId))), 0)
81+ let shareHolderCount = valueOrElse(getInteger(this, ((paymentKey + shareHolderCountKey) + toString(eventId))), 0)
8082 if ((height > startBlock))
8183 then throw("crowdfunding not started")
8284 else if ((endBlock >= height))
8890 else {
8991 let p = i.payments[0]
9092 let paymentAmount = p.amount
91-[IntegerEntry((shareHolderCountKey + toString(eventId)), (shareHolderCount + 1)), IntegerEntry((totalPaymentKey + toString(eventId)), (totalPayment + paymentAmount)), IntegerEntry(((walletPaymentKey + currentKey) + toString(eventId)), (walletPayment + paymentAmount))]
93+[IntegerEntry(((paymentKey + shareHolderCountKey) + toString(eventId)), (shareHolderCount + 1)), IntegerEntry(((paymentKey + totalPaymentKey) + toString(eventId)), (totalPayment + paymentAmount)), IntegerEntry((((paymentKey + walletPaymentKey) + currentKey) + toString(eventId)), (walletPayment + paymentAmount))]
9294 }
9395 }
9496
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let admPub = base58'E5xdZLn3yHKAn29pTyubhr9R1mkRGg9WKAcpPrCYFYHx'
55
66 let paymentAsset = base58'3Eh6z6z6ouFpWxGKrPaPnZwmDnDjgYHV6tqCmZf2G7tk'
77
88 let eventKey = "_event_"
9+
10+let paymentKey = "_p_"
911
1012 let globalEventIdKey = "_eventId_"
1113
1214 let startBlockKey = "_startBlock_"
1315
1416 let endBlockKey = "_endBlock_"
1517
1618 let imageKey = "_image_"
1719
1820 let ownerKey = "_owner_"
1921
2022 let urlKey = "_url_"
2123
2224 let hardCapKey = "_hardCap_"
2325
2426 let titleKey = "_title_"
2527
2628 let shareHolderCountKey = "_shareHolderCount_"
2729
2830 let totalPaymentKey = "_totalPayment_"
2931
3032 let walletPaymentKey = "_walletPayment_"
3133
3234 func isPaymentOk (i) = {
3335 let acceptableAssetId = paymentAsset
3436 if ((size(i.payments) == 0))
3537 then throw("Payment not attached")
3638 else {
3739 let p = i.payments[0]
3840 match p.assetId {
3941 case assetId: ByteVector =>
4042 if ((assetId == acceptableAssetId))
4143 then (p.amount > 0)
4244 else false
4345 case _ =>
4446 throw("Wrong payment asset")
4547 }
4648 }
4749 }
4850
4951
5052 @Callable(i)
5153 func shutdown () = throw("shutdown")
5254
5355
5456
5557 @Callable(i)
5658 func settings () = throw("settings")
5759
5860
5961
6062 @Callable(i)
6163 func create (title,image,owner,startBlock,endBlock,url,hardCap) = {
6264 let eventId = valueOrElse(getInteger(this, globalEventIdKey), 0)
6365 let increaseEventId = (eventId + 1)
6466 if ((i.callerPublicKey == admPub))
65- then [StringEntry((imageKey + toString(increaseEventId)), image), StringEntry((ownerKey + toString(increaseEventId)), owner), StringEntry((titleKey + toString(increaseEventId)), title), IntegerEntry((startBlockKey + toString(increaseEventId)), startBlock), IntegerEntry((endBlockKey + toString(increaseEventId)), endBlock), StringEntry((urlKey + toString(increaseEventId)), url), IntegerEntry((hardCapKey + toString(increaseEventId)), hardCap), IntegerEntry(globalEventIdKey, increaseEventId)]
67+ 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)]
6668 else throw("you are not allowed")
6769 }
6870
6971
7072
7173 @Callable(i)
7274 func funding (eventId) = {
73- let startBlock = valueOrErrorMessage(getInteger(this, (startBlockKey + toString(eventId))), "err")
74- let endBlock = valueOrErrorMessage(getInteger(this, (endBlockKey + toString(eventId))), "err")
75- let hardCap = valueOrErrorMessage(getInteger(this, (hardCapKey + toString(eventId))), "err")
75+ let startBlock = valueOrErrorMessage(getInteger(this, ((eventKey + startBlockKey) + toString(eventId))), "err")
76+ let endBlock = valueOrErrorMessage(getInteger(this, ((eventKey + endBlockKey) + toString(eventId))), "err")
77+ let hardCap = valueOrErrorMessage(getInteger(this, ((eventKey + hardCapKey) + toString(eventId))), "err")
7678 let currentKey = toBase58String(i.caller.bytes)
77- let totalPayment = valueOrElse(getInteger(this, (totalPaymentKey + toString(eventId))), 0)
78- let walletPayment = valueOrElse(getInteger(this, ((walletPaymentKey + currentKey) + toString(eventId))), 0)
79- let shareHolderCount = valueOrElse(getInteger(this, shareHolderCountKey), 0)
79+ let totalPayment = valueOrElse(getInteger(this, ((paymentKey + totalPaymentKey) + toString(eventId))), 0)
80+ let walletPayment = valueOrElse(getInteger(this, (((paymentKey + walletPaymentKey) + currentKey) + toString(eventId))), 0)
81+ let shareHolderCount = valueOrElse(getInteger(this, ((paymentKey + shareHolderCountKey) + toString(eventId))), 0)
8082 if ((height > startBlock))
8183 then throw("crowdfunding not started")
8284 else if ((endBlock >= height))
8385 then throw("crowdfunding is over")
8486 else if ((totalPayment >= hardCap))
8587 then throw("crowdfunding is reached to hard cap. thank you for participating!")
8688 else if (!(isPaymentOk(i)))
8789 then throw("you have to attach payment greater than zero")
8890 else {
8991 let p = i.payments[0]
9092 let paymentAmount = p.amount
91-[IntegerEntry((shareHolderCountKey + toString(eventId)), (shareHolderCount + 1)), IntegerEntry((totalPaymentKey + toString(eventId)), (totalPayment + paymentAmount)), IntegerEntry(((walletPaymentKey + currentKey) + toString(eventId)), (walletPayment + paymentAmount))]
93+[IntegerEntry(((paymentKey + shareHolderCountKey) + toString(eventId)), (shareHolderCount + 1)), IntegerEntry(((paymentKey + totalPaymentKey) + toString(eventId)), (totalPayment + paymentAmount)), IntegerEntry((((paymentKey + walletPaymentKey) + currentKey) + toString(eventId)), (walletPayment + paymentAmount))]
9294 }
9395 }
9496
9597
9698
9799 @Callable(i)
98100 func claim () = throw("event owner will claim the money")
99101
100102
101103
102104 @Callable(i)
103105 func refund () = throw("if not success payers gonna refund")
104106
105107
106108
107109 @Callable(i)
108110 func delete (key) = if ((i.callerPublicKey == admPub))
109111 then [DeleteEntry(key)]
110112 else throw("you are not allowed to do this!")
111113
112114
113115 @Verifier(tx)
114116 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
115117

github/deemru/w8io/026f985 
52.88 ms