@dcentralab/d402-client 0.3.18 → 0.4.0

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.mjs CHANGED
@@ -87,7 +87,7 @@ var init_constants = __esm({
87
87
  "src/core/constants.ts"() {
88
88
  TOKEN_ADDRESSES = {
89
89
  sepolia: "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",
90
- arbitrum: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831"
90
+ arbitrum_one: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831"
91
91
  };
92
92
  EIP712_TYPES = {
93
93
  PullFundsForSettlement: [
@@ -139,7 +139,7 @@ function getChainId(network) {
139
139
  }
140
140
  const networkMap = {
141
141
  "sepolia": 11155111,
142
- "arbitrum": 42161
142
+ "arbitrum_one": 42161
143
143
  };
144
144
  const chainId = networkMap[network];
145
145
  if (!chainId) {
@@ -171,7 +171,7 @@ var init_utils = __esm({
171
171
  init_errors();
172
172
  CHAIN_MAP = {
173
173
  sepolia,
174
- arbitrum
174
+ arbitrum_one: arbitrum
175
175
  };
176
176
  }
177
177
  });
@@ -356,7 +356,8 @@ async function signD402Payment(params) {
356
356
  value: paymentRequirement.maxAmountRequired,
357
357
  validAfter,
358
358
  validBefore,
359
- nonce
359
+ nonce,
360
+ requestPath: paymentRequirement.resource || "/mcp"
360
361
  }
361
362
  }
362
363
  };
@@ -5525,9 +5526,9 @@ var sepolia_default = {
5525
5526
  }
5526
5527
  };
5527
5528
 
5528
- // src/contracts/abis/arbitrum.json
5529
- var arbitrum_default = {
5530
- arbitrum: {
5529
+ // src/contracts/abis/arbitrum_one.json
5530
+ var arbitrum_one_default = {
5531
+ arbitrum_one: {
5531
5532
  IATPWallet: [
5532
5533
  {
5533
5534
  inputs: [],
@@ -10433,7 +10434,7 @@ var proxies_default = {
10433
10434
  IATPSettlementLayer: "0xB82816BA396fB06aF7076202cb5d7D9e4dACBb15",
10434
10435
  IATPWalletFactory: "0x2A95caE178142EC53864b42891828455f45a9E01"
10435
10436
  },
10436
- arbitrum: {
10437
+ arbitrum_one: {
10437
10438
  RoleManager: "0x36db583518A2C92D371f075Ac39162bf4825Cbd0",
10438
10439
  IATPSettlementLayer: "0x677028749258c728a8ECb2C7EeA29030e045E7A5",
10439
10440
  IATPWalletFactory: "0x2887f721a7484d4b044410aEE3C73246Ac2062Df"
@@ -10450,7 +10451,7 @@ var ContractName = /* @__PURE__ */ ((ContractName2) => {
10450
10451
  })(ContractName || {});
10451
10452
  var ABIS = {
10452
10453
  sepolia: sepolia_default.sepolia || {},
10453
- arbitrum: arbitrum_default.arbitrum || {}
10454
+ arbitrum_one: arbitrum_one_default.arbitrum_one || {}
10454
10455
  };
10455
10456
  var PROXY_ADDRESSES = proxies_default;
10456
10457
  function getContractAddress(contractName, network = "sepolia") {