blob: 9c5ee8bb75bb234372dfb4e410e55b89e03df64a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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;
|