tx · 9c8XPJcW5EpPSfFZ44D8mgWkv44qK51qgx6bAgfxgDbN
3MwiUmJjZKz91VkhwHdsAeQrhpmPeopn3YF: -0.01000000 Waves
2021.01.19 16:47 [1360387] smart account 3MwiUmJjZKz91VkhwHdsAeQrhpmPeopn3YF > SELF 0.00000000 Waves
{
"type": 13,
"id": "9c8XPJcW5EpPSfFZ44D8mgWkv44qK51qgx6bAgfxgDbN",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1611064058526,
"version": 2,
"chainId": 84,
"sender": "3MwiUmJjZKz91VkhwHdsAeQrhpmPeopn3YF",
"senderPublicKey": "8qYRjSZfCURT6RNEYon6spt4ejMLbdR33hiLXhhtm4fv",
"proofs": [
"2ZK1JYPahHUZFAg7qpTHmXh51urVDgYt4na5XexM18HADkBkD7ZRz2XMc11LUNcsikomxMmLDSQUsKQudHLavDH4"
],
"script": "base64:AwQAAAAKTWFpblB1YktleQEAAAAYcyVtTewmNaJ0T6h1NJWuRWu0QJkXoOH1BAAAAAVUb2tlbgEAAAAgX7GZHtfpT5PuDTqcomd0+VaEmC1IXiv4yrQOYCS+A+sEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAVPcmRlcgQAAAABbwUAAAAHJG1hdGNoMAMJAAH0AAAAAwgFAAAAAW8AAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAFvAAAABnByb29mcwAAAAAAAAAAAAUAAAAKTWFpblB1YktleQMJAAAAAAAAAggIBQAAAAFvAAAACWFzc2V0UGFpcgAAAApwcmljZUFzc2V0BQAAAAVUb2tlbgYJAAAAAAAAAggIBQAAAAFvAAAACWFzc2V0UGFpcgAAAAthbW91bnRBc3NldAUAAAAFVG9rZW4HCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAKTWFpblB1YktledV/gpM=",
"height": 1360387,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: none
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 3 #-} |
---|
| 2 | + | {-# CONTENT_TYPE EXPRESSION #-} |
---|
| 3 | + | let MainPubKey = base58'BVqYXrapgJP9atQccdBPAgJPwHDKkh6A8' |
---|
| 4 | + | let Token = base58'7SYoQ6x9RbcD7YgRjHZcAUtC6tGnqPQCBWGpULeJ9aaW' |
---|
| 5 | + | match tx { |
---|
| 6 | + | case o: Order => |
---|
| 7 | + | if (sigVerify(o.bodyBytes, o.proofs[0], MainPubKey)) |
---|
| 8 | + | then if ((o.assetPair.priceAsset == Token)) |
---|
| 9 | + | then true |
---|
| 10 | + | else (o.assetPair.amountAsset == Token) |
---|
| 11 | + | else false |
---|
| 12 | + | case _ => |
---|
| 13 | + | sigVerify(tx.bodyBytes, tx.proofs[0], MainPubKey) |
---|
| 14 | + | } |
---|