Skip to content

Commit

Permalink
Initial version for hex
Browse files Browse the repository at this point in the history
  • Loading branch information
caike committed Feb 13, 2024
1 parent 39d1bb3 commit 0ae9af5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions examples/state_query_client.ex
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,14 @@ defmodule StateQueryClient do
use Xogmios, :state_query
alias Xogmios.StateQuery

@spec start_link(keyword()) :: {:ok, pid()} | {:error, any()}
def start_link(opts) do
Xogmios.start_state_link(__MODULE__, opts)
end

@spec get_current_epoch(pid() | atom()) :: {:ok, map()} | {:error, map()}
def get_current_epoch(pid \\ __MODULE__) do
StateQuery.send_query(pid, :get_current_epoch)
end

@spec get_era_start(pid() | atom()) :: {:ok, map()} | {:error, map()}
def get_era_start(pid \\ __MODULE__) do
StateQuery.send_query(pid, :get_era_start)
end
Expand Down
4 changes: 2 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ defmodule Xogmios.MixProject do
use Mix.Project

@source_url "https://github.com/wowica/xogmios"
@version "0.0.1"
@version "0.1.0"

def project do
[
Expand All @@ -16,7 +16,6 @@ defmodule Xogmios.MixProject do
test_coverage: [
ignore_modules: [
~r/\.TestRouter/,
~r/\.TestConnection/,
~r/\.TestHandler/,
~r/\.TestServer/,
ChainSyncClient,
Expand Down Expand Up @@ -55,6 +54,7 @@ defmodule Xogmios.MixProject do

defp package do
[
description: "An Elixir client for Ogmios",
maintainers: ["Carlos Souza"],
links: %{"GitHub" => @source_url}
]
Expand Down

0 comments on commit 0ae9af5

Please sign in to comment.