tx · 91yofFsTmjGKvFfu4ERWNXzqsjSUiSHX6N2kx5PmTQzt

3N3rjXsnD7Cm3ytj4MWJ7Ah8tDJT4obBQSe:  -0.01000000 Waves

2019.02.04 01:44 [479432] smart account 3N3rjXsnD7Cm3ytj4MWJ7Ah8tDJT4obBQSe > SELF 0.00000000 Waves

{ "type": 13, "id": "91yofFsTmjGKvFfu4ERWNXzqsjSUiSHX6N2kx5PmTQzt", "fee": 1000000, "feeAssetId": null, "timestamp": 1549233888661, "version": 1, "sender": "3N3rjXsnD7Cm3ytj4MWJ7Ah8tDJT4obBQSe", "senderPublicKey": "8Nmr37S1DCc8gvpFw9Q22Wp8W7LrxVpsA1psY3p5L4qs", "proofs": [ "ywnPEUaYqEmxCf1xc9Rh8JE8aFtK8rrEn5bEBh3qTBsbVwzvXDbNq2aMY6p1QMsiCBqLYCMqisEfrji6mJ1TZHs" ], "script": "base64:AQQAAAAEa2luZwkBAAAAB2V4dHJhY3QAAAABCQEAAAARYWRkcmVzc0Zyb21TdHJpbmcAAAABAgAAAAtraW5nQWRkcmVzcwQAAAAHY29tcGFueQkBAAAAB2V4dHJhY3QAAAABCQEAAAARYWRkcmVzc0Zyb21TdHJpbmcAAAABAgAAAA5jb21wYW55QWRkcmVzcwQAAAAHbm90YXJ5MQkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQkBAAAAB2V4dHJhY3QAAAABCQAEHAAAAAIFAAAABGtpbmcCAAAACW5vdGFyeTFQSwQAAAAQdHhJZEJhc2U1OFN0cmluZwkAAlgAAAABCAUAAAACdHgAAAACaWQEAAAAEG5vdGFyeTFBZ3JlZW1lbnQJAAQbAAAAAgUAAAAHbm90YXJ5MQUAAAAQdHhJZEJhc2U1OFN0cmluZwQAAAAPaXNOb3RhcnkxQWdyZWVkAwkBAAAACWlzRGVmaW5lZAAAAAEFAAAAEG5vdGFyeTFBZ3JlZW1lbnQJAQAAAAdleHRyYWN0AAAAAQUAAAAQbm90YXJ5MUFncmVlbWVudAcEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwBAAAABByZWNpcGllbnRBZGRyZXNzCQAEJAAAAAEIBQAAAAF0AAAACXJlY2lwaWVudAQAAAAScmVjaXBpZW50QWdyZWVtZW50CQAEGwAAAAIFAAAAEHJlY2lwaWVudEFkZHJlc3MFAAAAEHR4SWRCYXNlNThTdHJpbmcEAAAAEWlzUmVjaXBpZW50QWdyZWVkAwkBAAAACWlzRGVmaW5lZAAAAAEFAAAAEnJlY2lwaWVudEFncmVlbWVudAkBAAAAB2V4dHJhY3QAAAABBQAAABJyZWNpcGllbnRBZ3JlZW1lbnQHBAAAAA1zZW5kZXJBZGRyZXNzCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABCAUAAAABdAAAAA9zZW5kZXJQdWJsaWNLZXkDCQAAAAAAAAIIBQAAAA1zZW5kZXJBZGRyZXNzAAAABWJ5dGVzCAUAAAAHY29tcGFueQAAAAVieXRlcwYDBQAAAA9pc05vdGFyeTFBZ3JlZWQFAAAAEWlzUmVjaXBpZW50QWdyZWVkBwc+mQXw", "chainId": 84, "height": 479432, "spentComplexity": 0 } View: original | compacted Prev: BhswuVcjp5bMkzCHhpNMPXteGmviVokG7JLaLCfE1Y8A Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 1 #-}
2+{-# CONTENT_TYPE EXPRESSION #-}
3+let king = extract(addressFromString("kingAddress"))
4+let company = extract(addressFromString("companyAddress"))
5+let notary1 = addressFromPublicKey(extract(getBinary(king, "notary1PK")))
6+let txIdBase58String = toBase58String(tx.id)
7+let notary1Agreement = getBoolean(notary1, txIdBase58String)
8+let isNotary1Agreed = if (isDefined(notary1Agreement))
9+ then extract(notary1Agreement)
10+ else false
11+match tx {
12+ case t: TransferTransaction =>
13+ let recipientAddress = addressFromRecipient(t.recipient)
14+ let recipientAgreement = getBoolean(recipientAddress, txIdBase58String)
15+ let isRecipientAgreed = if (isDefined(recipientAgreement))
16+ then extract(recipientAgreement)
17+ else false
18+ let senderAddress = addressFromPublicKey(t.senderPublicKey)
19+ if ((senderAddress.bytes == company.bytes))
20+ then true
21+ else if (isNotary1Agreed)
22+ then isRecipientAgreed
23+ else false
24+ case _ =>
25+ false
26+}

github/deemru/w8io/026f985 
27.28 ms