tx · 8fwd8A5dNMy4BchQmJyM9AadbZuExhfZjRQTXEQ6oSrx
3N9N8Qq6YA2N2HnJBJPfjvuNrqwXPidoTDz: -0.09000000 Waves
2021.03.23 14:29 [1450328] smart account 3N9N8Qq6YA2N2HnJBJPfjvuNrqwXPidoTDz > SELF 0.00000000 Waves
{
"type": 13,
"id": "8fwd8A5dNMy4BchQmJyM9AadbZuExhfZjRQTXEQ6oSrx",
"fee": 9000000,
"feeAssetId": null,
"timestamp": 1616498938764,
"version": 2,
"chainId": 84,
"sender": "3N9N8Qq6YA2N2HnJBJPfjvuNrqwXPidoTDz",
"senderPublicKey": "6Cb9csxPMjaHRwKhYgcpE4MdnmfiLv9Yv9rvVJoHJH7u",
"proofs": [
"mReyq6Fkwn2bHKDeknKtpioEE7ApcYyR7bV2DTknKWHDi1HXJqDLssCqf5LiZd6dcy1AVTAig8PJBfSmJ6WfXp3"
],
"script": "base64:AAIEAAAAAAAAAAIIAgAAAAEAAAAACW15QXNzZXRJZAEAAAAgIkSm54hUfVEormpXug9p+nbhDnc37ahHq1IfaU2UQkcAAAAAAAAAAQAAAAJ0eAEAAAABdgAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAVPcmRlcgQAAAABbwUAAAAHJG1hdGNoMAQAAAARaXNXYXZlc1ByaWNlQXNzZXQJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEICAUAAAABbwAAAAlhc3NldFBhaXIAAAAKcHJpY2VBc3NldAQAAAAJcmlnaHRQYWlyAwkAAAAAAAACCAgFAAAAAW8AAAAJYXNzZXRQYWlyAAAAC2Ftb3VudEFzc2V0BQAAAAlteUFzc2V0SWQFAAAAEWlzV2F2ZXNQcmljZUFzc2V0BwMDAwMJAAH0AAAAAwgFAAAAAW8AAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAFvAAAABnByb29mcwAAAAAAAAAAAAgFAAAAAW8AAAAPc2VuZGVyUHVibGljS2V5BQAAAAlyaWdodFBhaXIHCQAAAAAAAAIIBQAAAAFvAAAABXByaWNlAAAAAAAAB6EgBwkAAAAAAAACCAUAAAABbwAAAAlvcmRlclR5cGUFAAAAA0J1eQcGCQAAAgAAAAECAAAAC3dlIGFyZSBoZXJlAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAABbwUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAABbwAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAW8AAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAABbwAAAA9zZW5kZXJQdWJsaWNLZXkHHRsvSg==",
"height": 1450328,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 6oh5xHivBGBftXpsNPdmqyKvQtjTeMu4TGyeMvSBUzAT
Next: none
Diff:
Old | New | | Differences |
---|
11 | 11 | | let rightPair = if ((o.assetPair.amountAsset == myAssetId)) |
---|
12 | 12 | | then isWavesPriceAsset |
---|
13 | 13 | | else false |
---|
14 | | - | if (if (if (sigVerify(o.bodyBytes, o.proofs[0], o.senderPublicKey)) |
---|
| 14 | + | if (if (if (if (sigVerify(o.bodyBytes, o.proofs[0], o.senderPublicKey)) |
---|
15 | 15 | | then rightPair |
---|
16 | 16 | | else false) |
---|
17 | 17 | | then (o.price == 500000) |
---|
18 | 18 | | else false) |
---|
19 | 19 | | then (o.orderType == Buy) |
---|
20 | | - | else false |
---|
| 20 | + | else false) |
---|
| 21 | + | then true |
---|
| 22 | + | else throw("we are here") |
---|
21 | 23 | | case o: SetScriptTransaction => |
---|
22 | 24 | | sigVerify(o.bodyBytes, o.proofs[0], o.senderPublicKey) |
---|
23 | 25 | | case _ => |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let myAssetId = base58'3JmaWyFqWo8YSA8x3DXCBUW7veesxacvKx19dMv7wTMg' |
---|
5 | 5 | | |
---|
6 | 6 | | |
---|
7 | 7 | | @Verifier(tx) |
---|
8 | 8 | | func v () = match tx { |
---|
9 | 9 | | case o: Order => |
---|
10 | 10 | | let isWavesPriceAsset = !(isDefined(o.assetPair.priceAsset)) |
---|
11 | 11 | | let rightPair = if ((o.assetPair.amountAsset == myAssetId)) |
---|
12 | 12 | | then isWavesPriceAsset |
---|
13 | 13 | | else false |
---|
14 | | - | if (if (if (sigVerify(o.bodyBytes, o.proofs[0], o.senderPublicKey)) |
---|
| 14 | + | if (if (if (if (sigVerify(o.bodyBytes, o.proofs[0], o.senderPublicKey)) |
---|
15 | 15 | | then rightPair |
---|
16 | 16 | | else false) |
---|
17 | 17 | | then (o.price == 500000) |
---|
18 | 18 | | else false) |
---|
19 | 19 | | then (o.orderType == Buy) |
---|
20 | | - | else false |
---|
| 20 | + | else false) |
---|
| 21 | + | then true |
---|
| 22 | + | else throw("we are here") |
---|
21 | 23 | | case o: SetScriptTransaction => |
---|
22 | 24 | | sigVerify(o.bodyBytes, o.proofs[0], o.senderPublicKey) |
---|
23 | 25 | | case _ => |
---|
24 | 26 | | false |
---|
25 | 27 | | } |
---|
26 | 28 | | |
---|