@aurum-sdk/types 0.1.1 → 0.1.3
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/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -120,7 +120,7 @@ interface NonNullableBrandConfig extends Omit<BrandConfig, 'theme' | 'primaryCol
|
|
|
120
120
|
font: string;
|
|
121
121
|
walletLayout: WalletLayout;
|
|
122
122
|
}
|
|
123
|
-
interface
|
|
123
|
+
interface EmbeddedWalletsConfig {
|
|
124
124
|
projectId: string;
|
|
125
125
|
}
|
|
126
126
|
interface WalletConnectConfig {
|
|
@@ -130,7 +130,7 @@ interface WalletConnectConfig {
|
|
|
130
130
|
* walletConnect projectId is used for WalletConnect, AppKit, and Ledger wallets
|
|
131
131
|
*/
|
|
132
132
|
interface WalletsConfig {
|
|
133
|
-
|
|
133
|
+
embedded?: EmbeddedWalletsConfig;
|
|
134
134
|
walletConnect?: WalletConnectConfig;
|
|
135
135
|
exclude?: WalletId[] | `${WalletId}`[];
|
|
136
136
|
}
|
|
@@ -147,4 +147,4 @@ interface UserInfo {
|
|
|
147
147
|
email?: string;
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
export { type AurumConfig, type AurumRpcProvider, BORDER_RADIUS_SCALES, type BorderRadiusScale, type BorderRadiusSizeSlot, type BorderRadiusToken, type BrandConfig, type EmailAuthStartResult, type EmailAuthVerifyResult, type
|
|
150
|
+
export { type AurumConfig, type AurumRpcProvider, BORDER_RADIUS_SCALES, type BorderRadiusScale, type BorderRadiusSizeSlot, type BorderRadiusToken, type BrandConfig, type EmailAuthStartResult, type EmailAuthVerifyResult, type EmbeddedWalletsConfig, type NonNullableBrandConfig, type ProviderConnectInfo, type ProviderRpcError, type Theme, type UserInfo, type WalletConnectConfig, type WalletConnectSessionResult, WalletId, type WalletLayout, WalletName, type WalletsConfig };
|
package/dist/index.d.ts
CHANGED
|
@@ -120,7 +120,7 @@ interface NonNullableBrandConfig extends Omit<BrandConfig, 'theme' | 'primaryCol
|
|
|
120
120
|
font: string;
|
|
121
121
|
walletLayout: WalletLayout;
|
|
122
122
|
}
|
|
123
|
-
interface
|
|
123
|
+
interface EmbeddedWalletsConfig {
|
|
124
124
|
projectId: string;
|
|
125
125
|
}
|
|
126
126
|
interface WalletConnectConfig {
|
|
@@ -130,7 +130,7 @@ interface WalletConnectConfig {
|
|
|
130
130
|
* walletConnect projectId is used for WalletConnect, AppKit, and Ledger wallets
|
|
131
131
|
*/
|
|
132
132
|
interface WalletsConfig {
|
|
133
|
-
|
|
133
|
+
embedded?: EmbeddedWalletsConfig;
|
|
134
134
|
walletConnect?: WalletConnectConfig;
|
|
135
135
|
exclude?: WalletId[] | `${WalletId}`[];
|
|
136
136
|
}
|
|
@@ -147,4 +147,4 @@ interface UserInfo {
|
|
|
147
147
|
email?: string;
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
export { type AurumConfig, type AurumRpcProvider, BORDER_RADIUS_SCALES, type BorderRadiusScale, type BorderRadiusSizeSlot, type BorderRadiusToken, type BrandConfig, type EmailAuthStartResult, type EmailAuthVerifyResult, type
|
|
150
|
+
export { type AurumConfig, type AurumRpcProvider, BORDER_RADIUS_SCALES, type BorderRadiusScale, type BorderRadiusSizeSlot, type BorderRadiusToken, type BrandConfig, type EmailAuthStartResult, type EmailAuthVerifyResult, type EmbeddedWalletsConfig, type NonNullableBrandConfig, type ProviderConnectInfo, type ProviderRpcError, type Theme, type UserInfo, type WalletConnectConfig, type WalletConnectSessionResult, WalletId, type WalletLayout, WalletName, type WalletsConfig };
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/sdk-config.ts","../src/wallet.ts"],"names":["WalletName","WalletId"],"mappings":";;;AAsBO,IAAM,oBAAA,GAAqE;AAAA,EAChF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AA,EAAA;AAYL,IAAK,QAAA,qBAAAC,SAAAA,KAAL;AACL,EAAAA,UAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,UAAA,UAAA,CAAA,GAAW,UAAA;AACX,EAAAA,UAAA,gBAAA,CAAA,GAAiB,iBAAA;AACjB,EAAAA,UAAA,SAAA,CAAA,GAAU,SAAA;AACV,EAAAA,UAAA,eAAA,CAAA,GAAgB,eAAA;AAChB,EAAAA,UAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,UAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,UAAA,QAAA,CAAA,GAAS,QAAA;AACT,EAAAA,UAAA,QAAA,CAAA,GAAS,QAAA;AATC,EAAA,OAAAA,SAAAA;AAAA,CAAA,EAAA,QAAA,IAAA,EAAA","file":"index.js","sourcesContent":["import { WalletId } from './wallet';\n\nexport type Theme = 'light' | 'dark';\nexport type BorderRadiusToken = 'none' | 'sm' | 'md' | 'lg' | 'xl';\nexport type WalletLayout = 'stacked' | 'grid';\n\n/**\n * Border radius scale for each size slot (xs through xl).\n * Values are in pixels.\n */\nexport interface BorderRadiusScale {\n xs: number;\n sm: number;\n md: number;\n lg: number;\n xl: number;\n}\n\n/**\n * Complete border radius scales for each token.\n * Each token provides a consistent scale of pixel values.\n */\nexport const BORDER_RADIUS_SCALES: Record<BorderRadiusToken, BorderRadiusScale> = {\n none: { xs: 0, sm: 0, md: 0, lg: 0, xl: 0 },\n sm: { xs: 4, sm: 6, md: 8, lg: 10, xl: 12 },\n md: { xs: 6, sm: 10, md: 14, lg: 18, xl: 22 },\n lg: { xs: 8, sm: 14, md: 20, lg: 26, xl: 32 },\n xl: { xs: 10, sm: 18, md: 26, lg: 34, xl: 42 },\n};\n\nexport type BorderRadiusSizeSlot = keyof BorderRadiusScale;\n\nexport interface BrandConfig {\n theme?: Theme;\n logo?: string;\n primaryColor?: string;\n borderRadius?: BorderRadiusToken;\n modalZIndex?: number;\n appName?: string;\n hideFooter?: boolean;\n font?: string;\n walletLayout?: WalletLayout;\n}\n\nexport interface NonNullableBrandConfig\n extends Omit<\n BrandConfig,\n 'theme' | 'primaryColor' | 'borderRadius' | 'modalZIndex' | 'appName' | 'hideFooter' | 'font' | 'walletLayout'\n > {\n theme: Theme;\n primaryColor: string;\n borderRadius: BorderRadiusToken;\n modalZIndex: number;\n appName: string;\n hideFooter: boolean;\n font: string;\n walletLayout: WalletLayout;\n}\n\nexport interface
|
|
1
|
+
{"version":3,"sources":["../src/sdk-config.ts","../src/wallet.ts"],"names":["WalletName","WalletId"],"mappings":";;;AAsBO,IAAM,oBAAA,GAAqE;AAAA,EAChF,IAAA,EAAM,EAAE,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,CAAA,EAAE;AAAA,EAC1C,EAAA,EAAI,EAAE,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAG;AAAA,EAC1C,EAAA,EAAI,EAAE,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAG;AAAA,EAC5C,EAAA,EAAI,EAAE,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAG;AAAA,EAC5C,EAAA,EAAI,EAAE,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA;AAC5C;;;AC5BO,IAAK,UAAA,qBAAAA,WAAAA,KAAL;AACL,EAAAA,YAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,YAAA,UAAA,CAAA,GAAW,UAAA;AACX,EAAAA,YAAA,gBAAA,CAAA,GAAiB,iBAAA;AACjB,EAAAA,YAAA,SAAA,CAAA,GAAU,SAAA;AACV,EAAAA,YAAA,eAAA,CAAA,GAAgB,eAAA;AAChB,EAAAA,YAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,YAAA,OAAA,CAAA,GAAQ,cAAA;AACR,EAAAA,YAAA,QAAA,CAAA,GAAS,QAAA;AACT,EAAAA,YAAA,QAAA,CAAA,GAAS,QAAA;AATC,EAAA,OAAAA,WAAAA;AAAA,CAAA,EAAA,UAAA,IAAA,EAAA;AAYL,IAAK,QAAA,qBAAAC,SAAAA,KAAL;AACL,EAAAA,UAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,UAAA,UAAA,CAAA,GAAW,UAAA;AACX,EAAAA,UAAA,gBAAA,CAAA,GAAiB,iBAAA;AACjB,EAAAA,UAAA,SAAA,CAAA,GAAU,SAAA;AACV,EAAAA,UAAA,eAAA,CAAA,GAAgB,eAAA;AAChB,EAAAA,UAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,UAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,UAAA,QAAA,CAAA,GAAS,QAAA;AACT,EAAAA,UAAA,QAAA,CAAA,GAAS,QAAA;AATC,EAAA,OAAAA,SAAAA;AAAA,CAAA,EAAA,QAAA,IAAA,EAAA","file":"index.js","sourcesContent":["import { WalletId } from './wallet';\n\nexport type Theme = 'light' | 'dark';\nexport type BorderRadiusToken = 'none' | 'sm' | 'md' | 'lg' | 'xl';\nexport type WalletLayout = 'stacked' | 'grid';\n\n/**\n * Border radius scale for each size slot (xs through xl).\n * Values are in pixels.\n */\nexport interface BorderRadiusScale {\n xs: number;\n sm: number;\n md: number;\n lg: number;\n xl: number;\n}\n\n/**\n * Complete border radius scales for each token.\n * Each token provides a consistent scale of pixel values.\n */\nexport const BORDER_RADIUS_SCALES: Record<BorderRadiusToken, BorderRadiusScale> = {\n none: { xs: 0, sm: 0, md: 0, lg: 0, xl: 0 },\n sm: { xs: 4, sm: 6, md: 8, lg: 10, xl: 12 },\n md: { xs: 6, sm: 10, md: 14, lg: 18, xl: 22 },\n lg: { xs: 8, sm: 14, md: 20, lg: 26, xl: 32 },\n xl: { xs: 10, sm: 18, md: 26, lg: 34, xl: 42 },\n};\n\nexport type BorderRadiusSizeSlot = keyof BorderRadiusScale;\n\nexport interface BrandConfig {\n theme?: Theme;\n logo?: string;\n primaryColor?: string;\n borderRadius?: BorderRadiusToken;\n modalZIndex?: number;\n appName?: string;\n hideFooter?: boolean;\n font?: string;\n walletLayout?: WalletLayout;\n}\n\nexport interface NonNullableBrandConfig\n extends Omit<\n BrandConfig,\n 'theme' | 'primaryColor' | 'borderRadius' | 'modalZIndex' | 'appName' | 'hideFooter' | 'font' | 'walletLayout'\n > {\n theme: Theme;\n primaryColor: string;\n borderRadius: BorderRadiusToken;\n modalZIndex: number;\n appName: string;\n hideFooter: boolean;\n font: string;\n walletLayout: WalletLayout;\n}\n\nexport interface EmbeddedWalletsConfig {\n projectId: string;\n}\n\nexport interface WalletConnectConfig {\n projectId: string;\n}\n\n/**\n * walletConnect projectId is used for WalletConnect, AppKit, and Ledger wallets\n */\nexport interface WalletsConfig {\n embedded?: EmbeddedWalletsConfig;\n walletConnect?: WalletConnectConfig;\n exclude?: WalletId[] | `${WalletId}`[];\n}\n\nexport interface AurumConfig {\n brand?: BrandConfig;\n wallets?: WalletsConfig;\n telemetry?: boolean;\n}\n","export enum WalletName {\n Email = 'Email',\n MetaMask = 'MetaMask',\n CoinbaseWallet = 'Coinbase Wallet',\n Phantom = 'Phantom',\n WalletConnect = 'WalletConnect',\n Rabby = 'Rabby',\n Brave = 'Brave Wallet',\n Ledger = 'Ledger',\n AppKit = 'AppKit',\n}\n\nexport enum WalletId {\n Email = 'email',\n MetaMask = 'metamask',\n CoinbaseWallet = 'coinbase-wallet',\n Phantom = 'phantom',\n WalletConnect = 'walletconnect',\n Rabby = 'rabby',\n Brave = 'brave',\n Ledger = 'ledger',\n AppKit = 'appkit',\n}\n"]}
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/sdk-config.ts","../src/wallet.ts"],"names":["WalletName","WalletId"],"mappings":";AAsBO,IAAM,oBAAA,GAAqE;AAAA,EAChF,IAAA,EAAM,EAAE,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,CAAA,EAAE;AAAA,EAC1C,EAAA,EAAI,EAAE,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAG;AAAA,EAC1C,EAAA,EAAI,EAAE,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAG;AAAA,EAC5C,EAAA,EAAI,EAAE,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAG;AAAA,EAC5C,EAAA,EAAI,EAAE,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA;AAC5C;;;AC5BO,IAAK,UAAA,qBAAAA,WAAAA,KAAL;AACL,EAAAA,YAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,YAAA,UAAA,CAAA,GAAW,UAAA;AACX,EAAAA,YAAA,gBAAA,CAAA,GAAiB,iBAAA;AACjB,EAAAA,YAAA,SAAA,CAAA,GAAU,SAAA;AACV,EAAAA,YAAA,eAAA,CAAA,GAAgB,eAAA;AAChB,EAAAA,YAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,YAAA,OAAA,CAAA,GAAQ,cAAA;AACR,EAAAA,YAAA,QAAA,CAAA,GAAS,QAAA;AACT,EAAAA,YAAA,QAAA,CAAA,GAAS,QAAA;AATC,EAAA,OAAAA,WAAAA;AAAA,CAAA,EAAA,UAAA,IAAA,EAAA;AAYL,IAAK,QAAA,qBAAAC,SAAAA,KAAL;AACL,EAAAA,UAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,UAAA,UAAA,CAAA,GAAW,UAAA;AACX,EAAAA,UAAA,gBAAA,CAAA,GAAiB,iBAAA;AACjB,EAAAA,UAAA,SAAA,CAAA,GAAU,SAAA;AACV,EAAAA,UAAA,eAAA,CAAA,GAAgB,eAAA;AAChB,EAAAA,UAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,UAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,UAAA,QAAA,CAAA,GAAS,QAAA;AACT,EAAAA,UAAA,QAAA,CAAA,GAAS,QAAA;AATC,EAAA,OAAAA,SAAAA;AAAA,CAAA,EAAA,QAAA,IAAA,EAAA","file":"index.mjs","sourcesContent":["import { WalletId } from './wallet';\n\nexport type Theme = 'light' | 'dark';\nexport type BorderRadiusToken = 'none' | 'sm' | 'md' | 'lg' | 'xl';\nexport type WalletLayout = 'stacked' | 'grid';\n\n/**\n * Border radius scale for each size slot (xs through xl).\n * Values are in pixels.\n */\nexport interface BorderRadiusScale {\n xs: number;\n sm: number;\n md: number;\n lg: number;\n xl: number;\n}\n\n/**\n * Complete border radius scales for each token.\n * Each token provides a consistent scale of pixel values.\n */\nexport const BORDER_RADIUS_SCALES: Record<BorderRadiusToken, BorderRadiusScale> = {\n none: { xs: 0, sm: 0, md: 0, lg: 0, xl: 0 },\n sm: { xs: 4, sm: 6, md: 8, lg: 10, xl: 12 },\n md: { xs: 6, sm: 10, md: 14, lg: 18, xl: 22 },\n lg: { xs: 8, sm: 14, md: 20, lg: 26, xl: 32 },\n xl: { xs: 10, sm: 18, md: 26, lg: 34, xl: 42 },\n};\n\nexport type BorderRadiusSizeSlot = keyof BorderRadiusScale;\n\nexport interface BrandConfig {\n theme?: Theme;\n logo?: string;\n primaryColor?: string;\n borderRadius?: BorderRadiusToken;\n modalZIndex?: number;\n appName?: string;\n hideFooter?: boolean;\n font?: string;\n walletLayout?: WalletLayout;\n}\n\nexport interface NonNullableBrandConfig\n extends Omit<\n BrandConfig,\n 'theme' | 'primaryColor' | 'borderRadius' | 'modalZIndex' | 'appName' | 'hideFooter' | 'font' | 'walletLayout'\n > {\n theme: Theme;\n primaryColor: string;\n borderRadius: BorderRadiusToken;\n modalZIndex: number;\n appName: string;\n hideFooter: boolean;\n font: string;\n walletLayout: WalletLayout;\n}\n\nexport interface
|
|
1
|
+
{"version":3,"sources":["../src/sdk-config.ts","../src/wallet.ts"],"names":["WalletName","WalletId"],"mappings":";AAsBO,IAAM,oBAAA,GAAqE;AAAA,EAChF,IAAA,EAAM,EAAE,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,CAAA,EAAE;AAAA,EAC1C,EAAA,EAAI,EAAE,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAG;AAAA,EAC1C,EAAA,EAAI,EAAE,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAG;AAAA,EAC5C,EAAA,EAAI,EAAE,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI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'none' | 'sm' | 'md' | 'lg' | 'xl';\nexport type WalletLayout = 'stacked' | 'grid';\n\n/**\n * Border radius scale for each size slot (xs through xl).\n * Values are in pixels.\n */\nexport interface BorderRadiusScale {\n xs: number;\n sm: number;\n md: number;\n lg: number;\n xl: number;\n}\n\n/**\n * Complete border radius scales for each token.\n * Each token provides a consistent scale of pixel values.\n */\nexport const BORDER_RADIUS_SCALES: Record<BorderRadiusToken, BorderRadiusScale> = {\n none: { xs: 0, sm: 0, md: 0, lg: 0, xl: 0 },\n sm: { xs: 4, sm: 6, md: 8, lg: 10, xl: 12 },\n md: { xs: 6, sm: 10, md: 14, lg: 18, xl: 22 },\n lg: { xs: 8, sm: 14, md: 20, lg: 26, xl: 32 },\n xl: { xs: 10, sm: 18, md: 26, lg: 34, xl: 42 },\n};\n\nexport type BorderRadiusSizeSlot = keyof BorderRadiusScale;\n\nexport interface BrandConfig {\n theme?: Theme;\n logo?: string;\n primaryColor?: string;\n borderRadius?: BorderRadiusToken;\n modalZIndex?: number;\n appName?: string;\n hideFooter?: boolean;\n font?: string;\n walletLayout?: WalletLayout;\n}\n\nexport interface NonNullableBrandConfig\n extends Omit<\n BrandConfig,\n 'theme' | 'primaryColor' | 'borderRadius' | 'modalZIndex' | 'appName' | 'hideFooter' | 'font' | 'walletLayout'\n > {\n theme: Theme;\n primaryColor: string;\n borderRadius: BorderRadiusToken;\n modalZIndex: number;\n appName: string;\n hideFooter: boolean;\n font: string;\n walletLayout: WalletLayout;\n}\n\nexport interface EmbeddedWalletsConfig {\n projectId: string;\n}\n\nexport interface WalletConnectConfig {\n projectId: string;\n}\n\n/**\n * walletConnect projectId is used for WalletConnect, AppKit, and Ledger wallets\n */\nexport interface WalletsConfig {\n embedded?: EmbeddedWalletsConfig;\n walletConnect?: WalletConnectConfig;\n exclude?: WalletId[] | `${WalletId}`[];\n}\n\nexport interface AurumConfig {\n brand?: BrandConfig;\n wallets?: WalletsConfig;\n telemetry?: boolean;\n}\n","export enum WalletName {\n Email = 'Email',\n MetaMask = 'MetaMask',\n CoinbaseWallet = 'Coinbase Wallet',\n Phantom = 'Phantom',\n WalletConnect = 'WalletConnect',\n Rabby = 'Rabby',\n Brave = 'Brave Wallet',\n Ledger = 'Ledger',\n AppKit = 'AppKit',\n}\n\nexport enum WalletId {\n Email = 'email',\n MetaMask = 'metamask',\n CoinbaseWallet = 'coinbase-wallet',\n Phantom = 'phantom',\n WalletConnect = 'walletconnect',\n Rabby = 'rabby',\n Brave = 'brave',\n Ledger = 'ledger',\n AppKit = 'appkit',\n}\n"]}
|