@farcaster/frame-sdk 0.0.28 → 0.0.29

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 { AddFrame, Context, FrameNotificationDetails, ReadyOptions, SetPrimaryButtonOptions, SignIn, ViewProfile } from '@farcaster/frame-core';
1
+ import type { AddFrame, Context, FrameNotificationDetails, ReadyOptions, SetPrimaryButtonOptions, SignIn, Swap, ViewProfile, ViewToken } from '@farcaster/frame-core';
2
2
  import type { EventEmitter } from 'eventemitter3';
3
3
  import type { Provider } from 'ox';
4
4
  declare global {
@@ -38,6 +38,8 @@ export type FrameSDK = {
38
38
  addFrame: AddFrame.AddFrame;
39
39
  signIn: SignIn.SignIn;
40
40
  viewProfile: ViewProfile.ViewProfile;
41
+ viewToken: ViewToken.ViewToken;
42
+ swap: Swap.Swap;
41
43
  };
42
44
  wallet: {
43
45
  ethProvider: Provider.Provider;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farcaster/frame-sdk",
3
- "version": "0.0.28",
3
+ "version": "0.0.29",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist",
@@ -16,7 +16,7 @@
16
16
  "comlink": "^4.4.2",
17
17
  "eventemitter3": "^5.0.1",
18
18
  "ox": "^0.4.4",
19
- "@farcaster/frame-core": "0.0.26"
19
+ "@farcaster/frame-core": "0.0.27"
20
20
  },
21
21
  "scripts": {
22
22
  "clean": "rm -rf dist",
package/src/sdk.ts CHANGED
@@ -37,6 +37,8 @@ export const sdk: FrameSDK = {
37
37
  ready: frameHost.ready.bind(frameHost),
38
38
  close: frameHost.close.bind(frameHost),
39
39
  viewProfile: frameHost.viewProfile.bind(frameHost),
40
+ viewToken: frameHost.viewToken.bind(frameHost),
41
+ swap: frameHost.swap.bind(frameHost),
40
42
  signIn: async (options) => {
41
43
  const response = await frameHost.signIn(options)
42
44
  if (response.result) {
package/src/types.ts CHANGED
@@ -5,7 +5,9 @@ import type {
5
5
  ReadyOptions,
6
6
  SetPrimaryButtonOptions,
7
7
  SignIn,
8
+ Swap,
8
9
  ViewProfile,
10
+ ViewToken,
9
11
  } from '@farcaster/frame-core'
10
12
  import type { EventEmitter } from 'eventemitter3'
11
13
  import type { Provider } from 'ox'
@@ -56,6 +58,8 @@ export type FrameSDK = {
56
58
  addFrame: AddFrame.AddFrame
57
59
  signIn: SignIn.SignIn
58
60
  viewProfile: ViewProfile.ViewProfile
61
+ viewToken: ViewToken.ViewToken
62
+ swap: Swap.Swap
59
63
  }
60
64
  wallet: {
61
65
  ethProvider: Provider.Provider