Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
edridudi committed May 2, 2023
2 parents c013492 + fbf1173 commit a023718
Show file tree
Hide file tree
Showing 19 changed files with 115 additions and 114 deletions.
18 changes: 9 additions & 9 deletions src/api/account/AccountService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export interface AccountService {
* @param options Filtering and Pagination options (optional)
* @return Array of account (stake address) IDs
*/
getAccountList(options?: Options): Promise<any>;
getAccountList(options?: Options): Promise<Response>;

/**
* Account Information
Expand All @@ -30,7 +30,7 @@ export interface AccountService {
* @param options Filtering and Pagination options (optional)
* @return Array of account information
*/
getAccountInformation(stakeAddresses: string[], options?: Options): Promise<any>;
getAccountInformation(stakeAddresses: string[], options?: Options): Promise<Response>;

/**
* Account UTxOs
Expand All @@ -44,7 +44,7 @@ export interface AccountService {
* @param options Filtering and Pagination options (optional)
* @return Array of account UTxOs associated with stake address
*/
getAccountUTxOs(stakeAddress: string, options?: Options): Promise<any>;
getAccountUTxOs(stakeAddress: string, options?: Options): Promise<Response>;

/**
* Account Information (Cached)
Expand All @@ -58,7 +58,7 @@ export interface AccountService {
* @param options Filtering and Pagination options (optional)
* @return Array of account information
*/
getAccountInformationCached(stakeAddresses: string[], options?: Options): Promise<any>;
getAccountInformationCached(stakeAddresses: string[], options?: Options): Promise<Response>;

/**
* Account Rewards
Expand All @@ -73,7 +73,7 @@ export interface AccountService {
* @param options Filtering and Pagination options (optional)
* @return Array of reward history information
*/
getAccountRewards(stakeAddresses: string[], epochNo?: number, options?: Options): Promise<any>;
getAccountRewards(stakeAddresses: string[], epochNo?: number, options?: Options): Promise<Response>;

/**
* Account Updates
Expand All @@ -87,7 +87,7 @@ export interface AccountService {
* @param options Filtering and Pagination options (optional)
* @return Array of account updates information
*/
getAccountUpdates(stakeAddresses: string[], options?: Options): Promise<any>;
getAccountUpdates(stakeAddresses: string[], options?: Options): Promise<Response>;

/**
* Account Addresses
Expand All @@ -103,7 +103,7 @@ export interface AccountService {
* @param options Filtering and Pagination options (optional)
* @return Array of payment addresses
*/
getAccountAddresses(stakeAddresses: string[], firstOnly?: boolean, empty?: boolean, options?: Options): Promise<any>;
getAccountAddresses(stakeAddresses: string[], firstOnly?: boolean, empty?: boolean, options?: Options): Promise<Response>;

/**
* Account Assets
Expand All @@ -117,7 +117,7 @@ export interface AccountService {
* @param options Filtering and Pagination options (optional)
* @return Array of assets owned by account
*/
getAccountAssets(stakeAddresses: string[], options?: Options): Promise<any>;
getAccountAssets(stakeAddresses: string[], options?: Options): Promise<Response>;

/**
* Account History
Expand All @@ -132,5 +132,5 @@ export interface AccountService {
* @param options Filtering and Pagination options (optional)
* @return Array of active stake values per epoch
*/
getAccountHistory(stakeAddresses: string[], epochNo?: number, options?: Options): Promise<any>;
getAccountHistory(stakeAddresses: string[], epochNo?: number, options?: Options): Promise<Response>;
}
18 changes: 9 additions & 9 deletions src/api/account/impl/AccountServiceImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {KoiosHttpError} from "../../base/Errors";
*/
export class AccountServiceImpl extends BaseService implements AccountService {

getAccountList(options?: Options): Promise<any> {
getAccountList(options?: Options): Promise<Response> {
return this.get(`account_list${this.optionsToQueryParams(options)}`)
.then(async response => {
if (!response.ok) {
Expand All @@ -18,7 +18,7 @@ export class AccountServiceImpl extends BaseService implements AccountService {
})
}

getAccountInformation(stakeAddresses: string[], options?: Options): Promise<any> {
getAccountInformation(stakeAddresses: string[], options?: Options): Promise<Response> {
if (!options) {
options = Options.builder().build()
}
Expand All @@ -31,7 +31,7 @@ export class AccountServiceImpl extends BaseService implements AccountService {
})
}

getAccountUTxOs(stakeAddress: string, options?: Options): Promise<any> {
getAccountUTxOs(stakeAddress: string, options?: Options): Promise<Response> {
if (!options) {
options = Options.builder().build()
}
Expand All @@ -45,7 +45,7 @@ export class AccountServiceImpl extends BaseService implements AccountService {
})
}

getAccountInformationCached(stakeAddresses: string[], options?: Options): Promise<any> {
getAccountInformationCached(stakeAddresses: string[], options?: Options): Promise<Response> {
if (!options) {
options = Options.builder().build()
}
Expand All @@ -58,7 +58,7 @@ export class AccountServiceImpl extends BaseService implements AccountService {
})
}

getAccountRewards(stakeAddresses: string[], epochNo?: number, options?: Options): Promise<any> {
getAccountRewards(stakeAddresses: string[], epochNo?: number, options?: Options): Promise<Response> {
if (!options) {
options = Options.builder().build()
}
Expand All @@ -71,7 +71,7 @@ export class AccountServiceImpl extends BaseService implements AccountService {
})
}

getAccountUpdates(stakeAddresses: string[], options?: Options): Promise<any> {
getAccountUpdates(stakeAddresses: string[], options?: Options): Promise<Response> {
if (!options) {
options = Options.builder().build()
}
Expand All @@ -85,7 +85,7 @@ export class AccountServiceImpl extends BaseService implements AccountService {
}


getAccountAddresses(stakeAddresses: string[], firstOnly?: boolean, empty?: boolean, options?: Options): Promise<any> {
getAccountAddresses(stakeAddresses: string[], firstOnly?: boolean, empty?: boolean, options?: Options): Promise<Response> {
if (!options) {
options = Options.builder().build()
}
Expand All @@ -105,7 +105,7 @@ export class AccountServiceImpl extends BaseService implements AccountService {
})
}

getAccountAssets(stakeAddresses: string[], options?: Options): Promise<any> {
getAccountAssets(stakeAddresses: string[], options?: Options): Promise<Response> {
if (!options) {
options = Options.builder().build()
}
Expand All @@ -118,7 +118,7 @@ export class AccountServiceImpl extends BaseService implements AccountService {
})
}

getAccountHistory(stakeAddresses: string[], epochNo?: number, options?: Options): Promise<any> {
getAccountHistory(stakeAddresses: string[], epochNo?: number, options?: Options): Promise<Response> {
if (!options) {
options = Options.builder().build()
}
Expand Down
10 changes: 5 additions & 5 deletions src/api/address/AddressService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export interface AddressService {
* @param options Filtering and Pagination options (optional)
* @return Array of address information
*/
getAddressInformation(addresses: string[], options?: Options): Promise<any>;
getAddressInformation(addresses: string[], options?: Options): Promise<Response>;

/**
* Address Transactions
Expand All @@ -32,7 +32,7 @@ export interface AddressService {
* @param options Filtering and Pagination options (optional)
* @return Array of transaction hashes
*/
getAddressTransactions(addresses: string[], afterBlockHeight?: number, options?: Options): Promise<any>;
getAddressTransactions(addresses: string[], afterBlockHeight?: number, options?: Options): Promise<Response>;

/**
* UTxOs from payment credentials
Expand All @@ -46,7 +46,7 @@ export interface AddressService {
* @param options Filtering and Pagination options (optional)
* @return Array of UTxOs with balances
*/
getCredentialUTxOs(paymentCredentials: string[], options?: Options): Promise<any>;
getCredentialUTxOs(paymentCredentials: string[], options?: Options): Promise<Response>;

/**
* Address Assets
Expand All @@ -60,7 +60,7 @@ export interface AddressService {
* @param options Filtering and Pagination options (optional)
* @return Array of address-owned assets
*/
getAddressAssets(addresses: string[], options?: Options): Promise<any>;
getAddressAssets(addresses: string[], options?: Options): Promise<Response>;

/**
* Transactions from payment credentials
Expand All @@ -75,5 +75,5 @@ export interface AddressService {
* @param options Filtering and Pagination options (optional)
* @return Array of transaction hashes
*/
getCredentialsTxs(paymentCredentials: string[], afterBlockHeight?: number, options?: Options): Promise<any>;
getCredentialsTxs(paymentCredentials: string[], afterBlockHeight?: number, options?: Options): Promise<Response>;
}
10 changes: 5 additions & 5 deletions src/api/address/impl/AddressServiceImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {KoiosHttpError} from "../../base/Errors";
*/
export class AddressServiceImpl extends BaseService implements AddressService {

getAddressInformation(addresses: string[], options?: Options): Promise<any> {
getAddressInformation(addresses: string[], options?: Options): Promise<Response> {
if (!options) {
options = Options.builder().build()
}
Expand All @@ -21,7 +21,7 @@ export class AddressServiceImpl extends BaseService implements AddressService {
})
}

getAddressTransactions(addresses: string[], afterBlockHeight?: number, options?: Options): Promise<any> {
getAddressTransactions(addresses: string[], afterBlockHeight?: number, options?: Options): Promise<Response> {
if (!options) {
options = Options.builder().build()
}
Expand All @@ -34,7 +34,7 @@ export class AddressServiceImpl extends BaseService implements AddressService {
})
}

getCredentialUTxOs(paymentCredentials: string[], options?: Options): Promise<any> {
getCredentialUTxOs(paymentCredentials: string[], options?: Options): Promise<Response> {
if (!options) {
options = Options.builder().build()
}
Expand All @@ -47,7 +47,7 @@ export class AddressServiceImpl extends BaseService implements AddressService {
})
}

getAddressAssets(addresses: string[], options?: Options): Promise<any> {
getAddressAssets(addresses: string[], options?: Options): Promise<Response> {
if (!options) {
options = Options.builder().build()
}
Expand All @@ -60,7 +60,7 @@ export class AddressServiceImpl extends BaseService implements AddressService {
})
}

getCredentialsTxs(paymentCredentials: string[], afterBlockHeight?: number, options?: Options): Promise<any> {
getCredentialsTxs(paymentCredentials: string[], afterBlockHeight?: number, options?: Options): Promise<Response> {
if (!options) {
options = Options.builder().build()
}
Expand Down
24 changes: 12 additions & 12 deletions src/api/asset/AssetService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export interface AssetService {
* @param options Filtering and Pagination options (optional)
* @return Array of policy IDs and asset names
*/
getAssetList(options?: Options): Promise<any>;
getAssetList(options?: Options): Promise<Response>;

/**
* Asset Token Registry
Expand All @@ -29,7 +29,7 @@ export interface AssetService {
* @param options Filtering and Pagination options (optional)
* @return Array of token registry information for each asset
*/
getAssetTokenRegistry(options?: Options): Promise<any>;
getAssetTokenRegistry(options?: Options): Promise<Response>;

/**
* Asset Addresses
Expand All @@ -44,7 +44,7 @@ export interface AssetService {
* @param options Filtering and Pagination options (optional)
* @return Array of payment addresses holding the given token (including balances)
*/
getAssetAddresses(assetPolicy: string, assetName?: string, options?: Options): Promise<any>;
getAssetAddresses(assetPolicy: string, assetName?: string, options?: Options): Promise<Response>;

/**
* NFT Address
Expand All @@ -59,7 +59,7 @@ export interface AssetService {
* @param options Filtering and Pagination options (optional)
* @return Payment addresses currently holding the given NFT
*/
getNFTAddress(assetPolicy: string, assetName?: string, options?: Options): Promise<any>;
getNFTAddress(assetPolicy: string, assetName?: string, options?: Options): Promise<Response>;

/**
* Asset Information
Expand All @@ -74,7 +74,7 @@ export interface AssetService {
* @param options Filtering and Pagination options (optional)
* @return Array of detailed asset information
*/
getAssetInformation(assetPolicy: string, assetName?: string, options?: Options): Promise<any>;
getAssetInformation(assetPolicy: string, assetName?: string, options?: Options): Promise<Response>;

/**
* Asset Information (Bulk)
Expand All @@ -88,7 +88,7 @@ export interface AssetService {
* @param options Filtering and Pagination options (optional)
* @return Array of detailed asset information
*/
getAssetInformationBulk(assets: [string, string][], options?: Options): Promise<any>;
getAssetInformationBulk(assets: [string, string][], options?: Options): Promise<Response>;

/**
* Asset History
Expand All @@ -103,7 +103,7 @@ export interface AssetService {
* @param options Filtering and Pagination options (optional)
* @return Array of asset mint/burn history
*/
getAssetHistory(assetPolicy: string, assetName?: string, options?: Options): Promise<any>;
getAssetHistory(assetPolicy: string, assetName?: string, options?: Options): Promise<Response>;

/**
* Policy Asset Address List
Expand All @@ -117,7 +117,7 @@ export interface AssetService {
* @param options Filtering and Pagination options (optional)
* @return Array of asset names and payment addresses for the given policy (including balances)
*/
getPolicyAssetAddressList(assetPolicy: string, options?: Options): Promise<any>;
getPolicyAssetAddressList(assetPolicy: string, options?: Options): Promise<Response>;

/**
* Policy Asset Information
Expand All @@ -131,7 +131,7 @@ export interface AssetService {
* @param options Filtering and Pagination options (optional)
* @return Array of detailed information of assets under the same policy
*/
getPolicyAssetInformation(assetPolicy: string, options?: Options): Promise<any>;
getPolicyAssetInformation(assetPolicy: string, options?: Options): Promise<Response>;

/**
* Policy Asset List
Expand All @@ -145,7 +145,7 @@ export interface AssetService {
* @param options Filtering and Pagination options (optional)
* @return Array of detailed information of assets under the same policy
*/
getPolicyAssetList(assetPolicy: string, options?: Options): Promise<any>;
getPolicyAssetList(assetPolicy: string, options?: Options): Promise<Response>;

/**
* Asset Summary
Expand All @@ -160,7 +160,7 @@ export interface AssetService {
* @param options Filtering and Pagination options (optional)
* @return Array of asset summary information
*/
getAssetSummary(assetPolicy: string, assetName?: string, options?: Options): Promise<any>;
getAssetSummary(assetPolicy: string, assetName?: string, options?: Options): Promise<Response>;

/**
* Asset Transactions
Expand All @@ -177,5 +177,5 @@ export interface AssetService {
* @param options Filtering and Pagination options (optional)
* @return Array of Tx hashes that included the given asset
*/
getAssetTransactions(assetPolicy: string, assetName?: string, afterBlockHeight?: number, history?: boolean, options?: Options): Promise<any>;
getAssetTransactions(assetPolicy: string, assetName?: string, afterBlockHeight?: number, history?: boolean, options?: Options): Promise<Response>;
}
Loading

0 comments on commit a023718

Please sign in to comment.