tx · 71Kzd3AeXsN45vTGPTDFkfGzyMnpodNafYKzgSjgMUWC

3MrYoV4W5mu5ZP8rPspCXveMXusGstSPTjL:  -0.01400000 Waves

2019.09.05 17:51 [662868] smart account 3MrYoV4W5mu5ZP8rPspCXveMXusGstSPTjL > SELF 0.00000000 Waves

{ "type": 13, "id": "71Kzd3AeXsN45vTGPTDFkfGzyMnpodNafYKzgSjgMUWC", "fee": 1400000, "feeAssetId": null, "timestamp": 1567695151707, "version": 1, "sender": "3MrYoV4W5mu5ZP8rPspCXveMXusGstSPTjL", "senderPublicKey": "f1NbgbpkRpbigsrHaDkWZAkPgcqd8GM5G5eNmqnTD6z", "proofs": [ "49tDH8A3CxXHwb6dt4QRhs2JZiJSeZAJ5DRdyvggWiBE5hfBmEeJHsejZLiG83M5W7wCKjaygcoKVB28uw824AQk" ], "script": "base64:AAIDAAAAAAAAAAAAAAADAAAAAA1hY2NlcHRlZFRva2VuAQAAACDopWq8yndC8nBhMjVKT0WDubke5ZlnF8Nx6tkLoQSt6wAAAAAMY3VycmVudFByaWNlAAAAAAAO5rKAAAAAAARiYW5rAgAAACMzTXpZTGtRNnFDd3RieGFZUTJ5azFrZFV1ZHpiTmc0SmlURwAAAAIAAAAHaW52b2ljZQEAAAAZY3JlYXRlQWdyZWVtZW50VHdvUGFydGllcwAAAAQAAAAEaGFzaAAAAAV0aXRsZQAAAAhhZGRyZXNzMQAAAAhhZGRyZXNzMgQAAAAHcGF5bWVudAkBAAAAB2V4dHJhY3QAAAABCAUAAAAHaW52b2ljZQAAAAdwYXltZW50BAAAAAZhbW91bnQJAQAAAAdleHRyYWN0AAAAAQgFAAAAB3BheW1lbnQAAAAGYW1vdW50BAAAAAJpZAkBAAAAB2V4dHJhY3QAAAABCAUAAAAHaW52b2ljZQAAAA10cmFuc2FjdGlvbklkBAAAAA5wYXltZW50QXNzZXRJZAMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAAHcGF5bWVudAAAAAdhc3NldElkCQEAAAAHZXh0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HJ5AAAAAgkAASwAAAACAgAAABVzdGF0dXNfY291bnRlcnBhcnRfM18JAAJYAAAAAQUAAAACaWQCAAAAB1BFTkRJTkcFAAAAA25pbAkBAAAAC1RyYW5zZmVyU2V0AAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAAcQGV4dHJVc2VyKGFkZHJlc3NGcm9tU3RyaW5nKQAAAAEFAAAABGJhbmsFAAAABmFtb3VudAUAAAANYWNjZXB0ZWRUb2tlbgUAAAADbmlsAAAAAOVeHuk=", "chainId": 84, "height": 662868, "spentComplexity": 0 } View: original | compacted Prev: 5CR8N22tszTK52e56L3SqN4ZYXwgwZpxqKF9Gs3NrePQ Next: DhroM6kagvLBSHXUuXWAa5yoTBvXuN2yLcZ8gUr6aVWc Diff:
OldNewDifferences
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a'
55
6-let b = 2500
6+let b = 250000000
77
88 let c = "3MzYLkQ6qCwtbxaYQ2yk1kdUudzbNg4JiTG"
99
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a'
55
6-let b = 2500
6+let b = 250000000
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)
1515 let l = if (isDefined(i.assetId))
1616 then extract(i.assetId)
1717 else throw("Waves is not accepted as payment")
1818 if ((l != a))
1919 then throw("Only payments in SIGN are allowed at the moment")
2020 else if ((j != b))
2121 then throw("The price is wrong")
2222 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 / 3), a), ScriptTransfer(addressFromStringValue(g), (j / 3), a), ScriptTransfer(addressFromStringValue(h), (j / 3), a)]))
2323 }
2424
2525
2626
2727 @Callable(d)
2828 func createAgreementThreeParties (e,f,g,h,m) = {
2929 let i = extract(d.payment)
3030 let j = extract(i.amount)
3131 let k = extract(d.transactionId)
3232 let l = extract(i.assetId)
3333 if ((l != a))
3434 then throw("Only payments in SIGN are allowed at the moment")
3535 else if ((j != b))
3636 then throw("The price is wrong")
3737 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)]))
3838 }
3939
4040

github/deemru/w8io/169f3d6 
37.23 ms