tx · EUyyzvZ1VZSv4hrtHcKDzyy1nSZaqfV86SQee6cF8kAE 3MrYoV4W5mu5ZP8rPspCXveMXusGstSPTjL: -0.01400000 Waves 2019.09.04 06:30 [660701] smart account 3MrYoV4W5mu5ZP8rPspCXveMXusGstSPTjL > SELF 0.00000000 Waves
{ "type": 13, "id": "EUyyzvZ1VZSv4hrtHcKDzyy1nSZaqfV86SQee6cF8kAE", "fee": 1400000, "feeAssetId": null, "timestamp": 1567567820824, "version": 1, "sender": "3MrYoV4W5mu5ZP8rPspCXveMXusGstSPTjL", "senderPublicKey": "f1NbgbpkRpbigsrHaDkWZAkPgcqd8GM5G5eNmqnTD6z", "proofs": [ "4nA8asZStp5jP8Wb6iEVCHa4LHH8SVju55s9KXxVFFQmXjKCewmFLRwEZHDBomUbdJf6ktwruc1K37iMBfBXurwc" ], "script": "base64:AAIDAAAAAAAAAAAAAAADAAAAAA1hY2NlcHRlZFRva2VuAQAAACDopWq8yndC8nBhMjVKT0WDubke5ZlnF8Nx6tkLoQSt6wAAAAAMY3VycmVudFByaWNlAAAAAAAAAAnEAAAAAARiYW5rAgAAACMzTXpZTGtRNnFDd3RieGFZUTJ5azFrZFV1ZHpiTmc0SmlURwAAAAEAAAAHaW52b2ljZQEAAAATYWdyZWVtZW50VHdvUGFydGllcwAAAAQAAAAEaGFzaAAAAAV0aXRsZQAAAAhhZGRyZXNzMQAAAAhhZGRyZXNzMgQAAAAHcGF5bWVudAkBAAAAB2V4dHJhY3QAAAABCAUAAAAHaW52b2ljZQAAAAdwYXltZW50BAAAAAZhbW91bnQJAQAAAAdleHRyYWN0AAAAAQgFAAAAB3BheW1lbnQAAAAGYW1vdW50BAAAAAJpZAkBAAAAB2V4dHJhY3QAAAABCAUAAAAHaW52b2ljZQAAAA10cmFuc2FjdGlvbklkBAAAAA5wYXltZW50QXNzZXRJZAkBAAAAB2V4dHJhY3QAAAABCAUAAAAHcGF5bWVudAAAAAdhc3NldElkAwkBAAAAAiE9AAAAAgUAAAAOcGF5bWVudEFzc2V0SWQFAAAADWFjY2VwdGVkVG9rZW4JAAACAAAAAQIAAAAvT25seSBwYXltZW50cyBpbiBTSUdOIGFyZSBhbGxvd2VkIGF0IHRoZSBtb21lbnQDCQEAAAACIT0AAAACBQAAAAZhbW91bnQFAAAADGN1cnJlbnRQcmljZQkAAAIAAAABAgAAABJUaGUgcHJpY2UgaXMgd3JvbmcJAQAAAAxTY3JpcHRSZXN1bHQAAAACCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAICAAAABXRpdGxlCQACWAAAAAEFAAAAAmlkBQAAAAV0aXRsZQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACAgAAAARoYXNoCQACWAAAAAEFAAAAAmlkBQAAAARoYXNoCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAICAAAAAmlkCQACWAAAAAEFAAAAAmlkBQAAAAJpZAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACAgAAAA5jb3VudGVycGFydF8xXwkAAlgAAAABBQAAAAJpZAUAAAAIYWRkcmVzczEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAAOY291bnRlcnBhcnRfMl8JAAJYAAAAAQUAAAACaWQFAAAACGFkZHJlc3MyBQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAHEBleHRyVXNlcihhZGRyZXNzRnJvbVN0cmluZykAAAABBQAAAARiYW5rBQAAAAZhbW91bnQFAAAADWFjY2VwdGVkVG9rZW4FAAAAA25pbAAAAAABi6hj", "chainId": 84, "height": 660701, "spentComplexity": 0 } View: original | compacted Prev: 8tjyoJidoE5Zqvu5ZJyde1dbvcD5UieDan6jiub34s6b Next: 7tyHWAkFiQrUYnSaN4THxsoaCWJpNDGiQEeGSLrb212F Diff:
Old | New | Differences | |
---|---|---|---|
8 | 8 | let c = "3MzYLkQ6qCwtbxaYQ2yk1kdUudzbNg4JiTG" | |
9 | 9 | ||
10 | 10 | @Callable(d) | |
11 | - | func agreement (e) = { | |
12 | - | let f = extract(d.payment) | |
13 | - | let g = extract(f.amount) | |
14 | - | let h = extract(f.assetId) | |
15 | - | if ((h != a)) | |
11 | + | func agreementTwoParties (e,f,g,h) = { | |
12 | + | let i = extract(d.payment) | |
13 | + | let j = extract(i.amount) | |
14 | + | let k = extract(d.transactionId) | |
15 | + | let l = extract(i.assetId) | |
16 | + | if ((l != a)) | |
16 | 17 | then throw("Only payments in SIGN are allowed at the moment") | |
17 | - | else if (( | |
18 | + | else if ((j != b)) | |
18 | 19 | then throw("The price is wrong") | |
19 | - | else TransferSet([ScriptTransfer(addressFromStringValue(c), | |
20 | + | else ScriptResult(WriteSet([DataEntry(("title" + toBase58String(k)), f), DataEntry(("hash" + toBase58String(k)), e), DataEntry(("id" + toBase58String(k)), k), DataEntry(("counterpart_1_" + toBase58String(k)), g), DataEntry(("counterpart_2_" + toBase58String(k)), h)]), TransferSet([ScriptTransfer(addressFromStringValue(c), j, a)])) | |
20 | 21 | } | |
21 | 22 | ||
22 | 23 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' | |
5 | 5 | ||
6 | 6 | let b = 2500 | |
7 | 7 | ||
8 | 8 | let c = "3MzYLkQ6qCwtbxaYQ2yk1kdUudzbNg4JiTG" | |
9 | 9 | ||
10 | 10 | @Callable(d) | |
11 | - | func agreement (e) = { | |
12 | - | let f = extract(d.payment) | |
13 | - | let g = extract(f.amount) | |
14 | - | let h = extract(f.assetId) | |
15 | - | if ((h != a)) | |
11 | + | func agreementTwoParties (e,f,g,h) = { | |
12 | + | let i = extract(d.payment) | |
13 | + | let j = extract(i.amount) | |
14 | + | let k = extract(d.transactionId) | |
15 | + | let l = extract(i.assetId) | |
16 | + | if ((l != a)) | |
16 | 17 | then throw("Only payments in SIGN are allowed at the moment") | |
17 | - | else if (( | |
18 | + | else if ((j != b)) | |
18 | 19 | then throw("The price is wrong") | |
19 | - | else TransferSet([ScriptTransfer(addressFromStringValue(c), | |
20 | + | else ScriptResult(WriteSet([DataEntry(("title" + toBase58String(k)), f), DataEntry(("hash" + toBase58String(k)), e), DataEntry(("id" + toBase58String(k)), k), DataEntry(("counterpart_1_" + toBase58String(k)), g), DataEntry(("counterpart_2_" + toBase58String(k)), h)]), TransferSet([ScriptTransfer(addressFromStringValue(c), j, a)])) | |
20 | 21 | } | |
21 | 22 | ||
22 | 23 |
github/deemru/w8io/169f3d6 39.13 ms ◑