@farcaster/frame-sdk 0.0.0-canary-20250513184040 → 0.0.0-canary-20250515200421

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/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { AddMiniApp, ComposeCast, Context, FrameNotificationDetails, GetCapabilities, Ready, SendToken, SetPrimaryButtonOptions, SignIn, SolanaWalletProvider, SwapToken, ViewProfile, ViewToken } from '@farcaster/frame-core';
1
+ import type { AddMiniApp, ComposeCast, Context, FrameNotificationDetails, GetCapabilities, GetChains, Ready, SendToken, SetPrimaryButtonOptions, SignIn, SolanaWalletProvider, SwapToken, ViewProfile, ViewToken } from '@farcaster/frame-core';
2
2
  import type { EventEmitter } from 'eventemitter3';
3
3
  import type * as Provider from 'ox/Provider';
4
4
  declare global {
@@ -30,6 +30,7 @@ export type Emitter = Compute<EventEmitter<EventMap>>;
30
30
  type SetPrimaryButton = (options: SetPrimaryButtonOptions) => Promise<void>;
31
31
  export type FrameSDK = {
32
32
  getCapabilities: GetCapabilities;
33
+ getChains: GetChains;
33
34
  isInMiniApp: () => Promise<boolean>;
34
35
  context: Promise<Context.FrameContext>;
35
36
  actions: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farcaster/frame-sdk",
3
- "version": "0.0.0-canary-20250513184040",
3
+ "version": "0.0.0-canary-20250515200421",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,7 +22,7 @@
22
22
  "comlink": "^4.4.2",
23
23
  "eventemitter3": "^5.0.1",
24
24
  "ox": "^0.4.4",
25
- "@farcaster/frame-core": "0.0.36"
25
+ "@farcaster/frame-core": "0.0.0-canary-20250515200421"
26
26
  },
27
27
  "scripts": {
28
28
  "clean": "rm -rf dist",
package/src/sdk.ts CHANGED
@@ -98,6 +98,7 @@ const addMiniApp = async () => {
98
98
  export const sdk: FrameSDK = {
99
99
  ...emitter,
100
100
  getCapabilities: frameHost.getCapabilities,
101
+ getChains: frameHost.getChains,
101
102
  isInMiniApp,
102
103
  context: frameHost.context,
103
104
  actions: {
package/src/types.ts CHANGED
@@ -4,6 +4,7 @@ import type {
4
4
  Context,
5
5
  FrameNotificationDetails,
6
6
  GetCapabilities,
7
+ GetChains,
7
8
  Ready,
8
9
  SendToken,
9
10
  SetPrimaryButtonOptions,
@@ -54,6 +55,7 @@ type SetPrimaryButton = (options: SetPrimaryButtonOptions) => Promise<void>
54
55
 
55
56
  export type FrameSDK = {
56
57
  getCapabilities: GetCapabilities
58
+ getChains: GetChains
57
59
  isInMiniApp: () => Promise<boolean>
58
60
  context: Promise<Context.FrameContext>
59
61
  actions: {