@aastar/identity 0.16.14 → 0.16.18
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 +7 -6
- package/dist/index.js +7 -5
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -2,16 +2,17 @@ export * from './mysbt.js';
|
|
|
2
2
|
import { type PublicClient, type WalletClient } from '@aastar/core';
|
|
3
3
|
import { type Address, type Hash } from 'viem';
|
|
4
4
|
export declare class ReputationClient {
|
|
5
|
-
/** @internal */
|
|
6
5
|
private client;
|
|
7
6
|
private reputationAddress;
|
|
8
7
|
/** @internal */
|
|
9
8
|
private walletClient?;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
+
*/
|
|
15
|
+
constructor(client: PublicClient, reputationAddress: Address, walletClient?: WalletClient);
|
|
15
16
|
/**
|
|
16
17
|
* Compute reputation score for a user
|
|
17
18
|
*/
|
package/dist/index.js
CHANGED
|
@@ -6,11 +6,13 @@ export class ReputationClient {
|
|
|
6
6
|
reputationAddress;
|
|
7
7
|
/** @internal */
|
|
8
8
|
walletClient;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
+
*/
|
|
15
|
+
constructor(client, reputationAddress, walletClient) {
|
|
14
16
|
this.client = client;
|
|
15
17
|
this.reputationAddress = reputationAddress;
|
|
16
18
|
this.walletClient = walletClient;
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aastar/identity",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.18",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
+
"license": "MIT",
|
|
7
8
|
"type": "module",
|
|
8
9
|
"main": "dist/index.js",
|
|
9
10
|
"types": "dist/index.d.ts",
|
|
@@ -12,7 +13,7 @@
|
|
|
12
13
|
],
|
|
13
14
|
"dependencies": {
|
|
14
15
|
"viem": "2.43.3",
|
|
15
|
-
"@aastar/core": "0.16.
|
|
16
|
+
"@aastar/core": "0.16.18"
|
|
16
17
|
},
|
|
17
18
|
"devDependencies": {
|
|
18
19
|
"typescript": "5.7.2"
|