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 | |
---|---|---|---|
29 | 29 | let e = WriteSet([DataEntry(d, a), DataEntry(h, c)]) | |
30 | 30 | ScriptResult(e, l) | |
31 | 31 | } | |
32 | - | else { | |
33 | - | let e = WriteSet([DataEntry(d, "NN")]) | |
34 | - | ScriptResult(e, TransferSet(nil)) | |
35 | - | } | |
32 | + | else throw("saller homeless") | |
36 | 33 | } | |
37 | 34 | } | |
38 | 35 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "0" | |
5 | 5 | ||
6 | 6 | @Callable(b) | |
7 | 7 | func sethome (c) = { | |
8 | 8 | let d = toBase58String(b.caller.bytes) | |
9 | 9 | let e = WriteSet([DataEntry(d, c)]) | |
10 | 10 | ScriptResult(e, TransferSet(nil)) | |
11 | 11 | } | |
12 | 12 | ||
13 | 13 | ||
14 | 14 | ||
15 | 15 | @Callable(b) | |
16 | 16 | func main (f,c) = { | |
17 | 17 | let g = extract(b.payment) | |
18 | 18 | if (isDefined(g.assetId)) | |
19 | 19 | then throw("payment is only waves") | |
20 | 20 | else { | |
21 | 21 | let h = toBase58String(b.caller.bytes) | |
22 | 22 | let i = addressFromPublicKey(f) | |
23 | 23 | let d = toBase58String(i.bytes) | |
24 | 24 | let j = getString(this, d) | |
25 | 25 | if ($isInstanceOf(j, "String")) | |
26 | 26 | then { | |
27 | 27 | let k = j | |
28 | 28 | let l = TransferSet([ScriptTransfer(i, g.amount, unit)]) | |
29 | 29 | let e = WriteSet([DataEntry(d, a), DataEntry(h, c)]) | |
30 | 30 | ScriptResult(e, l) | |
31 | 31 | } | |
32 | - | else { | |
33 | - | let e = WriteSet([DataEntry(d, "NN")]) | |
34 | - | ScriptResult(e, TransferSet(nil)) | |
35 | - | } | |
32 | + | else throw("saller homeless") | |
36 | 33 | } | |
37 | 34 | } | |
38 | 35 | ||
39 | 36 |
github/deemru/w8io/03bedc9 36.77 ms ◑![]()