tx · FCrJotymENDtGAE6EAZyRS61YPk7PuQTDZQg77nCw3Zn

3MrYoV4W5mu5ZP8rPspCXveMXusGstSPTjL:  -0.01400000 Waves

2019.09.04 07:37 [660769] smart account 3MrYoV4W5mu5ZP8rPspCXveMXusGstSPTjL > SELF 0.00000000 Waves

{ "type": 13, "id": "FCrJotymENDtGAE6EAZyRS61YPk7PuQTDZQg77nCw3Zn", "fee": 1400000, "feeAssetId": null, "timestamp": 1567571889360, "version": 1, "sender": "3MrYoV4W5mu5ZP8rPspCXveMXusGstSPTjL", "senderPublicKey": "f1NbgbpkRpbigsrHaDkWZAkPgcqd8GM5G5eNmqnTD6z", "proofs": [ "46d2A4jSS6a3oXHScrontt6A6hJbALK28ARwrtHdjnwQyC63wov6Tm7dAqSd4yzHmvsPkBojnugrJotov4heXGS2" ], "script": "base64:AAIDAAAAAAAAAAAAAAADAAAAAA1hY2NlcHRlZFRva2VuAQAAACDopWq8yndC8nBhMjVKT0WDubke5ZlnF8Nx6tkLoQSt6wAAAAAMY3VycmVudFByaWNlAAAAAAAAAAnEAAAAAARiYW5rAgAAACMzTXpZTGtRNnFDd3RieGFZUTJ5azFrZFV1ZHpiTmc0SmlURwAAAAIAAAAHaW52b2ljZQEAAAAZY3JlYXRlQWdyZWVtZW50VHdvUGFydGllcwAAAAQAAAAEaGFzaAAAAAV0aXRsZQAAAAhhZGRyZXNzMQAAAAhhZGRyZXNzMgQAAAAHcGF5bWVudAkBAAAAB2V4dHJhY3QAAAABCAUAAAAHaW52b2ljZQAAAAdwYXltZW50BAAAAAZhbW91bnQJAQAAAAdleHRyYWN0AAAAAQgFAAAAB3BheW1lbnQAAAAGYW1vdW50BAAAAAJpZAkBAAAAB2V4dHJhY3QAAAABCAUAAAAHaW52b2ljZQAAAA10cmFuc2FjdGlvbklkBAAAAA5wYXltZW50QXNzZXRJZAMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAAHcGF5bWVudAAAAAdhc3NldElkCQEAAAAHZXh0cmFjdAAA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AAAAVoYXNoXwkAAlgAAAABBQAAAAJpZAUAAAAEaGFzaAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACAgAAAANpZF8JAAJYAAAAAQUAAAACaWQFAAAAAmlkCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAICAAAADmNvdW50ZXJwYXJ0XzFfCQACWAAAAAEFAAAAAmlkBQAAAAhhZGRyZXNzMQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACAgAAABVzdGF0dXNfY291bnRlcnBhcnRfMV8JAAJYAAAAAQUAAAACaWQCAAAAB1BFTkRJTkcJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAAOY291bnRlcnBhcnRfMl8JAAJYAAAAAQUAAAACaWQFAAAACGFkZHJlc3MyCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAICAAAAFXN0YXR1c19jb3VudGVycGFydF8yXwkAAlgAAAABBQAAAAJpZAIAAAAHUEVORElORwkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACAgAAAA5jb3VudGVycGFydF8zXwkAAlgAAAABBQAAAAJpZAUAAAAIYWRkcmVzczMJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAAVc3RhdHVzX2NvdW50ZXJwYXJ0XzNfCQACWAAAAAEFAAAAAmlkAgAAAAdQRU5ESU5HBQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAHEBleHRyVXNlcihhZGRyZXNzRnJvbVN0cmluZykAAAABBQAAAARiYW5rBQAAAAZhbW91bnQFAAAADWFjY2VwdGVkVG9rZW4FAAAAA25pbAAAAACGQ+ko", "chainId": 84, "height": 660769, "spentComplexity": 0 } View: original | compacted Prev: BGX1u72cvsFCkb2qkfimHxq8NAbr4LgRQmdiD49Qm9iR Next: Ba24bD9SwykAeR4p7w22sAgZ7bYShWP5TREzFLceL1nk Diff:
OldNewDifferences
1212 let i = extract(d.payment)
1313 let j = extract(i.amount)
1414 let k = extract(d.transactionId)
15- let l = extract(i.assetId)
15+ let l = if (isDefined(i.assetId))
16+ then extract(i.assetId)
17+ else throw("Waves is not accepted as payment")
1618 if ((l != a))
1719 then throw("Only payments in SIGN are allowed at the moment")
1820 else if ((j != b))
2123 }
2224
2325
26+
27+@Callable(d)
28+func createAgreementThreeParties (e,f,g,h,m) = {
29+ let i = extract(d.payment)
30+ let j = extract(i.amount)
31+ let k = extract(d.transactionId)
32+ let l = extract(i.assetId)
33+ if ((l != a))
34+ then throw("Only payments in SIGN are allowed at the moment")
35+ else if ((j != b))
36+ then throw("The price is wrong")
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+ }
39+
40+
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a'
55
66 let b = 2500
77
88 let c = "3MzYLkQ6qCwtbxaYQ2yk1kdUudzbNg4JiTG"
99
1010 @Callable(d)
1111 func createAgreementTwoParties (e,f,g,h) = {
1212 let i = extract(d.payment)
1313 let j = extract(i.amount)
1414 let k = extract(d.transactionId)
15- let l = extract(i.assetId)
15+ let l = if (isDefined(i.assetId))
16+ then extract(i.assetId)
17+ else throw("Waves is not accepted as payment")
1618 if ((l != a))
1719 then throw("Only payments in SIGN are allowed at the moment")
1820 else if ((j != b))
1921 then throw("The price is wrong")
2022 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)]))
2123 }
2224
2325
26+
27+@Callable(d)
28+func createAgreementThreeParties (e,f,g,h,m) = {
29+ let i = extract(d.payment)
30+ let j = extract(i.amount)
31+ let k = extract(d.transactionId)
32+ let l = extract(i.assetId)
33+ if ((l != a))
34+ then throw("Only payments in SIGN are allowed at the moment")
35+ else if ((j != b))
36+ then throw("The price is wrong")
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+ }
39+
40+

github/deemru/w8io/169f3d6 
35.31 ms