tx · 9sXGwX4trZ5jkpCSGBTgGZg9Uu4M1Mhyg24ZL3dGP3k1 3MvqUEAdK8oa1jDS82eqYYVoHTX3S71rRPa: -0.01400000 Waves 2019.09.08 12:28 [666916] smart account 3MvqUEAdK8oa1jDS82eqYYVoHTX3S71rRPa > SELF 0.00000000 Waves
{ "type": 13, "id": "9sXGwX4trZ5jkpCSGBTgGZg9Uu4M1Mhyg24ZL3dGP3k1", "fee": 1400000, "feeAssetId": null, "timestamp": 1567934849076, "version": 1, "sender": "3MvqUEAdK8oa1jDS82eqYYVoHTX3S71rRPa", "senderPublicKey": "HktRLq8bnL31myXeh7WVXAuMw8Qb7yrhPfMVxucQVeU", "proofs": [ "4yTDQEKY4bM7eTjQUJNeRSFWPDEY1W8tTYZRnd5XncawNdeEAntSH7ZR6Eg5kRZhaseKqhgYXUHrC7XtmUfe1krN" ], "script": "base64:AAIDAAAAAAAAAAAAAAABAAAAAAhudWxsSG9tZQIAAAABMAAAAAIAAAABaQEAAAAHc2V0aG9tZQAAAAEAAAAGaG9tZUlkBAAAAAxzZWxsZXJCYXNlNTgJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAFd3JpdGUJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAADHNlbGxlckJhc2U1OAUAAAAGaG9tZUlkBQAAAANuaWwJAQAAAAxTY3JpcHRSZXN1bHQAAAACBQAAAAV3cml0ZQkBAAAAC1RyYW5zZmVyU2V0AAAAAQUAAAADbmlsAAAAAWkBAAAABG1haW4AAAACAAAAD3NlbGxlclB1YmxpY0tleQAAAAZob21lSWQEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50AwkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAANwbXQAAAAHYXNzZXRJZAkAAAIAAAABAgAAABVwYXltZW50IGlzIG9ubHkgd2F2ZXMEAAAACmJ1ZXJCYXNlNTgJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAANc2VsbGVyQWRkcmVzcwkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQUAAAAPc2VsbGVyUHVibGljS2V5BAAAAAxzZWxsZXJCYXNlNTgJAAJYAAAAAQgFAAAADXNlbGxlckFkZHJlc3MAAAAFYnl0ZXMEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAAMc2VsbGVyQmFzZTU4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAABGhvbWUFAAAAByRtYXRjaDAEAAAACHRyYW5zZmVyCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAADXNlbGxlckFkZHJlc3MIBQAAAANwbXQAAAAGYW1vdW50BQAAAAR1bml0BQAAAANuaWwEAAAABXdyaXRlCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAAxzZWxsZXJCYXNlNTgFAAAACG51bGxIb21lCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAApidWVyQmFzZTU4BQAAAAZob21lSWQFAAAAA25pbAkBAAAADFNjcmlwdFJlc3VsdAAAAAIFAAAABXdyaXRlBQAAAAh0cmFuc2ZlcgkAAAIAAAABAgAAAA9zYWxsZXIgaG9tZWxlc3MAAAAAs9lP0w==", "chainId": 84, "height": 666916, "spentComplexity": 0 } View: original | compacted Prev: 37rekstVV38WFASTnqfjku6RfPGYWHD3ZPLmEw37oB41 Next: 8LD9Ro4JQcZwKrAe29u71oqQ8mSAGNi2rNi4hjw2q5Rn Diff:
Old | New | Differences | |
---|---|---|---|
27 | 27 | let write = WriteSet([DataEntry(sellerBase58, nullHome), DataEntry(buerBase58, homeId)]) | |
28 | 28 | ScriptResult(write, transfer) | |
29 | 29 | case _ => | |
30 | - | let write = WriteSet([DataEntry(sellerBase58, "NN")]) | |
31 | - | ScriptResult(write, TransferSet(nil)) | |
30 | + | throw("saller homeless") | |
32 | 31 | } | |
33 | 32 | } | |
34 | 33 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let nullHome = "0" | |
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | 7 | func sethome (homeId) = { | |
8 | 8 | let sellerBase58 = toBase58String(i.caller.bytes) | |
9 | 9 | let write = WriteSet([DataEntry(sellerBase58, homeId)]) | |
10 | 10 | ScriptResult(write, TransferSet(nil)) | |
11 | 11 | } | |
12 | 12 | ||
13 | 13 | ||
14 | 14 | ||
15 | 15 | @Callable(i) | |
16 | 16 | func main (sellerPublicKey,homeId) = { | |
17 | 17 | let pmt = extract(i.payment) | |
18 | 18 | if (isDefined(pmt.assetId)) | |
19 | 19 | then throw("payment is only waves") | |
20 | 20 | else { | |
21 | 21 | let buerBase58 = toBase58String(i.caller.bytes) | |
22 | 22 | let sellerAddress = addressFromPublicKey(sellerPublicKey) | |
23 | 23 | let sellerBase58 = toBase58String(sellerAddress.bytes) | |
24 | 24 | match getString(this, sellerBase58) { | |
25 | 25 | case home: String => | |
26 | 26 | let transfer = TransferSet([ScriptTransfer(sellerAddress, pmt.amount, unit)]) | |
27 | 27 | let write = WriteSet([DataEntry(sellerBase58, nullHome), DataEntry(buerBase58, homeId)]) | |
28 | 28 | ScriptResult(write, transfer) | |
29 | 29 | case _ => | |
30 | - | let write = WriteSet([DataEntry(sellerBase58, "NN")]) | |
31 | - | ScriptResult(write, TransferSet(nil)) | |
30 | + | throw("saller homeless") | |
32 | 31 | } | |
33 | 32 | } | |
34 | 33 | } | |
35 | 34 | ||
36 | 35 |
github/deemru/w8io/03bedc9 30.40 ms ◑![]()