@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.
- package/dist/rainbowkit.d.ts +1 -1
- package/dist/rainbowkit.js +5 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/rainbowkit.d.ts
CHANGED
|
@@ -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;
|
package/dist/rainbowkit.js
CHANGED
|
@@ -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.
|
|
2
|
+
export declare const SDK_VERSION = "0.2.1";
|
package/dist/version.js
CHANGED