diff options
Diffstat (limited to 'src/external/stellar-freighter-api/@shared/constants')
4 files changed, 49 insertions, 5 deletions
diff --git a/src/external/stellar-freighter-api/@shared/constants/hardwareWallet.d.ts b/src/external/stellar-freighter-api/@shared/constants/hardwareWallet.d.ts index 54b6088..1236577 100644 --- a/src/external/stellar-freighter-api/@shared/constants/hardwareWallet.d.ts +++ b/src/external/stellar-freighter-api/@shared/constants/hardwareWallet.d.ts @@ -2,3 +2,4 @@ export declare enum WalletType { LEDGER = "Ledger", NONE = "" } +export type ConfigurableWalletType = Exclude<WalletType, WalletType.NONE>; diff --git a/src/external/stellar-freighter-api/@shared/constants/services.d.ts b/src/external/stellar-freighter-api/@shared/constants/services.d.ts index 7c4738b..47dd853 100644 --- a/src/external/stellar-freighter-api/@shared/constants/services.d.ts +++ b/src/external/stellar-freighter-api/@shared/constants/services.d.ts @@ -9,30 +9,33 @@ export declare enum SERVICE_TYPES { UPDATE_ACCOUNT_NAME = "UPDATE_ACCOUNT_NAME", GET_MNEMONIC_PHRASE = "GET_MNEMONIC_PHRASE", CONFIRM_MNEMONIC_PHRASE = "CONFIRM_MNEMONIC_PHRASE", + CONFIRM_MIGRATED_MNEMONIC_PHRASE = "CONFIRM_MIGRATED_MNEMONIC_PHRASE", RECOVER_ACCOUNT = "RECOVER_ACCOUNT", CONFIRM_PASSWORD = "CONFIRM_PASSWORD", REJECT_ACCESS = "REJECT_ACCESS", GRANT_ACCESS = "GRANT_ACCESS", + ADD_TOKEN = "ADD_TOKEN", SIGN_TRANSACTION = "SIGN_TRANSACTION", SIGN_BLOB = "SIGN_BLOB", SIGN_AUTH_ENTRY = "SIGN_AUTH_ENTRY", - HANDLE_SIGNED_HW_TRANSACTION = "HANDLE_SIGNED_HW_TRANSACTION", + HANDLE_SIGNED_HW_PAYLOAD = "HANDLE_SIGNED_HW_PAYLOAD", REJECT_TRANSACTION = "REJECT_TRANSACTION", SIGN_FREIGHTER_TRANSACTION = "SIGN_FREIGHTER_TRANSACTION", SIGN_FREIGHTER_SOROBAN_TRANSACTION = "SIGN_FREIGHTER_SOROBAN_TRANSACTION", ADD_RECENT_ADDRESS = "ADD_RECENT_ADDRESS", LOAD_RECENT_ADDRESSES = "LOAD_RECENT_ADDRESSES", + LOAD_LAST_USED_ACCOUNT = "LOAD_LAST_USED_ACCOUNT", SIGN_OUT = "SIGN_OUT", SHOW_BACKUP_PHRASE = "SHOW_BACKUP_PHRASE", SAVE_ALLOWLIST = "SAVE_ALLOWLIST", SAVE_SETTINGS = "SAVE_SETTINGS", + SAVE_EXPERIMENTAL_FEATURES = "SAVE_EXPERIMENTAL_FEATURES", LOAD_SETTINGS = "LOAD_SETTINGS", GET_CACHED_ASSET_ICON = "GET_CACHED_ASSET_ICON", CACHE_ASSET_ICON = "CACHE_ASSET_ICON", GET_CACHED_ASSET_DOMAIN = "GET_CACHED_ASSET_DOMAIN", CACHE_ASSET_DOMAIN = "CACHE_ASSET_DOMAIN", - GET_BLOCKED_ACCOUNTS = "GET_BLOCKED_ACCOUNTS", - GET_BLOCKED_DOMAINS = "GET_BLOCKED_DOMAINS", + GET_MEMO_REQUIRED_ACCOUNTS = "GET_MEMO_REQUIRED_ACCOUNTS", ADD_CUSTOM_NETWORK = "ADD_CUSTOM_NETWORK", CHANGE_NETWORK = "CHANGE_NETWORK", REMOVE_CUSTOM_NETWORK = "REMOVE_CUSTOM_NETWORK", @@ -40,10 +43,17 @@ export declare enum SERVICE_TYPES { RESET_EXP_DATA = "RESET_EXP_DATA", ADD_TOKEN_ID = "ADD_TOKEN_ID", GET_TOKEN_IDS = "GET_TOKEN_IDS", - REMOVE_TOKEN_ID = "REMOVE_TOKEN_ID" + REMOVE_TOKEN_ID = "REMOVE_TOKEN_ID", + GET_MIGRATABLE_ACCOUNTS = "GET_MIGRATABLE_ACCOUNTS", + GET_MIGRATED_MNEMONIC_PHRASE = "GET_MIGRATED_MNEMONIC_PHRASE", + MIGRATE_ACCOUNTS = "MIGRATE_ACCOUNTS", + ADD_ASSETS_LIST = "ADD_ASSETS_LIST", + MODIFY_ASSETS_LIST = "MODIFY_ASSETS_LIST" } export declare enum EXTERNAL_SERVICE_TYPES { REQUEST_ACCESS = "REQUEST_ACCESS", + REQUEST_PUBLIC_KEY = "REQUEST_PUBLIC_KEY", + SUBMIT_TOKEN = "SUBMIT_TOKEN", SUBMIT_TRANSACTION = "SUBMIT_TRANSACTION", SUBMIT_BLOB = "SUBMIT_BLOB", SUBMIT_AUTH_ENTRY = "SUBMIT_AUTH_ENTRY", diff --git a/src/external/stellar-freighter-api/@shared/constants/soroban/token.d.ts b/src/external/stellar-freighter-api/@shared/constants/soroban/token.d.ts new file mode 100644 index 0000000..9c5ee8b --- /dev/null +++ b/src/external/stellar-freighter-api/@shared/constants/soroban/token.d.ts @@ -0,0 +1,31 @@ +import { NETWORKS } from "@shared/constants/stellar"; +export declare enum SorobanTokenInterface { + transfer = "transfer", + mint = "mint" +} +export type ArgsForTokenInvocation = { + from: string; + to: string; + amount: bigint | number; +}; +export type TokenInvocationArgs = ArgsForTokenInvocation & { + fnName: SorobanTokenInterface; + contractId: string; +}; +export interface SorobanToken { + transfer: (from: string, to: string, amount: number) => void; + mint: (to: string, amount: number) => void; + name: string; + balance: number; + symbol: string; + decimals: number; +} +export type AssetsListKey = NETWORKS.PUBLIC | NETWORKS.TESTNET; +export type AssetsLists = { + [K in AssetsListKey]: AssetsListItem[]; +}; +export interface AssetsListItem { + url: string; + isEnabled: boolean; +} +export declare const DEFAULT_ASSETS_LISTS: AssetsLists; diff --git a/src/external/stellar-freighter-api/@shared/constants/stellar.d.ts b/src/external/stellar-freighter-api/@shared/constants/stellar.d.ts index 7f54032..15bf3a5 100644 --- a/src/external/stellar-freighter-api/@shared/constants/stellar.d.ts +++ b/src/external/stellar-freighter-api/@shared/constants/stellar.d.ts @@ -18,7 +18,7 @@ export declare enum FRIENDBOT_URLS { FUTURENET = "https://friendbot-futurenet.stellar.org" } export declare const SOROBAN_RPC_URLS: { - [key in NETWORKS]?: string; + [key in NETWORKS]: string; }; export interface NetworkDetails { network: string; @@ -32,3 +32,5 @@ export declare const MAINNET_NETWORK_DETAILS: NetworkDetails; export declare const TESTNET_NETWORK_DETAILS: NetworkDetails; export declare const FUTURENET_NETWORK_DETAILS: NetworkDetails; export declare const DEFAULT_NETWORKS: Array<NetworkDetails>; +export declare const BASE_RESERVE: 0.5; +export declare const BASE_RESERVE_MIN_COUNT: 2; |