tx · 5Ew8zZ4e5N2JmQ82NB9FYDo2vCNgY7P1DyjiLbMYRwee 3NC9boevS259eTsMAkFAxCPorzK4Z9bpWje: -0.01400000 Waves 2023.01.16 02:48 [2406741] smart account 3NC9boevS259eTsMAkFAxCPorzK4Z9bpWje > SELF 0.00000000 Waves
{ "type": 13, "id": "5Ew8zZ4e5N2JmQ82NB9FYDo2vCNgY7P1DyjiLbMYRwee", "fee": 1400000, "feeAssetId": null, "timestamp": 1673826550599, "version": 2, "chainId": 84, "sender": "3NC9boevS259eTsMAkFAxCPorzK4Z9bpWje", "senderPublicKey": "515tSAyMUbAb8kKjcpGDpqALGfCgcwfWmWKKkcBKTcGB", "proofs": [ "4RafZ3Y73tyXraqjkKg1Rw7oYzGLMWe4NcQcVQgkH9imCVJeM9YFaqPNygCkkUDyajc11kzo3xLqvsMhKrirQmX8" ], "script": "base64:AAIFAAAAAAAAAA4IAhIAEgMKAQgSAwoBAQAAAAAAAAADAAAAAWkBAAAAD3BsYWNlb3B0aW9uQ2FsbAAAAAAEAAAADWNhbGxlcmFkZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAScmVhZF9vcmFjbGVfc3RhdHVzCQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACBQAAAAR0aGlzAgAAAA1vcmFjbGVfc3RhdHVzBAAAABRyZWFkX09wdGlvbkNvdW50ZXJJRAkBAAAAEUBleHRyTmF0aXZlKDEwNTApAAAAAgUAAAAEdGhpcwIAAAAOMW1fY29udHJhY3RfaWQEAAAACmdldGJ0Y2RhdGEJAQAAABFAZXh0ck5hdGl2ZSgxMDUzKQAAAAIFAAAABHRoaXMJAAEsAAAAAgIAAAAHMW1fYnRjXwkAAaQAAAABBQAAABRyZWFkX09wdGlvbkNvdW50ZXJJRAQAAAAGc3dhcExpCQAEtQAAAAIFAAAACmdldGJ0Y2RhdGECAAAAAV8EAAAABXByaWNlCQABkQAAAAIFAAAABnN3YXBMaQAAA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3YXBMaQAAAAAAAAAAAAQAAAAEdGltZQkAAZEAAAACBQAAAAZzd2FwTGkAAAAAAAAAAAEEAAAAC2Jsb2NraGVpZ2h0CQABkQAAAAIFAAAABnN3YXBMaQAAAAAAAAAAAgQAAAADZGl2CQABkQAAAAIFAAAABnN3YXBMaQAAAAAAAAAAAwkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAAVwcmljZQkAAZEAAAACBQAAAAZzd2FwTGkAAAAAAAAAAAAJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAEdGltZQkAAZEAAAACBQAAAAZzd2FwTGkAAAAAAAAAAAEJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAALYmxvY2toZWlnaHQJAAGRAAAAAgUAAAAGc3dhcExpAAAAAAAAAAACCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAA2RpdgkAAZEAAAACBQAAAAZzd2FwTGkAAAAAAAAAAAMFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5d0WXiw==", "height": 2406741, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7zpE3Ese1RkSRtX5zRWaXM4uFudhLTQBrGTkvauGGY6Z Next: CC69LUjxxQ6RUbNx4A6B7vQD4cHJGYsD147B2W3JyPhY Diff:
Old | New | Differences | |
---|---|---|---|
58 | 58 | let A = getStringValue(this, ("1m_btc_" + w)) | |
59 | 59 | let B = split(A, "_") | |
60 | 60 | let C = B[0] | |
61 | - | [StringEntry("Contract_Start_value", v), StringEntry("Contract_End_value", w), StringEntry("Blank1", z), StringEntry("Blank2", C), DeleteEntry(((("Call_Start_End_" + b) + "_") + r)), DeleteEntry(s)] | |
61 | + | let D = (parseIntValue(C) - parseIntValue(z)) | |
62 | + | [StringEntry("Contract_Start_value", v), StringEntry("Contract_End_value", w), StringEntry("Blank1", z), StringEntry("Blank2", C), IntegerEntry("Diff", D), DeleteEntry(((("Call_Start_End_" + b) + "_") + r)), DeleteEntry(s)] | |
62 | 63 | } | |
63 | 64 | ||
64 | 65 | ||
65 | 66 | ||
66 | 67 | @Callable(a) | |
67 | - | func calldata ( | |
68 | - | let e = getStringValue(this, ("1m_btc_" + toString( | |
68 | + | func calldata (E) = { | |
69 | + | let e = getStringValue(this, ("1m_btc_" + toString(E))) | |
69 | 70 | let f = split(e, "_") | |
70 | 71 | let g = f[0] | |
71 | - | let | |
72 | - | let | |
73 | - | let | |
72 | + | let F = f[1] | |
73 | + | let G = f[2] | |
74 | + | let H = f[3] | |
74 | 75 | [StringEntry("price", f[0]), StringEntry("time", f[1]), StringEntry("blockheight", f[2]), StringEntry("div", f[3])] | |
75 | 76 | } | |
76 | 77 | ||
77 | 78 | ||
78 | - | @Verifier( | |
79 | - | func | |
79 | + | @Verifier(I) | |
80 | + | func J () = sigVerify(I.bodyBytes, I.proofs[0], I.senderPublicKey) | |
80 | 81 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(a) | |
7 | 7 | func placeoptionCall () = { | |
8 | 8 | let b = toBase58String(a.caller.bytes) | |
9 | 9 | let c = getStringValue(this, "oracle_status") | |
10 | 10 | let d = getIntegerValue(this, "1m_contract_id") | |
11 | 11 | let e = getStringValue(this, ("1m_btc_" + toString(d))) | |
12 | 12 | let f = split(e, "_") | |
13 | 13 | let g = f[0] | |
14 | 14 | let h = parseIntValue(f[2]) | |
15 | 15 | let i = (height - h) | |
16 | 16 | let j = 1 | |
17 | 17 | let k = (d + j) | |
18 | 18 | let l = { | |
19 | 19 | let m = getInteger(this, "Total_Calls") | |
20 | 20 | if ($isInstanceOf(m, "Int")) | |
21 | 21 | then { | |
22 | 22 | let n = m | |
23 | 23 | n | |
24 | 24 | } | |
25 | 25 | else 0 | |
26 | 26 | } | |
27 | 27 | let o = (l + 1) | |
28 | 28 | let p = { | |
29 | 29 | let m = getInteger(this, (b + "_Total_Calls")) | |
30 | 30 | if ($isInstanceOf(m, "Int")) | |
31 | 31 | then { | |
32 | 32 | let n = m | |
33 | 33 | n | |
34 | 34 | } | |
35 | 35 | else 0 | |
36 | 36 | } | |
37 | 37 | let q = (p + 1) | |
38 | 38 | if ((i > 2)) | |
39 | 39 | then throw("Something Wrong with Oracle or Height is not matched.") | |
40 | 40 | else if ((c == "Close")) | |
41 | 41 | then throw("Oracle is closed. Wait Until Oracle is Turned On.") | |
42 | 42 | else [StringEntry(((("Call_" + b) + "_") + toString(q)), g), StringEntry(((("Call_Start_End_" + b) + "_") + toString(q)), ((toString(d) + "_") + toString(k))), IntegerEntry("Total_Calls", o), IntegerEntry((b + "_Total_Calls"), q)] | |
43 | 43 | } | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | ||
47 | 47 | @Callable(a) | |
48 | 48 | func ClaimCall (r) = { | |
49 | 49 | let b = toBase58String(a.caller.bytes) | |
50 | 50 | let s = getStringValue(this, ((("Call_" + b) + "_") + r)) | |
51 | 51 | let t = getStringValue(this, ((("Call_Start_End_" + b) + "_") + r)) | |
52 | 52 | let u = split(t, "_") | |
53 | 53 | let v = u[0] | |
54 | 54 | let w = u[1] | |
55 | 55 | let x = getStringValue(this, ("1m_btc_" + v)) | |
56 | 56 | let y = split(x, "_") | |
57 | 57 | let z = y[0] | |
58 | 58 | let A = getStringValue(this, ("1m_btc_" + w)) | |
59 | 59 | let B = split(A, "_") | |
60 | 60 | let C = B[0] | |
61 | - | [StringEntry("Contract_Start_value", v), StringEntry("Contract_End_value", w), StringEntry("Blank1", z), StringEntry("Blank2", C), DeleteEntry(((("Call_Start_End_" + b) + "_") + r)), DeleteEntry(s)] | |
61 | + | let D = (parseIntValue(C) - parseIntValue(z)) | |
62 | + | [StringEntry("Contract_Start_value", v), StringEntry("Contract_End_value", w), StringEntry("Blank1", z), StringEntry("Blank2", C), IntegerEntry("Diff", D), DeleteEntry(((("Call_Start_End_" + b) + "_") + r)), DeleteEntry(s)] | |
62 | 63 | } | |
63 | 64 | ||
64 | 65 | ||
65 | 66 | ||
66 | 67 | @Callable(a) | |
67 | - | func calldata ( | |
68 | - | let e = getStringValue(this, ("1m_btc_" + toString( | |
68 | + | func calldata (E) = { | |
69 | + | let e = getStringValue(this, ("1m_btc_" + toString(E))) | |
69 | 70 | let f = split(e, "_") | |
70 | 71 | let g = f[0] | |
71 | - | let | |
72 | - | let | |
73 | - | let | |
72 | + | let F = f[1] | |
73 | + | let G = f[2] | |
74 | + | let H = f[3] | |
74 | 75 | [StringEntry("price", f[0]), StringEntry("time", f[1]), StringEntry("blockheight", f[2]), StringEntry("div", f[3])] | |
75 | 76 | } | |
76 | 77 | ||
77 | 78 | ||
78 | - | @Verifier( | |
79 | - | func | |
79 | + | @Verifier(I) | |
80 | + | func J () = sigVerify(I.bodyBytes, I.proofs[0], I.senderPublicKey) | |
80 | 81 |
github/deemru/w8io/169f3d6 31.01 ms ◑