tx · 2oys5qRzgeN3m3DtQyXExshhcrMRtwe2FH7qcU4WZKbU

3MxNToddeioZQ74c7CD1hDy4R5hgPEewmWs:  -1.00400000 Waves

2019.01.03 10:37 [433282] smart asset 3MxNToddeioZQ74c7CD1hDy4R5hgPEewmWs > SELF 0.00 ATC2_Test

{ "type": 15, "id": "2oys5qRzgeN3m3DtQyXExshhcrMRtwe2FH7qcU4WZKbU", "fee": 100400000, "feeAssetId": null, "timestamp": 1546501041828, "version": 1, "sender": "3MxNToddeioZQ74c7CD1hDy4R5hgPEewmWs", "senderPublicKey": "3SmEfcH8L6HTopqkkKr8iN1G5Z44sEJdDQqtY6YtXnfZ", "proofs": [ "4GhKuvqcgKEhDRfTjEZGKYFukBJE6dZzMGw2ojYrY8TxioDhiozEZhSQJ6RhSKMkmG36mn7wFYsQebWr9vMMa6S5", "31dhGzqXk4Akv5Uru6V2rAd5pWELUXWeD9pqX8Le6KBtu59kdXKAYGFmhnARCYYK2fydSapBv2EVQGRjjR2JjemS", "WBiG9DUvHqQVFdq4Zv1kyNTnZR4nmM8jQh2KB69wNuapJ7g1AohHCvf39M3be4bEn1VrEH3NkscWEcMEmkUwFRV" ], "assetId": "4m6b1gWjmow4wNFaBhfpYhM9wwQkDL4JkJEE5qszLa5u", "script": "base64:AQQAAAAQdGJ0Y0lzc3VlclB1YktleQEAAAAgJFDpVLPoJ3/cLRtGtnpaQMvGJ4u45lYrg2SNZT6otRAEAAAAGHRidGNJc3N1ZXJWZXJpZmllclB1YktleQEAAAAg01J0IlP261rtsXCDH0z2T2PwuRxtHzvqJID/Q7l9mE8EAAAAGXRidGNJc3N1ZXIyVmVyaWZpZXJQdWJLZXkBAAAAINNSdCJT9uta7bFwgx9M9k9j8LkcbR876iSA/0O5fZhPBAAAABJ0YnRjR2F0ZXdheUFkZHJlc3MJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNNc1hadjlmVDlwVXRCWmJDWjdvZ0hraFY3NWdqSmdEc3JzBAA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AAAABdAAAAAlyZWNpcGllbnQFAAAAEnRidGNHYXRld2F5QWRkcmVzcwYJAAAAAAAAAggFAAAAAXQAAAAGc2VuZGVyBQAAABJ0YnRjR2F0ZXdheUFkZHJlc3MDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAEAAAAB21hdGNoZXIJAQAAAAdleHRyYWN0AAAAAQUAAAASdGJ0Y01hdGNoZXJBZGRyZXNzBAAAAAVhZGRyMQkAAlgAAAABCAgIBQAAAAF0AAAACXNlbGxPcmRlcgAAAAZzZW5kZXIAAAAFYnl0ZXMEAAAAAm8xCQAEGgAAAAIFAAAAB21hdGNoZXIFAAAABWFkZHIxAwMJAQAAAAlpc0RlZmluZWQAAAABBQAAAAJvMQkAAAAAAAACBQAAAAJvMQAAAAAAAAAAAQcJAAAAAAAAAggFAAAAAXQAAAAGc2VuZGVyBQAAABJ0YnRjTWF0Y2hlckFkZHJlc3MHAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABlTZXRBc3NldFNjcmlwdFRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwBgd19HIC", "chainId": 84, "height": 433282, "spentComplexity": 0 } View: original | compacted Prev: GkgxYGvbAu3R9jXgZmXYQW1rQsq6v2CR9cpT8T3L8nfh Next: 9W8nT8gADBGkrZzdxV1AvyribxfeTQSUpZfttXvqWcZD Full:
OldNewDifferences
11 {-# STDLIB_VERSION 1 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
3-true
3+let tbtcIssuerPubKey = base58'3SmEfcH8L6HTopqkkKr8iN1G5Z44sEJdDQqtY6YtXnfZ'
4+let tbtcIssuerVerifierPubKey = base58'FDuwuYHXBnTFUPJheVwdF3rmMqusKPb5C297jYv2Qbux'
5+let tbtcIssuer2VerifierPubKey = base58'FDuwuYHXBnTFUPJheVwdF3rmMqusKPb5C297jYv2Qbux'
6+let tbtcGatewayAddress = addressFromString("3MsXZv9fT9pUtBZbCZ7ogHkhV75gjJgDsrs")
7+let tbtcGatewayPubKey = base58'4wKfNrcEQCqhawz5UMkJtXyzdDg83hr5iAWYfynT5ygh'
8+let tbtcGatewayVerifierAddress = addressFromString("3MsXZv9fT9pUtBZbCZ7ogHkhV75gjJgDsrs")
9+let tbtcGatewayVerifierPubKey = base58'4wKfNrcEQCqhawz5UMkJtXyzdDg83hr5iAWYfynT5ygh'
10+let tbtcMatcherAddress = addressFromString("3N6LAgKawp88nVHFmqdY7HfeqrnYspZwE4C")
11+match tx {
12+ case t: ReissueTransaction =>
13+ let signedGateway = if (sigVerify(tx.bodyBytes, tx.proofs[1], tbtcGatewayPubKey))
14+ then 1
15+ else 0
16+ let signedGatewayVerifier = if (sigVerify(tx.bodyBytes, tx.proofs[2], tbtcGatewayVerifierPubKey))
17+ then 1
18+ else 0
19+ ((signedGateway + signedGatewayVerifier) >= 1)
20+ case t: TransferTransaction =>
21+ if ((t.recipient == tbtcGatewayAddress))
22+ then true
23+ else (t.sender == tbtcGatewayAddress)
24+ case t: ExchangeTransaction =>
25+ let matcher = extract(tbtcMatcherAddress)
26+ let addr1 = toBase58String(t.sellOrder.sender.bytes)
27+ let o1 = getInteger(matcher, addr1)
28+ if (if (isDefined(o1))
29+ then (o1 == 1)
30+ else false)
31+ then (t.sender == tbtcMatcherAddress)
32+ else false
33+ case t: SetAssetScriptTransaction =>
34+ true
35+ case _ =>
36+ false
37+}

github/deemru/w8io/169f3d6 
50.02 ms