@virtuals-protocol/acp-node 0.3.0-beta.35 → 0.3.0-beta.37

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
@@ -599,6 +599,7 @@ declare abstract class BaseAcpContractClient {
599
599
  abstract getAssetManager(): Promise<Address>;
600
600
  abstract getAcpVersion(): string;
601
601
  abstract signTypedData(typedData: SignTypedDataParameters): Promise<Hex>;
602
+ abstract signMessage(message: string): Promise<Hex>;
602
603
  abstract sendTransaction(request: TransactionRequest): Promise<Hex>;
603
604
  }
604
605
 
@@ -8947,6 +8948,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
8947
8948
  getAssetManager(): Promise<Address$1>;
8948
8949
  getAcpVersion(): string;
8949
8950
  signTypedData(typedData: SignTypedDataParameters): Promise<Hex>;
8951
+ signMessage(message: string): Promise<Hex>;
8950
8952
  sendTransaction(request: TransactionRequest): Promise<Hex>;
8951
8953
  }
8952
8954
 
@@ -8982,6 +8984,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
8982
8984
  getAssetManager(): Promise<Address$1>;
8983
8985
  getAcpVersion(): string;
8984
8986
  signTypedData(typedData: SignTypedDataParameters): Promise<Hex>;
8987
+ signMessage(message: string): Promise<Hex>;
8985
8988
  sendTransaction(request: TransactionRequest): Promise<Hex>;
8986
8989
  }
8987
8990
 
package/dist/index.d.ts CHANGED
@@ -599,6 +599,7 @@ declare abstract class BaseAcpContractClient {
599
599
  abstract getAssetManager(): Promise<Address>;
600
600
  abstract getAcpVersion(): string;
601
601
  abstract signTypedData(typedData: SignTypedDataParameters): Promise<Hex>;
602
+ abstract signMessage(message: string): Promise<Hex>;
602
603
  abstract sendTransaction(request: TransactionRequest): Promise<Hex>;
603
604
  }
604
605
 
@@ -8947,6 +8948,7 @@ declare class AcpContractClient extends BaseAcpContractClient {
8947
8948
  getAssetManager(): Promise<Address$1>;
8948
8949
  getAcpVersion(): string;
8949
8950
  signTypedData(typedData: SignTypedDataParameters): Promise<Hex>;
8951
+ signMessage(message: string): Promise<Hex>;
8950
8952
  sendTransaction(request: TransactionRequest): Promise<Hex>;
8951
8953
  }
8952
8954
 
@@ -8982,6 +8984,7 @@ declare class AcpContractClientV2 extends BaseAcpContractClient {
8982
8984
  getAssetManager(): Promise<Address$1>;
8983
8985
  getAcpVersion(): string;
8984
8986
  signTypedData(typedData: SignTypedDataParameters): Promise<Hex>;
8987
+ signMessage(message: string): Promise<Hex>;
8985
8988
  sendTransaction(request: TransactionRequest): Promise<Hex>;
8986
8989
  }
8987
8990
 
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.35",
38
+ version: "0.3.0-beta.37",
39
39
  main: "./dist/index.js",
40
40
  module: "./dist/index.mjs",
41
41
  types: "./dist/index.d.ts",
@@ -2351,13 +2351,7 @@ var TESTNET_CHAINS = [
2351
2351
  import_infra.arbitrumSepolia,
2352
2352
  import_infra.bscTestnet
2353
2353
  ];
2354
- var MAINNET_CHAINS = [
2355
- import_infra.base,
2356
- import_infra.mainnet,
2357
- import_infra.polygon,
2358
- import_infra.arbitrum,
2359
- import_infra.bsc
2360
- ];
2354
+ var MAINNET_CHAINS = [import_infra.base, import_infra.mainnet, import_infra.polygon, import_infra.arbitrum, import_infra.bsc];
2361
2355
  var DEFAULT_RETRY_CONFIG = {
2362
2356
  intervalMs: 200,
2363
2357
  multiplier: 1.1,
@@ -2381,7 +2375,7 @@ var AcpContractConfig2 = class {
2381
2375
  var baseSepoliaAcpConfig = new AcpContractConfig2(
2382
2376
  import_infra.baseSepolia,
2383
2377
  "0x8Db6B1c839Fc8f6bd35777E194677B67b4D51928",
2384
- new Fare("0x036CbD53842c5426634e7929541eC2318f3dCF7e", 6),
2378
+ new Fare("0x036CbD53842c5426634e7929541eC2318f3dCF7e", 6, import_infra.baseSepolia.id),
2385
2379
  "https://alchemy-proxy.virtuals.io/api/proxy/rpc",
2386
2380
  "https://acpx.virtuals.gg",
2387
2381
  acpAbi_default,
@@ -2394,7 +2388,7 @@ var baseSepoliaAcpConfig = new AcpContractConfig2(
2394
2388
  var baseSepoliaAcpX402Config = new AcpContractConfig2(
2395
2389
  import_infra.baseSepolia,
2396
2390
  "0x8Db6B1c839Fc8f6bd35777E194677B67b4D51928",
2397
- new Fare("0x036CbD53842c5426634e7929541eC2318f3dCF7e", 6),
2391
+ new Fare("0x036CbD53842c5426634e7929541eC2318f3dCF7e", 6, import_infra.baseSepolia.id),
2398
2392
  "https://alchemy-proxy.virtuals.io/api/proxy/rpc",
2399
2393
  "https://acpx.virtuals.gg",
2400
2394
  acpAbi_default,
@@ -2409,7 +2403,7 @@ var baseSepoliaAcpX402Config = new AcpContractConfig2(
2409
2403
  var baseSepoliaAcpConfigV2 = new AcpContractConfig2(
2410
2404
  import_infra.baseSepolia,
2411
2405
  "0xdf54E6Ed6cD1d0632d973ADECf96597b7e87893c",
2412
- new Fare("0x036CbD53842c5426634e7929541eC2318f3dCF7e", 6),
2406
+ new Fare("0x036CbD53842c5426634e7929541eC2318f3dCF7e", 6, import_infra.baseSepolia.id),
2413
2407
  "https://alchemy-proxy.virtuals.io/api/proxy/rpc",
2414
2408
  "https://acpx.virtuals.gg",
2415
2409
  acpAbiV2_default,
@@ -2422,7 +2416,7 @@ var baseSepoliaAcpConfigV2 = new AcpContractConfig2(
2422
2416
  var baseSepoliaAcpX402ConfigV2 = new AcpContractConfig2(
2423
2417
  import_infra.baseSepolia,
2424
2418
  "0xdf54E6Ed6cD1d0632d973ADECf96597b7e87893c",
2425
- new Fare("0x036CbD53842c5426634e7929541eC2318f3dCF7e", 6),
2419
+ new Fare("0x036CbD53842c5426634e7929541eC2318f3dCF7e", 6, import_infra.baseSepolia.id),
2426
2420
  "https://alchemy-proxy.virtuals.io/api/proxy/rpc",
2427
2421
  "https://acpx.virtuals.gg",
2428
2422
  acpAbiV2_default,
@@ -2437,7 +2431,7 @@ var baseSepoliaAcpX402ConfigV2 = new AcpContractConfig2(
2437
2431
  var baseAcpConfig = new AcpContractConfig2(
2438
2432
  import_infra.base,
2439
2433
  "0x6a1FE26D54ab0d3E1e3168f2e0c0cDa5cC0A0A4A",
2440
- new Fare("0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", 6),
2434
+ new Fare("0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", 6, import_infra.base.id),
2441
2435
  "https://alchemy-proxy-prod.virtuals.io/api/proxy/rpc",
2442
2436
  "https://acpx.virtuals.io",
2443
2437
  acpAbi_default,
@@ -2450,7 +2444,7 @@ var baseAcpConfig = new AcpContractConfig2(
2450
2444
  var baseAcpX402Config = new AcpContractConfig2(
2451
2445
  import_infra.base,
2452
2446
  "0x6a1FE26D54ab0d3E1e3168f2e0c0cDa5cC0A0A4A",
2453
- new Fare("0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", 6),
2447
+ new Fare("0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", 6, import_infra.base.id),
2454
2448
  "https://alchemy-proxy-prod.virtuals.io/api/proxy/rpc",
2455
2449
  "https://acpx.virtuals.io",
2456
2450
  acpAbi_default,
@@ -2465,7 +2459,7 @@ var baseAcpX402Config = new AcpContractConfig2(
2465
2459
  var baseAcpConfigV2 = new AcpContractConfig2(
2466
2460
  import_infra.base,
2467
2461
  "0xa6C9BA866992cfD7fd6460ba912bfa405adA9df0",
2468
- new Fare("0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", 6),
2462
+ new Fare("0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", 6, import_infra.base.id),
2469
2463
  "https://alchemy-proxy-prod.virtuals.io/api/proxy/rpc",
2470
2464
  "https://acpx.virtuals.io",
2471
2465
  acpAbiV2_default,
@@ -2478,7 +2472,7 @@ var baseAcpConfigV2 = new AcpContractConfig2(
2478
2472
  var baseAcpX402ConfigV2 = new AcpContractConfig2(
2479
2473
  import_infra.base,
2480
2474
  "0xa6C9BA866992cfD7fd6460ba912bfa405adA9df0",
2481
- new Fare("0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", 6),
2475
+ new Fare("0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", 6, import_infra.base.id),
2482
2476
  "https://alchemy-proxy-prod.virtuals.io/api/proxy/rpc",
2483
2477
  "https://acpx.virtuals.io",
2484
2478
  acpAbiV2_default,
@@ -5794,6 +5788,9 @@ var AcpContractClient = class _AcpContractClient extends baseAcpContractClient_d
5794
5788
  signTypedData(typedData) {
5795
5789
  return this.sessionKeyClient.signTypedData({ typedData });
5796
5790
  }
5791
+ async signMessage(message) {
5792
+ return await this.sessionKeyClient.signMessage({ message });
5793
+ }
5797
5794
  async sendTransaction(request) {
5798
5795
  return await this.sessionKeyClient.sendTransaction(request, {
5799
5796
  paymasterAndData: "0x"
@@ -7893,6 +7890,9 @@ var AcpContractClientV2 = class _AcpContractClientV2 extends baseAcpContractClie
7893
7890
  async signTypedData(typedData) {
7894
7891
  return await this.sessionKeyClient.signTypedData({ typedData });
7895
7892
  }
7893
+ async signMessage(message) {
7894
+ return await this.sessionKeyClient.signMessage({ message });
7895
+ }
7896
7896
  async sendTransaction(request) {
7897
7897
  return await this.sessionKeyClient.sendTransaction(request, {
7898
7898
  paymasterAndData: "0x"
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.35",
11
+ version: "0.3.0-beta.37",
12
12
  main: "./dist/index.js",
13
13
  module: "./dist/index.mjs",
14
14
  types: "./dist/index.d.ts",
@@ -2314,13 +2314,7 @@ var TESTNET_CHAINS = [
2314
2314
  arbitrumSepolia,
2315
2315
  bscTestnet
2316
2316
  ];
2317
- var MAINNET_CHAINS = [
2318
- base,
2319
- mainnet,
2320
- polygon,
2321
- arbitrum,
2322
- bsc
2323
- ];
2317
+ var MAINNET_CHAINS = [base, mainnet, polygon, arbitrum, bsc];
2324
2318
  var DEFAULT_RETRY_CONFIG = {
2325
2319
  intervalMs: 200,
2326
2320
  multiplier: 1.1,
@@ -2344,7 +2338,7 @@ var AcpContractConfig2 = class {
2344
2338
  var baseSepoliaAcpConfig = new AcpContractConfig2(
2345
2339
  baseSepolia,
2346
2340
  "0x8Db6B1c839Fc8f6bd35777E194677B67b4D51928",
2347
- new Fare("0x036CbD53842c5426634e7929541eC2318f3dCF7e", 6),
2341
+ new Fare("0x036CbD53842c5426634e7929541eC2318f3dCF7e", 6, baseSepolia.id),
2348
2342
  "https://alchemy-proxy.virtuals.io/api/proxy/rpc",
2349
2343
  "https://acpx.virtuals.gg",
2350
2344
  acpAbi_default,
@@ -2357,7 +2351,7 @@ var baseSepoliaAcpConfig = new AcpContractConfig2(
2357
2351
  var baseSepoliaAcpX402Config = new AcpContractConfig2(
2358
2352
  baseSepolia,
2359
2353
  "0x8Db6B1c839Fc8f6bd35777E194677B67b4D51928",
2360
- new Fare("0x036CbD53842c5426634e7929541eC2318f3dCF7e", 6),
2354
+ new Fare("0x036CbD53842c5426634e7929541eC2318f3dCF7e", 6, baseSepolia.id),
2361
2355
  "https://alchemy-proxy.virtuals.io/api/proxy/rpc",
2362
2356
  "https://acpx.virtuals.gg",
2363
2357
  acpAbi_default,
@@ -2372,7 +2366,7 @@ var baseSepoliaAcpX402Config = new AcpContractConfig2(
2372
2366
  var baseSepoliaAcpConfigV2 = new AcpContractConfig2(
2373
2367
  baseSepolia,
2374
2368
  "0xdf54E6Ed6cD1d0632d973ADECf96597b7e87893c",
2375
- new Fare("0x036CbD53842c5426634e7929541eC2318f3dCF7e", 6),
2369
+ new Fare("0x036CbD53842c5426634e7929541eC2318f3dCF7e", 6, baseSepolia.id),
2376
2370
  "https://alchemy-proxy.virtuals.io/api/proxy/rpc",
2377
2371
  "https://acpx.virtuals.gg",
2378
2372
  acpAbiV2_default,
@@ -2385,7 +2379,7 @@ var baseSepoliaAcpConfigV2 = new AcpContractConfig2(
2385
2379
  var baseSepoliaAcpX402ConfigV2 = new AcpContractConfig2(
2386
2380
  baseSepolia,
2387
2381
  "0xdf54E6Ed6cD1d0632d973ADECf96597b7e87893c",
2388
- new Fare("0x036CbD53842c5426634e7929541eC2318f3dCF7e", 6),
2382
+ new Fare("0x036CbD53842c5426634e7929541eC2318f3dCF7e", 6, baseSepolia.id),
2389
2383
  "https://alchemy-proxy.virtuals.io/api/proxy/rpc",
2390
2384
  "https://acpx.virtuals.gg",
2391
2385
  acpAbiV2_default,
@@ -2400,7 +2394,7 @@ var baseSepoliaAcpX402ConfigV2 = new AcpContractConfig2(
2400
2394
  var baseAcpConfig = new AcpContractConfig2(
2401
2395
  base,
2402
2396
  "0x6a1FE26D54ab0d3E1e3168f2e0c0cDa5cC0A0A4A",
2403
- new Fare("0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", 6),
2397
+ new Fare("0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", 6, base.id),
2404
2398
  "https://alchemy-proxy-prod.virtuals.io/api/proxy/rpc",
2405
2399
  "https://acpx.virtuals.io",
2406
2400
  acpAbi_default,
@@ -2413,7 +2407,7 @@ var baseAcpConfig = new AcpContractConfig2(
2413
2407
  var baseAcpX402Config = new AcpContractConfig2(
2414
2408
  base,
2415
2409
  "0x6a1FE26D54ab0d3E1e3168f2e0c0cDa5cC0A0A4A",
2416
- new Fare("0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", 6),
2410
+ new Fare("0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", 6, base.id),
2417
2411
  "https://alchemy-proxy-prod.virtuals.io/api/proxy/rpc",
2418
2412
  "https://acpx.virtuals.io",
2419
2413
  acpAbi_default,
@@ -2428,7 +2422,7 @@ var baseAcpX402Config = new AcpContractConfig2(
2428
2422
  var baseAcpConfigV2 = new AcpContractConfig2(
2429
2423
  base,
2430
2424
  "0xa6C9BA866992cfD7fd6460ba912bfa405adA9df0",
2431
- new Fare("0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", 6),
2425
+ new Fare("0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", 6, base.id),
2432
2426
  "https://alchemy-proxy-prod.virtuals.io/api/proxy/rpc",
2433
2427
  "https://acpx.virtuals.io",
2434
2428
  acpAbiV2_default,
@@ -2441,7 +2435,7 @@ var baseAcpConfigV2 = new AcpContractConfig2(
2441
2435
  var baseAcpX402ConfigV2 = new AcpContractConfig2(
2442
2436
  base,
2443
2437
  "0xa6C9BA866992cfD7fd6460ba912bfa405adA9df0",
2444
- new Fare("0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", 6),
2438
+ new Fare("0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", 6, base.id),
2445
2439
  "https://alchemy-proxy-prod.virtuals.io/api/proxy/rpc",
2446
2440
  "https://acpx.virtuals.io",
2447
2441
  acpAbiV2_default,
@@ -5778,6 +5772,9 @@ var AcpContractClient = class _AcpContractClient extends baseAcpContractClient_d
5778
5772
  signTypedData(typedData) {
5779
5773
  return this.sessionKeyClient.signTypedData({ typedData });
5780
5774
  }
5775
+ async signMessage(message) {
5776
+ return await this.sessionKeyClient.signMessage({ message });
5777
+ }
5781
5778
  async sendTransaction(request) {
5782
5779
  return await this.sessionKeyClient.sendTransaction(request, {
5783
5780
  paymasterAndData: "0x"
@@ -7883,6 +7880,9 @@ var AcpContractClientV2 = class _AcpContractClientV2 extends baseAcpContractClie
7883
7880
  async signTypedData(typedData) {
7884
7881
  return await this.sessionKeyClient.signTypedData({ typedData });
7885
7882
  }
7883
+ async signMessage(message) {
7884
+ return await this.sessionKeyClient.signMessage({ message });
7885
+ }
7886
7886
  async sendTransaction(request) {
7887
7887
  return await this.sessionKeyClient.sendTransaction(request, {
7888
7888
  paymasterAndData: "0x"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@virtuals-protocol/acp-node",
3
- "version": "0.3.0-beta.35",
3
+ "version": "0.3.0-beta.37",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",