tx · Da7r1dR3jURkwwPNSMQrhUVF8VvGLJqxHSQhDLNDskxm

3MxNToddeioZQ74c7CD1hDy4R5hgPEewmWs:  -1.00400000 Waves

2019.01.03 10:43 [433291] smart asset 3MxNToddeioZQ74c7CD1hDy4R5hgPEewmWs > SELF 0.00 ATC2_Test

{ "type": 15, "id": "Da7r1dR3jURkwwPNSMQrhUVF8VvGLJqxHSQhDLNDskxm", "fee": 100400000, "feeAssetId": null, "timestamp": 1546501465984, "version": 1, "sender": "3MxNToddeioZQ74c7CD1hDy4R5hgPEewmWs", "senderPublicKey": "3SmEfcH8L6HTopqkkKr8iN1G5Z44sEJdDQqtY6YtXnfZ", "proofs": [ "4rYuRgMfwXQgTapX2hvszPbvi63x4o5cGQv7VKVMSV7qCf7xzfsP9PHdiWBabFJ7CRq8EwQLcReQEXt44TBWNHTG", "2V4KPn6iU992kiyXcZiNwZ7G4Ewiz41aPq4AyC3vBJZaYTUQ6xA1oLzw8kWeJJbbr6Bv9zzqxizYD7v2C7pRzqqX", "5jsiH85vZr8ivQisZ7fTT4jyUecEjCeghSoriMH1MDuAPvGcQQJyQxUCHLz2w6WbEBPNWjKPjfe4K8HYehr2SJGk" ], "assetId": "4m6b1gWjmow4wNFaBhfpYhM9wwQkDL4JkJEE5qszLa5u", "script": "base64:AQQAAAAQdGJ0Y0lzc3VlclB1YktleQEAAAAgJFDpVLPoJ3/cLRtGtnpaQMvGJ4u45lYrg2SNZT6otRAEAAAAGHRidGNJc3N1ZXJWZXJpZmllclB1YktleQEAAAAg01J0IlP261rtsXCDH0z2T2PwuRxtHzvqJID/Q7l9mE8EAAAAGXRidGNJc3N1ZXIyVmVyaWZpZXJQdWJLZXkBAAAAINNSdCJT9uta7bFwgx9M9k9j8LkcbR876iSA/0O5fZhPBAAAABJ0YnRjR2F0ZXdheUFkZHJlc3MJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNNc1hadjlmVDlwVXRCWmJDWjdvZ0hraFY3NWdqSmdE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AAAACCAUAAAABdAAAAAlyZWNpcGllbnQFAAAAEnRidGNHYXRld2F5QWRkcmVzcwYJAAAAAAAAAggFAAAAAXQAAAAGc2VuZGVyBQAAABJ0YnRjR2F0ZXdheUFkZHJlc3MDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAEAAAAB21hdGNoZXIJAQAAAAdleHRyYWN0AAAAAQUAAAASdGJ0Y01hdGNoZXJBZGRyZXNzBAAAAAVhZGRyMQkAAlgAAAABCAgIBQAAAAF0AAAACXNlbGxPcmRlcgAAAAZzZW5kZXIAAAAFYnl0ZXMEAAAAAm8xCQAEGgAAAAIFAAAAB21hdGNoZXIFAAAABWFkZHIxAwMJAQAAAAlpc0RlZmluZWQAAAABBQAAAAJvMQkAAAAAAAACBQAAAAJvMQAAAAAAAAAAAQcJAAAAAAAAAggFAAAAAXQAAAAGc2VuZGVyBQAAABJ0YnRjTWF0Y2hlckFkZHJlc3MHAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABlTZXRBc3NldFNjcmlwdFRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwBgd19HIC", "chainId": 84, "height": 433291, "spentComplexity": 0 } View: original | compacted Prev: DijiyCoSmtAWdyCaNqbk9aUzdNFdEyNx5xCZRzB4Gbe6 Next: none 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 
29.09 ms