tx · 5wV3n3N3aLoohssFzYbK2izbxasZz36tewjWi5T7Umcf 3NC9boevS259eTsMAkFAxCPorzK4Z9bpWje: -0.01600000 Waves 2023.01.31 09:51 [2428794] smart account 3NC9boevS259eTsMAkFAxCPorzK4Z9bpWje > SELF 0.00000000 Waves
{ "type": 13, "id": "5wV3n3N3aLoohssFzYbK2izbxasZz36tewjWi5T7Umcf", "fee": 1600000, "feeAssetId": null, "timestamp": 1675147990186, "version": 2, "chainId": 84, "sender": "3NC9boevS259eTsMAkFAxCPorzK4Z9bpWje", "senderPublicKey": "515tSAyMUbAb8kKjcpGDpqALGfCgcwfWmWKKkcBKTcGB", "proofs": [ "XG8tCUs5BoMZksxJbEkE7TSzSo5Gu2ibCdNqqgoMhwNQ3NrQYToP815WqvxCS4Tsxk2PopexSNQ3DhWXNJv6gzf" ], "script": "base64:AAIFAAAAAAAAABwIAhIAEgASAwoBCBIDCgEIEgMKAQESABIDCgEIAAAAAgAAAAAURGFwcF9BZGRyZXNzX3B1Yl9rZXkBAAAAIKuJCf2Mf4ccBNHMDBbiZnoL4skJhsknmRqp+OhG/NwvAAAAABlvcmFjbGVfY29udHJvbGxlcl9hZGRyZXNzCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABBQAAABREYXBwX0FkZHJlc3NfcHViX2tleQAAAAcAAAABaQEAAAAPcGxhY2VvcHRpb25DYWxsAAAAAAQAAAANY2FsbGVyYWRkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAA1pZkJsYWNrbGlzdGVkCQAEHQAAAAIFAAAABHRoaXMJAAEsAAAAAgIAAAARYWRkcl9CTEFDS0xJU1RFRF8FAAAADWNhbGxlcmFkZHJlc3MEAAAAEnJlYWRfb3JhY2xlX3N0YXR1cwkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgUAAAAEdGhpcwIAAAANb3JhY2xlX3N0YXR1cwQAAAAUcmVhZF9PcHRpb25Db3VudG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cmVzcyBpcyBub3QgQXV0aG9yaXplZC4gT25seSAJAAQlAAAAAQUAAAAZb3JhY2xlX2NvbnRyb2xsZXJfYWRkcmVzcwIAAAAiIGlzIEF1dGhvcml6ZWQgQWRkcmVzcyB0byBTaWduIGl0LgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAA1vcmFjbGVfc3RhdHVzAgAAAARPcGVuBQAAAANuaWwAAAABaQEAAAAQQmxhY2tMaXN0QWRkcmVzcwAAAAEAAAAHQWRkcmVzcwQAAAANY2FsbGVyYWRkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAwkBAAAAAiE9AAAAAggFAAAAAWkAAAAGY2FsbGVyBQAAABlvcmFjbGVfY29udHJvbGxlcl9hZGRyZXNzCQAAAgAAAAEJAAEsAAAAAgkAASwAAAACAgAAACVUaGlzIEFkZHJlc3MgaXMgbm90IEF1dGhvcml6ZWQuIE9ubHkgCQAEJQAAAAEFAAAAGW9yYWNsZV9jb250cm9sbGVyX2FkZHJlc3MCAAAAIiBpcyBBdXRob3JpemVkIEFkZHJlc3MgdG8gU2lnbiBpdC4JAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACAgAAABFhZGRyX0JMQUNLTElTVEVEXwUAAAANY2FsbGVyYWRkcmVzcwIAAAADWWVzBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQqK9mE=", "height": 2428794, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4k5domuyTbZwNeAzV2uDX3KemfUV2zGSrgT9wwPfXH8Q Next: 7nvojC9YTYw9zs2UaRqdxRdD4C4Xenred6oJKXHYgXN7 Diff:
Old | New | Differences | |
---|---|---|---|
8 | 8 | @Callable(i) | |
9 | 9 | func placeoptionCall () = { | |
10 | 10 | let calleraddress = toBase58String(i.caller.bytes) | |
11 | + | let ifBlacklisted = getString(this, ("addr_BLACKLISTED_" + calleraddress)) | |
11 | 12 | let read_oracle_status = getStringValue(this, "oracle_status") | |
12 | 13 | let read_OptionCounterID = getIntegerValue(this, "1m_contract_id") | |
13 | 14 | let getbtcdata = getStringValue(this, ("1m_btc_" + toString(read_OptionCounterID))) | |
35 | 36 | then throw("Something Wrong with Oracle or Height is not matched.") | |
36 | 37 | else if ((read_oracle_status == "Close")) | |
37 | 38 | then throw("Oracle is closed. Wait Until Oracle is Turned On.") | |
38 | - | else [StringEntry(((("Call_" + calleraddress) + "_") + toString(TotalUserCall)), price), StringEntry(((("Call_Start_End_" + calleraddress) + "_") + toString(TotalUserCall)), ((toString(read_OptionCounterID) + "_") + toString(OptionExpireCounterID))), IntegerEntry("Total_Calls", TotalCall), IntegerEntry((calleraddress + "_Total_Calls"), TotalUserCall)] | |
39 | + | else if ((ifBlacklisted == "Yes")) | |
40 | + | then throw((calleraddress + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
41 | + | else [StringEntry(((("Call_" + calleraddress) + "_") + toString(TotalUserCall)), price), StringEntry(((("Call_Start_End_" + calleraddress) + "_") + toString(TotalUserCall)), ((toString(read_OptionCounterID) + "_") + toString(OptionExpireCounterID))), IntegerEntry("Total_Calls", TotalCall), IntegerEntry((calleraddress + "_Total_Calls"), TotalUserCall)] | |
39 | 42 | } | |
40 | 43 | ||
41 | 44 | ||
167 | 170 | ||
168 | 171 | ||
169 | 172 | @Callable(i) | |
170 | - | func OpenOracle () = if ((i.caller != oracle_controller_address)) | |
171 | - | then throw((("This Address is not Authorized. Only " + toString(oracle_controller_address)) + " is Authorized Address to Sign it.")) | |
172 | - | else [StringEntry("oracle_status", "Open")] | |
173 | + | func OpenOracle () = { | |
174 | + | let calleraddress = toBase58String(i.caller.bytes) | |
175 | + | if ((i.caller != oracle_controller_address)) | |
176 | + | then throw((("This Address is not Authorized. Only " + toString(oracle_controller_address)) + " is Authorized Address to Sign it.")) | |
177 | + | else [StringEntry("oracle_status", "Open")] | |
178 | + | } | |
173 | 179 | ||
174 | 180 | ||
175 | 181 | ||
176 | 182 | @Callable(i) | |
177 | - | func SetBaseAssetID (BaseAsset) = { | |
178 | - | let PreviousBaseAssetID = match getString(this, "BaseAssetID") { | |
179 | - | case a: String => | |
180 | - | a | |
181 | - | case _ => | |
182 | - | 0 | |
183 | - | } | |
183 | + | func BlackListAddress (Address) = { | |
184 | + | let calleraddress = toBase58String(i.caller.bytes) | |
184 | 185 | if ((i.caller != oracle_controller_address)) | |
185 | 186 | then throw((("This Address is not Authorized. Only " + toString(oracle_controller_address)) + " is Authorized Address to Sign it.")) | |
186 | - | else [StringEntry(" | |
187 | + | else [StringEntry(("addr_BLACKLISTED_" + calleraddress), "Yes")] | |
187 | 188 | } | |
188 | 189 | ||
189 | 190 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let Dapp_Address_pub_key = base58'CYbv2nupcWmnVFixN6Q2sxd9ChbDsq1KqXQ66VjsZBJE' | |
5 | 5 | ||
6 | 6 | let oracle_controller_address = addressFromPublicKey(Dapp_Address_pub_key) | |
7 | 7 | ||
8 | 8 | @Callable(i) | |
9 | 9 | func placeoptionCall () = { | |
10 | 10 | let calleraddress = toBase58String(i.caller.bytes) | |
11 | + | let ifBlacklisted = getString(this, ("addr_BLACKLISTED_" + calleraddress)) | |
11 | 12 | let read_oracle_status = getStringValue(this, "oracle_status") | |
12 | 13 | let read_OptionCounterID = getIntegerValue(this, "1m_contract_id") | |
13 | 14 | let getbtcdata = getStringValue(this, ("1m_btc_" + toString(read_OptionCounterID))) | |
14 | 15 | let swapLi = split(getbtcdata, "_") | |
15 | 16 | let price = swapLi[0] | |
16 | 17 | let block = parseIntValue(swapLi[2]) | |
17 | 18 | let checkblockgap = (height - block) | |
18 | 19 | let OpionExpireCounter = 1 | |
19 | 20 | let OptionExpireCounterID = (read_OptionCounterID + OpionExpireCounter) | |
20 | 21 | let PreviousCall = match getInteger(this, "Total_Calls") { | |
21 | 22 | case a: Int => | |
22 | 23 | a | |
23 | 24 | case _ => | |
24 | 25 | 0 | |
25 | 26 | } | |
26 | 27 | let TotalCall = (PreviousCall + 1) | |
27 | 28 | let PreviousUserCall = match getInteger(this, (calleraddress + "_Total_Calls")) { | |
28 | 29 | case a: Int => | |
29 | 30 | a | |
30 | 31 | case _ => | |
31 | 32 | 0 | |
32 | 33 | } | |
33 | 34 | let TotalUserCall = (PreviousUserCall + 1) | |
34 | 35 | if ((checkblockgap > 2)) | |
35 | 36 | then throw("Something Wrong with Oracle or Height is not matched.") | |
36 | 37 | else if ((read_oracle_status == "Close")) | |
37 | 38 | then throw("Oracle is closed. Wait Until Oracle is Turned On.") | |
38 | - | else [StringEntry(((("Call_" + calleraddress) + "_") + toString(TotalUserCall)), price), StringEntry(((("Call_Start_End_" + calleraddress) + "_") + toString(TotalUserCall)), ((toString(read_OptionCounterID) + "_") + toString(OptionExpireCounterID))), IntegerEntry("Total_Calls", TotalCall), IntegerEntry((calleraddress + "_Total_Calls"), TotalUserCall)] | |
39 | + | else if ((ifBlacklisted == "Yes")) | |
40 | + | then throw((calleraddress + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
41 | + | else [StringEntry(((("Call_" + calleraddress) + "_") + toString(TotalUserCall)), price), StringEntry(((("Call_Start_End_" + calleraddress) + "_") + toString(TotalUserCall)), ((toString(read_OptionCounterID) + "_") + toString(OptionExpireCounterID))), IntegerEntry("Total_Calls", TotalCall), IntegerEntry((calleraddress + "_Total_Calls"), TotalUserCall)] | |
39 | 42 | } | |
40 | 43 | ||
41 | 44 | ||
42 | 45 | ||
43 | 46 | @Callable(i) | |
44 | 47 | func placeoptionPut () = { | |
45 | 48 | let calleraddress = toBase58String(i.caller.bytes) | |
46 | 49 | let read_oracle_status = getStringValue(this, "oracle_status") | |
47 | 50 | let read_OptionCounterID = getIntegerValue(this, "1m_contract_id") | |
48 | 51 | let getbtcdata = getStringValue(this, ("1m_btc_" + toString(read_OptionCounterID))) | |
49 | 52 | let swapLi = split(getbtcdata, "_") | |
50 | 53 | let price = swapLi[0] | |
51 | 54 | let block = parseIntValue(swapLi[2]) | |
52 | 55 | let checkblockgap = (height - block) | |
53 | 56 | let OpionExpireCounter = 1 | |
54 | 57 | let OptionExpireCounterID = (read_OptionCounterID + OpionExpireCounter) | |
55 | 58 | let PreviousPut = match getInteger(this, "Total_Puts") { | |
56 | 59 | case a: Int => | |
57 | 60 | a | |
58 | 61 | case _ => | |
59 | 62 | 0 | |
60 | 63 | } | |
61 | 64 | let TotalPut = (PreviousPut + 1) | |
62 | 65 | let PreviousUserPut = match getInteger(this, (calleraddress + "_Total_Puts")) { | |
63 | 66 | case a: Int => | |
64 | 67 | a | |
65 | 68 | case _ => | |
66 | 69 | 0 | |
67 | 70 | } | |
68 | 71 | let TotalUserPut = (PreviousUserPut + 1) | |
69 | 72 | if ((checkblockgap > 2)) | |
70 | 73 | then throw("Something Wrong with Oracle or Height is not matched.") | |
71 | 74 | else if ((read_oracle_status == "Close")) | |
72 | 75 | then throw("Oracle is closed. Wait Until Oracle is Turned On.") | |
73 | 76 | else [StringEntry(((("Put_" + calleraddress) + "_") + toString(TotalUserPut)), price), StringEntry(((("Put_Start_End_" + calleraddress) + "_") + toString(TotalUserPut)), ((toString(read_OptionCounterID) + "_") + toString(OptionExpireCounterID))), IntegerEntry("Total_Puts", TotalPut), IntegerEntry((calleraddress + "_Total_Puts"), TotalUserPut)] | |
74 | 77 | } | |
75 | 78 | ||
76 | 79 | ||
77 | 80 | ||
78 | 81 | @Callable(i) | |
79 | 82 | func ClaimCall (Call_Sequence) = { | |
80 | 83 | let calleraddress = toBase58String(i.caller.bytes) | |
81 | 84 | let pmt = if ((size(i.payments) == 1)) | |
82 | 85 | then i.payments[0] | |
83 | 86 | else throw("No payment attached, Please Attach Tokens in payment[1].") | |
84 | 87 | let getOptionCallPrice = getStringValue(this, ((("Call_" + calleraddress) + "_") + Call_Sequence)) | |
85 | 88 | let getOptionCall_Sequencedata = getStringValue(this, ((("Call_Start_End_" + calleraddress) + "_") + Call_Sequence)) | |
86 | 89 | let splitStartEndCounter = split(getOptionCall_Sequencedata, "_") | |
87 | 90 | let getStartCounter = splitStartEndCounter[0] | |
88 | 91 | let getEndCounter = splitStartEndCounter[1] | |
89 | 92 | let getbtcdataAtStartCounter = getStringValue(this, ("1m_btc_" + getStartCounter)) | |
90 | 93 | let splitbtcpriceAtStartCounter = split(getbtcdataAtStartCounter, "_") | |
91 | 94 | let getbtcpriceAtStartCounter = splitbtcpriceAtStartCounter[0] | |
92 | 95 | let getbtcdataAtEndCounter = getStringValue(this, ("1m_btc_" + getEndCounter)) | |
93 | 96 | let splitbtcpriceAtEndCounter = split(getbtcdataAtEndCounter, "_") | |
94 | 97 | let getbtcpriceAtEndCounter = splitbtcpriceAtEndCounter[0] | |
95 | 98 | let pricediff = (parseIntValue(getbtcpriceAtEndCounter) - parseIntValue(getbtcpriceAtStartCounter)) | |
96 | 99 | let PreviousCallWin = match getInteger(this, "Total_Option_Call_Wins") { | |
97 | 100 | case a: Int => | |
98 | 101 | a | |
99 | 102 | case _ => | |
100 | 103 | 0 | |
101 | 104 | } | |
102 | 105 | let TotalCallWin = (PreviousCallWin + 1) | |
103 | 106 | let PreviousCallLose = match getInteger(this, "Total_Option_Call_Lose") { | |
104 | 107 | case a: Int => | |
105 | 108 | a | |
106 | 109 | case _ => | |
107 | 110 | 0 | |
108 | 111 | } | |
109 | 112 | let TotalCallLose = (PreviousCallLose + 1) | |
110 | 113 | if ((0 > pricediff)) | |
111 | 114 | then [IntegerEntry("Diff", pricediff), IntegerEntry("Total_Option_Call_Lose", TotalCallLose), StringEntry(((((((((((("c_" + calleraddress) + "_") + Call_Sequence) + "_") + getStartCounter) + "_") + getEndCounter) + "_") + getbtcpriceAtStartCounter) + "_") + getbtcpriceAtEndCounter), "lose"), StringEntry("message", "You lose!"), DeleteEntry(((("Call_" + calleraddress) + "_") + Call_Sequence)), DeleteEntry(((("Call_Start_End_" + calleraddress) + "_") + Call_Sequence))] | |
112 | 115 | else [IntegerEntry("Diff", pricediff), IntegerEntry("Total_Option_Call_Wins", TotalCallWin), StringEntry(((((((((((("c_" + calleraddress) + "_") + Call_Sequence) + "_") + getStartCounter) + "_") + getEndCounter) + "_") + getbtcpriceAtStartCounter) + "_") + getbtcpriceAtEndCounter), "Win"), StringEntry("message", "You Win!"), DeleteEntry(((("Call_" + calleraddress) + "_") + Call_Sequence)), DeleteEntry(((("Call_Start_End_" + calleraddress) + "_") + Call_Sequence))] | |
113 | 116 | } | |
114 | 117 | ||
115 | 118 | ||
116 | 119 | ||
117 | 120 | @Callable(i) | |
118 | 121 | func ClaimPut (Put_Sequence) = { | |
119 | 122 | let calleraddress = toBase58String(i.caller.bytes) | |
120 | 123 | let pmt = if ((size(i.payments) == 1)) | |
121 | 124 | then i.payments[0] | |
122 | 125 | else throw("No payment attached, Please Attach Tokens in payment[1].") | |
123 | 126 | let getOptionPutPrice = getStringValue(this, ((("Put_" + calleraddress) + "_") + Put_Sequence)) | |
124 | 127 | let getOptionPut_Sequencedata = getStringValue(this, ((("Put_Start_End_" + calleraddress) + "_") + Put_Sequence)) | |
125 | 128 | let splitStartEndCounter = split(getOptionPut_Sequencedata, "_") | |
126 | 129 | let getStartCounter = splitStartEndCounter[0] | |
127 | 130 | let getEndCounter = splitStartEndCounter[1] | |
128 | 131 | let getbtcdataAtStartCounter = getStringValue(this, ("1m_btc_" + getStartCounter)) | |
129 | 132 | let splitbtcpriceAtStartCounter = split(getbtcdataAtStartCounter, "_") | |
130 | 133 | let getbtcpriceAtStartCounter = splitbtcpriceAtStartCounter[0] | |
131 | 134 | let getbtcdataAtEndCounter = getStringValue(this, ("1m_btc_" + getEndCounter)) | |
132 | 135 | let splitbtcpriceAtEndCounter = split(getbtcdataAtEndCounter, "_") | |
133 | 136 | let getbtcpriceAtEndCounter = splitbtcpriceAtEndCounter[0] | |
134 | 137 | let pricediff = (parseIntValue(getbtcpriceAtEndCounter) - parseIntValue(getbtcpriceAtStartCounter)) | |
135 | 138 | let PreviousPutWin = match getInteger(this, "Total_Option_Put_Wins") { | |
136 | 139 | case a: Int => | |
137 | 140 | a | |
138 | 141 | case _ => | |
139 | 142 | 0 | |
140 | 143 | } | |
141 | 144 | let TotalPutWin = (PreviousPutWin + 1) | |
142 | 145 | let PreviousPutLose = match getInteger(this, "Total_Option_Put_Lose") { | |
143 | 146 | case a: Int => | |
144 | 147 | a | |
145 | 148 | case _ => | |
146 | 149 | 0 | |
147 | 150 | } | |
148 | 151 | let TotalPutLose = (PreviousPutLose + 1) | |
149 | 152 | if ((pricediff > 0)) | |
150 | 153 | then [IntegerEntry("Diff", pricediff), IntegerEntry("Total_Option_Put_Lose", TotalPutLose), StringEntry(((((((((((("p_" + calleraddress) + "_") + Put_Sequence) + "_") + getStartCounter) + "_") + getEndCounter) + "_") + getbtcpriceAtStartCounter) + "_") + getbtcpriceAtEndCounter), "lose"), StringEntry("message", "You lose!"), DeleteEntry(((("Put_" + calleraddress) + "_") + Put_Sequence)), DeleteEntry(((("Put_Start_End_" + calleraddress) + "_") + Put_Sequence))] | |
151 | 154 | else [IntegerEntry("Diff", pricediff), IntegerEntry("Total_Option_Put_Wins", TotalPutWin), StringEntry(((((((((((("p_" + calleraddress) + "_") + Put_Sequence) + "_") + getStartCounter) + "_") + getEndCounter) + "_") + getbtcpriceAtStartCounter) + "_") + getbtcpriceAtEndCounter), "Win"), StringEntry("message", "You Win!"), DeleteEntry(((("Put_" + calleraddress) + "_") + Put_Sequence)), DeleteEntry(((("Put_Start_End_" + calleraddress) + "_") + Put_Sequence))] | |
152 | 155 | } | |
153 | 156 | ||
154 | 157 | ||
155 | 158 | ||
156 | 159 | @Callable(i) | |
157 | 160 | func calldata (Counter) = { | |
158 | 161 | let getbtcdata = getStringValue(this, ("1m_btc_" + toString(Counter))) | |
159 | 162 | let swapLi = split(getbtcdata, "_") | |
160 | 163 | let price = swapLi[0] | |
161 | 164 | let time = swapLi[1] | |
162 | 165 | let blockheight = swapLi[2] | |
163 | 166 | let div = swapLi[3] | |
164 | 167 | [StringEntry("price", swapLi[0]), StringEntry("time", swapLi[1]), StringEntry("blockheight", swapLi[2]), StringEntry("div", swapLi[3])] | |
165 | 168 | } | |
166 | 169 | ||
167 | 170 | ||
168 | 171 | ||
169 | 172 | @Callable(i) | |
170 | - | func OpenOracle () = if ((i.caller != oracle_controller_address)) | |
171 | - | then throw((("This Address is not Authorized. Only " + toString(oracle_controller_address)) + " is Authorized Address to Sign it.")) | |
172 | - | else [StringEntry("oracle_status", "Open")] | |
173 | + | func OpenOracle () = { | |
174 | + | let calleraddress = toBase58String(i.caller.bytes) | |
175 | + | if ((i.caller != oracle_controller_address)) | |
176 | + | then throw((("This Address is not Authorized. Only " + toString(oracle_controller_address)) + " is Authorized Address to Sign it.")) | |
177 | + | else [StringEntry("oracle_status", "Open")] | |
178 | + | } | |
173 | 179 | ||
174 | 180 | ||
175 | 181 | ||
176 | 182 | @Callable(i) | |
177 | - | func SetBaseAssetID (BaseAsset) = { | |
178 | - | let PreviousBaseAssetID = match getString(this, "BaseAssetID") { | |
179 | - | case a: String => | |
180 | - | a | |
181 | - | case _ => | |
182 | - | 0 | |
183 | - | } | |
183 | + | func BlackListAddress (Address) = { | |
184 | + | let calleraddress = toBase58String(i.caller.bytes) | |
184 | 185 | if ((i.caller != oracle_controller_address)) | |
185 | 186 | then throw((("This Address is not Authorized. Only " + toString(oracle_controller_address)) + " is Authorized Address to Sign it.")) | |
186 | - | else [StringEntry(" | |
187 | + | else [StringEntry(("addr_BLACKLISTED_" + calleraddress), "Yes")] | |
187 | 188 | } | |
188 | 189 | ||
189 | 190 | ||
190 | 191 | @Verifier(tx) | |
191 | 192 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
192 | 193 |
github/deemru/w8io/169f3d6 41.79 ms ◑