tx · Ba24bD9SwykAeR4p7w22sAgZ7bYShWP5TREzFLceL1nk 3MrYoV4W5mu5ZP8rPspCXveMXusGstSPTjL: -0.01400000 Waves 2019.09.05 17:43 [662862] smart account 3MrYoV4W5mu5ZP8rPspCXveMXusGstSPTjL > SELF 0.00000000 Waves
{ "type": 13, "id": "Ba24bD9SwykAeR4p7w22sAgZ7bYShWP5TREzFLceL1nk", "fee": 1400000, "feeAssetId": null, "timestamp": 1567694628508, "version": 1, "sender": "3MrYoV4W5mu5ZP8rPspCXveMXusGstSPTjL", "senderPublicKey": "f1NbgbpkRpbigsrHaDkWZAkPgcqd8GM5G5eNmqnTD6z", "proofs": [ "24YLB14fDm6S6cWNhqfgVspzDH1ciw1fjZs8meYpoJUr8HGBjYTc1QEvbbYL55F9qqzsAdoT1htBEy8fLWonvWV1" ], "script": "base64:AAIDAAAAAAAAAAAAAAADAAAAAA1hY2NlcHRlZFRva2VuAQAAACDopWq8yndC8nBhMjVKT0WDubke5ZlnF8Nx6tkLoQSt6wAAAAAMY3VycmVudFByaWNlAAAAAAAAAAnEAAAAAARiYW5rAgAAACMzTXpZTGtRNnFDd3RieGFZUTJ5azFrZFV1ZHpiTmc0SmlURwAAAAIAAAAHaW52b2ljZQEAAAAZY3JlYXRlQWdyZWVtZW50VHdvUGFydGllcwAAAAQAAAAEaGFzaAAAAAV0aXRsZQAAAAhhZGRyZXNzMQAAAAhhZGRyZXNzMgQAAAAHcGF5bWVudAkBAAAAB2V4dHJhY3QAAAABCAUAAAAHaW52b2ljZQAAAAdwYXltZW50BAAAAAZhbW91bnQJAQAAAAdleHRyYWN0AAAAAQgFAAAAB3BheW1lbnQAAAAGYW1vdW50BAAAAAJpZAkBAAAAB2V4dHJhY3QAAAABCAUAAAAHaW52b2ljZQAAAA10cmFuc2FjdGlvbklkBAAAAA5wYXltZW50QXNzZXRJZAMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAAHcGF5bWVudAAAAAdhc3NldElkCQEAAAAHZXh0cmFj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ZAIAAAAHUEVORElORwUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQUAAAAEYmFuawUAAAAGYW1vdW50BQAAAA1hY2NlcHRlZFRva2VuBQAAAANuaWwAAAAAyOpUzA==", "chainId": 84, "height": 662862, "spentComplexity": 0 } View: original | compacted Prev: FCrJotymENDtGAE6EAZyRS61YPk7PuQTDZQg77nCw3Zn Next: 5CR8N22tszTK52e56L3SqN4ZYXwgwZpxqKF9Gs3NrePQ Diff:
Old | New | Differences | |
---|---|---|---|
19 | 19 | then throw("Only payments in SIGN are allowed at the moment") | |
20 | 20 | else if ((j != b)) | |
21 | 21 | then throw("The price is wrong") | |
22 | - | 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(("status_counterpart_1_" + toBase58String(k)), "PENDING"), DataEntry(("counterpart_2_" + toBase58String(k)), h), DataEntry(("status_counterpart_2_" + toBase58String(k)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), j, a)])) | |
22 | + | 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(("status_counterpart_1_" + toBase58String(k)), "PENDING"), DataEntry(("counterpart_2_" + toBase58String(k)), h), DataEntry(("status_counterpart_2_" + toBase58String(k)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), j, a), ScriptTransfer(addressFromStringValue(g), 0, a), ScriptTransfer(addressFromStringValue(h), 0, a)])) | |
23 | 23 | } | |
24 | 24 | ||
25 | 25 |
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 | 11 | func createAgreementTwoParties (e,f,g,h) = { | |
12 | 12 | let i = extract(d.payment) | |
13 | 13 | let j = extract(i.amount) | |
14 | 14 | let k = extract(d.transactionId) | |
15 | 15 | let l = if (isDefined(i.assetId)) | |
16 | 16 | then extract(i.assetId) | |
17 | 17 | else throw("Waves is not accepted as payment") | |
18 | 18 | if ((l != a)) | |
19 | 19 | then throw("Only payments in SIGN are allowed at the moment") | |
20 | 20 | else if ((j != b)) | |
21 | 21 | then throw("The price is wrong") | |
22 | - | 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(("status_counterpart_1_" + toBase58String(k)), "PENDING"), DataEntry(("counterpart_2_" + toBase58String(k)), h), DataEntry(("status_counterpart_2_" + toBase58String(k)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), j, a)])) | |
22 | + | 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(("status_counterpart_1_" + toBase58String(k)), "PENDING"), DataEntry(("counterpart_2_" + toBase58String(k)), h), DataEntry(("status_counterpart_2_" + toBase58String(k)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), j, a), ScriptTransfer(addressFromStringValue(g), 0, a), ScriptTransfer(addressFromStringValue(h), 0, a)])) | |
23 | 23 | } | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | ||
27 | 27 | @Callable(d) | |
28 | 28 | func createAgreementThreeParties (e,f,g,h,m) = { | |
29 | 29 | let i = extract(d.payment) | |
30 | 30 | let j = extract(i.amount) | |
31 | 31 | let k = extract(d.transactionId) | |
32 | 32 | let l = extract(i.assetId) | |
33 | 33 | if ((l != a)) | |
34 | 34 | then throw("Only payments in SIGN are allowed at the moment") | |
35 | 35 | else if ((j != b)) | |
36 | 36 | then throw("The price is wrong") | |
37 | 37 | 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(("status_counterpart_1_" + toBase58String(k)), "PENDING"), DataEntry(("counterpart_2_" + toBase58String(k)), h), DataEntry(("status_counterpart_2_" + toBase58String(k)), "PENDING"), DataEntry(("counterpart_3_" + toBase58String(k)), m), DataEntry(("status_counterpart_3_" + toBase58String(k)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), j, a)])) | |
38 | 38 | } | |
39 | 39 | ||
40 | 40 |
github/deemru/w8io/026f985 29.90 ms ◑