-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ts
More file actions
74 lines (68 loc) · 2.05 KB
/
Copy pathindex.ts
File metadata and controls
74 lines (68 loc) · 2.05 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
export * from './amounts';
// Explicit re-export to resolve the ValidationResult naming collision
// between ./amounts and ./validators — the amounts.ts shape wins at
// the package root; validators.ts's own shape is still importable
// directly from "@invoice-liquidity/sdk/validators" if needed.
export type { ValidationResult } from './amounts';
export * from './client';
export * from './state';
export * from './payment';
export * from './invoice-status';
export * from './signers';
export * from './types';
export * from './timeouts';
export { ContractError } from './generated/types';
export * from './notifications';
export * from './analytics';
export * from './analytics-computations';
export type { UsageEvent } from './usage-analytics';
export * from './compatibility';
export * from './federation';
export * from './governance';
export * from './errors';
export * from './offline';
export * from './event-emitter';
export * from './recovery';
export * from './plugins';
export { BUILTIN_ANALYTICS_PLUGINS } from './analytics-plugins/builtins';
export * from './cache';
export * from './validators';
export * from './react-native';
export * from './insurance-types';
export { InsurancePoolClient } from './insurance-contract';
export type { InsuranceClientConfig } from './insurance-contract';
export const SDK_VERSION = '0.1.0';
export const NETWORKS = {
TESTNET: 'Test SDF Network ; September 2015',
MAINNET: 'Public Global Stellar Network ; September 2015',
STANDALONE: 'Standalone Network ; September 2022',
} as const;
export const DEFAULT_TIMEOUTS = {
readMs: 10_000,
writeMs: 30_000,
simulationMs: 15_000,
} as const;
export const DEFAULT_CACHE_CONFIG = {
ttl: 60_000,
storage: 'memory' as const,
enabled: true,
};
export const INVOICE_STATES = {
PENDING: 'Pending',
FUNDED: 'Funded',
PAID: 'Paid',
DEFAULTED: 'Defaulted',
DISPUTED: 'Disputed',
} as const;
export const TOKENS = {
USDC: {
symbol: 'USDC',
name: 'USD Coin',
decimals: 7,
},
EURC: {
symbol: 'EURC',
name: 'Euro Coin',
decimals: 7,
},
} as const;