tx · 7tyHWAkFiQrUYnSaN4THxsoaCWJpNDGiQEeGSLrb212F 3MrYoV4W5mu5ZP8rPspCXveMXusGstSPTjL: -0.01400000 Waves 2019.09.04 06:33 [660704] smart account 3MrYoV4W5mu5ZP8rPspCXveMXusGstSPTjL > SELF 0.00000000 Waves
{ "type": 13, "id": "7tyHWAkFiQrUYnSaN4THxsoaCWJpNDGiQEeGSLrb212F", "fee": 1400000, "feeAssetId": null, "timestamp": 1567568021401, "version": 1, "sender": "3MrYoV4W5mu5ZP8rPspCXveMXusGstSPTjL", "senderPublicKey": "f1NbgbpkRpbigsrHaDkWZAkPgcqd8GM5G5eNmqnTD6z", "proofs": [ "MHkWaiYtDhT1793re9vSq5GnTTk8y9eKD5xNUAEmr6fxkaKbnM6hj4sxJoJhgdcJBcGwx49ybMjLTqCnr4MsEVn" ], "script": "base64:AAIDAAAAAAAAAAAAAAADAAAAAA1hY2NlcHRlZFRva2VuAQAAACDopWq8yndC8nBhMjVKT0WDubke5ZlnF8Nx6tkLoQSt6wAAAAAMY3VycmVudFByaWNlAAAAAAAAAAnEAAAAAARiYW5rAgAAACMzTXpZTGtRNnFDd3RieGFZUTJ5azFrZFV1ZHpiTmc0SmlURwAAAAEAAAAHaW52b2ljZQEAAAATYWdyZWVtZW50VHdvUGFydGllcwAAAAQAAAAEaGFzaAAAAAV0aXRsZQAAAAhhZGRyZXNzMQAAAAhhZGRyZXNzMgQAAAAHcGF5bWVudAkBAAAAB2V4dHJhY3QAAAABCAUAAAAHaW52b2ljZQAAAAdwYXltZW50BAAAAAZhbW91bnQJAQAAAAdleHRyYWN0AAAAAQgFAAAAB3BheW1lbnQAAAAGYW1vdW50BAAAAAJpZAkBAAAAB2V4dHJhY3QAAAABCAUAAAAHaW52b2ljZQAAAA10cmFuc2FjdGlvbklkBAAAAA5wYXltZW50QXNzZXRJZAkBAAAAB2V4dHJhY3QAAAABCAUAAAAHcGF5bWVudAAAAAdhc3NldElkAwkBAAAAAiE9AAAAAgUAAAAOcGF5bWVudEFzc2V0SWQFAAAADWFjY2VwdGVkVG9rZW4JAAACAAAAAQIAAAAvT25seSBwYXltZW50cyBpbiBTSUdOIGFyZSBhbGxvd2VkIGF0IHRoZSBtb21lbnQDCQEAAAACIT0AAAACBQAAAAZhbW91bnQFAAAADGN1cnJlbnRQcmljZQkAAAIAAAABAgAAABJUaGUgcHJpY2UgaXMgd3JvbmcJAQAAAAxTY3JpcHRSZXN1bHQAAAACCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAICAAAABnRpdGxlXwkAAlgAAAABBQAAAAJpZAUAAAAFdGl0bGUJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAAFaGFzaF8JAAJYAAAAAQUAAAACaWQFAAAABGhhc2gJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAADaWRfCQACWAAAAAEFAAAAAmlkBQAAAAJpZAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACAgAAAA5jb3VudGVycGFydF8xXwkAAlgAAAABBQAAAAJpZAUAAAAIYWRkcmVzczEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAAOY291bnRlcnBhcnRfMl8JAAJYAAAAAQUAAAACaWQFAAAACGFkZHJlc3MyBQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAHEBleHRyVXNlcihhZGRyZXNzRnJvbVN0cmluZykAAAABBQAAAARiYW5rBQAAAAZhbW91bnQFAAAADWFjY2VwdGVkVG9rZW4FAAAAA25pbAAAAAC7r5I/", "chainId": 84, "height": 660704, "spentComplexity": 0 } View: original | compacted Prev: EUyyzvZ1VZSv4hrtHcKDzyy1nSZaqfV86SQee6cF8kAE Next: BGX1u72cvsFCkb2qkfimHxq8NAbr4LgRQmdiD49Qm9iR Diff:
Old | New | Differences | |
---|---|---|---|
17 | 17 | then throw("Only payments in SIGN are allowed at the moment") | |
18 | 18 | else if ((amount != currentPrice)) | |
19 | 19 | then throw("The price is wrong") | |
20 | - | else ScriptResult(WriteSet([DataEntry(("title" + toBase58String(id)), title), DataEntry(("hash" + toBase58String(id)), hash), DataEntry(("id" + toBase58String(id)), id), DataEntry(("counterpart_1_" + toBase58String(id)), address1), DataEntry(("counterpart_2_" + toBase58String(id)), address2)]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken)])) | |
20 | + | else ScriptResult(WriteSet([DataEntry(("title_" + toBase58String(id)), title), DataEntry(("hash_" + toBase58String(id)), hash), DataEntry(("id_" + toBase58String(id)), id), DataEntry(("counterpart_1_" + toBase58String(id)), address1), DataEntry(("counterpart_2_" + toBase58String(id)), address2)]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken)])) | |
21 | 21 | } | |
22 | 22 | ||
23 | 23 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let acceptedToken = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' | |
5 | 5 | ||
6 | 6 | let currentPrice = 2500 | |
7 | 7 | ||
8 | 8 | let bank = "3MzYLkQ6qCwtbxaYQ2yk1kdUudzbNg4JiTG" | |
9 | 9 | ||
10 | 10 | @Callable(invoice) | |
11 | 11 | func agreementTwoParties (hash,title,address1,address2) = { | |
12 | 12 | let payment = extract(invoice.payment) | |
13 | 13 | let amount = extract(payment.amount) | |
14 | 14 | let id = extract(invoice.transactionId) | |
15 | 15 | let paymentAssetId = extract(payment.assetId) | |
16 | 16 | if ((paymentAssetId != acceptedToken)) | |
17 | 17 | then throw("Only payments in SIGN are allowed at the moment") | |
18 | 18 | else if ((amount != currentPrice)) | |
19 | 19 | then throw("The price is wrong") | |
20 | - | else ScriptResult(WriteSet([DataEntry(("title" + toBase58String(id)), title), DataEntry(("hash" + toBase58String(id)), hash), DataEntry(("id" + toBase58String(id)), id), DataEntry(("counterpart_1_" + toBase58String(id)), address1), DataEntry(("counterpart_2_" + toBase58String(id)), address2)]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken)])) | |
20 | + | else ScriptResult(WriteSet([DataEntry(("title_" + toBase58String(id)), title), DataEntry(("hash_" + toBase58String(id)), hash), DataEntry(("id_" + toBase58String(id)), id), DataEntry(("counterpart_1_" + toBase58String(id)), address1), DataEntry(("counterpart_2_" + toBase58String(id)), address2)]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken)])) | |
21 | 21 | } | |
22 | 22 | ||
23 | 23 |
github/deemru/w8io/169f3d6 39.02 ms ◑