Interface
export interface UserAccountProvider {
readonly currentUserAccount$: Observable<UserAccount | undefined>;
readonly userAccounts$: Observable<readonly UserAccount[]>;
readonly networks$: Observable<readonly NetworkType[]>;
readonly getCurrentUserAccount: () => UserAccount | undefined;
readonly getUserAccounts: () => readonly UserAccount[];
readonly getNetworks: () => readonly NetworkType[];
readonly selectUserAccount: (id?: UserAccountID) => Promise<void>;
readonly deleteUserAccount?: (id: UserAccountID) => Promise<void>;
readonly updateUserAccountName?: (options: UpdateAccountNameOptions) => Promise<void>;
readonly getBlockCount: (network: NetworkType) => Promise<number>;
readonly getAccount: (network: NetworkType, address: AddressString) => Promise<Account>;
readonly iterBlocks: (network: NetworkType, options?: IterOptions) => AsyncIterable<Block>;
readonly iterActionsRaw?: (network: NetworkType, options?: IterOptions) => AsyncIterable<RawAction>;
readonly transfer: (
transfers: readonly Transfer[],
options?: TransactionOptions,
) => Promise<TransactionResult<TransactionReceipt, InvocationTransaction | ContractTransaction>>;
readonly claim: (options?: TransactionOptions) => Promise<TransactionResult<TransactionReceipt, ClaimTransaction>>;
readonly invoke: (
contract: AddressString,
method: string,
params: ReadonlyArray<ScriptBuilderParam | undefined>,
paramsZipped: ReadonlyArray<readonly [string, Param | undefined]>,
verify: boolean,
options?: InvokeSendUnsafeReceiveTransactionOptions,
sourceMaps?: SourceMaps,
) => Promise<TransactionResult<RawInvokeReceipt, InvocationTransaction>>;
readonly invokeSend: (
contract: AddressString,
method: string,
params: ReadonlyArray<ScriptBuilderParam | undefined>,
paramsZipped: ReadonlyArray<readonly [string, Param | undefined]>,
transfer: Transfer,
options?: TransactionOptions,
sourceMaps?: SourceMaps,
) => Promise<TransactionResult<RawInvokeReceipt, InvocationTransaction>>;
readonly invokeCompleteSend: (
contract: AddressString,
method: string,
params: ReadonlyArray<ScriptBuilderParam | undefined>,
paramsZipped: ReadonlyArray<readonly [string, Param | undefined]>,
hash: Hash256String,
options?: TransactionOptions,
sourceMaps?: SourceMaps,
) => Promise<TransactionResult<RawInvokeReceipt, InvocationTransaction>>;
readonly invokeRefundAssets: (
contract: AddressString,
method: string,
params: ReadonlyArray<ScriptBuilderParam | undefined>,
paramsZipped: ReadonlyArray<readonly [string, Param | undefined]>,
hash: Hash256String,
options?: TransactionOptions,
sourceMaps?: SourceMaps,
) => Promise<TransactionResult<RawInvokeReceipt, InvocationTransaction>>;
readonly invokeClaim: (
contract: AddressString,
method: string,
params: ReadonlyArray<ScriptBuilderParam | undefined>,
paramsZipped: ReadonlyArray<readonly [string, Param | undefined]>,
options?: TransactionOptions,
sourceMaps?: SourceMaps,
) => Promise<TransactionResult<TransactionReceipt, ClaimTransaction>>;
readonly call: (
network: NetworkType,
contract: AddressString,
method: string,
params: ReadonlyArray<ScriptBuilderParam | undefined>,
) => Promise<RawCallReceipt>;
}