tx · 7xJQ1uhGCqGLXDZ8uJYfiRCzhyUV3Bur8wFkfcVpESCv

3N7y8qhNA8RXkfuzGTLdtmZFZmwbhZtLJhb:  -0.01000000 Waves

2023.02.14 20:11 [2449575] smart account 3N7y8qhNA8RXkfuzGTLdtmZFZmwbhZtLJhb > SELF 0.00000000 Waves

{ "type": 13, "id": "7xJQ1uhGCqGLXDZ8uJYfiRCzhyUV3Bur8wFkfcVpESCv", "fee": 1000000, "feeAssetId": null, "timestamp": 1676394791141, "version": 2, "chainId": 84, "sender": "3N7y8qhNA8RXkfuzGTLdtmZFZmwbhZtLJhb", "senderPublicKey": "GWpjPX6mt3HRdUusZGysPeTyNhb6kELXVYQRJny11i59", "proofs": [ "3CAmrejvrGDfFs4dFrgGueKsErmnEaFixCdBttkM1rsYZrbQmJy6uoCM6qkzxHcMk1L6HqSgbibF7VvWc7T9Uram" ], "script": "base64:AAIFAAAAAAAAAA0IAhIDCgEIEgQKAggIAAAAAAAAAAIAAAABaQEAAAAJYWNjZXB0UmVnAAAAAQAAAA1wcm92aWRlcl9hZGRyBAAAAAxvcHRpb25zX2FkZHIJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVRBW/gr9hfqKqHLxIrx+8e7siBhMf6HIMEEAAAACWFkbWluTGlzdAQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAxvcHRpb25zX2FkZHICAAAACmFkbWluX2xpc3QDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABFVuaXQCAAAABXVuc2V0AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAXgFAAAAByRtYXRjaDAFAAAAAXgJAAACAAAAAQIAAAALTWF0Y2ggZXJyb3IEAAAAEGNhbGxlckFkZHJlc3NTdHIJAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyAwkBAAAAAiE9AAAAAgUAAAAJYWRtaW5MaXN0AgAAAAV1bnNldAQAAAAEdGVzdAkABB0AAAACCQEAAAARQGV4dHJOYXRpdmUo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449575, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6kk8y4UsjTjk2Z4mpJ67yRHET1M8LFg37zD9TVMPTCbV Next: Hwu5a59LmVmQnvrTbdKaAi2noCH4d4zAu9iQo9ZxwcSu Diff:
OldNewDifferences
44
55
66 @Callable(i)
7-func setOption (variable,value) = {
8- let adminList = match getString(this, "admin_list") {
7+func acceptReg (provider_addr) = {
8+ let options_addr = Address(base58'3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6')
9+ let adminList = match getString(options_addr, "admin_list") {
910 case _: Unit =>
1011 "unset"
1112 case x: String =>
2627 throw("Match error")
2728 }
2829 if ((isAdmin != "no admin"))
29- then $Tuple2([StringEntry(variable, value)], unit)
30+ then $Tuple2([StringEntry(provider_addr, "")], unit)
3031 else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", "))
3132 }
3233 else throw("Unset admin list")
3536
3637
3738 @Callable(i)
38-func delOption (variable) = {
39- let adminList = match getString(this, "admin_list") {
39+func rejectReg (provider_addr,confirm_data) = {
40+ let options_addr = Address(base58'3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6')
41+ let adminList = match getString(options_addr, "admin_list") {
4042 case _: Unit =>
4143 "unset"
4244 case x: String =>
5759 throw("Match error")
5860 }
5961 if ((isAdmin != "no admin"))
60- then $Tuple2([DeleteEntry(variable)], unit)
62+ then $Tuple2([StringEntry(provider_addr, confirm_data)], unit)
6163 else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", "))
6264 }
6365 else throw("Unset admin list")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
7-func setOption (variable,value) = {
8- let adminList = match getString(this, "admin_list") {
7+func acceptReg (provider_addr) = {
8+ let options_addr = Address(base58'3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6')
9+ let adminList = match getString(options_addr, "admin_list") {
910 case _: Unit =>
1011 "unset"
1112 case x: String =>
1213 x
1314 case _ =>
1415 throw("Match error")
1516 }
1617 let callerAddressStr = toString(i.caller)
1718 if ((adminList != "unset"))
1819 then {
1920 let test = getString(addressFromStringValue(adminList), callerAddressStr)
2021 let isAdmin = match test {
2122 case x: String =>
2223 x
2324 case _: Unit =>
2425 "no admin"
2526 case _ =>
2627 throw("Match error")
2728 }
2829 if ((isAdmin != "no admin"))
29- then $Tuple2([StringEntry(variable, value)], unit)
30+ then $Tuple2([StringEntry(provider_addr, "")], unit)
3031 else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", "))
3132 }
3233 else throw("Unset admin list")
3334 }
3435
3536
3637
3738 @Callable(i)
38-func delOption (variable) = {
39- let adminList = match getString(this, "admin_list") {
39+func rejectReg (provider_addr,confirm_data) = {
40+ let options_addr = Address(base58'3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6')
41+ let adminList = match getString(options_addr, "admin_list") {
4042 case _: Unit =>
4143 "unset"
4244 case x: String =>
4345 x
4446 case _ =>
4547 throw("Match error")
4648 }
4749 let callerAddressStr = toString(i.caller)
4850 if ((adminList != "unset"))
4951 then {
5052 let test = getString(addressFromStringValue(adminList), callerAddressStr)
5153 let isAdmin = match test {
5254 case x: String =>
5355 x
5456 case _: Unit =>
5557 "no admin"
5658 case _ =>
5759 throw("Match error")
5860 }
5961 if ((isAdmin != "no admin"))
60- then $Tuple2([DeleteEntry(variable)], unit)
62+ then $Tuple2([StringEntry(provider_addr, confirm_data)], unit)
6163 else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", "))
6264 }
6365 else throw("Unset admin list")
6466 }
6567
6668
6769 @Verifier(tx)
6870 func verify () = match tx {
6971 case _ =>
7072 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
7173 }
7274

github/deemru/w8io/169f3d6 
37.98 ms