tx · 62G6AWEco5P4hBJFZxbNvz8G2T73wy9NhLPQQjcDNmSv

3MrYoV4W5mu5ZP8rPspCXveMXusGstSPTjL:  -0.01400000 Waves

2019.09.06 17:29 [664318] smart account 3MrYoV4W5mu5ZP8rPspCXveMXusGstSPTjL > SELF 0.00000000 Waves

{ "type": 13, "id": "62G6AWEco5P4hBJFZxbNvz8G2T73wy9NhLPQQjcDNmSv", "fee": 1400000, "feeAssetId": null, "timestamp": 1567780168967, "version": 1, "sender": "3MrYoV4W5mu5ZP8rPspCXveMXusGstSPTjL", "senderPublicKey": "f1NbgbpkRpbigsrHaDkWZAkPgcqd8GM5G5eNmqnTD6z", "proofs": [ "5grGea9BbcDyixqshVFcV9V6jZYkJJg9AXaB6wMh6X8vJoMvr8C5TdUesxVwDraj5hds7Wg8YGzb3EjRuZkKXH5o" ], "script": "base64:AAIDAAAAAAAAAAAAAAADAAAAAA1hY2NlcHRlZFRva2VuAQAAACDopWq8yndC8nBhMjVKT0WDubke5ZlnF8Nx6tkLoQSt6wAAAAAMY3VycmVudFByaWNlAAAAAAAO5rKAAAAAAARiYW5rAgAAACMzTXpZTGtRNnFDd3RieGFZUTJ5azFrZFV1ZHpiTmc0SmlURwAAAAIAAAAGaW52b2tlAQAAABljcmVhdGVBZ3JlZW1lbnRUd29QYXJ0aWVzAAAABAAAAARoYXNoAAAABXRpdGxlAAAACGFkZHJlc3MxAAAACGFkZHJlc3MyBAAAAAdwYXltZW50CQEAAAAHZXh0cmFjdAAAAAEIBQAAAAZpbnZva2UAAAAHcGF5bWVudAQAAAAGYW1vdW50CQEAAAAHZXh0cmFjdAAAAAEIBQAAAAdwYXltZW50AAAABmFtb3VudAQAAAACaWQJAQAAAAdleHRyYWN0AAAAAQgFAAAABmludm9rZQAAAA10cmFuc2FjdGlvbklkBAAAAA5wYXltZW50QXNzZXRJZAMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAAHcGF5bWVudAAAAAdhc3NldElkCQEAAAAHZXh0cmFjdAAAA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AAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQUAAAAEYmFuawUAAAAGYW1vdW50BQAAAA1hY2NlcHRlZFRva2VuBQAAAANuaWwAAAAArGeRDw==", "chainId": 84, "height": 664318, "spentComplexity": 0 } View: original | compacted Prev: DhroM6kagvLBSHXUuXWAa5yoTBvXuN2yLcZ8gUr6aVWc Next: BKwWkmYktgKjdpuz5pHBtQ9pRp91sBJh3MxrraKd6L5b Diff:
OldNewDifferences
77
88 let bank = "3MzYLkQ6qCwtbxaYQ2yk1kdUudzbNg4JiTG"
99
10-@Callable(invoice)
10+@Callable(invoke)
1111 func createAgreementTwoParties (hash,title,address1,address2) = {
12- let payment = extract(invoice.payment)
12+ let payment = extract(invoke.payment)
1313 let amount = extract(payment.amount)
14- let id = extract(invoice.transactionId)
14+ let id = extract(invoke.transactionId)
1515 let paymentAssetId = if (isDefined(payment.assetId))
1616 then extract(payment.assetId)
1717 else throw("Waves is not accepted as payment")
2424
2525
2626
27-@Callable(invoice)
27+@Callable(invoke)
2828 func createAgreementThreeParties (hash,title,address1,address2,address3) = {
29- let payment = extract(invoice.payment)
29+ let payment = extract(invoke.payment)
3030 let amount = extract(payment.amount)
31- let id = extract(invoice.transactionId)
31+ let id = extract(invoke.transactionId)
3232 let paymentAssetId = extract(payment.assetId)
3333 if ((paymentAssetId != acceptedToken))
3434 then throw("Only payments in SIGN are allowed at the moment")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let acceptedToken = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a'
55
66 let currentPrice = 250000000
77
88 let bank = "3MzYLkQ6qCwtbxaYQ2yk1kdUudzbNg4JiTG"
99
10-@Callable(invoice)
10+@Callable(invoke)
1111 func createAgreementTwoParties (hash,title,address1,address2) = {
12- let payment = extract(invoice.payment)
12+ let payment = extract(invoke.payment)
1313 let amount = extract(payment.amount)
14- let id = extract(invoice.transactionId)
14+ let id = extract(invoke.transactionId)
1515 let paymentAssetId = if (isDefined(payment.assetId))
1616 then extract(payment.assetId)
1717 else throw("Waves is not accepted as payment")
1818 if ((paymentAssetId != acceptedToken))
1919 then throw("Only payments in SIGN are allowed at the moment")
2020 else if ((amount != currentPrice))
2121 then throw("The price is wrong")
2222 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(("status_counterpart_1_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_2_" + toBase58String(id)), address2), DataEntry(("status_counterpart_2_" + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken), ScriptTransfer(addressFromStringValue(address1), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address2), 0, acceptedToken)]))
2323 }
2424
2525
2626
27-@Callable(invoice)
27+@Callable(invoke)
2828 func createAgreementThreeParties (hash,title,address1,address2,address3) = {
29- let payment = extract(invoice.payment)
29+ let payment = extract(invoke.payment)
3030 let amount = extract(payment.amount)
31- let id = extract(invoice.transactionId)
31+ let id = extract(invoke.transactionId)
3232 let paymentAssetId = extract(payment.assetId)
3333 if ((paymentAssetId != acceptedToken))
3434 then throw("Only payments in SIGN are allowed at the moment")
3535 else if ((amount != currentPrice))
3636 then throw("The price is wrong")
3737 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(("status_counterpart_1_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_2_" + toBase58String(id)), address2), DataEntry(("status_counterpart_2_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_3_" + toBase58String(id)), address3), DataEntry(("status_counterpart_3_" + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken)]))
3838 }
3939
4040

github/deemru/w8io/169f3d6 
47.25 ms