@glacislabs/stablegenie-zerodelta 4.12.0 → 4.13.1
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/dist/{chunk-A7ADZJXA.js → chunk-6WFIFKZ4.js} +1427 -227
- package/dist/{chunk-MA2VYFG3.js → chunk-M55J3P64.js} +961 -97
- package/dist/core/index.cjs +2086 -239
- package/dist/core/index.d.cts +449 -40
- package/dist/core/index.d.ts +449 -40
- package/dist/core/index.js +1 -1
- package/dist/ed25519-FZW4JEOV.js +526 -0
- package/dist/ed25519-GAMEXARB.js +11 -0
- package/dist/index.cjs +3085 -450
- package/dist/index.d.cts +96 -4
- package/dist/index.d.ts +96 -4
- package/dist/index.js +2 -2
- package/dist/{mount-hxb3zioQ.d.ts → mount-B6soKC-9.d.ts} +1 -1
- package/dist/{mount-xruGixNZ.d.cts → mount-CEy4Nqky.d.cts} +1 -1
- package/dist/mount.cjs +3076 -448
- package/dist/mount.d.cts +2 -2
- package/dist/mount.d.ts +2 -2
- package/dist/mount.js +2 -2
- package/dist/standalone.global.js +13 -9
- package/dist/{verify-D8tr1yY1.d.cts → verify-Y9jZ83T5.d.cts} +81 -68
- package/dist/{verify-D8tr1yY1.d.ts → verify-Y9jZ83T5.d.ts} +81 -68
- package/package.json +4 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,101 @@
|
|
|
1
|
-
export { B as BankPayoutAccount, E as Eip1193Provider, a as ExchangeInput, b as ExchangeMode, L as LinkIdentity, M as MountConfig, P as PaymentIsland, c as PaymentIslandKind, d as PaymentIslandProps, e as PillOpenAs, S as SettlementMethod, f as StableGenieConfig, g as StableGenieExchange, h as StableGenieExchangeProps, i as StableGeniePay, j as StableGeniePayProps, k as StableGenieProvider, l as StableGenieRwaExchange, m as StableGenieSwap, n as StableGenieSwapProps, o as StableGenieTheme, p as SuccessInfo, q as SupportedAsset, r as darkTheme, s as lightTheme, t as mount, u as resolveTheme } from './mount-
|
|
1
|
+
export { B as BankPayoutAccount, E as Eip1193Provider, a as ExchangeInput, b as ExchangeMode, L as LinkIdentity, M as MountConfig, P as PaymentIsland, c as PaymentIslandKind, d as PaymentIslandProps, e as PillOpenAs, S as SettlementMethod, f as StableGenieConfig, g as StableGenieExchange, h as StableGenieExchangeProps, i as StableGeniePay, j as StableGeniePayProps, k as StableGenieProvider, l as StableGenieRwaExchange, m as StableGenieSwap, n as StableGenieSwapProps, o as StableGenieTheme, p as SuccessInfo, q as SupportedAsset, r as darkTheme, s as lightTheme, t as mount, u as resolveTheme } from './mount-CEy4Nqky.cjs';
|
|
2
2
|
import * as react from 'react';
|
|
3
|
-
import { C as Compliance } from './verify-
|
|
4
|
-
export { A as Availability, B as BrokenLane, a as Catalogue, b as Chain, c as ComplianceCheck, d as ComplianceTone, e as ComplianceView, E as EngineConfig, f as ExchangeProduct, L as LaneLimit, P as Plan, R as Route, g as RouteLeg, h as RouteResult, S as SanitizedTxEntry, T as Token, i as TxHistoryEntry, V as VerifyResult, W as WalletScreen, j as assetClassOf, k as brokenLaneReason, l as complianceChecks, m as complianceControlsLine, n as complianceView, o as counterpartTokens, p as destinationAvailability, q as formatJurisdiction, r as humanizeComplianceReason } from './verify-
|
|
3
|
+
import { C as Compliance } from './verify-Y9jZ83T5.cjs';
|
|
4
|
+
export { A as Availability, B as BrokenLane, a as Catalogue, b as Chain, c as ComplianceCheck, d as ComplianceTone, e as ComplianceView, E as EngineConfig, f as ExchangeProduct, L as LaneLimit, P as Plan, R as Route, g as RouteLeg, h as RouteResult, S as SanitizedTxEntry, T as Token, i as TxHistoryEntry, V as VerifyResult, W as WalletScreen, j as assetClassOf, k as brokenLaneReason, l as complianceChecks, m as complianceControlsLine, n as complianceView, o as counterpartTokens, p as destinationAvailability, q as formatJurisdiction, r as humanizeComplianceReason } from './verify-Y9jZ83T5.cjs';
|
|
5
5
|
export { EXECUTABLE_STABLE_ASSETS, Engine, STABLE_ASSETS, SUPPORTED_ASSETS, SUPPORTED_CHAIN_IDS, TRADEABLE_RWA_ASSETS, createEngine, symbolKey } from './core/index.cjs';
|
|
6
6
|
|
|
7
|
+
interface SolanaWalletInfo {
|
|
8
|
+
name: string;
|
|
9
|
+
icon?: string;
|
|
10
|
+
kind: "standard" | "legacy";
|
|
11
|
+
}
|
|
12
|
+
interface SolanaAccount {
|
|
13
|
+
address: string;
|
|
14
|
+
chains?: readonly string[];
|
|
15
|
+
}
|
|
16
|
+
interface SolanaWalletSigner {
|
|
17
|
+
publicKey: string;
|
|
18
|
+
signTransaction(bytes: Uint8Array): Promise<Uint8Array>;
|
|
19
|
+
}
|
|
20
|
+
interface StandardSolanaWallet {
|
|
21
|
+
name: string;
|
|
22
|
+
icon?: string;
|
|
23
|
+
chains: readonly string[];
|
|
24
|
+
accounts?: readonly SolanaAccount[];
|
|
25
|
+
features: {
|
|
26
|
+
"standard:connect"?: {
|
|
27
|
+
connect(options?: {
|
|
28
|
+
silent?: boolean;
|
|
29
|
+
}): Promise<{
|
|
30
|
+
accounts?: readonly SolanaAccount[];
|
|
31
|
+
} | void>;
|
|
32
|
+
};
|
|
33
|
+
"standard:disconnect"?: {
|
|
34
|
+
disconnect(): Promise<void>;
|
|
35
|
+
};
|
|
36
|
+
"standard:events"?: {
|
|
37
|
+
on(event: "change", cb: (change: {
|
|
38
|
+
accounts?: readonly SolanaAccount[];
|
|
39
|
+
}) => void): () => void;
|
|
40
|
+
};
|
|
41
|
+
"solana:signTransaction"?: {
|
|
42
|
+
signTransaction(...inputs: {
|
|
43
|
+
account: SolanaAccount;
|
|
44
|
+
chain: "solana:mainnet";
|
|
45
|
+
transaction: Uint8Array;
|
|
46
|
+
}[]): Promise<readonly {
|
|
47
|
+
signedTransaction: Uint8Array;
|
|
48
|
+
}[]>;
|
|
49
|
+
};
|
|
50
|
+
[feature: string]: unknown;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
type PublicKey = {
|
|
54
|
+
toString(): string;
|
|
55
|
+
};
|
|
56
|
+
interface LegacySolanaProvider {
|
|
57
|
+
name?: string;
|
|
58
|
+
isPhantom?: boolean;
|
|
59
|
+
isSolflare?: boolean;
|
|
60
|
+
publicKey?: PublicKey | null;
|
|
61
|
+
connect(options?: {
|
|
62
|
+
onlyIfTrusted?: boolean;
|
|
63
|
+
}): Promise<{
|
|
64
|
+
publicKey?: PublicKey;
|
|
65
|
+
} | void>;
|
|
66
|
+
disconnect?(): Promise<void>;
|
|
67
|
+
on?(event: string, cb: (key?: PublicKey | null) => void): unknown;
|
|
68
|
+
off?(event: string, cb: (key?: PublicKey | null) => void): unknown;
|
|
69
|
+
removeListener?(event: string, cb: (key?: PublicKey | null) => void): unknown;
|
|
70
|
+
/** Explicit bytes API only: legacy signTransaction usually requires a web3.js object. */
|
|
71
|
+
signTransactionBytes?(bytes: Uint8Array): Promise<Uint8Array>;
|
|
72
|
+
}
|
|
73
|
+
type SolanaWalletProvider = StandardSolanaWallet | LegacySolanaProvider;
|
|
74
|
+
/** Stable snapshot; the registry retains both handshake directions for late extension registration. */
|
|
75
|
+
declare function discoverSolanaWallets(win?: Window): readonly SolanaWalletInfo[];
|
|
76
|
+
/** Notifications carry the current snapshot. Focus also refreshes legacy injection. */
|
|
77
|
+
declare function watchSolanaWallets(cb: (wallets: readonly SolanaWalletInfo[]) => void, win?: Window): () => void;
|
|
78
|
+
declare function connectSolanaWallet(info: SolanaWalletInfo, options?: {
|
|
79
|
+
silent?: boolean;
|
|
80
|
+
}): Promise<string>;
|
|
81
|
+
declare function disconnectSolanaWallet(info: SolanaWalletInfo): Promise<void>;
|
|
82
|
+
/** Recipient-only wallets remain connectable; this fails only when a host requests a payer. */
|
|
83
|
+
declare function solanaWalletSigner(info: SolanaWalletInfo): SolanaWalletSigner;
|
|
84
|
+
declare function onSolanaAccountChange(info: SolanaWalletInfo, cb: (address: string | null) => void): () => void;
|
|
85
|
+
|
|
86
|
+
interface SolanaWalletState {
|
|
87
|
+
wallets: readonly SolanaWalletInfo[];
|
|
88
|
+
address: string | null;
|
|
89
|
+
walletName: string | null;
|
|
90
|
+
status: "idle" | "connecting" | "connected" | "error";
|
|
91
|
+
error: string | null;
|
|
92
|
+
/** Multiple wallets without a name returns the candidates for a host-owned chooser. */
|
|
93
|
+
connect(name?: string): Promise<string | readonly SolanaWalletInfo[] | undefined>;
|
|
94
|
+
disconnect(): Promise<void>;
|
|
95
|
+
}
|
|
96
|
+
/** Address-only Solana connection; an injected provider overrides browser discovery. */
|
|
97
|
+
declare function useSolanaWallet(provider?: SolanaWalletProvider): SolanaWalletState;
|
|
98
|
+
|
|
7
99
|
declare function CompliancePanel(props: {
|
|
8
100
|
compliance?: Compliance | null;
|
|
9
101
|
/**
|
|
@@ -20,4 +112,4 @@ declare function CompliancePanel(props: {
|
|
|
20
112
|
hasQuote?: boolean;
|
|
21
113
|
}): react.JSX.Element;
|
|
22
114
|
|
|
23
|
-
export { Compliance, CompliancePanel };
|
|
115
|
+
export { Compliance, CompliancePanel, type LegacySolanaProvider, type SolanaAccount, type SolanaWalletInfo, type SolanaWalletProvider, type SolanaWalletSigner, type SolanaWalletState, type StandardSolanaWallet, connectSolanaWallet, disconnectSolanaWallet, discoverSolanaWallets, onSolanaAccountChange, solanaWalletSigner, useSolanaWallet, watchSolanaWallets };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,101 @@
|
|
|
1
|
-
export { B as BankPayoutAccount, E as Eip1193Provider, a as ExchangeInput, b as ExchangeMode, L as LinkIdentity, M as MountConfig, P as PaymentIsland, c as PaymentIslandKind, d as PaymentIslandProps, e as PillOpenAs, S as SettlementMethod, f as StableGenieConfig, g as StableGenieExchange, h as StableGenieExchangeProps, i as StableGeniePay, j as StableGeniePayProps, k as StableGenieProvider, l as StableGenieRwaExchange, m as StableGenieSwap, n as StableGenieSwapProps, o as StableGenieTheme, p as SuccessInfo, q as SupportedAsset, r as darkTheme, s as lightTheme, t as mount, u as resolveTheme } from './mount-
|
|
1
|
+
export { B as BankPayoutAccount, E as Eip1193Provider, a as ExchangeInput, b as ExchangeMode, L as LinkIdentity, M as MountConfig, P as PaymentIsland, c as PaymentIslandKind, d as PaymentIslandProps, e as PillOpenAs, S as SettlementMethod, f as StableGenieConfig, g as StableGenieExchange, h as StableGenieExchangeProps, i as StableGeniePay, j as StableGeniePayProps, k as StableGenieProvider, l as StableGenieRwaExchange, m as StableGenieSwap, n as StableGenieSwapProps, o as StableGenieTheme, p as SuccessInfo, q as SupportedAsset, r as darkTheme, s as lightTheme, t as mount, u as resolveTheme } from './mount-B6soKC-9.js';
|
|
2
2
|
import * as react from 'react';
|
|
3
|
-
import { C as Compliance } from './verify-
|
|
4
|
-
export { A as Availability, B as BrokenLane, a as Catalogue, b as Chain, c as ComplianceCheck, d as ComplianceTone, e as ComplianceView, E as EngineConfig, f as ExchangeProduct, L as LaneLimit, P as Plan, R as Route, g as RouteLeg, h as RouteResult, S as SanitizedTxEntry, T as Token, i as TxHistoryEntry, V as VerifyResult, W as WalletScreen, j as assetClassOf, k as brokenLaneReason, l as complianceChecks, m as complianceControlsLine, n as complianceView, o as counterpartTokens, p as destinationAvailability, q as formatJurisdiction, r as humanizeComplianceReason } from './verify-
|
|
3
|
+
import { C as Compliance } from './verify-Y9jZ83T5.js';
|
|
4
|
+
export { A as Availability, B as BrokenLane, a as Catalogue, b as Chain, c as ComplianceCheck, d as ComplianceTone, e as ComplianceView, E as EngineConfig, f as ExchangeProduct, L as LaneLimit, P as Plan, R as Route, g as RouteLeg, h as RouteResult, S as SanitizedTxEntry, T as Token, i as TxHistoryEntry, V as VerifyResult, W as WalletScreen, j as assetClassOf, k as brokenLaneReason, l as complianceChecks, m as complianceControlsLine, n as complianceView, o as counterpartTokens, p as destinationAvailability, q as formatJurisdiction, r as humanizeComplianceReason } from './verify-Y9jZ83T5.js';
|
|
5
5
|
export { EXECUTABLE_STABLE_ASSETS, Engine, STABLE_ASSETS, SUPPORTED_ASSETS, SUPPORTED_CHAIN_IDS, TRADEABLE_RWA_ASSETS, createEngine, symbolKey } from './core/index.js';
|
|
6
6
|
|
|
7
|
+
interface SolanaWalletInfo {
|
|
8
|
+
name: string;
|
|
9
|
+
icon?: string;
|
|
10
|
+
kind: "standard" | "legacy";
|
|
11
|
+
}
|
|
12
|
+
interface SolanaAccount {
|
|
13
|
+
address: string;
|
|
14
|
+
chains?: readonly string[];
|
|
15
|
+
}
|
|
16
|
+
interface SolanaWalletSigner {
|
|
17
|
+
publicKey: string;
|
|
18
|
+
signTransaction(bytes: Uint8Array): Promise<Uint8Array>;
|
|
19
|
+
}
|
|
20
|
+
interface StandardSolanaWallet {
|
|
21
|
+
name: string;
|
|
22
|
+
icon?: string;
|
|
23
|
+
chains: readonly string[];
|
|
24
|
+
accounts?: readonly SolanaAccount[];
|
|
25
|
+
features: {
|
|
26
|
+
"standard:connect"?: {
|
|
27
|
+
connect(options?: {
|
|
28
|
+
silent?: boolean;
|
|
29
|
+
}): Promise<{
|
|
30
|
+
accounts?: readonly SolanaAccount[];
|
|
31
|
+
} | void>;
|
|
32
|
+
};
|
|
33
|
+
"standard:disconnect"?: {
|
|
34
|
+
disconnect(): Promise<void>;
|
|
35
|
+
};
|
|
36
|
+
"standard:events"?: {
|
|
37
|
+
on(event: "change", cb: (change: {
|
|
38
|
+
accounts?: readonly SolanaAccount[];
|
|
39
|
+
}) => void): () => void;
|
|
40
|
+
};
|
|
41
|
+
"solana:signTransaction"?: {
|
|
42
|
+
signTransaction(...inputs: {
|
|
43
|
+
account: SolanaAccount;
|
|
44
|
+
chain: "solana:mainnet";
|
|
45
|
+
transaction: Uint8Array;
|
|
46
|
+
}[]): Promise<readonly {
|
|
47
|
+
signedTransaction: Uint8Array;
|
|
48
|
+
}[]>;
|
|
49
|
+
};
|
|
50
|
+
[feature: string]: unknown;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
type PublicKey = {
|
|
54
|
+
toString(): string;
|
|
55
|
+
};
|
|
56
|
+
interface LegacySolanaProvider {
|
|
57
|
+
name?: string;
|
|
58
|
+
isPhantom?: boolean;
|
|
59
|
+
isSolflare?: boolean;
|
|
60
|
+
publicKey?: PublicKey | null;
|
|
61
|
+
connect(options?: {
|
|
62
|
+
onlyIfTrusted?: boolean;
|
|
63
|
+
}): Promise<{
|
|
64
|
+
publicKey?: PublicKey;
|
|
65
|
+
} | void>;
|
|
66
|
+
disconnect?(): Promise<void>;
|
|
67
|
+
on?(event: string, cb: (key?: PublicKey | null) => void): unknown;
|
|
68
|
+
off?(event: string, cb: (key?: PublicKey | null) => void): unknown;
|
|
69
|
+
removeListener?(event: string, cb: (key?: PublicKey | null) => void): unknown;
|
|
70
|
+
/** Explicit bytes API only: legacy signTransaction usually requires a web3.js object. */
|
|
71
|
+
signTransactionBytes?(bytes: Uint8Array): Promise<Uint8Array>;
|
|
72
|
+
}
|
|
73
|
+
type SolanaWalletProvider = StandardSolanaWallet | LegacySolanaProvider;
|
|
74
|
+
/** Stable snapshot; the registry retains both handshake directions for late extension registration. */
|
|
75
|
+
declare function discoverSolanaWallets(win?: Window): readonly SolanaWalletInfo[];
|
|
76
|
+
/** Notifications carry the current snapshot. Focus also refreshes legacy injection. */
|
|
77
|
+
declare function watchSolanaWallets(cb: (wallets: readonly SolanaWalletInfo[]) => void, win?: Window): () => void;
|
|
78
|
+
declare function connectSolanaWallet(info: SolanaWalletInfo, options?: {
|
|
79
|
+
silent?: boolean;
|
|
80
|
+
}): Promise<string>;
|
|
81
|
+
declare function disconnectSolanaWallet(info: SolanaWalletInfo): Promise<void>;
|
|
82
|
+
/** Recipient-only wallets remain connectable; this fails only when a host requests a payer. */
|
|
83
|
+
declare function solanaWalletSigner(info: SolanaWalletInfo): SolanaWalletSigner;
|
|
84
|
+
declare function onSolanaAccountChange(info: SolanaWalletInfo, cb: (address: string | null) => void): () => void;
|
|
85
|
+
|
|
86
|
+
interface SolanaWalletState {
|
|
87
|
+
wallets: readonly SolanaWalletInfo[];
|
|
88
|
+
address: string | null;
|
|
89
|
+
walletName: string | null;
|
|
90
|
+
status: "idle" | "connecting" | "connected" | "error";
|
|
91
|
+
error: string | null;
|
|
92
|
+
/** Multiple wallets without a name returns the candidates for a host-owned chooser. */
|
|
93
|
+
connect(name?: string): Promise<string | readonly SolanaWalletInfo[] | undefined>;
|
|
94
|
+
disconnect(): Promise<void>;
|
|
95
|
+
}
|
|
96
|
+
/** Address-only Solana connection; an injected provider overrides browser discovery. */
|
|
97
|
+
declare function useSolanaWallet(provider?: SolanaWalletProvider): SolanaWalletState;
|
|
98
|
+
|
|
7
99
|
declare function CompliancePanel(props: {
|
|
8
100
|
compliance?: Compliance | null;
|
|
9
101
|
/**
|
|
@@ -20,4 +112,4 @@ declare function CompliancePanel(props: {
|
|
|
20
112
|
hasQuote?: boolean;
|
|
21
113
|
}): react.JSX.Element;
|
|
22
114
|
|
|
23
|
-
export { Compliance, CompliancePanel };
|
|
115
|
+
export { Compliance, CompliancePanel, type LegacySolanaProvider, type SolanaAccount, type SolanaWalletInfo, type SolanaWalletProvider, type SolanaWalletSigner, type SolanaWalletState, type StandardSolanaWallet, connectSolanaWallet, disconnectSolanaWallet, discoverSolanaWallets, onSolanaAccountChange, solanaWalletSigner, useSolanaWallet, watchSolanaWallets };
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { CompliancePanel, PaymentIsland, StableGenieExchange, StableGeniePay, StableGenieProvider, StableGenieRwaExchange, StableGenieSwap, darkTheme, lightTheme, mount, resolveTheme } from './chunk-
|
|
2
|
-
export { EXECUTABLE_STABLE_ASSETS, STABLE_ASSETS, SUPPORTED_ASSETS, SUPPORTED_CHAIN_IDS, TRADEABLE_RWA_ASSETS, assetClassOf, brokenLaneReason, complianceChecks, complianceControlsLine, complianceView, counterpartTokens, createEngine, destinationAvailability, formatJurisdiction, humanizeComplianceReason, symbolKey } from './chunk-
|
|
1
|
+
export { CompliancePanel, PaymentIsland, StableGenieExchange, StableGeniePay, StableGenieProvider, StableGenieRwaExchange, StableGenieSwap, connectSolanaWallet, darkTheme, disconnectSolanaWallet, discoverSolanaWallets, lightTheme, mount, onSolanaAccountChange, resolveTheme, solanaWalletSigner, useSolanaWallet, watchSolanaWallets } from './chunk-M55J3P64.js';
|
|
2
|
+
export { EXECUTABLE_STABLE_ASSETS, STABLE_ASSETS, SUPPORTED_ASSETS, SUPPORTED_CHAIN_IDS, TRADEABLE_RWA_ASSETS, assetClassOf, brokenLaneReason, complianceChecks, complianceControlsLine, complianceView, counterpartTokens, createEngine, destinationAvailability, formatJurisdiction, humanizeComplianceReason, symbolKey } from './chunk-6WFIFKZ4.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { P as Plan, V as VerifyResult, h as RouteResult, S as SanitizedTxEntry, f as ExchangeProduct } from './verify-
|
|
3
|
+
import { P as Plan, V as VerifyResult, h as RouteResult, S as SanitizedTxEntry, f as ExchangeProduct } from './verify-Y9jZ83T5.js';
|
|
4
4
|
|
|
5
5
|
interface Eip1193Provider {
|
|
6
6
|
request(args: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { P as Plan, V as VerifyResult, h as RouteResult, S as SanitizedTxEntry, f as ExchangeProduct } from './verify-
|
|
3
|
+
import { P as Plan, V as VerifyResult, h as RouteResult, S as SanitizedTxEntry, f as ExchangeProduct } from './verify-Y9jZ83T5.cjs';
|
|
4
4
|
|
|
5
5
|
interface Eip1193Provider {
|
|
6
6
|
request(args: {
|