tx · 4rnxG9m88jNcQZaJBX6ZegGZQY2sRhopcv16PnRjrK7s
3MvqUEAdK8oa1jDS82eqYYVoHTX3S71rRPa: -0.01400000 Waves
2019.09.08 11:50 [666878] smart account 3MvqUEAdK8oa1jDS82eqYYVoHTX3S71rRPa > SELF 0.00000000 Waves
{
"type": 13,
"id": "4rnxG9m88jNcQZaJBX6ZegGZQY2sRhopcv16PnRjrK7s",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1567932641391,
"version": 1,
"sender": "3MvqUEAdK8oa1jDS82eqYYVoHTX3S71rRPa",
"senderPublicKey": "HktRLq8bnL31myXeh7WVXAuMw8Qb7yrhPfMVxucQVeU",
"proofs": [
"wZdUB8BHpjSoeXsP4CMCHNArkQ1RJ4yUa4XVJLLPC8reDJkPmeG6eZPgxDUV84Autr6a1d8Af9FMck6GH1RyFL9"
],
"script": "base64:AAIDAAAAAAAAAAAAAAAAAAAAAgAAAAFpAQAAAAdzZXRob21lAAAAAQAAAAZob21lSWQEAAAAFXNlbGxlclB1YmxpY0tleUJhc2U1OAkAAlgAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkEAAAABXdyaXRlCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAABVzZWxsZXJQdWJsaWNLZXlCYXNlNTgFAAAABmhvbWVJZAUAAAADbmlsCQEAAAAMU2NyaXB0UmVzdWx0AAAAAgUAAAAFd3JpdGUJAQAAAAtUcmFuc2ZlclNldAAAAAEFAAAAA25pbAAAAAFpAQAAAARtYWluAAAAAgAAAA9zZWxsZXJQdWJsaWNLZXkAAAAGaG9tZUlkBAAAAANwbXQJAQAAAAdleHRyYWN0AAAAAQgFAAAAAWkAAAAHcGF5bWVudAMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAADcG10AAAAB2Fzc2V0SWQJAAACAAAAAQIAAAAVcGF5bWVudCBpcyBvbmx5IHdhdmVzBAAAABNidWVyUHVibGljS2V5QmFzZTU4CQACWAAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQQAAAAVc2VsbGVyUHVibGljS2V5QmFzZTU4CQACWAAAAAEFAAAAD3NlbGxlclB1YmxpY0tleQQAAAAPZGF0YUZyb21TdG9yYWdlBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAFXNlbGxlclB1YmxpY0tleUJhc2U1OAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAARob21lBQAAAAckbWF0Y2gwBQAAAARob21lAgAAAAEwAwkAAAAAAAACBQAAAA9kYXRhRnJvbVN0b3JhZ2UCAAAAATAEAAAABXdyaXRlCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAABVzZWxsZXJQdWJsaWNLZXlCYXNlNTgCAAAAAU4FAAAAA25pbAkBAAAADFNjcmlwdFJlc3VsdAAAAAIFAAAABXdyaXRlCQEAAAALVHJhbnNmZXJTZXQAAAABBQAAAANuaWwEAAAACHRyYW5zZmVyCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAAAdBZGRyZXNzAAAAAQUAAAAPc2VsbGVyUHVibGljS2V5CAUAAAADcG10AAAABmFtb3VudAUAAAAEdW5pdAUAAAADbmlsBAAAAAV3cml0ZQkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAVc2VsbGVyUHVibGljS2V5QmFzZTU4AgAAAAEwCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAABNidWVyUHVibGljS2V5QmFzZTU4BQAAAAZob21lSWQFAAAAA25pbAkBAAAADFNjcmlwdFJlc3VsdAAAAAIFAAAABXdyaXRlBQAAAAh0cmFuc2ZlcgAAAACMV6UK",
"chainId": 84,
"height": 666878,
"spentComplexity": 0
}
View: original | compacted
Prev: FG63uUy3c54JwQS85cG116fBMfRgW5FqLFzwdxLfnimu
Next: GxavBpvWcLG39tha3kpuhZxBVpBePms6v7Tf89JNuodT
Diff:
Old | New | | Differences |
---|
30 | 30 | | else "0" |
---|
31 | 31 | | } |
---|
32 | 32 | | if ((h == "0")) |
---|
33 | | - | then throw("seller homeless") |
---|
| 33 | + | then { |
---|
| 34 | + | let d = WriteSet([DataEntry(c, "N")]) |
---|
| 35 | + | ScriptResult(d, TransferSet(nil)) |
---|
| 36 | + | } |
---|
34 | 37 | | else { |
---|
35 | 38 | | let k = TransferSet([ScriptTransfer(Address(e), f.amount, unit)]) |
---|
36 | 39 | | let d = WriteSet([DataEntry(c, "0"), DataEntry(g, b)]) |
---|
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(a) |
---|
7 | 7 | | func sethome (b) = { |
---|
8 | 8 | | let c = toBase58String(a.callerPublicKey) |
---|
9 | 9 | | let d = WriteSet([DataEntry(c, b)]) |
---|
10 | 10 | | ScriptResult(d, TransferSet(nil)) |
---|
11 | 11 | | } |
---|
12 | 12 | | |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
15 | 15 | | @Callable(a) |
---|
16 | 16 | | func main (e,b) = { |
---|
17 | 17 | | let f = extract(a.payment) |
---|
18 | 18 | | if (isDefined(f.assetId)) |
---|
19 | 19 | | then throw("payment is only waves") |
---|
20 | 20 | | else { |
---|
21 | 21 | | let g = toBase58String(a.callerPublicKey) |
---|
22 | 22 | | let c = toBase58String(e) |
---|
23 | 23 | | let h = { |
---|
24 | 24 | | let i = getString(this, c) |
---|
25 | 25 | | if ($isInstanceOf(i, "String")) |
---|
26 | 26 | | then { |
---|
27 | 27 | | let j = i |
---|
28 | 28 | | j |
---|
29 | 29 | | } |
---|
30 | 30 | | else "0" |
---|
31 | 31 | | } |
---|
32 | 32 | | if ((h == "0")) |
---|
33 | | - | then throw("seller homeless") |
---|
| 33 | + | then { |
---|
| 34 | + | let d = WriteSet([DataEntry(c, "N")]) |
---|
| 35 | + | ScriptResult(d, TransferSet(nil)) |
---|
| 36 | + | } |
---|
34 | 37 | | else { |
---|
35 | 38 | | let k = TransferSet([ScriptTransfer(Address(e), f.amount, unit)]) |
---|
36 | 39 | | let d = WriteSet([DataEntry(c, "0"), DataEntry(g, b)]) |
---|
37 | 40 | | ScriptResult(d, k) |
---|
38 | 41 | | } |
---|
39 | 42 | | } |
---|
40 | 43 | | } |
---|
41 | 44 | | |
---|
42 | 45 | | |
---|