tx · FtWbK17AdWmM8LKtSaJVCQBXBzPJ5usoPyn557zot6ct 3N74BKdUYVnVtoF3zd6DKdAbqBh6iB95g6H: -0.01000000 Waves 2019.02.08 21:47 [486486] smart account 3N74BKdUYVnVtoF3zd6DKdAbqBh6iB95g6H > SELF 0.00000000 Waves
{ "type": 13, "id": "FtWbK17AdWmM8LKtSaJVCQBXBzPJ5usoPyn557zot6ct", "fee": 1000000, "feeAssetId": null, "timestamp": 1549651609593, "version": 1, "sender": "3N74BKdUYVnVtoF3zd6DKdAbqBh6iB95g6H", "senderPublicKey": "2APTaupbiik4QtgMku7hX4YcN7yAyXp9gPxNf4ZLTkh3", "proofs": [ "2XHbFMt6YY3u1R4Qa4WCfkEQ1ZdgcF4dRjdzrng7bztoCXB2XMjLGfww49S5E7ai7CZcRfRRprZMxrUPG6e1PwAV" ], "script": "base64:AQQAAAAEa2luZwkBAAAAB2V4dHJhY3QAAAABCQEAAAARYWRkcmVzc0Zyb21TdHJpbmcAAAABAgAAAAtraW5nQWRkcmVzcwQAAAAHY29tcGFueQkBAAAAB2V4dHJhY3QAAAABCQEAAAARYWRkcmVzc0Zyb21TdHJpbmcAAAABAgAAAA5jb21wYW55QWRkcmVzcwQAAAAHbm90YXJ5MQkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQkBAAAAB2V4dHJhY3QAAAABCQAEHAAAAAIFAAAABGtpbmcCAAAACW5vdGFyeTFQSwQAAAAQdHhJZEJhc2U1OFN0cmluZwkAAlgAAAABCAUAAAACdHgAAAACaWQEAAAAEG5vdGFyeTFBZ3JlZW1lbnQJAAQbAAAAAgUAAAAHbm90YXJ5MQUAAAAQdHhJZEJhc2U1OFN0cmluZwQAAAAPaXNOb3RhcnkxQWdyZWVkAwkBAAAACWlzRGVmaW5lZAAAAAEFAAAAEG5vdGFyeTFBZ3JlZW1lbnQJAQAAAAdleHRyYWN0AAAAAQUAAAAQbm90YXJ5MUFncmVlbWVudAcEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwBAAAABByZWNpcGllbnRBZGRyZXNzCQAEJAAAAAEIBQAAAAF0AAAACXJlY2lwaWVudAQAAAAScmVjaXBpZW50QWdyZWVtZW50CQAEGwAAAAIFAAAAEHJlY2lwaWVudEFkZHJlc3MFAAAAEHR4SWRCYXNlNThTdHJpbmcEAAAAEWlzUmVjaXBpZW50QWdyZWVkAwkBAAAACWlzRGVmaW5lZAAAAAEFAAAAEnJlY2lwaWVudEFncmVlbWVudAkBAAAAB2V4dHJhY3QAAAABBQAAABJyZWNpcGllbnRBZ3JlZW1lbnQHBAAAAA1zZW5kZXJBZGRyZXNzCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABCAUAAAABdAAAAA9zZW5kZXJQdWJsaWNLZXkDCQAAAAAAAAIIBQAAAA1zZW5kZXJBZGRyZXNzAAAABWJ5dGVzCAUAAAAHY29tcGFueQAAAAVieXRlcwYDBQAAAA9pc05vdGFyeTFBZ3JlZWQFAAAAEWlzUmVjaXBpZW50QWdyZWVkBwc+mQXw", "chainId": 84, "height": 486486, "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
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/169f3d6 21.51 ms ◑