diff options
Diffstat (limited to 'src/external/stellar-freighter-api/@stellar/freighter-api')
11 files changed, 65 insertions, 0 deletions
diff --git a/src/external/stellar-freighter-api/@stellar/freighter-api/src/getNetwork.d.ts b/src/external/stellar-freighter-api/@stellar/freighter-api/src/getNetwork.d.ts new file mode 100644 index 0000000..6352aa0 --- /dev/null +++ b/src/external/stellar-freighter-api/@stellar/freighter-api/src/getNetwork.d.ts @@ -0,0 +1 @@ +export declare const getNetwork: () => Promise<string>; diff --git a/src/external/stellar-freighter-api/@stellar/freighter-api/src/getNetworkDetails.d.ts b/src/external/stellar-freighter-api/@stellar/freighter-api/src/getNetworkDetails.d.ts new file mode 100644 index 0000000..b161629 --- /dev/null +++ b/src/external/stellar-freighter-api/@stellar/freighter-api/src/getNetworkDetails.d.ts @@ -0,0 +1,6 @@ +export declare const getNetworkDetails: () => Promise<{ + network: string; + networkUrl: string; + networkPassphrase: string; + sorobanRpcUrl?: string; +}>; diff --git a/src/external/stellar-freighter-api/@stellar/freighter-api/src/getPublicKey.d.ts b/src/external/stellar-freighter-api/@stellar/freighter-api/src/getPublicKey.d.ts new file mode 100644 index 0000000..80cf670 --- /dev/null +++ b/src/external/stellar-freighter-api/@stellar/freighter-api/src/getPublicKey.d.ts @@ -0,0 +1 @@ +export declare const getPublicKey: () => Promise<string>; diff --git a/src/external/stellar-freighter-api/@stellar/freighter-api/src/getUserInfo.d.ts b/src/external/stellar-freighter-api/@stellar/freighter-api/src/getUserInfo.d.ts new file mode 100644 index 0000000..0a464a2 --- /dev/null +++ b/src/external/stellar-freighter-api/@stellar/freighter-api/src/getUserInfo.d.ts @@ -0,0 +1,3 @@ +export declare const getUserInfo: () => Promise<{ + publicKey: string; +}>; diff --git a/src/external/stellar-freighter-api/@stellar/freighter-api/src/index.d.ts b/src/external/stellar-freighter-api/@stellar/freighter-api/src/index.d.ts new file mode 100644 index 0000000..8c3e29a --- /dev/null +++ b/src/external/stellar-freighter-api/@stellar/freighter-api/src/index.d.ts @@ -0,0 +1,40 @@ +import { getPublicKey } from "./getPublicKey"; +import { signTransaction } from "./signTransaction"; +import { signBlob } from "./signBlob"; +import { signAuthEntry } from "./signAuthEntry"; +import { isConnected } from "./isConnected"; +import { getNetwork } from "./getNetwork"; +import { getNetworkDetails } from "./getNetworkDetails"; +import { isAllowed } from "./isAllowed"; +import { setAllowed } from "./setAllowed"; +import { getUserInfo } from "./getUserInfo"; +export declare const isBrowser: boolean; +export { getPublicKey, signTransaction, signBlob, signAuthEntry, isConnected, getNetwork, getNetworkDetails, isAllowed, setAllowed, getUserInfo, }; +declare const _default: { + getPublicKey: () => Promise<string>; + signTransaction: (transactionXdr: string, opts?: { + network?: string | undefined; + networkPassphrase?: string | undefined; + accountToSign?: string | undefined; + } | undefined) => Promise<string>; + signBlob: (blob: string, opts?: { + accountToSign?: string | undefined; + } | undefined) => Promise<string>; + signAuthEntry: (entryXdr: string, opts?: { + accountToSign?: string | undefined; + } | undefined) => Promise<string>; + isConnected: () => Promise<boolean>; + getNetwork: () => Promise<string>; + getNetworkDetails: () => Promise<{ + network: string; + networkUrl: string; + networkPassphrase: string; + sorobanRpcUrl?: string | undefined; + }>; + isAllowed: () => Promise<boolean>; + setAllowed: () => Promise<boolean>; + getUserInfo: () => Promise<{ + publicKey: string; + }>; +}; +export default _default; diff --git a/src/external/stellar-freighter-api/@stellar/freighter-api/src/isAllowed.d.ts b/src/external/stellar-freighter-api/@stellar/freighter-api/src/isAllowed.d.ts new file mode 100644 index 0000000..39eed0a --- /dev/null +++ b/src/external/stellar-freighter-api/@stellar/freighter-api/src/isAllowed.d.ts @@ -0,0 +1 @@ +export declare const isAllowed: () => Promise<boolean>; diff --git a/src/external/stellar-freighter-api/@stellar/freighter-api/src/isConnected.d.ts b/src/external/stellar-freighter-api/@stellar/freighter-api/src/isConnected.d.ts new file mode 100644 index 0000000..8e4b262 --- /dev/null +++ b/src/external/stellar-freighter-api/@stellar/freighter-api/src/isConnected.d.ts @@ -0,0 +1 @@ +export declare const isConnected: () => Promise<boolean>; diff --git a/src/external/stellar-freighter-api/@stellar/freighter-api/src/setAllowed.d.ts b/src/external/stellar-freighter-api/@stellar/freighter-api/src/setAllowed.d.ts new file mode 100644 index 0000000..989cab6 --- /dev/null +++ b/src/external/stellar-freighter-api/@stellar/freighter-api/src/setAllowed.d.ts @@ -0,0 +1 @@ +export declare const setAllowed: () => Promise<boolean>; diff --git a/src/external/stellar-freighter-api/@stellar/freighter-api/src/signAuthEntry.d.ts b/src/external/stellar-freighter-api/@stellar/freighter-api/src/signAuthEntry.d.ts new file mode 100644 index 0000000..ca8cc91 --- /dev/null +++ b/src/external/stellar-freighter-api/@stellar/freighter-api/src/signAuthEntry.d.ts @@ -0,0 +1,3 @@ +export declare const signAuthEntry: (entryXdr: string, opts?: { + accountToSign?: string | undefined; +} | undefined) => Promise<string>; diff --git a/src/external/stellar-freighter-api/@stellar/freighter-api/src/signBlob.d.ts b/src/external/stellar-freighter-api/@stellar/freighter-api/src/signBlob.d.ts new file mode 100644 index 0000000..eab6a5a --- /dev/null +++ b/src/external/stellar-freighter-api/@stellar/freighter-api/src/signBlob.d.ts @@ -0,0 +1,3 @@ +export declare const signBlob: (blob: string, opts?: { + accountToSign?: string | undefined; +} | undefined) => Promise<string>; diff --git a/src/external/stellar-freighter-api/@stellar/freighter-api/src/signTransaction.d.ts b/src/external/stellar-freighter-api/@stellar/freighter-api/src/signTransaction.d.ts new file mode 100644 index 0000000..2605f0f --- /dev/null +++ b/src/external/stellar-freighter-api/@stellar/freighter-api/src/signTransaction.d.ts @@ -0,0 +1,5 @@ +export declare const signTransaction: (transactionXdr: string, opts?: { + network?: string | undefined; + networkPassphrase?: string | undefined; + accountToSign?: string | undefined; +} | undefined) => Promise<string>; |