tx · 7isk9bHGW9w4NL8eStkJ1kr4aaEofLPm3k5n7DGVPy7Z 3N1gsqwXYg8gzCUgWxFBEmXzdXcceHnxLYJ: -0.01400000 Waves 2019.10.07 14:48 [709319] smart account 3N1gsqwXYg8gzCUgWxFBEmXzdXcceHnxLYJ > SELF 0.00000000 Waves
{ "type": 13, "id": "7isk9bHGW9w4NL8eStkJ1kr4aaEofLPm3k5n7DGVPy7Z", "fee": 1400000, "feeAssetId": null, "timestamp": 1570449008226, "version": 1, "sender": "3N1gsqwXYg8gzCUgWxFBEmXzdXcceHnxLYJ", "senderPublicKey": "GzzGWTSDwbVY7NZnRGa8ouk4Ho8y59pWSXSK7rBg4854", "proofs": [ "2CetJWmaToBoyWcmijt9oGjTZkBZkDhhwcLHtrWMw1BBgNV1xLHEZFvQkhfEt4VfnFvqKeN7Pssb6aHbozKs8ZL3" ], "script": "base64:AgQAAAAPdHJhZGVyUHVibGljS2V5AQAAACAF+j8WBUppk2Gd7LGAEtbrHG3NeWfWUsxIsUc0+q0zfwQAAAAOb3duZXJQdWJsaWNLZXkBAAAAIDahakAL6O7oXCsJB8m9Hji5oezJYYtaVEq8FwLm00hdBAAAAAthbW91bnRBc3NldAEAAAAgbPZB9HxAkx+yFVJT8t7D7SNvLfqtrBRQ6gKzMgtYuuIEAAAAEG1hdGNoZXJQdWJsaWNLZXkBAAAAIGRDQuXcp/doeH4AWAJKWAvM8pffT3ZEKdvTPqW98d8CBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAFT3JkZXIEAAAAAW8FAAAAByRtYXRjaDAEAAAAEWlzV2F2ZXNQcmljZUFzc2V0CQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABCAgFAAAAAW8AAAAJYXNzZXRQYWlyAAAACnByaWNlQXNzZXQEAAAACXJpZ2h0UGFpcgMJAAAAAAAAAggIBQAAAAFvAAAACWFzc2V0UGFpcgAAAAthbW91bnRBc3NldAUAAAALYW1vdW50QXNzZXQFAAAAEWlzV2F2ZXNQcmljZUFzc2V0BwMDAwkAAfQAAAADCAUAAAABbwAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAW8AAAAGcHJvb2ZzAAAAAAAAAAAABQAAAA90cmFkZXJQdWJsaWNLZXkFAAAACXJpZ2h0UGFpcgcJAABmAAAAAgkAAGgAAAACAAAAAAAAAAB4AAAAAAAAAAPoCQAAZQAAAAIIBQAAAAFvAAAACmV4cGlyYXRpb24IBQAAAAFvAAAACXRpbWVzdGFtcAcJAAAAAAAAAggFAAAAAW8AAAAQbWF0Y2hlclB1YmxpY0tleQUAAAAQbWF0Y2hlclB1YmxpY0tleQcDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBgkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAABdAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAXQAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAA5vd25lclB1YmxpY0tleQfWPv6I", "chainId": 84, "height": 709319, "spentComplexity": 0 } View: original | compacted Prev: TmX8ZFXCsTgNuqJTiECVPZog76TF78bnSWmaKZgcbqK Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | {-# STDLIB_VERSION 3 #-} | |
2 | - | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | - | {-# CONTENT_TYPE DAPP #-} | |
4 | - | ||
5 | - | ||
6 | - | @Callable(i) | |
7 | - | func main (valeur) = { | |
8 | - | let SenderAddress = toBase58String(i.caller.bytes) | |
9 | - | if ((valeur >= 5)) | |
10 | - | then WriteSet([DataEntry(SenderAddress, valeur)]) | |
11 | - | else throw("valeur inférieure à 5") | |
12 | - | } | |
13 | - | ||
14 | - | ||
1 | + | {-# STDLIB_VERSION 2 #-} | |
2 | + | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | + | let traderPublicKey = base58'QLMkJYFXsXiLLiKCbVCZZzQQT3whz8PAPdT7w4yQjEn' | |
4 | + | let ownerPublicKey = base58'4gFmmsNv1qA9Krn3pUGbZVcJQTCsXEXhZjEtszDtxMXz' | |
5 | + | let amountAsset = base58'8LLpj6yQLUu37KUt3rVo1S69j2gWMbgbM6qqgt2ac1Vb' | |
6 | + | let matcherPublicKey = base58'7kPFrHDiGw1rCm7LPszuECwWYL3dMf6iMifLRDJQZMzy' | |
7 | + | match tx { | |
8 | + | case o: Order => | |
9 | + | let isWavesPriceAsset = !(isDefined(o.assetPair.priceAsset)) | |
10 | + | let rightPair = if ((o.assetPair.amountAsset == amountAsset)) | |
11 | + | then isWavesPriceAsset | |
12 | + | else false | |
13 | + | if (if (if (sigVerify(o.bodyBytes, o.proofs[0], traderPublicKey)) | |
14 | + | then rightPair | |
15 | + | else false) | |
16 | + | then ((120 * 1000) > (o.expiration - o.timestamp)) | |
17 | + | else false) | |
18 | + | then (o.matcherPublicKey == matcherPublicKey) | |
19 | + | else false | |
20 | + | case t: TransferTransaction|SetScriptTransaction => | |
21 | + | sigVerify(t.bodyBytes, t.proofs[0], ownerPublicKey) | |
22 | + | case _ => | |
23 | + | false | |
24 | + | } |
github/deemru/w8io/169f3d6 35.86 ms ◑