tx · DpZUFPv2E7GUa61K8hTLM9WBTWs3sRUrNVFfzEPQzxqT 3N1hrmiXcrfodNXHfoar8uNkBZEKPAGq5yR: -0.01000000 Waves 2023.06.17 16:53 [2626720] smart account 3N1hrmiXcrfodNXHfoar8uNkBZEKPAGq5yR > SELF 0.00000000 Waves
{ "type": 13, "id": "DpZUFPv2E7GUa61K8hTLM9WBTWs3sRUrNVFfzEPQzxqT", "fee": 1000000, "feeAssetId": null, "timestamp": 1687010068320, "version": 2, "chainId": 84, "sender": "3N1hrmiXcrfodNXHfoar8uNkBZEKPAGq5yR", "senderPublicKey": "GP66F4kgVMbC7uyGiB6JeXvJFRco3fTdGeaUFSmf7YbB", "proofs": [ "xvJtPVBaMvedFPjEN5vWt6gW56DWryQWQ911aSPXTvrgUMgVSjgxSZeeauPcoWCaJSE1DRQsS1iDZwHG7GU6RwF" ], "script": "base64:BQQAAAALYWxpY2VQdWJLZXkBAAAAID3+K0HJI42oXrHhtHFpHijU5PC4nn1fIFVsJp5UWrYABAAAAAlib2JQdWJLZXkBAAAAIBO1uieokBahePoeVqt4/usbhaXRq+i5EvtfsdBILNtuBAAAAAxjb29wZXJQdWJLZXkBAAAAIOfM/qkwkfi4pdngdn18n5yxNwCrBOBC3ihWaFg4gV4yBAAAAAthbGljZVNpZ25lZAMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAthbGljZVB1YktleQAAAAAAAAAAAQAAAAAAAAAAAAQAAAAJYm9iU2lnbmVkAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAEFAAAACWJvYlB1YktleQAAAAAAAAAAAQAAAAAAAAAAAAQAAAAMY29vcGVyU2lnbmVkAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAIFAAAADGNvb3BlclB1YktleQAAAAAAAAAAAQAAAAAAAAAAAAkAAGcAAAACCQAAZAAAAAIJAABkAAAAAgUAAAALYWxpY2VTaWduZWQFAAAACWJvYlNpZ25lZAUAAAAMY29vcGVyU2lnbmVkAAAAAAAAAAACVh8Ckw==", "height": 2626720, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5D8Tp3SoMxSTyPg5xzLTHkh2XTADTHrSY19pTv7wdVt6 Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | {-# STDLIB_VERSION 6 #-} | |
2 | - | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | - | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let ethID = "3VuV5WTmDz47Dmdn3QpcYjzbSdipjQE4JMdNe1xZpX13" | |
5 | - | ||
6 | - | let wavesID = "DHgwrRvVyqJsepd32YbBqUeDH4GJ1N984X8QoekjgH8J" | |
7 | - | ||
8 | - | func ratioCalculation (amountETH,amountWAVES) = nil | |
9 | - | ||
10 | - | ||
11 | - | @Callable(i) | |
12 | - | func exchange (amount) = nil | |
13 | - | ||
14 | - | ||
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | + | let alicePubKey = base58'5AzfA9UfpWVYiwFwvdr77k6LWupSTGLb14b24oVdEpMM' | |
4 | + | let bobPubKey = base58'2KwU4vzdgPmKyf7q354H9kSyX9NZjNiq4qbnH2wi2VDF' | |
5 | + | let cooperPubKey = base58'GbrUeGaBfmyFJjSQb9Z8uTCej5GzjXfRDVGJGrmgt5cD' | |
6 | + | let aliceSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], alicePubKey)) | |
7 | + | then 1 | |
8 | + | else 0 | |
9 | + | let bobSigned = if (sigVerify(tx.bodyBytes, tx.proofs[1], bobPubKey)) | |
10 | + | then 1 | |
11 | + | else 0 | |
12 | + | let cooperSigned = if (sigVerify(tx.bodyBytes, tx.proofs[2], cooperPubKey)) | |
13 | + | then 1 | |
14 | + | else 0 | |
15 | + | (((aliceSigned + bobSigned) + cooperSigned) >= 2) |
github/deemru/w8io/169f3d6 24.21 ms ◑