tx · CoQ8oyvoWHxTRqpaRUnTkkbJ9JwsVZQ28iC6v2r1HV2n

3N2kYSm5NHgsVYByuqsHEuJj3B174iw7ikP:  -0.01400000 Waves

2019.07.11 10:49 [580754] smart account 3N2kYSm5NHgsVYByuqsHEuJj3B174iw7ikP > SELF 0.00000000 Waves

{ "type": 13, "id": "CoQ8oyvoWHxTRqpaRUnTkkbJ9JwsVZQ28iC6v2r1HV2n", "fee": 1400000, "feeAssetId": null, "timestamp": 1562831408732, "version": 1, "sender": "3N2kYSm5NHgsVYByuqsHEuJj3B174iw7ikP", "senderPublicKey": "EghK1ndUequAR8FfFYnK6itzJoz6XBXuBwJ9R2NBtRS4", "proofs": [ "4qoV72kcPqGUjuTe3rF6p1XcC6Uq4LJJQexQEdcUXVJbKTYQr8ujdVgJXo3U8X1UKaiccnAwZzPjeE7w8ckb79D1" ], "script": "base64:AAIDAAAAAAAAAAAAAAAIAAAAAAthbGljZVB1YktleQEAAAAgOITRcCoKNTKqAsbsI7JcjEyc+1VR5mMOpsGoUi0JKjkAAAAACWJvYlB1YktleQEAAAAgOPBOW6N2bmWmpMd/LMXIwkA2OIUQhWJH019Pc7tgpSMAAAAADGNvb3BlclB1YktleQEAAAAgy1MpMZp8+4hN9rmZPzVtqBXPXqzIJa0q68vtAj5jLAUAAAAAC290aGVyUHViS2V5AQAAACCcUW8jVT9kpF19g4OlKJR98WVU6DO1nDSGe47M+HtjPwEAAAAeZ2V0RXh0VmFsdWVJdGVtV2hpdGVMaXN0U3RhdHVzAAAAAQAAAARpdGVtCQABLAAAAAIFAAAABGl0ZW0CAAAAEF92ZXJpZmllcl9zdGF0dXMAAAAACHZlcmlmaWVyAQAAABoBVIzLvP/70jvt7zarcQfNc2HezkIyliL3SAAAAAAIVkVSSUZJRUQCAAAACHZlcmlmaWVkAAAAAAtCTEFDS0xJU1RFRAIAAAAJYmxhY2tsaXN0AAAAAQAAAAFpAQAAAAlzZXRzdGF0dXMAAAACAAAACHN1cHBsaWVyAAAABn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AkNvBgUAAAACT3QDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAEElzc3VlVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDADAwMFAAAAAkFsBgUAAAACQm8GBQAAAAJDbwYFAAAAAk90AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABJSZWlzc3VlVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDADAwMFAAAAAkFsBgUAAAACQm8GBQAAAAJDbwYFAAAAAk90AwMDAwMDBQAAAAJBbAUAAAACQm8HBgMFAAAAAkFsBQAAAAJDbwcGAwUAAAACQm8FAAAAAkNvBwYDBQAAAAJBbAUAAAACT3QHBgMFAAAAAkJvBQAAAAJPdAcGAwUAAAACQ28FAAAAAk90B6S3h+M=", "chainId": 84, "height": 580754, "spentComplexity": 0 } View: original | compacted Prev: 44czG8CGuqU5NwY5ERKbG61wcj2to1VhDQqtegE7Deqz Next: 2pEjguuGxQdqBDVEechtoriexTA9GyxRicXcRvxfXDJt Diff:
OldNewDifferences
1212 func getExtValueItemWhiteListStatus (item) = (item + "_verifier_status")
1313
1414
15-let verifier = "3N2kYSm5NHgsVYByuqsHEuJj3B174iw7ikP"
15+let verifier = base58'3N2kYSm5NHgsVYByuqsHEuJj3B174iw7ikP'
1616
1717 let VERIFIED = "verified"
1818
2020
2121 @Callable(i)
2222 func setstatus (supplier,status) = {
23- let account = toBase58String(i.caller.bytes)
23+ let account = i.caller.bytes
2424 if ((account != verifier))
2525 then throw("only oracle veryfier are able to manage whitelist")
2626 else if (if ((status != VERIFIED))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let alicePubKey = base58'4odJB3xcaswGibZ1oQ7C9VNoBjtXMsWKexoo35zjBWUx'
55
66 let bobPubKey = base58'4qGMpfFhpc2L1VGrBe5tQFxCWsdYiYttdC9ZmHYJn2Lz'
77
88 let cooperPubKey = base58'EghK1ndUequAR8FfFYnK6itzJoz6XBXuBwJ9R2NBtRS4'
99
1010 let otherPubKey = base58'BXCd46i2Pdzu8csVsX2nknDP9D1phC4sa1anNpDHJAog'
1111
1212 func getExtValueItemWhiteListStatus (item) = (item + "_verifier_status")
1313
1414
15-let verifier = "3N2kYSm5NHgsVYByuqsHEuJj3B174iw7ikP"
15+let verifier = base58'3N2kYSm5NHgsVYByuqsHEuJj3B174iw7ikP'
1616
1717 let VERIFIED = "verified"
1818
1919 let BLACKLISTED = "blacklist"
2020
2121 @Callable(i)
2222 func setstatus (supplier,status) = {
23- let account = toBase58String(i.caller.bytes)
23+ let account = i.caller.bytes
2424 if ((account != verifier))
2525 then throw("only oracle veryfier are able to manage whitelist")
2626 else if (if ((status != VERIFIED))
2727 then (status != BLACKLISTED)
2828 else false)
2929 then throw("wrong status")
3030 else WriteSet([DataEntry(getExtValueItemWhiteListStatus(supplier), status)])
3131 }
3232
3333
3434 @Verifier(tx)
3535 func verify () = {
3636 let Al = if (if (sigVerify(tx.bodyBytes, tx.proofs[0], alicePubKey))
3737 then true
3838 else sigVerify(tx.bodyBytes, tx.proofs[1], alicePubKey))
3939 then true
4040 else sigVerify(tx.bodyBytes, tx.proofs[0], alicePubKey)
4141 let Bo = if (if (sigVerify(tx.bodyBytes, tx.proofs[0], bobPubKey))
4242 then true
4343 else sigVerify(tx.bodyBytes, tx.proofs[1], bobPubKey))
4444 then true
4545 else sigVerify(tx.bodyBytes, tx.proofs[2], bobPubKey)
4646 let Co = if (if (sigVerify(tx.bodyBytes, tx.proofs[0], cooperPubKey))
4747 then true
4848 else sigVerify(tx.bodyBytes, tx.proofs[1], cooperPubKey))
4949 then true
5050 else sigVerify(tx.bodyBytes, tx.proofs[2], cooperPubKey)
5151 let Ot = if (if (sigVerify(tx.bodyBytes, tx.proofs[0], otherPubKey))
5252 then true
5353 else sigVerify(tx.bodyBytes, tx.proofs[1], otherPubKey))
5454 then true
5555 else sigVerify(tx.bodyBytes, tx.proofs[2], otherPubKey)
5656 match tx {
5757 case t: SetScriptTransaction =>
5858 if (if (Al)
5959 then true
6060 else Bo)
6161 then true
6262 else Co
6363 case t: InvokeScriptTransaction =>
6464 if (if (if (Al)
6565 then true
6666 else Bo)
6767 then true
6868 else Co)
6969 then true
7070 else Ot
7171 case t: IssueTransaction =>
7272 if (if (if (Al)
7373 then true
7474 else Bo)
7575 then true
7676 else Co)
7777 then true
7878 else Ot
7979 case t: ReissueTransaction =>
8080 if (if (if (Al)
8181 then true
8282 else Bo)
8383 then true
8484 else Co)
8585 then true
8686 else Ot
8787 case _ =>
8888 if (if (if (if (if (if (Al)
8989 then Bo
9090 else false)
9191 then true
9292 else if (Al)
9393 then Co
9494 else false)
9595 then true
9696 else if (Bo)
9797 then Co
9898 else false)
9999 then true
100100 else if (Al)
101101 then Ot
102102 else false)
103103 then true
104104 else if (Bo)
105105 then Ot
106106 else false)
107107 then true
108108 else if (Co)
109109 then Ot
110110 else false
111111 }
112112 }
113113

github/deemru/w8io/169f3d6 
40.92 ms