tx · Ezg5DzcMot3xgmkdhxxYJxb5RMM2NPaovSazy29dz8vf 3N4ynz2uyA7cErymQd46zgwVJEEfXYDRXtA: -0.01200000 Waves 2023.08.02 11:47 [2692736] smart account 3N4ynz2uyA7cErymQd46zgwVJEEfXYDRXtA > SELF 0.00000000 Waves
{ "type": 13, "id": "Ezg5DzcMot3xgmkdhxxYJxb5RMM2NPaovSazy29dz8vf", "fee": 1200000, "feeAssetId": null, "timestamp": 1690966057962, "version": 2, "chainId": 84, "sender": "3N4ynz2uyA7cErymQd46zgwVJEEfXYDRXtA", "senderPublicKey": "CiRX9ubobzbD36ZwTyuBFiPnPkmzMQ7GDsF3hMoVbcVR", "proofs": [ "51jJXbWRVcwqXTmG9yEvao1ERNJBwHJh6e8UhLwGnQGqWfznS2yn6FD44Ak35VeAmbYNCcysdR8iH86bXAnW9gqx" ], "script": "base64:AAIEAAAAAAAAABAIAhIHCgUBAQEBARIDCgEBAAAADAAAAAAjcHJlc2FsZV90aW1lc3RhbXBfY29udHJvbGxlcl9wdWJrZXkBAAAAIOOt17LUijbWojwDE5tgFkw1Y8cwIr3jselcewpp7rwjAAAAABJjb250cm9sbGVyX2FkZHJlc3MJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEFAAAAI3ByZXNhbGVfdGltZXN0YW1wX2NvbnRyb2xsZXJfcHVia2V5AAAAAAd0c2Vycm9yAgAAADxFbmQgVGltZXN0YW1wIGNhbid0IGJlIGxlc3MgdGhhbiBvciBlcXVhbCB0byBTdGFydCBUaW1lc3RhbXAAAAAACnByaWNlZXJyb3ICAAAAJlRva2VuIFByaWNlIGNhbid0IGJlIGxlc3MgdGhhbiBvciBaZXJvAAAAAAhjYXBlcnJvcgIAAAAzU29mdCBDYXAgQW1vdW50IGNhbid0IGJlIG1vcmUgdGhhbiBIYXJkIENhcCBBbW91bnQuAAAAAAhvcmRlcm1zZwIAAAAqPGgxPk9yZGVyIFN1Ym1pdHRlZCBTdWNjZXNzZnVsbHkhP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dXMFAAAAFnNvZnRjYXBfcmVhY2hfc3RhdHVzXzIJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAUaGFyZGNhcF9yZWFjaF9zdGF0dXMFAAAAFmhhcmRjYXBfcmVhY2hfc3RhdHVzXzIJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAHbWVzc2FnZQUAAAAIb3JkZXJtc2cFAAAAA25pbAkAAAIAAAABAgAAAAZFcnJvci4AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleUfTE8A=", "height": 2692736, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Dg1y5eWutS3omXBpRrAqMQEWMR8FBFqkrXTdhnKyQoJm Next: E2UEhaJioiQDDWxWBLa7C8jVpX3aH1ojEuLmoK5MKrAc Diff:
Old | New | Differences | |
---|---|---|---|
11 | 11 | ||
12 | 12 | let e = "Soft Cap Amount can't be more than Hard Cap Amount." | |
13 | 13 | ||
14 | - | let f = "<h1> | |
14 | + | let f = "<h1>Order Submitted Successfully!</h1><br>" | |
15 | 15 | ||
16 | 16 | let g = "<h1>PreSale Parameters Submitted Successfully!</h1><br>" | |
17 | 17 | ||
18 | - | let h = "DApp Need | |
18 | + | let h = "DApp Need WAVES Token as Attach payment[1]." | |
19 | 19 | ||
20 | - | let i = " | |
20 | + | let i = "Attached payment[1] is less than token price " | |
21 | 21 | ||
22 | - | let j = " | |
22 | + | let j = "Dapp will start Pre-Sale at Timestamp " | |
23 | 23 | ||
24 | - | let k = " | |
24 | + | let k = "Minimum 0.1 WAVES required on Your Address, Please hold min. 0.1 WAVES on your Address to place order." | |
25 | 25 | ||
26 | - | let l = "Pre-Sale | |
26 | + | let l = "Pre-Sale is over for this Round." | |
27 | 27 | ||
28 | 28 | @Callable(m) | |
29 | 29 | func SetPreSaleParameters (n,o,p,q,r) = { | |
55 | 55 | } | |
56 | 56 | ||
57 | 57 | ||
58 | - | @Verifier(y) | |
59 | - | func z () = sigVerify(y.bodyBytes, y.proofs[0], y.senderPublicKey) | |
58 | + | ||
59 | + | @Callable(m) | |
60 | + | func PlacePresaleOrder (y) = { | |
61 | + | let z = valueOrErrorMessage(getInteger(this, (toString(y) + "_Token_Price")), "Token Price not Found for this Presale Round.") | |
62 | + | let A = valueOrErrorMessage(getInteger(this, (toString(y) + "_Presale_Start_TimeStamp")), "Start Timestamp not Found for this Presale Round.") | |
63 | + | let B = valueOrErrorMessage(getInteger(this, (toString(y) + "_Presale_End_TimeStamp")), "End Timestamp not Found for this Presale Round.") | |
64 | + | let C = valueOrErrorMessage(getInteger(this, (toString(y) + "_Soft_Cap_Amount")), "Soft Cap Amount not Found for this Presale Round.") | |
65 | + | let D = valueOrErrorMessage(getInteger(this, (toString(y) + "_Hard_Cap_Amount")), "Hard Cap Amount not Found for this Presale Round.") | |
66 | + | let E = "No" | |
67 | + | let F = "Yes" | |
68 | + | let G = "No" | |
69 | + | let H = "Yes" | |
70 | + | let I = unit | |
71 | + | let J = toBase58String(m.caller.bytes) | |
72 | + | let K = if ((size(m.payments) == 1)) | |
73 | + | then m.payments[0] | |
74 | + | else throw(h) | |
75 | + | let L = { | |
76 | + | let v = getInteger(this, (toString(y) + "_Funds_Collection")) | |
77 | + | if ($isInstanceOf(v, "Int")) | |
78 | + | then { | |
79 | + | let w = v | |
80 | + | w | |
81 | + | } | |
82 | + | else 0 | |
83 | + | } | |
84 | + | let M = (L + K.amount) | |
85 | + | let N = { | |
86 | + | let v = getInteger(this, (toString(y) + "_total_txns")) | |
87 | + | if ($isInstanceOf(v, "Int")) | |
88 | + | then { | |
89 | + | let w = v | |
90 | + | w | |
91 | + | } | |
92 | + | else 0 | |
93 | + | } | |
94 | + | let O = (N + 1) | |
95 | + | let P = { | |
96 | + | let v = getInteger(this, ((toString(y) + "_") + J)) | |
97 | + | if ($isInstanceOf(v, "Int")) | |
98 | + | then { | |
99 | + | let w = v | |
100 | + | w | |
101 | + | } | |
102 | + | else 0 | |
103 | + | } | |
104 | + | let Q = (P + K.amount) | |
105 | + | if (isDefined(K.assetId)) | |
106 | + | then throw(h) | |
107 | + | else if ((z > K.amount)) | |
108 | + | then throw((((i + "[") + toString(z)) + "/10^8.]")) | |
109 | + | else if ((A > lastBlock.timestamp)) | |
110 | + | then throw((j + toString(A))) | |
111 | + | else if ((C > M)) | |
112 | + | then [IntegerEntry((toString(y) + "_Funds_Collection"), M), IntegerEntry(((toString(y) + "_") + J), Q), IntegerEntry((toString(y) + "_total_txns"), O), StringEntry("softcap_reach_status", E), StringEntry("hardcap_reach_status", G), StringEntry("message", f)] | |
113 | + | else if ((M >= C)) | |
114 | + | then [IntegerEntry((toString(y) + "_Funds_Collection"), M), IntegerEntry(((toString(y) + "_") + J), Q), IntegerEntry((toString(y) + "_total_txns"), O), StringEntry("softcap_reach_status", F), StringEntry("message", f)] | |
115 | + | else if ((M >= D)) | |
116 | + | then [IntegerEntry((toString(y) + "_Funds_Collection"), M), IntegerEntry(((toString(y) + "_") + J), Q), IntegerEntry((toString(y) + "_total_txns"), O), StringEntry("softcap_reach_status", F), StringEntry("hardcap_reach_status", H), StringEntry("message", f)] | |
117 | + | else throw("Error.") | |
118 | + | } | |
119 | + | ||
120 | + | ||
121 | + | @Verifier(R) | |
122 | + | func S () = sigVerify(R.bodyBytes, R.proofs[0], R.senderPublicKey) | |
60 | 123 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr' | |
5 | 5 | ||
6 | 6 | let b = addressFromPublicKey(a) | |
7 | 7 | ||
8 | 8 | let c = "End Timestamp can't be less than or equal to Start Timestamp" | |
9 | 9 | ||
10 | 10 | let d = "Token Price can't be less than or Zero" | |
11 | 11 | ||
12 | 12 | let e = "Soft Cap Amount can't be more than Hard Cap Amount." | |
13 | 13 | ||
14 | - | let f = "<h1> | |
14 | + | let f = "<h1>Order Submitted Successfully!</h1><br>" | |
15 | 15 | ||
16 | 16 | let g = "<h1>PreSale Parameters Submitted Successfully!</h1><br>" | |
17 | 17 | ||
18 | - | let h = "DApp Need | |
18 | + | let h = "DApp Need WAVES Token as Attach payment[1]." | |
19 | 19 | ||
20 | - | let i = " | |
20 | + | let i = "Attached payment[1] is less than token price " | |
21 | 21 | ||
22 | - | let j = " | |
22 | + | let j = "Dapp will start Pre-Sale at Timestamp " | |
23 | 23 | ||
24 | - | let k = " | |
24 | + | let k = "Minimum 0.1 WAVES required on Your Address, Please hold min. 0.1 WAVES on your Address to place order." | |
25 | 25 | ||
26 | - | let l = "Pre-Sale | |
26 | + | let l = "Pre-Sale is over for this Round." | |
27 | 27 | ||
28 | 28 | @Callable(m) | |
29 | 29 | func SetPreSaleParameters (n,o,p,q,r) = { | |
30 | 30 | let s = n | |
31 | 31 | let t = o | |
32 | 32 | let u = { | |
33 | 33 | let v = getInteger(this, "Current_Funding_Round") | |
34 | 34 | if ($isInstanceOf(v, "Int")) | |
35 | 35 | then { | |
36 | 36 | let w = v | |
37 | 37 | w | |
38 | 38 | } | |
39 | 39 | else 0 | |
40 | 40 | } | |
41 | 41 | let x = (u + 1) | |
42 | 42 | if ((m.caller != b)) | |
43 | 43 | then throw((("This Address is not Authorized. Only " + toString(b)) + " is Authorized Address to Sign it.")) | |
44 | 44 | else if ((size(toString(n)) != 13)) | |
45 | 45 | then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
46 | 46 | else if ((size(toString(o)) != 13)) | |
47 | 47 | then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
48 | 48 | else if ((1 > p)) | |
49 | 49 | then throw(d) | |
50 | 50 | else if ((s >= t)) | |
51 | 51 | then throw(c) | |
52 | 52 | else if ((q > r)) | |
53 | 53 | then throw(e) | |
54 | 54 | else [IntegerEntry("Current_Funding_Round", x), IntegerEntry((toString(x) + "_Presale_Start_TimeStamp"), s), IntegerEntry((toString(x) + "_Presale_End_TimeStamp"), t), IntegerEntry((toString(x) + "_Token_Price"), p), IntegerEntry((toString(x) + "_Soft_Cap_Amount"), q), IntegerEntry((toString(x) + "_Hard_Cap_Amount"), r), IntegerEntry((toString(x) + "_Initiated_Height"), height), StringEntry("message", g)] | |
55 | 55 | } | |
56 | 56 | ||
57 | 57 | ||
58 | - | @Verifier(y) | |
59 | - | func z () = sigVerify(y.bodyBytes, y.proofs[0], y.senderPublicKey) | |
58 | + | ||
59 | + | @Callable(m) | |
60 | + | func PlacePresaleOrder (y) = { | |
61 | + | let z = valueOrErrorMessage(getInteger(this, (toString(y) + "_Token_Price")), "Token Price not Found for this Presale Round.") | |
62 | + | let A = valueOrErrorMessage(getInteger(this, (toString(y) + "_Presale_Start_TimeStamp")), "Start Timestamp not Found for this Presale Round.") | |
63 | + | let B = valueOrErrorMessage(getInteger(this, (toString(y) + "_Presale_End_TimeStamp")), "End Timestamp not Found for this Presale Round.") | |
64 | + | let C = valueOrErrorMessage(getInteger(this, (toString(y) + "_Soft_Cap_Amount")), "Soft Cap Amount not Found for this Presale Round.") | |
65 | + | let D = valueOrErrorMessage(getInteger(this, (toString(y) + "_Hard_Cap_Amount")), "Hard Cap Amount not Found for this Presale Round.") | |
66 | + | let E = "No" | |
67 | + | let F = "Yes" | |
68 | + | let G = "No" | |
69 | + | let H = "Yes" | |
70 | + | let I = unit | |
71 | + | let J = toBase58String(m.caller.bytes) | |
72 | + | let K = if ((size(m.payments) == 1)) | |
73 | + | then m.payments[0] | |
74 | + | else throw(h) | |
75 | + | let L = { | |
76 | + | let v = getInteger(this, (toString(y) + "_Funds_Collection")) | |
77 | + | if ($isInstanceOf(v, "Int")) | |
78 | + | then { | |
79 | + | let w = v | |
80 | + | w | |
81 | + | } | |
82 | + | else 0 | |
83 | + | } | |
84 | + | let M = (L + K.amount) | |
85 | + | let N = { | |
86 | + | let v = getInteger(this, (toString(y) + "_total_txns")) | |
87 | + | if ($isInstanceOf(v, "Int")) | |
88 | + | then { | |
89 | + | let w = v | |
90 | + | w | |
91 | + | } | |
92 | + | else 0 | |
93 | + | } | |
94 | + | let O = (N + 1) | |
95 | + | let P = { | |
96 | + | let v = getInteger(this, ((toString(y) + "_") + J)) | |
97 | + | if ($isInstanceOf(v, "Int")) | |
98 | + | then { | |
99 | + | let w = v | |
100 | + | w | |
101 | + | } | |
102 | + | else 0 | |
103 | + | } | |
104 | + | let Q = (P + K.amount) | |
105 | + | if (isDefined(K.assetId)) | |
106 | + | then throw(h) | |
107 | + | else if ((z > K.amount)) | |
108 | + | then throw((((i + "[") + toString(z)) + "/10^8.]")) | |
109 | + | else if ((A > lastBlock.timestamp)) | |
110 | + | then throw((j + toString(A))) | |
111 | + | else if ((C > M)) | |
112 | + | then [IntegerEntry((toString(y) + "_Funds_Collection"), M), IntegerEntry(((toString(y) + "_") + J), Q), IntegerEntry((toString(y) + "_total_txns"), O), StringEntry("softcap_reach_status", E), StringEntry("hardcap_reach_status", G), StringEntry("message", f)] | |
113 | + | else if ((M >= C)) | |
114 | + | then [IntegerEntry((toString(y) + "_Funds_Collection"), M), IntegerEntry(((toString(y) + "_") + J), Q), IntegerEntry((toString(y) + "_total_txns"), O), StringEntry("softcap_reach_status", F), StringEntry("message", f)] | |
115 | + | else if ((M >= D)) | |
116 | + | then [IntegerEntry((toString(y) + "_Funds_Collection"), M), IntegerEntry(((toString(y) + "_") + J), Q), IntegerEntry((toString(y) + "_total_txns"), O), StringEntry("softcap_reach_status", F), StringEntry("hardcap_reach_status", H), StringEntry("message", f)] | |
117 | + | else throw("Error.") | |
118 | + | } | |
119 | + | ||
120 | + | ||
121 | + | @Verifier(R) | |
122 | + | func S () = sigVerify(R.bodyBytes, R.proofs[0], R.senderPublicKey) | |
60 | 123 |
github/deemru/w8io/169f3d6 45.29 ms ◑