All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.proximax.sdk.AccountRepository Maven / Gradle / Ivy

Go to download

The ProximaX Sirius Chain Java SDK is a Java library for interacting with the Sirius Blockchain.

The newest version!
/*
 * Copyright 2018 NEM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package io.proximax.sdk;

import java.util.List;

import io.proximax.sdk.infrastructure.QueryParams;
import io.proximax.sdk.model.account.AccountInfo;
import io.proximax.sdk.model.account.Address;
import io.proximax.sdk.model.account.MultisigAccountGraphInfo;
import io.proximax.sdk.model.account.MultisigAccountInfo;
import io.proximax.sdk.model.account.PublicAccount;
import io.proximax.sdk.model.account.props.AccountProperties;
import io.proximax.sdk.model.transaction.AggregateTransaction;
import io.proximax.sdk.model.transaction.Transaction;
import io.reactivex.Observable;

/**
 * Account interface repository.
 *
 * @since 1.0
 */
public interface AccountRepository {
    /**
     * Gets an AccountInfo for an account.
     *
     * @param address Address
     * @return Observable of {@link AccountInfo}
     */
    Observable getAccountInfo(Address address);

    /**
     * Gets AccountsInfo for different accounts.
     *
     * @param addresses List of Address
     * @return Observable of {@link AccountInfo} list
     */
    Observable> getAccountsInfo(List
addresses); /** * Gets a MultisigAccountInfo for an account. * * @param address Address * @return Observable of {@link MultisigAccountInfo} */ Observable getMultisigAccountInfo(Address address); /** * Gets a MultisigAccountGraphInfo for an account. * * @param address Address * @return Observable of {@link MultisigAccountGraphInfo} */ Observable getMultisigAccountGraphInfo(Address address); /** * Get properties associated with specified address * * @param address the address to check * @return account properties */ Observable getAccountProperties(Address address); /** * Get properties associated with specified addresses * * @param addresses the addresses to check * @return list of account properties */ Observable> getAccountProperties(List
addresses); /** * Gets an list of confirmed transactions for which an account is signer or receiver. * * @param publicAccount PublicAccount * @return Observable of {@link Transaction} list */ Observable> transactions(PublicAccount publicAccount); /** * Gets an list of confirmed transactions for which an account is signer or receiver. * With pagination. * * @param publicAccount PublicAccount * @param queryParams QueryParams * @return Observable of {@link Transaction} list */ Observable> transactions(PublicAccount publicAccount, QueryParams queryParams); /** * Gets an list of transactions for which an account is the recipient of a transaction. * A transaction is said to be incoming with respect to an account if the account is the recipient of a transaction. * * @param publicAccount PublicAccount * @return Observable of {@link Transaction} list */ Observable> incomingTransactions(PublicAccount publicAccount); /** * Gets an list of transactions for which an account is the recipient of a transaction. * A transaction is said to be incoming with respect to an account if the account is the recipient of a transaction. * With pagination. * * @param publicAccount PublicAccount * @param queryParams QueryParams * @return Observable of {@link Transaction} list */ Observable> incomingTransactions(PublicAccount publicAccount, QueryParams queryParams); /** * Gets an list of transactions for which an account is the recipient of a transaction. * A transaction is said to be incoming with respect to an account if the account is the recipient of a transaction. * * @param address the address * @return Observable of {@link Transaction} list */ Observable> incomingTransactions(Address address); /** * Gets an list of transactions for which an account is the recipient of a transaction. * A transaction is said to be incoming with respect to an account if the account is the recipient of a transaction. * With pagination. * * @param address the address * @param queryParams QueryParams * @return Observable of {@link Transaction} list */ Observable> incomingTransactions(Address address, QueryParams queryParams); /** * Gets an list of transactions for which an account is the sender a transaction. * A transaction is said to be outgoing with respect to an account if the account is the sender of a transaction. * * @param publicAccount PublicAccount * @return Observable of {@link Transaction} */ Observable> outgoingTransactions(PublicAccount publicAccount); /** * Gets an list of transactions for which an account is the sender a transaction. * A transaction is said to be outgoing with respect to an account if the account is the sender of a transaction. * With pagination. * * @param publicAccount PublicAccount * @param queryParams QueryParams * @return Observable of {@link Transaction} list */ Observable> outgoingTransactions(PublicAccount publicAccount, QueryParams queryParams); /** * Gets an list of transactions for which an account is the sender or has sign the transaction. * A transaction is said to be aggregate bonded with respect to an account if there are missing signatures. * * @param publicAccount PublicAccount * @return Observable of {@link Transaction} list */ Observable> aggregateBondedTransactions(PublicAccount publicAccount); /** * Gets an list of transactions for which an account is the sender or has sign the transaction. * A transaction is said to be aggregate bonded with respect to an account if there are missing signatures. * With pagination. * * @param publicAccount PublicAccount * @param queryParams QueryParams * @return Observable of {@link Transaction} list */ Observable> aggregateBondedTransactions(PublicAccount publicAccount, QueryParams queryParams); /** * Gets the list of transactions for which an account is the sender or receiver and which have not yet been included in a block. * Unconfirmed transactions are those transactions that have not yet been included in a block. * Unconfirmed transactions are not guaranteed to be included in any block. * * @param publicAccount PublicAccount * @return Observable of {@link Transaction} list */ Observable> unconfirmedTransactions(PublicAccount publicAccount); /** * Gets the list of transactions for which an account is the sender or receiver and which have not yet been included in a block. * Unconfirmed transactions are those transactions that have not yet been included in a block. * Unconfirmed transactions are not guaranteed to be included in any block. * With pagination. * * @param publicAccount PublicAccount * @param queryParams QueryParams * @return Observable of {@link Transaction} list */ Observable> unconfirmedTransactions(PublicAccount publicAccount, QueryParams queryParams); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy