View Source Kadena.Chainweb.Pact.Spec behaviour (Kadena v0.19.1)
Specifies the contracts to build the Pact's endpoints.
Link to this section Summary
Link to this section Types
@type chain_id() :: 0..19 | String.t()
@type data() :: [Kadena.Types.Command.t()] | Kadena.Types.Command.t() | [String.t()] | String.t() | Keyword.t()
@type error() :: {:error, Kadena.Chainweb.Error.t()}
Link to this section Callbacks
@callback process(data :: data(), network_opts :: network_opts()) :: {:ok, response()} | error()