tx · HCNGDGyGfzRhMqLDS4WXtoEfiFqhQkHfRe9kBw74TiTS

3N4ynz2uyA7cErymQd46zgwVJEEfXYDRXtA:  -0.02000000 Waves

2023.08.10 12:13 [2704291] smart account 3N4ynz2uyA7cErymQd46zgwVJEEfXYDRXtA > SELF 0.00000000 Waves

{ "type": 13, "id": "HCNGDGyGfzRhMqLDS4WXtoEfiFqhQkHfRe9kBw74TiTS", "fee": 2000000, "feeAssetId": null, "timestamp": 1691658802523, "version": 2, "chainId": 84, "sender": "3N4ynz2uyA7cErymQd46zgwVJEEfXYDRXtA", "senderPublicKey": "CiRX9ubobzbD36ZwTyuBFiPnPkmzMQ7GDsF3hMoVbcVR", "proofs": [ "2jKMKmT2GjtMatnzNeHQ2KUBsC4a1qnKZqhgRxStG8vUPDSwhLKHAoPr2YFxGGfi5dcuB5J4DU9TPRE7wnnd3Seu" ], "script": "base64:AAIFAAAAAAAAABYIAhIICgYBAQEBAQQSAwoBARIDCgEBAAAAEAAAAAAjcHJlc2FsZV90aW1lc3RhbXBfY29udHJvbGxlcl9wdWJrZXkBAAAAIOOt17LUijbWojwDE5tgFkw1Y8cwIr3jselcewpp7rwjAAAAABJjb250cm9sbGVyX2FkZHJlc3MJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEFAAAAI3ByZXNhbGVfdGltZXN0YW1wX2NvbnRyb2xsZXJfcHVia2V5AAAAAA5leHBpcmVkdHNlcnJvcgIAAAA4U3RhcnQgVGltZXN0YW1wIGNhbid0IGJlIGxlc3MgdGhhbiBsYXN0IGJsb2NrIFRpbWVzdGFtcC4AAAAAB3RzZXJyb3ICAAAAPEVuZCBUaW1lc3RhbXAgY2FuJ3QgYmUgbGVzcyB0aGFuIG9yIGVxdWFsIHRvIFN0YXJ0IFRpbWVzdGFtcAAAAAAKcHJpY2VlcnJvcgIAAAAmVG9rZW4gUHJpY2UgY2FuJ3QgYmUgbGVzcyB0aGFuIG9yIFplcm8AAAAACGNhcGVycm9yAgAAADN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AAAAEFAAAAE0VudGVyX1ByZXNhbGVfUm91bmQCAAAAAV8FAAAACmN1cnJlbnRLZXkAAAAAAAAAAAAJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAHbWVzc2FnZQUAAAAPcmVmdW5kX2luaXRfbXNnBQAAAANuaWwDAwkAAGcAAAACAAAAAAAAAAAABQAAABZwZW5kaW5nX3NvZnRjYXBfc3RhdHVzCQAAZgAAAAIFAAAAFnBlbmRpbmdfaGFyZGNhcF9zdGF0dXMAAAAAAAAAAAAHCQAAAgAAAAECAAAAVVNvZnRDYXAgQWxyZWFkeSBSZWFjaGVkIGZvciB0aGlzIFJvdW5kLiBQbGVhc2UgQ2xpY2sgb24gQ2xhaW0gdG8gUmVjZWl2ZSBZb3VyIFRva2Vucy4DAwkAAGcAAAACAAAAAAAAAAAABQAAABZwZW5kaW5nX3NvZnRjYXBfc3RhdHVzCQAAZwAAAAIAAAAAAAAAAAAFAAAAFnBlbmRpbmdfaGFyZGNhcF9zdGF0dXMHCQAAAgAAAAECAAAAXlNvZnRDYXAgYW5kIEhhcmQgQWxyZWFkeSBSZWFjaGVkIGZvciB0aGlzIFJvdW5kLiBQbGVhc2UgQ2xpY2sgb24gQ2xhaW0gdG8gUmVjZWl2ZSBZb3VyIFRva2Vucy4JAAACAAAAAQIAAAASV3JvbmcgRW50cnkgRm91bmQuAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXnskupz", "height": 2704291, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GKfLFVDhVSuAa8bw2jwUviJ7exK4uDRZKx6JaBJjikg4 Next: 2NZJ5a8aN69ict6SsC24YpLUn5VXkghw5EQxosjDdxju Diff:
OldNewDifferences
44 let presale_timestamp_controller_pubkey = base58'GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr'
55
66 let controller_address = addressFromPublicKey(presale_timestamp_controller_pubkey)
7+
8+let expiredtserror = "Start Timestamp can't be less than last block Timestamp."
79
810 let tserror = "End Timestamp can't be less than or equal to Start Timestamp"
911
1416 let ordermsg = "<h1>Order Submitted Successfully!</h1><br>"
1517
1618 let presale_init_msg = "<h1>PreSale Parameters Submitted Successfully!</h1><br>"
17-
18-let refund_init_msg = "<h1>Refund Received Successfully!.</h1><br>"
1919
2020 let pymterror = "DApp Need WAVES Token as Attach payment[1]."
2121
3131
3232 let refund_err = "Softcap or Hard Cap already Reached or probably PreSale was Set with False to Refund, so no Refund allowed for this Round."
3333
34+let refund_init_msg = "<h1>Refund Received Successfully!.</h1><br>"
35+
3436 @Callable(i)
3537 func SetPreSaleParameters (Presale_Start_TimeStamp,Presale_End_TimeStamp,Token_Price,Soft_Cap_Amount,Hard_Cap_Amount,Allow_Refund) = {
3638 let StartTS = Presale_Start_TimeStamp
4446 let current_round = (read_funding_round + 1)
4547 if ((i.caller != controller_address))
4648 then throw((("This Address is not Authorized. Only " + toString(controller_address)) + " is Authorized Address to Sign it."))
47- else if ((size(toString(Presale_Start_TimeStamp)) != 13))
48- then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.")
49- else if ((size(toString(Presale_End_TimeStamp)) != 13))
50- then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.")
51- else if ((1 > Token_Price))
52- then throw(priceerror)
53- else if ((StartTS >= EndTS))
54- then throw(tserror)
55- else if ((Soft_Cap_Amount > Hard_Cap_Amount))
56- then throw(caperror)
57- 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)]
49+ else if ((Presale_Start_TimeStamp > lastBlock.timestamp))
50+ then throw(expiredtserror)
51+ else if ((size(toString(Presale_Start_TimeStamp)) != 13))
52+ then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.")
53+ else if ((size(toString(Presale_End_TimeStamp)) != 13))
54+ then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.")
55+ else if ((1 > Token_Price))
56+ then throw(priceerror)
57+ else if ((StartTS >= EndTS))
58+ then throw(tserror)
59+ else if ((Soft_Cap_Amount > Hard_Cap_Amount))
60+ then throw(caperror)
61+ 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)]
5862 }
5963
6064
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)
7+
8+let expiredtserror = "Start Timestamp can't be less than last block Timestamp."
79
810 let tserror = "End Timestamp can't be less than or equal to Start Timestamp"
911
1012 let priceerror = "Token Price can't be less than or Zero"
1113
1214 let caperror = "Soft Cap Amount can't be more than Hard Cap Amount."
1315
1416 let ordermsg = "<h1>Order Submitted Successfully!</h1><br>"
1517
1618 let presale_init_msg = "<h1>PreSale Parameters Submitted Successfully!</h1><br>"
17-
18-let refund_init_msg = "<h1>Refund Received Successfully!.</h1><br>"
1919
2020 let pymterror = "DApp Need WAVES Token as Attach payment[1]."
2121
2222 let orderpymterror = "Attached payment[1] is less than token price "
2323
2424 let launch_error = "Dapp will start Pre-Sale at Timestamp "
2525
2626 let minbalerror = "Minimum 0.1 WAVES required on Your Address, Please hold min. 0.1 WAVES on your Address to place order."
2727
2828 let presale_end_err = "Pre-Sale is over for this Round."
2929
3030 let presale_not_end_err = "Pre-Sale is not over for this Round."
3131
3232 let refund_err = "Softcap or Hard Cap already Reached or probably PreSale was Set with False to Refund, so no Refund allowed for this Round."
3333
34+let refund_init_msg = "<h1>Refund Received Successfully!.</h1><br>"
35+
3436 @Callable(i)
3537 func SetPreSaleParameters (Presale_Start_TimeStamp,Presale_End_TimeStamp,Token_Price,Soft_Cap_Amount,Hard_Cap_Amount,Allow_Refund) = {
3638 let StartTS = Presale_Start_TimeStamp
3739 let EndTS = Presale_End_TimeStamp
3840 let read_funding_round = match getInteger(this, "Current_Funding_Round") {
3941 case a: Int =>
4042 a
4143 case _ =>
4244 0
4345 }
4446 let current_round = (read_funding_round + 1)
4547 if ((i.caller != controller_address))
4648 then throw((("This Address is not Authorized. Only " + toString(controller_address)) + " is Authorized Address to Sign it."))
47- else if ((size(toString(Presale_Start_TimeStamp)) != 13))
48- then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.")
49- else if ((size(toString(Presale_End_TimeStamp)) != 13))
50- then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.")
51- else if ((1 > Token_Price))
52- then throw(priceerror)
53- else if ((StartTS >= EndTS))
54- then throw(tserror)
55- else if ((Soft_Cap_Amount > Hard_Cap_Amount))
56- then throw(caperror)
57- 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)]
49+ else if ((Presale_Start_TimeStamp > lastBlock.timestamp))
50+ then throw(expiredtserror)
51+ else if ((size(toString(Presale_Start_TimeStamp)) != 13))
52+ then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.")
53+ else if ((size(toString(Presale_End_TimeStamp)) != 13))
54+ then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.")
55+ else if ((1 > Token_Price))
56+ then throw(priceerror)
57+ else if ((StartTS >= EndTS))
58+ then throw(tserror)
59+ else if ((Soft_Cap_Amount > Hard_Cap_Amount))
60+ then throw(caperror)
61+ 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)]
5862 }
5963
6064
6165
6266 @Callable(i)
6367 func PlacePresaleOrder (Enter_Presale_Round) = {
6468 let read_round_token_price = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Token_Price")), "Token Price not Found for this Presale Round.")
6569 let read_round_start_ts = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Presale_Start_TimeStamp")), "Start Timestamp not Found for this Presale Round.")
6670 let read_round_end_ts = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Presale_End_TimeStamp")), "End Timestamp not Found for this Presale Round.")
6771 let read_Soft_Cap_Amount = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Soft_Cap_Amount")), "Soft Cap Amount not Found for this Presale Round.")
6872 let read_Hard_Cap_Amount = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Hard_Cap_Amount")), "Hard Cap Amount not Found for this Presale Round.")
6973 let read_Allow_Refund = valueOrErrorMessage(getBoolean(this, (toString(Enter_Presale_Round) + "_Allow_Refund")), "Refund is not set for this Presale Round.")
7074 let WAVES = unit
7175 let currentKey = toBase58String(i.caller.bytes)
7276 let pmt = if ((size(i.payments) == 1))
7377 then i.payments[0]
7478 else throw(pymterror)
7579 let read_funds_collection = match getInteger(this, (toString(Enter_Presale_Round) + "_Funds_Collection")) {
7680 case a: Int =>
7781 a
7882 case _ =>
7983 0
8084 }
8185 let total_funds_collection = (read_funds_collection + pmt.amount)
8286 let read_total_txns = match getInteger(this, (toString(Enter_Presale_Round) + "_total_txns")) {
8387 case a: Int =>
8488 a
8589 case _ =>
8690 0
8791 }
8892 let total_txns = (read_total_txns + 1)
8993 let read_user_total_funds_deposited = match getInteger(this, ((toString(Enter_Presale_Round) + "_") + currentKey)) {
9094 case a: Int =>
9195 a
9296 case _ =>
9397 0
9498 }
9599 let user_total_funds_deposited = (read_user_total_funds_deposited + pmt.amount)
96100 let pending_softcap_status = (read_Soft_Cap_Amount - total_funds_collection)
97101 let pending_hardcap_status = (read_Hard_Cap_Amount - total_funds_collection)
98102 if (isDefined(pmt.assetId))
99103 then throw(pymterror)
100104 else if ((read_round_token_price > pmt.amount))
101105 then throw((((orderpymterror + "[") + toString(read_round_token_price)) + "/10^8.]"))
102106 else if ((read_round_start_ts > lastBlock.timestamp))
103107 then throw((launch_error + toString(read_round_start_ts)))
104108 else if ((lastBlock.timestamp > read_round_end_ts))
105109 then throw(presale_end_err)
106110 else if (if ((pending_softcap_status > 0))
107111 then (pending_hardcap_status > 0)
108112 else false)
109113 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)]
110114 else if (if ((0 >= pending_softcap_status))
111115 then (pending_hardcap_status > 0)
112116 else false)
113117 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"), BooleanEntry((toString(Enter_Presale_Round) + "_Allow_Refund"), false), StringEntry("message", ordermsg)]
114118 else if (if ((0 >= pending_softcap_status))
115119 then (0 >= pending_hardcap_status)
116120 else false)
117121 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"), BooleanEntry((toString(Enter_Presale_Round) + "_Allow_Refund"), false), StringEntry("message", ordermsg)]
118122 else throw("Error.")
119123 }
120124
121125
122126
123127 @Callable(i)
124128 func Refund (Enter_Presale_Round) = {
125129 let WAVES = unit
126130 let currentKey = toBase58String(i.caller.bytes)
127131 let read_Initiated_Height = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Initiated_Height")), "Initiated Height not Found for this Presale Round.")
128132 let read_round_token_price = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Token_Price")), "Token Price not Found for this Presale Round.")
129133 let read_round_start_ts = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Presale_Start_TimeStamp")), "Start Timestamp not Found for this Presale Round.")
130134 let read_round_end_ts = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Presale_End_TimeStamp")), "End Timestamp not Found for this Presale Round.")
131135 let read_Soft_Cap_Amount = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Soft_Cap_Amount")), "Soft Cap Amount not Found for this Presale Round.")
132136 let read_Hard_Cap_Amount = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Hard_Cap_Amount")), "Hard Cap Amount not Found for this Presale Round.")
133137 let read_total_funds_collection = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Funds_Collection")), "Total Funds Collection not Found for this Presale Round.")
134138 let read_user_total_funds_deposited = valueOrErrorMessage(getInteger(this, ((toString(Enter_Presale_Round) + "_") + currentKey)), "No Deposit was made by this Address for this Presale Round.")
135139 let read_Allow_Refund = valueOrErrorMessage(getBoolean(this, (toString(Enter_Presale_Round) + "_Allow_Refund")), "Allow_Refund has no Boolen Entry for this Presale Round.")
136140 let pending_softcap_status = (read_Soft_Cap_Amount - read_total_funds_collection)
137141 let pending_hardcap_status = (read_Hard_Cap_Amount - read_total_funds_collection)
138142 let milliseconds = 1000
139143 let minute = (60 * milliseconds)
140144 let round_time_difference = (read_round_end_ts - read_round_start_ts)
141145 let additional_safe_blocks = 10
142146 let blockstimetomature = ((read_Initiated_Height + fraction(round_time_difference, 1, minute)) + additional_safe_blocks)
143147 let pending_refunds = (read_total_funds_collection - read_user_total_funds_deposited)
144148 if ((blockstimetomature > lastBlock.height))
145149 then throw((((presale_not_end_err + " Please Wait Until ~") + toString(blockstimetomature)) + " Height is reached."))
146150 else if ((read_Allow_Refund == false))
147151 then throw(refund_err)
148152 else if ((read_user_total_funds_deposited == 0))
149153 then throw("Refund has been Already Claimed by this Address.")
150154 else if (if ((pending_softcap_status > 0))
151155 then (pending_hardcap_status > 0)
152156 else false)
153157 then [ScriptTransfer(addressFromStringValue(currentKey), read_user_total_funds_deposited, WAVES), IntegerEntry(((toString(Enter_Presale_Round) + "_") + "Pending_Refund"), pending_refunds), IntegerEntry(((toString(Enter_Presale_Round) + "_") + currentKey), 0), StringEntry("message", refund_init_msg)]
154158 else if (if ((0 >= pending_softcap_status))
155159 then (pending_hardcap_status > 0)
156160 else false)
157161 then throw("SoftCap Already Reached for this Round. Please Click on Claim to Receive Your Tokens.")
158162 else if (if ((0 >= pending_softcap_status))
159163 then (0 >= pending_hardcap_status)
160164 else false)
161165 then throw("SoftCap and Hard Already Reached for this Round. Please Click on Claim to Receive Your Tokens.")
162166 else throw("Wrong Entry Found.")
163167 }
164168
165169
166170 @Verifier(tx)
167171 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
168172

github/deemru/w8io/026f985 
35.08 ms