tx · 4cKoVWcMsDZDPCmD7MwkfxAhihTAMXLdNCoow1p7JCvP 3MyLnBsVm9pw43K9eba5UExxb3efeai91KP: -0.01000000 Waves 2022.12.22 16:26 [2371559] smart account 3MyLnBsVm9pw43K9eba5UExxb3efeai91KP > SELF 0.00000000 Waves
{ "type": 13, "id": "4cKoVWcMsDZDPCmD7MwkfxAhihTAMXLdNCoow1p7JCvP", "fee": 1000000, "feeAssetId": null, "timestamp": 1671715597056, "version": 2, "chainId": 84, "sender": "3MyLnBsVm9pw43K9eba5UExxb3efeai91KP", "senderPublicKey": "E5xdZLn3yHKAn29pTyubhr9R1mkRGg9WKAcpPrCYFYHx", "proofs": [ "5y6kT1ZU2p15yANVM8wCuJV7fdNMiHBApebKjBKih7qJvxmFEzj4RRXdGeKu3Po2vZ9L5g6RP4F4sGxchySDVamj" ], "script": "base64:AAIFAAAAAAAAACQIAhIDCgEEEgASCQoHCAgIAQEIARIDCgEBEgASABIAEgMKAQgAAAASAAAAAAZhZG1QdWIBAAAAIMJtJ5gIVkg6lviv0tZrwvjTaMOLo5/FAXzqAhbYtmZzAAAAAAxwYXltZW50QXNzZXQBAAAAICE5ROkpfF/Pivgzkjj1JL6vC/b6udUDj0UtxqhSv/q5AAAAAAZuZnRLZXkCAAAABV9uZnRfAAAAAAtzaHV0RG93bktleQIAAAAKX3NodXREb3duXwAAAAAIZXZlbnRLZXkCAAAAB19ldmVudF8AAAAACnBheW1lbnRLZXkCAAAACV9wYXltZW50XwAAAAAQZ2xvYmFsRXZlbnRJZEtleQIAAAAJX2V2ZW50SWRfAAAAAA1zdGFydEJsb2NrS2V5AgAAAAxfc3RhcnRCbG9ja18AAAAAC2VuZEJsb2NrS2V5AgAAAApfZW5kQmxvY2tfAAAAAAhpbWFnZUtleQIAAAAHX2ltYWdlXwAAAAAIb3duZXJLZXkCAAAAB19vd25lcl8AAAAABnVybEtleQIAAAAFX3VybF8AAAAACmhhcmRDYXBLZXkCAAAACV9oYXJkQ2FwXwAAAAA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dpbGwgY2xhaW0gdGhlIG1vbmV5AAAAAWkBAAAABnJlZnVuZAAAAAAJAAACAAAAAQIAAAAiaWYgbm90IHN1Y2Nlc3MgcGF5ZXJzIGdvbm5hIHJlZnVuZAAAAAFpAQAAAAZkZWxldGUAAAABAAAAA2tleQMJAAAAAAAAAggFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5BQAAAAZhZG1QdWIJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAADa2V5BQAAAANuaWwJAAACAAAAAQIAAAAfeW91IGFyZSBub3QgYWxsb3dlZCB0byBkbyB0aGlzIQAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5XBFc0w==", "height": 2371559, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HkYqV7giqQR33vrsPFC7f8DJGCSZAF6K8e2JAcGgYSt6 Next: 7srB7U6HqSQxfWUntRRfSByRCBj2YzuH5o989GiTq4ib Diff:
Old | New | Differences | |
---|---|---|---|
4 | 4 | let admPub = base58'E5xdZLn3yHKAn29pTyubhr9R1mkRGg9WKAcpPrCYFYHx' | |
5 | 5 | ||
6 | 6 | let paymentAsset = base58'3Eh6z6z6ouFpWxGKrPaPnZwmDnDjgYHV6tqCmZf2G7tk' | |
7 | + | ||
8 | + | let nftKey = "_nft_" | |
7 | 9 | ||
8 | 10 | let shutDownKey = "_shutDown_" | |
9 | 11 | ||
83 | 85 | let totalPayment = valueOrElse(getInteger(this, ((paymentKey + totalPaymentKey) + toString(eventId))), 0) | |
84 | 86 | let walletPayment = valueOrElse(getInteger(this, (((paymentKey + walletPaymentKey) + currentKey) + toString(eventId))), 0) | |
85 | 87 | let shareHolderCount = valueOrElse(getInteger(this, ((paymentKey + shareHolderCountKey) + toString(eventId))), 0) | |
86 | - | if (( | |
88 | + | if ((height > startBlock)) | |
87 | 89 | then throw("crowdfunding not started") | |
88 | - | else if (( | |
90 | + | else if ((endBlock >= height)) | |
89 | 91 | then throw("crowdfunding is over") | |
90 | 92 | else if ((totalPayment >= hardCap)) | |
91 | 93 | then throw("crowdfunding is reached to hard cap. thank you for participating!") | |
111 | 113 | ||
112 | 114 | ||
113 | 115 | @Callable(i) | |
116 | + | func claimShare () = throw("event owner will claim the money") | |
117 | + | ||
118 | + | ||
119 | + | ||
120 | + | @Callable(i) | |
114 | 121 | func refund () = throw("if not success payers gonna refund") | |
115 | 122 | ||
116 | 123 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let admPub = base58'E5xdZLn3yHKAn29pTyubhr9R1mkRGg9WKAcpPrCYFYHx' | |
5 | 5 | ||
6 | 6 | let paymentAsset = base58'3Eh6z6z6ouFpWxGKrPaPnZwmDnDjgYHV6tqCmZf2G7tk' | |
7 | + | ||
8 | + | let nftKey = "_nft_" | |
7 | 9 | ||
8 | 10 | let shutDownKey = "_shutDown_" | |
9 | 11 | ||
10 | 12 | let eventKey = "_event_" | |
11 | 13 | ||
12 | 14 | let paymentKey = "_payment_" | |
13 | 15 | ||
14 | 16 | let globalEventIdKey = "_eventId_" | |
15 | 17 | ||
16 | 18 | let startBlockKey = "_startBlock_" | |
17 | 19 | ||
18 | 20 | let endBlockKey = "_endBlock_" | |
19 | 21 | ||
20 | 22 | let imageKey = "_image_" | |
21 | 23 | ||
22 | 24 | let ownerKey = "_owner_" | |
23 | 25 | ||
24 | 26 | let urlKey = "_url_" | |
25 | 27 | ||
26 | 28 | let hardCapKey = "_hardCap_" | |
27 | 29 | ||
28 | 30 | let titleKey = "_title_" | |
29 | 31 | ||
30 | 32 | let shareHolderCountKey = "_shareHolderCount_" | |
31 | 33 | ||
32 | 34 | let totalPaymentKey = "_totalPayment_" | |
33 | 35 | ||
34 | 36 | let walletPaymentKey = "_walletPayment_" | |
35 | 37 | ||
36 | 38 | func isPaymentOk (i) = { | |
37 | 39 | let acceptableAssetId = paymentAsset | |
38 | 40 | if ((size(i.payments) == 0)) | |
39 | 41 | then throw("Payment not attached") | |
40 | 42 | else { | |
41 | 43 | let p = i.payments[0] | |
42 | 44 | match p.assetId { | |
43 | 45 | case assetId: ByteVector => | |
44 | 46 | if ((assetId == acceptableAssetId)) | |
45 | 47 | then (p.amount > 0) | |
46 | 48 | else false | |
47 | 49 | case _ => | |
48 | 50 | throw("Wrong payment asset") | |
49 | 51 | } | |
50 | 52 | } | |
51 | 53 | } | |
52 | 54 | ||
53 | 55 | ||
54 | 56 | @Callable(i) | |
55 | 57 | func shutdown (isOpen) = if ((i.callerPublicKey == admPub)) | |
56 | 58 | then [BooleanEntry(shutDownKey, isOpen)] | |
57 | 59 | else throw("you are not allow to do this!") | |
58 | 60 | ||
59 | 61 | ||
60 | 62 | ||
61 | 63 | @Callable(i) | |
62 | 64 | func settings () = throw("settings") | |
63 | 65 | ||
64 | 66 | ||
65 | 67 | ||
66 | 68 | @Callable(i) | |
67 | 69 | func create (title,image,owner,startBlock,endBlock,url,hardCap) = { | |
68 | 70 | let eventId = valueOrElse(getInteger(this, (eventKey + globalEventIdKey)), 0) | |
69 | 71 | let increaseEventId = (eventId + 1) | |
70 | 72 | if ((i.callerPublicKey == admPub)) | |
71 | 73 | 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)] | |
72 | 74 | else throw("you are not allowed") | |
73 | 75 | } | |
74 | 76 | ||
75 | 77 | ||
76 | 78 | ||
77 | 79 | @Callable(i) | |
78 | 80 | func funding (eventId) = { | |
79 | 81 | let startBlock = valueOrErrorMessage(getInteger(this, ((eventKey + startBlockKey) + toString(eventId))), "can not find event 1") | |
80 | 82 | let endBlock = valueOrErrorMessage(getInteger(this, ((eventKey + endBlockKey) + toString(eventId))), "can not find event 2") | |
81 | 83 | let hardCap = valueOrErrorMessage(getInteger(this, ((eventKey + hardCapKey) + toString(eventId))), "can not find event 3") | |
82 | 84 | let currentKey = toBase58String(i.caller.bytes) | |
83 | 85 | let totalPayment = valueOrElse(getInteger(this, ((paymentKey + totalPaymentKey) + toString(eventId))), 0) | |
84 | 86 | let walletPayment = valueOrElse(getInteger(this, (((paymentKey + walletPaymentKey) + currentKey) + toString(eventId))), 0) | |
85 | 87 | let shareHolderCount = valueOrElse(getInteger(this, ((paymentKey + shareHolderCountKey) + toString(eventId))), 0) | |
86 | - | if (( | |
88 | + | if ((height > startBlock)) | |
87 | 89 | then throw("crowdfunding not started") | |
88 | - | else if (( | |
90 | + | else if ((endBlock >= height)) | |
89 | 91 | then throw("crowdfunding is over") | |
90 | 92 | else if ((totalPayment >= hardCap)) | |
91 | 93 | then throw("crowdfunding is reached to hard cap. thank you for participating!") | |
92 | 94 | else if (!(isPaymentOk(i))) | |
93 | 95 | then throw("you have to attach payment greater than zero") | |
94 | 96 | else { | |
95 | 97 | let shutDown = valueOrElse(getBoolean(this, shutDownKey), true) | |
96 | 98 | if (!(shutDown)) | |
97 | 99 | then throw("emergency shutdown") | |
98 | 100 | else { | |
99 | 101 | let p = i.payments[0] | |
100 | 102 | let paymentAmount = p.amount | |
101 | 103 | [IntegerEntry(((paymentKey + shareHolderCountKey) + toString(eventId)), (shareHolderCount + 1)), IntegerEntry(((paymentKey + totalPaymentKey) + toString(eventId)), (totalPayment + paymentAmount)), IntegerEntry(((((paymentKey + walletPaymentKey) + currentKey) + "_") + toString(eventId)), (walletPayment + paymentAmount))] | |
102 | 104 | } | |
103 | 105 | } | |
104 | 106 | } | |
105 | 107 | ||
106 | 108 | ||
107 | 109 | ||
108 | 110 | @Callable(i) | |
109 | 111 | func claim () = throw("event owner will claim the money") | |
110 | 112 | ||
111 | 113 | ||
112 | 114 | ||
113 | 115 | @Callable(i) | |
116 | + | func claimShare () = throw("event owner will claim the money") | |
117 | + | ||
118 | + | ||
119 | + | ||
120 | + | @Callable(i) | |
114 | 121 | func refund () = throw("if not success payers gonna refund") | |
115 | 122 | ||
116 | 123 | ||
117 | 124 | ||
118 | 125 | @Callable(i) | |
119 | 126 | func delete (key) = if ((i.callerPublicKey == admPub)) | |
120 | 127 | then [DeleteEntry(key)] | |
121 | 128 | else throw("you are not allowed to do this!") | |
122 | 129 | ||
123 | 130 | ||
124 | 131 | @Verifier(tx) | |
125 | 132 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
126 | 133 |
github/deemru/w8io/169f3d6 64.06 ms ◑