@aastar/identity 0.16.12 → 0.16.16

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/index.d.ts CHANGED
@@ -1,9 +1,17 @@
1
1
  export * from './mysbt.js';
2
- import { type Address, type PublicClient, type Hash, type WalletClient } from 'viem';
2
+ import { type PublicClient, type WalletClient } from '@aastar/core';
3
+ import { type Address, type Hash } from 'viem';
3
4
  export declare class ReputationClient {
4
5
  private client;
5
6
  private reputationAddress;
7
+ /** @internal */
6
8
  private walletClient?;
9
+ /**
10
+ * Initialize ReputationClient
11
+ * @param client The public client for queries
12
+ * @param reputationAddress The address of the reputation system contract
13
+ * @param walletClient Optional wallet client for write operations
14
+ */
7
15
  constructor(client: PublicClient, reputationAddress: Address, walletClient?: WalletClient);
8
16
  /**
9
17
  * Compute reputation score for a user
package/dist/index.js CHANGED
@@ -4,7 +4,14 @@ import { parseAbi } from 'viem';
4
4
  export class ReputationClient {
5
5
  client;
6
6
  reputationAddress;
7
+ /** @internal */
7
8
  walletClient;
9
+ /**
10
+ * Initialize ReputationClient
11
+ * @param client The public client for queries
12
+ * @param reputationAddress The address of the reputation system contract
13
+ * @param walletClient Optional wallet client for write operations
14
+ */
8
15
  constructor(client, reputationAddress, walletClient) {
9
16
  this.client = client;
10
17
  this.reputationAddress = reputationAddress;
package/dist/mysbt.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { type Address, type PublicClient } from 'viem';
1
+ import { type Address } from 'viem';
2
2
  /**
3
3
  * Check if user holds MySBT token (identity verification).
4
4
  */
5
- export declare function checkMySBT(client: PublicClient, sbtAddress: Address, user: Address): Promise<{
5
+ export declare function checkMySBT(client: any, sbtAddress: Address, user: Address): Promise<{
6
6
  hasSBT: boolean;
7
7
  balance?: bigint;
8
8
  }>;
@@ -10,4 +10,4 @@ export declare function checkMySBT(client: PublicClient, sbtAddress: Address, us
10
10
  * Fetch MySBT token ID for a specific user (if unique/SBT).
11
11
  * Note: Depends on whether the contract supports getTokenId or similar.
12
12
  */
13
- export declare function getMySBTId(client: PublicClient, sbtAddress: Address, user: Address): Promise<bigint | null>;
13
+ export declare function getMySBTId(client: any, sbtAddress: Address, user: Address): Promise<bigint | null>;
package/package.json CHANGED
@@ -1,6 +1,10 @@
1
1
  {
2
2
  "name": "@aastar/identity",
3
- "version": "0.16.12",
3
+ "version": "0.16.16",
4
+ "publishConfig": {
5
+ "access": "public"
6
+ },
7
+ "license": "MIT",
4
8
  "type": "module",
5
9
  "main": "dist/index.js",
6
10
  "types": "dist/index.d.ts",
@@ -9,7 +13,7 @@
9
13
  ],
10
14
  "dependencies": {
11
15
  "viem": "2.43.3",
12
- "@aastar/core": "0.16.12"
16
+ "@aastar/core": "0.16.16"
13
17
  },
14
18
  "devDependencies": {
15
19
  "typescript": "5.7.2"