@bluxcc/react 0.1.10 → 0.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,9 @@
1
+ export type IExplorerDetail = {
2
+ ledgerUrl: string;
3
+ accountUrl: string;
4
+ operationUrl?: string;
5
+ transactionUrl: string;
6
+ [key: string]: string | undefined;
7
+ };
8
+ declare const EXPLORERS: Record<string, IExplorerDetail>;
9
+ export default EXPLORERS;
@@ -1,9 +1,17 @@
1
+ import { Horizon, rpc } from '@stellar/stellar-sdk';
1
2
  import { ISendTransactionOptions } from '../types';
2
3
  export declare const useBlux: () => {
3
4
  login: () => void;
4
5
  logout: () => void;
5
6
  profile: () => void;
6
- sendTransaction: (xdr: string, options?: ISendTransactionOptions) => Promise<unknown>;
7
+ sendTransaction: {
8
+ (xdr: string, options: ISendTransactionOptions & {
9
+ isSoroban: true;
10
+ }): Promise<rpc.Api.GetSuccessfulTransactionResponse>;
11
+ (xdr: string, options?: ISendTransactionOptions & {
12
+ isSoroban?: false;
13
+ }): Promise<Horizon.HorizonApi.SubmitTransactionResponse>;
14
+ };
7
15
  user: import("../types").IUser;
8
16
  isReady: boolean;
9
17
  isAuthenticated: boolean;