tx · C77T8tAHDL4625932ZWFa4zUrkx1M4WLnbCV2gLDNzZo
3N6Kq28NjeS2TCdQxgg353NhJvEWCTyJSwD: -0.01000000 Waves
2022.01.06 21:41 [1867417] smart account 3N6Kq28NjeS2TCdQxgg353NhJvEWCTyJSwD > SELF 0.00000000 Waves
{
"type": 13,
"id": "C77T8tAHDL4625932ZWFa4zUrkx1M4WLnbCV2gLDNzZo",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1641494486966,
"version": 2,
"chainId": 84,
"sender": "3N6Kq28NjeS2TCdQxgg353NhJvEWCTyJSwD",
"senderPublicKey": "AJb1cme1qLD68yBfFc81GudWYgzyM7Gah1r1bz1p5UCY",
"proofs": [
"3xbpxfJdvY6BGRm2b1VB7LRZ4uUN7dhAouQk6z6zhUWGUQy6k7ax3gafawwMAbdRXXNM5sFR593HbsxAAoM6ZDC4"
],
"script": "base64:AAIFAAAAAAAAAAIIAgAAAAAAAAAAAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAJZmlyc3RVc2VyAQAAACCKOoMU2NkMsqP5dwcM7ffQu/8+E07LlRYT4Q0B6kbHOQQAAAAPZmlyc3RVc2VyU2lnbmVkAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAACWZpcnN0VXNlcgAAAAAAAAAAAQAAAAAAAAAAAAQAAAAPc2lnbmF0dXJlc0NvdW50BQAAAA9maXJzdFVzZXJTaWduZWQEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAJAABnAAAAAgUAAAAPc2lnbmF0dXJlc0NvdW50AAAAAAAAAAABCQAAZwAAAAIFAAAAD3NpZ25hdHVyZXNDb3VudAAAAAAAAAAAAcfsaYo=",
"height": 1867417,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: none
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 5 #-} |
---|
| 2 | + | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
| 3 | + | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | |
---|
| 5 | + | |
---|
| 6 | + | |
---|
| 7 | + | @Verifier(tx) |
---|
| 8 | + | func verify () = { |
---|
| 9 | + | let firstUser = base58'AJb1cme1qLD68yBfFc81GudWYgzyM7Gah1r1bz1p5UCY' |
---|
| 10 | + | let firstUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], firstUser)) |
---|
| 11 | + | then 1 |
---|
| 12 | + | else 0 |
---|
| 13 | + | let signaturesCount = firstUserSigned |
---|
| 14 | + | match tx { |
---|
| 15 | + | case t: DataTransaction => |
---|
| 16 | + | (signaturesCount >= 1) |
---|
| 17 | + | case _ => |
---|
| 18 | + | (signaturesCount >= 1) |
---|
| 19 | + | } |
---|
| 20 | + | } |
---|
| 21 | + | |
---|