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
77
88 let c = "_event_"
99
10-let d = "_eventId_"
10+let d = "_p_"
1111
12-let e = "_startBlock_"
12+let e = "_eventId_"
1313
14-let f = "_endBlock_"
14+let f = "_startBlock_"
1515
16-let g = "_image_"
16+let g = "_endBlock_"
1717
18-let h = "_owner_"
18+let h = "_image_"
1919
20-let i = "_url_"
20+let i = "_owner_"
2121
22-let j = "_hardCap_"
22+let j = "_url_"
2323
24-let k = "_title_"
24+let k = "_hardCap_"
2525
26-let l = "_shareHolderCount_"
26+let l = "_title_"
2727
28-let m = "_totalPayment_"
28+let m = "_shareHolderCount_"
2929
30-let n = "_walletPayment_"
30+let n = "_totalPayment_"
3131
32-func o (p) = {
33- let q = b
34- if ((size(p.payments) == 0))
32+let o = "_walletPayment_"
33+
34+func p (q) = {
35+ let r = b
36+ if ((size(q.payments) == 0))
3537 then throw("Payment not attached")
3638 else {
37- let r = p.payments[0]
38- let s = r.assetId
39- if ($isInstanceOf(s, "ByteVector"))
39+ let s = q.payments[0]
40+ let t = s.assetId
41+ if ($isInstanceOf(t, "ByteVector"))
4042 then {
41- let t = s
42- if ((t == q))
43- then (r.amount > 0)
43+ let u = t
44+ if ((u == r))
45+ then (s.amount > 0)
4446 else false
4547 }
4648 else throw("Wrong payment asset")
4850 }
4951
5052
51-@Callable(p)
53+@Callable(q)
5254 func shutdown () = throw("shutdown")
5355
5456
5557
56-@Callable(p)
58+@Callable(q)
5759 func settings () = throw("settings")
5860
5961
6062
61-@Callable(p)
62-func create (u,v,w,x,y,z,A) = {
63- let B = valueOrElse(getInteger(this, d), 0)
64- let C = (B + 1)
65- if ((p.callerPublicKey == a))
66- then [StringEntry((g + toString(C)), v), StringEntry((h + toString(C)), w), StringEntry((k + toString(C)), u), IntegerEntry((e + toString(C)), x), IntegerEntry((f + toString(C)), y), StringEntry((i + toString(C)), z), IntegerEntry((j + toString(C)), A), IntegerEntry(d, C)]
63+@Callable(q)
64+func create (v,w,x,y,z,A,B) = {
65+ let C = valueOrElse(getInteger(this, e), 0)
66+ let D = (C + 1)
67+ if ((q.callerPublicKey == a))
68+ 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)]
6769 else throw("you are not allowed")
6870 }
6971
7072
7173
72-@Callable(p)
73-func funding (B) = {
74- let x = valueOrErrorMessage(getInteger(this, (e + toString(B))), "err")
75- let y = valueOrErrorMessage(getInteger(this, (f + toString(B))), "err")
76- let A = valueOrErrorMessage(getInteger(this, (j + toString(B))), "err")
77- let D = toBase58String(p.caller.bytes)
78- let E = valueOrElse(getInteger(this, (m + toString(B))), 0)
79- let F = valueOrElse(getInteger(this, ((n + D) + toString(B))), 0)
80- let G = valueOrElse(getInteger(this, l), 0)
81- if ((height > x))
74+@Callable(q)
75+func funding (C) = {
76+ let y = valueOrErrorMessage(getInteger(this, ((c + f) + toString(C))), "err")
77+ let z = valueOrErrorMessage(getInteger(this, ((c + g) + toString(C))), "err")
78+ let B = valueOrErrorMessage(getInteger(this, ((c + k) + toString(C))), "err")
79+ let E = toBase58String(q.caller.bytes)
80+ let F = valueOrElse(getInteger(this, ((d + n) + toString(C))), 0)
81+ let G = valueOrElse(getInteger(this, (((d + o) + E) + toString(C))), 0)
82+ let H = valueOrElse(getInteger(this, ((d + m) + toString(C))), 0)
83+ if ((height > y))
8284 then throw("crowdfunding not started")
83- else if ((y >= height))
85+ else if ((z >= height))
8486 then throw("crowdfunding is over")
85- else if ((E >= A))
87+ else if ((F >= B))
8688 then throw("crowdfunding is reached to hard cap. thank you for participating!")
87- else if (!(o(p)))
89+ else if (!(p(q)))
8890 then throw("you have to attach payment greater than zero")
8991 else {
90- let r = p.payments[0]
91- let H = r.amount
92-[IntegerEntry((l + toString(B)), (G + 1)), IntegerEntry((m + toString(B)), (E + H)), IntegerEntry(((n + D) + toString(B)), (F + H))]
92+ let s = q.payments[0]
93+ let I = s.amount
94+[IntegerEntry(((d + m) + toString(C)), (H + 1)), IntegerEntry(((d + n) + toString(C)), (F + I)), IntegerEntry((((d + o) + E) + toString(C)), (G + I))]
9395 }
9496 }
9597
9698
9799
98-@Callable(p)
100+@Callable(q)
99101 func claim () = throw("event owner will claim the money")
100102
101103
102104
103-@Callable(p)
105+@Callable(q)
104106 func refund () = throw("if not success payers gonna refund")
105107
106108
107109
108-@Callable(p)
109-func delete (I) = if ((p.callerPublicKey == a))
110- then [DeleteEntry(I)]
110+@Callable(q)
111+func delete (J) = if ((q.callerPublicKey == a))
112+ then [DeleteEntry(J)]
111113 else throw("you are not allowed to do this!")
112114
113115
114-@Verifier(J)
115-func K () = sigVerify(J.bodyBytes, J.proofs[0], J.senderPublicKey)
116+@Verifier(K)
117+func L () = sigVerify(K.bodyBytes, K.proofs[0], K.senderPublicKey)
116118
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
10-let d = "_eventId_"
10+let d = "_p_"
1111
12-let e = "_startBlock_"
12+let e = "_eventId_"
1313
14-let f = "_endBlock_"
14+let f = "_startBlock_"
1515
16-let g = "_image_"
16+let g = "_endBlock_"
1717
18-let h = "_owner_"
18+let h = "_image_"
1919
20-let i = "_url_"
20+let i = "_owner_"
2121
22-let j = "_hardCap_"
22+let j = "_url_"
2323
24-let k = "_title_"
24+let k = "_hardCap_"
2525
26-let l = "_shareHolderCount_"
26+let l = "_title_"
2727
28-let m = "_totalPayment_"
28+let m = "_shareHolderCount_"
2929
30-let n = "_walletPayment_"
30+let n = "_totalPayment_"
3131
32-func o (p) = {
33- let q = b
34- if ((size(p.payments) == 0))
32+let o = "_walletPayment_"
33+
34+func p (q) = {
35+ let r = b
36+ if ((size(q.payments) == 0))
3537 then throw("Payment not attached")
3638 else {
37- let r = p.payments[0]
38- let s = r.assetId
39- if ($isInstanceOf(s, "ByteVector"))
39+ let s = q.payments[0]
40+ let t = s.assetId
41+ if ($isInstanceOf(t, "ByteVector"))
4042 then {
41- let t = s
42- if ((t == q))
43- then (r.amount > 0)
43+ let u = t
44+ if ((u == r))
45+ then (s.amount > 0)
4446 else false
4547 }
4648 else throw("Wrong payment asset")
4749 }
4850 }
4951
5052
51-@Callable(p)
53+@Callable(q)
5254 func shutdown () = throw("shutdown")
5355
5456
5557
56-@Callable(p)
58+@Callable(q)
5759 func settings () = throw("settings")
5860
5961
6062
61-@Callable(p)
62-func create (u,v,w,x,y,z,A) = {
63- let B = valueOrElse(getInteger(this, d), 0)
64- let C = (B + 1)
65- if ((p.callerPublicKey == a))
66- then [StringEntry((g + toString(C)), v), StringEntry((h + toString(C)), w), StringEntry((k + toString(C)), u), IntegerEntry((e + toString(C)), x), IntegerEntry((f + toString(C)), y), StringEntry((i + toString(C)), z), IntegerEntry((j + toString(C)), A), IntegerEntry(d, C)]
63+@Callable(q)
64+func create (v,w,x,y,z,A,B) = {
65+ let C = valueOrElse(getInteger(this, e), 0)
66+ let D = (C + 1)
67+ if ((q.callerPublicKey == a))
68+ 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)]
6769 else throw("you are not allowed")
6870 }
6971
7072
7173
72-@Callable(p)
73-func funding (B) = {
74- let x = valueOrErrorMessage(getInteger(this, (e + toString(B))), "err")
75- let y = valueOrErrorMessage(getInteger(this, (f + toString(B))), "err")
76- let A = valueOrErrorMessage(getInteger(this, (j + toString(B))), "err")
77- let D = toBase58String(p.caller.bytes)
78- let E = valueOrElse(getInteger(this, (m + toString(B))), 0)
79- let F = valueOrElse(getInteger(this, ((n + D) + toString(B))), 0)
80- let G = valueOrElse(getInteger(this, l), 0)
81- if ((height > x))
74+@Callable(q)
75+func funding (C) = {
76+ let y = valueOrErrorMessage(getInteger(this, ((c + f) + toString(C))), "err")
77+ let z = valueOrErrorMessage(getInteger(this, ((c + g) + toString(C))), "err")
78+ let B = valueOrErrorMessage(getInteger(this, ((c + k) + toString(C))), "err")
79+ let E = toBase58String(q.caller.bytes)
80+ let F = valueOrElse(getInteger(this, ((d + n) + toString(C))), 0)
81+ let G = valueOrElse(getInteger(this, (((d + o) + E) + toString(C))), 0)
82+ let H = valueOrElse(getInteger(this, ((d + m) + toString(C))), 0)
83+ if ((height > y))
8284 then throw("crowdfunding not started")
83- else if ((y >= height))
85+ else if ((z >= height))
8486 then throw("crowdfunding is over")
85- else if ((E >= A))
87+ else if ((F >= B))
8688 then throw("crowdfunding is reached to hard cap. thank you for participating!")
87- else if (!(o(p)))
89+ else if (!(p(q)))
8890 then throw("you have to attach payment greater than zero")
8991 else {
90- let r = p.payments[0]
91- let H = r.amount
92-[IntegerEntry((l + toString(B)), (G + 1)), IntegerEntry((m + toString(B)), (E + H)), IntegerEntry(((n + D) + toString(B)), (F + H))]
92+ let s = q.payments[0]
93+ let I = s.amount
94+[IntegerEntry(((d + m) + toString(C)), (H + 1)), IntegerEntry(((d + n) + toString(C)), (F + I)), IntegerEntry((((d + o) + E) + toString(C)), (G + I))]
9395 }
9496 }
9597
9698
9799
98-@Callable(p)
100+@Callable(q)
99101 func claim () = throw("event owner will claim the money")
100102
101103
102104
103-@Callable(p)
105+@Callable(q)
104106 func refund () = throw("if not success payers gonna refund")
105107
106108
107109
108-@Callable(p)
109-func delete (I) = if ((p.callerPublicKey == a))
110- then [DeleteEntry(I)]
110+@Callable(q)
111+func delete (J) = if ((q.callerPublicKey == a))
112+ then [DeleteEntry(J)]
111113 else throw("you are not allowed to do this!")
112114
113115
114-@Verifier(J)
115-func K () = sigVerify(J.bodyBytes, J.proofs[0], J.senderPublicKey)
116+@Verifier(K)
117+func L () = sigVerify(K.bodyBytes, K.proofs[0], K.senderPublicKey)
116118

github/deemru/w8io/169f3d6 
83.75 ms