tx · jx7gTE5AF1FrydKLZzbvf1C2LJ8fAZhRDp6FrwA4FYd
3MsbiyFyy8B3aN3kF8ntda474SPn4YMVkiq: -0.01000000 Waves
2021.07.09 11:01 [1605812] smart account 3MsbiyFyy8B3aN3kF8ntda474SPn4YMVkiq > SELF 0.00000000 Waves
{
"type": 13,
"id": "jx7gTE5AF1FrydKLZzbvf1C2LJ8fAZhRDp6FrwA4FYd",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1625817718428,
"version": 2,
"chainId": 84,
"sender": "3MsbiyFyy8B3aN3kF8ntda474SPn4YMVkiq",
"senderPublicKey": "B3KGf6Zy7izEe4GDmoDQssZ7VjRCTWjUiHq6gwwWSqPZ",
"proofs": [
"4xJUhDe9yoyz74yKH1b7f5rZmxbRrw5YgvFMWJZaEshs4CCZPaz9BHxG2rFXLpUvxsL6WkaNuucegG2VcCGyHj9q"
],
"script": "base64:AAIFAAAAAAAAAKMIAhIECgIICBokCgJhMRIeZ2V0RXh0VmFsdWVJdGVtV2hpdGVMaXN0U3RhdHVzGgoKAmEyEgRpdGVtGg4KAmEzEgh2ZXJpZmllchoOCgJhNBIIVkVSSUZJRUQaEQoCYTUSC0JMQUNLTElTVEVEGgcKAmE2EgFpGg4KAmE3EghzdXBwbGllchoMCgJhOBIGc3RhdHVzGg0KAmE5EgdhY2NvdW50AAAABAEAAAACYTEAAAABAAAAAmEyCQABLAAAAAIFAAAAAmEyAgAAABBfdmVyaWZpZXJfc3RhdHVzAAAAAAJhMwIAAAAjM014YmZvcHhXbnBxcHZBR3FUMkEyRmtuNWFCeHpmSFIzd1EAAAAAAmE0AgAAAAh2ZXJpZmllZAAAAAACYTUCAAAACWJsYWNrbGlzdAAAAAEAAAACYTYBAAAACXNldHN0YXR1cwAAAAIAAAACYTcAAAACYTgEAAAAAmE5CQACWAAAAAEICAUAAAACYTYAAAAGY2FsbGVyAAAABWJ5dGVzAwkBAAAAAiE9AAAAAgUAAAACYTkFAAAAAmEzCQAAAgAAAAECAAAAMU9ubHkgb3JhY2xlIHZlcnlmaWVyIGFyZSBhYmxlIHRvIG1hbmFnZSB3aGl0ZWxpc3QDAwkBAAAAAiE9AAAAAgUAAAACYTgFAAAAAmE0CQEAAAACIT0AAAACBQAAAAJhOAUAAAACYTUHCQAAAgAAAAECAAAADHdyb25nIHN0YXR1cwkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQEAAAACYTEAAAABBQAAAAJhNwUAAAACYTgFAAAAA25pbAAAAAAAyC2D",
"height": 1605812,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 6T8htSDD36fGNuRc7PYqn1CMaKyrCk26KVYwKKkdHux
Next: A7R35EW9rYw7Qnw15psafZjvS7YJzsB2VeH4FKuyzEzR
Diff:
Old | New | | Differences |
---|
4 | 4 | | func getExtValueItemWhiteListStatus (item) = (item + "_verifier_status") |
---|
5 | 5 | | |
---|
6 | 6 | | |
---|
7 | | - | let verifier = "warm ocean begin together there swift fence apple light swarm renew dismiss strong success wonder" |
---|
| 7 | + | let verifier = "3MxbfopxWnpqpvAGqT2A2Fkn5aBxzfHR3wQ" |
---|
8 | 8 | | |
---|
9 | 9 | | let VERIFIED = "verified" |
---|
10 | 10 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func getExtValueItemWhiteListStatus (item) = (item + "_verifier_status") |
---|
5 | 5 | | |
---|
6 | 6 | | |
---|
7 | | - | let verifier = "warm ocean begin together there swift fence apple light swarm renew dismiss strong success wonder" |
---|
| 7 | + | let verifier = "3MxbfopxWnpqpvAGqT2A2Fkn5aBxzfHR3wQ" |
---|
8 | 8 | | |
---|
9 | 9 | | let VERIFIED = "verified" |
---|
10 | 10 | | |
---|
11 | 11 | | let BLACKLISTED = "blacklist" |
---|
12 | 12 | | |
---|
13 | 13 | | @Callable(i) |
---|
14 | 14 | | func setstatus (supplier,status) = { |
---|
15 | 15 | | let account = toBase58String(i.caller.bytes) |
---|
16 | 16 | | if ((account != verifier)) |
---|
17 | 17 | | then throw("Only oracle veryfier are able to manage whitelist") |
---|
18 | 18 | | else if (if ((status != VERIFIED)) |
---|
19 | 19 | | then (status != BLACKLISTED) |
---|
20 | 20 | | else false) |
---|
21 | 21 | | then throw("wrong status") |
---|
22 | 22 | | else [StringEntry(getExtValueItemWhiteListStatus(supplier), status)] |
---|
23 | 23 | | } |
---|
24 | 24 | | |
---|
25 | 25 | | |
---|