generated from kommitters/.template
-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9902a38
commit a49fb01
Showing
9 changed files
with
124 additions
and
236 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,12 @@ | ||
defmodule Kadena.Chainweb.Pact do | ||
@moduledoc """ | ||
<<<<<<< HEAD | ||
Exposes functions to interact with the Pact API endpoints. | ||
""" | ||
|
||
alias Kadena.Chainweb.Pact.Send | ||
alias Kadena.Chainweb.Pact.{Local, Send} | ||
|
||
@default_network_opts [network_id: :testnet04, chain_id: 0] | ||
|
||
defdelegate send(cmds, network_opts \\ @default_network_opts), to: Send, as: :process | ||
======= | ||
Specifies the API for processing HTTP requests. | ||
""" | ||
alias Kadena.Chainweb.Pact.Local | ||
defdelegate local(request, network \\ :testnet04, chain_id \\ "0"), to: Local, as: :process | ||
|
||
# defdelegate send(request, network \\ :test, chain_id \\ "0"), to: Send, as: :process | ||
# defdelegate poll(request, network \\ :test, chain_id \\ "0"), to: Poll, as: :process | ||
# defdelegate listen(request, network \\ :test, chain_id \\ "0"), to: Listen, as: :process | ||
# defdelegate spv(request, network \\ :test, chain_id \\ "0"), to: SPV, as: :process | ||
>>>>>>> 40795f4 (Add local endpoitn and PACT API) | ||
defdelegate local(cmds, network_opts \\ @default_network_opts), to: Local, as: :process | ||
end |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.