@orbi-wallet/sdk 0.2.0 → 0.2.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.
@@ -13,4 +13,4 @@
13
13
  */
14
14
  import type { Wallet } from '@rainbow-me/rainbowkit';
15
15
  import { type OrbiConnectorParams } from './wagmi';
16
- export declare function orbiWallet(params?: OrbiConnectorParams): Wallet;
16
+ export declare function orbiWallet(params?: OrbiConnectorParams): () => Wallet;
@@ -14,8 +14,11 @@
14
14
  import { createConnector } from 'wagmi';
15
15
  import { orbiConnectorImpl } from './wagmi';
16
16
  const ICON_URL = 'https://keys.orbiwallet.xyz/Orbi%20Icon.png';
17
+ // Returns a RainbowKit CreateWalletFn (`wallets: [orbiWallet()]`). RainbowKit
18
+ // calls it with its own wallet params, which Orbi doesn't need (no
19
+ // WalletConnect) — the connector derives its chains from the wagmi config.
17
20
  export function orbiWallet(params = {}) {
18
- return {
21
+ return () => ({
19
22
  id: 'orbi',
20
23
  name: 'Orbi',
21
24
  iconUrl: ICON_URL,
@@ -26,5 +29,5 @@ export function orbiWallet(params = {}) {
26
29
  ...orbiConnectorImpl(params)(config),
27
30
  ...walletDetails,
28
31
  })),
29
- };
32
+ });
30
33
  }
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  export declare const SDK_NAME = "@orbi-wallet/sdk";
2
- export declare const SDK_VERSION = "0.2.0";
2
+ export declare const SDK_VERSION = "0.2.1";
package/dist/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  // Generated by scripts/generate-version.js from package.json — do not edit.
2
2
  export const SDK_NAME = "@orbi-wallet/sdk";
3
- export const SDK_VERSION = "0.2.0";
3
+ export const SDK_VERSION = "0.2.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbi-wallet/sdk",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Orbi Smart Wallet SDK — connect any Stellar or EVM dApp to Orbi passkey wallets",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",