@virtuals-protocol/acp-node 0.3.0-beta.33 → 0.3.0-beta.34

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.js CHANGED
@@ -35,7 +35,7 @@ var require_package = __commonJS({
35
35
  "package.json"(exports2, module2) {
36
36
  module2.exports = {
37
37
  name: "@virtuals-protocol/acp-node",
38
- version: "0.3.0-beta.33",
38
+ version: "0.3.0-beta.34",
39
39
  main: "./dist/index.js",
40
40
  module: "./dist/index.mjs",
41
41
  types: "./dist/index.d.ts",
@@ -5782,6 +5782,11 @@ var AcpContractClient = class _AcpContractClient extends baseAcpContractClient_d
5782
5782
  signTypedData(typedData) {
5783
5783
  return this.sessionKeyClient.signTypedData({ typedData });
5784
5784
  }
5785
+ async sendTransaction(request) {
5786
+ return await this.sessionKeyClient.sendTransaction(request, {
5787
+ paymasterAndData: "0x"
5788
+ });
5789
+ }
5785
5790
  };
5786
5791
  var acpContractClient_default = AcpContractClient;
5787
5792
 
@@ -7633,10 +7638,6 @@ var AcpContractClientV2 = class _AcpContractClientV2 extends baseAcpContractClie
7633
7638
  this.jobManagerAddress = jobManagerAddress;
7634
7639
  this.memoManagerAddress = memoManagerAddress;
7635
7640
  this.accountManagerAddress = accountManagerAddress;
7636
- this.PRIORITY_FEE_MULTIPLIER = 2;
7637
- this.MAX_FEE_PER_GAS = 2e7;
7638
- this.MAX_PRIORITY_FEE_PER_GAS = 21e6;
7639
- this.GAS_FEE_MULTIPLIER = 0.5;
7640
7641
  this.RETRY_CONFIG = {
7641
7642
  intervalMs: 200,
7642
7643
  multiplier: 1.1,
@@ -7765,15 +7766,6 @@ var AcpContractClientV2 = class _AcpContractClientV2 extends baseAcpContractClie
7765
7766
  }
7766
7767
  return this._acpX402;
7767
7768
  }
7768
- async calculateGasFees(chainId) {
7769
- if (chainId) {
7770
- const { maxFeePerGas } = await this.publicClients[chainId].estimateFeesPerGas();
7771
- const increasedMaxFeePerGas = BigInt(maxFeePerGas) + BigInt(maxFeePerGas) * BigInt(this.GAS_FEE_MULTIPLIER * 100) / BigInt(100);
7772
- return increasedMaxFeePerGas;
7773
- }
7774
- const finalMaxFeePerGas = BigInt(this.MAX_FEE_PER_GAS) + BigInt(this.MAX_PRIORITY_FEE_PER_GAS) * BigInt(Math.max(0, this.PRIORITY_FEE_MULTIPLIER - 1));
7775
- return finalMaxFeePerGas;
7776
- }
7777
7769
  async handleOperation(operations, chainId) {
7778
7770
  const sessionKeyClient = chainId ? this._sessionKeyClients[chainId] : this.sessionKeyClient;
7779
7771
  if (!sessionKeyClient) {
@@ -7889,6 +7881,11 @@ var AcpContractClientV2 = class _AcpContractClientV2 extends baseAcpContractClie
7889
7881
  async signTypedData(typedData) {
7890
7882
  return await this.sessionKeyClient.signTypedData({ typedData });
7891
7883
  }
7884
+ async sendTransaction(request) {
7885
+ return await this.sessionKeyClient.sendTransaction(request, {
7886
+ paymasterAndData: "0x"
7887
+ });
7888
+ }
7892
7889
  };
7893
7890
  var acpContractClientV2_default = AcpContractClientV2;
7894
7891
 
package/dist/index.mjs CHANGED
@@ -8,7 +8,7 @@ var require_package = __commonJS({
8
8
  "package.json"(exports, module) {
9
9
  module.exports = {
10
10
  name: "@virtuals-protocol/acp-node",
11
- version: "0.3.0-beta.33",
11
+ version: "0.3.0-beta.34",
12
12
  main: "./dist/index.js",
13
13
  module: "./dist/index.mjs",
14
14
  types: "./dist/index.d.ts",
@@ -5766,6 +5766,11 @@ var AcpContractClient = class _AcpContractClient extends baseAcpContractClient_d
5766
5766
  signTypedData(typedData) {
5767
5767
  return this.sessionKeyClient.signTypedData({ typedData });
5768
5768
  }
5769
+ async sendTransaction(request) {
5770
+ return await this.sessionKeyClient.sendTransaction(request, {
5771
+ paymasterAndData: "0x"
5772
+ });
5773
+ }
5769
5774
  };
5770
5775
  var acpContractClient_default = AcpContractClient;
5771
5776
 
@@ -7623,10 +7628,6 @@ var AcpContractClientV2 = class _AcpContractClientV2 extends baseAcpContractClie
7623
7628
  this.jobManagerAddress = jobManagerAddress;
7624
7629
  this.memoManagerAddress = memoManagerAddress;
7625
7630
  this.accountManagerAddress = accountManagerAddress;
7626
- this.PRIORITY_FEE_MULTIPLIER = 2;
7627
- this.MAX_FEE_PER_GAS = 2e7;
7628
- this.MAX_PRIORITY_FEE_PER_GAS = 21e6;
7629
- this.GAS_FEE_MULTIPLIER = 0.5;
7630
7631
  this.RETRY_CONFIG = {
7631
7632
  intervalMs: 200,
7632
7633
  multiplier: 1.1,
@@ -7755,15 +7756,6 @@ var AcpContractClientV2 = class _AcpContractClientV2 extends baseAcpContractClie
7755
7756
  }
7756
7757
  return this._acpX402;
7757
7758
  }
7758
- async calculateGasFees(chainId) {
7759
- if (chainId) {
7760
- const { maxFeePerGas } = await this.publicClients[chainId].estimateFeesPerGas();
7761
- const increasedMaxFeePerGas = BigInt(maxFeePerGas) + BigInt(maxFeePerGas) * BigInt(this.GAS_FEE_MULTIPLIER * 100) / BigInt(100);
7762
- return increasedMaxFeePerGas;
7763
- }
7764
- const finalMaxFeePerGas = BigInt(this.MAX_FEE_PER_GAS) + BigInt(this.MAX_PRIORITY_FEE_PER_GAS) * BigInt(Math.max(0, this.PRIORITY_FEE_MULTIPLIER - 1));
7765
- return finalMaxFeePerGas;
7766
- }
7767
7759
  async handleOperation(operations, chainId) {
7768
7760
  const sessionKeyClient = chainId ? this._sessionKeyClients[chainId] : this.sessionKeyClient;
7769
7761
  if (!sessionKeyClient) {
@@ -7879,6 +7871,11 @@ var AcpContractClientV2 = class _AcpContractClientV2 extends baseAcpContractClie
7879
7871
  async signTypedData(typedData) {
7880
7872
  return await this.sessionKeyClient.signTypedData({ typedData });
7881
7873
  }
7874
+ async sendTransaction(request) {
7875
+ return await this.sessionKeyClient.sendTransaction(request, {
7876
+ paymasterAndData: "0x"
7877
+ });
7878
+ }
7882
7879
  };
7883
7880
  var acpContractClientV2_default = AcpContractClientV2;
7884
7881
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@virtuals-protocol/acp-node",
3
- "version": "0.3.0-beta.33",
3
+ "version": "0.3.0-beta.34",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",