tx · Ckjvhmu3PQFYC1hHnL1u6wt5DLWZWbHrayYQj74sT3DJ 3MvTsZLYhU4bGijfdULLDAUEiZVryxJVQPJ: -0.01400000 Waves 2023.01.15 16:13 [2406108] smart account 3MvTsZLYhU4bGijfdULLDAUEiZVryxJVQPJ > SELF 0.00000000 Waves
{ "type": 13, "id": "Ckjvhmu3PQFYC1hHnL1u6wt5DLWZWbHrayYQj74sT3DJ", "fee": 1400000, "feeAssetId": null, "timestamp": 1673788531590, "version": 2, "chainId": 84, "sender": "3MvTsZLYhU4bGijfdULLDAUEiZVryxJVQPJ", "senderPublicKey": "6hSe4di8vdVexXUoSJQ1unZB3n287fgHNBP7PberpTez", "proofs": [ "qhXrKjQKtE4AMUdh8gquZGPeaUAupAd9ehZfCvwg3VuQU71Fq5hge9EAqpBQ4s4ty872FNzju6VN2ZeHfUHNze1" ], "script": "base64:AAIFAAAAAAAAAAwIAhIDCgEIEgMKAQEAAAAAAAAAAgAAAAFpAQAAAAtwbGFjZW9wdGlvbgAAAAEAAAALT3B0aW9uRW50cnkEAAAADWNhbGxlcmFkZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAScmVhZF9vcmFjbGVfc3RhdHVzCQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACBQAAAAR0aGlzAgAAAA1vcmFjbGVfc3RhdHVzBAAAABRyZWFkX09wdGlvbkNvdW50ZXJJRAkBAAAAEUBleHRyTmF0aXZlKDEwNTApAAAAAgUAAAAEdGhpcwIAAAAOMW1fY29udHJhY3RfaWQEAAAACmdldGJ0Y2RhdGEJAQAAABFAZXh0ck5hdGl2ZSgxMDUzKQAAAAIFAAAABHRoaXMCAAAADjFtX2NvbnRyYWN0X2lkBAAAAAZzd2FwTGkJAAS1AAAAAgUAAAAKZ2V0YnRjZGF0YQIAAAABXwQAAAAFcHJpY2UJAAGRAAAAAgUAAAAGc3dhcExpAAAAAAAAAAAAAwkAAAAAAAACBQAAABJyZ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zd2FwTGkAAAAAAAAAAAIEAAAAA2RpdgkAAZEAAAACBQAAAAZzd2FwTGkAAAAAAAAAAAMJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAFcHJpY2UJAAGRAAAAAgUAAAAGc3dhcExpAAAAAAAAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABHRpbWUJAAGRAAAAAgUAAAAGc3dhcExpAAAAAAAAAAABCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAC2Jsb2NraGVpZ2h0CQABkQAAAAIFAAAABnN3YXBMaQAAAAAAAAAAAgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAANkaXYJAAGRAAAAAgUAAAAGc3dhcExpAAAAAAAAAAADBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleczU6Ho=", "height": 2406108, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GUA8BJSJetQQ6rKewFNnnRpDLZk9HbwXqfKbssR3tnVk Next: 2WQN1RMUApm6AC9riECpLtoALXkD1DWV6b4VMJGtK9wr Diff:
Old | New | Differences | |
---|---|---|---|
7 | 7 | func placeoption (b) = { | |
8 | 8 | let c = toBase58String(a.caller.bytes) | |
9 | 9 | let d = getStringValue(this, "oracle_status") | |
10 | - | let e = | |
10 | + | let e = getIntegerValue(this, "1m_contract_id") | |
11 | 11 | let f = getStringValue(this, "1m_contract_id") | |
12 | 12 | let g = split(f, "_") | |
13 | 13 | let h = g[0] |
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 placeoption (b) = { | |
8 | 8 | let c = toBase58String(a.caller.bytes) | |
9 | 9 | let d = getStringValue(this, "oracle_status") | |
10 | - | let e = | |
10 | + | let e = getIntegerValue(this, "1m_contract_id") | |
11 | 11 | let f = getStringValue(this, "1m_contract_id") | |
12 | 12 | let g = split(f, "_") | |
13 | 13 | let h = g[0] | |
14 | 14 | if ((d == "Close")) | |
15 | 15 | then throw("Oracle is closed.Wait Until Oracle is Turned On.") | |
16 | 16 | else if ((b == "Call")) | |
17 | 17 | then [StringEntry(c, "Call"), StringEntry((c + "_price"), h)] | |
18 | 18 | else if ((b == "Put")) | |
19 | 19 | then [StringEntry(c, "Put"), StringEntry((c + "_price"), h)] | |
20 | 20 | else throw("You can Place only Either ['Call'] or ['Put']") | |
21 | 21 | } | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | ||
25 | 25 | @Callable(a) | |
26 | 26 | func calldata (i) = { | |
27 | 27 | let f = getStringValue(addressFromPublicKey(base58'6hSe4di8vdVexXUoSJQ1unZB3n287fgHNBP7PberpTez'), ("1m_btc_" + toString(i))) | |
28 | 28 | let g = split(f, "_") | |
29 | 29 | let h = g[0] | |
30 | 30 | let j = g[1] | |
31 | 31 | let k = g[2] | |
32 | 32 | let l = g[3] | |
33 | 33 | [StringEntry("price", g[0]), StringEntry("time", g[1]), StringEntry("blockheight", g[2]), StringEntry("div", g[3])] | |
34 | 34 | } | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | @Verifier(m) | |
38 | 38 | func n () = sigVerify(m.bodyBytes, m.proofs[0], m.senderPublicKey) | |
39 | 39 |
github/deemru/w8io/169f3d6 45.08 ms ◑