tx · ADEVQy7NTuyiKWCi6hjERR7zqqA7p8M3BNBBvhE9Yw2C

3MyLnBsVm9pw43K9eba5UExxb3efeai91KP:  -0.01000000 Waves

2022.12.22 14:00 [2371412] smart account 3MyLnBsVm9pw43K9eba5UExxb3efeai91KP > SELF 0.00000000 Waves

{ "type": 13, "id": "ADEVQy7NTuyiKWCi6hjERR7zqqA7p8M3BNBBvhE9Yw2C", "fee": 1000000, "feeAssetId": null, "timestamp": 1671706813282, "version": 2, "chainId": 84, "sender": "3MyLnBsVm9pw43K9eba5UExxb3efeai91KP", "senderPublicKey": "E5xdZLn3yHKAn29pTyubhr9R1mkRGg9WKAcpPrCYFYHx", "proofs": [ "3RSCzMUcSYRtpwM7zk1opg9BpsabkhqiExGiZDfJoKiq8RVZPvnFVCwxPKkrvs8z2BL9uWKZvKcsTu4vMnbi2mr6" ], "script": "base64:AAIFAAAAAAAAAB8IAhIAEgASCQoHCAgIAQEIARIDCgEBEgASABIDCgEIAAAAEAAAAAAGYWRtUHViAQAAACDCbSeYCFZIOpb4r9LWa8L402jDi6OfxQF86gIW2LZmcwAAAAAMcGF5bWVudEFzc2V0AQAAACAhOUTpKXxfz4r4M5I49SS+rwv2+rnVA49FLcaoUr/6uQAAAAAIZXZlbnRLZXkCAAAAB19ldmVudF8AAAAACnBheW1lbnRLZXkCAAAAA19wXwAAAAAQZ2xvYmFsRXZlbnRJZEtleQIAAAAJX2V2ZW50SWRfAAAAAA1zdGFydEJsb2NrS2V5AgAAAAxfc3RhcnRCbG9ja18AAAAAC2VuZEJsb2NrS2V5AgAAAApfZW5kQmxvY2tfAAAAAAhpbWFnZUtleQIAAAAHX2ltYWdlXwAAAAAIb3duZXJLZXkCAAAAB19vd25lcl8AAAAABnVybEtleQIAAAAFX3VybF8AAAAACmhhcmRDYXBLZXkCAAAACV9oYXJkQ2FwXwAAAAAIdGl0bGVLZXkCAAAAB190aXRsZV8AAAAAE3NoYXJlSG9sZGVyQ291bnRLZXkCAAAAEl9zaGFyZ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AAAAAIFAAAACnBheW1lbnRLZXkFAAAAD3RvdGFsUGF5bWVudEtleQkAAaQAAAABBQAAAAdldmVudElkCQAAZAAAAAIFAAAADHRvdGFsUGF5bWVudAUAAAANcGF5bWVudEFtb3VudAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAAKcGF5bWVudEtleQUAAAAQd2FsbGV0UGF5bWVudEtleQUAAAAKY3VycmVudEtleQkAAaQAAAABBQAAAAdldmVudElkCQAAZAAAAAIFAAAADXdhbGxldFBheW1lbnQFAAAADXBheW1lbnRBbW91bnQFAAAAA25pbAAAAAFpAQAAAAVjbGFpbQAAAAAJAAACAAAAAQIAAAAgZXZlbnQgb3duZXIgd2lsbCBjbGFpbSB0aGUgbW9uZXkAAAABaQEAAAAGcmVmdW5kAAAAAAkAAAIAAAABAgAAACJpZiBub3Qgc3VjY2VzcyBwYXllcnMgZ29ubmEgcmVmdW5kAAAAAWkBAAAABmRlbGV0ZQAAAAEAAAADa2V5AwkAAAAAAAACCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkFAAAABmFkbVB1YgkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAANrZXkFAAAAA25pbAkAAAIAAAABAgAAAB95b3UgYXJlIG5vdCBhbGxvd2VkIHRvIGRvIHRoaXMhAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmXrCQs", "height": 2371412, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AApqRyrQSF48dUxEgMy55suavF82ipXJAGmNo3ngKDxp Next: HwPhrikPUtUfax3gB9BHYtFhfLhfHFmR5cNgVz6yhtnE Diff:
OldNewDifferences
8080 let F = valueOrElse(getInteger(this, ((d + n) + toString(C))), 0)
8181 let G = valueOrElse(getInteger(this, (((d + o) + E) + toString(C))), 0)
8282 let H = valueOrElse(getInteger(this, ((d + m) + toString(C))), 0)
83- if ((height > y))
83+ if ((y > height))
8484 then throw("crowdfunding not started")
85- else if ((z >= height))
85+ else if ((height >= z))
8686 then throw("crowdfunding is over")
8787 else if ((F >= B))
8888 then throw("crowdfunding is reached to hard cap. thank you for participating!")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'E5xdZLn3yHKAn29pTyubhr9R1mkRGg9WKAcpPrCYFYHx'
55
66 let b = base58'3Eh6z6z6ouFpWxGKrPaPnZwmDnDjgYHV6tqCmZf2G7tk'
77
88 let c = "_event_"
99
1010 let d = "_p_"
1111
1212 let e = "_eventId_"
1313
1414 let f = "_startBlock_"
1515
1616 let g = "_endBlock_"
1717
1818 let h = "_image_"
1919
2020 let i = "_owner_"
2121
2222 let j = "_url_"
2323
2424 let k = "_hardCap_"
2525
2626 let l = "_title_"
2727
2828 let m = "_shareHolderCount_"
2929
3030 let n = "_totalPayment_"
3131
3232 let o = "_walletPayment_"
3333
3434 func p (q) = {
3535 let r = b
3636 if ((size(q.payments) == 0))
3737 then throw("Payment not attached")
3838 else {
3939 let s = q.payments[0]
4040 let t = s.assetId
4141 if ($isInstanceOf(t, "ByteVector"))
4242 then {
4343 let u = t
4444 if ((u == r))
4545 then (s.amount > 0)
4646 else false
4747 }
4848 else throw("Wrong payment asset")
4949 }
5050 }
5151
5252
5353 @Callable(q)
5454 func shutdown () = throw("shutdown")
5555
5656
5757
5858 @Callable(q)
5959 func settings () = throw("settings")
6060
6161
6262
6363 @Callable(q)
6464 func create (v,w,x,y,z,A,B) = {
6565 let C = valueOrElse(getInteger(this, e), 0)
6666 let D = (C + 1)
6767 if ((q.callerPublicKey == a))
6868 then [StringEntry(((c + h) + toString(D)), w), StringEntry(((c + i) + toString(D)), x), StringEntry(((c + l) + toString(D)), v), IntegerEntry(((c + f) + toString(D)), y), IntegerEntry(((c + g) + toString(D)), z), StringEntry(((c + j) + toString(D)), A), IntegerEntry(((c + k) + toString(D)), B), IntegerEntry((c + e), D)]
6969 else throw("you are not allowed")
7070 }
7171
7272
7373
7474 @Callable(q)
7575 func funding (C) = {
7676 let y = valueOrErrorMessage(getInteger(this, ((c + f) + toString(C))), "err")
7777 let z = valueOrErrorMessage(getInteger(this, ((c + g) + toString(C))), "err")
7878 let B = valueOrErrorMessage(getInteger(this, ((c + k) + toString(C))), "err")
7979 let E = toBase58String(q.caller.bytes)
8080 let F = valueOrElse(getInteger(this, ((d + n) + toString(C))), 0)
8181 let G = valueOrElse(getInteger(this, (((d + o) + E) + toString(C))), 0)
8282 let H = valueOrElse(getInteger(this, ((d + m) + toString(C))), 0)
83- if ((height > y))
83+ if ((y > height))
8484 then throw("crowdfunding not started")
85- else if ((z >= height))
85+ else if ((height >= z))
8686 then throw("crowdfunding is over")
8787 else if ((F >= B))
8888 then throw("crowdfunding is reached to hard cap. thank you for participating!")
8989 else if (!(p(q)))
9090 then throw("you have to attach payment greater than zero")
9191 else {
9292 let s = q.payments[0]
9393 let I = s.amount
9494 [IntegerEntry(((d + m) + toString(C)), (H + 1)), IntegerEntry(((d + n) + toString(C)), (F + I)), IntegerEntry((((d + o) + E) + toString(C)), (G + I))]
9595 }
9696 }
9797
9898
9999
100100 @Callable(q)
101101 func claim () = throw("event owner will claim the money")
102102
103103
104104
105105 @Callable(q)
106106 func refund () = throw("if not success payers gonna refund")
107107
108108
109109
110110 @Callable(q)
111111 func delete (J) = if ((q.callerPublicKey == a))
112112 then [DeleteEntry(J)]
113113 else throw("you are not allowed to do this!")
114114
115115
116116 @Verifier(K)
117117 func L () = sigVerify(K.bodyBytes, K.proofs[0], K.senderPublicKey)
118118

github/deemru/w8io/026f985 
48.26 ms