tx · FoNrEH3V44FJB2db1tCnoYq1G85p2FebY2md9uMopZid

3Mx46txpZmmseA2ErQ31JDDAhACW3zJoFoT:  -0.01000000 Waves

2019.01.31 20:14 [474722] smart account 3Mx46txpZmmseA2ErQ31JDDAhACW3zJoFoT > SELF 0.00000000 Waves

{ "type": 13, "id": "FoNrEH3V44FJB2db1tCnoYq1G85p2FebY2md9uMopZid", "fee": 1000000, "feeAssetId": null, "timestamp": 1548954883934, "version": 1, "sender": "3Mx46txpZmmseA2ErQ31JDDAhACW3zJoFoT", "senderPublicKey": "8si4zvK19c2UKDR4R5GtseEa1RiEbMv2qHzWwT7zcXHM", "proofs": [ "5xMgnmpVbtzz9V946s3whU7PHRkuJwjnBGnrBb5Rge6W2gaNqZkioVc16zLvyr9jhi7b7AFffx8GJekbtVMhxTSd" ], "script": "base64:AQQAAAAEa2luZwkBAAAAB2V4dHJhY3QAAAABCQEAAAARYWRkcmVzc0Zyb21TdHJpbmcAAAABAgAAACMzTXg0NnR4cFptbXNlQTJFclEzMUpEREFoQUNXM3pKb0ZvVAQAAAAHY29tcGFueQkBAAAAB2V4dHJhY3QAAAABCQEAAAARYWRkcmVzc0Zyb21TdHJpbmcAAAABAgAAACMzTXg0NnR4cFptbXNlQTJFclEzMUpEREFoQUNXM3pKb0ZvVAQAAAAHbm90YXJ5MQkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQkBAAAAB2V4dHJhY3QAAAABCQAEHAAAAAIFAAAABGtpbmcCAAAALDhzaTR6dksxOWMyVUtEUjRSNUd0c2VFYTFSaUViTXYycUh6V3dUN3pjWEhNBAAAABB0eElkQmFzZTU4U3RyaW5nCQACWAAAAAEIBQAAAAJ0eAAAAAJpZAQAAAAQbm90YXJ5MUFncmVlbWVudAkABBsAAAACBQAAAAdub3RhcnkxBQAAABB0eElkQmFzZTU4U3RyaW5nBAAAAA9pc05vdGFyeTFBZ3JlZWQDCQEAAAAJaXNEZWZpbmVkAAAAAQUAAAAQbm90YXJ5MUFncmVlbWVudAkBAAAAB2V4dHJhY3QAAAABBQAAABBub3RhcnkxQWdyZWVtZW50BwQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAEAAAAEHJlY2lwaWVudEFkZHJlc3MJAAQkAAAAAQgFAAAAAXQAAAAJcmVjaXBpZW50BAAAABJyZWNpcGllbnRBZ3JlZW1lbnQJAAQbAAAAAgUAAAAQcmVjaXBpZW50QWRkcmVzcwUAAAAQdHhJZEJhc2U1OFN0cmluZwQAAAARaXNSZWNpcGllbnRBZ3JlZWQDCQEAAAAJaXNEZWZpbmVkAAAAAQUAAAAScmVjaXBpZW50QWdyZWVtZW50CQEAAAAHZXh0cmFjdAAAAAEFAAAAEnJlY2lwaWVudEFncmVlbWVudAcEAAAADXNlbmRlckFkZHJlc3MJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEIBQAAAAF0AAAAD3NlbmRlclB1YmxpY0tleQMJAAAAAAAAAggFAAAADXNlbmRlckFkZHJlc3MAAAAFYnl0ZXMIBQAAAAdjb21wYW55AAAABWJ5dGVzBgMFAAAAD2lzTm90YXJ5MUFncmVlZAUAAAARaXNSZWNpcGllbnRBZ3JlZWQHB59kquk=", "chainId": 84, "height": 474722, "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 1 #-}
2+{-# CONTENT_TYPE EXPRESSION #-}
3+let king = extract(addressFromString("3Mx46txpZmmseA2ErQ31JDDAhACW3zJoFoT"))
4+let company = extract(addressFromString("3Mx46txpZmmseA2ErQ31JDDAhACW3zJoFoT"))
5+let notary1 = addressFromPublicKey(extract(getBinary(king, "8si4zvK19c2UKDR4R5GtseEa1RiEbMv2qHzWwT7zcXHM")))
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/169f3d6 
11.61 ms