-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: construction derive staking support (#207)
* feat: add staking_credential and address_type in ConstructionDeriveRequest * refactor: move staking_credential and address_type into metadata of ConstructionDeriveRequest * feat: add invalid address type error * feat: add metadata validation in construction derive controller * refactor: generatePayload parameters in construction derive tests * test: construction derive with invalid staking key * refactor: exclude enum for address type in openApi * test: construction derive with invalid address type * test: construction derive for Base and Reward addresses * feat: construction derive Base and Reward address support * test: construction derive validation for staking key size * test: construction derive reward address correct bech32 address * fix: correct address prefix for reward address creation * refactor: move UTxOAddressTypes enum to constants file * refactor: rename UTxOAddressType and make Enterprise default value * refactor: add comment for staking address prefix * test: add comments to construction derive tests * refactor: use proper error for invalid staking key * test: construction derive error when no staking key for base address * feat: missing staking key validation for base address generation * refactor: rename AddressType * refactor: address type description in openApi Refs #198
- Loading branch information
1 parent
2240d9e
commit 0d8250a
Showing
9 changed files
with
332 additions
and
55 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
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 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
Oops, something went wrong.