Skip to content

Commit

Permalink
code review adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
paweljakubas committed Jul 18, 2023
1 parent fd2f3a0 commit 79c6ec7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/wallet/api/http/Cardano/Wallet/Api.hs
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ type ListTransactions n = "wallets"
:> QueryParam "end" Iso8601Time
:> QueryParam "order" (ApiT SortOrder)
:> QueryParam "max_count" ApiLimit
:> QueryParam "addressId" (ApiAddressIdT n)
:> QueryParam "address" (ApiAddressIdT n)
:> QueryFlag "simple-metadata"
:> Get '[JSON] [ApiTransactionT n]

Expand Down Expand Up @@ -925,7 +925,7 @@ type ListByronTransactions n = "byron-wallets"
:> QueryParam "end" Iso8601Time
:> QueryParam "order" (ApiT SortOrder)
:> QueryParam "max_count" ApiLimit
:> QueryParam "addressId" (ApiAddressIdT n)
:> QueryParam "address" (ApiAddressIdT n)
:> Get '[JSON] [ApiTransactionT n]

-- | https://cardano-foundation.github.io/cardano-wallet/api/#operation/getByronTransaction
Expand Down Expand Up @@ -1190,7 +1190,7 @@ type ListSharedTransactions n = "shared-wallets"
:> QueryParam "end" Iso8601Time
:> QueryParam "order" (ApiT SortOrder)
:> QueryParam "max_count" ApiLimit
:> QueryParam "addressId" (ApiAddressIdT n)
:> QueryParam "address" (ApiAddressIdT n)
:> QueryFlag "simple-metadata"
:> Get '[JSON] [ApiTransactionT n]

Expand Down
4 changes: 4 additions & 0 deletions specifications/api/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4090,6 +4090,10 @@ x-parametersAddress: &parametersAddress
name: address
description: |
An optional address.
If given, the list of transactions will be filtered
to only contain transactions that refer to this address in their inputs or outputs.
This may exclude transactions whose inputs reference outside transactions
that are not part of the transaction history of the wallet.
schema: *addressId

x-parametersAddressState: &parametersAddressState
Expand Down

0 comments on commit 79c6ec7

Please sign in to comment.