@raintree-technology/perps 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +33 -0
- package/LICENSE +21 -0
- package/README.md +175 -0
- package/dist/adapters/aevo.d.ts +64 -0
- package/dist/adapters/aevo.js +899 -0
- package/dist/adapters/certification.d.ts +33 -0
- package/dist/adapters/certification.js +99 -0
- package/dist/adapters/decibel/order-manager.d.ts +45 -0
- package/dist/adapters/decibel/order-manager.js +140 -0
- package/dist/adapters/decibel/rest-client.d.ts +176 -0
- package/dist/adapters/decibel/rest-client.js +155 -0
- package/dist/adapters/decibel/ws-feed.d.ts +28 -0
- package/dist/adapters/decibel/ws-feed.js +166 -0
- package/dist/adapters/decibel.d.ts +108 -0
- package/dist/adapters/decibel.js +1377 -0
- package/dist/adapters/hyperliquid.d.ts +63 -0
- package/dist/adapters/hyperliquid.js +797 -0
- package/dist/adapters/index.d.ts +11 -0
- package/dist/adapters/index.js +12 -0
- package/dist/adapters/interface.d.ts +310 -0
- package/dist/adapters/interface.js +15 -0
- package/dist/adapters/orderly.d.ts +70 -0
- package/dist/adapters/orderly.js +936 -0
- package/dist/adapters/paradex.d.ts +69 -0
- package/dist/adapters/paradex.js +862 -0
- package/dist/adapters/utils.d.ts +17 -0
- package/dist/adapters/utils.js +122 -0
- package/dist/cli/command-metadata.d.ts +2 -0
- package/dist/cli/command-metadata.js +44 -0
- package/dist/cli/context.d.ts +14 -0
- package/dist/cli/context.js +59 -0
- package/dist/cli/experience.d.ts +48 -0
- package/dist/cli/experience.js +243 -0
- package/dist/cli/ink/app/AppShell.d.ts +12 -0
- package/dist/cli/ink/app/AppShell.js +32 -0
- package/dist/cli/ink/app/MetricStrip.d.ts +6 -0
- package/dist/cli/ink/app/MetricStrip.js +14 -0
- package/dist/cli/ink/app/Panel.d.ts +9 -0
- package/dist/cli/ink/app/Panel.js +7 -0
- package/dist/cli/ink/app/ascii.d.ts +2 -0
- package/dist/cli/ink/app/ascii.js +46 -0
- package/dist/cli/ink/app/index.d.ts +5 -0
- package/dist/cli/ink/app/index.js +4 -0
- package/dist/cli/ink/app/types.d.ts +15 -0
- package/dist/cli/ink/app/types.js +1 -0
- package/dist/cli/ink/components/PnL.d.ts +12 -0
- package/dist/cli/ink/components/PnL.js +23 -0
- package/dist/cli/ink/components/Spinner.d.ts +13 -0
- package/dist/cli/ink/components/Spinner.js +13 -0
- package/dist/cli/ink/components/Table.d.ts +14 -0
- package/dist/cli/ink/components/Table.js +42 -0
- package/dist/cli/ink/components/WatchHeader.d.ts +10 -0
- package/dist/cli/ink/components/WatchHeader.js +18 -0
- package/dist/cli/ink/components/index.d.ts +4 -0
- package/dist/cli/ink/components/index.js +4 -0
- package/dist/cli/ink/index.d.ts +4 -0
- package/dist/cli/ink/index.js +4 -0
- package/dist/cli/ink/render.d.ts +12 -0
- package/dist/cli/ink/render.js +21 -0
- package/dist/cli/ink/theme.d.ts +29 -0
- package/dist/cli/ink/theme.js +40 -0
- package/dist/cli/network-defaults.d.ts +10 -0
- package/dist/cli/network-defaults.js +35 -0
- package/dist/cli/output.d.ts +11 -0
- package/dist/cli/output.js +115 -0
- package/dist/cli/program.d.ts +18 -0
- package/dist/cli/program.js +164 -0
- package/dist/cli/watch.d.ts +19 -0
- package/dist/cli/watch.js +35 -0
- package/dist/client/index.d.ts +55 -0
- package/dist/client/index.js +157 -0
- package/dist/commands/account/add.d.ts +2 -0
- package/dist/commands/account/add.js +510 -0
- package/dist/commands/account/balances-simple.d.ts +5 -0
- package/dist/commands/account/balances-simple.js +63 -0
- package/dist/commands/account/index.d.ts +2 -0
- package/dist/commands/account/index.js +17 -0
- package/dist/commands/account/ls.d.ts +2 -0
- package/dist/commands/account/ls.js +95 -0
- package/dist/commands/account/positions-simple.d.ts +5 -0
- package/dist/commands/account/positions-simple.js +77 -0
- package/dist/commands/account/remove.d.ts +2 -0
- package/dist/commands/account/remove.js +47 -0
- package/dist/commands/account/set-default.d.ts +2 -0
- package/dist/commands/account/set-default.js +47 -0
- package/dist/commands/agent/index.d.ts +2 -0
- package/dist/commands/agent/index.js +126 -0
- package/dist/commands/arb/alert.d.ts +6 -0
- package/dist/commands/arb/alert.js +88 -0
- package/dist/commands/arb/basis-execute.d.ts +6 -0
- package/dist/commands/arb/basis-execute.js +332 -0
- package/dist/commands/arb/basis.d.ts +6 -0
- package/dist/commands/arb/basis.js +181 -0
- package/dist/commands/arb/compare.d.ts +6 -0
- package/dist/commands/arb/compare.js +216 -0
- package/dist/commands/arb/execute.d.ts +6 -0
- package/dist/commands/arb/execute.js +467 -0
- package/dist/commands/arb/funding.d.ts +6 -0
- package/dist/commands/arb/funding.js +201 -0
- package/dist/commands/arb/history.d.ts +6 -0
- package/dist/commands/arb/history.js +153 -0
- package/dist/commands/arb/index.d.ts +6 -0
- package/dist/commands/arb/index.js +29 -0
- package/dist/commands/arb/positions.d.ts +6 -0
- package/dist/commands/arb/positions.js +158 -0
- package/dist/commands/arb/spread.d.ts +6 -0
- package/dist/commands/arb/spread.js +253 -0
- package/dist/commands/arb/track.d.ts +6 -0
- package/dist/commands/arb/track.js +259 -0
- package/dist/commands/asset/book-simple.d.ts +5 -0
- package/dist/commands/asset/book-simple.js +77 -0
- package/dist/commands/asset/index.d.ts +2 -0
- package/dist/commands/asset/index.js +5 -0
- package/dist/commands/completion.d.ts +2 -0
- package/dist/commands/completion.js +161 -0
- package/dist/commands/config/index.d.ts +5 -0
- package/dist/commands/config/index.js +109 -0
- package/dist/commands/data/index.d.ts +31 -0
- package/dist/commands/data/index.js +1466 -0
- package/dist/commands/doctor.d.ts +2 -0
- package/dist/commands/doctor.js +201 -0
- package/dist/commands/exchange/index.d.ts +2 -0
- package/dist/commands/exchange/index.js +107 -0
- package/dist/commands/index.d.ts +2 -0
- package/dist/commands/index.js +48 -0
- package/dist/commands/markets/index.d.ts +2 -0
- package/dist/commands/markets/index.js +5 -0
- package/dist/commands/markets/ls-simple.d.ts +7 -0
- package/dist/commands/markets/ls-simple.js +277 -0
- package/dist/commands/operator/index.d.ts +2 -0
- package/dist/commands/operator/index.js +146 -0
- package/dist/commands/order/cancel-simple.d.ts +5 -0
- package/dist/commands/order/cancel-simple.js +104 -0
- package/dist/commands/order/index.d.ts +2 -0
- package/dist/commands/order/index.js +13 -0
- package/dist/commands/order/limit-simple.d.ts +5 -0
- package/dist/commands/order/limit-simple.js +195 -0
- package/dist/commands/order/market-simple.d.ts +5 -0
- package/dist/commands/order/market-simple.js +190 -0
- package/dist/commands/order/shared.d.ts +17 -0
- package/dist/commands/order/shared.js +51 -0
- package/dist/commands/order/trigger-simple.d.ts +5 -0
- package/dist/commands/order/trigger-simple.js +246 -0
- package/dist/commands/referral/index.d.ts +2 -0
- package/dist/commands/referral/index.js +7 -0
- package/dist/commands/referral/set.d.ts +2 -0
- package/dist/commands/referral/set.js +26 -0
- package/dist/commands/referral/status.d.ts +2 -0
- package/dist/commands/referral/status.js +31 -0
- package/dist/commands/replay/index.d.ts +2 -0
- package/dist/commands/replay/index.js +152 -0
- package/dist/commands/risk/analytics.d.ts +2 -0
- package/dist/commands/risk/analytics.js +64 -0
- package/dist/commands/risk/audit.d.ts +2 -0
- package/dist/commands/risk/audit.js +52 -0
- package/dist/commands/risk/index.d.ts +2 -0
- package/dist/commands/risk/index.js +9 -0
- package/dist/commands/risk/rules.d.ts +2 -0
- package/dist/commands/risk/rules.js +102 -0
- package/dist/commands/server.d.ts +2 -0
- package/dist/commands/server.js +208 -0
- package/dist/commands/setup/index.d.ts +2 -0
- package/dist/commands/setup/index.js +478 -0
- package/dist/commands/signal/index.d.ts +2 -0
- package/dist/commands/signal/index.js +129 -0
- package/dist/commands/state/index.d.ts +2 -0
- package/dist/commands/state/index.js +5 -0
- package/dist/commands/state/show.d.ts +2 -0
- package/dist/commands/state/show.js +105 -0
- package/dist/commands/strategy/index.d.ts +4 -0
- package/dist/commands/strategy/index.js +73 -0
- package/dist/commands/traces/index.d.ts +2 -0
- package/dist/commands/traces/index.js +76 -0
- package/dist/commands/ui/demo.d.ts +9 -0
- package/dist/commands/ui/demo.js +195 -0
- package/dist/commands/ui/index.d.ts +2 -0
- package/dist/commands/ui/index.js +7 -0
- package/dist/commands/ui/terminal.d.ts +2 -0
- package/dist/commands/ui/terminal.js +255 -0
- package/dist/commands/upgrade.d.ts +2 -0
- package/dist/commands/upgrade.js +98 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4 -0
- package/dist/lib/agent/audit.d.ts +12 -0
- package/dist/lib/agent/audit.js +13 -0
- package/dist/lib/agent/gateway.d.ts +13 -0
- package/dist/lib/agent/gateway.js +598 -0
- package/dist/lib/agent/metrics.d.ts +33 -0
- package/dist/lib/agent/metrics.js +175 -0
- package/dist/lib/agent/signature.d.ts +8 -0
- package/dist/lib/agent/signature.js +28 -0
- package/dist/lib/agent/tools.d.ts +28 -0
- package/dist/lib/agent/tools.js +453 -0
- package/dist/lib/agent/x402.d.ts +23 -0
- package/dist/lib/agent/x402.js +62 -0
- package/dist/lib/api-wallet.d.ts +69 -0
- package/dist/lib/api-wallet.js +101 -0
- package/dist/lib/balance-watcher.d.ts +25 -0
- package/dist/lib/balance-watcher.js +83 -0
- package/dist/lib/book-watcher.d.ts +25 -0
- package/dist/lib/book-watcher.js +48 -0
- package/dist/lib/config.d.ts +88 -0
- package/dist/lib/config.js +427 -0
- package/dist/lib/constants.d.ts +50 -0
- package/dist/lib/constants.js +84 -0
- package/dist/lib/contracts.d.ts +7 -0
- package/dist/lib/contracts.js +8 -0
- package/dist/lib/credential-vault.d.ts +22 -0
- package/dist/lib/credential-vault.js +109 -0
- package/dist/lib/db/accounts.d.ts +83 -0
- package/dist/lib/db/accounts.js +203 -0
- package/dist/lib/db/funding-history.d.ts +69 -0
- package/dist/lib/db/funding-history.js +183 -0
- package/dist/lib/db/index.d.ts +11 -0
- package/dist/lib/db/index.js +272 -0
- package/dist/lib/events/bus.d.ts +10 -0
- package/dist/lib/events/bus.js +17 -0
- package/dist/lib/events/types.d.ts +51 -0
- package/dist/lib/events/types.js +1 -0
- package/dist/lib/exchange.d.ts +30 -0
- package/dist/lib/exchange.js +84 -0
- package/dist/lib/execution/journal.d.ts +25 -0
- package/dist/lib/execution/journal.js +158 -0
- package/dist/lib/execution/safety.d.ts +34 -0
- package/dist/lib/execution/safety.js +197 -0
- package/dist/lib/exit-codes.d.ts +18 -0
- package/dist/lib/exit-codes.js +60 -0
- package/dist/lib/fetch.d.ts +18 -0
- package/dist/lib/fetch.js +66 -0
- package/dist/lib/fs-security.d.ts +10 -0
- package/dist/lib/fs-security.js +26 -0
- package/dist/lib/funding-tracker.d.ts +40 -0
- package/dist/lib/funding-tracker.js +118 -0
- package/dist/lib/logger.d.ts +27 -0
- package/dist/lib/logger.js +82 -0
- package/dist/lib/network-model.d.ts +13 -0
- package/dist/lib/network-model.js +30 -0
- package/dist/lib/onboarding.d.ts +133 -0
- package/dist/lib/onboarding.js +1459 -0
- package/dist/lib/operator-state.d.ts +25 -0
- package/dist/lib/operator-state.js +82 -0
- package/dist/lib/orders-watcher.d.ts +24 -0
- package/dist/lib/orders-watcher.js +74 -0
- package/dist/lib/paths.d.ts +20 -0
- package/dist/lib/paths.js +23 -0
- package/dist/lib/portfolio-watcher.d.ts +33 -0
- package/dist/lib/portfolio-watcher.js +95 -0
- package/dist/lib/position-watcher.d.ts +16 -0
- package/dist/lib/position-watcher.js +44 -0
- package/dist/lib/price-watcher.d.ts +15 -0
- package/dist/lib/price-watcher.js +84 -0
- package/dist/lib/prompts.d.ts +32 -0
- package/dist/lib/prompts.js +105 -0
- package/dist/lib/rate-limit.d.ts +32 -0
- package/dist/lib/rate-limit.js +88 -0
- package/dist/lib/risk/analytics.d.ts +39 -0
- package/dist/lib/risk/analytics.js +98 -0
- package/dist/lib/risk/drawdown.d.ts +18 -0
- package/dist/lib/risk/drawdown.js +49 -0
- package/dist/lib/risk/evaluation-log.d.ts +29 -0
- package/dist/lib/risk/evaluation-log.js +61 -0
- package/dist/lib/risk/index.d.ts +4 -0
- package/dist/lib/risk/index.js +4 -0
- package/dist/lib/risk/limits.d.ts +23 -0
- package/dist/lib/risk/limits.js +27 -0
- package/dist/lib/risk/manager.d.ts +32 -0
- package/dist/lib/risk/manager.js +85 -0
- package/dist/lib/risk/policy-middleware.d.ts +33 -0
- package/dist/lib/risk/policy-middleware.js +267 -0
- package/dist/lib/risk/position-sizer.d.ts +9 -0
- package/dist/lib/risk/position-sizer.js +14 -0
- package/dist/lib/risk/rules-store.d.ts +16 -0
- package/dist/lib/risk/rules-store.js +47 -0
- package/dist/lib/schema.d.ts +254 -0
- package/dist/lib/schema.js +199 -0
- package/dist/lib/secrets.d.ts +3 -0
- package/dist/lib/secrets.js +62 -0
- package/dist/lib/settings.d.ts +24 -0
- package/dist/lib/settings.js +86 -0
- package/dist/lib/signals.d.ts +73 -0
- package/dist/lib/signals.js +136 -0
- package/dist/lib/stable-stringify.d.ts +6 -0
- package/dist/lib/stable-stringify.js +17 -0
- package/dist/lib/state-context.d.ts +44 -0
- package/dist/lib/state-context.js +133 -0
- package/dist/lib/strategy/basis-trade.d.ts +2 -0
- package/dist/lib/strategy/basis-trade.js +24 -0
- package/dist/lib/strategy/funding-arb.d.ts +2 -0
- package/dist/lib/strategy/funding-arb.js +23 -0
- package/dist/lib/strategy/interface.d.ts +23 -0
- package/dist/lib/strategy/interface.js +1 -0
- package/dist/lib/strategy/registry.d.ts +4 -0
- package/dist/lib/strategy/registry.js +10 -0
- package/dist/lib/telemetry.d.ts +25 -0
- package/dist/lib/telemetry.js +101 -0
- package/dist/lib/trace-queries.d.ts +20 -0
- package/dist/lib/trace-queries.js +133 -0
- package/dist/lib/trace.d.ts +1 -0
- package/dist/lib/trace.js +4 -0
- package/dist/lib/trade-reputation.d.ts +6 -0
- package/dist/lib/trade-reputation.js +99 -0
- package/dist/lib/ui-tokens.d.ts +21 -0
- package/dist/lib/ui-tokens.js +26 -0
- package/dist/lib/validate.d.ts +39 -0
- package/dist/lib/validate.js +108 -0
- package/dist/lib/validation.d.ts +9 -0
- package/dist/lib/validation.js +64 -0
- package/dist/server/cache.d.ts +38 -0
- package/dist/server/cache.js +56 -0
- package/dist/server/index.d.ts +2 -0
- package/dist/server/index.js +89 -0
- package/dist/server/ipc.d.ts +18 -0
- package/dist/server/ipc.js +159 -0
- package/dist/server/subscriptions.d.ts +18 -0
- package/dist/server/subscriptions.js +114 -0
- package/package.json +124 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const INTENT_DEFAULTS = {
|
|
2
|
+
execution: "testnet",
|
|
3
|
+
data: "mainnet",
|
|
4
|
+
neutral: null,
|
|
5
|
+
};
|
|
6
|
+
export function resolveNetworkDecision(input) {
|
|
7
|
+
if (input.cliOverride) {
|
|
8
|
+
return {
|
|
9
|
+
network: input.cliOverride,
|
|
10
|
+
source: "cli-override",
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
if (input.exchangeOverride) {
|
|
14
|
+
return {
|
|
15
|
+
network: input.exchangeOverride,
|
|
16
|
+
source: "exchange-override",
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
const intentDefault = INTENT_DEFAULTS[input.intent];
|
|
20
|
+
if (intentDefault) {
|
|
21
|
+
return {
|
|
22
|
+
network: intentDefault,
|
|
23
|
+
source: "intent-default",
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
network: input.fallbackNetwork ?? "mainnet",
|
|
28
|
+
source: "fallback",
|
|
29
|
+
};
|
|
30
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { type Address, type Hex } from "viem";
|
|
2
|
+
export type SetupMode = "mainnet-data" | "testnet-execution" | "both";
|
|
3
|
+
export type SetupChain = "evm" | "aptos" | "starknet";
|
|
4
|
+
export type SetupExchange = "hyperliquid" | "decibel" | "aevo" | "orderly" | "paradex";
|
|
5
|
+
export type FundingStatus = "ok" | "skipped" | "manual" | "error";
|
|
6
|
+
export interface ManualFollowUp {
|
|
7
|
+
exchange: SetupExchange;
|
|
8
|
+
env: string[];
|
|
9
|
+
detail: string;
|
|
10
|
+
}
|
|
11
|
+
export interface OnboardingProfile {
|
|
12
|
+
mode: SetupMode;
|
|
13
|
+
chains: SetupChain[];
|
|
14
|
+
exchanges: SetupExchange[];
|
|
15
|
+
generatedAt: string;
|
|
16
|
+
credentials: {
|
|
17
|
+
hyperliquid?: {
|
|
18
|
+
privateKey: Hex;
|
|
19
|
+
walletAddress: Address;
|
|
20
|
+
};
|
|
21
|
+
decibel?: {
|
|
22
|
+
apiWalletPrivateKey: string;
|
|
23
|
+
apiWalletAddress: string;
|
|
24
|
+
apiBearerToken?: string;
|
|
25
|
+
};
|
|
26
|
+
aevo?: {
|
|
27
|
+
signingKey: Hex;
|
|
28
|
+
apiKey?: string;
|
|
29
|
+
apiSecret?: string;
|
|
30
|
+
};
|
|
31
|
+
orderly?: {
|
|
32
|
+
tradingSecret: Hex;
|
|
33
|
+
accountId?: string;
|
|
34
|
+
key?: string;
|
|
35
|
+
secret?: string;
|
|
36
|
+
};
|
|
37
|
+
paradex?: {
|
|
38
|
+
privateKey: string;
|
|
39
|
+
starkPublicKey: string;
|
|
40
|
+
accountAddress?: string;
|
|
41
|
+
ethereumAccount?: string;
|
|
42
|
+
apiBearerToken?: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
wallets: {
|
|
46
|
+
evmAddress?: Address;
|
|
47
|
+
aptosAddress?: string;
|
|
48
|
+
starkPublicKey?: string;
|
|
49
|
+
};
|
|
50
|
+
manualFollowUps: ManualFollowUp[];
|
|
51
|
+
}
|
|
52
|
+
export interface OnboardingFundingOptions {
|
|
53
|
+
orderlyBrokerId?: string;
|
|
54
|
+
orderlyChainId?: number;
|
|
55
|
+
aptosFaucetJwt?: string;
|
|
56
|
+
aptosFaucetAmount?: number;
|
|
57
|
+
}
|
|
58
|
+
export interface OnboardingAuthOptions {
|
|
59
|
+
decibelBearerToken?: string;
|
|
60
|
+
aevoApiKey?: string;
|
|
61
|
+
aevoApiSecret?: string;
|
|
62
|
+
aevoAccountPrivateKey?: Hex;
|
|
63
|
+
aevoRestUrl?: string;
|
|
64
|
+
orderlyBrokerId?: string;
|
|
65
|
+
orderlyChainId?: number;
|
|
66
|
+
orderlyRestUrl?: string;
|
|
67
|
+
orderlyAccountId?: string;
|
|
68
|
+
orderlyKey?: string;
|
|
69
|
+
orderlySecret?: string;
|
|
70
|
+
paradexApiBearerToken?: string;
|
|
71
|
+
paradexAccountAddress?: string;
|
|
72
|
+
paradexEthereumAccount?: string;
|
|
73
|
+
paradexRestUrl?: string;
|
|
74
|
+
}
|
|
75
|
+
export interface FundingResult {
|
|
76
|
+
exchange: SetupExchange;
|
|
77
|
+
service: string;
|
|
78
|
+
status: FundingStatus;
|
|
79
|
+
detail: string;
|
|
80
|
+
}
|
|
81
|
+
export interface AuthResult {
|
|
82
|
+
exchange: SetupExchange;
|
|
83
|
+
service: string;
|
|
84
|
+
status: FundingStatus;
|
|
85
|
+
detail: string;
|
|
86
|
+
}
|
|
87
|
+
export type OnboardingStep = "plan" | "generate" | "fund" | "verify" | "report";
|
|
88
|
+
export type OnboardingStepStatus = "pending" | "running" | "done" | "error";
|
|
89
|
+
export interface OnboardingRunState {
|
|
90
|
+
id: string;
|
|
91
|
+
idempotencyKey: string;
|
|
92
|
+
mode: SetupMode;
|
|
93
|
+
exchanges: SetupExchange[];
|
|
94
|
+
updatedAt: string;
|
|
95
|
+
statusByStep: Record<OnboardingStep, OnboardingStepStatus>;
|
|
96
|
+
profile?: OnboardingProfile;
|
|
97
|
+
authResults?: AuthResult[];
|
|
98
|
+
fundingResults?: FundingResult[];
|
|
99
|
+
notes: string[];
|
|
100
|
+
}
|
|
101
|
+
export interface OnboardingRunResult {
|
|
102
|
+
profile: OnboardingProfile;
|
|
103
|
+
authResults: AuthResult[];
|
|
104
|
+
fundingResults: FundingResult[];
|
|
105
|
+
statePath: string;
|
|
106
|
+
state: OnboardingRunState;
|
|
107
|
+
}
|
|
108
|
+
export declare const ALL_SETUP_CHAINS: SetupChain[];
|
|
109
|
+
export declare const ALL_SETUP_EXCHANGES: SetupExchange[];
|
|
110
|
+
export declare const SETUP_MODES: SetupMode[];
|
|
111
|
+
export declare function bootstrapOnboardingAuth(profile: OnboardingProfile, options?: OnboardingAuthOptions): Promise<AuthResult[]>;
|
|
112
|
+
export declare function parseSetupMode(value: string): SetupMode;
|
|
113
|
+
export declare function parseSetupChains(value: string): SetupChain[];
|
|
114
|
+
export declare function parseSetupExchanges(value: string): SetupExchange[];
|
|
115
|
+
export declare function resolveExchangesFromChains(chains: SetupChain[]): SetupExchange[];
|
|
116
|
+
export declare function inferChainsFromExchanges(exchanges: SetupExchange[]): SetupChain[];
|
|
117
|
+
export declare function createOnboardingProfile(args: {
|
|
118
|
+
mode: SetupMode;
|
|
119
|
+
exchanges: SetupExchange[];
|
|
120
|
+
}): OnboardingProfile;
|
|
121
|
+
export declare function buildOnboardingEnvFile(profile: OnboardingProfile): string;
|
|
122
|
+
export declare function fundOnboardingWallets(profile: OnboardingProfile, options?: OnboardingFundingOptions): Promise<FundingResult[]>;
|
|
123
|
+
export declare function runOnboardingStateMachine(args: {
|
|
124
|
+
mode: SetupMode;
|
|
125
|
+
exchanges: SetupExchange[];
|
|
126
|
+
shouldFund: boolean;
|
|
127
|
+
fundingOptions?: OnboardingFundingOptions;
|
|
128
|
+
shouldBootstrapAuth?: boolean;
|
|
129
|
+
authOptions?: OnboardingAuthOptions;
|
|
130
|
+
statePath?: string;
|
|
131
|
+
resume?: boolean;
|
|
132
|
+
fundingRetries?: number;
|
|
133
|
+
}): Promise<OnboardingRunResult>;
|