diff options
Diffstat (limited to 'src/external/stellar-freighter-api/@shared/constants/soroban/token.d.ts')
-rw-r--r-- | src/external/stellar-freighter-api/@shared/constants/soroban/token.d.ts | 31 |
1 files changed, 31 insertions, 0 deletions
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; |