tx · EndAEq5on72hxZdrWyZ9jAey2poMktjm7UYsATNq5hWG

3N4ynz2uyA7cErymQd46zgwVJEEfXYDRXtA:  -0.01500000 Waves

2023.08.04 10:59 [2695569] smart account 3N4ynz2uyA7cErymQd46zgwVJEEfXYDRXtA > SELF 0.00000000 Waves

{ "type": 13, "id": "EndAEq5on72hxZdrWyZ9jAey2poMktjm7UYsATNq5hWG", "fee": 1500000, "feeAssetId": null, "timestamp": 1691135993162, "version": 2, "chainId": 84, "sender": "3N4ynz2uyA7cErymQd46zgwVJEEfXYDRXtA", "senderPublicKey": "CiRX9ubobzbD36ZwTyuBFiPnPkmzMQ7GDsF3hMoVbcVR", "proofs": [ "p1zwL4xG1FMVe1TogPgVsJ4DjCA2Fyxosw5kJyX631VVWfCqB3LcGoH3RTQt9kk8q43dVo1yiMA5TQNdivNcAH2" ], "script": "base64:AAIFAAAAAAAAABEIAhIICgYBAQEBAQQSAwoBAQAAAAwAAAAAI3ByZXNhbGVfdGltZXN0YW1wX2NvbnRyb2xsZXJfcHVia2V5AQAAACDjrdey1Io21qI8AxObYBZMNWPHMCK947HpXHsKae68IwAAAAASY29udHJvbGxlcl9hZGRyZXNzCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABBQAAACNwcmVzYWxlX3RpbWVzdGFtcF9jb250cm9sbGVyX3B1YmtleQAAAAAHdHNlcnJvcgIAAAA8RW5kIFRpbWVzdGFtcCBjYW4ndCBiZSBsZXNzIHRoYW4gb3IgZXF1YWwgdG8gU3RhcnQgVGltZXN0YW1wAAAAAApwcmljZWVycm9yAgAAACZUb2tlbiBQcmljZSBjYW4ndCBiZSBsZXNzIHRoYW4gb3IgWmVybwAAAAAIY2FwZXJyb3ICAAAAM1NvZnQgQ2FwIEFtb3VudCBjYW4ndCBiZSBtb3JlIHRoYW4gSGFyZCBDYXAgQW1vdW50LgAAAAAIb3JkZXJtc2cCAAAAKjxoMT5PcmRlciBTdWJtaXR0ZWQgU3VjY2Vzc2Z1b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BQAAAAhvcmRlcm1zZwUAAAADbmlsCQAAAgAAAAECAAAABkVycm9yLgAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5EeA27Q==", "height": 2695569, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8CgHeSieBEy7v8rreSezF1YQYa4b67MHrCV97yToKfiN Next: A788WPfxdk1KWLfdbHKfpxmsfeaF8Tb7QE8TzrxwCRQv Diff:
OldNewDifferences
4848 then throw(tserror)
4949 else if ((Soft_Cap_Amount > Hard_Cap_Amount))
5050 then throw(caperror)
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)]
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), BooleanEntry((toString(current_round) + "_Allow_Refund"), Allow_Refund), StringEntry("message", presale_init_msg)]
5252 }
5353
5454
6060 let read_round_end_ts = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Presale_End_TimeStamp")), "End Timestamp not Found for this Presale Round.")
6161 let read_Soft_Cap_Amount = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Soft_Cap_Amount")), "Soft Cap Amount not Found for this Presale Round.")
6262 let read_Hard_Cap_Amount = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Hard_Cap_Amount")), "Hard Cap Amount not Found for this Presale Round.")
63+ let read_Allow_Refund = valueOrErrorMessage(getBoolean(this, (toString(Enter_Presale_Round) + "_Allow_Refund")), "Refund is not set for this Presale Round.")
6364 let WAVES = unit
6465 let currentKey = toBase58String(i.caller.bytes)
6566 let pmt = if ((size(i.payments) == 1))
9798 else if (if ((pending_softcap_status > 0))
9899 then (pending_hardcap_status > 0)
99100 else false)
100- then [IntegerEntry((toString(Enter_Presale_Round) + "_Funds_Collection"), total_funds_collection), IntegerEntry(((toString(Enter_Presale_Round) + "_") + currentKey), user_total_funds_deposited), IntegerEntry((toString(Enter_Presale_Round) + "_total_txns"), total_txns), IntegerEntry((toString(Enter_Presale_Round) + "_pending_softcap_status"), pending_softcap_status), IntegerEntry((toString(Enter_Presale_Round) + "_pending_hardcap_status"), pending_hardcap_status), StringEntry((toString(Enter_Presale_Round) + "_softcap_status"), "No"), StringEntry((toString(Enter_Presale_Round) + "_hardcap_status"), "No"), StringEntry("message", ordermsg)]
101+ then [IntegerEntry((toString(Enter_Presale_Round) + "_Funds_Collection"), total_funds_collection), IntegerEntry(((toString(Enter_Presale_Round) + "_") + currentKey), user_total_funds_deposited), IntegerEntry((toString(Enter_Presale_Round) + "_total_txns"), total_txns), IntegerEntry((toString(Enter_Presale_Round) + "_pending_softcap_status"), pending_softcap_status), IntegerEntry((toString(Enter_Presale_Round) + "_pending_hardcap_status"), pending_hardcap_status), StringEntry((toString(Enter_Presale_Round) + "_softcap_status"), "No"), StringEntry((toString(Enter_Presale_Round) + "_hardcap_status"), "No"), BooleanEntry((toString(Enter_Presale_Round) + "_Allow_Refund"), read_Allow_Refund), StringEntry("message", ordermsg)]
101102 else if (if ((0 >= pending_softcap_status))
102103 then (pending_hardcap_status > 0)
103104 else false)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let presale_timestamp_controller_pubkey = base58'GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr'
55
66 let controller_address = addressFromPublicKey(presale_timestamp_controller_pubkey)
77
88 let tserror = "End Timestamp can't be less than or equal to Start Timestamp"
99
1010 let priceerror = "Token Price can't be less than or Zero"
1111
1212 let caperror = "Soft Cap Amount can't be more than Hard Cap Amount."
1313
1414 let ordermsg = "<h1>Order Submitted Successfully!</h1><br>"
1515
1616 let presale_init_msg = "<h1>PreSale Parameters Submitted Successfully!</h1><br>"
1717
1818 let pymterror = "DApp Need WAVES Token as Attach payment[1]."
1919
2020 let orderpymterror = "Attached payment[1] is less than token price "
2121
2222 let launch_error = "Dapp will start Pre-Sale at Timestamp "
2323
2424 let minbalerror = "Minimum 0.1 WAVES required on Your Address, Please hold min. 0.1 WAVES on your Address to place order."
2525
2626 let voteErr = "Pre-Sale is over for this Round."
2727
2828 @Callable(i)
2929 func SetPreSaleParameters (Presale_Start_TimeStamp,Presale_End_TimeStamp,Token_Price,Soft_Cap_Amount,Hard_Cap_Amount,Allow_Refund) = {
3030 let StartTS = Presale_Start_TimeStamp
3131 let EndTS = Presale_End_TimeStamp
3232 let read_funding_round = match getInteger(this, "Current_Funding_Round") {
3333 case a: Int =>
3434 a
3535 case _ =>
3636 0
3737 }
3838 let current_round = (read_funding_round + 1)
3939 if ((i.caller != controller_address))
4040 then throw((("This Address is not Authorized. Only " + toString(controller_address)) + " is Authorized Address to Sign it."))
4141 else if ((size(toString(Presale_Start_TimeStamp)) != 13))
4242 then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.")
4343 else if ((size(toString(Presale_End_TimeStamp)) != 13))
4444 then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.")
4545 else if ((1 > Token_Price))
4646 then throw(priceerror)
4747 else if ((StartTS >= EndTS))
4848 then throw(tserror)
4949 else if ((Soft_Cap_Amount > Hard_Cap_Amount))
5050 then throw(caperror)
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)]
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), BooleanEntry((toString(current_round) + "_Allow_Refund"), Allow_Refund), StringEntry("message", presale_init_msg)]
5252 }
5353
5454
5555
5656 @Callable(i)
5757 func PlacePresaleOrder (Enter_Presale_Round) = {
5858 let read_round_token_price = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Token_Price")), "Token Price not Found for this Presale Round.")
5959 let read_round_start_ts = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Presale_Start_TimeStamp")), "Start Timestamp not Found for this Presale Round.")
6060 let read_round_end_ts = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Presale_End_TimeStamp")), "End Timestamp not Found for this Presale Round.")
6161 let read_Soft_Cap_Amount = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Soft_Cap_Amount")), "Soft Cap Amount not Found for this Presale Round.")
6262 let read_Hard_Cap_Amount = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Hard_Cap_Amount")), "Hard Cap Amount not Found for this Presale Round.")
63+ let read_Allow_Refund = valueOrErrorMessage(getBoolean(this, (toString(Enter_Presale_Round) + "_Allow_Refund")), "Refund is not set for this Presale Round.")
6364 let WAVES = unit
6465 let currentKey = toBase58String(i.caller.bytes)
6566 let pmt = if ((size(i.payments) == 1))
6667 then i.payments[0]
6768 else throw(pymterror)
6869 let read_funds_collection = match getInteger(this, (toString(Enter_Presale_Round) + "_Funds_Collection")) {
6970 case a: Int =>
7071 a
7172 case _ =>
7273 0
7374 }
7475 let total_funds_collection = (read_funds_collection + pmt.amount)
7576 let read_total_txns = match getInteger(this, (toString(Enter_Presale_Round) + "_total_txns")) {
7677 case a: Int =>
7778 a
7879 case _ =>
7980 0
8081 }
8182 let total_txns = (read_total_txns + 1)
8283 let read_user_total_funds_deposited = match getInteger(this, ((toString(Enter_Presale_Round) + "_") + currentKey)) {
8384 case a: Int =>
8485 a
8586 case _ =>
8687 0
8788 }
8889 let user_total_funds_deposited = (read_user_total_funds_deposited + pmt.amount)
8990 let pending_softcap_status = (read_Soft_Cap_Amount - total_funds_collection)
9091 let pending_hardcap_status = (read_Hard_Cap_Amount - total_funds_collection)
9192 if (isDefined(pmt.assetId))
9293 then throw(pymterror)
9394 else if ((read_round_token_price > pmt.amount))
9495 then throw((((orderpymterror + "[") + toString(read_round_token_price)) + "/10^8.]"))
9596 else if ((read_round_start_ts > lastBlock.timestamp))
9697 then throw((launch_error + toString(read_round_start_ts)))
9798 else if (if ((pending_softcap_status > 0))
9899 then (pending_hardcap_status > 0)
99100 else false)
100- then [IntegerEntry((toString(Enter_Presale_Round) + "_Funds_Collection"), total_funds_collection), IntegerEntry(((toString(Enter_Presale_Round) + "_") + currentKey), user_total_funds_deposited), IntegerEntry((toString(Enter_Presale_Round) + "_total_txns"), total_txns), IntegerEntry((toString(Enter_Presale_Round) + "_pending_softcap_status"), pending_softcap_status), IntegerEntry((toString(Enter_Presale_Round) + "_pending_hardcap_status"), pending_hardcap_status), StringEntry((toString(Enter_Presale_Round) + "_softcap_status"), "No"), StringEntry((toString(Enter_Presale_Round) + "_hardcap_status"), "No"), StringEntry("message", ordermsg)]
101+ then [IntegerEntry((toString(Enter_Presale_Round) + "_Funds_Collection"), total_funds_collection), IntegerEntry(((toString(Enter_Presale_Round) + "_") + currentKey), user_total_funds_deposited), IntegerEntry((toString(Enter_Presale_Round) + "_total_txns"), total_txns), IntegerEntry((toString(Enter_Presale_Round) + "_pending_softcap_status"), pending_softcap_status), IntegerEntry((toString(Enter_Presale_Round) + "_pending_hardcap_status"), pending_hardcap_status), StringEntry((toString(Enter_Presale_Round) + "_softcap_status"), "No"), StringEntry((toString(Enter_Presale_Round) + "_hardcap_status"), "No"), BooleanEntry((toString(Enter_Presale_Round) + "_Allow_Refund"), read_Allow_Refund), StringEntry("message", ordermsg)]
101102 else if (if ((0 >= pending_softcap_status))
102103 then (pending_hardcap_status > 0)
103104 else false)
104105 then [IntegerEntry((toString(Enter_Presale_Round) + "_Funds_Collection"), total_funds_collection), IntegerEntry(((toString(Enter_Presale_Round) + "_") + currentKey), user_total_funds_deposited), IntegerEntry((toString(Enter_Presale_Round) + "_total_txns"), total_txns), IntegerEntry((toString(Enter_Presale_Round) + "_pending_softcap_status"), pending_softcap_status), IntegerEntry((toString(Enter_Presale_Round) + "_pending_hardcap_status"), pending_hardcap_status), StringEntry((toString(Enter_Presale_Round) + "_softcap_status"), "Yes"), StringEntry((toString(Enter_Presale_Round) + "_hardcap_status"), "No"), StringEntry("message", ordermsg)]
105106 else if (if ((0 >= pending_softcap_status))
106107 then (0 >= pending_hardcap_status)
107108 else false)
108109 then [IntegerEntry((toString(Enter_Presale_Round) + "_Funds_Collection"), total_funds_collection), IntegerEntry(((toString(Enter_Presale_Round) + "_") + currentKey), user_total_funds_deposited), IntegerEntry((toString(Enter_Presale_Round) + "_total_txns"), total_txns), IntegerEntry((toString(Enter_Presale_Round) + "_pending_softcap_status"), pending_softcap_status), IntegerEntry((toString(Enter_Presale_Round) + "_pending_hardcap_status"), pending_hardcap_status), StringEntry((toString(Enter_Presale_Round) + "_softcap_status"), "Yes"), StringEntry((toString(Enter_Presale_Round) + "_hardcap_status"), "Yes"), StringEntry("message", ordermsg)]
109110 else throw("Error.")
110111 }
111112
112113
113114 @Verifier(tx)
114115 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
115116

github/deemru/w8io/026f985 
65.01 ms