nem-voting
Version:
32 lines (31 loc) • 3.09 kB
TypeScript
import { Transaction, Address, MultisigTransaction, TransferTransaction, PublicAccount, Pageable } from "nem-library";
import { Observable } from "rxjs";
declare const testNodeAddress = "hugetestalice.nem.ninja";
declare const mainNodeAddress = "hugealice.nem.ninja";
declare const getTransferTransaction: (transaction: Transaction) => TransferTransaction | null;
declare const getTransactionPageable: (receiver: Address, pageSize: number) => Pageable<Transaction[]>;
declare const getAllTransactions: (receiver: Address) => Observable<Transaction[]>;
declare const getOutgoingTransactionsWithString: (queryString: string, sender: Address, position?: number) => Observable<TransferTransaction[]>;
declare const getPageOfTransactionsWithString: (address: Address, pageSize: any, queryString: string, lastId?: number | undefined, sender?: Address | undefined, position?: number) => Observable<TransferTransaction[]>;
declare const findTransaction: (sender: Address, receiver: Address) => Observable<Transaction | null>;
declare const getTransactionsWithString: (queryString: string, receiver: Address, sender?: Address | undefined, position?: number) => Observable<TransferTransaction[]>;
declare const getFirstMessageWithString: (queryString: string, receiver: Address, sender?: Address | undefined, position?: number) => Observable<string | null>;
declare const getFirstSender: (receiver: Address) => Observable<Address | null>;
declare const getAllMessagesWithString: (queryString: string, receiver: Address, sender?: Address | undefined, block?: number | undefined) => Observable<string[] | null>;
/**
* getHeightByTimestamp(timestamp) returns the last harvested block at the time of the timestamp.
*
* @param {integer} timestamp - javascript timestamp in ms
*
* @return {promise} - a promise that returns the block height
*/
declare const getHeightByTimestampPromise: (timestamp: number) => Promise<number>;
declare const getHeightByTimestamp: (timestamp: number) => Observable<number>;
declare const getImportances: (addresses: Address[], block?: number | undefined) => Observable<number[]>;
declare const getMessageTransaction: (message: string, address: Address) => TransferTransaction;
declare const getMultisigMessage: (multisigAccount: PublicAccount, message: string, address: Address) => MultisigTransaction;
declare const generatePollAddress: (title: string, publicKey: string) => Address;
declare const deriveOptionAddress: (pollAddress: Address, option: string) => Address;
declare const generateRandomAddress: () => Address;
declare const generateRandomPubKey: () => string;
export { getImportances, getHeightByTimestamp, findTransaction, getHeightByTimestampPromise, getFirstMessageWithString, getTransactionsWithString, getAllTransactions, getTransferTransaction, getMessageTransaction, getMultisigMessage, generatePollAddress, deriveOptionAddress, generateRandomAddress, getAllMessagesWithString, getFirstSender, generateRandomPubKey, getTransactionPageable, getPageOfTransactionsWithString, getOutgoingTransactionsWithString, testNodeAddress, mainNodeAddress };