tx · BxyKdty35XyHnFwhZZ45fyT5hgvtMXi7XDLaMKm6R2kg

3MvqUEAdK8oa1jDS82eqYYVoHTX3S71rRPa:  -0.01400000 Waves

2019.09.08 10:52 [666827] smart account 3MvqUEAdK8oa1jDS82eqYYVoHTX3S71rRPa > SELF 0.00000000 Waves

{ "type": 13, "id": "BxyKdty35XyHnFwhZZ45fyT5hgvtMXi7XDLaMKm6R2kg", "fee": 1400000, "feeAssetId": null, "timestamp": 1567929135107, "version": 1, "sender": "3MvqUEAdK8oa1jDS82eqYYVoHTX3S71rRPa", "senderPublicKey": "HktRLq8bnL31myXeh7WVXAuMw8Qb7yrhPfMVxucQVeU", "proofs": [ "5aAP2bSjAbCUjaWFzrMEuV9rMvQAHvaq1y1AopRzLKLscruLhazbuJ3Qnek82a4dDMKnwy3WKMmmwQaKLQsYWoGw" ], "script": "base64:AAIDAAAAAAAAAAAAAAAAAAAAAgAAAAFpAQAAAAdzZXRob21lAAAAAQAAAAZob21lSWQJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAJYAAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5BQAAAAZob21lSWQFAAAAA25pbAAAAAFpAQAAAARtYWluAAAAAgAAAA9zZWxsZXJQdWJsaWNLZXkAAAAGaG9tZUlkBAAAAANwbXQJAQAAAAdleHRyYWN0AAAAAQgFAAAAAWkAAAAHcGF5bWVudAMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAADcG10AAAAB2Fzc2V0SWQJAAACAAAAAQIAAAAVcGF5bWVudCBpcyBvbmx5IHdhdmVzBAAAAA1zZWxsZXJBZGRyZXNzCQEAAAAHQWRkcmVzcwAAAAEFAAAAD3NlbGxlclB1YmxpY0tleQQAAAATYnVlclB1YmxpY0tleUJhc2U1OAkAAlgAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkEAAAAFXNlbGxlclB1YmxpY0tleUJhc2U1OAkAAlgAAAABBQAAAA9zZWxsZXJQdWJsaWNLZXkEAAAAD2RhdGFGcm9tU3RvcmFnZQkABBoAAAACBQAAAAR0aGlzBQAAABVzZWxsZXJQdWJsaWNLZXlCYXNlNTgDCQEAAAAJaXNEZWZpbmVkAAAAAQUAAAAPZGF0YUZyb21TdG9yYWdlBAAAAAh0cmFuc2ZlcgkBAAAAC1RyYW5zZmVyU2V0AAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAA1zZWxsZXJBZGRyZXNzCAUAAAADcG10AAAABmFtb3VudAUAAAAEdW5pdAUAAAADbmlsBAAAAAV3cml0ZQkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAVc2VsbGVyUHVibGljS2V5QmFzZTU4AgAAAAEwCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAABNidWVyUHVibGljS2V5QmFzZTU4BQAAAAZob21lSWQFAAAAA25pbAkBAAAADFNjcmlwdFJlc3VsdAAAAAIFAAAABXdyaXRlBQAAAAh0cmFuc2ZlcgkAAAIAAAABAgAAAA9zZWxsZXIgaG9tZWxlc3MAAAAA+HAqrQ==", "chainId": 84, "height": 666827, "spentComplexity": 0 } View: original | compacted Prev: 7Wa3oFm6DE9jranhyPpQgaNqV3SVV7dA8Fnhcj3s9joy Next: BPPDJYQ7cBhNv7ih88m61oo85JFJUzvFb8HJieMCgBSM Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func sethome (homeId) = WriteSet([DataEntry(toBase58String(i.callerPublicKey), homeId)])
88
99
1010
1111 @Callable(i)
1212 func main (sellerPublicKey,homeId) = {
1313 let pmt = extract(i.payment)
1414 if (isDefined(pmt.assetId))
1515 then throw("payment is only waves")
1616 else {
1717 let sellerAddress = Address(sellerPublicKey)
1818 let buerPublicKeyBase58 = toBase58String(i.callerPublicKey)
1919 let sellerPublicKeyBase58 = toBase58String(sellerPublicKey)
2020 let dataFromStorage = getInteger(this, sellerPublicKeyBase58)
2121 if (isDefined(dataFromStorage))
2222 then {
2323 let transfer = TransferSet([ScriptTransfer(sellerAddress, pmt.amount, unit)])
2424 let write = WriteSet([DataEntry(sellerPublicKeyBase58, "0"), DataEntry(buerPublicKeyBase58, homeId)])
2525 ScriptResult(write, transfer)
2626 }
2727 else throw("seller homeless")
2828 }
2929 }
3030
3131

github/deemru/w8io/026f985 
37.84 ms