tx · HwPLm3hcvEF5FLn1oxxDoXSWbt32WjKJFVFKc1xWPUm1
3N8WQuZADyBDgZ5Usscm5WsvWYBHF8zz8nh: -0.01000000 Waves
2022.01.06 21:52 [1867428] smart account 3N8WQuZADyBDgZ5Usscm5WsvWYBHF8zz8nh > SELF 0.00000000 Waves
{
"type": 13,
"id": "HwPLm3hcvEF5FLn1oxxDoXSWbt32WjKJFVFKc1xWPUm1",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1641495116970,
"version": 2,
"chainId": 84,
"sender": "3N8WQuZADyBDgZ5Usscm5WsvWYBHF8zz8nh",
"senderPublicKey": "1mbGKgit6XpGm1nDScVnAH8kNpXHZRHr1zy6XXk9UxK",
"proofs": [
"3eSh6DtL4P7D71trGapD6ZQQv895mvSHe9bysY8sFWu3aTwKMFP68z25FgMSz3GJxn3shkGKxAfqQZsCTedeK7Sj"
],
"script": "base64:AAIFAAAAAAAAAAIIAgAAAAAAAAAAAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAJZmlyc3RVc2VyAQAAACAAMms/UbIWfeo/qsf1z5vfEFPn/XqLsckPsxREP/N1BAQAAAAKc2Vjb25kVXNlcgEAAAAg6IKSt7EWHUzGM86iLcy0OdeSzlUOXgvvkqWf28jkRloEAAAAD2ZpcnN0VXNlclNpZ25lZAMDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAJZmlyc3RVc2VyBgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAEFAAAACWZpcnN0VXNlcgAAAAAAAAAAAQAAAAAAAAAAAAQAAAAQc2Vjb25kVXNlclNpZ25lZAMDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAKc2Vjb25kVXNlcgYJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAABBQAAAApzZWNvbmRVc2VyAAAAAAAAAAABAAAAAAAAAAAABAAAAA9zaWduYXR1cmVzQ291bnQJAABkAAAAAgUAAAAPZmlyc3RVc2VyU2lnbmVkBQAAABBzZWNvbmRVc2VyU2lnbmVkBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwCQAAZwAAAAIFAAAAD3NpZ25hdHVyZXNDb3VudAAAAAAAAAAAAQkAAGcAAAACBQAAAA9zaWduYXR1cmVzQ291bnQAAAAAAAAAAAGI1n47",
"height": 1867428,
"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'1mbGKgit6XpGm1nDScVnAH8kNpXHZRHr1zy6XXk9UxK' |
---|
| 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 | + | |
---|