tx · ArW6bGhRjMA9y9qFQnStc39MwtNTyh4goP9h7YxjroFW
3NCUbw7bqJNhTEmEAP4fzDWQ5kaQXVmDSuD: -0.01000000 Waves
2022.04.07 06:22 [1997599] smart account 3NCUbw7bqJNhTEmEAP4fzDWQ5kaQXVmDSuD > SELF 0.00000000 Waves
{
"type": 13,
"id": "ArW6bGhRjMA9y9qFQnStc39MwtNTyh4goP9h7YxjroFW",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1649301725773,
"version": 2,
"chainId": 84,
"sender": "3NCUbw7bqJNhTEmEAP4fzDWQ5kaQXVmDSuD",
"senderPublicKey": "C9erAJCdKECYtMmAnbhy5bsrc5KZQj6pxero8dgNk4vX",
"proofs": [
"642ACh4hwH3c3SrSS53jg3T96BQaRCYPinzuvR98ktJnedaU3FVuhjUsajUx1GitPi7fCR8kKDAHNsB9m9PJGhD8"
],
"script": "base64:AAIDAAAAAAAAAAIIAQAAAAMAAAAAC2FsaWNlUHViS2V5AQAAACClp/8//hFmTXuwn4DCIF/Qu/CAD/pxUPoO9+gqSfZEdAAAAAAJYm9iUHViS2V5AQAAACBcRdZfWEyK9YbJfTi+EzAia12AHLtp6G1AIizO516CBQAAAAAMY29vcGVyUHViS2V5AQAAACBX69tsdS+JaARVEspg2NNzkj96SERuCMTecBGJE4k/MQAAAAAAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAthbGljZVNpZ25lZAMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAthbGljZVB1YktleQAAAAAAAAAAAQAAAAAAAAAAAAQAAAAJYm9iU2lnbmVkAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAEFAAAACWJvYlB1YktleQAAAAAAAAAAAQAAAAAAAAAAAAQAAAAMY29vcGVyU2lnbmVkAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAIFAAAADGNvb3BlclB1YktleQAAAAAAAAAAAQAAAAAAAAAAAAkAAGcAAAACCQAAZAAAAAIJAABkAAAAAgUAAAALYWxpY2VTaWduZWQFAAAACWJvYlNpZ25lZAUAAAAMY29vcGVyU2lnbmVkAAAAAAAAAAACDZZ5nQ==",
"height": 1997599,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: B4yhdymGNdCjRLwEAhAVsLpFEP6RFmf5GTKj7x2ixiGP
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 3 #-} |
---|
| 2 | + | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
| 3 | + | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | let alicePubKey = base58'C9erAJCdKECYtMmAnbhy5bsrc5KZQj6pxero8dgNk4vX' |
---|
| 5 | + | |
---|
| 6 | + | let bobPubKey = base58'7DCGpVRu5yMRkLQm6znLoYHnnX7LKF8Q1CkyZ3n4ULFe' |
---|
| 7 | + | |
---|
| 8 | + | let cooperPubKey = base58'6vD4ejZJQxbrQoSdV4p95EwJ6WvxafZsBEF6ANEq4jTE' |
---|
| 9 | + | |
---|
| 10 | + | |
---|
| 11 | + | @Verifier(tx) |
---|
| 12 | + | func verify () = { |
---|
| 13 | + | let aliceSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], alicePubKey)) |
---|
| 14 | + | then 1 |
---|
| 15 | + | else 0 |
---|
| 16 | + | let bobSigned = if (sigVerify(tx.bodyBytes, tx.proofs[1], bobPubKey)) |
---|
| 17 | + | then 1 |
---|
| 18 | + | else 0 |
---|
| 19 | + | let cooperSigned = if (sigVerify(tx.bodyBytes, tx.proofs[2], cooperPubKey)) |
---|
| 20 | + | then 1 |
---|
| 21 | + | else 0 |
---|
| 22 | + | (((aliceSigned + bobSigned) + cooperSigned) >= 2) |
---|
| 23 | + | } |
---|
| 24 | + | |
---|