tx · 2RPBPwYa6dBE13coCnCyBAUUAByyXJHa8CVYQubQCbpe 3MvTsZLYhU4bGijfdULLDAUEiZVryxJVQPJ: -0.01400000 Waves 2023.01.15 17:03 [2406159] smart account 3MvTsZLYhU4bGijfdULLDAUEiZVryxJVQPJ > SELF 0.00000000 Waves
{ "type": 13, "id": "2RPBPwYa6dBE13coCnCyBAUUAByyXJHa8CVYQubQCbpe", "fee": 1400000, "feeAssetId": null, "timestamp": 1673791492664, "version": 2, "chainId": 84, "sender": "3MvTsZLYhU4bGijfdULLDAUEiZVryxJVQPJ", "senderPublicKey": "6hSe4di8vdVexXUoSJQ1unZB3n287fgHNBP7PberpTez", "proofs": [ "FzwZS7H18UMwFguetN7X3fo6wwCewywymGi9qSutepfGY59Xq6T9jcPbieywwvMr16Vz8J6SxrXgkgSMVfwWQva" ], "script": "base64:AAIFAAAAAAAAAAwIAhIDCgEIEgMKAQEAAAAAAAAAAgAAAAFpAQAAAA9wbGFjZW9wdGlvbkNhbGwAAAABAAAAC09wdGlvbkVudHJ5BAAAAA1jYWxsZXJhZGRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAAEnJlYWRfb3JhY2xlX3N0YXR1cwkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgUAAAAEdGhpcwIAAAANb3JhY2xlX3N0YXR1cwQAAAAUcmVhZF9PcHRpb25Db3VudGVySUQJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAABHRoaXMCAAAADjFtX2NvbnRyYWN0X2lkBAAAAApnZXRidGNkYXRhCQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACBQAAAAR0aGlzCQABLAAAAAICAAAABzFtX2J0Y18JAAGkAAAAAQUAAAAUcmVhZF9PcHRpb25Db3VudGVySUQEAAAABnN3YXBMaQkABLUAAAACBQAAAApnZXRidGNkYXRhAgAAAAFfBAAAAAVwcmljZQkAAZEAAAACBQAAAAZzd2FwTGkAAAA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AAAALU3RyaW5nRW50cnkAAAACAgAAAAtibG9ja2hlaWdodAkAAZEAAAACBQAAAAZzd2FwTGkAAAAAAAAAAAIJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAADZGl2CQABkQAAAAIFAAAABnN3YXBMaQAAAAAAAAAAAwUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmGD259", "height": 2406159, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9FEKfEKvne7Mj5Dx1em4GSjYQh2cLu6sd6XfJL7t5NKt Next: HAhwt7mTy5a9Kn66q7xtLDQwz9UusbywTSHdNu3dehdq Diff:
Old | New | Differences | |
---|---|---|---|
38 | 38 | else if ((d == "Close")) | |
39 | 39 | then throw("Oracle is closed. Wait Until Oracle is Turned On.") | |
40 | 40 | else if ((b == "Call")) | |
41 | - | then [StringEntry(c, "Call"), StringEntry((c + "_price"), h), IntegerEntry("Total_Calls", n), IntegerEntry((c + "_Total_Calls | |
41 | + | then [StringEntry(c, "Call"), StringEntry((c + "_price"), h), IntegerEntry("Total_Calls", n), IntegerEntry((c + "_Total_Calls"), p)] | |
42 | 42 | else throw("You can Place only ['Call'] Here.") | |
43 | 43 | } | |
44 | 44 |
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 (b) = { | |
8 | 8 | let c = toBase58String(a.caller.bytes) | |
9 | 9 | let d = getStringValue(this, "oracle_status") | |
10 | 10 | let e = getIntegerValue(this, "1m_contract_id") | |
11 | 11 | let f = getStringValue(this, ("1m_btc_" + toString(e))) | |
12 | 12 | let g = split(f, "_") | |
13 | 13 | let h = g[0] | |
14 | 14 | let i = parseIntValue(g[2]) | |
15 | 15 | let j = (lastBlock.height - i) | |
16 | 16 | let k = { | |
17 | 17 | let l = getInteger(this, "Total_Calls") | |
18 | 18 | if ($isInstanceOf(l, "Int")) | |
19 | 19 | then { | |
20 | 20 | let m = l | |
21 | 21 | m | |
22 | 22 | } | |
23 | 23 | else 0 | |
24 | 24 | } | |
25 | 25 | let n = (k + 1) | |
26 | 26 | let o = { | |
27 | 27 | let l = getInteger(this, (c + "_Total_Calls")) | |
28 | 28 | if ($isInstanceOf(l, "Int")) | |
29 | 29 | then { | |
30 | 30 | let m = l | |
31 | 31 | m | |
32 | 32 | } | |
33 | 33 | else 0 | |
34 | 34 | } | |
35 | 35 | let p = (o + 1) | |
36 | 36 | if ((2 > j)) | |
37 | 37 | then throw("Something Wrong with Oracle or Height is not matched.") | |
38 | 38 | else if ((d == "Close")) | |
39 | 39 | then throw("Oracle is closed. Wait Until Oracle is Turned On.") | |
40 | 40 | else if ((b == "Call")) | |
41 | - | then [StringEntry(c, "Call"), StringEntry((c + "_price"), h), IntegerEntry("Total_Calls", n), IntegerEntry((c + "_Total_Calls | |
41 | + | then [StringEntry(c, "Call"), StringEntry((c + "_price"), h), IntegerEntry("Total_Calls", n), IntegerEntry((c + "_Total_Calls"), p)] | |
42 | 42 | else throw("You can Place only ['Call'] Here.") | |
43 | 43 | } | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | ||
47 | 47 | @Callable(a) | |
48 | 48 | func calldata (q) = { | |
49 | 49 | let f = getStringValue(addressFromPublicKey(base58'6hSe4di8vdVexXUoSJQ1unZB3n287fgHNBP7PberpTez'), ("1m_btc_" + toString(q))) | |
50 | 50 | let g = split(f, "_") | |
51 | 51 | let h = g[0] | |
52 | 52 | let r = g[1] | |
53 | 53 | let s = g[2] | |
54 | 54 | let t = g[3] | |
55 | 55 | [StringEntry("price", g[0]), StringEntry("time", g[1]), StringEntry("blockheight", g[2]), StringEntry("div", g[3])] | |
56 | 56 | } | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | @Verifier(u) | |
60 | 60 | func v () = sigVerify(u.bodyBytes, u.proofs[0], u.senderPublicKey) | |
61 | 61 |
github/deemru/w8io/169f3d6 28.11 ms ◑