@bluxcc/react 0.1.22 → 0.1.23
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.
- package/dist/Provider.d.ts +8 -0
- package/dist/hooks/useBlux.d.ts +10 -14
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +1 -6
- package/dist/index.esm.js +1 -1
- package/dist/useStellar/index.d.ts +4 -6
- package/dist/useStellar/useAccount.d.ts +5 -10
- package/dist/useStellar/useNetwork.d.ts +1 -2
- package/dist/useStellar/useSwitchNetwork.d.ts +8 -3
- package/package.json +4 -10
- package/dist/assets/Icons.d.ts +0 -47
- package/dist/assets/bluxLogo.d.ts +0 -5
- package/dist/assets/logos.d.ts +0 -25
- package/dist/components/Button/index.d.ts +0 -17
- package/dist/components/CardItem/index.d.ts +0 -15
- package/dist/components/Header/index.d.ts +0 -11
- package/dist/components/Input/OTPInput.d.ts +0 -8
- package/dist/components/Input/index.d.ts +0 -18
- package/dist/components/Modal/Backdrop/index.d.ts +0 -8
- package/dist/components/Modal/index.d.ts +0 -9
- package/dist/components/Transaction/History/index.d.ts +0 -12
- package/dist/components/Transaction/Summary/index.d.ts +0 -11
- package/dist/constants/explorers.d.ts +0 -9
- package/dist/constants/index.d.ts +0 -4
- package/dist/constants/locales.d.ts +0 -9
- package/dist/constants/networkDetails.d.ts +0 -8
- package/dist/constants/storageKeys.d.ts +0 -1
- package/dist/containers/BluxModal/content.d.ts +0 -10
- package/dist/containers/BluxModal/index.d.ts +0 -7
- package/dist/containers/Pages/Activity/index.d.ts +0 -3
- package/dist/containers/Pages/ConfirmCode/index.d.ts +0 -3
- package/dist/containers/Pages/OnBoarding/index.d.ts +0 -3
- package/dist/containers/Pages/Profile/index.d.ts +0 -3
- package/dist/containers/Pages/SelectAsset/index.d.ts +0 -9
- package/dist/containers/Pages/Send/SendForm.d.ts +0 -3
- package/dist/containers/Pages/Send/index.d.ts +0 -3
- package/dist/containers/Pages/SignTransaction/index.d.ts +0 -3
- package/dist/containers/Pages/Successful/index.d.ts +0 -3
- package/dist/containers/Pages/Waiting/index.d.ts +0 -3
- package/dist/containers/Pages/WrongNetwork/index.d.ts +0 -3
- package/dist/context/provider.d.ts +0 -11
- package/dist/context/useCheckWalletNetwork.d.ts +0 -3
- package/dist/hooks/useCheckProvider.d.ts +0 -2
- package/dist/hooks/useCustomNetwork.d.ts +0 -7
- package/dist/hooks/useDynamicHeight.d.ts +0 -4
- package/dist/hooks/useIsMobile.d.ts +0 -1
- package/dist/hooks/useLang.d.ts +0 -2
- package/dist/hooks/useModalAnimation.d.ts +0 -7
- package/dist/networks.d.ts +0 -8
- package/dist/types/index.d.ts +0 -248
- package/dist/useStellar/useBalance.d.ts +0 -13
- package/dist/useStellar/useTransactions.d.ts +0 -18
- package/dist/utils/apis/getAssetLogos.d.ts +0 -12
- package/dist/utils/capitalizeFirstLetter.d.ts +0 -2
- package/dist/utils/copyText.d.ts +0 -2
- package/dist/utils/formatDate.d.ts +0 -2
- package/dist/utils/getContrastColor.d.ts +0 -2
- package/dist/utils/getWalletNetwork.d.ts +0 -3
- package/dist/utils/handleLogos.d.ts +0 -3
- package/dist/utils/hexToRgba.d.ts +0 -2
- package/dist/utils/humanizeAmount.d.ts +0 -3
- package/dist/utils/initializeRabetMobile.d.ts +0 -2
- package/dist/utils/isBackgroundDark.d.ts +0 -2
- package/dist/utils/mappedWallets.d.ts +0 -3
- package/dist/utils/network/getNetworkRpc.d.ts +0 -4
- package/dist/utils/network/getNetworkTitle.d.ts +0 -2
- package/dist/utils/network/url.d.ts +0 -12
- package/dist/utils/setRecentConnectionMethod.d.ts +0 -3
- package/dist/utils/shortenAddress.d.ts +0 -2
- package/dist/utils/sortWallets.d.ts +0 -3
- package/dist/utils/stellar/finalizeSorobanTransaction.d.ts +0 -3
- package/dist/utils/stellar/getExplorerUrl.d.ts +0 -3
- package/dist/utils/stellar/getNetworkByPassphrase.d.ts +0 -2
- package/dist/utils/stellar/getTransactionDetails.d.ts +0 -8
- package/dist/utils/stellar/handleTransactionSigning.d.ts +0 -3
- package/dist/utils/stellar/paymentTransaction.d.ts +0 -4
- package/dist/utils/stellar/signTransaction.d.ts +0 -3
- package/dist/utils/stellar/submitTransaction.d.ts +0 -10
- package/dist/utils/toTitleFormat.d.ts +0 -2
- package/dist/utils/translate.d.ts +0 -2
- package/dist/wallets/configs/albedoConfig.d.ts +0 -2
- package/dist/wallets/configs/freighterConfig.d.ts +0 -2
- package/dist/wallets/configs/hanaConfig.d.ts +0 -2
- package/dist/wallets/configs/hotConfig.d.ts +0 -2
- package/dist/wallets/configs/lobstrConfig.d.ts +0 -2
- package/dist/wallets/configs/rabetConfig.d.ts +0 -2
- package/dist/wallets/configs/xbullConfig.d.ts +0 -2
- package/dist/wallets/walletsConfig.d.ts +0 -2
package/dist/types/index.d.ts
DELETED
|
@@ -1,248 +0,0 @@
|
|
|
1
|
-
import { Horizon, rpc } from '@stellar/stellar-sdk';
|
|
2
|
-
import { HorizonApi } from '@stellar/stellar-sdk/lib/horizon';
|
|
3
|
-
import { Url } from '../utils/network/url';
|
|
4
|
-
import { UseAccountResult } from '../useStellar/useAccount';
|
|
5
|
-
import { LanguageKey } from '../constants/locales';
|
|
6
|
-
/**
|
|
7
|
-
* Enum representing the supported wallets in the system.
|
|
8
|
-
*/
|
|
9
|
-
export declare enum SupportedWallets {
|
|
10
|
-
Rabet = "Rabet",
|
|
11
|
-
Albedo = "Albedo",
|
|
12
|
-
Freighter = "Freighter",
|
|
13
|
-
Xbull = "xBull",
|
|
14
|
-
Lobstr = "LOBSTR",
|
|
15
|
-
Hana = "Hana",
|
|
16
|
-
Hot = "Hot"
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Enum defining the various Stellar network environments.
|
|
20
|
-
*/
|
|
21
|
-
export declare enum WalletNetwork {
|
|
22
|
-
PUBLIC = "Public Global Stellar Network ; September 2015",
|
|
23
|
-
TESTNET = "Test SDF Network ; September 2015",
|
|
24
|
-
FUTURENET = "Test SDF Future Network ; October 2022",
|
|
25
|
-
SANDBOX = "Local Sandbox Stellar Network ; September 2022",
|
|
26
|
-
STANDALONE = "Standalone Network ; February 2017"
|
|
27
|
-
}
|
|
28
|
-
export interface AccountData {
|
|
29
|
-
id: string;
|
|
30
|
-
sequence: string;
|
|
31
|
-
xlmBalance: string;
|
|
32
|
-
subentry_count: number;
|
|
33
|
-
balances: Horizon.HorizonApi.BalanceLine[];
|
|
34
|
-
thresholds: Horizon.HorizonApi.AccountThresholds;
|
|
35
|
-
transactions?: Horizon.ServerApi.TransactionRecord[];
|
|
36
|
-
}
|
|
37
|
-
export interface IAsset {
|
|
38
|
-
logo?: string;
|
|
39
|
-
balance: string;
|
|
40
|
-
assetCode: string;
|
|
41
|
-
assetType: string;
|
|
42
|
-
assetIssuer: string;
|
|
43
|
-
}
|
|
44
|
-
interface IServers {
|
|
45
|
-
horizon: Url;
|
|
46
|
-
soroban: Url;
|
|
47
|
-
}
|
|
48
|
-
export type ITransports = Record<string, IServers>;
|
|
49
|
-
export type IExplorers = 'steexp' | 'stellarchain' | 'stellarexpert' | 'lumenscan';
|
|
50
|
-
/**
|
|
51
|
-
* BluxProvider.config
|
|
52
|
-
*/
|
|
53
|
-
export interface IProviderConfig {
|
|
54
|
-
appName: string;
|
|
55
|
-
networks: string[];
|
|
56
|
-
defaultNetwork: string;
|
|
57
|
-
appearance?: Partial<IAppearance>;
|
|
58
|
-
transports?: ITransports;
|
|
59
|
-
explorer?: IExplorers;
|
|
60
|
-
lang?: LanguageKey;
|
|
61
|
-
showWalletUIs?: boolean;
|
|
62
|
-
loginMethods?: Array<'wallet' | 'email' | 'google' | 'twitter' | 'discord' | 'github' | 'passkey'>;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* context.value.config
|
|
66
|
-
* Appearance will be set to default values if the user does not provider appearance (or provides some of the values in Appearance)
|
|
67
|
-
*/
|
|
68
|
-
export interface IConfig extends IProviderConfig {
|
|
69
|
-
explorer: IExplorers;
|
|
70
|
-
appearance: IAppearance;
|
|
71
|
-
showWalletUIs: boolean;
|
|
72
|
-
}
|
|
73
|
-
export type CheckedWallet = {
|
|
74
|
-
wallet: WalletInterface;
|
|
75
|
-
isAvailable: boolean;
|
|
76
|
-
isRecent?: boolean;
|
|
77
|
-
};
|
|
78
|
-
/**
|
|
79
|
-
* Information about the connected wallet.
|
|
80
|
-
*/
|
|
81
|
-
export interface WalletInfo {
|
|
82
|
-
passphrase: string;
|
|
83
|
-
name: SupportedWallets;
|
|
84
|
-
address: string | null;
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* User-related information within the context.
|
|
88
|
-
*/
|
|
89
|
-
export interface IUser {
|
|
90
|
-
wallet: WalletInfo | null;
|
|
91
|
-
email: string | null;
|
|
92
|
-
phoneNumber: number | null;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Context state management interface.
|
|
96
|
-
*/
|
|
97
|
-
export interface ContextState {
|
|
98
|
-
value: ContextInterface;
|
|
99
|
-
setValue: React.Dispatch<React.SetStateAction<ContextInterface>>;
|
|
100
|
-
route: Routes;
|
|
101
|
-
setRoute: React.Dispatch<React.SetStateAction<Routes>>;
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* Appearance customization options.
|
|
105
|
-
*/
|
|
106
|
-
export interface IAppearance {
|
|
107
|
-
theme: 'light' | 'dark';
|
|
108
|
-
background: string;
|
|
109
|
-
bgField: string;
|
|
110
|
-
accent: string;
|
|
111
|
-
textColor: string;
|
|
112
|
-
font: string;
|
|
113
|
-
borderRadius: string;
|
|
114
|
-
borderColor: string;
|
|
115
|
-
borderWidth: string;
|
|
116
|
-
includeBorders: boolean;
|
|
117
|
-
logo?: React.ImgHTMLAttributes<HTMLImageElement>['src'];
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* Structure of the global context values.
|
|
121
|
-
*/
|
|
122
|
-
export interface ContextInterface {
|
|
123
|
-
config: IConfig;
|
|
124
|
-
user: IUser;
|
|
125
|
-
isModalOpen: boolean;
|
|
126
|
-
isReady: boolean;
|
|
127
|
-
isDemo: boolean;
|
|
128
|
-
isAuthenticated: boolean;
|
|
129
|
-
availableWallets: CheckedWallet[];
|
|
130
|
-
waitingStatus: 'connecting' | 'signing';
|
|
131
|
-
showAllWallets: boolean;
|
|
132
|
-
activeNetwork: string;
|
|
133
|
-
account: UseAccountResult;
|
|
134
|
-
signTransaction: ISignTransaction<boolean>;
|
|
135
|
-
servers: {
|
|
136
|
-
horizon: Horizon.Server;
|
|
137
|
-
soroban: rpc.Server;
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* Enum defining different modal views.
|
|
142
|
-
*/
|
|
143
|
-
export declare enum Routes {
|
|
144
|
-
ONBOARDING = "ONBOARDING",// View for selecting a wallet
|
|
145
|
-
WRONG_NETWORK = "WRONG_NETWORK",// View for selecting a wallet
|
|
146
|
-
WAITING = "WAITING",// View for connection process
|
|
147
|
-
SUCCESSFUL = "SUCCESSFUL",// View for connection success process
|
|
148
|
-
PROFILE = "PROFILE",// User profile view
|
|
149
|
-
SIGN_TRANSACTION = "SIGN_TRANSACTION",// User sign transaction view
|
|
150
|
-
SEND = "SEND",// User sign transaction view
|
|
151
|
-
ACTIVITY = "ACTIVITY",// User sign transaction view
|
|
152
|
-
OTP = "OTP"
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* Modal state management interface.
|
|
156
|
-
*/
|
|
157
|
-
export interface ModalRoute {
|
|
158
|
-
route: Routes;
|
|
159
|
-
showAllWallets: boolean;
|
|
160
|
-
}
|
|
161
|
-
/**
|
|
162
|
-
* Defines the heights for different modal views.
|
|
163
|
-
*/
|
|
164
|
-
export interface ModalHeights {
|
|
165
|
-
[Routes.PROFILE]: number;
|
|
166
|
-
[Routes.WAITING]: number;
|
|
167
|
-
[Routes.ONBOARDING]: number;
|
|
168
|
-
[Routes.SUCCESSFUL]: number;
|
|
169
|
-
[Routes.SIGN_TRANSACTION]: number;
|
|
170
|
-
[Routes.SEND]: number;
|
|
171
|
-
[Routes.ACTIVITY]: number;
|
|
172
|
-
[Routes.OTP]: number;
|
|
173
|
-
}
|
|
174
|
-
/**
|
|
175
|
-
* Represents the result of a successful wallet connection.
|
|
176
|
-
*/
|
|
177
|
-
export interface ConnectResult {
|
|
178
|
-
publicKey: string;
|
|
179
|
-
}
|
|
180
|
-
/**
|
|
181
|
-
* Represents the result of a signed transaction.
|
|
182
|
-
*/
|
|
183
|
-
export interface SignResult {
|
|
184
|
-
signedXdr: string;
|
|
185
|
-
}
|
|
186
|
-
export interface GetNetworkResult {
|
|
187
|
-
network: string;
|
|
188
|
-
passphrase: string;
|
|
189
|
-
}
|
|
190
|
-
export interface ISendTransactionOptions {
|
|
191
|
-
network?: string;
|
|
192
|
-
isSoroban?: boolean;
|
|
193
|
-
}
|
|
194
|
-
export type ISendTransactionOptionsInternal = {
|
|
195
|
-
network: string;
|
|
196
|
-
isSoroban: boolean;
|
|
197
|
-
};
|
|
198
|
-
export type TransactionResponseType<T extends boolean> = T extends true ? rpc.Api.GetSuccessfulTransactionResponse : HorizonApi.SubmitTransactionResponse;
|
|
199
|
-
export interface ISignTransaction<IsSoroban extends boolean> {
|
|
200
|
-
options: ISendTransactionOptionsInternal;
|
|
201
|
-
xdr: string;
|
|
202
|
-
rejecter: ((reason: any) => void) | null;
|
|
203
|
-
result: TransactionResponseType<IsSoroban> | null;
|
|
204
|
-
resolver: ((value: TransactionResponseType<IsSoroban>) => void) | null;
|
|
205
|
-
}
|
|
206
|
-
/**
|
|
207
|
-
* Defines the available actions for interacting with a wallet.
|
|
208
|
-
*/
|
|
209
|
-
export interface WalletInterface {
|
|
210
|
-
name: SupportedWallets;
|
|
211
|
-
website: string;
|
|
212
|
-
isAvailable: () => Promise<boolean> | boolean;
|
|
213
|
-
connect: () => Promise<{
|
|
214
|
-
publicKey: string;
|
|
215
|
-
}>;
|
|
216
|
-
getAddress?: (options?: {
|
|
217
|
-
path?: string;
|
|
218
|
-
}) => Promise<{
|
|
219
|
-
address: string;
|
|
220
|
-
}>;
|
|
221
|
-
signTransaction?: (xdr: string, options?: {
|
|
222
|
-
networkPassphrase?: string;
|
|
223
|
-
address?: string;
|
|
224
|
-
submit?: boolean;
|
|
225
|
-
}) => Promise<string>;
|
|
226
|
-
disconnect?: () => Promise<void>;
|
|
227
|
-
getNetwork: () => Promise<{
|
|
228
|
-
network: string;
|
|
229
|
-
passphrase: string;
|
|
230
|
-
}>;
|
|
231
|
-
signMessage?: (message: string, options?: {
|
|
232
|
-
networkPassphrase?: string;
|
|
233
|
-
address?: string;
|
|
234
|
-
path?: string;
|
|
235
|
-
}) => Promise<{
|
|
236
|
-
signedMessage: string;
|
|
237
|
-
signerPublicKey?: string;
|
|
238
|
-
}>;
|
|
239
|
-
signAuthEntry?: (authorizationEntry: string, options?: {
|
|
240
|
-
networkPassphrase?: string;
|
|
241
|
-
address?: string;
|
|
242
|
-
path?: string;
|
|
243
|
-
}) => Promise<{
|
|
244
|
-
signedAuthorizationEntry: string;
|
|
245
|
-
signerPublicKey?: string;
|
|
246
|
-
}>;
|
|
247
|
-
}
|
|
248
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Asset } from '@stellar/stellar-sdk';
|
|
2
|
-
type UseBalanceParams = {
|
|
3
|
-
address?: string;
|
|
4
|
-
network?: string;
|
|
5
|
-
asset?: string | Asset;
|
|
6
|
-
};
|
|
7
|
-
interface UseBalanceResult {
|
|
8
|
-
balance: string;
|
|
9
|
-
loading: boolean;
|
|
10
|
-
error: Error | null;
|
|
11
|
-
}
|
|
12
|
-
declare const useBalance: ({ asset, address, network }: UseBalanceParams) => UseBalanceResult;
|
|
13
|
-
export default useBalance;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Horizon } from '@stellar/stellar-sdk';
|
|
2
|
-
interface UseTransactionsProps<T extends boolean = false> {
|
|
3
|
-
limit?: number;
|
|
4
|
-
address?: string;
|
|
5
|
-
network?: string;
|
|
6
|
-
includeOperations?: T;
|
|
7
|
-
}
|
|
8
|
-
interface TransactionRecordWithOperations extends Omit<Horizon.ServerApi.TransactionRecord, 'operations'> {
|
|
9
|
-
operations: Horizon.ServerApi.OperationRecord[];
|
|
10
|
-
}
|
|
11
|
-
type TransactionRecord<T extends boolean> = T extends true ? TransactionRecordWithOperations : Horizon.ServerApi.TransactionRecord;
|
|
12
|
-
interface UseTransactionsResult<T extends boolean> {
|
|
13
|
-
loading: boolean;
|
|
14
|
-
error: Error | null;
|
|
15
|
-
transactions: TransactionRecord<T>[];
|
|
16
|
-
}
|
|
17
|
-
declare const useTransactions: <T extends boolean = false>(params?: UseTransactionsProps<T>) => UseTransactionsResult<T>;
|
|
18
|
-
export default useTransactions;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Horizon } from '@stellar/stellar-sdk';
|
|
2
|
-
export interface IAssetImageDescription {
|
|
3
|
-
logo: string;
|
|
4
|
-
domain: string;
|
|
5
|
-
trustline: number;
|
|
6
|
-
asset_code: string;
|
|
7
|
-
description: string;
|
|
8
|
-
asset_issuer: string;
|
|
9
|
-
is_verified: boolean;
|
|
10
|
-
}
|
|
11
|
-
declare const getAssetLogos: (balanceLines: Horizon.HorizonApi.BalanceLine[]) => Promise<never[]>;
|
|
12
|
-
export default getAssetLogos;
|
package/dist/utils/copyText.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface UrlOptions {
|
|
2
|
-
allowHttp?: boolean;
|
|
3
|
-
appName?: string;
|
|
4
|
-
appVersion?: string;
|
|
5
|
-
authToken?: string;
|
|
6
|
-
retryCount?: number;
|
|
7
|
-
retryDelay?: number;
|
|
8
|
-
}
|
|
9
|
-
export interface Url extends UrlOptions {
|
|
10
|
-
url: string;
|
|
11
|
-
}
|
|
12
|
-
export declare const url: (urlStr: string, options?: UrlOptions) => Url;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
declare const getTransactionDetails: (xdr: string, network: string) => {
|
|
2
|
-
action: "createAccount" | "payment" | "pathPaymentStrictReceive" | "pathPaymentStrictSend" | "createPassiveSellOffer" | "manageSellOffer" | "manageBuyOffer" | "setOptions" | "changeTrust" | "allowTrust" | "accountMerge" | "inflation" | "manageData" | "bumpSequence" | "createClaimableBalance" | "claimClaimableBalance" | "beginSponsoringFutureReserves" | "endSponsoringFutureReserves" | "revokeSponsorship" | "clawback" | "clawbackClaimableBalance" | "setTrustLineFlags" | "liquidityPoolDeposit" | "liquidityPoolWithdraw" | "invokeHostFunction" | "extendFootprintTtl" | "restoreFootprint";
|
|
3
|
-
operations: number;
|
|
4
|
-
sender: string;
|
|
5
|
-
receiver: string | null;
|
|
6
|
-
estimatedFee: number;
|
|
7
|
-
} | null;
|
|
8
|
-
export default getTransactionDetails;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ISendTransactionOptionsInternal, ITransports, WalletInterface } from '../../types';
|
|
2
|
-
declare const handleTransactionSigning: (wallet: WalletInterface, xdr: string, userAddress: string, options: ISendTransactionOptionsInternal, transports: ITransports) => Promise<import("@stellar/stellar-sdk/lib/rpc").Api.GetSuccessfulTransactionResponse | import("@stellar/stellar-sdk/lib/horizon").HorizonApi.SubmitTransactionResponse>;
|
|
3
|
-
export default handleTransactionSigning;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { Horizon } from '@stellar/stellar-sdk';
|
|
2
|
-
import { IAsset } from '../../types';
|
|
3
|
-
declare const paymentTransaction: (memo: string, amount: string, destinationAddress: string, asset: IAsset, sourceAddress: string, server: Horizon.Server, networkPassphrase: string) => Promise<string>;
|
|
4
|
-
export default paymentTransaction;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Horizon, rpc } from '@stellar/stellar-sdk';
|
|
2
|
-
import { ISendTransactionOptionsInternal, ITransports } from '../../types';
|
|
3
|
-
declare function submitTransaction(xdr: string, options: ISendTransactionOptionsInternal & {
|
|
4
|
-
isSoroban: true;
|
|
5
|
-
}, transports: ITransports): Promise<rpc.Api.GetSuccessfulTransactionResponse>;
|
|
6
|
-
declare function submitTransaction(xdr: string, options: ISendTransactionOptionsInternal & {
|
|
7
|
-
isSoroban?: false;
|
|
8
|
-
}, transports: ITransports): Promise<Horizon.HorizonApi.SubmitTransactionResponse>;
|
|
9
|
-
declare function submitTransaction(xdr: string, options: ISendTransactionOptionsInternal, transports: ITransports): Promise<rpc.Api.GetSuccessfulTransactionResponse | Horizon.HorizonApi.SubmitTransactionResponse>;
|
|
10
|
-
export default submitTransaction;
|