tx · 7K9mGYLVdVGzHL3jWec6kaPpzgHcGza8N5nMEmZAjSct
3NCPQMFkk45BrnJoMsWJwd21rU5hkeMhAbN: -0.01000000 Waves
2020.09.16 13:59 [1179738] smart account 3NCPQMFkk45BrnJoMsWJwd21rU5hkeMhAbN > SELF 0.00000000 Waves
{
"type": 13,
"id": "7K9mGYLVdVGzHL3jWec6kaPpzgHcGza8N5nMEmZAjSct",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1600253996672,
"version": 1,
"sender": "3NCPQMFkk45BrnJoMsWJwd21rU5hkeMhAbN",
"senderPublicKey": "8eXUCHxJ5SGnRoeXptoz5pEWLSC8hfzPbg8kXys28GHh",
"proofs": [
"3WXUmyZJt6YuqzhZCFgjXjxgV64uW8LH7YJT5qm8dgAswiSHkpUGRdeYu8SiZsYoJSKpUcYCNZSbZVaLAWer89sG"
],
"script": "base64:AwQAAAALZmlyc3RQdWJLZXkBAAAAIHGev+trUgdyI1FBzAcHLo6RWiTfIdm7miPjD6EcC0xMBAAAAAxzZWNvbmRQdWJLZXkBAAAAIOPYM7SDCSYLQyb4+HL+tkVc8SlZ+ueiIP1HBLZo8nAYBAAAAAt0aGlyZFB1YktleQEAAAAgb9lIkcrFRWq/+BJ18J7IcMCDtazzLauxgbtrhTNzyVgEAAAAA2tleQIAAAAJbGFzdFByaWNlBAAAAA1vcmFjbGVBZGRyZXNzCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUMw6uFWB4sWF3sSvXelfjW6FoBjpQEqDzBAAAAAlsYXN0UHJpY2UJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAADW9yYWNsZUFkZHJlc3MFAAAAA2tleQQAAAALZmlyc3RTaWduZWQDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAQUAAAAMc2Vjb25kUHViS2V5AAAAAAAAAAABAAAAAAAAAAAABAAAAAxzZWNvbmRTaWduZWQDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAALZmlyc3RQdWJLZXkAAAAAAAAAAAEAAAAAAAAAAAAEAAAAC3RoaXJkU2lnbmVkAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAIFAAAAC3RoaXJkUHViS2V5AAAAAAAAAAABAAAAAAAAAAAAAwkAAGcAAAACCQAAZAAAAAIJAABkAAAAAgUAAAALZmlyc3RTaWduZWQFAAAADHNlY29uZFNpZ25lZAUAAAALdGhpcmRTaWduZWQAAAAAAAAAAAIJAABnAAAAAgUAAAAJbGFzdFByaWNlAAAAAAAAAAEsByodBZE=",
"chainId": 84,
"height": 1179738,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: none
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 3 #-} |
---|
| 2 | + | {-# CONTENT_TYPE EXPRESSION #-} |
---|
| 3 | + | let firstPubKey = base58'8eXUCHxJ5SGnRoeXptoz5pEWLSC8hfzPbg8kXys28GHh' |
---|
| 4 | + | let secondPubKey = base58'GLQkwGrFmQzg8BZVyXfCPjLwNBu2XDVd8crJB9wS95m1' |
---|
| 5 | + | let thirdPubKey = base58'8XcRRSTTNJcP4Tye5QXSyxTQsUtzi7MmAMq8nK3ypjQb' |
---|
| 6 | + | let key = "lastPrice" |
---|
| 7 | + | let oracleAddress = Address(base58'3Mta3pgvUKMoXSDWVToXhvVY11FKro3BMBp') |
---|
| 8 | + | let lastPrice = getIntegerValue(oracleAddress, key) |
---|
| 9 | + | let firstSigned = if (sigVerify(tx.bodyBytes, tx.proofs[1], secondPubKey)) |
---|
| 10 | + | then 1 |
---|
| 11 | + | else 0 |
---|
| 12 | + | let secondSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], firstPubKey)) |
---|
| 13 | + | then 1 |
---|
| 14 | + | else 0 |
---|
| 15 | + | let thirdSigned = if (sigVerify(tx.bodyBytes, tx.proofs[2], thirdPubKey)) |
---|
| 16 | + | then 1 |
---|
| 17 | + | else 0 |
---|
| 18 | + | if ((((firstSigned + secondSigned) + thirdSigned) >= 2)) |
---|
| 19 | + | then (lastPrice >= 300) |
---|
| 20 | + | else false |
---|