@aastar/tokens 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 +6 -7
- package/dist/index.js +6 -5
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { type Address, type Hash } from 'viem';
|
|
2
2
|
import { type PublicClient, type WalletClient } from '@aastar/core';
|
|
3
3
|
export declare class FinanceClient {
|
|
4
|
-
/** @internal */
|
|
5
4
|
private publicClient;
|
|
6
|
-
/** @internal */
|
|
7
5
|
private walletClient;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Initialize FinanceClient
|
|
8
|
+
* @param publicClient The public client for queries
|
|
9
|
+
* @param walletClient The wallet client for transactions
|
|
10
|
+
*/
|
|
11
|
+
constructor(publicClient: PublicClient, walletClient: WalletClient);
|
|
13
12
|
/** @deprecated Use instance methods instead */
|
|
14
13
|
static depositToPaymaster(wallet: WalletClient, paymaster: Address, amount: bigint): Promise<`0x${string}`>;
|
|
15
14
|
/** @deprecated Use instance methods instead */
|
package/dist/index.js
CHANGED
|
@@ -13,11 +13,12 @@ const ERC20_ABI = parseAbi([
|
|
|
13
13
|
export class FinanceClient {
|
|
14
14
|
publicClient;
|
|
15
15
|
walletClient;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Initialize FinanceClient
|
|
18
|
+
* @param publicClient The public client for queries
|
|
19
|
+
* @param walletClient The wallet client for transactions
|
|
20
|
+
*/
|
|
21
|
+
constructor(publicClient, walletClient) {
|
|
21
22
|
this.publicClient = publicClient;
|
|
22
23
|
this.walletClient = walletClient;
|
|
23
24
|
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aastar/tokens",
|
|
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"
|