From 1904a913b84e01e902173e782ab45e0e3b4ccf8d Mon Sep 17 00:00:00 2001 From: kaotisk Date: Wed, 27 Dec 2023 16:29:28 +0200 Subject: Use only local libraries --- .../@stellar/freighter-api/src/getNetwork.d.ts | 1 + .../freighter-api/src/getNetworkDetails.d.ts | 6 ++++ .../@stellar/freighter-api/src/getPublicKey.d.ts | 1 + .../@stellar/freighter-api/src/getUserInfo.d.ts | 3 ++ .../@stellar/freighter-api/src/index.d.ts | 40 ++++++++++++++++++++++ .../@stellar/freighter-api/src/isAllowed.d.ts | 1 + .../@stellar/freighter-api/src/isConnected.d.ts | 1 + .../@stellar/freighter-api/src/setAllowed.d.ts | 1 + .../@stellar/freighter-api/src/signAuthEntry.d.ts | 3 ++ .../@stellar/freighter-api/src/signBlob.d.ts | 3 ++ .../freighter-api/src/signTransaction.d.ts | 5 +++ 11 files changed, 65 insertions(+) create mode 100644 src/external/stellar-freighter-api/@stellar/freighter-api/src/getNetwork.d.ts create mode 100644 src/external/stellar-freighter-api/@stellar/freighter-api/src/getNetworkDetails.d.ts create mode 100644 src/external/stellar-freighter-api/@stellar/freighter-api/src/getPublicKey.d.ts create mode 100644 src/external/stellar-freighter-api/@stellar/freighter-api/src/getUserInfo.d.ts create mode 100644 src/external/stellar-freighter-api/@stellar/freighter-api/src/index.d.ts create mode 100644 src/external/stellar-freighter-api/@stellar/freighter-api/src/isAllowed.d.ts create mode 100644 src/external/stellar-freighter-api/@stellar/freighter-api/src/isConnected.d.ts create mode 100644 src/external/stellar-freighter-api/@stellar/freighter-api/src/setAllowed.d.ts create mode 100644 src/external/stellar-freighter-api/@stellar/freighter-api/src/signAuthEntry.d.ts create mode 100644 src/external/stellar-freighter-api/@stellar/freighter-api/src/signBlob.d.ts create mode 100644 src/external/stellar-freighter-api/@stellar/freighter-api/src/signTransaction.d.ts (limited to 'src/external/stellar-freighter-api/@stellar') 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; 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; 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; + signTransaction: (transactionXdr: string, opts?: { + network?: string | undefined; + networkPassphrase?: string | undefined; + accountToSign?: string | undefined; + } | undefined) => Promise; + signBlob: (blob: string, opts?: { + accountToSign?: string | undefined; + } | undefined) => Promise; + signAuthEntry: (entryXdr: string, opts?: { + accountToSign?: string | undefined; + } | undefined) => Promise; + isConnected: () => Promise; + getNetwork: () => Promise; + getNetworkDetails: () => Promise<{ + network: string; + networkUrl: string; + networkPassphrase: string; + sorobanRpcUrl?: string | undefined; + }>; + isAllowed: () => Promise; + setAllowed: () => Promise; + 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; 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; 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; 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; 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; 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; -- cgit v1.2.3