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:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | 7 | func sethome (homeId) = WriteSet([DataEntry(toBase58String(i.callerPublicKey), homeId)]) | |
8 | 8 | ||
9 | 9 | ||
10 | 10 | ||
11 | 11 | @Callable(i) | |
12 | 12 | func main (sellerPublicKey,homeId) = { | |
13 | 13 | let pmt = extract(i.payment) | |
14 | 14 | if (isDefined(pmt.assetId)) | |
15 | 15 | then throw("payment is only waves") | |
16 | 16 | else { | |
17 | 17 | let sellerAddress = Address(sellerPublicKey) | |
18 | 18 | let buerPublicKeyBase58 = toBase58String(i.callerPublicKey) | |
19 | 19 | let sellerPublicKeyBase58 = toBase58String(sellerPublicKey) | |
20 | 20 | let dataFromStorage = getInteger(this, sellerPublicKeyBase58) | |
21 | 21 | if (isDefined(dataFromStorage)) | |
22 | 22 | then { | |
23 | 23 | let transfer = TransferSet([ScriptTransfer(sellerAddress, pmt.amount, unit)]) | |
24 | 24 | let write = WriteSet([DataEntry(sellerPublicKeyBase58, "0"), DataEntry(buerPublicKeyBase58, homeId)]) | |
25 | 25 | ScriptResult(write, transfer) | |
26 | 26 | } | |
27 | 27 | else throw("seller homeless") | |
28 | 28 | } | |
29 | 29 | } | |
30 | 30 | ||
31 | 31 |
github/deemru/w8io/026f985 37.84 ms ◑