starknet 6.4.1 → 6.5.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/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ # [6.5.0](https://github.com/starknet-io/starknet.js/compare/v6.4.2...v6.5.0) (2024-03-14)
2
+
3
+ ### Bug Fixes
4
+
5
+ - adjust max amount bound calculation for RPC v0.7.0 ([dd34cdb](https://github.com/starknet-io/starknet.js/commit/dd34cdb8b9817a55a16a97d960b1544d75c0059a))
6
+
7
+ ### Features
8
+
9
+ - make fee margins configurable ([cedd984](https://github.com/starknet-io/starknet.js/commit/cedd984e1106db5b73d17630e282eb956d344a97))
10
+
11
+ ## [6.4.2](https://github.com/starknet-io/starknet.js/compare/v6.4.1...v6.4.2) (2024-03-14)
12
+
13
+ ### Bug Fixes
14
+
15
+ - update starknetid sepolia contract addresses ([#1016](https://github.com/starknet-io/starknet.js/issues/1016)) ([b50a3bd](https://github.com/starknet-io/starknet.js/commit/b50a3bdada4345a9d601734762bc7a600766ec25))
16
+
1
17
  ## [6.4.1](https://github.com/starknet-io/starknet.js/compare/v6.4.0...v6.4.1) (2024-03-14)
2
18
 
3
19
  ### Bug Fixes
package/dist/index.d.ts CHANGED
@@ -2450,6 +2450,11 @@ declare enum TransactionHashPrefix {
2450
2450
  INVOKE = "0x696e766f6b65",// encodeShortString('invoke'),
2451
2451
  L1_HANDLER = "0x6c315f68616e646c6572"
2452
2452
  }
2453
+ declare const enum feeMarginPercentage {
2454
+ L1_BOUND_MAX_AMOUNT = 50,
2455
+ L1_BOUND_MAX_PRICE_PER_UNIT = 50,
2456
+ MAX_FEE = 50
2457
+ }
2453
2458
  declare const UDC: {
2454
2459
  ADDRESS: string;
2455
2460
  ENTRYPOINT: string;
@@ -2479,8 +2484,10 @@ type constants_TransactionHashPrefix = TransactionHashPrefix;
2479
2484
  declare const constants_TransactionHashPrefix: typeof TransactionHashPrefix;
2480
2485
  declare const constants_UDC: typeof UDC;
2481
2486
  declare const constants_ZERO: typeof ZERO;
2487
+ type constants_feeMarginPercentage = feeMarginPercentage;
2488
+ declare const constants_feeMarginPercentage: typeof feeMarginPercentage;
2482
2489
  declare namespace constants {
2483
- export { constants_ADDR_BOUND as ADDR_BOUND, constants_API_VERSION as API_VERSION, constants_BaseUrl as BaseUrl, constants_IS_BROWSER as IS_BROWSER, constants_MASK_250 as MASK_250, constants_MAX_STORAGE_ITEM_SIZE as MAX_STORAGE_ITEM_SIZE, constants_NetworkName as NetworkName, constants_RPC_DEFAULT_VERSION as RPC_DEFAULT_VERSION, constants_RPC_NODES as RPC_NODES, constants_StarknetChainId as StarknetChainId, constants_TEXT_TO_FELT_MAX_LEN as TEXT_TO_FELT_MAX_LEN, ETransactionVersion as TRANSACTION_VERSION, constants_TransactionHashPrefix as TransactionHashPrefix, constants_UDC as UDC, constants_ZERO as ZERO };
2490
+ export { constants_ADDR_BOUND as ADDR_BOUND, constants_API_VERSION as API_VERSION, constants_BaseUrl as BaseUrl, constants_IS_BROWSER as IS_BROWSER, constants_MASK_250 as MASK_250, constants_MAX_STORAGE_ITEM_SIZE as MAX_STORAGE_ITEM_SIZE, constants_NetworkName as NetworkName, constants_RPC_DEFAULT_VERSION as RPC_DEFAULT_VERSION, constants_RPC_NODES as RPC_NODES, constants_StarknetChainId as StarknetChainId, constants_TEXT_TO_FELT_MAX_LEN as TEXT_TO_FELT_MAX_LEN, ETransactionVersion as TRANSACTION_VERSION, constants_TransactionHashPrefix as TransactionHashPrefix, constants_UDC as UDC, constants_ZERO as ZERO, constants_feeMarginPercentage as feeMarginPercentage };
2484
2491
  }
2485
2492
 
2486
2493
  declare const ec_weierstrass: typeof weierstrass;
@@ -3007,6 +3014,11 @@ type RpcProviderOptions = {
3007
3014
  specVersion?: string;
3008
3015
  default?: boolean;
3009
3016
  waitMode?: boolean;
3017
+ feeMarginPercentage?: {
3018
+ l1BoundMaxAmount: number;
3019
+ l1BoundMaxPricePerUnit: number;
3020
+ maxFee: number;
3021
+ };
3010
3022
  };
3011
3023
 
3012
3024
  type Simplify<T> = {
@@ -7167,13 +7179,13 @@ declare function useEncoded(decoded: string): bigint;
7167
7179
  declare const enum StarknetIdContract {
7168
7180
  MAINNET = "0x6ac597f8116f886fa1c97a23fa4e08299975ecaf6b598873ca6792b9bbfb678",
7169
7181
  TESTNET = "0x3bab268e932d2cecd1946f100ae67ce3dff9fd234119ea2f6da57d16d29fce",
7170
- TESTNET_SEPOLIA = "0x5847d20f9757de24395a7b3b47303684003753858737bf288716855dfb0aaf2"
7182
+ TESTNET_SEPOLIA = "0x0707f09bc576bd7cfee59694846291047e965f4184fe13dac62c56759b3b6fa7"
7171
7183
  }
7172
7184
  declare function getStarknetIdContract(chainId: StarknetChainId): string;
7173
7185
  declare const enum StarknetIdIdentityContract {
7174
7186
  MAINNET = "0x05dbdedc203e92749e2e746e2d40a768d966bd243df04a6b712e222bc040a9af",
7175
7187
  TESTNET = "0x783a9097b26eae0586373b2ce0ed3529ddc44069d1e0fbc4f66d42b69d6850d",
7176
- TESTNET_SEPOLIA = "0x718d9172f6e36183abeeff1a0db76a1851cef4ed9b9c13896da79ef4bfcb4d0"
7188
+ TESTNET_SEPOLIA = "0x070DF8B4F5cb2879f8592849fA8f3134da39d25326B8558cc9C8FE8D47EA3A90"
7177
7189
  }
7178
7190
  declare function getStarknetIdIdentityContract(chainId: StarknetChainId): string;
7179
7191
  declare const StarknetIdMulticallContract = "0x034ffb8f4452df7a613a0210824d6414dbadcddce6c6e19bf4ddc9e22ce5f970";
@@ -7181,19 +7193,19 @@ declare function getStarknetIdMulticallContract(chainId: StarknetChainId): strin
7181
7193
  declare const enum StarknetIdVerifierContract {
7182
7194
  MAINNET = "0x07d14dfd8ee95b41fce179170d88ba1f0d5a512e13aeb232f19cfeec0a88f8bf",
7183
7195
  TESTNET = "0x057c942544063c3aea6ea6c37009cc9d1beacd750cb6801549a129c7265f0f11",
7184
- TESTNET_SEPOLIA = "0x041a78e741e5af2fec34b695679bc6891742439f7afb8484ecd7766661ad02bf"
7196
+ TESTNET_SEPOLIA = "0x0182EcE8173C216A395f4828e1523541b7e3600bf190CB252E1a1A0cE219d184"
7185
7197
  }
7186
7198
  declare function getStarknetIdVerifierContract(chainId: StarknetChainId): string;
7187
7199
  declare const enum StarknetIdPfpContract {
7188
7200
  MAINNET = "0x070aaa20ec4a46da57c932d9fd89ca5e6bb9ca3188d3df361a32306aff7d59c7",
7189
7201
  TESTNET = "0x03cac3228b434259734ee0e4ff445f642206ea11adace7e4f45edd2596748698",
7190
- TESTNET_SEPOLIA = "0x070c035557d6fed57eed2ed7fa861616b487f8a95439347b805639ca076f29f0"
7202
+ TESTNET_SEPOLIA = "0x058061bb6bdc501eE215172c9f87d557C1E0f466dC498cA81b18f998Bf1362b2"
7191
7203
  }
7192
7204
  declare function getStarknetIdPfpContract(chainId: StarknetChainId): string;
7193
7205
  declare const enum StarknetIdPopContract {
7194
7206
  MAINNET = "0x0293eb2ba9862f762bd3036586d5755a782bd22e6f5028320f1d0405fd47bff4",
7195
7207
  TESTNET = "0x03528caf090179e337931ee669a5b0214041e1bae30d460ff07d2cea2c7a9106",
7196
- TESTNET_SEPOLIA = "0x00f80f68443becd0e0a4a08ff5734e36dd8028507333e4a0ec034dcfdf1b793e"
7208
+ TESTNET_SEPOLIA = "0x0023FE3b845ed5665a9eb3792bbB17347B490EE4090f855C1298d03BB5F49B49"
7197
7209
  }
7198
7210
  declare function getStarknetIdPopContract(chainId: StarknetChainId): string;
7199
7211
  declare function execution(staticEx: {} | undefined, ifEqual?: number[] | undefined, ifNotEqual?: number[] | undefined): CairoCustomEnum;
@@ -12766,7 +12766,8 @@ var starknet = (() => {
12766
12766
  TRANSACTION_VERSION: () => ETransactionVersion4,
12767
12767
  TransactionHashPrefix: () => TransactionHashPrefix,
12768
12768
  UDC: () => UDC,
12769
- ZERO: () => ZERO
12769
+ ZERO: () => ZERO,
12770
+ feeMarginPercentage: () => feeMarginPercentage
12770
12771
  });
12771
12772
 
12772
12773
  // src/types/api/index.ts
@@ -13251,6 +13252,12 @@ var starknet = (() => {
13251
13252
  TransactionHashPrefix2["L1_HANDLER"] = "0x6c315f68616e646c6572";
13252
13253
  return TransactionHashPrefix2;
13253
13254
  })(TransactionHashPrefix || {});
13255
+ var feeMarginPercentage = /* @__PURE__ */ ((feeMarginPercentage2) => {
13256
+ feeMarginPercentage2[feeMarginPercentage2["L1_BOUND_MAX_AMOUNT"] = 50] = "L1_BOUND_MAX_AMOUNT";
13257
+ feeMarginPercentage2[feeMarginPercentage2["L1_BOUND_MAX_PRICE_PER_UNIT"] = 50] = "L1_BOUND_MAX_PRICE_PER_UNIT";
13258
+ feeMarginPercentage2[feeMarginPercentage2["MAX_FEE"] = 50] = "MAX_FEE";
13259
+ return feeMarginPercentage2;
13260
+ })(feeMarginPercentage || {});
13254
13261
  var UDC = {
13255
13262
  ADDRESS: "0x041a78e741e5af2fec34b695679bc6891742439f7afb8484ecd7766661ad02bf",
13256
13263
  ENTRYPOINT: "deployContract"
@@ -22997,10 +23004,10 @@ var starknet = (() => {
22997
23004
  function signatureToHexArray(sig) {
22998
23005
  return bigNumberishArrayToHexadecimalStringArray(formatSignature(sig));
22999
23006
  }
23000
- function estimatedFeeToMaxFee(estimatedFee, overhead = 0.5) {
23001
- return addPercent(estimatedFee, overhead * 100);
23007
+ function estimatedFeeToMaxFee(estimatedFee, overhead = 50 /* MAX_FEE */) {
23008
+ return addPercent(estimatedFee, overhead);
23002
23009
  }
23003
- function estimateFeeToBounds(estimate, amountOverhead = 10, priceOverhead = 50) {
23010
+ function estimateFeeToBounds(estimate, amountOverhead = 50 /* L1_BOUND_MAX_AMOUNT */, priceOverhead = 50 /* L1_BOUND_MAX_PRICE_PER_UNIT */) {
23004
23011
  if (typeof estimate === "bigint") {
23005
23012
  return {
23006
23013
  l2_gas: { max_amount: "0x0", max_price_per_unit: "0x0" },
@@ -23010,7 +23017,7 @@ var starknet = (() => {
23010
23017
  if (typeof estimate.gas_consumed === "undefined" || typeof estimate.gas_price === "undefined") {
23011
23018
  throw Error("estimateFeeToBounds: estimate is undefined");
23012
23019
  }
23013
- const maxUnits = toHex(addPercent(estimate.gas_consumed, amountOverhead));
23020
+ const maxUnits = estimate.data_gas_consumed !== void 0 && estimate.data_gas_price !== void 0 ? toHex(addPercent(BigInt(estimate.overall_fee) / BigInt(estimate.gas_price), amountOverhead)) : toHex(addPercent(estimate.gas_consumed, amountOverhead));
23014
23021
  const maxUnitPrice = toHex(addPercent(estimate.gas_price, priceOverhead));
23015
23022
  return {
23016
23023
  l2_gas: { max_amount: "0x0", max_price_per_unit: "0x0" },
@@ -24523,6 +24530,20 @@ var starknet = (() => {
24523
24530
 
24524
24531
  // src/utils/responseParser/rpc.ts
24525
24532
  var RPCResponseParser = class {
24533
+ margin;
24534
+ constructor(margin) {
24535
+ this.margin = margin;
24536
+ }
24537
+ estimatedFeeToMaxFee(estimatedFee) {
24538
+ return estimatedFeeToMaxFee(estimatedFee, this.margin?.maxFee);
24539
+ }
24540
+ estimateFeeToBounds(estimate) {
24541
+ return estimateFeeToBounds(
24542
+ estimate,
24543
+ this.margin?.l1BoundMaxAmount,
24544
+ this.margin?.l1BoundMaxPricePerUnit
24545
+ );
24546
+ }
24526
24547
  parseGetBlockResponse(res) {
24527
24548
  return { status: "PENDING", ...res };
24528
24549
  }
@@ -24545,8 +24566,8 @@ var starknet = (() => {
24545
24566
  gas_consumed: toBigInt(val.gas_consumed),
24546
24567
  gas_price: toBigInt(val.gas_price),
24547
24568
  unit: val.unit,
24548
- suggestedMaxFee: estimatedFeeToMaxFee(val.overall_fee),
24549
- resourceBounds: estimateFeeToBounds(val)
24569
+ suggestedMaxFee: this.estimatedFeeToMaxFee(val.overall_fee),
24570
+ resourceBounds: this.estimateFeeToBounds(val)
24550
24571
  };
24551
24572
  }
24552
24573
  parseFeeEstimateBulkResponse(res) {
@@ -24555,16 +24576,16 @@ var starknet = (() => {
24555
24576
  gas_consumed: toBigInt(val.gas_consumed),
24556
24577
  gas_price: toBigInt(val.gas_price),
24557
24578
  unit: val.unit,
24558
- suggestedMaxFee: estimatedFeeToMaxFee(val.overall_fee),
24559
- resourceBounds: estimateFeeToBounds(val)
24579
+ suggestedMaxFee: this.estimatedFeeToMaxFee(val.overall_fee),
24580
+ resourceBounds: this.estimateFeeToBounds(val)
24560
24581
  }));
24561
24582
  }
24562
24583
  parseSimulateTransactionResponse(res) {
24563
24584
  return res.map((it) => {
24564
24585
  return {
24565
24586
  ...it,
24566
- suggestedMaxFee: estimatedFeeToMaxFee(BigInt(it.fee_estimation.overall_fee)),
24567
- resourceBounds: estimateFeeToBounds(it.fee_estimation)
24587
+ suggestedMaxFee: this.estimatedFeeToMaxFee(it.fee_estimation.overall_fee),
24588
+ resourceBounds: this.estimateFeeToBounds(it.fee_estimation)
24568
24589
  };
24569
24590
  });
24570
24591
  }
@@ -24578,13 +24599,15 @@ var starknet = (() => {
24578
24599
 
24579
24600
  // src/provider/rpc.ts
24580
24601
  var RpcProvider = class {
24581
- responseParser = new RPCResponseParser();
24602
+ responseParser;
24582
24603
  channel;
24583
24604
  constructor(optionsOrProvider) {
24584
24605
  if (optionsOrProvider && "channel" in optionsOrProvider) {
24585
24606
  this.channel = optionsOrProvider.channel;
24607
+ this.responseParser = optionsOrProvider.responseParser;
24586
24608
  } else {
24587
24609
  this.channel = new RpcChannel2({ ...optionsOrProvider, waitMode: false });
24610
+ this.responseParser = new RPCResponseParser(optionsOrProvider?.feeMarginPercentage);
24588
24611
  }
24589
24612
  }
24590
24613
  fetch(method, params, id = 0) {
@@ -24677,7 +24700,7 @@ var starknet = (() => {
24677
24700
  * - skipFeeCharge (default true)<br/>
24678
24701
  */
24679
24702
  async getSimulateTransaction(invocations, options) {
24680
- return this.channel.simulateTransaction(invocations, options).then(this.responseParser.parseSimulateTransactionResponse);
24703
+ return this.channel.simulateTransaction(invocations, options).then((r) => this.responseParser.parseSimulateTransactionResponse(r));
24681
24704
  }
24682
24705
  async waitForTransaction(txHash, options) {
24683
24706
  return this.channel.waitForTransaction(txHash, options);
@@ -24734,7 +24757,7 @@ var starknet = (() => {
24734
24757
  }
24735
24758
  ],
24736
24759
  { blockIdentifier, skipValidate }
24737
- ).then(this.responseParser.parseFeeEstimateResponse);
24760
+ ).then((r) => this.responseParser.parseFeeEstimateResponse(r));
24738
24761
  }
24739
24762
  async getDeclareEstimateFee(invocation, details, blockIdentifier, skipValidate) {
24740
24763
  return this.channel.getEstimateFee(
@@ -24746,7 +24769,7 @@ var starknet = (() => {
24746
24769
  }
24747
24770
  ],
24748
24771
  { blockIdentifier, skipValidate }
24749
- ).then(this.responseParser.parseFeeEstimateResponse);
24772
+ ).then((r) => this.responseParser.parseFeeEstimateResponse(r));
24750
24773
  }
24751
24774
  async getDeployAccountEstimateFee(invocation, details, blockIdentifier, skipValidate) {
24752
24775
  return this.channel.getEstimateFee(
@@ -24758,10 +24781,10 @@ var starknet = (() => {
24758
24781
  }
24759
24782
  ],
24760
24783
  { blockIdentifier, skipValidate }
24761
- ).then(this.responseParser.parseFeeEstimateResponse);
24784
+ ).then((r) => this.responseParser.parseFeeEstimateResponse(r));
24762
24785
  }
24763
24786
  async getEstimateFeeBulk(invocations, options) {
24764
- return this.channel.getEstimateFee(invocations, options).then(this.responseParser.parseFeeEstimateBulkResponse);
24787
+ return this.channel.getEstimateFee(invocations, options).then((r) => this.responseParser.parseFeeEstimateBulkResponse(r));
24765
24788
  }
24766
24789
  async invokeFunction(functionInvocation, details) {
24767
24790
  return this.channel.invoke(functionInvocation, details);
@@ -25130,7 +25153,7 @@ var starknet = (() => {
25130
25153
  var StarknetIdContract = /* @__PURE__ */ ((StarknetIdContract2) => {
25131
25154
  StarknetIdContract2["MAINNET"] = "0x6ac597f8116f886fa1c97a23fa4e08299975ecaf6b598873ca6792b9bbfb678";
25132
25155
  StarknetIdContract2["TESTNET"] = "0x3bab268e932d2cecd1946f100ae67ce3dff9fd234119ea2f6da57d16d29fce";
25133
- StarknetIdContract2["TESTNET_SEPOLIA"] = "0x5847d20f9757de24395a7b3b47303684003753858737bf288716855dfb0aaf2";
25156
+ StarknetIdContract2["TESTNET_SEPOLIA"] = "0x0707f09bc576bd7cfee59694846291047e965f4184fe13dac62c56759b3b6fa7";
25134
25157
  return StarknetIdContract2;
25135
25158
  })(StarknetIdContract || {});
25136
25159
  function getStarknetIdContract(chainId) {
@@ -25140,7 +25163,7 @@ var starknet = (() => {
25140
25163
  case "0x534e5f474f45524c49" /* SN_GOERLI */:
25141
25164
  return "0x3bab268e932d2cecd1946f100ae67ce3dff9fd234119ea2f6da57d16d29fce" /* TESTNET */;
25142
25165
  case "0x534e5f5345504f4c4941" /* SN_SEPOLIA */:
25143
- return "0x5847d20f9757de24395a7b3b47303684003753858737bf288716855dfb0aaf2" /* TESTNET_SEPOLIA */;
25166
+ return "0x0707f09bc576bd7cfee59694846291047e965f4184fe13dac62c56759b3b6fa7" /* TESTNET_SEPOLIA */;
25144
25167
  default:
25145
25168
  throw new Error("Starknet.id is not yet deployed on this network");
25146
25169
  }
@@ -25148,7 +25171,7 @@ var starknet = (() => {
25148
25171
  var StarknetIdIdentityContract = /* @__PURE__ */ ((StarknetIdIdentityContract2) => {
25149
25172
  StarknetIdIdentityContract2["MAINNET"] = "0x05dbdedc203e92749e2e746e2d40a768d966bd243df04a6b712e222bc040a9af";
25150
25173
  StarknetIdIdentityContract2["TESTNET"] = "0x783a9097b26eae0586373b2ce0ed3529ddc44069d1e0fbc4f66d42b69d6850d";
25151
- StarknetIdIdentityContract2["TESTNET_SEPOLIA"] = "0x718d9172f6e36183abeeff1a0db76a1851cef4ed9b9c13896da79ef4bfcb4d0";
25174
+ StarknetIdIdentityContract2["TESTNET_SEPOLIA"] = "0x070DF8B4F5cb2879f8592849fA8f3134da39d25326B8558cc9C8FE8D47EA3A90";
25152
25175
  return StarknetIdIdentityContract2;
25153
25176
  })(StarknetIdIdentityContract || {});
25154
25177
  function getStarknetIdIdentityContract(chainId) {
@@ -25158,7 +25181,7 @@ var starknet = (() => {
25158
25181
  case "0x534e5f474f45524c49" /* SN_GOERLI */:
25159
25182
  return "0x783a9097b26eae0586373b2ce0ed3529ddc44069d1e0fbc4f66d42b69d6850d" /* TESTNET */;
25160
25183
  case "0x534e5f5345504f4c4941" /* SN_SEPOLIA */:
25161
- return "0x718d9172f6e36183abeeff1a0db76a1851cef4ed9b9c13896da79ef4bfcb4d0" /* TESTNET_SEPOLIA */;
25184
+ return "0x070DF8B4F5cb2879f8592849fA8f3134da39d25326B8558cc9C8FE8D47EA3A90" /* TESTNET_SEPOLIA */;
25162
25185
  default:
25163
25186
  throw new Error("Starknet.id verifier contract is not yet deployed on this network");
25164
25187
  }
@@ -25179,7 +25202,7 @@ var starknet = (() => {
25179
25202
  var StarknetIdVerifierContract = /* @__PURE__ */ ((StarknetIdVerifierContract2) => {
25180
25203
  StarknetIdVerifierContract2["MAINNET"] = "0x07d14dfd8ee95b41fce179170d88ba1f0d5a512e13aeb232f19cfeec0a88f8bf";
25181
25204
  StarknetIdVerifierContract2["TESTNET"] = "0x057c942544063c3aea6ea6c37009cc9d1beacd750cb6801549a129c7265f0f11";
25182
- StarknetIdVerifierContract2["TESTNET_SEPOLIA"] = "0x041a78e741e5af2fec34b695679bc6891742439f7afb8484ecd7766661ad02bf";
25205
+ StarknetIdVerifierContract2["TESTNET_SEPOLIA"] = "0x0182EcE8173C216A395f4828e1523541b7e3600bf190CB252E1a1A0cE219d184";
25183
25206
  return StarknetIdVerifierContract2;
25184
25207
  })(StarknetIdVerifierContract || {});
25185
25208
  function getStarknetIdVerifierContract(chainId) {
@@ -25189,7 +25212,7 @@ var starknet = (() => {
25189
25212
  case "0x534e5f474f45524c49" /* SN_GOERLI */:
25190
25213
  return "0x057c942544063c3aea6ea6c37009cc9d1beacd750cb6801549a129c7265f0f11" /* TESTNET */;
25191
25214
  case "0x534e5f5345504f4c4941" /* SN_SEPOLIA */:
25192
- return "0x041a78e741e5af2fec34b695679bc6891742439f7afb8484ecd7766661ad02bf" /* TESTNET_SEPOLIA */;
25215
+ return "0x0182EcE8173C216A395f4828e1523541b7e3600bf190CB252E1a1A0cE219d184" /* TESTNET_SEPOLIA */;
25193
25216
  default:
25194
25217
  throw new Error("Starknet.id verifier contract is not yet deployed on this network");
25195
25218
  }
@@ -25197,7 +25220,7 @@ var starknet = (() => {
25197
25220
  var StarknetIdPfpContract = /* @__PURE__ */ ((StarknetIdPfpContract2) => {
25198
25221
  StarknetIdPfpContract2["MAINNET"] = "0x070aaa20ec4a46da57c932d9fd89ca5e6bb9ca3188d3df361a32306aff7d59c7";
25199
25222
  StarknetIdPfpContract2["TESTNET"] = "0x03cac3228b434259734ee0e4ff445f642206ea11adace7e4f45edd2596748698";
25200
- StarknetIdPfpContract2["TESTNET_SEPOLIA"] = "0x070c035557d6fed57eed2ed7fa861616b487f8a95439347b805639ca076f29f0";
25223
+ StarknetIdPfpContract2["TESTNET_SEPOLIA"] = "0x058061bb6bdc501eE215172c9f87d557C1E0f466dC498cA81b18f998Bf1362b2";
25201
25224
  return StarknetIdPfpContract2;
25202
25225
  })(StarknetIdPfpContract || {});
25203
25226
  function getStarknetIdPfpContract(chainId) {
@@ -25207,7 +25230,7 @@ var starknet = (() => {
25207
25230
  case "0x534e5f474f45524c49" /* SN_GOERLI */:
25208
25231
  return "0x03cac3228b434259734ee0e4ff445f642206ea11adace7e4f45edd2596748698" /* TESTNET */;
25209
25232
  case "0x534e5f5345504f4c4941" /* SN_SEPOLIA */:
25210
- return "0x070c035557d6fed57eed2ed7fa861616b487f8a95439347b805639ca076f29f0" /* TESTNET_SEPOLIA */;
25233
+ return "0x058061bb6bdc501eE215172c9f87d557C1E0f466dC498cA81b18f998Bf1362b2" /* TESTNET_SEPOLIA */;
25211
25234
  default:
25212
25235
  throw new Error(
25213
25236
  "Starknet.id profile picture verifier contract is not yet deployed on this network"
@@ -25217,7 +25240,7 @@ var starknet = (() => {
25217
25240
  var StarknetIdPopContract = /* @__PURE__ */ ((StarknetIdPopContract2) => {
25218
25241
  StarknetIdPopContract2["MAINNET"] = "0x0293eb2ba9862f762bd3036586d5755a782bd22e6f5028320f1d0405fd47bff4";
25219
25242
  StarknetIdPopContract2["TESTNET"] = "0x03528caf090179e337931ee669a5b0214041e1bae30d460ff07d2cea2c7a9106";
25220
- StarknetIdPopContract2["TESTNET_SEPOLIA"] = "0x00f80f68443becd0e0a4a08ff5734e36dd8028507333e4a0ec034dcfdf1b793e";
25243
+ StarknetIdPopContract2["TESTNET_SEPOLIA"] = "0x0023FE3b845ed5665a9eb3792bbB17347B490EE4090f855C1298d03BB5F49B49";
25221
25244
  return StarknetIdPopContract2;
25222
25245
  })(StarknetIdPopContract || {});
25223
25246
  function getStarknetIdPopContract(chainId) {
@@ -25227,7 +25250,7 @@ var starknet = (() => {
25227
25250
  case "0x534e5f474f45524c49" /* SN_GOERLI */:
25228
25251
  return "0x03528caf090179e337931ee669a5b0214041e1bae30d460ff07d2cea2c7a9106" /* TESTNET */;
25229
25252
  case "0x534e5f5345504f4c4941" /* SN_SEPOLIA */:
25230
- return "0x00f80f68443becd0e0a4a08ff5734e36dd8028507333e4a0ec034dcfdf1b793e" /* TESTNET_SEPOLIA */;
25253
+ return "0x0023FE3b845ed5665a9eb3792bbB17347B490EE4090f855C1298d03BB5F49B49" /* TESTNET_SEPOLIA */;
25231
25254
  default:
25232
25255
  throw new Error(
25233
25256
  "Starknet.id proof of personhood verifier contract is not yet deployed on this network"