@virtuals-protocol/acp-node 0.3.0-beta.10 → 0.3.0-beta.11

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.mts CHANGED
@@ -525,9 +525,10 @@ declare class AcpContractConfig {
525
525
  alchemyRpcUrl: string;
526
526
  acpUrl: string;
527
527
  abi: typeof ACP_ABI | typeof ACP_V2_ABI;
528
+ maxRetries: number;
528
529
  rpcEndpoint?: string | undefined;
529
530
  x402Config?: X402Config | undefined;
530
- constructor(chain: typeof baseSepolia | typeof base, contractAddress: Address$1, baseFare: Fare, alchemyRpcUrl: string, acpUrl: string, abi: typeof ACP_ABI | typeof ACP_V2_ABI, rpcEndpoint?: string | undefined, x402Config?: X402Config | undefined);
531
+ constructor(chain: typeof baseSepolia | typeof base, contractAddress: Address$1, baseFare: Fare, alchemyRpcUrl: string, acpUrl: string, abi: typeof ACP_ABI | typeof ACP_V2_ABI, maxRetries: number, rpcEndpoint?: string | undefined, x402Config?: X402Config | undefined);
531
532
  }
532
533
  declare const baseSepoliaAcpConfig: AcpContractConfig;
533
534
  declare const baseSepoliaAcpConfigV2: AcpContractConfig;
@@ -669,13 +670,12 @@ declare class AcpX402 {
669
670
  }
670
671
 
671
672
  declare class AcpContractClient extends BaseAcpContractClient {
672
- protected MAX_RETRIES: number;
673
673
  protected PRIORITY_FEE_MULTIPLIER: number;
674
674
  protected MAX_FEE_PER_GAS: number;
675
675
  protected MAX_PRIORITY_FEE_PER_GAS: number;
676
676
  private _sessionKeyClient;
677
677
  private _acpX402;
678
- constructor(agentWalletAddress: Address$1, config?: AcpContractConfig, maxRetries?: number);
678
+ constructor(agentWalletAddress: Address$1, config?: AcpContractConfig);
679
679
  static build(walletPrivateKey: Address$1, sessionEntityKeyId: number, agentWalletAddress: Address$1, config?: AcpContractConfig): Promise<AcpContractClient>;
680
680
  init(privateKey: Address$1, sessionEntityKeyId: number): Promise<void>;
681
681
  getRandomNonce(bits?: number): bigint;
@@ -955,6 +955,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
955
955
  [x: `bytes4[${string}]`]: undefined;
956
956
  [x: `bytes[${string}]`]: undefined;
957
957
  [x: `bytes6[${string}]`]: undefined;
958
+ [x: `bytes10[${string}]`]: undefined;
958
959
  [x: `bytes1[${string}]`]: undefined;
959
960
  [x: `bytes2[${string}]`]: undefined;
960
961
  [x: `bytes3[${string}]`]: undefined;
@@ -962,7 +963,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
962
963
  [x: `bytes7[${string}]`]: undefined;
963
964
  [x: `bytes8[${string}]`]: undefined;
964
965
  [x: `bytes9[${string}]`]: undefined;
965
- [x: `bytes10[${string}]`]: undefined;
966
966
  [x: `bytes11[${string}]`]: undefined;
967
967
  [x: `bytes12[${string}]`]: undefined;
968
968
  [x: `bytes13[${string}]`]: undefined;
@@ -1057,6 +1057,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
1057
1057
  bytes4?: undefined;
1058
1058
  bytes?: undefined;
1059
1059
  bytes6?: undefined;
1060
+ bytes10?: undefined;
1060
1061
  bytes1?: undefined;
1061
1062
  bytes2?: undefined;
1062
1063
  bytes3?: undefined;
@@ -1064,7 +1065,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
1064
1065
  bytes7?: undefined;
1065
1066
  bytes8?: undefined;
1066
1067
  bytes9?: undefined;
1067
- bytes10?: undefined;
1068
1068
  bytes11?: undefined;
1069
1069
  bytes12?: undefined;
1070
1070
  bytes13?: undefined;
@@ -8272,6 +8272,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
8272
8272
  [x: `bytes4[${string}]`]: undefined;
8273
8273
  [x: `bytes[${string}]`]: undefined;
8274
8274
  [x: `bytes6[${string}]`]: undefined;
8275
+ [x: `bytes10[${string}]`]: undefined;
8275
8276
  [x: `bytes1[${string}]`]: undefined;
8276
8277
  [x: `bytes2[${string}]`]: undefined;
8277
8278
  [x: `bytes3[${string}]`]: undefined;
@@ -8279,7 +8280,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
8279
8280
  [x: `bytes7[${string}]`]: undefined;
8280
8281
  [x: `bytes8[${string}]`]: undefined;
8281
8282
  [x: `bytes9[${string}]`]: undefined;
8282
- [x: `bytes10[${string}]`]: undefined;
8283
8283
  [x: `bytes11[${string}]`]: undefined;
8284
8284
  [x: `bytes12[${string}]`]: undefined;
8285
8285
  [x: `bytes13[${string}]`]: undefined;
@@ -8374,6 +8374,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
8374
8374
  bytes4?: undefined;
8375
8375
  bytes?: undefined;
8376
8376
  bytes6?: undefined;
8377
+ bytes10?: undefined;
8377
8378
  bytes1?: undefined;
8378
8379
  bytes2?: undefined;
8379
8380
  bytes3?: undefined;
@@ -8381,7 +8382,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
8381
8382
  bytes7?: undefined;
8382
8383
  bytes8?: undefined;
8383
8384
  bytes9?: undefined;
8384
- bytes10?: undefined;
8385
8385
  bytes11?: undefined;
8386
8386
  bytes12?: undefined;
8387
8387
  bytes13?: undefined;
@@ -8727,6 +8727,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
8727
8727
  [x: `bytes4[${string}]`]: undefined;
8728
8728
  [x: `bytes[${string}]`]: undefined;
8729
8729
  [x: `bytes6[${string}]`]: undefined;
8730
+ [x: `bytes10[${string}]`]: undefined;
8730
8731
  [x: `bytes1[${string}]`]: undefined;
8731
8732
  [x: `bytes2[${string}]`]: undefined;
8732
8733
  [x: `bytes3[${string}]`]: undefined;
@@ -8734,7 +8735,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
8734
8735
  [x: `bytes7[${string}]`]: undefined;
8735
8736
  [x: `bytes8[${string}]`]: undefined;
8736
8737
  [x: `bytes9[${string}]`]: undefined;
8737
- [x: `bytes10[${string}]`]: undefined;
8738
8738
  [x: `bytes11[${string}]`]: undefined;
8739
8739
  [x: `bytes12[${string}]`]: undefined;
8740
8740
  [x: `bytes13[${string}]`]: undefined;
@@ -8829,6 +8829,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
8829
8829
  bytes4?: undefined;
8830
8830
  bytes?: undefined;
8831
8831
  bytes6?: undefined;
8832
+ bytes10?: undefined;
8832
8833
  bytes1?: undefined;
8833
8834
  bytes2?: undefined;
8834
8835
  bytes3?: undefined;
@@ -8836,7 +8837,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
8836
8837
  bytes7?: undefined;
8837
8838
  bytes8?: undefined;
8838
8839
  bytes9?: undefined;
8839
- bytes10?: undefined;
8840
8840
  bytes11?: undefined;
8841
8841
  bytes12?: undefined;
8842
8842
  bytes13?: undefined;
@@ -8954,13 +8954,12 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
8954
8954
  private jobManagerAddress;
8955
8955
  private memoManagerAddress;
8956
8956
  private accountManagerAddress;
8957
- private MAX_RETRIES;
8958
8957
  private PRIORITY_FEE_MULTIPLIER;
8959
8958
  private MAX_FEE_PER_GAS;
8960
8959
  private MAX_PRIORITY_FEE_PER_GAS;
8961
8960
  private _sessionKeyClient;
8962
8961
  private _acpX402;
8963
- constructor(jobManagerAddress: Address$1, memoManagerAddress: Address$1, accountManagerAddress: Address$1, agentWalletAddress: Address$1, config?: AcpContractConfig, maxRetries?: number);
8962
+ constructor(jobManagerAddress: Address$1, memoManagerAddress: Address$1, accountManagerAddress: Address$1, agentWalletAddress: Address$1, config?: AcpContractConfig);
8964
8963
  static build(walletPrivateKey: Address$1, sessionEntityKeyId: number, agentWalletAddress: Address$1, config?: AcpContractConfig): Promise<AcpContractClientV2>;
8965
8964
  init(privateKey: Address$1, sessionEntityKeyId: number): Promise<void>;
8966
8965
  getRandomNonce(bits?: number): bigint;
@@ -9240,6 +9239,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
9240
9239
  [x: `bytes4[${string}]`]: undefined;
9241
9240
  [x: `bytes[${string}]`]: undefined;
9242
9241
  [x: `bytes6[${string}]`]: undefined;
9242
+ [x: `bytes10[${string}]`]: undefined;
9243
9243
  [x: `bytes1[${string}]`]: undefined;
9244
9244
  [x: `bytes2[${string}]`]: undefined;
9245
9245
  [x: `bytes3[${string}]`]: undefined;
@@ -9247,7 +9247,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
9247
9247
  [x: `bytes7[${string}]`]: undefined;
9248
9248
  [x: `bytes8[${string}]`]: undefined;
9249
9249
  [x: `bytes9[${string}]`]: undefined;
9250
- [x: `bytes10[${string}]`]: undefined;
9251
9250
  [x: `bytes11[${string}]`]: undefined;
9252
9251
  [x: `bytes12[${string}]`]: undefined;
9253
9252
  [x: `bytes13[${string}]`]: undefined;
@@ -9342,6 +9341,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
9342
9341
  bytes4?: undefined;
9343
9342
  bytes?: undefined;
9344
9343
  bytes6?: undefined;
9344
+ bytes10?: undefined;
9345
9345
  bytes1?: undefined;
9346
9346
  bytes2?: undefined;
9347
9347
  bytes3?: undefined;
@@ -9349,7 +9349,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
9349
9349
  bytes7?: undefined;
9350
9350
  bytes8?: undefined;
9351
9351
  bytes9?: undefined;
9352
- bytes10?: undefined;
9353
9352
  bytes11?: undefined;
9354
9353
  bytes12?: undefined;
9355
9354
  bytes13?: undefined;
@@ -16557,6 +16556,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
16557
16556
  [x: `bytes4[${string}]`]: undefined;
16558
16557
  [x: `bytes[${string}]`]: undefined;
16559
16558
  [x: `bytes6[${string}]`]: undefined;
16559
+ [x: `bytes10[${string}]`]: undefined;
16560
16560
  [x: `bytes1[${string}]`]: undefined;
16561
16561
  [x: `bytes2[${string}]`]: undefined;
16562
16562
  [x: `bytes3[${string}]`]: undefined;
@@ -16564,7 +16564,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
16564
16564
  [x: `bytes7[${string}]`]: undefined;
16565
16565
  [x: `bytes8[${string}]`]: undefined;
16566
16566
  [x: `bytes9[${string}]`]: undefined;
16567
- [x: `bytes10[${string}]`]: undefined;
16568
16567
  [x: `bytes11[${string}]`]: undefined;
16569
16568
  [x: `bytes12[${string}]`]: undefined;
16570
16569
  [x: `bytes13[${string}]`]: undefined;
@@ -16659,6 +16658,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
16659
16658
  bytes4?: undefined;
16660
16659
  bytes?: undefined;
16661
16660
  bytes6?: undefined;
16661
+ bytes10?: undefined;
16662
16662
  bytes1?: undefined;
16663
16663
  bytes2?: undefined;
16664
16664
  bytes3?: undefined;
@@ -16666,7 +16666,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
16666
16666
  bytes7?: undefined;
16667
16667
  bytes8?: undefined;
16668
16668
  bytes9?: undefined;
16669
- bytes10?: undefined;
16670
16669
  bytes11?: undefined;
16671
16670
  bytes12?: undefined;
16672
16671
  bytes13?: undefined;
@@ -17012,6 +17011,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
17012
17011
  [x: `bytes4[${string}]`]: undefined;
17013
17012
  [x: `bytes[${string}]`]: undefined;
17014
17013
  [x: `bytes6[${string}]`]: undefined;
17014
+ [x: `bytes10[${string}]`]: undefined;
17015
17015
  [x: `bytes1[${string}]`]: undefined;
17016
17016
  [x: `bytes2[${string}]`]: undefined;
17017
17017
  [x: `bytes3[${string}]`]: undefined;
@@ -17019,7 +17019,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
17019
17019
  [x: `bytes7[${string}]`]: undefined;
17020
17020
  [x: `bytes8[${string}]`]: undefined;
17021
17021
  [x: `bytes9[${string}]`]: undefined;
17022
- [x: `bytes10[${string}]`]: undefined;
17023
17022
  [x: `bytes11[${string}]`]: undefined;
17024
17023
  [x: `bytes12[${string}]`]: undefined;
17025
17024
  [x: `bytes13[${string}]`]: undefined;
@@ -17114,6 +17113,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
17114
17113
  bytes4?: undefined;
17115
17114
  bytes?: undefined;
17116
17115
  bytes6?: undefined;
17116
+ bytes10?: undefined;
17117
17117
  bytes1?: undefined;
17118
17118
  bytes2?: undefined;
17119
17119
  bytes3?: undefined;
@@ -17121,7 +17121,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
17121
17121
  bytes7?: undefined;
17122
17122
  bytes8?: undefined;
17123
17123
  bytes9?: undefined;
17124
- bytes10?: undefined;
17125
17124
  bytes11?: undefined;
17126
17125
  bytes12?: undefined;
17127
17126
  bytes13?: undefined;
package/dist/index.d.ts CHANGED
@@ -525,9 +525,10 @@ declare class AcpContractConfig {
525
525
  alchemyRpcUrl: string;
526
526
  acpUrl: string;
527
527
  abi: typeof ACP_ABI | typeof ACP_V2_ABI;
528
+ maxRetries: number;
528
529
  rpcEndpoint?: string | undefined;
529
530
  x402Config?: X402Config | undefined;
530
- constructor(chain: typeof baseSepolia | typeof base, contractAddress: Address$1, baseFare: Fare, alchemyRpcUrl: string, acpUrl: string, abi: typeof ACP_ABI | typeof ACP_V2_ABI, rpcEndpoint?: string | undefined, x402Config?: X402Config | undefined);
531
+ constructor(chain: typeof baseSepolia | typeof base, contractAddress: Address$1, baseFare: Fare, alchemyRpcUrl: string, acpUrl: string, abi: typeof ACP_ABI | typeof ACP_V2_ABI, maxRetries: number, rpcEndpoint?: string | undefined, x402Config?: X402Config | undefined);
531
532
  }
532
533
  declare const baseSepoliaAcpConfig: AcpContractConfig;
533
534
  declare const baseSepoliaAcpConfigV2: AcpContractConfig;
@@ -669,13 +670,12 @@ declare class AcpX402 {
669
670
  }
670
671
 
671
672
  declare class AcpContractClient extends BaseAcpContractClient {
672
- protected MAX_RETRIES: number;
673
673
  protected PRIORITY_FEE_MULTIPLIER: number;
674
674
  protected MAX_FEE_PER_GAS: number;
675
675
  protected MAX_PRIORITY_FEE_PER_GAS: number;
676
676
  private _sessionKeyClient;
677
677
  private _acpX402;
678
- constructor(agentWalletAddress: Address$1, config?: AcpContractConfig, maxRetries?: number);
678
+ constructor(agentWalletAddress: Address$1, config?: AcpContractConfig);
679
679
  static build(walletPrivateKey: Address$1, sessionEntityKeyId: number, agentWalletAddress: Address$1, config?: AcpContractConfig): Promise<AcpContractClient>;
680
680
  init(privateKey: Address$1, sessionEntityKeyId: number): Promise<void>;
681
681
  getRandomNonce(bits?: number): bigint;
@@ -955,6 +955,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
955
955
  [x: `bytes4[${string}]`]: undefined;
956
956
  [x: `bytes[${string}]`]: undefined;
957
957
  [x: `bytes6[${string}]`]: undefined;
958
+ [x: `bytes10[${string}]`]: undefined;
958
959
  [x: `bytes1[${string}]`]: undefined;
959
960
  [x: `bytes2[${string}]`]: undefined;
960
961
  [x: `bytes3[${string}]`]: undefined;
@@ -962,7 +963,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
962
963
  [x: `bytes7[${string}]`]: undefined;
963
964
  [x: `bytes8[${string}]`]: undefined;
964
965
  [x: `bytes9[${string}]`]: undefined;
965
- [x: `bytes10[${string}]`]: undefined;
966
966
  [x: `bytes11[${string}]`]: undefined;
967
967
  [x: `bytes12[${string}]`]: undefined;
968
968
  [x: `bytes13[${string}]`]: undefined;
@@ -1057,6 +1057,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
1057
1057
  bytes4?: undefined;
1058
1058
  bytes?: undefined;
1059
1059
  bytes6?: undefined;
1060
+ bytes10?: undefined;
1060
1061
  bytes1?: undefined;
1061
1062
  bytes2?: undefined;
1062
1063
  bytes3?: undefined;
@@ -1064,7 +1065,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
1064
1065
  bytes7?: undefined;
1065
1066
  bytes8?: undefined;
1066
1067
  bytes9?: undefined;
1067
- bytes10?: undefined;
1068
1068
  bytes11?: undefined;
1069
1069
  bytes12?: undefined;
1070
1070
  bytes13?: undefined;
@@ -8272,6 +8272,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
8272
8272
  [x: `bytes4[${string}]`]: undefined;
8273
8273
  [x: `bytes[${string}]`]: undefined;
8274
8274
  [x: `bytes6[${string}]`]: undefined;
8275
+ [x: `bytes10[${string}]`]: undefined;
8275
8276
  [x: `bytes1[${string}]`]: undefined;
8276
8277
  [x: `bytes2[${string}]`]: undefined;
8277
8278
  [x: `bytes3[${string}]`]: undefined;
@@ -8279,7 +8280,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
8279
8280
  [x: `bytes7[${string}]`]: undefined;
8280
8281
  [x: `bytes8[${string}]`]: undefined;
8281
8282
  [x: `bytes9[${string}]`]: undefined;
8282
- [x: `bytes10[${string}]`]: undefined;
8283
8283
  [x: `bytes11[${string}]`]: undefined;
8284
8284
  [x: `bytes12[${string}]`]: undefined;
8285
8285
  [x: `bytes13[${string}]`]: undefined;
@@ -8374,6 +8374,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
8374
8374
  bytes4?: undefined;
8375
8375
  bytes?: undefined;
8376
8376
  bytes6?: undefined;
8377
+ bytes10?: undefined;
8377
8378
  bytes1?: undefined;
8378
8379
  bytes2?: undefined;
8379
8380
  bytes3?: undefined;
@@ -8381,7 +8382,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
8381
8382
  bytes7?: undefined;
8382
8383
  bytes8?: undefined;
8383
8384
  bytes9?: undefined;
8384
- bytes10?: undefined;
8385
8385
  bytes11?: undefined;
8386
8386
  bytes12?: undefined;
8387
8387
  bytes13?: undefined;
@@ -8727,6 +8727,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
8727
8727
  [x: `bytes4[${string}]`]: undefined;
8728
8728
  [x: `bytes[${string}]`]: undefined;
8729
8729
  [x: `bytes6[${string}]`]: undefined;
8730
+ [x: `bytes10[${string}]`]: undefined;
8730
8731
  [x: `bytes1[${string}]`]: undefined;
8731
8732
  [x: `bytes2[${string}]`]: undefined;
8732
8733
  [x: `bytes3[${string}]`]: undefined;
@@ -8734,7 +8735,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
8734
8735
  [x: `bytes7[${string}]`]: undefined;
8735
8736
  [x: `bytes8[${string}]`]: undefined;
8736
8737
  [x: `bytes9[${string}]`]: undefined;
8737
- [x: `bytes10[${string}]`]: undefined;
8738
8738
  [x: `bytes11[${string}]`]: undefined;
8739
8739
  [x: `bytes12[${string}]`]: undefined;
8740
8740
  [x: `bytes13[${string}]`]: undefined;
@@ -8829,6 +8829,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
8829
8829
  bytes4?: undefined;
8830
8830
  bytes?: undefined;
8831
8831
  bytes6?: undefined;
8832
+ bytes10?: undefined;
8832
8833
  bytes1?: undefined;
8833
8834
  bytes2?: undefined;
8834
8835
  bytes3?: undefined;
@@ -8836,7 +8837,6 @@ declare class AcpContractClient extends BaseAcpContractClient {
8836
8837
  bytes7?: undefined;
8837
8838
  bytes8?: undefined;
8838
8839
  bytes9?: undefined;
8839
- bytes10?: undefined;
8840
8840
  bytes11?: undefined;
8841
8841
  bytes12?: undefined;
8842
8842
  bytes13?: undefined;
@@ -8954,13 +8954,12 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
8954
8954
  private jobManagerAddress;
8955
8955
  private memoManagerAddress;
8956
8956
  private accountManagerAddress;
8957
- private MAX_RETRIES;
8958
8957
  private PRIORITY_FEE_MULTIPLIER;
8959
8958
  private MAX_FEE_PER_GAS;
8960
8959
  private MAX_PRIORITY_FEE_PER_GAS;
8961
8960
  private _sessionKeyClient;
8962
8961
  private _acpX402;
8963
- constructor(jobManagerAddress: Address$1, memoManagerAddress: Address$1, accountManagerAddress: Address$1, agentWalletAddress: Address$1, config?: AcpContractConfig, maxRetries?: number);
8962
+ constructor(jobManagerAddress: Address$1, memoManagerAddress: Address$1, accountManagerAddress: Address$1, agentWalletAddress: Address$1, config?: AcpContractConfig);
8964
8963
  static build(walletPrivateKey: Address$1, sessionEntityKeyId: number, agentWalletAddress: Address$1, config?: AcpContractConfig): Promise<AcpContractClientV2>;
8965
8964
  init(privateKey: Address$1, sessionEntityKeyId: number): Promise<void>;
8966
8965
  getRandomNonce(bits?: number): bigint;
@@ -9240,6 +9239,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
9240
9239
  [x: `bytes4[${string}]`]: undefined;
9241
9240
  [x: `bytes[${string}]`]: undefined;
9242
9241
  [x: `bytes6[${string}]`]: undefined;
9242
+ [x: `bytes10[${string}]`]: undefined;
9243
9243
  [x: `bytes1[${string}]`]: undefined;
9244
9244
  [x: `bytes2[${string}]`]: undefined;
9245
9245
  [x: `bytes3[${string}]`]: undefined;
@@ -9247,7 +9247,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
9247
9247
  [x: `bytes7[${string}]`]: undefined;
9248
9248
  [x: `bytes8[${string}]`]: undefined;
9249
9249
  [x: `bytes9[${string}]`]: undefined;
9250
- [x: `bytes10[${string}]`]: undefined;
9251
9250
  [x: `bytes11[${string}]`]: undefined;
9252
9251
  [x: `bytes12[${string}]`]: undefined;
9253
9252
  [x: `bytes13[${string}]`]: undefined;
@@ -9342,6 +9341,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
9342
9341
  bytes4?: undefined;
9343
9342
  bytes?: undefined;
9344
9343
  bytes6?: undefined;
9344
+ bytes10?: undefined;
9345
9345
  bytes1?: undefined;
9346
9346
  bytes2?: undefined;
9347
9347
  bytes3?: undefined;
@@ -9349,7 +9349,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
9349
9349
  bytes7?: undefined;
9350
9350
  bytes8?: undefined;
9351
9351
  bytes9?: undefined;
9352
- bytes10?: undefined;
9353
9352
  bytes11?: undefined;
9354
9353
  bytes12?: undefined;
9355
9354
  bytes13?: undefined;
@@ -16557,6 +16556,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
16557
16556
  [x: `bytes4[${string}]`]: undefined;
16558
16557
  [x: `bytes[${string}]`]: undefined;
16559
16558
  [x: `bytes6[${string}]`]: undefined;
16559
+ [x: `bytes10[${string}]`]: undefined;
16560
16560
  [x: `bytes1[${string}]`]: undefined;
16561
16561
  [x: `bytes2[${string}]`]: undefined;
16562
16562
  [x: `bytes3[${string}]`]: undefined;
@@ -16564,7 +16564,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
16564
16564
  [x: `bytes7[${string}]`]: undefined;
16565
16565
  [x: `bytes8[${string}]`]: undefined;
16566
16566
  [x: `bytes9[${string}]`]: undefined;
16567
- [x: `bytes10[${string}]`]: undefined;
16568
16567
  [x: `bytes11[${string}]`]: undefined;
16569
16568
  [x: `bytes12[${string}]`]: undefined;
16570
16569
  [x: `bytes13[${string}]`]: undefined;
@@ -16659,6 +16658,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
16659
16658
  bytes4?: undefined;
16660
16659
  bytes?: undefined;
16661
16660
  bytes6?: undefined;
16661
+ bytes10?: undefined;
16662
16662
  bytes1?: undefined;
16663
16663
  bytes2?: undefined;
16664
16664
  bytes3?: undefined;
@@ -16666,7 +16666,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
16666
16666
  bytes7?: undefined;
16667
16667
  bytes8?: undefined;
16668
16668
  bytes9?: undefined;
16669
- bytes10?: undefined;
16670
16669
  bytes11?: undefined;
16671
16670
  bytes12?: undefined;
16672
16671
  bytes13?: undefined;
@@ -17012,6 +17011,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
17012
17011
  [x: `bytes4[${string}]`]: undefined;
17013
17012
  [x: `bytes[${string}]`]: undefined;
17014
17013
  [x: `bytes6[${string}]`]: undefined;
17014
+ [x: `bytes10[${string}]`]: undefined;
17015
17015
  [x: `bytes1[${string}]`]: undefined;
17016
17016
  [x: `bytes2[${string}]`]: undefined;
17017
17017
  [x: `bytes3[${string}]`]: undefined;
@@ -17019,7 +17019,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
17019
17019
  [x: `bytes7[${string}]`]: undefined;
17020
17020
  [x: `bytes8[${string}]`]: undefined;
17021
17021
  [x: `bytes9[${string}]`]: undefined;
17022
- [x: `bytes10[${string}]`]: undefined;
17023
17022
  [x: `bytes11[${string}]`]: undefined;
17024
17023
  [x: `bytes12[${string}]`]: undefined;
17025
17024
  [x: `bytes13[${string}]`]: undefined;
@@ -17114,6 +17113,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
17114
17113
  bytes4?: undefined;
17115
17114
  bytes?: undefined;
17116
17115
  bytes6?: undefined;
17116
+ bytes10?: undefined;
17117
17117
  bytes1?: undefined;
17118
17118
  bytes2?: undefined;
17119
17119
  bytes3?: undefined;
@@ -17121,7 +17121,6 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
17121
17121
  bytes7?: undefined;
17122
17122
  bytes8?: undefined;
17123
17123
  bytes9?: undefined;
17124
- bytes10?: undefined;
17125
17124
  bytes11?: undefined;
17126
17125
  bytes12?: undefined;
17127
17126
  bytes13?: undefined;
package/dist/index.js CHANGED
@@ -55,7 +55,7 @@ var require_package = __commonJS({
55
55
  "package.json"(exports2, module2) {
56
56
  module2.exports = {
57
57
  name: "@virtuals-protocol/acp-node",
58
- version: "0.3.0-beta.10",
58
+ version: "0.3.0-beta.11",
59
59
  main: "./dist/index.js",
60
60
  module: "./dist/index.mjs",
61
61
  types: "./dist/index.d.ts",
@@ -2291,14 +2291,17 @@ var ACP_V2_ABI = [
2291
2291
  var acpAbiV2_default = ACP_V2_ABI;
2292
2292
 
2293
2293
  // src/configs/acpConfigs.ts
2294
+ var V1_MAX_RETRIES = 10;
2295
+ var V2_MAX_RETRIES = 3;
2294
2296
  var AcpContractConfig2 = class {
2295
- constructor(chain, contractAddress, baseFare, alchemyRpcUrl, acpUrl, abi, rpcEndpoint, x402Config) {
2297
+ constructor(chain, contractAddress, baseFare, alchemyRpcUrl, acpUrl, abi, maxRetries, rpcEndpoint, x402Config) {
2296
2298
  this.chain = chain;
2297
2299
  this.contractAddress = contractAddress;
2298
2300
  this.baseFare = baseFare;
2299
2301
  this.alchemyRpcUrl = alchemyRpcUrl;
2300
2302
  this.acpUrl = acpUrl;
2301
2303
  this.abi = abi;
2304
+ this.maxRetries = maxRetries;
2302
2305
  this.rpcEndpoint = rpcEndpoint;
2303
2306
  this.x402Config = x402Config;
2304
2307
  }
@@ -2309,7 +2312,10 @@ var baseSepoliaAcpConfig = new AcpContractConfig2(
2309
2312
  new Fare("0x036CbD53842c5426634e7929541eC2318f3dCF7e", 6),
2310
2313
  "https://alchemy-proxy.virtuals.io/api/proxy/rpc",
2311
2314
  "https://acpx.virtuals.gg",
2312
- acpAbi_default
2315
+ acpAbi_default,
2316
+ V1_MAX_RETRIES,
2317
+ void 0,
2318
+ void 0
2313
2319
  );
2314
2320
  var baseSepoliaAcpX402Config = new AcpContractConfig2(
2315
2321
  import_infra.baseSepolia,
@@ -2318,6 +2324,7 @@ var baseSepoliaAcpX402Config = new AcpContractConfig2(
2318
2324
  "https://alchemy-proxy.virtuals.io/api/proxy/rpc",
2319
2325
  "https://acpx.virtuals.gg",
2320
2326
  acpAbi_default,
2327
+ V1_MAX_RETRIES,
2321
2328
  void 0,
2322
2329
  {
2323
2330
  url: "https://dev-acp-x402.virtuals.io"
@@ -2329,7 +2336,10 @@ var baseSepoliaAcpConfigV2 = new AcpContractConfig2(
2329
2336
  new Fare("0x036CbD53842c5426634e7929541eC2318f3dCF7e", 6),
2330
2337
  "https://alchemy-proxy.virtuals.io/api/proxy/rpc",
2331
2338
  "https://acpx.virtuals.gg",
2332
- acpAbiV2_default
2339
+ acpAbiV2_default,
2340
+ V2_MAX_RETRIES,
2341
+ void 0,
2342
+ void 0
2333
2343
  );
2334
2344
  var baseSepoliaAcpX402ConfigV2 = new AcpContractConfig2(
2335
2345
  import_infra.baseSepolia,
@@ -2338,6 +2348,7 @@ var baseSepoliaAcpX402ConfigV2 = new AcpContractConfig2(
2338
2348
  "https://alchemy-proxy.virtuals.io/api/proxy/rpc",
2339
2349
  "https://acpx.virtuals.gg",
2340
2350
  acpAbiV2_default,
2351
+ V2_MAX_RETRIES,
2341
2352
  void 0,
2342
2353
  {
2343
2354
  url: "https://dev-acp-x402.virtuals.io"
@@ -2349,7 +2360,10 @@ var baseAcpConfig = new AcpContractConfig2(
2349
2360
  new Fare("0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", 6),
2350
2361
  "https://alchemy-proxy-prod.virtuals.io/api/proxy/rpc",
2351
2362
  "https://acpx.virtuals.io",
2352
- acpAbi_default
2363
+ acpAbi_default,
2364
+ V1_MAX_RETRIES,
2365
+ void 0,
2366
+ void 0
2353
2367
  );
2354
2368
  var baseAcpX402Config = new AcpContractConfig2(
2355
2369
  import_infra.base,
@@ -2358,6 +2372,7 @@ var baseAcpX402Config = new AcpContractConfig2(
2358
2372
  "https://alchemy-proxy-prod.virtuals.io/api/proxy/rpc",
2359
2373
  "https://acpx.virtuals.io",
2360
2374
  acpAbi_default,
2375
+ V1_MAX_RETRIES,
2361
2376
  void 0,
2362
2377
  {
2363
2378
  url: "https://acp-x402.virtuals.io"
@@ -2369,7 +2384,10 @@ var baseAcpConfigV2 = new AcpContractConfig2(
2369
2384
  new Fare("0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", 6),
2370
2385
  "https://alchemy-proxy-prod.virtuals.io/api/proxy/rpc",
2371
2386
  "https://acpx.virtuals.io",
2372
- acpAbiV2_default
2387
+ acpAbiV2_default,
2388
+ V2_MAX_RETRIES,
2389
+ void 0,
2390
+ void 0
2373
2391
  );
2374
2392
  var baseAcpX402ConfigV2 = new AcpContractConfig2(
2375
2393
  import_infra.base,
@@ -2378,6 +2396,7 @@ var baseAcpX402ConfigV2 = new AcpContractConfig2(
2378
2396
  "https://alchemy-proxy-prod.virtuals.io/api/proxy/rpc",
2379
2397
  "https://acpx.virtuals.io",
2380
2398
  acpAbiV2_default,
2399
+ V2_MAX_RETRIES,
2381
2400
  void 0,
2382
2401
  {
2383
2402
  url: "https://acp-x402.virtuals.io"
@@ -4960,16 +4979,18 @@ var AcpX402 = class {
4960
4979
 
4961
4980
  // src/contractClients/acpContractClient.ts
4962
4981
  var AcpContractClient = class _AcpContractClient extends baseAcpContractClient_default {
4963
- constructor(agentWalletAddress, config = baseAcpConfig, maxRetries = 10) {
4982
+ constructor(agentWalletAddress, config = baseAcpConfig) {
4964
4983
  super(agentWalletAddress, config);
4965
4984
  this.PRIORITY_FEE_MULTIPLIER = 2;
4966
4985
  this.MAX_FEE_PER_GAS = 2e7;
4967
4986
  this.MAX_PRIORITY_FEE_PER_GAS = 21e6;
4968
- this.MAX_RETRIES = maxRetries;
4969
4987
  }
4970
4988
  static build(_0, _1, _2) {
4971
4989
  return __async(this, arguments, function* (walletPrivateKey, sessionEntityKeyId, agentWalletAddress, config = baseAcpConfig) {
4972
- const acpContractClient = new _AcpContractClient(agentWalletAddress, config);
4990
+ const acpContractClient = new _AcpContractClient(
4991
+ agentWalletAddress,
4992
+ config
4993
+ );
4973
4994
  yield acpContractClient.init(walletPrivateKey, sessionEntityKeyId);
4974
4995
  return acpContractClient;
4975
4996
  });
@@ -5036,11 +5057,11 @@ var AcpContractClient = class _AcpContractClient extends baseAcpContractClient_d
5036
5057
  nonceKey: this.getRandomNonce()
5037
5058
  }
5038
5059
  };
5039
- let retries = this.MAX_RETRIES;
5060
+ let retries = this.config.maxRetries;
5040
5061
  let finalError;
5041
5062
  while (retries > 0) {
5042
5063
  try {
5043
- if (this.MAX_RETRIES > retries) {
5064
+ if (this.config.maxRetries > retries) {
5044
5065
  const gasFees = yield this.calculateGasFees();
5045
5066
  payload["overrides"] = {
5046
5067
  maxFeePerGas: `0x${gasFees.toString(16)}`
@@ -5886,7 +5907,7 @@ var jobManagerAbi_default = JOB_MANAGER_ABI;
5886
5907
 
5887
5908
  // src/contractClients/acpContractClientV2.ts
5888
5909
  var AcpContractClientV2 = class _AcpContractClientV2 extends baseAcpContractClient_default {
5889
- constructor(jobManagerAddress, memoManagerAddress, accountManagerAddress, agentWalletAddress, config = baseAcpConfigV2, maxRetries = 3) {
5910
+ constructor(jobManagerAddress, memoManagerAddress, accountManagerAddress, agentWalletAddress, config = baseAcpConfigV2) {
5890
5911
  super(agentWalletAddress, config);
5891
5912
  this.jobManagerAddress = jobManagerAddress;
5892
5913
  this.memoManagerAddress = memoManagerAddress;
@@ -5894,10 +5915,10 @@ var AcpContractClientV2 = class _AcpContractClientV2 extends baseAcpContractClie
5894
5915
  this.PRIORITY_FEE_MULTIPLIER = 2;
5895
5916
  this.MAX_FEE_PER_GAS = 2e7;
5896
5917
  this.MAX_PRIORITY_FEE_PER_GAS = 21e6;
5897
- this.MAX_RETRIES = maxRetries;
5898
5918
  }
5899
5919
  static build(_0, _1, _2) {
5900
5920
  return __async(this, arguments, function* (walletPrivateKey, sessionEntityKeyId, agentWalletAddress, config = baseAcpConfigV2) {
5921
+ console.log("xxx", config.maxRetries);
5901
5922
  const publicClient = (0, import_viem7.createPublicClient)({
5902
5923
  chain: config.chain,
5903
5924
  transport: (0, import_viem7.http)(config.rpcEndpoint)
@@ -5999,11 +6020,11 @@ var AcpContractClientV2 = class _AcpContractClientV2 extends baseAcpContractClie
5999
6020
  nonceKey: this.getRandomNonce()
6000
6021
  }
6001
6022
  };
6002
- let retries = this.MAX_RETRIES;
6023
+ let retries = this.config.maxRetries;
6003
6024
  let finalError;
6004
6025
  while (retries > 0) {
6005
6026
  try {
6006
- if (this.MAX_RETRIES > retries) {
6027
+ if (this.config.maxRetries > retries) {
6007
6028
  const gasFees = yield this.calculateGasFees();
6008
6029
  payload["overrides"] = {
6009
6030
  maxFeePerGas: `0x${gasFees.toString(16)}`
package/dist/index.mjs CHANGED
@@ -28,7 +28,7 @@ var require_package = __commonJS({
28
28
  "package.json"(exports, module) {
29
29
  module.exports = {
30
30
  name: "@virtuals-protocol/acp-node",
31
- version: "0.3.0-beta.10",
31
+ version: "0.3.0-beta.11",
32
32
  main: "./dist/index.js",
33
33
  module: "./dist/index.mjs",
34
34
  types: "./dist/index.d.ts",
@@ -2243,14 +2243,17 @@ var ACP_V2_ABI = [
2243
2243
  var acpAbiV2_default = ACP_V2_ABI;
2244
2244
 
2245
2245
  // src/configs/acpConfigs.ts
2246
+ var V1_MAX_RETRIES = 10;
2247
+ var V2_MAX_RETRIES = 3;
2246
2248
  var AcpContractConfig2 = class {
2247
- constructor(chain, contractAddress, baseFare, alchemyRpcUrl, acpUrl, abi, rpcEndpoint, x402Config) {
2249
+ constructor(chain, contractAddress, baseFare, alchemyRpcUrl, acpUrl, abi, maxRetries, rpcEndpoint, x402Config) {
2248
2250
  this.chain = chain;
2249
2251
  this.contractAddress = contractAddress;
2250
2252
  this.baseFare = baseFare;
2251
2253
  this.alchemyRpcUrl = alchemyRpcUrl;
2252
2254
  this.acpUrl = acpUrl;
2253
2255
  this.abi = abi;
2256
+ this.maxRetries = maxRetries;
2254
2257
  this.rpcEndpoint = rpcEndpoint;
2255
2258
  this.x402Config = x402Config;
2256
2259
  }
@@ -2261,7 +2264,10 @@ var baseSepoliaAcpConfig = new AcpContractConfig2(
2261
2264
  new Fare("0x036CbD53842c5426634e7929541eC2318f3dCF7e", 6),
2262
2265
  "https://alchemy-proxy.virtuals.io/api/proxy/rpc",
2263
2266
  "https://acpx.virtuals.gg",
2264
- acpAbi_default
2267
+ acpAbi_default,
2268
+ V1_MAX_RETRIES,
2269
+ void 0,
2270
+ void 0
2265
2271
  );
2266
2272
  var baseSepoliaAcpX402Config = new AcpContractConfig2(
2267
2273
  baseSepolia,
@@ -2270,6 +2276,7 @@ var baseSepoliaAcpX402Config = new AcpContractConfig2(
2270
2276
  "https://alchemy-proxy.virtuals.io/api/proxy/rpc",
2271
2277
  "https://acpx.virtuals.gg",
2272
2278
  acpAbi_default,
2279
+ V1_MAX_RETRIES,
2273
2280
  void 0,
2274
2281
  {
2275
2282
  url: "https://dev-acp-x402.virtuals.io"
@@ -2281,7 +2288,10 @@ var baseSepoliaAcpConfigV2 = new AcpContractConfig2(
2281
2288
  new Fare("0x036CbD53842c5426634e7929541eC2318f3dCF7e", 6),
2282
2289
  "https://alchemy-proxy.virtuals.io/api/proxy/rpc",
2283
2290
  "https://acpx.virtuals.gg",
2284
- acpAbiV2_default
2291
+ acpAbiV2_default,
2292
+ V2_MAX_RETRIES,
2293
+ void 0,
2294
+ void 0
2285
2295
  );
2286
2296
  var baseSepoliaAcpX402ConfigV2 = new AcpContractConfig2(
2287
2297
  baseSepolia,
@@ -2290,6 +2300,7 @@ var baseSepoliaAcpX402ConfigV2 = new AcpContractConfig2(
2290
2300
  "https://alchemy-proxy.virtuals.io/api/proxy/rpc",
2291
2301
  "https://acpx.virtuals.gg",
2292
2302
  acpAbiV2_default,
2303
+ V2_MAX_RETRIES,
2293
2304
  void 0,
2294
2305
  {
2295
2306
  url: "https://dev-acp-x402.virtuals.io"
@@ -2301,7 +2312,10 @@ var baseAcpConfig = new AcpContractConfig2(
2301
2312
  new Fare("0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", 6),
2302
2313
  "https://alchemy-proxy-prod.virtuals.io/api/proxy/rpc",
2303
2314
  "https://acpx.virtuals.io",
2304
- acpAbi_default
2315
+ acpAbi_default,
2316
+ V1_MAX_RETRIES,
2317
+ void 0,
2318
+ void 0
2305
2319
  );
2306
2320
  var baseAcpX402Config = new AcpContractConfig2(
2307
2321
  base,
@@ -2310,6 +2324,7 @@ var baseAcpX402Config = new AcpContractConfig2(
2310
2324
  "https://alchemy-proxy-prod.virtuals.io/api/proxy/rpc",
2311
2325
  "https://acpx.virtuals.io",
2312
2326
  acpAbi_default,
2327
+ V1_MAX_RETRIES,
2313
2328
  void 0,
2314
2329
  {
2315
2330
  url: "https://acp-x402.virtuals.io"
@@ -2321,7 +2336,10 @@ var baseAcpConfigV2 = new AcpContractConfig2(
2321
2336
  new Fare("0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", 6),
2322
2337
  "https://alchemy-proxy-prod.virtuals.io/api/proxy/rpc",
2323
2338
  "https://acpx.virtuals.io",
2324
- acpAbiV2_default
2339
+ acpAbiV2_default,
2340
+ V2_MAX_RETRIES,
2341
+ void 0,
2342
+ void 0
2325
2343
  );
2326
2344
  var baseAcpX402ConfigV2 = new AcpContractConfig2(
2327
2345
  base,
@@ -2330,6 +2348,7 @@ var baseAcpX402ConfigV2 = new AcpContractConfig2(
2330
2348
  "https://alchemy-proxy-prod.virtuals.io/api/proxy/rpc",
2331
2349
  "https://acpx.virtuals.io",
2332
2350
  acpAbiV2_default,
2351
+ V2_MAX_RETRIES,
2333
2352
  void 0,
2334
2353
  {
2335
2354
  url: "https://acp-x402.virtuals.io"
@@ -4916,16 +4935,18 @@ var AcpX402 = class {
4916
4935
 
4917
4936
  // src/contractClients/acpContractClient.ts
4918
4937
  var AcpContractClient = class _AcpContractClient extends baseAcpContractClient_default {
4919
- constructor(agentWalletAddress, config = baseAcpConfig, maxRetries = 10) {
4938
+ constructor(agentWalletAddress, config = baseAcpConfig) {
4920
4939
  super(agentWalletAddress, config);
4921
4940
  this.PRIORITY_FEE_MULTIPLIER = 2;
4922
4941
  this.MAX_FEE_PER_GAS = 2e7;
4923
4942
  this.MAX_PRIORITY_FEE_PER_GAS = 21e6;
4924
- this.MAX_RETRIES = maxRetries;
4925
4943
  }
4926
4944
  static build(_0, _1, _2) {
4927
4945
  return __async(this, arguments, function* (walletPrivateKey, sessionEntityKeyId, agentWalletAddress, config = baseAcpConfig) {
4928
- const acpContractClient = new _AcpContractClient(agentWalletAddress, config);
4946
+ const acpContractClient = new _AcpContractClient(
4947
+ agentWalletAddress,
4948
+ config
4949
+ );
4929
4950
  yield acpContractClient.init(walletPrivateKey, sessionEntityKeyId);
4930
4951
  return acpContractClient;
4931
4952
  });
@@ -4992,11 +5013,11 @@ var AcpContractClient = class _AcpContractClient extends baseAcpContractClient_d
4992
5013
  nonceKey: this.getRandomNonce()
4993
5014
  }
4994
5015
  };
4995
- let retries = this.MAX_RETRIES;
5016
+ let retries = this.config.maxRetries;
4996
5017
  let finalError;
4997
5018
  while (retries > 0) {
4998
5019
  try {
4999
- if (this.MAX_RETRIES > retries) {
5020
+ if (this.config.maxRetries > retries) {
5000
5021
  const gasFees = yield this.calculateGasFees();
5001
5022
  payload["overrides"] = {
5002
5023
  maxFeePerGas: `0x${gasFees.toString(16)}`
@@ -5844,7 +5865,7 @@ var jobManagerAbi_default = JOB_MANAGER_ABI;
5844
5865
 
5845
5866
  // src/contractClients/acpContractClientV2.ts
5846
5867
  var AcpContractClientV2 = class _AcpContractClientV2 extends baseAcpContractClient_default {
5847
- constructor(jobManagerAddress, memoManagerAddress, accountManagerAddress, agentWalletAddress, config = baseAcpConfigV2, maxRetries = 3) {
5868
+ constructor(jobManagerAddress, memoManagerAddress, accountManagerAddress, agentWalletAddress, config = baseAcpConfigV2) {
5848
5869
  super(agentWalletAddress, config);
5849
5870
  this.jobManagerAddress = jobManagerAddress;
5850
5871
  this.memoManagerAddress = memoManagerAddress;
@@ -5852,10 +5873,10 @@ var AcpContractClientV2 = class _AcpContractClientV2 extends baseAcpContractClie
5852
5873
  this.PRIORITY_FEE_MULTIPLIER = 2;
5853
5874
  this.MAX_FEE_PER_GAS = 2e7;
5854
5875
  this.MAX_PRIORITY_FEE_PER_GAS = 21e6;
5855
- this.MAX_RETRIES = maxRetries;
5856
5876
  }
5857
5877
  static build(_0, _1, _2) {
5858
5878
  return __async(this, arguments, function* (walletPrivateKey, sessionEntityKeyId, agentWalletAddress, config = baseAcpConfigV2) {
5879
+ console.log("xxx", config.maxRetries);
5859
5880
  const publicClient = createPublicClient4({
5860
5881
  chain: config.chain,
5861
5882
  transport: http3(config.rpcEndpoint)
@@ -5957,11 +5978,11 @@ var AcpContractClientV2 = class _AcpContractClientV2 extends baseAcpContractClie
5957
5978
  nonceKey: this.getRandomNonce()
5958
5979
  }
5959
5980
  };
5960
- let retries = this.MAX_RETRIES;
5981
+ let retries = this.config.maxRetries;
5961
5982
  let finalError;
5962
5983
  while (retries > 0) {
5963
5984
  try {
5964
- if (this.MAX_RETRIES > retries) {
5985
+ if (this.config.maxRetries > retries) {
5965
5986
  const gasFees = yield this.calculateGasFees();
5966
5987
  payload["overrides"] = {
5967
5988
  maxFeePerGas: `0x${gasFees.toString(16)}`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@virtuals-protocol/acp-node",
3
- "version": "0.3.0-beta.10",
3
+ "version": "0.3.0-beta.11",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",