tx · 88goykMfZkvVJ6peNwC8jPaQyuHKzcEpHYLqw39eMimj
3Moz6HJhucpFh4V3VScXhd9efei4Curytfj: -0.01000000 Waves
2023.11.23 19:55 [2856297] smart account 3Moz6HJhucpFh4V3VScXhd9efei4Curytfj > SELF 0.00000000 Waves
{
"type": 13,
"id": "88goykMfZkvVJ6peNwC8jPaQyuHKzcEpHYLqw39eMimj",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1700758534248,
"version": 2,
"chainId": 84,
"sender": "3Moz6HJhucpFh4V3VScXhd9efei4Curytfj",
"senderPublicKey": "Ec1VLg3r1E7mwHmaNidmoKrFAUJ55UVJFq3J1YKRy5Zm",
"proofs": [
"2wv367NXJ74ACW6EZ1wRKquzyNxMZzPpRGi3KFp9TDwmD9BYZackoAYg2cFoVpu51CzWZPAPwYutcpT1nADx1thY"
],
"script": "base64:BgIECAISAAMABEpzb24CJnsndGVzdDEnOiAndmFsdWUxJywgJ3Rlc3QyJzogJ3ZhbHVlMid9AQtyZW1vdmVNYXJrcwELbWFya3NTdHJpbmcEAWEJALACAgULbWFya3NTdHJpbmcAAQQBYgkAswICBQFhAAEFAWIBCXBhcnNlSnNvbgEEanNvbgQMbW9kaWZpZWRKc29uCQCwAgIFBGpzb24AAQQNbW9kaWZpZWRKc29uMgkAswICBQxtb2RpZmllZEpzb24AAQQGc3BsaXQxCQC1CQIFDW1vZGlmaWVkSnNvbjICASwECWtleVZhbHVlMQkAtQkCCQCRAwIFBnNwbGl0MQAAAgE6BARrZXkxCQELcmVtb3ZlTWFya3MBCQCRAwIFCWtleVZhbHVlMQAABAZ2YWx1ZTEJAQtyZW1vdmVNYXJrcwEJAJEDAgUJa2V5VmFsdWUxAAEECWtleVZhbHVlMgkAtQkCCQCRAwIFBnNwbGl0MQABAgE6BARrZXkyCQELcmVtb3ZlTWFya3MBCQCRAwIFCWtleVZhbHVlMgAABAZ2YWx1ZTIJAQtyZW1vdmVNYXJrcwEJAJEDAgUJa2V5VmFsdWUyAAEJAJQKAgUGdmFsdWUxBQZ2YWx1ZTIBAWkBBGNhbGwABARkYXBwCQDZBAECIzNONzNkY3YyamtUb2JkUTlUUkxTWDRQdHZxSGJqc2lLeGlQBAZ2YWx1ZXMJAQlwYXJzZUpzb24BBQRKc29uBAF6CQD8BwQJAQdBZGRyZXNzAQUEZGFwcAIEY2FsbAUDbmlsBQNuaWwDCQECIT0CBQF6BQF6CQACAQITU29tZXRoaW5nIHdlbnQgd3JvbgkAzAgCCQELU3RyaW5nRW50cnkCAgVUZXN0MwIFVGVzdDQJAMwIAgkBC1N0cmluZ0VudHJ5AgIFVGVzdDQCBVRlc3Q1CQDMCAIJAQtTdHJpbmdFbnRyeQICBHZhbDEIBQZ2YWx1ZXMCXzEJAMwIAgkBC1N0cmluZ0VudHJ5AgIFVGVzdDQIBQZ2YWx1ZXMCXzIFA25pbAECdHgBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXn5XoJV",
"height": 2856297,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: EPnGs6itYQfqq8bkYaNkFJTRpnaVerVUtmSLuns7qU2C
Next: 9LTzksHGKhREzZ9YHHzFksMW8t6JTqutH6hxSzHnKvV
Diff:
Old | New | | Differences |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let Json = "{'test1': 'value1', 'test2': 'value2'}" |
---|
| 5 | + | |
---|
| 6 | + | func removeMarks (marksString) = { |
---|
| 7 | + | let a = drop(marksString, 1) |
---|
| 8 | + | let b = dropRight(a, 1) |
---|
| 9 | + | b |
---|
| 10 | + | } |
---|
| 11 | + | |
---|
5 | 12 | | |
---|
6 | 13 | | func parseJson (json) = { |
---|
7 | 14 | | let modifiedJson = drop(json, 1) |
---|
8 | 15 | | let modifiedJson2 = dropRight(modifiedJson, 1) |
---|
9 | 16 | | let split1 = split(modifiedJson2, ",") |
---|
10 | 17 | | let keyValue1 = split(split1[0], ":") |
---|
11 | | - | let key1 = keyValue1[0] |
---|
12 | | - | let value1 = keyValue1[1] |
---|
| 18 | + | let key1 = removeMarks(keyValue1[0]) |
---|
| 19 | + | let value1 = removeMarks(keyValue1[1]) |
---|
13 | 20 | | let keyValue2 = split(split1[1], ":") |
---|
14 | | - | let key2 = keyValue2[0] |
---|
15 | | - | let value2 = keyValue2[1] |
---|
| 21 | + | let key2 = removeMarks(keyValue2[0]) |
---|
| 22 | + | let value2 = removeMarks(keyValue2[1]) |
---|
16 | 23 | | $Tuple2(value1, value2) |
---|
17 | 24 | | } |
---|
18 | 25 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let Json = "{'test1': 'value1', 'test2': 'value2'}" |
---|
| 5 | + | |
---|
| 6 | + | func removeMarks (marksString) = { |
---|
| 7 | + | let a = drop(marksString, 1) |
---|
| 8 | + | let b = dropRight(a, 1) |
---|
| 9 | + | b |
---|
| 10 | + | } |
---|
| 11 | + | |
---|
5 | 12 | | |
---|
6 | 13 | | func parseJson (json) = { |
---|
7 | 14 | | let modifiedJson = drop(json, 1) |
---|
8 | 15 | | let modifiedJson2 = dropRight(modifiedJson, 1) |
---|
9 | 16 | | let split1 = split(modifiedJson2, ",") |
---|
10 | 17 | | let keyValue1 = split(split1[0], ":") |
---|
11 | | - | let key1 = keyValue1[0] |
---|
12 | | - | let value1 = keyValue1[1] |
---|
| 18 | + | let key1 = removeMarks(keyValue1[0]) |
---|
| 19 | + | let value1 = removeMarks(keyValue1[1]) |
---|
13 | 20 | | let keyValue2 = split(split1[1], ":") |
---|
14 | | - | let key2 = keyValue2[0] |
---|
15 | | - | let value2 = keyValue2[1] |
---|
| 21 | + | let key2 = removeMarks(keyValue2[0]) |
---|
| 22 | + | let value2 = removeMarks(keyValue2[1]) |
---|
16 | 23 | | $Tuple2(value1, value2) |
---|
17 | 24 | | } |
---|
18 | 25 | | |
---|
19 | 26 | | |
---|
20 | 27 | | @Callable(i) |
---|
21 | 28 | | func call () = { |
---|
22 | 29 | | let dapp = fromBase58String("3N73dcv2jkTobdQ9TRLSX4PtvqHbjsiKxiP") |
---|
23 | 30 | | let values = parseJson(Json) |
---|
24 | 31 | | let z = invoke(Address(dapp), "call", nil, nil) |
---|
25 | 32 | | if ((z != z)) |
---|
26 | 33 | | then throw("Something went wron") |
---|
27 | 34 | | else [StringEntry("Test3", "Test4"), StringEntry("Test4", "Test5"), StringEntry("val1", values._1), StringEntry("Test4", values._2)] |
---|
28 | 35 | | } |
---|
29 | 36 | | |
---|
30 | 37 | | |
---|
31 | 38 | | @Verifier(tx) |
---|
32 | 39 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
33 | 40 | | |
---|