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.
Merge pull request #148 from kommitters/v0.8
Release v0.8.0
- Loading branch information
Showing
10 changed files
with
1,179 additions
and
31 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,49 +1,55 @@ | ||
# Changelog | ||
|
||
## 0.8.0 (30.11.2022) | ||
|
||
- Added [PACT Command Behaviour](https://github.com/kommitters/kadena.ex/issues/132) | ||
- Added [Execution Command](https://github.com/kommitters/kadena.ex/issues/134) | ||
- [Refactor ExecCommand and Types.KeyPair ](https://github.com/kommitters/kadena.ex/pull/147) | ||
|
||
## 0.7.0 (09.11.2022) | ||
|
||
* Added JSONPayload protocol | ||
* Implemented JSONPayload protocol in [LocalRequestBody](https://github.com/kommitters/kadena.ex/issues/119) | ||
* Implemented JSONPayload protocol in [SendRequestBody](https://github.com/kommitters/kadena.ex/issues/117) | ||
* Implemented JSONPayload protocol in [PollRequestBody](https://github.com/kommitters/kadena.ex/issues/123) | ||
* Implemented JSONPayload protocol in [ListenRequestBody](https://github.com/kommitters/kadena.ex/issues/124) | ||
* Implemented JSONPayload protocol in [SPVRequestBody](https://github.com/kommitters/kadena.ex/issues/125) | ||
- Added JSONPayload protocol | ||
- Implemented JSONPayload protocol in [LocalRequestBody](https://github.com/kommitters/kadena.ex/issues/119) | ||
- Implemented JSONPayload protocol in [SendRequestBody](https://github.com/kommitters/kadena.ex/issues/117) | ||
- Implemented JSONPayload protocol in [PollRequestBody](https://github.com/kommitters/kadena.ex/issues/123) | ||
- Implemented JSONPayload protocol in [ListenRequestBody](https://github.com/kommitters/kadena.ex/issues/124) | ||
- Implemented JSONPayload protocol in [SPVRequestBody](https://github.com/kommitters/kadena.ex/issues/125) | ||
|
||
## 0.6.1 (27.10.2022) | ||
|
||
* Bump ossf/scorecard-action to v2.0.6 | ||
- Bump ossf/scorecard-action to v2.0.6 | ||
|
||
## 0.6.0 (26.10.2022) | ||
|
||
* Added [Kadena Chainweb Client](https://github.com/kommitters/kadena.ex/issues/59) functions | ||
* Added [Chainweb Pact Behaviour](https://github.com/kommitters/kadena.ex/issues/96) | ||
* Added [Error struct](https://github.com/kommitters/kadena.ex/pull/111) for the `Chainweb.Client` boundary | ||
- Added [Kadena Chainweb Client](https://github.com/kommitters/kadena.ex/issues/59) functions | ||
- Added [Chainweb Pact Behaviour](https://github.com/kommitters/kadena.ex/issues/96) | ||
- Added [Error struct](https://github.com/kommitters/kadena.ex/pull/111) for the `Chainweb.Client` boundary | ||
|
||
## 0.5.0 (21.10.2022) | ||
|
||
* Added [Kadena Pact](https://github.com/kommitters/kadena.ex/issues/55) functions | ||
- Added [Kadena Pact](https://github.com/kommitters/kadena.ex/issues/55) functions | ||
|
||
## 0.4.0 (17.10.2022) | ||
|
||
* Added [Kadena Crypto](https://github.com/kommitters/kadena.ex/issues/51) functions | ||
- Added [Kadena Crypto](https://github.com/kommitters/kadena.ex/issues/51) functions | ||
|
||
## 0.3.0 (13.10.2022) | ||
|
||
We finished the implementation of initial types on the `Kadena.Types` boundary. | ||
|
||
* Added [PactCommand types](https://github.com/kommitters/kadena.ex/issues/13) | ||
* Added [PactAPI types](https://github.com/kommitters/kadena.ex/issues/17) | ||
* Added [SignCommand types](https://github.com/kommitters/kadena.ex/issues/18) | ||
- Added [PactCommand types](https://github.com/kommitters/kadena.ex/issues/13) | ||
- Added [PactAPI types](https://github.com/kommitters/kadena.ex/issues/17) | ||
- Added [SignCommand types](https://github.com/kommitters/kadena.ex/issues/18) | ||
|
||
## 0.2.0 (11.10.2022) | ||
|
||
We started the implementation of initial types on the `Kadena.Types` boundary. | ||
|
||
* Added [Base types](https://github.com/kommitters/kadena.ex/issues/11) | ||
* Added [PactValue types](https://github.com/kommitters/kadena.ex/issues/15) | ||
* Added [SignCommand types](https://github.com/kommitters/kadena.ex/issues/16) | ||
* Added [KeyPair types](https://github.com/kommitters/kadena.ex/issues/12) | ||
- Added [Base types](https://github.com/kommitters/kadena.ex/issues/11) | ||
- Added [PactValue types](https://github.com/kommitters/kadena.ex/issues/15) | ||
- Added [SignCommand types](https://github.com/kommitters/kadena.ex/issues/16) | ||
- Added [KeyPair types](https://github.com/kommitters/kadena.ex/issues/12) | ||
|
||
## 0.1.0 (08.09.2022) | ||
|
||
* Initial release | ||
- Initial release |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
defmodule Kadena.Pact.Command do | ||
@moduledoc """ | ||
Specifies contracts to build PACT command requests. | ||
""" | ||
|
||
alias Kadena.Pact.ExecCommand | ||
alias Kadena.Types.{ChainID, Command, KeyPair, MetaData, NetworkID, Signer, SignersList} | ||
|
||
@type cmd :: Command.t() | ||
@type network_id :: NetworkID.t() | ||
@type chain_id :: ChainID.t() | ||
@type cont_request :: struct() | ||
@type exec_request :: ExecCommand.t() | ||
@type cmd_request :: cont_request() | exec_request() | ||
|
||
@type string_value :: String.t() | ||
@type meta_data :: MetaData.t() | ||
@type keypair :: KeyPair.t() | ||
@type keypairs_list :: list(keypair()) | ||
@type signer :: Signer.t() | ||
@type signers_list :: list(signer()) | SignersList.t() | ||
@type hash :: String.t() | ||
|
||
@callback new() :: cmd_request() | ||
@callback set_network(cmd :: cmd_request(), network :: atom()) :: cmd_request() | ||
@callback set_data(cmd :: cmd_request(), data :: map()) :: cmd_request() | ||
@callback set_nonce(cmd :: cmd_request(), nonce :: string_value()) :: cmd_request() | ||
@callback set_metadata(cmd :: cmd_request(), meta_data :: meta_data()) :: cmd_request() | ||
@callback add_keypair(cmd :: cmd_request(), keypair :: keypair()) :: cmd_request() | ||
@callback add_keypairs(cmd :: cmd_request(), keypairs :: keypairs_list()) :: cmd_request() | ||
@callback add_signer(cmd :: cmd_request(), signer :: signer()) :: cmd_request() | ||
@callback add_signers(cmd :: cmd_request(), signers :: signers_list()) :: cmd_request() | ||
@callback set_code(cmd :: exec_request(), code :: string_value()) :: exec_request() | ||
@callback set_pact_tx_hash(cmd :: cont_request(), hash :: hash()) :: cont_request() | ||
@callback set_step(cmd :: cont_request(), step :: integer()) :: cont_request() | ||
@callback set_proof(cmd :: cont_request(), proof :: string_value()) :: cont_request() | ||
@callback set_rollback(cmd :: cont_request(), rollback :: boolean()) :: cont_request() | ||
@callback build(cmd :: cmd_request()) :: cmd() | ||
|
||
@optional_callbacks set_code: 2, | ||
set_pact_tx_hash: 2, | ||
set_step: 2, | ||
set_proof: 2, | ||
set_rollback: 2 | ||
end |
Oops, something went wrong.