tx · FnQnSg5RcfYwrmNeiQJY3HMmVtbtD9gbLX3ZRA8EhJZZ
3NApHaksvsb9ZLCMrFNmz4AnUpV5EEytdG6: -0.04000000 Waves
2021.04.21 14:35 [1492166] smart account 3NApHaksvsb9ZLCMrFNmz4AnUpV5EEytdG6 > SELF 0.00000000 Waves
{
"type": 13,
"id": "FnQnSg5RcfYwrmNeiQJY3HMmVtbtD9gbLX3ZRA8EhJZZ",
"fee": 4000000,
"feeAssetId": null,
"timestamp": 1619004971399,
"version": 2,
"chainId": 84,
"sender": "3NApHaksvsb9ZLCMrFNmz4AnUpV5EEytdG6",
"senderPublicKey": "G6gPQLsHXcXB4mNCeRfD2nra9dBGiPpeXEKYz1oWTzZ1",
"proofs": [
"5T6x4LbYM3HC4XUsDCV1pdJuJiYyCSy2VkeNLSnxgt1EDQhuapoqQyeWEnrDyoUEacEVrTwUjdL6yjUFzdc2brdu"
],
"script": "base64:AAIEAAAAAAAAAAQIAhIAAAAAAQEAAAATZ2V0RGF0YUZyb21DdXN0b21lcgAAAAIAAAADYWRyAAAAA2tleQQAAAAEZGF0YQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAANhZHIFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAAFAAAABGRhdGEAAAABAAAAAWkBAAAAB2NoZWNrQlQAAAAABAAAAA1rdW5kZW5BZHJlc3NlCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkEAAAACXNlYXJjaEtleQIAAAAWdGVzdEV4Y2VsU21hcnRDb250cmFjdAQAAAAIdGVzdERhdGEJAQAAABNnZXREYXRhRnJvbUN1c3RvbWVyAAAAAgUAAAANa3VuZGVuQWRyZXNzZQUAAAAJc2VhcmNoS2V5AwkBAAAAAiE9AAAAAgUAAAAIdGVzdERhdGECAAAAAAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAAp0ZXN0T3V0cHV0AgAAAAxoYXQgZ2VrbGFwcHQFAAAAA25pbAkAAAIAAAABAgAAACBTbWFydENvbnRyYWN0IGhhdCBuaWNodCBnZWtsYXBwdAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24GAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgYG11aTZg==",
"height": 1492166,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 8odmb9wc9a6y7nSBkyKKqRfLKeRkMGbDYEsMDcS4dojD
Next: 4v5rC1PinuF6fTaezkJr5txRVLeWCe3iTGqdbPfDw4Qj
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | |
---|
5 | | - | |
---|
6 | | - | @Callable(a) |
---|
7 | | - | func checkPH () = { |
---|
8 | | - | let b = addressFromPublicKey(a.callerPublicKey) |
---|
9 | | - | let c = { |
---|
10 | | - | let d = getString(b, "") |
---|
11 | | - | if ($isInstanceOf(d, "String")) |
---|
| 4 | + | func a (b,c) = { |
---|
| 5 | + | let d = { |
---|
| 6 | + | let e = getString(b, c) |
---|
| 7 | + | if ($isInstanceOf(e, "String")) |
---|
12 | 8 | | then { |
---|
13 | | - | let e = d |
---|
14 | | - | e |
---|
| 9 | + | let f = e |
---|
| 10 | + | f |
---|
15 | 11 | | } |
---|
16 | 12 | | else "" |
---|
17 | 13 | | } |
---|
18 | | - | if ((c == "halo")) |
---|
19 | | - | then [ScriptTransfer(b, 1000000, a.feeAssetId)] |
---|
20 | | - | else throw("nothing to see here") |
---|
| 14 | + | d |
---|
21 | 15 | | } |
---|
22 | 16 | | |
---|
23 | 17 | | |
---|
24 | | - | @Verifier(f) |
---|
25 | | - | func g () = { |
---|
26 | | - | let d = f |
---|
27 | | - | if ($isInstanceOf(d, "DataTransaction")) |
---|
| 18 | + | @Callable(g) |
---|
| 19 | + | func checkBT () = { |
---|
| 20 | + | let h = addressFromPublicKey(g.callerPublicKey) |
---|
| 21 | + | let i = "testExcelSmartContract" |
---|
| 22 | + | let j = a(h, i) |
---|
| 23 | + | if ((j != "")) |
---|
| 24 | + | then [StringEntry("testOutput", "hat geklappt")] |
---|
| 25 | + | else throw("SmartContract hat nicht geklappt") |
---|
| 26 | + | } |
---|
| 27 | + | |
---|
| 28 | + | |
---|
| 29 | + | @Verifier(k) |
---|
| 30 | + | func l () = { |
---|
| 31 | + | let e = k |
---|
| 32 | + | if ($isInstanceOf(e, "DataTransaction")) |
---|
28 | 33 | | then true |
---|
29 | | - | else if ($isInstanceOf(d, "SetScriptTransaction")) |
---|
| 34 | + | else if ($isInstanceOf(e, "SetScriptTransaction")) |
---|
30 | 35 | | then true |
---|
31 | 36 | | else true |
---|
32 | 37 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | |
---|
5 | | - | |
---|
6 | | - | @Callable(a) |
---|
7 | | - | func checkPH () = { |
---|
8 | | - | let b = addressFromPublicKey(a.callerPublicKey) |
---|
9 | | - | let c = { |
---|
10 | | - | let d = getString(b, "") |
---|
11 | | - | if ($isInstanceOf(d, "String")) |
---|
| 4 | + | func a (b,c) = { |
---|
| 5 | + | let d = { |
---|
| 6 | + | let e = getString(b, c) |
---|
| 7 | + | if ($isInstanceOf(e, "String")) |
---|
12 | 8 | | then { |
---|
13 | | - | let e = d |
---|
14 | | - | e |
---|
| 9 | + | let f = e |
---|
| 10 | + | f |
---|
15 | 11 | | } |
---|
16 | 12 | | else "" |
---|
17 | 13 | | } |
---|
18 | | - | if ((c == "halo")) |
---|
19 | | - | then [ScriptTransfer(b, 1000000, a.feeAssetId)] |
---|
20 | | - | else throw("nothing to see here") |
---|
| 14 | + | d |
---|
21 | 15 | | } |
---|
22 | 16 | | |
---|
23 | 17 | | |
---|
24 | | - | @Verifier(f) |
---|
25 | | - | func g () = { |
---|
26 | | - | let d = f |
---|
27 | | - | if ($isInstanceOf(d, "DataTransaction")) |
---|
| 18 | + | @Callable(g) |
---|
| 19 | + | func checkBT () = { |
---|
| 20 | + | let h = addressFromPublicKey(g.callerPublicKey) |
---|
| 21 | + | let i = "testExcelSmartContract" |
---|
| 22 | + | let j = a(h, i) |
---|
| 23 | + | if ((j != "")) |
---|
| 24 | + | then [StringEntry("testOutput", "hat geklappt")] |
---|
| 25 | + | else throw("SmartContract hat nicht geklappt") |
---|
| 26 | + | } |
---|
| 27 | + | |
---|
| 28 | + | |
---|
| 29 | + | @Verifier(k) |
---|
| 30 | + | func l () = { |
---|
| 31 | + | let e = k |
---|
| 32 | + | if ($isInstanceOf(e, "DataTransaction")) |
---|
28 | 33 | | then true |
---|
29 | | - | else if ($isInstanceOf(d, "SetScriptTransaction")) |
---|
| 34 | + | else if ($isInstanceOf(e, "SetScriptTransaction")) |
---|
30 | 35 | | then true |
---|
31 | 36 | | else true |
---|
32 | 37 | | } |
---|
33 | 38 | | |
---|