tx · 69SWgnoR8V4s7cnHaE6wCYg4rgVPpqYeo5ykwbQvaxnx
3Mtinmi2JzBswJHXzCK1NK8mFKmsXqBv8ST: -0.01000000 Waves
2022.01.06 21:53 [1867430] smart account 3Mtinmi2JzBswJHXzCK1NK8mFKmsXqBv8ST > SELF 0.00000000 Waves
{
"type": 13,
"id": "69SWgnoR8V4s7cnHaE6wCYg4rgVPpqYeo5ykwbQvaxnx",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1641495248859,
"version": 2,
"chainId": 84,
"sender": "3Mtinmi2JzBswJHXzCK1NK8mFKmsXqBv8ST",
"senderPublicKey": "6sNAUZzoANUueBAEQL5pzQSq7AtehTFJmpfdgxQVrbnT",
"proofs": [
"VvQCJQ5SpbKPvKWffTx15GdQ996eJkUdQTtVXjy8EVKeHczQPJzVqzBCQgP2iHoKYtPpw3qRoSa1wD5u8HTw4Uh"
],
"script": "base64:AAIFAAAAAAAAAAIIAgAAAAAAAAAAAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAJZmlyc3RVc2VyAQAAACBXMWeSqbLmtErshLoDQoZmZMuotl7Pz/+XSJdyxTOnHAQAAAAKc2Vjb25kVXNlcgEAAAAg6IKSt7EWHUzGM86iLcy0OdeSzlUOXgvvkqWf28jkRloEAAAAD2ZpcnN0VXNlclNpZ25lZAMDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAJZmlyc3RVc2VyBgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAEFAAAACWZpcnN0VXNlcgAAAAAAAAAAAQAAAAAAAAAAAAQAAAAQc2Vjb25kVXNlclNpZ25lZAMDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAKc2Vjb25kVXNlcgYJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAABBQAAAApzZWNvbmRVc2VyAAAAAAAAAAABAAAAAAAAAAAABAAAAA9zaWduYXR1cmVzQ291bnQJAABkAAAAAgUAAAAPZmlyc3RVc2VyU2lnbmVkBQAAABBzZWNvbmRVc2VyU2lnbmVkBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwCQAAZwAAAAIFAAAAD3NpZ25hdHVyZXNDb3VudAAAAAAAAAAAAQkAAGcAAAACBQAAAA9zaWduYXR1cmVzQ291bnQAAAAAAAAAAAFAsxnj",
"height": 1867430,
"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'6sNAUZzoANUueBAEQL5pzQSq7AtehTFJmpfdgxQVrbnT' |
---|
| 10 | + | let secondUser = base58'Ged4o2TYV3pPcVg8sbvDoZAZZVDZciap7hRNYUZnfwtu' |
---|
| 11 | + | let firstUserSigned = if (if (sigVerify(tx.bodyBytes, tx.proofs[0], firstUser)) |
---|
| 12 | + | then true |
---|
| 13 | + | else sigVerify(tx.bodyBytes, tx.proofs[1], firstUser)) |
---|
| 14 | + | then 1 |
---|
| 15 | + | else 0 |
---|
| 16 | + | let secondUserSigned = if (if (sigVerify(tx.bodyBytes, tx.proofs[0], secondUser)) |
---|
| 17 | + | then true |
---|
| 18 | + | else sigVerify(tx.bodyBytes, tx.proofs[1], secondUser)) |
---|
| 19 | + | then 1 |
---|
| 20 | + | else 0 |
---|
| 21 | + | let signaturesCount = (firstUserSigned + secondUserSigned) |
---|
| 22 | + | match tx { |
---|
| 23 | + | case t: DataTransaction => |
---|
| 24 | + | (signaturesCount >= 1) |
---|
| 25 | + | case _ => |
---|
| 26 | + | (signaturesCount >= 1) |
---|
| 27 | + | } |
---|
| 28 | + | } |
---|
| 29 | + | |
---|