tx · EZNSdMNXuCNLWiWxrAE7rUmowspgx7H6aZZti3JBLuqU

3MvqUEAdK8oa1jDS82eqYYVoHTX3S71rRPa:  -0.01400000 Waves

2019.09.08 13:20 [666967] smart account 3MvqUEAdK8oa1jDS82eqYYVoHTX3S71rRPa > SELF 0.00000000 Waves

{ "type": 13, "id": "EZNSdMNXuCNLWiWxrAE7rUmowspgx7H6aZZti3JBLuqU", "fee": 1400000, "feeAssetId": null, "timestamp": 1567938047410, "version": 1, "sender": "3MvqUEAdK8oa1jDS82eqYYVoHTX3S71rRPa", "senderPublicKey": "HktRLq8bnL31myXeh7WVXAuMw8Qb7yrhPfMVxucQVeU", "proofs": [ "3ea8c3C5GvG5eBEYUUjyGAt77TqQ7xq1Ea7TgeUuYuy9QJA1qLCgMD7pxpKNXSiqQ28CVJBbECmasuqZYyMbRH54" ], "script": "base64:AAIDAAAAAAAAAAAAAAABAAAAAAhudWxsSG9tZQIAAAABMAAAAAIAAAABaQEAAAAHc2V0aG9tZQAAAAEAAAAGaG9tZUlkBAAAAAxzZWxsZXJCYXNlNTgJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAFd3JpdGUJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAADHNlbGxlckJhc2U1OAUAAAAGaG9tZUlkCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAApzZXRob21lTG9nCQABLAAAAAIJAAEsAAAAAgUAAAAMc2VsbGVyQmFzZTU4AgAAAAQgLT4gBQAAAAZob21lSWQFAAAAA25pbAkBAAAADFNjcmlwdFJlc3VsdAAAAAIFAAAABXdyaXRlCQEAAAALVHJhbnNmZXJTZXQAAAABBQAAAANuaWwAAAABaQEAAAAEbWFpbgAAAAIAAAAMc2VsbGVyVmVjdG9yAAAABmhvbWVJZAQAAAADcG10CQEAAAAHZXh0cmFjdAAAAAEIBQAAAAFpAAAAB3BheW1lbnQDCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAAA3BtdAAAAAdhc3NldElkCQAAAgAAAAECAAAAFXBheW1lbnQgaXMgb25seSB3YXZlcwQAAAAKYnVlckJhc2U1OAkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAA1zZWxsZXJBZGRyZXNzCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABBQAAAAxzZWxsZXJWZWN0b3IEAAAADHNlbGxlckJhc2U1OAkAAlgAAAABBQAAAAxzZWxsZXJWZWN0b3IJAQAAAAxTY3JpcHRSZXN1bHQAAAACCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAdtYWluTG9nCQABLAAAAAIJAAEsAAAAAgUAAAAMc2VsbGVyQmFzZTU4AgAAAAQgLT4gBQAAAApidWVyQmFzZTU4BQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEFAAAAA25pbAAAAAAVSQy6", "chainId": 84, "height": 666967, "spentComplexity": 0 } View: original | compacted Prev: 8TaoaqAkJDBvdmuA4XXEunTFWJefZkVUQtpJppT43aPT Next: EyKz4xroBaE8jZM41uy9kzXpp6ijW4vMwKJk31AGVojW Diff:
OldNewDifferences
2121 let buerBase58 = toBase58String(i.caller.bytes)
2222 let sellerAddress = addressFromPublicKey(sellerVector)
2323 let sellerBase58 = toBase58String(sellerVector)
24- match getString(this, sellerBase58) {
25- case home: String =>
26- let transfer = TransferSet([ScriptTransfer(sellerAddress, pmt.amount, pmt.assetId)])
27- let write = WriteSet([DataEntry(sellerBase58, nullHome), DataEntry(buerBase58, homeId), DataEntry("mainLog", ((sellerBase58 + " -> ") + buerBase58))])
28- ScriptResult(write, transfer)
29- case _ =>
30- throw("saller ")
31- }
24+ ScriptResult(WriteSet([DataEntry("mainLog", ((sellerBase58 + " -> ") + buerBase58))]), TransferSet(nil))
3225 }
3326 }
3427
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let nullHome = "0"
55
66 @Callable(i)
77 func sethome (homeId) = {
88 let sellerBase58 = toBase58String(i.caller.bytes)
99 let write = WriteSet([DataEntry(sellerBase58, homeId), DataEntry("sethomeLog", ((sellerBase58 + " -> ") + homeId))])
1010 ScriptResult(write, TransferSet(nil))
1111 }
1212
1313
1414
1515 @Callable(i)
1616 func main (sellerVector,homeId) = {
1717 let pmt = extract(i.payment)
1818 if (isDefined(pmt.assetId))
1919 then throw("payment is only waves")
2020 else {
2121 let buerBase58 = toBase58String(i.caller.bytes)
2222 let sellerAddress = addressFromPublicKey(sellerVector)
2323 let sellerBase58 = toBase58String(sellerVector)
24- match getString(this, sellerBase58) {
25- case home: String =>
26- let transfer = TransferSet([ScriptTransfer(sellerAddress, pmt.amount, pmt.assetId)])
27- let write = WriteSet([DataEntry(sellerBase58, nullHome), DataEntry(buerBase58, homeId), DataEntry("mainLog", ((sellerBase58 + " -> ") + buerBase58))])
28- ScriptResult(write, transfer)
29- case _ =>
30- throw("saller ")
31- }
24+ ScriptResult(WriteSet([DataEntry("mainLog", ((sellerBase58 + " -> ") + buerBase58))]), TransferSet(nil))
3225 }
3326 }
3427
3528

github/deemru/w8io/169f3d6 
38.27 ms