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