tx · 5hKueMB8phy1UkvXYMosTHRUbCk4eb1yUQbM2Z5UGwUQ
3MvqUEAdK8oa1jDS82eqYYVoHTX3S71rRPa: -0.01400000 Waves
2019.09.08 12:15 [666904] smart account 3MvqUEAdK8oa1jDS82eqYYVoHTX3S71rRPa > SELF 0.00000000 Waves
{
"type": 13,
"id": "5hKueMB8phy1UkvXYMosTHRUbCk4eb1yUQbM2Z5UGwUQ",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1567934122724,
"version": 1,
"sender": "3MvqUEAdK8oa1jDS82eqYYVoHTX3S71rRPa",
"senderPublicKey": "HktRLq8bnL31myXeh7WVXAuMw8Qb7yrhPfMVxucQVeU",
"proofs": [
"5w7BZLCm86GavwyTQjtAi48dtzbDgNCgDVGeN3KGAHk1cEmfzW4h1da5DWSdF3ZP3iuLTGKSjbwzPYseHGeBgKJA"
],
"script": "base64:AAIDAAAAAAAAAAAAAAABAAAAAAhudWxsSG9tZQIAAAABMAAAAAIAAAABaQEAAAAHc2V0aG9tZQAAAAEAAAAGaG9tZUlkBAAAAAxzZWxsZXJCYXNlNTgJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAFd3JpdGUJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAADHNlbGxlckJhc2U1OAUAAAAGaG9tZUlkBQAAAANuaWwJAQAAAAxTY3JpcHRSZXN1bHQAAAACBQAAAAV3cml0ZQkBAAAAC1RyYW5zZmVyU2V0AAAAAQUAAAADbmlsAAAAAWkBAAAABG1haW4AAAACAAAAD3NlbGxlclB1YmxpY0tleQAAAAZob21lSWQEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50AwkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAANwbXQAAAAHYXNzZXRJZAkAAAIAAAABAgAAABVwYXltZW50IGlzIG9ubHkgd2F2ZXMEAAAACmJ1ZXJCYXN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QEPZQjE7hNjND7w
Next: 37rekstVV38WFASTnqfjku6RfPGYWHD3ZPLmEw37oB41
Diff:
Old | New | | Differences |
---|
21 | 21 | | let h = toBase58String(b.caller.bytes) |
---|
22 | 22 | | let i = addressFromPublicKey(f) |
---|
23 | 23 | | let d = toBase58String(i.bytes) |
---|
24 | | - | let j = { |
---|
25 | | - | let k = getString(this, d) |
---|
26 | | - | if ($isInstanceOf(k, "String")) |
---|
27 | | - | then { |
---|
28 | | - | let l = k |
---|
29 | | - | l |
---|
30 | | - | } |
---|
31 | | - | else a |
---|
32 | | - | } |
---|
33 | | - | if ((j == a)) |
---|
| 24 | + | let j = getString(this, d) |
---|
| 25 | + | if ($isInstanceOf(j, "String")) |
---|
34 | 26 | | then { |
---|
| 27 | + | let k = j |
---|
| 28 | + | let l = TransferSet([ScriptTransfer(Address(f), g.amount, unit)]) |
---|
| 29 | + | let e = WriteSet([DataEntry(d, a), DataEntry(h, c)]) |
---|
| 30 | + | ScriptResult(e, l) |
---|
| 31 | + | } |
---|
| 32 | + | else { |
---|
35 | 33 | | let e = WriteSet([DataEntry(d, "N")]) |
---|
36 | 34 | | ScriptResult(e, TransferSet(nil)) |
---|
37 | | - | } |
---|
38 | | - | else { |
---|
39 | | - | let m = TransferSet([ScriptTransfer(Address(f), g.amount, unit)]) |
---|
40 | | - | let e = WriteSet([DataEntry(d, a), DataEntry(h, c)]) |
---|
41 | | - | ScriptResult(e, m) |
---|
42 | 35 | | } |
---|
43 | 36 | | } |
---|
44 | 37 | | } |
---|
Full:
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 | | - | let j = { |
---|
25 | | - | let k = getString(this, d) |
---|
26 | | - | if ($isInstanceOf(k, "String")) |
---|
27 | | - | then { |
---|
28 | | - | let l = k |
---|
29 | | - | l |
---|
30 | | - | } |
---|
31 | | - | else a |
---|
32 | | - | } |
---|
33 | | - | if ((j == a)) |
---|
| 24 | + | let j = getString(this, d) |
---|
| 25 | + | if ($isInstanceOf(j, "String")) |
---|
34 | 26 | | then { |
---|
| 27 | + | let k = j |
---|
| 28 | + | let l = TransferSet([ScriptTransfer(Address(f), g.amount, unit)]) |
---|
| 29 | + | let e = WriteSet([DataEntry(d, a), DataEntry(h, c)]) |
---|
| 30 | + | ScriptResult(e, l) |
---|
| 31 | + | } |
---|
| 32 | + | else { |
---|
35 | 33 | | let e = WriteSet([DataEntry(d, "N")]) |
---|
36 | 34 | | ScriptResult(e, TransferSet(nil)) |
---|
37 | | - | } |
---|
38 | | - | else { |
---|
39 | | - | let m = TransferSet([ScriptTransfer(Address(f), g.amount, unit)]) |
---|
40 | | - | let e = WriteSet([DataEntry(d, a), DataEntry(h, c)]) |
---|
41 | | - | ScriptResult(e, m) |
---|
42 | 35 | | } |
---|
43 | 36 | | } |
---|
44 | 37 | | } |
---|
45 | 38 | | |
---|
46 | 39 | | |
---|