tx · EcR9w19YjF4VTLMMvDKJ1LUKrjai7o1sSxEUFB4mUmDF
3Ms3vFkrTaXvYNw9Vna8vgTmHzEhWCBkBmT: -0.04000000 Waves
2021.11.05 15:30 [1777693] smart account 3Ms3vFkrTaXvYNw9Vna8vgTmHzEhWCBkBmT > SELF 0.00000000 Waves
{
"type": 13,
"id": "EcR9w19YjF4VTLMMvDKJ1LUKrjai7o1sSxEUFB4mUmDF",
"fee": 4000000,
"feeAssetId": null,
"timestamp": 1636115453293,
"version": 2,
"chainId": 84,
"sender": "3Ms3vFkrTaXvYNw9Vna8vgTmHzEhWCBkBmT",
"senderPublicKey": "4cDpBfmEAxfhEbF9jxuT8xqJa14SqZgPfZ9Tov6ka4Qj",
"proofs": [
"2BXoNufvBTE864HZBHp9gCtjpFWaQkS891MrQ47XLAba9s3Acf5zzZ2UUL1Tov2Jj2WZnDcxZszqxhW3tGG2KDV2"
],
"script": "base64:AAIFAAAAAAAAAAgIAhIECgIICAAAAAQAAAAACFZFUklGSUVSAgAAACMzTjhGV045b3JWOEQ4cHg2eHJZcVRqV0hIdTJRZDNKeDRiVgAAAAAIVkVSSUZJRUQCAAAACHZlcmlmaWVkAAAAAAdCTE9DS0VEAgAAAAdibG9ja2VkAQAAAA9nZXRBZHJlc3NTdGF0dXMAAAABAAAAB2FkZHJlc3MJAAEsAAAAAgUAAAAHYWRkcmVzcwIAAAAGc3RhdHVzAAAAAQAAAAFpAQAAAAlzZXRTdGF0dXMAAAACAAAAB2FkZHJlc3MAAAAGc3RhdHVzBAAAAAdhY2NvdW50CQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMDCQEAAAACIT0AAAACBQAAAAdhY2NvdW50BQAAAAhWRVJJRklFUgkAAAIAAAABAgAAAAlObyBBY2Nlc3MDAwkBAAAAAiE9AAAAAgUAAAAGc3RhdHVzBQAAAAhWRVJJRklFRAkBAAAAAiE9AAAAAgUAAAAGc3RhdHVzBQAAAAdCTE9DS0VEBwkAAAIAAAABAgAAAA5JbnZhbGlkIHN0YXR1cwkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQEAAAAPZ2V0QWRyZXNzU3RhdHVzAAAAAQUAAAAHYWRkcmVzcwUAAAAGc3RhdHVzBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tlec+QJFA=",
"height": 1777693,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: EgE7KM416q24WR6cAtBEoeNJEwSDa2AQju1hjeygWFdc
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 5 #-} |
---|
| 2 | + | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
| 3 | + | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | let a = "3N8FWN9orV8D8px6xrYqTjWHHu2Qd3Jx4bV" |
---|
| 5 | + | |
---|
| 6 | + | let b = "verified" |
---|
| 7 | + | |
---|
| 8 | + | let c = "blocked" |
---|
| 9 | + | |
---|
| 10 | + | func d (e) = (e + "status") |
---|
| 11 | + | |
---|
| 12 | + | |
---|
| 13 | + | @Callable(f) |
---|
| 14 | + | func setStatus (e,g) = { |
---|
| 15 | + | let h = toBase58String(f.caller.bytes) |
---|
| 16 | + | if ((h != a)) |
---|
| 17 | + | then throw("No Access") |
---|
| 18 | + | else if (if ((g != b)) |
---|
| 19 | + | then (g != c) |
---|
| 20 | + | else false) |
---|
| 21 | + | then throw("Invalid status") |
---|
| 22 | + | else [StringEntry(d(e), g)] |
---|
| 23 | + | } |
---|
| 24 | + | |
---|
| 25 | + | |
---|
| 26 | + | @Verifier(i) |
---|
| 27 | + | func j () = sigVerify(i.bodyBytes, i.proofs[0], i.senderPublicKey) |
---|
| 28 | + | |
---|