@mysten/enoki 1.0.0 → 1.0.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @mysten/enoki
2
2
 
3
+ ## 1.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 53ff5aa: Allow any Sui client to be passed when registering enoki wallet
8
+ - Updated dependencies [265ec25]
9
+ - @mysten/sui@2.3.1
10
+ - @mysten/wallet-standard@0.20.0
11
+
12
+ ## 1.0.1
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [339d1e0]
17
+ - @mysten/utils@0.3.0
18
+ - @mysten/sui@2.0.1
19
+ - @mysten/wallet-standard@0.20.0
20
+
3
21
  ## 1.0.0
4
22
 
5
23
  ### Minor Changes
@@ -7,7 +7,7 @@ declare const EnokiGetMetadata = "enoki:getMetadata";
7
7
  /** The latest API version of the getMetadata API. */
8
8
  type EnokiGetMetadataVersion = '1.0.0';
9
9
  /**
10
- * A Wallet Standard feature for retreiving Enoki-specific metadata about the wallet.
10
+ * A Wallet Standard feature for retrieving Enoki-specific metadata about the wallet.
11
11
  */
12
12
  type EnokiGetMetadataFeature = {
13
13
  /** Namespace for the feature. */
@@ -30,7 +30,7 @@ declare const EnokiGetSession = "enoki:getSession";
30
30
  /** The latest API version of the getSession API. */
31
31
  type EnokiGetSessionVersion = '1.0.0';
32
32
  /**
33
- * A Wallet Standard feature for retreiving the zkLogin session from the wallet.
33
+ * A Wallet Standard feature for retrieving the zkLogin session from the wallet.
34
34
  */
35
35
  type EnokiGetSessionFeature = {
36
36
  /** Namespace for the feature. */
@@ -1 +1 @@
1
- {"version":3,"file":"features.mjs","names":[],"sources":["../../src/wallet/features.ts"],"sourcesContent":["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { AuthProvider, EnokiNetwork } from '../EnokiClient/type.js';\nimport type { ZkLoginSession } from './types.js';\n\n/** Name of the feature for retrieving basic wallet metadata. */\nexport const EnokiGetMetadata = 'enoki:getMetadata';\n\n/** The latest API version of the getMetadata API. */\nexport type EnokiGetMetadataVersion = '1.0.0';\n\n/**\n * A Wallet Standard feature for retreiving Enoki-specific metadata about the wallet.\n */\nexport type EnokiGetMetadataFeature = {\n\t/** Namespace for the feature. */\n\t[EnokiGetMetadata]: {\n\t\t/** Version of the feature API. */\n\t\tversion: EnokiGetMetadataVersion;\n\t\tgetMetadata: EnokiGetMetadataMethod;\n\t};\n};\n\nexport type EnokiGetMetadataMethod = (input?: EnokiGetMetadataInput) => EnokiGetMetadataOutput;\n\n/** Input for retrieving metadata about the wallet. */\nexport type EnokiGetMetadataInput = void;\n\n/** Output of retrieving metadata about the wallet. */\nexport type EnokiGetMetadataOutput = {\n\t/** The social provider for the wallet. */\n\tprovider: AuthProvider;\n};\n\n/** Name of the feature for retrieving the Enoki session. */\nexport const EnokiGetSession = 'enoki:getSession';\n\n/** The latest API version of the getSession API. */\nexport type EnokiGetSessionVersion = '1.0.0';\n\n/**\n * A Wallet Standard feature for retreiving the zkLogin session from the wallet.\n */\nexport type EnokiGetSessionFeature = {\n\t/** Namespace for the feature. */\n\t[EnokiGetSession]: {\n\t\t/** Version of the feature API. */\n\t\tversion: EnokiGetSessionVersion;\n\t\tgetSession: EnokiGetSessionMethod;\n\t};\n};\n\nexport type EnokiGetSessionMethod = (\n\tinput?: EnokiGetSessionInput,\n) => Promise<EnokiGetSessionOutput>;\n\n/** Input for retrieving the session from the wallet. */\nexport type EnokiGetSessionInput = {\n\t/**\n\t * The network to retrieve session data for. Defaults to the active network.\n\t **/\n\tnetwork?: EnokiNetwork;\n};\n\n/** Output of retrieving the Enoki session. */\nexport type EnokiGetSessionOutput = ZkLoginSession | null;\n"],"mappings":";;AAOA,MAAa,mBAAmB;;AA6BhC,MAAa,kBAAkB"}
1
+ {"version":3,"file":"features.mjs","names":[],"sources":["../../src/wallet/features.ts"],"sourcesContent":["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { AuthProvider, EnokiNetwork } from '../EnokiClient/type.js';\nimport type { ZkLoginSession } from './types.js';\n\n/** Name of the feature for retrieving basic wallet metadata. */\nexport const EnokiGetMetadata = 'enoki:getMetadata';\n\n/** The latest API version of the getMetadata API. */\nexport type EnokiGetMetadataVersion = '1.0.0';\n\n/**\n * A Wallet Standard feature for retrieving Enoki-specific metadata about the wallet.\n */\nexport type EnokiGetMetadataFeature = {\n\t/** Namespace for the feature. */\n\t[EnokiGetMetadata]: {\n\t\t/** Version of the feature API. */\n\t\tversion: EnokiGetMetadataVersion;\n\t\tgetMetadata: EnokiGetMetadataMethod;\n\t};\n};\n\nexport type EnokiGetMetadataMethod = (input?: EnokiGetMetadataInput) => EnokiGetMetadataOutput;\n\n/** Input for retrieving metadata about the wallet. */\nexport type EnokiGetMetadataInput = void;\n\n/** Output of retrieving metadata about the wallet. */\nexport type EnokiGetMetadataOutput = {\n\t/** The social provider for the wallet. */\n\tprovider: AuthProvider;\n};\n\n/** Name of the feature for retrieving the Enoki session. */\nexport const EnokiGetSession = 'enoki:getSession';\n\n/** The latest API version of the getSession API. */\nexport type EnokiGetSessionVersion = '1.0.0';\n\n/**\n * A Wallet Standard feature for retrieving the zkLogin session from the wallet.\n */\nexport type EnokiGetSessionFeature = {\n\t/** Namespace for the feature. */\n\t[EnokiGetSession]: {\n\t\t/** Version of the feature API. */\n\t\tversion: EnokiGetSessionVersion;\n\t\tgetSession: EnokiGetSessionMethod;\n\t};\n};\n\nexport type EnokiGetSessionMethod = (\n\tinput?: EnokiGetSessionInput,\n) => Promise<EnokiGetSessionOutput>;\n\n/** Input for retrieving the session from the wallet. */\nexport type EnokiGetSessionInput = {\n\t/**\n\t * The network to retrieve session data for. Defaults to the active network.\n\t **/\n\tnetwork?: EnokiNetwork;\n};\n\n/** Output of retrieving the Enoki session. */\nexport type EnokiGetSessionOutput = ZkLoginSession | null;\n"],"mappings":";;AAOA,MAAa,mBAAmB;;AA6BhC,MAAa,kBAAkB"}
@@ -4,7 +4,6 @@ import { ZkLoginSignatureInputs } from "@mysten/sui/zklogin";
4
4
  import "idb-keyval";
5
5
  import { WritableAtom } from "nanostores";
6
6
  import { Wallet } from "@mysten/wallet-standard";
7
- import { SuiJsonRpcClient } from "@mysten/sui/jsonRpc";
8
7
  import { ClientWithCoreApi, SuiClientTypes } from "@mysten/sui/client";
9
8
 
10
9
  //#region src/wallet/types.d.ts
@@ -58,9 +57,9 @@ type RegisterEnokiWalletsOptions = {
58
57
  providers: Partial<Record<AuthProvider, AuthProviderOptions>>;
59
58
  } & Pick<EnokiWalletOptions, 'apiKey' | 'apiUrl' | 'additionalEpochs' | 'windowFeatures'> & (ClientConfig | {
60
59
  /**
61
- * The SuiJsonRpcClient instance to use when building and executing transactions.
60
+ * The Sui Client instance to use when building and executing transactions.
62
61
  */
63
- client: SuiJsonRpcClient;
62
+ client: ClientWithCoreApi;
64
63
  /**
65
64
  * The network to use when building and executing transactions.
66
65
  * @default 'mainnet'
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.mts","names":[],"sources":["../../src/wallet/types.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;AA4DC,KAtCW,cAAA,GAsCX;EACA,QAAA,EAAA,MAAA;EACK,UAAA,EAAA,MAAA;EAAL,SAAA,EAAA,MAAA;EAAI,GAAA,CAAA,EAAA,MAAA;EAEO,KAAA,CAAA,EArCH,sBAqCsB;AAiB/B,CAAA;KA7CK,YAAA,GA+DS;EAAY;;;WA3DhB;;;;2BAKgB,cAAA,CAAe;;KAG7B,kBAAA;;;;;;;;;YAUD;IACP,sBACH,oBACA,eACA,KAAK;KAEM,mBAAA;;;;;;;;;;;;gBAcG,gCAAgC;;KAGnC,2BAAA;;;;aAIA,QAAQ,OAAO,cAAc;IACrC,KAAK,oFAEL;;;;UAKQ;;;;;YAME"}
1
+ {"version":3,"file":"types.d.mts","names":[],"sources":["../../src/wallet/types.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;AA2DC,KAtCW,cAAA,GAsCX;EACA,QAAA,EAAA,MAAA;EACK,UAAA,EAAA,MAAA;EAAL,SAAA,EAAA,MAAA;EAAI,GAAA,CAAA,EAAA,MAAA;EAEO,KAAA,CAAA,EArCH,sBAqCsB;AAiB/B,CAAA;KA7CK,YAAA,GA+DS;EAAY;;;WA3DhB;;;;2BAKgB,cAAA,CAAe;;KAG7B,kBAAA;;;;;;;;;YAUD;IACP,sBACH,oBACA,eACA,KAAK;KAEM,mBAAA;;;;;;;;;;;;gBAcG,gCAAgC;;KAGnC,2BAAA;;;;aAIA,QAAQ,OAAO,cAAc;IACrC,KAAK,oFAEL;;;;UAKQ;;;;;YAME"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mysten/enoki",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "zkLogin authentication and sponsored transactions",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Mysten Labs <build@mystenlabs.com>",
@@ -39,22 +39,22 @@
39
39
  "react-dom": "^19.2.3",
40
40
  "typescript": "^5.9.3",
41
41
  "vite": "^7.3.1",
42
- "@mysten/dapp-kit-react": "^1.0.0",
43
- "@mysten/sui": "^2.0.0"
42
+ "@mysten/dapp-kit-react": "^1.0.1",
43
+ "@mysten/sui": "^2.3.1"
44
44
  },
45
45
  "dependencies": {
46
46
  "@nanostores/react": "^1.0.0",
47
47
  "@wallet-standard/ui": "^1.0.1",
48
48
  "idb-keyval": "^6.2.2",
49
49
  "nanostores": "^1.1.0",
50
- "@mysten/signers": "^1.0.0",
51
- "@mysten/utils": "^0.2.0",
52
- "@mysten/wallet-standard": "^0.20.0"
50
+ "@mysten/utils": "^0.3.0",
51
+ "@mysten/wallet-standard": "^0.20.0",
52
+ "@mysten/signers": "^1.0.0"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "@types/react": ">=17.0.0",
56
56
  "react": ">=17.0.0",
57
- "@mysten/sui": "^2.0.0"
57
+ "@mysten/sui": "^2.3.1"
58
58
  },
59
59
  "peerDependenciesMeta": {
60
60
  "react": {