tx · 7iBxHL8khf2ypaiaMh4zkyvYnMUtPSpGDxf5KzV15gS3

3MvTsZLYhU4bGijfdULLDAUEiZVryxJVQPJ:  -0.01400000 Waves

2023.01.15 18:13 [2406226] smart account 3MvTsZLYhU4bGijfdULLDAUEiZVryxJVQPJ > SELF 0.00000000 Waves

{ "type": 13, "id": "7iBxHL8khf2ypaiaMh4zkyvYnMUtPSpGDxf5KzV15gS3", "fee": 1400000, "feeAssetId": null, "timestamp": 1673795647622, "version": 2, "chainId": 84, "sender": "3MvTsZLYhU4bGijfdULLDAUEiZVryxJVQPJ", "senderPublicKey": "6hSe4di8vdVexXUoSJQ1unZB3n287fgHNBP7PberpTez", "proofs": [ "4J2SBR3tb4HPFHt4mmLaZQfNMC1svSCb2hm1apNaMyfBre6GHgEVFyhvABej6VXqC8d42yK71Em8reCokYbmhCqc" ], "script": "base64:AAIFAAAAAAAAAA4IAhIAEgMKAQESAwoBAQAAAAAAAAADAAAAAWkBAAAAD3BsYWNlb3B0aW9uQ2FsbAAAAAAEAAAADWNhbGxlcmFkZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAScmVhZF9vcmFjbGVfc3RhdHVzCQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACBQAAAAR0aGlzAgAAAA1vcmFjbGVfc3RhdHVzBAAAABRyZWFkX09wdGlvbkNvdW50ZXJJRAkBAAAAEUBleHRyTmF0aXZlKDEwNTApAAAAAgUAAAAEdGhpcwIAAAAOMW1fY29udHJhY3RfaWQEAAAACmdldGJ0Y2RhdGEJAQAAABFAZXh0ck5hdGl2ZSgxMDUzKQAAAAIFAAAABHRoaXMJAAEsAAAAAgIAAAAHMW1fYnRjXwkAAaQAAAABBQAAABRyZWFkX09wdGlvbkNvdW50ZXJJRAQAAAAGc3dhcExpCQAEtQAAAAIFAAAACmdldGJ0Y2RhdGECAAAAAV8EAAAABXByaWNlCQABkQAAAAIFAAAABnN3YXBMaQAAAAAAAA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AAACBQAAAAZzd2FwTGkAAAAAAAAAAAAJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAEdGltZQkAAZEAAAACBQAAAAZzd2FwTGkAAAAAAAAAAAEJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAALYmxvY2toZWlnaHQJAAGRAAAAAgUAAAAGc3dhcExpAAAAAAAAAAACCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAA2RpdgkAAZEAAAACBQAAAAZzd2FwTGkAAAAAAAAAAAMFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5Yob+1w==", "height": 2406226, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 29AwsDPaMD4wpFVof2piAYVx8R1Rv9SLweG3VLCdVav9 Next: 4wo6k2X7BjJZ795zdtZ5NPnUdgYYMx8YpzU8ayA72pRe Diff:
OldNewDifferences
4444
4545
4646 @Callable(a)
47-func calldata (q) = {
48- let e = getStringValue(addressFromPublicKey(base58'6hSe4di8vdVexXUoSJQ1unZB3n287fgHNBP7PberpTez'), ("1m_btc_" + toString(q)))
47+func ClaimCall (q) = {
48+ let b = toBase58String(a.caller.bytes)
49+ let r = getStringValue(this, ((("Call_Start_End_" + b) + "_") + toString(q)))
50+ let s = split(r, "_")
51+ let t = s[0]
52+ let e = getStringValue(addressFromPublicKey(base58'6hSe4di8vdVexXUoSJQ1unZB3n287fgHNBP7PberpTez'), ("1m_btc_" + t))
53+[DeleteEntry(((("Call_Start_End_" + b) + "_") + toString(q))), DeleteEntry(((("Call_" + b) + "_") + toString(q)))]
54+ }
55+
56+
57+
58+@Callable(a)
59+func calldata (u) = {
60+ let e = getStringValue(addressFromPublicKey(base58'6hSe4di8vdVexXUoSJQ1unZB3n287fgHNBP7PberpTez'), ("1m_btc_" + toString(u)))
4961 let f = split(e, "_")
5062 let g = f[0]
51- let r = f[1]
52- let s = f[2]
53- let t = f[3]
63+ let v = f[1]
64+ let w = f[2]
65+ let x = f[3]
5466 [StringEntry("price", f[0]), StringEntry("time", f[1]), StringEntry("blockheight", f[2]), StringEntry("div", f[3])]
5567 }
5668
5769
58-@Verifier(u)
59-func v () = sigVerify(u.bodyBytes, u.proofs[0], u.senderPublicKey)
70+@Verifier(y)
71+func z () = sigVerify(y.bodyBytes, y.proofs[0], y.senderPublicKey)
6072
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func placeoptionCall () = {
88 let b = toBase58String(a.caller.bytes)
99 let c = getStringValue(this, "oracle_status")
1010 let d = getIntegerValue(this, "1m_contract_id")
1111 let e = getStringValue(this, ("1m_btc_" + toString(d)))
1212 let f = split(e, "_")
1313 let g = f[0]
1414 let h = parseIntValue(f[2])
1515 let i = (height - h)
1616 let j = (d + 15)
1717 let k = {
1818 let l = getInteger(this, "Total_Calls")
1919 if ($isInstanceOf(l, "Int"))
2020 then {
2121 let m = l
2222 m
2323 }
2424 else 0
2525 }
2626 let n = (k + 1)
2727 let o = {
2828 let l = getInteger(this, (b + "_Total_Calls"))
2929 if ($isInstanceOf(l, "Int"))
3030 then {
3131 let m = l
3232 m
3333 }
3434 else 0
3535 }
3636 let p = (o + 1)
3737 if ((i > 2))
3838 then throw("Something Wrong with Oracle or Height is not matched.")
3939 else if ((c == "Close"))
4040 then throw("Oracle is closed. Wait Until Oracle is Turned On.")
4141 else [StringEntry(((("Call_" + b) + "_") + toString(p)), g), StringEntry(((("Call_Start_End_" + b) + "_") + toString(p)), ((toString(d) + "_") + toString(j))), IntegerEntry("Total_Calls", n), IntegerEntry((b + "_Total_Calls"), p)]
4242 }
4343
4444
4545
4646 @Callable(a)
47-func calldata (q) = {
48- let e = getStringValue(addressFromPublicKey(base58'6hSe4di8vdVexXUoSJQ1unZB3n287fgHNBP7PberpTez'), ("1m_btc_" + toString(q)))
47+func ClaimCall (q) = {
48+ let b = toBase58String(a.caller.bytes)
49+ let r = getStringValue(this, ((("Call_Start_End_" + b) + "_") + toString(q)))
50+ let s = split(r, "_")
51+ let t = s[0]
52+ let e = getStringValue(addressFromPublicKey(base58'6hSe4di8vdVexXUoSJQ1unZB3n287fgHNBP7PberpTez'), ("1m_btc_" + t))
53+[DeleteEntry(((("Call_Start_End_" + b) + "_") + toString(q))), DeleteEntry(((("Call_" + b) + "_") + toString(q)))]
54+ }
55+
56+
57+
58+@Callable(a)
59+func calldata (u) = {
60+ let e = getStringValue(addressFromPublicKey(base58'6hSe4di8vdVexXUoSJQ1unZB3n287fgHNBP7PberpTez'), ("1m_btc_" + toString(u)))
4961 let f = split(e, "_")
5062 let g = f[0]
51- let r = f[1]
52- let s = f[2]
53- let t = f[3]
63+ let v = f[1]
64+ let w = f[2]
65+ let x = f[3]
5466 [StringEntry("price", f[0]), StringEntry("time", f[1]), StringEntry("blockheight", f[2]), StringEntry("div", f[3])]
5567 }
5668
5769
58-@Verifier(u)
59-func v () = sigVerify(u.bodyBytes, u.proofs[0], u.senderPublicKey)
70+@Verifier(y)
71+func z () = sigVerify(y.bodyBytes, y.proofs[0], y.senderPublicKey)
6072

github/deemru/w8io/169f3d6 
25.20 ms