tx · Dg1y5eWutS3omXBpRrAqMQEWMR8FBFqkrXTdhnKyQoJm 3N4ynz2uyA7cErymQd46zgwVJEEfXYDRXtA: -0.01200000 Waves 2023.08.02 08:51 [2692553] smart account 3N4ynz2uyA7cErymQd46zgwVJEEfXYDRXtA > SELF 0.00000000 Waves
{ "type": 13, "id": "Dg1y5eWutS3omXBpRrAqMQEWMR8FBFqkrXTdhnKyQoJm", "fee": 1200000, "feeAssetId": null, "timestamp": 1690955474938, "version": 2, "chainId": 84, "sender": "3N4ynz2uyA7cErymQd46zgwVJEEfXYDRXtA", "senderPublicKey": "CiRX9ubobzbD36ZwTyuBFiPnPkmzMQ7GDsF3hMoVbcVR", "proofs": [ "3hf3MCvVCHuMFhfDBqYumkGduFx2HZdWmQiZKEx76pbrWbbS4jCsGb75G5Cze8xPNad8mzUVg485knzhzkCbL8DZ" ], "script": "base64:AAIEAAAAAAAAAAsIAhIHCgUBAQEBAQAAAAwAAAAAI3ByZXNhbGVfdGltZXN0YW1wX2NvbnRyb2xsZXJfcHVia2V5AQAAACDjrdey1Io21qI8AxObYBZMNWPHMCK947HpXHsKae68IwAAAAASY29udHJvbGxlcl9hZGRyZXNzCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABBQAAACNwcmVzYWxlX3RpbWVzdGFtcF9jb250cm9sbGVyX3B1YmtleQAAAAAHdHNlcnJvcgIAAAA8RW5kIFRpbWVzdGFtcCBjYW4ndCBiZSBsZXNzIHRoYW4gb3IgZXF1YWwgdG8gU3RhcnQgVGltZXN0YW1wAAAAAApwcmljZWVycm9yAgAAACZUb2tlbiBQcmljZSBjYW4ndCBiZSBsZXNzIHRoYW4gb3IgWmVybwAAAAAIY2FwZXJyb3ICAAAAM1NvZnQgQ2FwIEFtb3VudCBjYW4ndCBiZSBtb3JlIHRoYW4gSGFyZCBDYXAgQW1vdW50LgAAAAAGdHhubXNnAgAAADA8aDE+VHJhbnNhY3Rpb24gU3VibWl0dGVkIFN1Y2Nlc3N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AAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXlObVpw", "height": 2692553, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9AHEkSqAEJ5Y5NGtqMAMWJhpk715N2rDTecARJL54HmH Next: Ezg5DzcMot3xgmkdhxxYJxb5RMM2NPaovSazy29dz8vf Diff:
Old | New | Differences | |
---|---|---|---|
5 | 5 | ||
6 | 6 | let controller_address = addressFromPublicKey(presale_timestamp_controller_pubkey) | |
7 | 7 | ||
8 | - | let launch_error = "Dapp will start Pre-Sale at Timestamp " | |
8 | + | let tserror = "End Timestamp can't be less than or equal to Start Timestamp" | |
9 | + | ||
10 | + | let priceerror = "Token Price can't be less than or Zero" | |
11 | + | ||
12 | + | let caperror = "Soft Cap Amount can't be more than Hard Cap Amount." | |
9 | 13 | ||
10 | 14 | let txnmsg = "<h1>Transaction Submitted Successfully!</h1><br>" | |
11 | 15 | ||
16 | + | let presale_init_msg = "<h1>PreSale Parameters Submitted Successfully!</h1><br>" | |
17 | + | ||
12 | 18 | let pymterror = "DApp Need 0.1 WAVES Token as Attach payment[1]." | |
13 | 19 | ||
14 | - | let tserror = "End Timestamp can't be less than or equal to Start Timestamp" | |
15 | - | ||
16 | - | let caperror = "Soft Cap Amount can't be more than Hard Cap Amount." | |
17 | - | ||
18 | - | let priceerror = "Token Price can't be less than or Zero" | |
20 | + | let launch_error = "Dapp will start Pre-Sale at Timestamp " | |
19 | 21 | ||
20 | 22 | let minbalerror = "Min. 0.1 WAVES required on Your Address, Please hold min. 0.1 WAVES on your Address." | |
21 | 23 | ||
46 | 48 | then throw(tserror) | |
47 | 49 | else if ((Soft_Cap_Amount > Hard_Cap_Amount)) | |
48 | 50 | then throw(caperror) | |
49 | - | else [IntegerEntry("Current_Funding_Round", current_round), IntegerEntry((toString(current_round) + "_Presale_Start_TimeStamp"), StartTS), IntegerEntry((toString(current_round) + "_Presale_End_TimeStamp"), EndTS), IntegerEntry((toString(current_round) + "_Token_Price"), Token_Price), IntegerEntry((toString(current_round) + "_Soft_Cap_Amount"), Soft_Cap_Amount), IntegerEntry((toString(current_round) + "_Hard_Cap_Amount"), Hard_Cap_Amount), StringEntry("message", | |
51 | + | else [IntegerEntry("Current_Funding_Round", current_round), IntegerEntry((toString(current_round) + "_Presale_Start_TimeStamp"), StartTS), IntegerEntry((toString(current_round) + "_Presale_End_TimeStamp"), EndTS), IntegerEntry((toString(current_round) + "_Token_Price"), Token_Price), IntegerEntry((toString(current_round) + "_Soft_Cap_Amount"), Soft_Cap_Amount), IntegerEntry((toString(current_round) + "_Hard_Cap_Amount"), Hard_Cap_Amount), IntegerEntry((toString(current_round) + "_Initiated_Height"), height), StringEntry("message", presale_init_msg)] | |
50 | 52 | } | |
51 | 53 | ||
52 | 54 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let presale_timestamp_controller_pubkey = base58'GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr' | |
5 | 5 | ||
6 | 6 | let controller_address = addressFromPublicKey(presale_timestamp_controller_pubkey) | |
7 | 7 | ||
8 | - | let launch_error = "Dapp will start Pre-Sale at Timestamp " | |
8 | + | let tserror = "End Timestamp can't be less than or equal to Start Timestamp" | |
9 | + | ||
10 | + | let priceerror = "Token Price can't be less than or Zero" | |
11 | + | ||
12 | + | let caperror = "Soft Cap Amount can't be more than Hard Cap Amount." | |
9 | 13 | ||
10 | 14 | let txnmsg = "<h1>Transaction Submitted Successfully!</h1><br>" | |
11 | 15 | ||
16 | + | let presale_init_msg = "<h1>PreSale Parameters Submitted Successfully!</h1><br>" | |
17 | + | ||
12 | 18 | let pymterror = "DApp Need 0.1 WAVES Token as Attach payment[1]." | |
13 | 19 | ||
14 | - | let tserror = "End Timestamp can't be less than or equal to Start Timestamp" | |
15 | - | ||
16 | - | let caperror = "Soft Cap Amount can't be more than Hard Cap Amount." | |
17 | - | ||
18 | - | let priceerror = "Token Price can't be less than or Zero" | |
20 | + | let launch_error = "Dapp will start Pre-Sale at Timestamp " | |
19 | 21 | ||
20 | 22 | let minbalerror = "Min. 0.1 WAVES required on Your Address, Please hold min. 0.1 WAVES on your Address." | |
21 | 23 | ||
22 | 24 | let asseterr = "Incorrect asset attach, please attach WAVES Only." | |
23 | 25 | ||
24 | 26 | let voteErr = "Pre-Sale Round is over for this Dapp." | |
25 | 27 | ||
26 | 28 | @Callable(i) | |
27 | 29 | func SetPreSaleParameters (Presale_Start_TimeStamp,Presale_End_TimeStamp,Token_Price,Soft_Cap_Amount,Hard_Cap_Amount) = { | |
28 | 30 | let StartTS = Presale_Start_TimeStamp | |
29 | 31 | let EndTS = Presale_End_TimeStamp | |
30 | 32 | let read_funding_round = match getInteger(this, "Current_Funding_Round") { | |
31 | 33 | case a: Int => | |
32 | 34 | a | |
33 | 35 | case _ => | |
34 | 36 | 0 | |
35 | 37 | } | |
36 | 38 | let current_round = (read_funding_round + 1) | |
37 | 39 | if ((i.caller != controller_address)) | |
38 | 40 | then throw((("This Address is not Authorized. Only " + toString(controller_address)) + " is Authorized Address to Sign it.")) | |
39 | 41 | else if ((size(toString(Presale_Start_TimeStamp)) != 13)) | |
40 | 42 | then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
41 | 43 | else if ((size(toString(Presale_End_TimeStamp)) != 13)) | |
42 | 44 | then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
43 | 45 | else if ((1 > Token_Price)) | |
44 | 46 | then throw(priceerror) | |
45 | 47 | else if ((StartTS >= EndTS)) | |
46 | 48 | then throw(tserror) | |
47 | 49 | else if ((Soft_Cap_Amount > Hard_Cap_Amount)) | |
48 | 50 | then throw(caperror) | |
49 | - | else [IntegerEntry("Current_Funding_Round", current_round), IntegerEntry((toString(current_round) + "_Presale_Start_TimeStamp"), StartTS), IntegerEntry((toString(current_round) + "_Presale_End_TimeStamp"), EndTS), IntegerEntry((toString(current_round) + "_Token_Price"), Token_Price), IntegerEntry((toString(current_round) + "_Soft_Cap_Amount"), Soft_Cap_Amount), IntegerEntry((toString(current_round) + "_Hard_Cap_Amount"), Hard_Cap_Amount), StringEntry("message", | |
51 | + | else [IntegerEntry("Current_Funding_Round", current_round), IntegerEntry((toString(current_round) + "_Presale_Start_TimeStamp"), StartTS), IntegerEntry((toString(current_round) + "_Presale_End_TimeStamp"), EndTS), IntegerEntry((toString(current_round) + "_Token_Price"), Token_Price), IntegerEntry((toString(current_round) + "_Soft_Cap_Amount"), Soft_Cap_Amount), IntegerEntry((toString(current_round) + "_Hard_Cap_Amount"), Hard_Cap_Amount), IntegerEntry((toString(current_round) + "_Initiated_Height"), height), StringEntry("message", presale_init_msg)] | |
50 | 52 | } | |
51 | 53 | ||
52 | 54 | ||
53 | 55 | @Verifier(tx) | |
54 | 56 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
55 | 57 |
github/deemru/w8io/169f3d6 29.06 ms ◑