@@ -207,13 +207,13 @@ export class AccountHttp extends Http implements AccountRepository {
207207 }
208208 /**
209209 * Gets a MultisigAccountInfo for an account.
210- * @param publicAccount - User public account
210+ * @param address - * Address can be created rawAddress or publicKey
211211 * @returns Observable<MultisigAccountInfo>
212212 */
213- public getMultisigAccountInfo ( publicAccount : PublicAccount ) : Observable < MultisigAccountInfo > {
213+ public getMultisigAccountInfo ( address : Address ) : Observable < MultisigAccountInfo > {
214214 return this . getNetworkTypeObservable ( ) . pipe (
215215 mergeMap ( ( networkType ) => observableFrom (
216- this . accountRoutesApi . getAccountMultisig ( publicAccount . publicKey ) )
216+ this . accountRoutesApi . getAccountMultisig ( address . plain ( ) ) )
217217 . pipe ( map ( ( response : { response : ClientResponse ; body : MultisigAccountInfoDTO ; } ) => {
218218 const multisigAccountInfoDTO = response . body ;
219219 return new MultisigAccountInfo (
@@ -232,13 +232,13 @@ export class AccountHttp extends Http implements AccountRepository {
232232
233233 /**
234234 * Gets a MultisigAccountGraphInfo for an account.
235- * @param publicAccount - User publicAccount
235+ * @param address - * Address can be created rawAddress or publicKey
236236 * @returns Observable<MultisigAccountGraphInfo>
237237 */
238- public getMultisigAccountGraphInfo ( publicAccount : PublicAccount ) : Observable < MultisigAccountGraphInfo > {
238+ public getMultisigAccountGraphInfo ( address : Address ) : Observable < MultisigAccountGraphInfo > {
239239 return this . getNetworkTypeObservable ( ) . pipe (
240240 mergeMap ( ( networkType ) => observableFrom (
241- this . accountRoutesApi . getAccountMultisigGraph ( publicAccount . publicKey ) )
241+ this . accountRoutesApi . getAccountMultisigGraph ( address . plain ( ) ) )
242242 . pipe ( map ( ( response : { response : ClientResponse ; body : MultisigAccountGraphInfoDTO [ ] ; } ) => {
243243 const multisigAccountGraphInfosDTO = response . body ;
244244 const multisigAccounts = new Map < number , MultisigAccountInfo [ ] > ( ) ;
@@ -265,13 +265,13 @@ export class AccountHttp extends Http implements AccountRepository {
265265
266266 /**
267267 * Gets an array of confirmed transactions for which an account is signer or receiver.
268- * @param publicAccount - User public account
268+ * @param address - * Address can be created rawAddress or publicKey
269269 * @param queryParams - (Optional) Query params
270270 * @returns Observable<Transaction[]>
271271 */
272- public transactions ( publicAccount : PublicAccount , queryParams ?: QueryParams ) : Observable < Transaction [ ] > {
272+ public transactions ( address : Address , queryParams ?: QueryParams ) : Observable < Transaction [ ] > {
273273 return observableFrom (
274- this . accountRoutesApi . transactions ( publicAccount . publicKey ,
274+ this . accountRoutesApi . transactions ( address . plain ( ) ,
275275 this . queryParams ( queryParams ) . pageSize ,
276276 this . queryParams ( queryParams ) . id ,
277277 this . queryParams ( queryParams ) . order ) ) . pipe (
@@ -288,13 +288,13 @@ export class AccountHttp extends Http implements AccountRepository {
288288 /**
289289 * Gets an array of transactions for which an account is the recipient of a transaction.
290290 * A transaction is said to be incoming with respect to an account if the account is the recipient of a transaction.
291- * @param publicAccount - User public account
291+ * @param address - * Address can be created rawAddress or publicKey
292292 * @param queryParams - (Optional) Query params
293293 * @returns Observable<Transaction[]>
294294 */
295- public incomingTransactions ( publicAccount : PublicAccount , queryParams ?: QueryParams ) : Observable < Transaction [ ] > {
295+ public incomingTransactions ( address : Address , queryParams ?: QueryParams ) : Observable < Transaction [ ] > {
296296 return observableFrom (
297- this . accountRoutesApi . incomingTransactions ( publicAccount . publicKey ,
297+ this . accountRoutesApi . incomingTransactions ( address . plain ( ) ,
298298 this . queryParams ( queryParams ) . pageSize ,
299299 this . queryParams ( queryParams ) . id ,
300300 this . queryParams ( queryParams ) . order ) ) . pipe (
@@ -311,13 +311,13 @@ export class AccountHttp extends Http implements AccountRepository {
311311 /**
312312 * Gets an array of transactions for which an account is the sender a transaction.
313313 * A transaction is said to be outgoing with respect to an account if the account is the sender of a transaction.
314- * @param publicAccount - User public account
314+ * @param address - * Address can be created rawAddress or publicKey
315315 * @param queryParams - (Optional) Query params
316316 * @returns Observable<Transaction[]>
317317 */
318- public outgoingTransactions ( publicAccount : PublicAccount , queryParams ?: QueryParams ) : Observable < Transaction [ ] > {
318+ public outgoingTransactions ( address : Address , queryParams ?: QueryParams ) : Observable < Transaction [ ] > {
319319 return observableFrom (
320- this . accountRoutesApi . outgoingTransactions ( publicAccount . publicKey ,
320+ this . accountRoutesApi . outgoingTransactions ( address . plain ( ) ,
321321 this . queryParams ( queryParams ) . pageSize ,
322322 this . queryParams ( queryParams ) . id ,
323323 this . queryParams ( queryParams ) . order ) ) . pipe (
@@ -335,13 +335,13 @@ export class AccountHttp extends Http implements AccountRepository {
335335 * Gets the array of transactions for which an account is the sender or receiver and which have not yet been included in a block.
336336 * Unconfirmed transactions are those transactions that have not yet been included in a block.
337337 * Unconfirmed transactions are not guaranteed to be included in any block.
338- * @param publicAccount - User public account
338+ * @param address - * Address can be created rawAddress or publicKey
339339 * @param queryParams - (Optional) Query params
340340 * @returns Observable<Transaction[]>
341341 */
342- public unconfirmedTransactions ( publicAccount : PublicAccount , queryParams ?: QueryParams ) : Observable < Transaction [ ] > {
342+ public unconfirmedTransactions ( address : Address , queryParams ?: QueryParams ) : Observable < Transaction [ ] > {
343343 return observableFrom (
344- this . accountRoutesApi . unconfirmedTransactions ( publicAccount . publicKey ,
344+ this . accountRoutesApi . unconfirmedTransactions ( address . plain ( ) ,
345345 this . queryParams ( queryParams ) . pageSize ,
346346 this . queryParams ( queryParams ) . id ,
347347 this . queryParams ( queryParams ) . order ) ) . pipe (
@@ -358,13 +358,13 @@ export class AccountHttp extends Http implements AccountRepository {
358358 /**
359359 * Gets an array of transactions for which an account is the sender or has sign the transaction.
360360 * A transaction is said to be aggregate bonded with respect to an account if there are missing signatures.
361- * @param publicAccount - User public account
361+ * @param address - * Address can be created rawAddress or publicKey
362362 * @param queryParams - (Optional) Query params
363363 * @returns Observable<AggregateTransaction[]>
364364 */
365- public aggregateBondedTransactions ( publicAccount : PublicAccount , queryParams ?: QueryParams ) : Observable < AggregateTransaction [ ] > {
365+ public aggregateBondedTransactions ( address : Address , queryParams ?: QueryParams ) : Observable < AggregateTransaction [ ] > {
366366 return observableFrom (
367- this . accountRoutesApi . partialTransactions ( publicAccount . publicKey ,
367+ this . accountRoutesApi . partialTransactions ( address . plain ( ) ,
368368 this . queryParams ( queryParams ) . pageSize ,
369369 this . queryParams ( queryParams ) . id ,
370370 this . queryParams ( queryParams ) . order ) ) . pipe (
0 commit comments