Skip to content

Commit

Permalink
Update query params constructor (#144)
Browse files Browse the repository at this point in the history
* enable set holding filter

* add transaction filters doc
  • Loading branch information
sleepyOwl14 authored Mar 10, 2023
1 parent d90043c commit 472cf44
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/infrastructure/MosaicQueryParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,12 @@ export class MosaicCreatorFilters{
*/
holding?: boolean;

constructor(ownerPublicKey: string | PublicAccount){
constructor(ownerPublicKey: string | PublicAccount, holding?: boolean){
this.ownerPubKey = ownerPublicKey;

if(holding !== undefined){
this.holding = holding;
}
}

buildQueryParamsString(){
Expand Down
7 changes: 7 additions & 0 deletions src/infrastructure/TransactionQueryParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,14 @@ export class TransactionQueryParams extends PaginationQueryParams{
height?: number;
signerPublicKey?: string | PublicAccount;
recipientAddress?: string | Address;
/**
* address involved in the transaction. It can be sender, recipient, or cosigner that required to cosign the transaction).
* cannot be combined with recipientAddress and signerPublicKey
*/
address?: string | Address;
/**
* combination of signerPublicKey and recipientAddress
*/
publicKey?: string | PublicAccount;
/**
* include only first level of Aggregate transactions (exclude innerTransactions), default to true
Expand Down

0 comments on commit 472cf44

Please sign in to comment.