@hyperbridge/sdk 2.8.10 → 2.8.12

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.
@@ -2761,7 +2761,7 @@ var chainConfigs = {
2761
2761
  },
2762
2762
  addresses: {
2763
2763
  IntentGateway: "0xAe041F7B0CB581876832830baeB6a2Aa2a3C9716",
2764
- SolverAccount: "0xfCd233b937D7622AAc63ced3C9A1A12F4a6B64E3",
2764
+ SolverAccount: "0x7cb55539d1144F62422099c3FA3405092022c88C",
2765
2765
  TokenGateway: "0xFd413e3AFe560182C4471F4d143A96d3e259B6dE",
2766
2766
  Host: "0x620128E2B19193d6Bd244a3AC8D3bBa0541B19c3",
2767
2767
  UniswapRouter02: "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
@@ -2828,7 +2828,7 @@ var chainConfigs = {
2828
2828
  },
2829
2829
  addresses: {
2830
2830
  IntentGateway: "0xAe041F7B0CB581876832830baeB6a2Aa2a3C9716",
2831
- SolverAccount: "0xfCd233b937D7622AAc63ced3C9A1A12F4a6B64E3",
2831
+ SolverAccount: "0x7cb55539d1144F62422099c3FA3405092022c88C",
2832
2832
  TokenGateway: "0xFd413e3AFe560182C4471F4d143A96d3e259B6dE",
2833
2833
  Host: "0x620128E2B19193d6Bd244a3AC8D3bBa0541B19c3",
2834
2834
  UniswapRouter02: "0x10ED43C718714eb63d5aA57B78B54704E256024E",
@@ -2889,7 +2889,7 @@ var chainConfigs = {
2889
2889
  },
2890
2890
  addresses: {
2891
2891
  IntentGateway: "0xAe041F7B0CB581876832830baeB6a2Aa2a3C9716",
2892
- SolverAccount: "0xfCd233b937D7622AAc63ced3C9A1A12F4a6B64E3",
2892
+ SolverAccount: "0x7cb55539d1144F62422099c3FA3405092022c88C",
2893
2893
  TokenGateway: "0xFd413e3AFe560182C4471F4d143A96d3e259B6dE",
2894
2894
  Host: "0x620128E2B19193d6Bd244a3AC8D3bBa0541B19c3",
2895
2895
  UniswapRouter02: "0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24",
@@ -2963,7 +2963,7 @@ var chainConfigs = {
2963
2963
  },
2964
2964
  addresses: {
2965
2965
  IntentGateway: "0xAe041F7B0CB581876832830baeB6a2Aa2a3C9716",
2966
- SolverAccount: "0xfCd233b937D7622AAc63ced3C9A1A12F4a6B64E3",
2966
+ SolverAccount: "0x7cb55539d1144F62422099c3FA3405092022c88C",
2967
2967
  TokenGateway: "0xFd413e3AFe560182C4471F4d143A96d3e259B6dE",
2968
2968
  Host: "0x620128E2B19193d6Bd244a3AC8D3bBa0541B19c3",
2969
2969
  UniswapRouter02: "0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24",
@@ -3038,7 +3038,7 @@ var chainConfigs = {
3038
3038
  },
3039
3039
  addresses: {
3040
3040
  IntentGateway: "0xAe041F7B0CB581876832830baeB6a2Aa2a3C9716",
3041
- SolverAccount: "0xfCd233b937D7622AAc63ced3C9A1A12F4a6B64E3",
3041
+ SolverAccount: "0x7cb55539d1144F62422099c3FA3405092022c88C",
3042
3042
  TokenGateway: "0x8b536105b6Fae2aE9199f5146D3C57Dfe53b614E",
3043
3043
  Host: "0x620128E2B19193d6Bd244a3AC8D3bBa0541B19c3",
3044
3044
  UniswapRouter02: "0xd2f9496824951D5237cC71245D659E48d0d5f9E8",
@@ -3154,7 +3154,7 @@ var chainConfigs = {
3154
3154
  },
3155
3155
  addresses: {
3156
3156
  IntentGateway: "0xAe041F7B0CB581876832830baeB6a2Aa2a3C9716",
3157
- SolverAccount: "0xfCd233b937D7622AAc63ced3C9A1A12F4a6B64E3",
3157
+ SolverAccount: "0x7cb55539d1144F62422099c3FA3405092022c88C",
3158
3158
  TokenGateway: "0xFd413e3AFe560182C4471F4d143A96d3e259B6dE",
3159
3159
  Host: "0x620128E2B19193d6Bd244a3AC8D3bBa0541B19c3",
3160
3160
  UniswapRouter02: "0x4A7b5Da61326A6379179b40d00F57E5bbDC962c2",
@@ -3189,7 +3189,7 @@ var chainConfigs = {
3189
3189
  },
3190
3190
  addresses: {
3191
3191
  IntentGateway: "0xAe041F7B0CB581876832830baeB6a2Aa2a3C9716",
3192
- SolverAccount: "0xfCd233b937D7622AAc63ced3C9A1A12F4a6B64E3",
3192
+ SolverAccount: "0x7cb55539d1144F62422099c3FA3405092022c88C",
3193
3193
  TokenGateway: "0xFd413e3AFe560182C4471F4d143A96d3e259B6dE",
3194
3194
  Host: "0x620128E2B19193d6Bd244a3AC8D3bBa0541B19c3",
3195
3195
  UniswapRouter02: "0xB2e26652e4BAd1e56055A051f922E06760cA0BFE",
@@ -3345,7 +3345,7 @@ var chainConfigs = {
3345
3345
  },
3346
3346
  addresses: {
3347
3347
  IntentGateway: "0xAe041F7B0CB581876832830baeB6a2Aa2a3C9716",
3348
- SolverAccount: "0xfCd233b937D7622AAc63ced3C9A1A12F4a6B64E3",
3348
+ SolverAccount: "0x7cb55539d1144F62422099c3FA3405092022c88C",
3349
3349
  Host: "0x620128E2B19193d6Bd244a3AC8D3bBa0541B19c3",
3350
3350
  Calldispatcher: "0xE2C7e576E26E0bE7aC97c6fE925bcDAbD87c4bEd"
3351
3351
  },
@@ -3392,7 +3392,7 @@ var ABI3 = [
3392
3392
  type: "constructor",
3393
3393
  inputs: [
3394
3394
  {
3395
- name: "admin",
3395
+ name: "owner",
3396
3396
  type: "address",
3397
3397
  internalType: "address"
3398
3398
  }
@@ -3467,25 +3467,6 @@ var ABI3 = [
3467
3467
  ],
3468
3468
  stateMutability: "view"
3469
3469
  },
3470
- {
3471
- type: "function",
3472
- name: "_instances",
3473
- inputs: [
3474
- {
3475
- name: "",
3476
- type: "bytes32",
3477
- internalType: "bytes32"
3478
- }
3479
- ],
3480
- outputs: [
3481
- {
3482
- name: "",
3483
- type: "address",
3484
- internalType: "address"
3485
- }
3486
- ],
3487
- stateMutability: "view"
3488
- },
3489
3470
  {
3490
3471
  type: "function",
3491
3472
  name: "_nonce",
@@ -3523,6 +3504,19 @@ var ABI3 = [
3523
3504
  ],
3524
3505
  stateMutability: "view"
3525
3506
  },
3507
+ {
3508
+ type: "function",
3509
+ name: "_owner",
3510
+ inputs: [],
3511
+ outputs: [
3512
+ {
3513
+ name: "",
3514
+ type: "address",
3515
+ internalType: "address"
3516
+ }
3517
+ ],
3518
+ stateMutability: "view"
3519
+ },
3526
3520
  {
3527
3521
  type: "function",
3528
3522
  name: "_partialFills",
@@ -3938,6 +3932,61 @@ var ABI3 = [
3938
3932
  ],
3939
3933
  stateMutability: "view"
3940
3934
  },
3935
+ {
3936
+ type: "function",
3937
+ name: "initialize",
3938
+ inputs: [
3939
+ {
3940
+ name: "p",
3941
+ type: "tuple",
3942
+ internalType: "struct Params",
3943
+ components: [
3944
+ {
3945
+ name: "host",
3946
+ type: "address",
3947
+ internalType: "address"
3948
+ },
3949
+ {
3950
+ name: "dispatcher",
3951
+ type: "address",
3952
+ internalType: "address"
3953
+ },
3954
+ {
3955
+ name: "solverSelection",
3956
+ type: "bool",
3957
+ internalType: "bool"
3958
+ },
3959
+ {
3960
+ name: "surplusShareBps",
3961
+ type: "uint256",
3962
+ internalType: "uint256"
3963
+ },
3964
+ {
3965
+ name: "protocolFeeBps",
3966
+ type: "uint256",
3967
+ internalType: "uint256"
3968
+ },
3969
+ {
3970
+ name: "priceOracle",
3971
+ type: "address",
3972
+ internalType: "address"
3973
+ }
3974
+ ]
3975
+ },
3976
+ {
3977
+ name: "peerChains",
3978
+ type: "bytes[]",
3979
+ internalType: "bytes[]"
3980
+ },
3981
+ {
3982
+ name: "relayer",
3983
+ type: "address",
3984
+ internalType: "address"
3985
+ }
3986
+ ],
3987
+ outputs: [],
3988
+ stateMutability: "nonpayable"
3989
+ },
3941
3990
  {
3942
3991
  type: "function",
3943
3992
  name: "instance",
@@ -3957,6 +4006,19 @@ var ABI3 = [
3957
4006
  ],
3958
4007
  stateMutability: "view"
3959
4008
  },
4009
+ {
4010
+ type: "function",
4011
+ name: "migrate",
4012
+ inputs: [
4013
+ {
4014
+ name: "relayer",
4015
+ type: "address",
4016
+ internalType: "address"
4017
+ }
4018
+ ],
4019
+ outputs: [],
4020
+ stateMutability: "nonpayable"
4021
+ },
3960
4022
  {
3961
4023
  type: "function",
3962
4024
  name: "onAccept",
@@ -4468,7 +4530,7 @@ var ABI3 = [
4468
4530
  internalType: "uint256"
4469
4531
  }
4470
4532
  ],
4471
- stateMutability: "view"
4533
+ stateMutability: "nonpayable"
4472
4534
  },
4473
4535
  {
4474
4536
  type: "function",
@@ -4524,6 +4586,19 @@ var ABI3 = [
4524
4586
  internalType: "uint256"
4525
4587
  }
4526
4588
  ],
4589
+ stateMutability: "nonpayable"
4590
+ },
4591
+ {
4592
+ type: "function",
4593
+ name: "relayer",
4594
+ inputs: [],
4595
+ outputs: [
4596
+ {
4597
+ name: "",
4598
+ type: "address",
4599
+ internalType: "address"
4600
+ }
4601
+ ],
4527
4602
  stateMutability: "view"
4528
4603
  },
4529
4604
  {
@@ -4564,66 +4639,67 @@ var ABI3 = [
4564
4639
  },
4565
4640
  {
4566
4641
  type: "function",
4567
- name: "init",
4642
+ name: "setRelayer",
4568
4643
  inputs: [
4569
4644
  {
4570
- name: "p",
4571
- type: "tuple",
4572
- internalType: "struct Params",
4573
- components: [
4574
- {
4575
- name: "host",
4576
- type: "address",
4577
- internalType: "address"
4578
- },
4579
- {
4580
- name: "dispatcher",
4581
- type: "address",
4582
- internalType: "address"
4583
- },
4584
- {
4585
- name: "solverSelection",
4586
- type: "bool",
4587
- internalType: "bool"
4588
- },
4589
- {
4590
- name: "surplusShareBps",
4591
- type: "uint256",
4592
- internalType: "uint256"
4593
- },
4594
- {
4595
- name: "protocolFeeBps",
4596
- type: "uint256",
4597
- internalType: "uint256"
4598
- },
4599
- {
4600
- name: "priceOracle",
4601
- type: "address",
4602
- internalType: "address"
4603
- }
4604
- ]
4645
+ name: "relayer",
4646
+ type: "address",
4647
+ internalType: "address"
4648
+ }
4649
+ ],
4650
+ outputs: [],
4651
+ stateMutability: "nonpayable"
4652
+ },
4653
+ {
4654
+ type: "function",
4655
+ name: "upgradeToAndCall",
4656
+ inputs: [
4657
+ {
4658
+ name: "newImplementation",
4659
+ type: "address",
4660
+ internalType: "address"
4605
4661
  },
4606
4662
  {
4607
- name: "deployments",
4608
- type: "tuple[]",
4609
- internalType: "struct Deployment[]",
4610
- components: [
4611
- {
4612
- name: "chain",
4613
- type: "bytes",
4614
- internalType: "bytes"
4615
- },
4616
- {
4617
- name: "gateway",
4618
- type: "address",
4619
- internalType: "address"
4620
- }
4621
- ]
4663
+ name: "data",
4664
+ type: "bytes",
4665
+ internalType: "bytes"
4622
4666
  }
4623
4667
  ],
4624
4668
  outputs: [],
4625
4669
  stateMutability: "nonpayable"
4626
4670
  },
4671
+ {
4672
+ type: "function",
4673
+ name: "version",
4674
+ inputs: [],
4675
+ outputs: [
4676
+ {
4677
+ name: "",
4678
+ type: "uint64",
4679
+ internalType: "uint64"
4680
+ }
4681
+ ],
4682
+ stateMutability: "view"
4683
+ },
4684
+ {
4685
+ type: "event",
4686
+ name: "DeploymentAdded",
4687
+ inputs: [
4688
+ {
4689
+ name: "chain",
4690
+ type: "string",
4691
+ indexed: false,
4692
+ internalType: "string"
4693
+ },
4694
+ {
4695
+ name: "gateway",
4696
+ type: "address",
4697
+ indexed: false,
4698
+ internalType: "address"
4699
+ }
4700
+ ],
4701
+ anonymous: false
4702
+ },
4627
4703
  {
4628
4704
  type: "event",
4629
4705
  name: "DestinationProtocolFeeUpdated",
@@ -4757,16 +4833,29 @@ var ABI3 = [
4757
4833
  },
4758
4834
  {
4759
4835
  type: "event",
4760
- name: "DeploymentAdded",
4836
+ name: "Initialized",
4761
4837
  inputs: [
4762
4838
  {
4763
- name: "chain",
4764
- type: "string",
4839
+ name: "version",
4840
+ type: "uint64",
4765
4841
  indexed: false,
4766
- internalType: "string"
4842
+ internalType: "uint64"
4843
+ }
4844
+ ],
4845
+ anonymous: false
4846
+ },
4847
+ {
4848
+ type: "event",
4849
+ name: "OrderCancelled",
4850
+ inputs: [
4851
+ {
4852
+ name: "commitment",
4853
+ type: "bytes32",
4854
+ indexed: true,
4855
+ internalType: "bytes32"
4767
4856
  },
4768
4857
  {
4769
- name: "gateway",
4858
+ name: "canceller",
4770
4859
  type: "address",
4771
4860
  indexed: false,
4772
4861
  internalType: "address"
@@ -5094,14 +5183,52 @@ var ABI3 = [
5094
5183
  ],
5095
5184
  anonymous: false
5096
5185
  },
5186
+ {
5187
+ type: "event",
5188
+ name: "RelayerUpdated",
5189
+ inputs: [
5190
+ {
5191
+ name: "previous",
5192
+ type: "address",
5193
+ indexed: false,
5194
+ internalType: "address"
5195
+ },
5196
+ {
5197
+ name: "current",
5198
+ type: "address",
5199
+ indexed: false,
5200
+ internalType: "address"
5201
+ }
5202
+ ],
5203
+ anonymous: false
5204
+ },
5205
+ {
5206
+ type: "event",
5207
+ name: "Upgraded",
5208
+ inputs: [
5209
+ {
5210
+ name: "implementation",
5211
+ type: "address",
5212
+ indexed: true,
5213
+ internalType: "address"
5214
+ }
5215
+ ],
5216
+ anonymous: false
5217
+ },
5097
5218
  {
5098
5219
  type: "error",
5099
- name: "Cancelled",
5100
- inputs: []
5220
+ name: "AddressEmptyCode",
5221
+ inputs: [
5222
+ {
5223
+ name: "target",
5224
+ type: "address",
5225
+ internalType: "address"
5226
+ }
5227
+ ]
5101
5228
  },
5102
5229
  {
5103
5230
  type: "error",
5104
- name: "UnknownInstance",
5231
+ name: "Cancelled",
5105
5232
  inputs: []
5106
5233
  },
5107
5234
  {
@@ -5131,11 +5258,37 @@ var ABI3 = [
5131
5258
  }
5132
5259
  ]
5133
5260
  },
5261
+ {
5262
+ type: "error",
5263
+ name: "ERC1967InvalidImplementation",
5264
+ inputs: [
5265
+ {
5266
+ name: "implementation",
5267
+ type: "address",
5268
+ internalType: "address"
5269
+ }
5270
+ ]
5271
+ },
5272
+ {
5273
+ type: "error",
5274
+ name: "ERC1967NonPayable",
5275
+ inputs: []
5276
+ },
5134
5277
  {
5135
5278
  type: "error",
5136
5279
  name: "Expired",
5137
5280
  inputs: []
5138
5281
  },
5282
+ {
5283
+ type: "error",
5284
+ name: "FailedCall",
5285
+ inputs: []
5286
+ },
5287
+ {
5288
+ type: "error",
5289
+ name: "FillExpired",
5290
+ inputs: []
5291
+ },
5139
5292
  {
5140
5293
  type: "error",
5141
5294
  name: "Filled",
@@ -5146,6 +5299,11 @@ var ABI3 = [
5146
5299
  name: "InsufficientNativeToken",
5147
5300
  inputs: []
5148
5301
  },
5302
+ {
5303
+ type: "error",
5304
+ name: "InvalidInitialization",
5305
+ inputs: []
5306
+ },
5149
5307
  {
5150
5308
  type: "error",
5151
5309
  name: "InvalidInput",
@@ -5161,6 +5319,21 @@ var ABI3 = [
5161
5319
  name: "NotExpired",
5162
5320
  inputs: []
5163
5321
  },
5322
+ {
5323
+ type: "error",
5324
+ name: "NotInitializing",
5325
+ inputs: []
5326
+ },
5327
+ {
5328
+ type: "error",
5329
+ name: "PartialFillNotAllowed",
5330
+ inputs: []
5331
+ },
5332
+ {
5333
+ type: "error",
5334
+ name: "ReentrancyGuardReentrantCall",
5335
+ inputs: []
5336
+ },
5164
5337
  {
5165
5338
  type: "error",
5166
5339
  name: "SafeERC20FailedOperation",
@@ -5198,6 +5371,11 @@ var ABI3 = [
5198
5371
  name: "UnexpectedCall",
5199
5372
  inputs: []
5200
5373
  },
5374
+ {
5375
+ type: "error",
5376
+ name: "UnknownInstance",
5377
+ inputs: []
5378
+ },
5201
5379
  {
5202
5380
  type: "error",
5203
5381
  name: "UnknownOrder",
@@ -20428,8 +20606,52 @@ var IntentGateway = class _IntentGateway {
20428
20606
  }
20429
20607
  }
20430
20608
  };
20431
-
20432
- // src/protocols/intents/phantom-aggregation.ts
20609
+ function rpcFetch() {
20610
+ const f = globalThis.fetch;
20611
+ if (typeof f !== "function") {
20612
+ throw new Error("No fetch available; call setAggregationFetch() before using the aggregation helpers");
20613
+ }
20614
+ return f;
20615
+ }
20616
+ var PhantomRpcError = class extends Error {
20617
+ constructor(message, cause) {
20618
+ super(message);
20619
+ this.cause = cause;
20620
+ this.name = "PhantomRpcError";
20621
+ }
20622
+ cause;
20623
+ };
20624
+ async function rpcCall(url, payload) {
20625
+ let lastErr;
20626
+ for (let attempt = 0; attempt < 4; attempt++) {
20627
+ if (attempt > 0) await new Promise((resolve) => setTimeout(resolve, 150 * attempt));
20628
+ let timer;
20629
+ try {
20630
+ const timeout = new Promise((_, reject) => {
20631
+ timer = setTimeout(() => reject(new Error(`rpc timeout: ${url}`)), 12e3);
20632
+ });
20633
+ const response = await Promise.race([
20634
+ rpcFetch()(url, {
20635
+ method: "POST",
20636
+ headers: { accept: "application/json", "content-type": "application/json" },
20637
+ body: JSON.stringify(payload)
20638
+ }),
20639
+ timeout
20640
+ ]);
20641
+ const body = await response.json();
20642
+ if (body?.error) {
20643
+ lastErr = new Error(`rpc error: ${JSON.stringify(body.error).slice(0, 200)}`);
20644
+ continue;
20645
+ }
20646
+ return body;
20647
+ } catch (err) {
20648
+ lastErr = err;
20649
+ } finally {
20650
+ if (timer) clearTimeout(timer);
20651
+ }
20652
+ }
20653
+ throw new PhantomRpcError(`RPC call failed after 4 attempts: ${url}`, lastErr);
20654
+ }
20433
20655
  var FILL_ORDER_ABI = IntentGatewayV2_default.ABI;
20434
20656
  var DECLARATION_V1 = 1;
20435
20657
  var DECLARATION_V2 = 2;
@@ -20518,15 +20740,35 @@ function decodeAcceptedSourceChains(paymasterAndData) {
20518
20740
  return decodePhantomBidDeclaration(paymasterAndData).acceptedSources;
20519
20741
  }
20520
20742
  var UNISWAP_QUOTE_HAIRCUT_BPS = 10n;
20521
- var PHANTOM_QUOTE_HAIRCUT_BPS = 5n;
20522
20743
  function haircut(amount, bps) {
20523
20744
  return amount * (10000n - bps) / 10000n;
20524
20745
  }
20525
20746
  function applyUniswapQuoteHaircut(amount) {
20526
20747
  return haircut(amount, UNISWAP_QUOTE_HAIRCUT_BPS);
20527
20748
  }
20528
- function applyPhantomQuoteHaircut(amount) {
20529
- return haircut(amount, PHANTOM_QUOTE_HAIRCUT_BPS);
20749
+ var SELECTOR_GATEWAY_PARAMS = "0xcff0ab96";
20750
+ var GATEWAY_PARAMS_WORDS = 6;
20751
+ var GATEWAY_PARAMS_FEE_WORD = 4;
20752
+ async function readProtocolFeeHaircutBps(evmRpcUrl, gatewayAddress) {
20753
+ const result = await rpcCall(evmRpcUrl, {
20754
+ id: 1,
20755
+ jsonrpc: "2.0",
20756
+ method: "eth_call",
20757
+ params: [{ to: gatewayAddress, data: SELECTOR_GATEWAY_PARAMS }, "latest"]
20758
+ });
20759
+ const hex = result.result;
20760
+ if (typeof hex !== "string" || hex.length < 2 + 64 * GATEWAY_PARAMS_WORDS) {
20761
+ throw new PhantomRpcError(`IntentGateway.params() returned no usable result from ${gatewayAddress} on ${evmRpcUrl}`);
20762
+ }
20763
+ const start = 2 + 64 * GATEWAY_PARAMS_FEE_WORD;
20764
+ const protocolFeeBps = BigInt(`0x${hex.slice(start, start + 64)}`);
20765
+ if (protocolFeeBps >= 10000n) {
20766
+ throw new PhantomRpcError(`IntentGateway ${gatewayAddress} reports an implausible protocol fee: ${protocolFeeBps} bps`);
20767
+ }
20768
+ return protocolFeeBps;
20769
+ }
20770
+ function applyProtocolFeeHaircut(amount, protocolFeeBps) {
20771
+ return haircut(amount, protocolFeeBps);
20530
20772
  }
20531
20773
  FILL_ORDER_ABI.find(
20532
20774
  (item) => item?.type === "function" && item?.name === "fillOrder"
@@ -25001,6 +25243,6 @@ async function teleportDot(param_) {
25001
25243
  return stream;
25002
25244
  }
25003
25245
 
25004
- export { ADDRESS_ZERO2 as ADDRESS_ZERO, BundlerMethod, CHAINS_WITHOUT_VALID_UNTIL, ChainConfigService, Chains, CryptoUtils, DEFAULT_ADDRESS, DEFAULT_GRAFFITI, DOMAIN_TYPEHASH, DUMMY_PRIVATE_KEY, ERC20Method, ERC7821_BATCH_MODE, EvmChain, ABI as EvmHostABI, EvmLanguage, FILL_ORDER_V1_ABI, HyperClientStatus, HyperFungibleToken, HyperFungibleTokenABI, INCLUSION_TIMEOUT_MS, IndexedRateUnavailableError, IntentGateway, ABI3 as IntentGatewayABI, IntentOrderStatus, IntentsCoprocessor, InvalidIndexedRateError, InvalidLiquidityIndexerResponseError, InvalidPhantomSnapshotError, IsmpClient, LEGACY_FILL_OPTIONS_IMPLEMENTATIONS, MOCK_ADDRESS, ORDER_V2_PARAM_TYPE, OrderStatus, OrderStatusChecker, PACKED_USEROP_TYPEHASH, PHANTOM_QUOTE_HAIRCUT_BPS, PLACE_ORDER_SELECTOR, PhantomSnapshotUnavailableError, PharosChain, PolkadotHubChain, REQUEST_COMMITMENTS_SLOT, REQUEST_RECEIPTS_SLOT, RESPONSE_COMMITMENTS_SLOT, RESPONSE_RECEIPTS_SLOT, RequestKind, RequestStatus, SELECT_SOLVER_TYPEHASH, STATE_COMMITMENTS_SLOT, SubstrateChain, Swap, TESTNET_CHAINS, TeleportStatus, TimeoutStatus, TokenGateway, TronChain, UNISWAP_QUOTE_HAIRCUT_BPS, USE_ETHERSCAN_CHAINS, UnsupportedIntentQuotePairError, UnsupportedIntentQuoteStrategyError, UnsupportedLiquidityAssetError, UnsupportedLiquidityChainError, WrappedHyperFungibleTokenABI, __test, adjustDecimals, applyPhantomQuoteHaircut, applyUniswapQuoteHaircut, bytes20ToBytes32, bytes32ToBytes20, calculateAllowanceMappingLocation, calculateBalanceMappingLocation, chainConfigs, constructRedeemEscrowRequestBody, constructRefundEscrowRequestBody, convertCodecToIGetRequest, convertCodecToIProof, convertIGetRequestToCodec, convertIProofToCodec, convertStateIdToStateMachineId, convertStateMachineEnumToString, convertStateMachineIdToEnum, createEvmChain, createQueryClient, decodeAcceptedSourceChains, decodeERC7821ExecuteBatch, decodeFillOrder, decodePhantomBidDeclaration, decodeUserOpScale, deriveHttpUrl, encodeAcceptedSourceChains, encodeERC7821ExecuteBatch, encodeFillOrder, encodeISMPMessage, encodePhantomBidDeclaration, encodeStateMachineId, encodeUserOpScale, encodeWithdrawalRequest, estimateGasForPost, fetchPrice, fetchSourceProof, generateRootWithProof, getChainId, getConfigByStateMachineId, getContractCallInput, getContractCallInputs, getFillOptionsVersion, getGasPriceFromEtherscan, getOrFetchStorageSlot, getOrderPlacedFromTx, getPostRequestEventFromTx, getPostResponseEventFromTx, getRequestCommitment, getStateCommitmentFieldSlot, getStateCommitmentSlot, getStorageSlot, getViemChain, hexToString, hyperbridgeAddress, maxBigInt, normalizeAddressForEvmBytes32, normalizeAddressForStateMachine, normalizeEvmAddress, normalizeEvmChainId, normalizeStateMachineId, orderCommitment, parseStateMachineId, pharosAtlantic, pharosMainnet, polkadotAssetHubPaseo, polkadotHubMainnet, poolSlug, postRequestCommitment, queryAssetTeleported, queryGetRequest, queryPostRequest, quoteUniswap, requestCommitmentKey, resetFillOptionsVersionCache, responseCommitmentKey, retryPromise, sortPoolSymbols, teleport, teleportDot, transformOrderForContract, tronChainIds, tronNile };
25246
+ export { ADDRESS_ZERO2 as ADDRESS_ZERO, BundlerMethod, CHAINS_WITHOUT_VALID_UNTIL, ChainConfigService, Chains, CryptoUtils, DEFAULT_ADDRESS, DEFAULT_GRAFFITI, DOMAIN_TYPEHASH, DUMMY_PRIVATE_KEY, ERC20Method, ERC7821_BATCH_MODE, EvmChain, ABI as EvmHostABI, EvmLanguage, FILL_ORDER_V1_ABI, HyperClientStatus, HyperFungibleToken, HyperFungibleTokenABI, INCLUSION_TIMEOUT_MS, IndexedRateUnavailableError, IntentGateway, ABI3 as IntentGatewayABI, IntentOrderStatus, IntentsCoprocessor, InvalidIndexedRateError, InvalidLiquidityIndexerResponseError, InvalidPhantomSnapshotError, IsmpClient, LEGACY_FILL_OPTIONS_IMPLEMENTATIONS, MOCK_ADDRESS, ORDER_V2_PARAM_TYPE, OrderStatus, OrderStatusChecker, PACKED_USEROP_TYPEHASH, PLACE_ORDER_SELECTOR, PhantomSnapshotUnavailableError, PharosChain, PolkadotHubChain, REQUEST_COMMITMENTS_SLOT, REQUEST_RECEIPTS_SLOT, RESPONSE_COMMITMENTS_SLOT, RESPONSE_RECEIPTS_SLOT, RequestKind, RequestStatus, SELECT_SOLVER_TYPEHASH, STATE_COMMITMENTS_SLOT, SubstrateChain, Swap, TESTNET_CHAINS, TeleportStatus, TimeoutStatus, TokenGateway, TronChain, UNISWAP_QUOTE_HAIRCUT_BPS, USE_ETHERSCAN_CHAINS, UnsupportedIntentQuotePairError, UnsupportedIntentQuoteStrategyError, UnsupportedLiquidityAssetError, UnsupportedLiquidityChainError, WrappedHyperFungibleTokenABI, __test, adjustDecimals, applyProtocolFeeHaircut, applyUniswapQuoteHaircut, bytes20ToBytes32, bytes32ToBytes20, calculateAllowanceMappingLocation, calculateBalanceMappingLocation, chainConfigs, constructRedeemEscrowRequestBody, constructRefundEscrowRequestBody, convertCodecToIGetRequest, convertCodecToIProof, convertIGetRequestToCodec, convertIProofToCodec, convertStateIdToStateMachineId, convertStateMachineEnumToString, convertStateMachineIdToEnum, createEvmChain, createQueryClient, decodeAcceptedSourceChains, decodeERC7821ExecuteBatch, decodeFillOrder, decodePhantomBidDeclaration, decodeUserOpScale, deriveHttpUrl, encodeAcceptedSourceChains, encodeERC7821ExecuteBatch, encodeFillOrder, encodeISMPMessage, encodePhantomBidDeclaration, encodeStateMachineId, encodeUserOpScale, encodeWithdrawalRequest, estimateGasForPost, fetchPrice, fetchSourceProof, generateRootWithProof, getChainId, getConfigByStateMachineId, getContractCallInput, getContractCallInputs, getFillOptionsVersion, getGasPriceFromEtherscan, getOrFetchStorageSlot, getOrderPlacedFromTx, getPostRequestEventFromTx, getPostResponseEventFromTx, getRequestCommitment, getStateCommitmentFieldSlot, getStateCommitmentSlot, getStorageSlot, getViemChain, hexToString, hyperbridgeAddress, maxBigInt, normalizeAddressForEvmBytes32, normalizeAddressForStateMachine, normalizeEvmAddress, normalizeEvmChainId, normalizeStateMachineId, orderCommitment, parseStateMachineId, pharosAtlantic, pharosMainnet, polkadotAssetHubPaseo, polkadotHubMainnet, poolSlug, postRequestCommitment, queryAssetTeleported, queryGetRequest, queryPostRequest, quoteUniswap, readProtocolFeeHaircutBps, requestCommitmentKey, resetFillOptionsVersionCache, responseCommitmentKey, retryPromise, sortPoolSymbols, teleport, teleportDot, transformOrderForContract, tronChainIds, tronNile };
25005
25247
  //# sourceMappingURL=index.js.map
25006
25248
  //# sourceMappingURL=index.js.map