@dcentralab/d402-client 0.2.1 → 0.2.2

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
@@ -2,7 +2,6 @@
2
2
 
3
3
  var viem = require('viem');
4
4
  var chains = require('viem/chains');
5
- var accounts = require('viem/accounts');
6
5
 
7
6
  var __defProp = Object.defineProperty;
8
7
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -200,38 +199,17 @@ exports.CHAIN_IDS = void 0; exports.NETWORKS = void 0; exports.TOKEN_ADDRESSES =
200
199
  var init_constants = __esm({
201
200
  "src/constants.ts"() {
202
201
  exports.CHAIN_IDS = {
203
- mainnet: 1,
204
- sepolia: 11155111,
205
- base: 8453,
206
- polygon: 137
202
+ sepolia: 11155111
207
203
  };
208
204
  exports.NETWORKS = {
209
- mainnet: {
210
- chainId: 1,
211
- name: "Ethereum Mainnet",
212
- nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }
213
- },
214
205
  sepolia: {
215
206
  chainId: 11155111,
216
207
  name: "Sepolia Testnet",
217
208
  nativeCurrency: { name: "Sepolia Ether", symbol: "SEP", decimals: 18 }
218
- },
219
- base: {
220
- chainId: 8453,
221
- name: "Base",
222
- nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }
223
- },
224
- polygon: {
225
- chainId: 137,
226
- name: "Polygon",
227
- nativeCurrency: { name: "MATIC", symbol: "MATIC", decimals: 18 }
228
209
  }
229
210
  };
230
211
  exports.TOKEN_ADDRESSES = {
231
- mainnet: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
232
- sepolia: "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",
233
- base: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
234
- polygon: "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"
212
+ sepolia: "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238"
235
213
  };
236
214
  exports.DEFAULT_VALIDITY_WINDOW_SECONDS = 300;
237
215
  exports.EIP712_TYPES = {
@@ -292,8 +270,7 @@ function getChainId(network) {
292
270
  "arbitrum-sepolia": 421614,
293
271
  "arbitrum-mainnet": 42161,
294
272
  "avalanche-fuji": 43113,
295
- "avalanche": 43114,
296
- "localhost": 31337
273
+ "avalanche": 43114
297
274
  };
298
275
  const chainId = networkMap[network];
299
276
  if (!chainId) {
@@ -539,9 +516,16 @@ var D402Client = class {
539
516
  /**
540
517
  * Create a new D402 Client.
541
518
  *
542
- * Matches Python: d402Client.__init__ (base.py lines 66-95)
543
- *
544
519
  * @param config - Client configuration
520
+ *
521
+ * @example
522
+ * ```ts
523
+ * const client = new D402Client({
524
+ * operatorAccount: walletClient.account, // User's wallet from wagmi
525
+ * iatpWalletAddress: userWallet, // From createIATPWallet() or getWalletsByOwner()
526
+ * maxValue: 1000000n // Safety limit: 1 USDC max
527
+ * })
528
+ * ```
545
529
  */
546
530
  constructor(config) {
547
531
  this.operatorAccount = config.operatorAccount;
@@ -554,7 +538,8 @@ var D402Client = class {
554
538
  /**
555
539
  * Select payment requirement from list of options.
556
540
  *
557
- * Matches Python: select_payment_requirements (base.py lines 152-174)
541
+ * Applies configured filters (network, scheme, maxValue) to choose
542
+ * the appropriate payment option from the server's requirements list.
558
543
  *
559
544
  * @param requirements - List of payment requirements from 402 response
560
545
  * @returns Selected payment requirement
@@ -569,15 +554,15 @@ var D402Client = class {
569
554
  /**
570
555
  * Get the IATP wallet address used for payments.
571
556
  *
572
- * @returns IATPWallet contract address or operator EOA address
557
+ * @returns IATPWallet contract address, or user's EOA address if no wallet configured
573
558
  */
574
559
  getIATPWalletAddress() {
575
560
  return this.iatpWalletAddress;
576
561
  }
577
562
  /**
578
- * Get the operator account used for signing.
563
+ * Get the user's account used for signing payments.
579
564
  *
580
- * @returns Operator account
565
+ * @returns User's wallet account
581
566
  */
582
567
  getOperatorAccount() {
583
568
  return this.operatorAccount;
@@ -593,7 +578,6 @@ var D402Client = class {
593
578
  /**
594
579
  * Fetch with automatic 402 payment handling.
595
580
  *
596
- * Matches Python: HttpxHooks.on_response() (httpx.py lines 33-117)
597
581
  *
598
582
  * Flow:
599
583
  * 1. Make request without payment
@@ -4753,4106 +4737,8 @@ var sepolia_default = {
4753
4737
  }
4754
4738
  };
4755
4739
 
4756
- // src/contracts/abis/localhost.json
4757
- var localhost_default = {
4758
- localhost: {
4759
- IATPWallet: [
4760
- {
4761
- inputs: [],
4762
- stateMutability: "nonpayable",
4763
- type: "constructor"
4764
- },
4765
- {
4766
- inputs: [
4767
- {
4768
- internalType: "address",
4769
- name: "target",
4770
- type: "address"
4771
- }
4772
- ],
4773
- name: "AddressEmptyCode",
4774
- type: "error"
4775
- },
4776
- {
4777
- inputs: [],
4778
- name: "ECDSAInvalidSignature",
4779
- type: "error"
4780
- },
4781
- {
4782
- inputs: [
4783
- {
4784
- internalType: "uint256",
4785
- name: "length",
4786
- type: "uint256"
4787
- }
4788
- ],
4789
- name: "ECDSAInvalidSignatureLength",
4790
- type: "error"
4791
- },
4792
- {
4793
- inputs: [
4794
- {
4795
- internalType: "bytes32",
4796
- name: "s",
4797
- type: "bytes32"
4798
- }
4799
- ],
4800
- name: "ECDSAInvalidSignatureS",
4801
- type: "error"
4802
- },
4803
- {
4804
- inputs: [
4805
- {
4806
- internalType: "address",
4807
- name: "implementation",
4808
- type: "address"
4809
- }
4810
- ],
4811
- name: "ERC1967InvalidImplementation",
4812
- type: "error"
4813
- },
4814
- {
4815
- inputs: [],
4816
- name: "ERC1967NonPayable",
4817
- type: "error"
4818
- },
4819
- {
4820
- inputs: [],
4821
- name: "FailedCall",
4822
- type: "error"
4823
- },
4824
- {
4825
- inputs: [],
4826
- name: "InsufficientBalance",
4827
- type: "error"
4828
- },
4829
- {
4830
- inputs: [],
4831
- name: "InvalidAmount",
4832
- type: "error"
4833
- },
4834
- {
4835
- inputs: [],
4836
- name: "InvalidInitialization",
4837
- type: "error"
4838
- },
4839
- {
4840
- inputs: [],
4841
- name: "InvalidOperatorAddress",
4842
- type: "error"
4843
- },
4844
- {
4845
- inputs: [],
4846
- name: "InvalidOwnerAddress",
4847
- type: "error"
4848
- },
4849
- {
4850
- inputs: [],
4851
- name: "InvalidProvider",
4852
- type: "error"
4853
- },
4854
- {
4855
- inputs: [],
4856
- name: "InvalidSettlementLayerAddress",
4857
- type: "error"
4858
- },
4859
- {
4860
- inputs: [],
4861
- name: "InvalidSignature",
4862
- type: "error"
4863
- },
4864
- {
4865
- inputs: [],
4866
- name: "InvalidTokenAddress",
4867
- type: "error"
4868
- },
4869
- {
4870
- inputs: [],
4871
- name: "NotAuthorized",
4872
- type: "error"
4873
- },
4874
- {
4875
- inputs: [],
4876
- name: "NotInitializing",
4877
- type: "error"
4878
- },
4879
- {
4880
- inputs: [],
4881
- name: "NotSettlementLayer",
4882
- type: "error"
4883
- },
4884
- {
4885
- inputs: [],
4886
- name: "OnlyOwner",
4887
- type: "error"
4888
- },
4889
- {
4890
- inputs: [],
4891
- name: "PendingWithdrawalExists",
4892
- type: "error"
4893
- },
4894
- {
4895
- inputs: [
4896
- {
4897
- internalType: "address",
4898
- name: "token",
4899
- type: "address"
4900
- }
4901
- ],
4902
- name: "SafeERC20FailedOperation",
4903
- type: "error"
4904
- },
4905
- {
4906
- inputs: [],
4907
- name: "SignatureExpired",
4908
- type: "error"
4909
- },
4910
- {
4911
- inputs: [],
4912
- name: "TransferFailed",
4913
- type: "error"
4914
- },
4915
- {
4916
- inputs: [],
4917
- name: "UUPSUnauthorizedCallContext",
4918
- type: "error"
4919
- },
4920
- {
4921
- inputs: [
4922
- {
4923
- internalType: "bytes32",
4924
- name: "slot",
4925
- type: "bytes32"
4926
- }
4927
- ],
4928
- name: "UUPSUnsupportedProxiableUUID",
4929
- type: "error"
4930
- },
4931
- {
4932
- inputs: [],
4933
- name: "WithdrawalAlreadyExecuted",
4934
- type: "error"
4935
- },
4936
- {
4937
- inputs: [],
4938
- name: "WithdrawalLockupNotExpired",
4939
- type: "error"
4940
- },
4941
- {
4942
- inputs: [],
4943
- name: "WithdrawalRequestNotFound",
4944
- type: "error"
4945
- },
4946
- {
4947
- anonymous: false,
4948
- inputs: [
4949
- {
4950
- indexed: true,
4951
- internalType: "address",
4952
- name: "owner",
4953
- type: "address"
4954
- },
4955
- {
4956
- indexed: true,
4957
- internalType: "address",
4958
- name: "operatorAddress",
4959
- type: "address"
4960
- },
4961
- {
4962
- indexed: false,
4963
- internalType: "address",
4964
- name: "settlementLayer",
4965
- type: "address"
4966
- }
4967
- ],
4968
- name: "ClientInitialized",
4969
- type: "event"
4970
- },
4971
- {
4972
- anonymous: false,
4973
- inputs: [],
4974
- name: "EIP712DomainChanged",
4975
- type: "event"
4976
- },
4977
- {
4978
- anonymous: false,
4979
- inputs: [
4980
- {
4981
- indexed: true,
4982
- internalType: "address",
4983
- name: "token",
4984
- type: "address"
4985
- },
4986
- {
4987
- indexed: false,
4988
- internalType: "uint256",
4989
- name: "amount",
4990
- type: "uint256"
4991
- }
4992
- ],
4993
- name: "FundsDeposited",
4994
- type: "event"
4995
- },
4996
- {
4997
- anonymous: false,
4998
- inputs: [
4999
- {
5000
- indexed: true,
5001
- internalType: "address",
5002
- name: "token",
5003
- type: "address"
5004
- },
5005
- {
5006
- indexed: false,
5007
- internalType: "uint256",
5008
- name: "amount",
5009
- type: "uint256"
5010
- },
5011
- {
5012
- indexed: true,
5013
- internalType: "address",
5014
- name: "provider",
5015
- type: "address"
5016
- },
5017
- {
5018
- indexed: true,
5019
- internalType: "address",
5020
- name: "signer",
5021
- type: "address"
5022
- }
5023
- ],
5024
- name: "FundsTransferredToSettlement",
5025
- type: "event"
5026
- },
5027
- {
5028
- anonymous: false,
5029
- inputs: [
5030
- {
5031
- indexed: false,
5032
- internalType: "uint64",
5033
- name: "version",
5034
- type: "uint64"
5035
- }
5036
- ],
5037
- name: "Initialized",
5038
- type: "event"
5039
- },
5040
- {
5041
- anonymous: false,
5042
- inputs: [
5043
- {
5044
- indexed: true,
5045
- internalType: "address",
5046
- name: "oldOperator",
5047
- type: "address"
5048
- },
5049
- {
5050
- indexed: true,
5051
- internalType: "address",
5052
- name: "newOperator",
5053
- type: "address"
5054
- }
5055
- ],
5056
- name: "OperatorAddressUpdated",
5057
- type: "event"
5058
- },
5059
- {
5060
- anonymous: false,
5061
- inputs: [
5062
- {
5063
- indexed: true,
5064
- internalType: "address",
5065
- name: "newRoleManager",
5066
- type: "address"
5067
- }
5068
- ],
5069
- name: "RoleManagerUpdated",
5070
- type: "event"
5071
- },
5072
- {
5073
- anonymous: false,
5074
- inputs: [
5075
- {
5076
- indexed: true,
5077
- internalType: "address",
5078
- name: "implementation",
5079
- type: "address"
5080
- }
5081
- ],
5082
- name: "Upgraded",
5083
- type: "event"
5084
- },
5085
- {
5086
- anonymous: false,
5087
- inputs: [
5088
- {
5089
- indexed: true,
5090
- internalType: "address",
5091
- name: "token",
5092
- type: "address"
5093
- },
5094
- {
5095
- indexed: false,
5096
- internalType: "uint256",
5097
- name: "amount",
5098
- type: "uint256"
5099
- }
5100
- ],
5101
- name: "WithdrawalCancelled",
5102
- type: "event"
5103
- },
5104
- {
5105
- anonymous: false,
5106
- inputs: [
5107
- {
5108
- indexed: true,
5109
- internalType: "address",
5110
- name: "token",
5111
- type: "address"
5112
- },
5113
- {
5114
- indexed: false,
5115
- internalType: "uint256",
5116
- name: "amount",
5117
- type: "uint256"
5118
- },
5119
- {
5120
- indexed: true,
5121
- internalType: "address",
5122
- name: "recipient",
5123
- type: "address"
5124
- }
5125
- ],
5126
- name: "WithdrawalExecuted",
5127
- type: "event"
5128
- },
5129
- {
5130
- anonymous: false,
5131
- inputs: [
5132
- {
5133
- indexed: true,
5134
- internalType: "address",
5135
- name: "token",
5136
- type: "address"
5137
- },
5138
- {
5139
- indexed: false,
5140
- internalType: "uint256",
5141
- name: "amount",
5142
- type: "uint256"
5143
- },
5144
- {
5145
- indexed: false,
5146
- internalType: "uint256",
5147
- name: "requestedAt",
5148
- type: "uint256"
5149
- },
5150
- {
5151
- indexed: false,
5152
- internalType: "uint256",
5153
- name: "unlockTime",
5154
- type: "uint256"
5155
- }
5156
- ],
5157
- name: "WithdrawalRequested",
5158
- type: "event"
5159
- },
5160
- {
5161
- inputs: [],
5162
- name: "BONDING_ROLE",
5163
- outputs: [
5164
- {
5165
- internalType: "bytes32",
5166
- name: "",
5167
- type: "bytes32"
5168
- }
5169
- ],
5170
- stateMutability: "view",
5171
- type: "function"
5172
- },
5173
- {
5174
- inputs: [],
5175
- name: "DEFAULT_ADMIN_ROLE",
5176
- outputs: [
5177
- {
5178
- internalType: "bytes32",
5179
- name: "",
5180
- type: "bytes32"
5181
- }
5182
- ],
5183
- stateMutability: "view",
5184
- type: "function"
5185
- },
5186
- {
5187
- inputs: [],
5188
- name: "PROVIDER_ATTESTATION_TYPEHASH",
5189
- outputs: [
5190
- {
5191
- internalType: "bytes32",
5192
- name: "",
5193
- type: "bytes32"
5194
- }
5195
- ],
5196
- stateMutability: "view",
5197
- type: "function"
5198
- },
5199
- {
5200
- inputs: [],
5201
- name: "PULL_FUNDS_FOR_SETTLEMENT_TYPEHASH",
5202
- outputs: [
5203
- {
5204
- internalType: "bytes32",
5205
- name: "",
5206
- type: "bytes32"
5207
- }
5208
- ],
5209
- stateMutability: "view",
5210
- type: "function"
5211
- },
5212
- {
5213
- inputs: [],
5214
- name: "UPGRADE_INTERFACE_VERSION",
5215
- outputs: [
5216
- {
5217
- internalType: "string",
5218
- name: "",
5219
- type: "string"
5220
- }
5221
- ],
5222
- stateMutability: "view",
5223
- type: "function"
5224
- },
5225
- {
5226
- inputs: [],
5227
- name: "WITHDRAWAL_LOCKUP_PERIOD",
5228
- outputs: [
5229
- {
5230
- internalType: "uint256",
5231
- name: "",
5232
- type: "uint256"
5233
- }
5234
- ],
5235
- stateMutability: "view",
5236
- type: "function"
5237
- },
5238
- {
5239
- inputs: [
5240
- {
5241
- internalType: "address",
5242
- name: "token",
5243
- type: "address"
5244
- }
5245
- ],
5246
- name: "cancelWithdrawal",
5247
- outputs: [],
5248
- stateMutability: "nonpayable",
5249
- type: "function"
5250
- },
5251
- {
5252
- inputs: [
5253
- {
5254
- internalType: "address",
5255
- name: "token",
5256
- type: "address"
5257
- },
5258
- {
5259
- internalType: "uint256",
5260
- name: "amount",
5261
- type: "uint256"
5262
- }
5263
- ],
5264
- name: "deposit",
5265
- outputs: [],
5266
- stateMutability: "nonpayable",
5267
- type: "function"
5268
- },
5269
- {
5270
- inputs: [],
5271
- name: "eip712Domain",
5272
- outputs: [
5273
- {
5274
- internalType: "bytes1",
5275
- name: "fields",
5276
- type: "bytes1"
5277
- },
5278
- {
5279
- internalType: "string",
5280
- name: "name",
5281
- type: "string"
5282
- },
5283
- {
5284
- internalType: "string",
5285
- name: "version",
5286
- type: "string"
5287
- },
5288
- {
5289
- internalType: "uint256",
5290
- name: "chainId",
5291
- type: "uint256"
5292
- },
5293
- {
5294
- internalType: "address",
5295
- name: "verifyingContract",
5296
- type: "address"
5297
- },
5298
- {
5299
- internalType: "bytes32",
5300
- name: "salt",
5301
- type: "bytes32"
5302
- },
5303
- {
5304
- internalType: "uint256[]",
5305
- name: "extensions",
5306
- type: "uint256[]"
5307
- }
5308
- ],
5309
- stateMutability: "view",
5310
- type: "function"
5311
- },
5312
- {
5313
- inputs: [
5314
- {
5315
- internalType: "address",
5316
- name: "token",
5317
- type: "address"
5318
- }
5319
- ],
5320
- name: "executeWithdrawal",
5321
- outputs: [],
5322
- stateMutability: "nonpayable",
5323
- type: "function"
5324
- },
5325
- {
5326
- inputs: [
5327
- {
5328
- internalType: "address",
5329
- name: "token",
5330
- type: "address"
5331
- }
5332
- ],
5333
- name: "getBalance",
5334
- outputs: [
5335
- {
5336
- internalType: "uint256",
5337
- name: "",
5338
- type: "uint256"
5339
- }
5340
- ],
5341
- stateMutability: "view",
5342
- type: "function"
5343
- },
5344
- {
5345
- inputs: [
5346
- {
5347
- internalType: "address",
5348
- name: "token",
5349
- type: "address"
5350
- }
5351
- ],
5352
- name: "getWithdrawalRequest",
5353
- outputs: [
5354
- {
5355
- components: [
5356
- {
5357
- internalType: "address",
5358
- name: "token",
5359
- type: "address"
5360
- },
5361
- {
5362
- internalType: "uint256",
5363
- name: "amount",
5364
- type: "uint256"
5365
- },
5366
- {
5367
- internalType: "uint256",
5368
- name: "requestedAt",
5369
- type: "uint256"
5370
- },
5371
- {
5372
- internalType: "bool",
5373
- name: "executed",
5374
- type: "bool"
5375
- }
5376
- ],
5377
- internalType: "struct IIATPWallet.WithdrawalRequest",
5378
- name: "request",
5379
- type: "tuple"
5380
- },
5381
- {
5382
- internalType: "uint256",
5383
- name: "unlockTime",
5384
- type: "uint256"
5385
- }
5386
- ],
5387
- stateMutability: "view",
5388
- type: "function"
5389
- },
5390
- {
5391
- inputs: [
5392
- {
5393
- internalType: "address",
5394
- name: "_roleManager",
5395
- type: "address"
5396
- },
5397
- {
5398
- internalType: "address",
5399
- name: "_owner",
5400
- type: "address"
5401
- },
5402
- {
5403
- internalType: "address",
5404
- name: "_operatorAddress",
5405
- type: "address"
5406
- },
5407
- {
5408
- internalType: "address",
5409
- name: "_settlementLayer",
5410
- type: "address"
5411
- }
5412
- ],
5413
- name: "initialize",
5414
- outputs: [],
5415
- stateMutability: "nonpayable",
5416
- type: "function"
5417
- },
5418
- {
5419
- inputs: [
5420
- {
5421
- internalType: "address",
5422
- name: "account",
5423
- type: "address"
5424
- }
5425
- ],
5426
- name: "isMaintainer",
5427
- outputs: [
5428
- {
5429
- internalType: "bool",
5430
- name: "",
5431
- type: "bool"
5432
- }
5433
- ],
5434
- stateMutability: "view",
5435
- type: "function"
5436
- },
5437
- {
5438
- inputs: [],
5439
- name: "operatorAddress",
5440
- outputs: [
5441
- {
5442
- internalType: "address",
5443
- name: "",
5444
- type: "address"
5445
- }
5446
- ],
5447
- stateMutability: "view",
5448
- type: "function"
5449
- },
5450
- {
5451
- inputs: [],
5452
- name: "owner",
5453
- outputs: [
5454
- {
5455
- internalType: "address",
5456
- name: "",
5457
- type: "address"
5458
- }
5459
- ],
5460
- stateMutability: "view",
5461
- type: "function"
5462
- },
5463
- {
5464
- inputs: [],
5465
- name: "proxiableUUID",
5466
- outputs: [
5467
- {
5468
- internalType: "bytes32",
5469
- name: "",
5470
- type: "bytes32"
5471
- }
5472
- ],
5473
- stateMutability: "view",
5474
- type: "function"
5475
- },
5476
- {
5477
- inputs: [
5478
- {
5479
- internalType: "address",
5480
- name: "token",
5481
- type: "address"
5482
- },
5483
- {
5484
- internalType: "uint256",
5485
- name: "amount",
5486
- type: "uint256"
5487
- },
5488
- {
5489
- internalType: "address",
5490
- name: "provider",
5491
- type: "address"
5492
- },
5493
- {
5494
- internalType: "uint256",
5495
- name: "deadline",
5496
- type: "uint256"
5497
- },
5498
- {
5499
- internalType: "string",
5500
- name: "requestPath",
5501
- type: "string"
5502
- },
5503
- {
5504
- internalType: "bytes",
5505
- name: "signature",
5506
- type: "bytes"
5507
- }
5508
- ],
5509
- name: "pullFundsForSettlement",
5510
- outputs: [],
5511
- stateMutability: "nonpayable",
5512
- type: "function"
5513
- },
5514
- {
5515
- inputs: [
5516
- {
5517
- internalType: "address",
5518
- name: "token",
5519
- type: "address"
5520
- },
5521
- {
5522
- internalType: "uint256",
5523
- name: "amount",
5524
- type: "uint256"
5525
- }
5526
- ],
5527
- name: "requestWithdrawal",
5528
- outputs: [],
5529
- stateMutability: "nonpayable",
5530
- type: "function"
5531
- },
5532
- {
5533
- inputs: [],
5534
- name: "roleManager",
5535
- outputs: [
5536
- {
5537
- internalType: "contract IRoleManager",
5538
- name: "",
5539
- type: "address"
5540
- }
5541
- ],
5542
- stateMutability: "view",
5543
- type: "function"
5544
- },
5545
- {
5546
- inputs: [],
5547
- name: "settlementLayer",
5548
- outputs: [
5549
- {
5550
- internalType: "contract IIATPSettlementLayer",
5551
- name: "",
5552
- type: "address"
5553
- }
5554
- ],
5555
- stateMutability: "view",
5556
- type: "function"
5557
- },
5558
- {
5559
- inputs: [
5560
- {
5561
- internalType: "address",
5562
- name: "_newOperatorAddress",
5563
- type: "address"
5564
- }
5565
- ],
5566
- name: "updateOperatorAddress",
5567
- outputs: [],
5568
- stateMutability: "nonpayable",
5569
- type: "function"
5570
- },
5571
- {
5572
- inputs: [
5573
- {
5574
- internalType: "address",
5575
- name: "newImplementation",
5576
- type: "address"
5577
- },
5578
- {
5579
- internalType: "bytes",
5580
- name: "data",
5581
- type: "bytes"
5582
- }
5583
- ],
5584
- name: "upgradeToAndCall",
5585
- outputs: [],
5586
- stateMutability: "payable",
5587
- type: "function"
5588
- },
5589
- {
5590
- inputs: [
5591
- {
5592
- internalType: "address",
5593
- name: "token",
5594
- type: "address"
5595
- },
5596
- {
5597
- internalType: "uint256",
5598
- name: "amount",
5599
- type: "uint256"
5600
- },
5601
- {
5602
- internalType: "address",
5603
- name: "provider",
5604
- type: "address"
5605
- },
5606
- {
5607
- internalType: "uint256",
5608
- name: "deadline",
5609
- type: "uint256"
5610
- },
5611
- {
5612
- internalType: "string",
5613
- name: "requestPath",
5614
- type: "string"
5615
- },
5616
- {
5617
- internalType: "bytes",
5618
- name: "signature",
5619
- type: "bytes"
5620
- }
5621
- ],
5622
- name: "validateConsumerSignature",
5623
- outputs: [
5624
- {
5625
- internalType: "bool",
5626
- name: "",
5627
- type: "bool"
5628
- }
5629
- ],
5630
- stateMutability: "view",
5631
- type: "function"
5632
- },
5633
- {
5634
- inputs: [
5635
- {
5636
- internalType: "bytes",
5637
- name: "consumerSignature",
5638
- type: "bytes"
5639
- },
5640
- {
5641
- internalType: "bytes",
5642
- name: "outputHash",
5643
- type: "bytes"
5644
- },
5645
- {
5646
- internalType: "uint256",
5647
- name: "timestamp",
5648
- type: "uint256"
5649
- },
5650
- {
5651
- internalType: "bytes32",
5652
- name: "serviceDescription",
5653
- type: "bytes32"
5654
- },
5655
- {
5656
- internalType: "uint256",
5657
- name: "facilitatorFeePercent",
5658
- type: "uint256"
5659
- },
5660
- {
5661
- internalType: "bytes",
5662
- name: "signature",
5663
- type: "bytes"
5664
- }
5665
- ],
5666
- name: "validateProviderAttestation",
5667
- outputs: [],
5668
- stateMutability: "view",
5669
- type: "function"
5670
- },
5671
- {
5672
- inputs: [
5673
- {
5674
- internalType: "address",
5675
- name: "token",
5676
- type: "address"
5677
- }
5678
- ],
5679
- name: "withdrawAllFromSettlement",
5680
- outputs: [],
5681
- stateMutability: "nonpayable",
5682
- type: "function"
5683
- },
5684
- {
5685
- inputs: [
5686
- {
5687
- internalType: "uint256",
5688
- name: "epoch",
5689
- type: "uint256"
5690
- },
5691
- {
5692
- internalType: "address",
5693
- name: "token",
5694
- type: "address"
5695
- }
5696
- ],
5697
- name: "withdrawEpochFromSettlement",
5698
- outputs: [],
5699
- stateMutability: "nonpayable",
5700
- type: "function"
5701
- },
5702
- {
5703
- inputs: [
5704
- {
5705
- internalType: "address",
5706
- name: "",
5707
- type: "address"
5708
- }
5709
- ],
5710
- name: "withdrawalRequests",
5711
- outputs: [
5712
- {
5713
- internalType: "address",
5714
- name: "token",
5715
- type: "address"
5716
- },
5717
- {
5718
- internalType: "uint256",
5719
- name: "amount",
5720
- type: "uint256"
5721
- },
5722
- {
5723
- internalType: "uint256",
5724
- name: "requestedAt",
5725
- type: "uint256"
5726
- },
5727
- {
5728
- internalType: "bool",
5729
- name: "executed",
5730
- type: "bool"
5731
- }
5732
- ],
5733
- stateMutability: "view",
5734
- type: "function"
5735
- },
5736
- {
5737
- stateMutability: "payable",
5738
- type: "receive"
5739
- }
5740
- ],
5741
- RoleManager: [
5742
- {
5743
- inputs: [],
5744
- name: "AccessControlBadConfirmation",
5745
- type: "error"
5746
- },
5747
- {
5748
- inputs: [
5749
- {
5750
- internalType: "address",
5751
- name: "account",
5752
- type: "address"
5753
- },
5754
- {
5755
- internalType: "bytes32",
5756
- name: "neededRole",
5757
- type: "bytes32"
5758
- }
5759
- ],
5760
- name: "AccessControlUnauthorizedAccount",
5761
- type: "error"
5762
- },
5763
- {
5764
- inputs: [
5765
- {
5766
- internalType: "address",
5767
- name: "target",
5768
- type: "address"
5769
- }
5770
- ],
5771
- name: "AddressEmptyCode",
5772
- type: "error"
5773
- },
5774
- {
5775
- inputs: [
5776
- {
5777
- internalType: "address",
5778
- name: "implementation",
5779
- type: "address"
5780
- }
5781
- ],
5782
- name: "ERC1967InvalidImplementation",
5783
- type: "error"
5784
- },
5785
- {
5786
- inputs: [],
5787
- name: "ERC1967NonPayable",
5788
- type: "error"
5789
- },
5790
- {
5791
- inputs: [],
5792
- name: "FailedCall",
5793
- type: "error"
5794
- },
5795
- {
5796
- inputs: [],
5797
- name: "InvalidInitialization",
5798
- type: "error"
5799
- },
5800
- {
5801
- inputs: [],
5802
- name: "NotInitializing",
5803
- type: "error"
5804
- },
5805
- {
5806
- inputs: [],
5807
- name: "UUPSUnauthorizedCallContext",
5808
- type: "error"
5809
- },
5810
- {
5811
- inputs: [
5812
- {
5813
- internalType: "bytes32",
5814
- name: "slot",
5815
- type: "bytes32"
5816
- }
5817
- ],
5818
- name: "UUPSUnsupportedProxiableUUID",
5819
- type: "error"
5820
- },
5821
- {
5822
- anonymous: false,
5823
- inputs: [
5824
- {
5825
- indexed: false,
5826
- internalType: "uint64",
5827
- name: "version",
5828
- type: "uint64"
5829
- }
5830
- ],
5831
- name: "Initialized",
5832
- type: "event"
5833
- },
5834
- {
5835
- anonymous: false,
5836
- inputs: [
5837
- {
5838
- indexed: true,
5839
- internalType: "bytes32",
5840
- name: "role",
5841
- type: "bytes32"
5842
- },
5843
- {
5844
- indexed: true,
5845
- internalType: "bytes32",
5846
- name: "previousAdminRole",
5847
- type: "bytes32"
5848
- },
5849
- {
5850
- indexed: true,
5851
- internalType: "bytes32",
5852
- name: "newAdminRole",
5853
- type: "bytes32"
5854
- }
5855
- ],
5856
- name: "RoleAdminChanged",
5857
- type: "event"
5858
- },
5859
- {
5860
- anonymous: false,
5861
- inputs: [
5862
- {
5863
- indexed: true,
5864
- internalType: "bytes32",
5865
- name: "role",
5866
- type: "bytes32"
5867
- },
5868
- {
5869
- indexed: true,
5870
- internalType: "address",
5871
- name: "account",
5872
- type: "address"
5873
- },
5874
- {
5875
- indexed: true,
5876
- internalType: "address",
5877
- name: "sender",
5878
- type: "address"
5879
- }
5880
- ],
5881
- name: "RoleGranted",
5882
- type: "event"
5883
- },
5884
- {
5885
- anonymous: false,
5886
- inputs: [
5887
- {
5888
- indexed: true,
5889
- internalType: "bytes32",
5890
- name: "role",
5891
- type: "bytes32"
5892
- },
5893
- {
5894
- indexed: true,
5895
- internalType: "address",
5896
- name: "account",
5897
- type: "address"
5898
- },
5899
- {
5900
- indexed: true,
5901
- internalType: "address",
5902
- name: "sender",
5903
- type: "address"
5904
- }
5905
- ],
5906
- name: "RoleRevoked",
5907
- type: "event"
5908
- },
5909
- {
5910
- anonymous: false,
5911
- inputs: [
5912
- {
5913
- indexed: true,
5914
- internalType: "address",
5915
- name: "implementation",
5916
- type: "address"
5917
- }
5918
- ],
5919
- name: "Upgraded",
5920
- type: "event"
5921
- },
5922
- {
5923
- inputs: [],
5924
- name: "DEFAULT_ADMIN_ROLE",
5925
- outputs: [
5926
- {
5927
- internalType: "bytes32",
5928
- name: "",
5929
- type: "bytes32"
5930
- }
5931
- ],
5932
- stateMutability: "view",
5933
- type: "function"
5934
- },
5935
- {
5936
- inputs: [],
5937
- name: "MAINTAINER_ROLE",
5938
- outputs: [
5939
- {
5940
- internalType: "bytes32",
5941
- name: "",
5942
- type: "bytes32"
5943
- }
5944
- ],
5945
- stateMutability: "view",
5946
- type: "function"
5947
- },
5948
- {
5949
- inputs: [],
5950
- name: "UPGRADE_INTERFACE_VERSION",
5951
- outputs: [
5952
- {
5953
- internalType: "string",
5954
- name: "",
5955
- type: "string"
5956
- }
5957
- ],
5958
- stateMutability: "view",
5959
- type: "function"
5960
- },
5961
- {
5962
- inputs: [
5963
- {
5964
- internalType: "address",
5965
- name: "maintainer",
5966
- type: "address"
5967
- }
5968
- ],
5969
- name: "addMaintainer",
5970
- outputs: [],
5971
- stateMutability: "nonpayable",
5972
- type: "function"
5973
- },
5974
- {
5975
- inputs: [],
5976
- name: "getDefaultAdmin",
5977
- outputs: [
5978
- {
5979
- internalType: "address",
5980
- name: "",
5981
- type: "address"
5982
- }
5983
- ],
5984
- stateMutability: "view",
5985
- type: "function"
5986
- },
5987
- {
5988
- inputs: [
5989
- {
5990
- internalType: "bytes32",
5991
- name: "role",
5992
- type: "bytes32"
5993
- }
5994
- ],
5995
- name: "getRoleAdmin",
5996
- outputs: [
5997
- {
5998
- internalType: "bytes32",
5999
- name: "",
6000
- type: "bytes32"
6001
- }
6002
- ],
6003
- stateMutability: "view",
6004
- type: "function"
6005
- },
6006
- {
6007
- inputs: [
6008
- {
6009
- internalType: "bytes32",
6010
- name: "role",
6011
- type: "bytes32"
6012
- },
6013
- {
6014
- internalType: "uint256",
6015
- name: "index",
6016
- type: "uint256"
6017
- }
6018
- ],
6019
- name: "getRoleMember",
6020
- outputs: [
6021
- {
6022
- internalType: "address",
6023
- name: "",
6024
- type: "address"
6025
- }
6026
- ],
6027
- stateMutability: "view",
6028
- type: "function"
6029
- },
6030
- {
6031
- inputs: [
6032
- {
6033
- internalType: "bytes32",
6034
- name: "role",
6035
- type: "bytes32"
6036
- }
6037
- ],
6038
- name: "getRoleMemberCount",
6039
- outputs: [
6040
- {
6041
- internalType: "uint256",
6042
- name: "",
6043
- type: "uint256"
6044
- }
6045
- ],
6046
- stateMutability: "view",
6047
- type: "function"
6048
- },
6049
- {
6050
- inputs: [
6051
- {
6052
- internalType: "bytes32",
6053
- name: "role",
6054
- type: "bytes32"
6055
- }
6056
- ],
6057
- name: "getRoleMembers",
6058
- outputs: [
6059
- {
6060
- internalType: "address[]",
6061
- name: "",
6062
- type: "address[]"
6063
- }
6064
- ],
6065
- stateMutability: "view",
6066
- type: "function"
6067
- },
6068
- {
6069
- inputs: [
6070
- {
6071
- internalType: "bytes32",
6072
- name: "role",
6073
- type: "bytes32"
6074
- },
6075
- {
6076
- internalType: "address",
6077
- name: "account",
6078
- type: "address"
6079
- }
6080
- ],
6081
- name: "grantRole",
6082
- outputs: [],
6083
- stateMutability: "nonpayable",
6084
- type: "function"
6085
- },
6086
- {
6087
- inputs: [
6088
- {
6089
- internalType: "bytes32",
6090
- name: "role",
6091
- type: "bytes32"
6092
- },
6093
- {
6094
- internalType: "address",
6095
- name: "account",
6096
- type: "address"
6097
- }
6098
- ],
6099
- name: "hasRole",
6100
- outputs: [
6101
- {
6102
- internalType: "bool",
6103
- name: "",
6104
- type: "bool"
6105
- }
6106
- ],
6107
- stateMutability: "view",
6108
- type: "function"
6109
- },
6110
- {
6111
- inputs: [
6112
- {
6113
- internalType: "address",
6114
- name: "congress",
6115
- type: "address"
6116
- },
6117
- {
6118
- internalType: "address[]",
6119
- name: "maintainers",
6120
- type: "address[]"
6121
- }
6122
- ],
6123
- name: "initialize",
6124
- outputs: [],
6125
- stateMutability: "nonpayable",
6126
- type: "function"
6127
- },
6128
- {
6129
- inputs: [],
6130
- name: "proxiableUUID",
6131
- outputs: [
6132
- {
6133
- internalType: "bytes32",
6134
- name: "",
6135
- type: "bytes32"
6136
- }
6137
- ],
6138
- stateMutability: "view",
6139
- type: "function"
6140
- },
6141
- {
6142
- inputs: [
6143
- {
6144
- internalType: "address",
6145
- name: "maintainer",
6146
- type: "address"
6147
- }
6148
- ],
6149
- name: "removeMaintainer",
6150
- outputs: [],
6151
- stateMutability: "nonpayable",
6152
- type: "function"
6153
- },
6154
- {
6155
- inputs: [
6156
- {
6157
- internalType: "bytes32",
6158
- name: "role",
6159
- type: "bytes32"
6160
- },
6161
- {
6162
- internalType: "address",
6163
- name: "callerConfirmation",
6164
- type: "address"
6165
- }
6166
- ],
6167
- name: "renounceRole",
6168
- outputs: [],
6169
- stateMutability: "nonpayable",
6170
- type: "function"
6171
- },
6172
- {
6173
- inputs: [
6174
- {
6175
- internalType: "bytes32",
6176
- name: "role",
6177
- type: "bytes32"
6178
- },
6179
- {
6180
- internalType: "address",
6181
- name: "account",
6182
- type: "address"
6183
- }
6184
- ],
6185
- name: "revokeRole",
6186
- outputs: [],
6187
- stateMutability: "nonpayable",
6188
- type: "function"
6189
- },
6190
- {
6191
- inputs: [
6192
- {
6193
- internalType: "bytes4",
6194
- name: "interfaceId",
6195
- type: "bytes4"
6196
- }
6197
- ],
6198
- name: "supportsInterface",
6199
- outputs: [
6200
- {
6201
- internalType: "bool",
6202
- name: "",
6203
- type: "bool"
6204
- }
6205
- ],
6206
- stateMutability: "view",
6207
- type: "function"
6208
- },
6209
- {
6210
- inputs: [
6211
- {
6212
- internalType: "address",
6213
- name: "newAdmin",
6214
- type: "address"
6215
- }
6216
- ],
6217
- name: "transferDefaultAdmin",
6218
- outputs: [],
6219
- stateMutability: "nonpayable",
6220
- type: "function"
6221
- },
6222
- {
6223
- inputs: [
6224
- {
6225
- internalType: "address",
6226
- name: "newImplementation",
6227
- type: "address"
6228
- },
6229
- {
6230
- internalType: "bytes",
6231
- name: "data",
6232
- type: "bytes"
6233
- }
6234
- ],
6235
- name: "upgradeToAndCall",
6236
- outputs: [],
6237
- stateMutability: "payable",
6238
- type: "function"
6239
- }
6240
- ],
6241
- IATPSettlementLayer: [
6242
- {
6243
- inputs: [],
6244
- stateMutability: "nonpayable",
6245
- type: "constructor"
6246
- },
6247
- {
6248
- inputs: [
6249
- {
6250
- internalType: "address",
6251
- name: "target",
6252
- type: "address"
6253
- }
6254
- ],
6255
- name: "AddressEmptyCode",
6256
- type: "error"
6257
- },
6258
- {
6259
- inputs: [],
6260
- name: "AmountMustBePositive",
6261
- type: "error"
6262
- },
6263
- {
6264
- inputs: [],
6265
- name: "ArrayLengthMismatch",
6266
- type: "error"
6267
- },
6268
- {
6269
- inputs: [],
6270
- name: "CannotReleaseEpochYet",
6271
- type: "error"
6272
- },
6273
- {
6274
- inputs: [],
6275
- name: "ConsumerProviderSame",
6276
- type: "error"
6277
- },
6278
- {
6279
- inputs: [],
6280
- name: "DisputeAlreadyFiled",
6281
- type: "error"
6282
- },
6283
- {
6284
- inputs: [],
6285
- name: "DisputeAlreadyResolved",
6286
- type: "error"
6287
- },
6288
- {
6289
- inputs: [],
6290
- name: "DisputeNotFound",
6291
- type: "error"
6292
- },
6293
- {
6294
- inputs: [],
6295
- name: "DisputePeriodExpired",
6296
- type: "error"
6297
- },
6298
- {
6299
- inputs: [
6300
- {
6301
- internalType: "address",
6302
- name: "implementation",
6303
- type: "address"
6304
- }
6305
- ],
6306
- name: "ERC1967InvalidImplementation",
6307
- type: "error"
6308
- },
6309
- {
6310
- inputs: [],
6311
- name: "ERC1967NonPayable",
6312
- type: "error"
6313
- },
6314
- {
6315
- inputs: [],
6316
- name: "EmptyArray",
6317
- type: "error"
6318
- },
6319
- {
6320
- inputs: [],
6321
- name: "EpochMustBeNextOne",
6322
- type: "error"
6323
- },
6324
- {
6325
- inputs: [],
6326
- name: "EpochMustBeOne",
6327
- type: "error"
6328
- },
6329
- {
6330
- inputs: [],
6331
- name: "FailedCall",
6332
- type: "error"
6333
- },
6334
- {
6335
- inputs: [],
6336
- name: "InsufficientBalance",
6337
- type: "error"
6338
- },
6339
- {
6340
- inputs: [],
6341
- name: "InvalidAddress",
6342
- type: "error"
6343
- },
6344
- {
6345
- inputs: [],
6346
- name: "InvalidConsumer",
6347
- type: "error"
6348
- },
6349
- {
6350
- inputs: [],
6351
- name: "InvalidConsumerSignature",
6352
- type: "error"
6353
- },
6354
- {
6355
- inputs: [],
6356
- name: "InvalidEpoch",
6357
- type: "error"
6358
- },
6359
- {
6360
- inputs: [],
6361
- name: "InvalidInitialization",
6362
- type: "error"
6363
- },
6364
- {
6365
- inputs: [],
6366
- name: "InvalidInput",
6367
- type: "error"
6368
- },
6369
- {
6370
- inputs: [],
6371
- name: "InvalidProvider",
6372
- type: "error"
6373
- },
6374
- {
6375
- inputs: [],
6376
- name: "InvalidProviderSignature",
6377
- type: "error"
6378
- },
6379
- {
6380
- inputs: [],
6381
- name: "InvalidTraiaToken",
6382
- type: "error"
6383
- },
6384
- {
6385
- inputs: [],
6386
- name: "InvalidUtilityAgentFactory",
6387
- type: "error"
6388
- },
6389
- {
6390
- inputs: [],
6391
- name: "NoFundsToRelease",
6392
- type: "error"
6393
- },
6394
- {
6395
- inputs: [],
6396
- name: "NoLockedFunds",
6397
- type: "error"
6398
- },
6399
- {
6400
- inputs: [],
6401
- name: "NotAuthorized",
6402
- type: "error"
6403
- },
6404
- {
6405
- inputs: [],
6406
- name: "NotInitializing",
6407
- type: "error"
6408
- },
6409
- {
6410
- inputs: [],
6411
- name: "ProviderNotRegistered",
6412
- type: "error"
6413
- },
6414
- {
6415
- inputs: [],
6416
- name: "ReentrancyGuardReentrantCall",
6417
- type: "error"
6418
- },
6419
- {
6420
- inputs: [],
6421
- name: "RequestAlreadyProcessed",
6422
- type: "error"
6423
- },
6424
- {
6425
- inputs: [],
6426
- name: "RequestExpired",
6427
- type: "error"
6428
- },
6429
- {
6430
- inputs: [],
6431
- name: "RequestNotSettled",
6432
- type: "error"
6433
- },
6434
- {
6435
- inputs: [
6436
- {
6437
- internalType: "address",
6438
- name: "token",
6439
- type: "address"
6440
- }
6441
- ],
6442
- name: "SafeERC20FailedOperation",
6443
- type: "error"
6444
- },
6445
- {
6446
- inputs: [],
6447
- name: "SignatureAlreadyUsed",
6448
- type: "error"
6449
- },
6450
- {
6451
- inputs: [],
6452
- name: "UUPSUnauthorizedCallContext",
6453
- type: "error"
6454
- },
6455
- {
6456
- inputs: [
6457
- {
6458
- internalType: "bytes32",
6459
- name: "slot",
6460
- type: "bytes32"
6461
- }
6462
- ],
6463
- name: "UUPSUnsupportedProxiableUUID",
6464
- type: "error"
6465
- },
6466
- {
6467
- anonymous: false,
6468
- inputs: [
6469
- {
6470
- indexed: true,
6471
- internalType: "address",
6472
- name: "consumer",
6473
- type: "address"
6474
- },
6475
- {
6476
- indexed: false,
6477
- internalType: "uint256",
6478
- name: "refillAmount",
6479
- type: "uint256"
6480
- },
6481
- {
6482
- indexed: false,
6483
- internalType: "uint256",
6484
- name: "previousBalance",
6485
- type: "uint256"
6486
- },
6487
- {
6488
- indexed: false,
6489
- internalType: "uint256",
6490
- name: "newBalance",
6491
- type: "uint256"
6492
- }
6493
- ],
6494
- name: "AutoRefillExecuted",
6495
- type: "event"
6496
- },
6497
- {
6498
- anonymous: false,
6499
- inputs: [
6500
- {
6501
- indexed: false,
6502
- internalType: "uint256",
6503
- name: "newMaxAutoRefillAmount",
6504
- type: "uint256"
6505
- },
6506
- {
6507
- indexed: false,
6508
- internalType: "uint256",
6509
- name: "newBalanceThresholdMultiplier",
6510
- type: "uint256"
6511
- },
6512
- {
6513
- indexed: false,
6514
- internalType: "uint256",
6515
- name: "newAutoRefillMultiplier",
6516
- type: "uint256"
6517
- }
6518
- ],
6519
- name: "AutoRefillParametersUpdated",
6520
- type: "event"
6521
- },
6522
- {
6523
- anonymous: false,
6524
- inputs: [
6525
- {
6526
- indexed: true,
6527
- internalType: "address",
6528
- name: "consumer",
6529
- type: "address"
6530
- },
6531
- {
6532
- indexed: false,
6533
- internalType: "uint256",
6534
- name: "amount",
6535
- type: "uint256"
6536
- }
6537
- ],
6538
- name: "ConsumerDeposit",
6539
- type: "event"
6540
- },
6541
- {
6542
- anonymous: false,
6543
- inputs: [
6544
- {
6545
- indexed: true,
6546
- internalType: "address",
6547
- name: "consumer",
6548
- type: "address"
6549
- },
6550
- {
6551
- indexed: false,
6552
- internalType: "uint256",
6553
- name: "amount",
6554
- type: "uint256"
6555
- }
6556
- ],
6557
- name: "ConsumerWithdraw",
6558
- type: "event"
6559
- },
6560
- {
6561
- anonymous: false,
6562
- inputs: [
6563
- {
6564
- indexed: true,
6565
- internalType: "bytes32",
6566
- name: "requestId",
6567
- type: "bytes32"
6568
- },
6569
- {
6570
- indexed: true,
6571
- internalType: "address",
6572
- name: "consumer",
6573
- type: "address"
6574
- },
6575
- {
6576
- indexed: true,
6577
- internalType: "address",
6578
- name: "provider",
6579
- type: "address"
6580
- },
6581
- {
6582
- indexed: false,
6583
- internalType: "string",
6584
- name: "reason",
6585
- type: "string"
6586
- }
6587
- ],
6588
- name: "DisputeFiled",
6589
- type: "event"
6590
- },
6591
- {
6592
- anonymous: false,
6593
- inputs: [
6594
- {
6595
- indexed: true,
6596
- internalType: "bytes32",
6597
- name: "requestId",
6598
- type: "bytes32"
6599
- },
6600
- {
6601
- indexed: false,
6602
- internalType: "bool",
6603
- name: "consumerWon",
6604
- type: "bool"
6605
- },
6606
- {
6607
- indexed: false,
6608
- internalType: "address",
6609
- name: "resolvedBy",
6610
- type: "address"
6611
- }
6612
- ],
6613
- name: "DisputeResolved",
6614
- type: "event"
6615
- },
6616
- {
6617
- anonymous: false,
6618
- inputs: [],
6619
- name: "EIP712DomainChanged",
6620
- type: "event"
6621
- },
6622
- {
6623
- anonymous: false,
6624
- inputs: [
6625
- {
6626
- indexed: false,
6627
- internalType: "uint256",
6628
- name: "epochDurationSeconds",
6629
- type: "uint256"
6630
- },
6631
- {
6632
- indexed: false,
6633
- internalType: "uint256",
6634
- name: "maxEpochsToRelease",
6635
- type: "uint256"
6636
- }
6637
- ],
6638
- name: "EpochParametersSet",
6639
- type: "event"
6640
- },
6641
- {
6642
- anonymous: false,
6643
- inputs: [
6644
- {
6645
- indexed: true,
6646
- internalType: "address",
6647
- name: "provider",
6648
- type: "address"
6649
- },
6650
- {
6651
- indexed: false,
6652
- internalType: "uint256",
6653
- name: "epoch",
6654
- type: "uint256"
6655
- },
6656
- {
6657
- indexed: false,
6658
- internalType: "uint256",
6659
- name: "amount",
6660
- type: "uint256"
6661
- }
6662
- ],
6663
- name: "EpochReleased",
6664
- type: "event"
6665
- },
6666
- {
6667
- anonymous: false,
6668
- inputs: [
6669
- {
6670
- indexed: false,
6671
- internalType: "uint256",
6672
- name: "newFeePercent",
6673
- type: "uint256"
6674
- },
6675
- {
6676
- indexed: true,
6677
- internalType: "address",
6678
- name: "newFeeCollector",
6679
- type: "address"
6680
- }
6681
- ],
6682
- name: "FeeConfigUpdated",
6683
- type: "event"
6684
- },
6685
- {
6686
- anonymous: false,
6687
- inputs: [
6688
- {
6689
- indexed: true,
6690
- internalType: "address",
6691
- name: "provider",
6692
- type: "address"
6693
- },
6694
- {
6695
- indexed: true,
6696
- internalType: "address",
6697
- name: "feeCollector",
6698
- type: "address"
6699
- },
6700
- {
6701
- indexed: false,
6702
- internalType: "uint256",
6703
- name: "feeAmount",
6704
- type: "uint256"
6705
- },
6706
- {
6707
- indexed: false,
6708
- internalType: "uint256",
6709
- name: "providerAmount",
6710
- type: "uint256"
6711
- }
6712
- ],
6713
- name: "FeesCollected",
6714
- type: "event"
6715
- },
6716
- {
6717
- anonymous: false,
6718
- inputs: [
6719
- {
6720
- indexed: false,
6721
- internalType: "uint64",
6722
- name: "version",
6723
- type: "uint64"
6724
- }
6725
- ],
6726
- name: "Initialized",
6727
- type: "event"
6728
- },
6729
- {
6730
- anonymous: false,
6731
- inputs: [
6732
- {
6733
- indexed: false,
6734
- internalType: "uint256",
6735
- name: "newMaxFacilitatorFee",
6736
- type: "uint256"
6737
- }
6738
- ],
6739
- name: "MaxFacilitatorFeeUpdated",
6740
- type: "event"
6741
- },
6742
- {
6743
- anonymous: false,
6744
- inputs: [
6745
- {
6746
- indexed: true,
6747
- internalType: "address",
6748
- name: "provider",
6749
- type: "address"
6750
- },
6751
- {
6752
- indexed: false,
6753
- internalType: "uint256",
6754
- name: "amount",
6755
- type: "uint256"
6756
- }
6757
- ],
6758
- name: "ProviderWithdrawn",
6759
- type: "event"
6760
- },
6761
- {
6762
- anonymous: false,
6763
- inputs: [
6764
- {
6765
- indexed: true,
6766
- internalType: "bytes32",
6767
- name: "requestId",
6768
- type: "bytes32"
6769
- },
6770
- {
6771
- indexed: true,
6772
- internalType: "address",
6773
- name: "consumer",
6774
- type: "address"
6775
- },
6776
- {
6777
- indexed: true,
6778
- internalType: "address",
6779
- name: "provider",
6780
- type: "address"
6781
- },
6782
- {
6783
- indexed: false,
6784
- internalType: "uint256",
6785
- name: "amount",
6786
- type: "uint256"
6787
- },
6788
- {
6789
- indexed: false,
6790
- internalType: "uint256",
6791
- name: "consumerRequestCount",
6792
- type: "uint256"
6793
- },
6794
- {
6795
- indexed: false,
6796
- internalType: "uint256",
6797
- name: "epoch",
6798
- type: "uint256"
6799
- },
6800
- {
6801
- indexed: false,
6802
- internalType: "address",
6803
- name: "tokenAddress",
6804
- type: "address"
6805
- }
6806
- ],
6807
- name: "RequestSettled",
6808
- type: "event"
6809
- },
6810
- {
6811
- anonymous: false,
6812
- inputs: [
6813
- {
6814
- indexed: true,
6815
- internalType: "uint256",
6816
- name: "index",
6817
- type: "uint256"
6818
- },
6819
- {
6820
- indexed: true,
6821
- internalType: "address",
6822
- name: "consumer",
6823
- type: "address"
6824
- },
6825
- {
6826
- indexed: true,
6827
- internalType: "address",
6828
- name: "provider",
6829
- type: "address"
6830
- },
6831
- {
6832
- indexed: false,
6833
- internalType: "bytes32",
6834
- name: "requestId",
6835
- type: "bytes32"
6836
- },
6837
- {
6838
- indexed: false,
6839
- internalType: "bytes",
6840
- name: "reason",
6841
- type: "bytes"
6842
- }
6843
- ],
6844
- name: "RequestSettlementFailed",
6845
- type: "event"
6846
- },
6847
- {
6848
- anonymous: false,
6849
- inputs: [
6850
- {
6851
- indexed: true,
6852
- internalType: "address",
6853
- name: "newRoleManager",
6854
- type: "address"
6855
- }
6856
- ],
6857
- name: "RoleManagerUpdated",
6858
- type: "event"
6859
- },
6860
- {
6861
- anonymous: false,
6862
- inputs: [
6863
- {
6864
- indexed: true,
6865
- internalType: "address",
6866
- name: "implementation",
6867
- type: "address"
6868
- }
6869
- ],
6870
- name: "Upgraded",
6871
- type: "event"
6872
- },
6873
- {
6874
- anonymous: false,
6875
- inputs: [
6876
- {
6877
- indexed: true,
6878
- internalType: "address",
6879
- name: "oldFactory",
6880
- type: "address"
6881
- },
6882
- {
6883
- indexed: true,
6884
- internalType: "address",
6885
- name: "newFactory",
6886
- type: "address"
6887
- }
6888
- ],
6889
- name: "UtilityAgentFactoryUpdated",
6890
- type: "event"
6891
- },
6892
- {
6893
- inputs: [],
6894
- name: "BASIS_POINTS",
6895
- outputs: [
6896
- {
6897
- internalType: "uint256",
6898
- name: "",
6899
- type: "uint256"
6900
- }
6901
- ],
6902
- stateMutability: "view",
6903
- type: "function"
6904
- },
6905
- {
6906
- inputs: [],
6907
- name: "BONDING_ROLE",
6908
- outputs: [
6909
- {
6910
- internalType: "bytes32",
6911
- name: "",
6912
- type: "bytes32"
6913
- }
6914
- ],
6915
- stateMutability: "view",
6916
- type: "function"
6917
- },
6918
- {
6919
- inputs: [],
6920
- name: "DEFAULT_ADMIN_ROLE",
6921
- outputs: [
6922
- {
6923
- internalType: "bytes32",
6924
- name: "",
6925
- type: "bytes32"
6926
- }
6927
- ],
6928
- stateMutability: "view",
6929
- type: "function"
6930
- },
6931
- {
6932
- inputs: [],
6933
- name: "EpochDuration",
6934
- outputs: [
6935
- {
6936
- internalType: "uint256",
6937
- name: "",
6938
- type: "uint256"
6939
- }
6940
- ],
6941
- stateMutability: "view",
6942
- type: "function"
6943
- },
6944
- {
6945
- inputs: [],
6946
- name: "EpochReleaseDelay",
6947
- outputs: [
6948
- {
6949
- internalType: "uint256",
6950
- name: "",
6951
- type: "uint256"
6952
- }
6953
- ],
6954
- stateMutability: "view",
6955
- type: "function"
6956
- },
6957
- {
6958
- inputs: [],
6959
- name: "MAX_FEE_PERCENT",
6960
- outputs: [
6961
- {
6962
- internalType: "uint256",
6963
- name: "",
6964
- type: "uint256"
6965
- }
6966
- ],
6967
- stateMutability: "view",
6968
- type: "function"
6969
- },
6970
- {
6971
- inputs: [],
6972
- name: "RequestExpirationTime",
6973
- outputs: [
6974
- {
6975
- internalType: "uint256",
6976
- name: "",
6977
- type: "uint256"
6978
- }
6979
- ],
6980
- stateMutability: "view",
6981
- type: "function"
6982
- },
6983
- {
6984
- inputs: [],
6985
- name: "SETTLEMENT_POINTS",
6986
- outputs: [
6987
- {
6988
- internalType: "uint256",
6989
- name: "",
6990
- type: "uint256"
6991
- }
6992
- ],
6993
- stateMutability: "view",
6994
- type: "function"
6995
- },
6996
- {
6997
- inputs: [],
6998
- name: "UPGRADE_INTERFACE_VERSION",
6999
- outputs: [
7000
- {
7001
- internalType: "string",
7002
- name: "",
7003
- type: "string"
7004
- }
7005
- ],
7006
- stateMutability: "view",
7007
- type: "function"
7008
- },
7009
- {
7010
- inputs: [
7011
- {
7012
- components: [
7013
- {
7014
- components: [
7015
- {
7016
- internalType: "contract IIATPWallet",
7017
- name: "consumer",
7018
- type: "address"
7019
- },
7020
- {
7021
- internalType: "contract IIATPWallet",
7022
- name: "provider",
7023
- type: "address"
7024
- },
7025
- {
7026
- internalType: "address",
7027
- name: "tokenAddress",
7028
- type: "address"
7029
- },
7030
- {
7031
- internalType: "uint256",
7032
- name: "amount",
7033
- type: "uint256"
7034
- },
7035
- {
7036
- internalType: "string",
7037
- name: "requestPath",
7038
- type: "string"
7039
- },
7040
- {
7041
- internalType: "uint256",
7042
- name: "consumerDeadline",
7043
- type: "uint256"
7044
- },
7045
- {
7046
- internalType: "uint256",
7047
- name: "timestamp",
7048
- type: "uint256"
7049
- },
7050
- {
7051
- internalType: "bytes32",
7052
- name: "serviceDescription",
7053
- type: "bytes32"
7054
- },
7055
- {
7056
- internalType: "bytes",
7057
- name: "outputHash",
7058
- type: "bytes"
7059
- },
7060
- {
7061
- internalType: "uint256",
7062
- name: "facilitatorFeePercent",
7063
- type: "uint256"
7064
- }
7065
- ],
7066
- internalType: "struct IIATPSettlementLayer.SettlementRequestData",
7067
- name: "requestData",
7068
- type: "tuple"
7069
- },
7070
- {
7071
- internalType: "bytes",
7072
- name: "consumerSignature",
7073
- type: "bytes"
7074
- },
7075
- {
7076
- internalType: "bytes",
7077
- name: "providerSignature",
7078
- type: "bytes"
7079
- }
7080
- ],
7081
- internalType: "struct IIATPSettlementLayer.SettlementRequest",
7082
- name: "req",
7083
- type: "tuple"
7084
- }
7085
- ],
7086
- name: "_settleRequest",
7087
- outputs: [],
7088
- stateMutability: "nonpayable",
7089
- type: "function"
7090
- },
7091
- {
7092
- inputs: [
7093
- {
7094
- internalType: "uint256",
7095
- name: "epoch",
7096
- type: "uint256"
7097
- }
7098
- ],
7099
- name: "canReleaseEpoch",
7100
- outputs: [
7101
- {
7102
- internalType: "bool",
7103
- name: "",
7104
- type: "bool"
7105
- }
7106
- ],
7107
- stateMutability: "view",
7108
- type: "function"
7109
- },
7110
- {
7111
- inputs: [
7112
- {
7113
- internalType: "address",
7114
- name: "token",
7115
- type: "address"
7116
- }
7117
- ],
7118
- name: "collectFees",
7119
- outputs: [],
7120
- stateMutability: "nonpayable",
7121
- type: "function"
7122
- },
7123
- {
7124
- inputs: [
7125
- {
7126
- internalType: "address",
7127
- name: "",
7128
- type: "address"
7129
- }
7130
- ],
7131
- name: "consumerReputations",
7132
- outputs: [
7133
- {
7134
- internalType: "uint256",
7135
- name: "completed",
7136
- type: "uint256"
7137
- },
7138
- {
7139
- internalType: "uint256",
7140
- name: "failed",
7141
- type: "uint256"
7142
- },
7143
- {
7144
- internalType: "uint256",
7145
- name: "faults",
7146
- type: "uint256"
7147
- },
7148
- {
7149
- internalType: "int256",
7150
- name: "score",
7151
- type: "int256"
7152
- },
7153
- {
7154
- internalType: "uint256",
7155
- name: "firstSettlementAt",
7156
- type: "uint256"
7157
- }
7158
- ],
7159
- stateMutability: "view",
7160
- type: "function"
7161
- },
7162
- {
7163
- inputs: [
7164
- {
7165
- internalType: "address",
7166
- name: "",
7167
- type: "address"
7168
- }
7169
- ],
7170
- name: "consumerRequestCounts",
7171
- outputs: [
7172
- {
7173
- internalType: "uint256",
7174
- name: "",
7175
- type: "uint256"
7176
- }
7177
- ],
7178
- stateMutability: "view",
7179
- type: "function"
7180
- },
7181
- {
7182
- inputs: [
7183
- {
7184
- internalType: "bytes32",
7185
- name: "requestId",
7186
- type: "bytes32"
7187
- },
7188
- {
7189
- internalType: "string",
7190
- name: "reason",
7191
- type: "string"
7192
- }
7193
- ],
7194
- name: "disputeRequest",
7195
- outputs: [],
7196
- stateMutability: "nonpayable",
7197
- type: "function"
7198
- },
7199
- {
7200
- inputs: [
7201
- {
7202
- internalType: "bytes32",
7203
- name: "",
7204
- type: "bytes32"
7205
- }
7206
- ],
7207
- name: "disputes",
7208
- outputs: [
7209
- {
7210
- internalType: "bytes32",
7211
- name: "requestId",
7212
- type: "bytes32"
7213
- },
7214
- {
7215
- internalType: "address",
7216
- name: "consumer",
7217
- type: "address"
7218
- },
7219
- {
7220
- internalType: "address",
7221
- name: "provider",
7222
- type: "address"
7223
- },
7224
- {
7225
- internalType: "uint256",
7226
- name: "amount",
7227
- type: "uint256"
7228
- },
7229
- {
7230
- internalType: "uint256",
7231
- name: "epoch",
7232
- type: "uint256"
7233
- },
7234
- {
7235
- internalType: "string",
7236
- name: "reason",
7237
- type: "string"
7238
- },
7239
- {
7240
- internalType: "uint256",
7241
- name: "filedAt",
7242
- type: "uint256"
7243
- },
7244
- {
7245
- internalType: "bool",
7246
- name: "resolved",
7247
- type: "bool"
7248
- }
7249
- ],
7250
- stateMutability: "view",
7251
- type: "function"
7252
- },
7253
- {
7254
- inputs: [],
7255
- name: "eip712Domain",
7256
- outputs: [
7257
- {
7258
- internalType: "bytes1",
7259
- name: "fields",
7260
- type: "bytes1"
7261
- },
7262
- {
7263
- internalType: "string",
7264
- name: "name",
7265
- type: "string"
7266
- },
7267
- {
7268
- internalType: "string",
7269
- name: "version",
7270
- type: "string"
7271
- },
7272
- {
7273
- internalType: "uint256",
7274
- name: "chainId",
7275
- type: "uint256"
7276
- },
7277
- {
7278
- internalType: "address",
7279
- name: "verifyingContract",
7280
- type: "address"
7281
- },
7282
- {
7283
- internalType: "bytes32",
7284
- name: "salt",
7285
- type: "bytes32"
7286
- },
7287
- {
7288
- internalType: "uint256[]",
7289
- name: "extensions",
7290
- type: "uint256[]"
7291
- }
7292
- ],
7293
- stateMutability: "view",
7294
- type: "function"
7295
- },
7296
- {
7297
- inputs: [
7298
- {
7299
- internalType: "address",
7300
- name: "",
7301
- type: "address"
7302
- }
7303
- ],
7304
- name: "feeBalances",
7305
- outputs: [
7306
- {
7307
- internalType: "uint256",
7308
- name: "",
7309
- type: "uint256"
7310
- }
7311
- ],
7312
- stateMutability: "view",
7313
- type: "function"
7314
- },
7315
- {
7316
- inputs: [],
7317
- name: "feeCollector",
7318
- outputs: [
7319
- {
7320
- internalType: "address",
7321
- name: "",
7322
- type: "address"
7323
- }
7324
- ],
7325
- stateMutability: "view",
7326
- type: "function"
7327
- },
7328
- {
7329
- inputs: [],
7330
- name: "getCurrentEpoch",
7331
- outputs: [
7332
- {
7333
- internalType: "uint256",
7334
- name: "",
7335
- type: "uint256"
7336
- }
7337
- ],
7338
- stateMutability: "view",
7339
- type: "function"
7340
- },
7341
- {
7342
- inputs: [
7343
- {
7344
- internalType: "address",
7345
- name: "provider",
7346
- type: "address"
7347
- },
7348
- {
7349
- internalType: "uint256",
7350
- name: "epoch",
7351
- type: "uint256"
7352
- },
7353
- {
7354
- internalType: "address",
7355
- name: "token",
7356
- type: "address"
7357
- }
7358
- ],
7359
- name: "getDisputeInProgressAmount",
7360
- outputs: [
7361
- {
7362
- internalType: "uint256",
7363
- name: "",
7364
- type: "uint256"
7365
- }
7366
- ],
7367
- stateMutability: "view",
7368
- type: "function"
7369
- },
7370
- {
7371
- inputs: [
7372
- {
7373
- internalType: "address",
7374
- name: "provider",
7375
- type: "address"
7376
- },
7377
- {
7378
- internalType: "uint256",
7379
- name: "epoch",
7380
- type: "uint256"
7381
- },
7382
- {
7383
- internalType: "address",
7384
- name: "token",
7385
- type: "address"
7386
- }
7387
- ],
7388
- name: "getEpochBalance",
7389
- outputs: [
7390
- {
7391
- components: [
7392
- {
7393
- internalType: "uint256",
7394
- name: "balance",
7395
- type: "uint256"
7396
- },
7397
- {
7398
- internalType: "uint256",
7399
- name: "disputeInProgressBalance",
7400
- type: "uint256"
7401
- },
7402
- {
7403
- internalType: "bool",
7404
- name: "isWithdrawn",
7405
- type: "bool"
7406
- }
7407
- ],
7408
- internalType: "struct IIATPSettlementLayer.EpochBalance",
7409
- name: "",
7410
- type: "tuple"
7411
- }
7412
- ],
7413
- stateMutability: "view",
7414
- type: "function"
7415
- },
7416
- {
7417
- inputs: [
7418
- {
7419
- internalType: "address",
7420
- name: "token",
7421
- type: "address"
7422
- }
7423
- ],
7424
- name: "getFeeBalance",
7425
- outputs: [
7426
- {
7427
- internalType: "uint256",
7428
- name: "",
7429
- type: "uint256"
7430
- }
7431
- ],
7432
- stateMutability: "view",
7433
- type: "function"
7434
- },
7435
- {
7436
- inputs: [
7437
- {
7438
- internalType: "address",
7439
- name: "provider",
7440
- type: "address"
7441
- },
7442
- {
7443
- internalType: "address",
7444
- name: "token",
7445
- type: "address"
7446
- }
7447
- ],
7448
- name: "getLockedBalanceForProvider",
7449
- outputs: [
7450
- {
7451
- internalType: "uint256",
7452
- name: "",
7453
- type: "uint256"
7454
- }
7455
- ],
7456
- stateMutability: "view",
7457
- type: "function"
7458
- },
7459
- {
7460
- inputs: [
7461
- {
7462
- internalType: "address",
7463
- name: "provider",
7464
- type: "address"
7465
- }
7466
- ],
7467
- name: "getProviderReputation",
7468
- outputs: [
7469
- {
7470
- components: [
7471
- {
7472
- internalType: "uint256",
7473
- name: "completed",
7474
- type: "uint256"
7475
- },
7476
- {
7477
- internalType: "uint256",
7478
- name: "failed",
7479
- type: "uint256"
7480
- },
7481
- {
7482
- internalType: "uint256",
7483
- name: "faults",
7484
- type: "uint256"
7485
- },
7486
- {
7487
- internalType: "int256",
7488
- name: "score",
7489
- type: "int256"
7490
- },
7491
- {
7492
- internalType: "uint256",
7493
- name: "firstSettlementAt",
7494
- type: "uint256"
7495
- }
7496
- ],
7497
- internalType: "struct IIATPSettlementLayer.Reputation",
7498
- name: "",
7499
- type: "tuple"
7500
- }
7501
- ],
7502
- stateMutability: "view",
7503
- type: "function"
7504
- },
7505
- {
7506
- inputs: [
7507
- {
7508
- internalType: "address",
7509
- name: "provider",
7510
- type: "address"
7511
- }
7512
- ],
7513
- name: "getProviderReputationScore",
7514
- outputs: [
7515
- {
7516
- internalType: "int256",
7517
- name: "",
7518
- type: "int256"
7519
- }
7520
- ],
7521
- stateMutability: "view",
7522
- type: "function"
7523
- },
7524
- {
7525
- inputs: [
7526
- {
7527
- internalType: "address",
7528
- name: "provider",
7529
- type: "address"
7530
- },
7531
- {
7532
- internalType: "address",
7533
- name: "token",
7534
- type: "address"
7535
- }
7536
- ],
7537
- name: "getUnlockedBalanceForProvider",
7538
- outputs: [
7539
- {
7540
- internalType: "uint256",
7541
- name: "",
7542
- type: "uint256"
7543
- }
7544
- ],
7545
- stateMutability: "view",
7546
- type: "function"
7547
- },
7548
- {
7549
- inputs: [
7550
- {
7551
- internalType: "address",
7552
- name: "_roleManager",
7553
- type: "address"
7554
- },
7555
- {
7556
- internalType: "address",
7557
- name: "_feeCollector",
7558
- type: "address"
7559
- }
7560
- ],
7561
- name: "initialize",
7562
- outputs: [],
7563
- stateMutability: "nonpayable",
7564
- type: "function"
7565
- },
7566
- {
7567
- inputs: [
7568
- {
7569
- internalType: "address",
7570
- name: "account",
7571
- type: "address"
7572
- }
7573
- ],
7574
- name: "isMaintainer",
7575
- outputs: [
7576
- {
7577
- internalType: "bool",
7578
- name: "",
7579
- type: "bool"
7580
- }
7581
- ],
7582
- stateMutability: "view",
7583
- type: "function"
7584
- },
7585
- {
7586
- inputs: [
7587
- {
7588
- internalType: "address",
7589
- name: "",
7590
- type: "address"
7591
- },
7592
- {
7593
- internalType: "address",
7594
- name: "",
7595
- type: "address"
7596
- }
7597
- ],
7598
- name: "lastWithdrawnEpoch",
7599
- outputs: [
7600
- {
7601
- internalType: "uint256",
7602
- name: "",
7603
- type: "uint256"
7604
- }
7605
- ],
7606
- stateMutability: "view",
7607
- type: "function"
7608
- },
7609
- {
7610
- inputs: [],
7611
- name: "maxFacilitatorFee",
7612
- outputs: [
7613
- {
7614
- internalType: "uint256",
7615
- name: "",
7616
- type: "uint256"
7617
- }
7618
- ],
7619
- stateMutability: "view",
7620
- type: "function"
7621
- },
7622
- {
7623
- inputs: [],
7624
- name: "protocolFee",
7625
- outputs: [
7626
- {
7627
- internalType: "uint256",
7628
- name: "",
7629
- type: "uint256"
7630
- }
7631
- ],
7632
- stateMutability: "view",
7633
- type: "function"
7634
- },
7635
- {
7636
- inputs: [
7637
- {
7638
- internalType: "address",
7639
- name: "",
7640
- type: "address"
7641
- },
7642
- {
7643
- internalType: "uint256",
7644
- name: "",
7645
- type: "uint256"
7646
- },
7647
- {
7648
- internalType: "address",
7649
- name: "",
7650
- type: "address"
7651
- }
7652
- ],
7653
- name: "providerEpochBalances",
7654
- outputs: [
7655
- {
7656
- internalType: "uint256",
7657
- name: "balance",
7658
- type: "uint256"
7659
- },
7660
- {
7661
- internalType: "uint256",
7662
- name: "disputeInProgressBalance",
7663
- type: "uint256"
7664
- },
7665
- {
7666
- internalType: "bool",
7667
- name: "isWithdrawn",
7668
- type: "bool"
7669
- }
7670
- ],
7671
- stateMutability: "view",
7672
- type: "function"
7673
- },
7674
- {
7675
- inputs: [
7676
- {
7677
- internalType: "address",
7678
- name: "",
7679
- type: "address"
7680
- }
7681
- ],
7682
- name: "providerReputations",
7683
- outputs: [
7684
- {
7685
- internalType: "uint256",
7686
- name: "completed",
7687
- type: "uint256"
7688
- },
7689
- {
7690
- internalType: "uint256",
7691
- name: "failed",
7692
- type: "uint256"
7693
- },
7694
- {
7695
- internalType: "uint256",
7696
- name: "faults",
7697
- type: "uint256"
7698
- },
7699
- {
7700
- internalType: "int256",
7701
- name: "score",
7702
- type: "int256"
7703
- },
7704
- {
7705
- internalType: "uint256",
7706
- name: "firstSettlementAt",
7707
- type: "uint256"
7708
- }
7709
- ],
7710
- stateMutability: "view",
7711
- type: "function"
7712
- },
7713
- {
7714
- inputs: [],
7715
- name: "proxiableUUID",
7716
- outputs: [
7717
- {
7718
- internalType: "bytes32",
7719
- name: "",
7720
- type: "bytes32"
7721
- }
7722
- ],
7723
- stateMutability: "view",
7724
- type: "function"
7725
- },
7726
- {
7727
- inputs: [
7728
- {
7729
- internalType: "bytes32",
7730
- name: "requestId",
7731
- type: "bytes32"
7732
- },
7733
- {
7734
- internalType: "bool",
7735
- name: "consumerWon",
7736
- type: "bool"
7737
- }
7738
- ],
7739
- name: "resolveDispute",
7740
- outputs: [],
7741
- stateMutability: "nonpayable",
7742
- type: "function"
7743
- },
7744
- {
7745
- inputs: [],
7746
- name: "roleManager",
7747
- outputs: [
7748
- {
7749
- internalType: "contract IRoleManager",
7750
- name: "",
7751
- type: "address"
7752
- }
7753
- ],
7754
- stateMutability: "view",
7755
- type: "function"
7756
- },
7757
- {
7758
- inputs: [
7759
- {
7760
- internalType: "uint256",
7761
- name: "_epochDuration",
7762
- type: "uint256"
7763
- },
7764
- {
7765
- internalType: "uint256",
7766
- name: "_epochReleaseDelay",
7767
- type: "uint256"
7768
- }
7769
- ],
7770
- name: "setEpochParameters",
7771
- outputs: [],
7772
- stateMutability: "nonpayable",
7773
- type: "function"
7774
- },
7775
- {
7776
- inputs: [
7777
- {
7778
- internalType: "uint256",
7779
- name: "_protocolFee",
7780
- type: "uint256"
7781
- },
7782
- {
7783
- internalType: "address",
7784
- name: "_feeCollector",
7785
- type: "address"
7786
- }
7787
- ],
7788
- name: "setFeeConfig",
7789
- outputs: [],
7790
- stateMutability: "nonpayable",
7791
- type: "function"
7792
- },
7793
- {
7794
- inputs: [
7795
- {
7796
- internalType: "uint256",
7797
- name: "_maxFacilitatorFee",
7798
- type: "uint256"
7799
- }
7800
- ],
7801
- name: "setMaxFacilitatorFee",
7802
- outputs: [],
7803
- stateMutability: "nonpayable",
7804
- type: "function"
7805
- },
7806
- {
7807
- inputs: [
7808
- {
7809
- internalType: "uint256",
7810
- name: "_requestExpirationTime",
7811
- type: "uint256"
7812
- }
7813
- ],
7814
- name: "setRequestExpirationTime",
7815
- outputs: [],
7816
- stateMutability: "nonpayable",
7817
- type: "function"
7818
- },
7819
- {
7820
- inputs: [
7821
- {
7822
- components: [
7823
- {
7824
- components: [
7825
- {
7826
- internalType: "contract IIATPWallet",
7827
- name: "consumer",
7828
- type: "address"
7829
- },
7830
- {
7831
- internalType: "contract IIATPWallet",
7832
- name: "provider",
7833
- type: "address"
7834
- },
7835
- {
7836
- internalType: "address",
7837
- name: "tokenAddress",
7838
- type: "address"
7839
- },
7840
- {
7841
- internalType: "uint256",
7842
- name: "amount",
7843
- type: "uint256"
7844
- },
7845
- {
7846
- internalType: "string",
7847
- name: "requestPath",
7848
- type: "string"
7849
- },
7850
- {
7851
- internalType: "uint256",
7852
- name: "consumerDeadline",
7853
- type: "uint256"
7854
- },
7855
- {
7856
- internalType: "uint256",
7857
- name: "timestamp",
7858
- type: "uint256"
7859
- },
7860
- {
7861
- internalType: "bytes32",
7862
- name: "serviceDescription",
7863
- type: "bytes32"
7864
- },
7865
- {
7866
- internalType: "bytes",
7867
- name: "outputHash",
7868
- type: "bytes"
7869
- },
7870
- {
7871
- internalType: "uint256",
7872
- name: "facilitatorFeePercent",
7873
- type: "uint256"
7874
- }
7875
- ],
7876
- internalType: "struct IIATPSettlementLayer.SettlementRequestData",
7877
- name: "requestData",
7878
- type: "tuple"
7879
- },
7880
- {
7881
- internalType: "bytes",
7882
- name: "consumerSignature",
7883
- type: "bytes"
7884
- },
7885
- {
7886
- internalType: "bytes",
7887
- name: "providerSignature",
7888
- type: "bytes"
7889
- }
7890
- ],
7891
- internalType: "struct IIATPSettlementLayer.SettlementRequest",
7892
- name: "req",
7893
- type: "tuple"
7894
- }
7895
- ],
7896
- name: "settleRequest",
7897
- outputs: [],
7898
- stateMutability: "nonpayable",
7899
- type: "function"
7900
- },
7901
- {
7902
- inputs: [
7903
- {
7904
- components: [
7905
- {
7906
- components: [
7907
- {
7908
- internalType: "contract IIATPWallet",
7909
- name: "consumer",
7910
- type: "address"
7911
- },
7912
- {
7913
- internalType: "contract IIATPWallet",
7914
- name: "provider",
7915
- type: "address"
7916
- },
7917
- {
7918
- internalType: "address",
7919
- name: "tokenAddress",
7920
- type: "address"
7921
- },
7922
- {
7923
- internalType: "uint256",
7924
- name: "amount",
7925
- type: "uint256"
7926
- },
7927
- {
7928
- internalType: "string",
7929
- name: "requestPath",
7930
- type: "string"
7931
- },
7932
- {
7933
- internalType: "uint256",
7934
- name: "consumerDeadline",
7935
- type: "uint256"
7936
- },
7937
- {
7938
- internalType: "uint256",
7939
- name: "timestamp",
7940
- type: "uint256"
7941
- },
7942
- {
7943
- internalType: "bytes32",
7944
- name: "serviceDescription",
7945
- type: "bytes32"
7946
- },
7947
- {
7948
- internalType: "bytes",
7949
- name: "outputHash",
7950
- type: "bytes"
7951
- },
7952
- {
7953
- internalType: "uint256",
7954
- name: "facilitatorFeePercent",
7955
- type: "uint256"
7956
- }
7957
- ],
7958
- internalType: "struct IIATPSettlementLayer.SettlementRequestData",
7959
- name: "requestData",
7960
- type: "tuple"
7961
- },
7962
- {
7963
- internalType: "bytes",
7964
- name: "consumerSignature",
7965
- type: "bytes"
7966
- },
7967
- {
7968
- internalType: "bytes",
7969
- name: "providerSignature",
7970
- type: "bytes"
7971
- }
7972
- ],
7973
- internalType: "struct IIATPSettlementLayer.SettlementRequest[]",
7974
- name: "serviceRequests",
7975
- type: "tuple[]"
7976
- }
7977
- ],
7978
- name: "settleRequests",
7979
- outputs: [
7980
- {
7981
- internalType: "uint256[]",
7982
- name: "failedIndices",
7983
- type: "uint256[]"
7984
- }
7985
- ],
7986
- stateMutability: "nonpayable",
7987
- type: "function"
7988
- },
7989
- {
7990
- inputs: [
7991
- {
7992
- internalType: "bytes32",
7993
- name: "",
7994
- type: "bytes32"
7995
- }
7996
- ],
7997
- name: "settlements",
7998
- outputs: [
7999
- {
8000
- components: [
8001
- {
8002
- components: [
8003
- {
8004
- internalType: "contract IIATPWallet",
8005
- name: "consumer",
8006
- type: "address"
8007
- },
8008
- {
8009
- internalType: "contract IIATPWallet",
8010
- name: "provider",
8011
- type: "address"
8012
- },
8013
- {
8014
- internalType: "address",
8015
- name: "tokenAddress",
8016
- type: "address"
8017
- },
8018
- {
8019
- internalType: "uint256",
8020
- name: "amount",
8021
- type: "uint256"
8022
- },
8023
- {
8024
- internalType: "string",
8025
- name: "requestPath",
8026
- type: "string"
8027
- },
8028
- {
8029
- internalType: "uint256",
8030
- name: "consumerDeadline",
8031
- type: "uint256"
8032
- },
8033
- {
8034
- internalType: "uint256",
8035
- name: "timestamp",
8036
- type: "uint256"
8037
- },
8038
- {
8039
- internalType: "bytes32",
8040
- name: "serviceDescription",
8041
- type: "bytes32"
8042
- },
8043
- {
8044
- internalType: "bytes",
8045
- name: "outputHash",
8046
- type: "bytes"
8047
- },
8048
- {
8049
- internalType: "uint256",
8050
- name: "facilitatorFeePercent",
8051
- type: "uint256"
8052
- }
8053
- ],
8054
- internalType: "struct IIATPSettlementLayer.SettlementRequestData",
8055
- name: "requestData",
8056
- type: "tuple"
8057
- },
8058
- {
8059
- internalType: "bytes",
8060
- name: "consumerSignature",
8061
- type: "bytes"
8062
- },
8063
- {
8064
- internalType: "bytes",
8065
- name: "providerSignature",
8066
- type: "bytes"
8067
- }
8068
- ],
8069
- internalType: "struct IIATPSettlementLayer.SettlementRequest",
8070
- name: "settlementRequest",
8071
- type: "tuple"
8072
- },
8073
- {
8074
- internalType: "uint256",
8075
- name: "epoch",
8076
- type: "uint256"
8077
- },
8078
- {
8079
- internalType: "enum IIATPSettlementLayer.RequestStatus",
8080
- name: "status",
8081
- type: "uint8"
8082
- }
8083
- ],
8084
- stateMutability: "view",
8085
- type: "function"
8086
- },
8087
- {
8088
- inputs: [
8089
- {
8090
- internalType: "address",
8091
- name: "newImplementation",
8092
- type: "address"
8093
- },
8094
- {
8095
- internalType: "bytes",
8096
- name: "data",
8097
- type: "bytes"
8098
- }
8099
- ],
8100
- name: "upgradeToAndCall",
8101
- outputs: [],
8102
- stateMutability: "payable",
8103
- type: "function"
8104
- },
8105
- {
8106
- inputs: [
8107
- {
8108
- internalType: "bytes32",
8109
- name: "",
8110
- type: "bytes32"
8111
- }
8112
- ],
8113
- name: "usedSignatures",
8114
- outputs: [
8115
- {
8116
- internalType: "bool",
8117
- name: "",
8118
- type: "bool"
8119
- }
8120
- ],
8121
- stateMutability: "view",
8122
- type: "function"
8123
- },
8124
- {
8125
- inputs: [
8126
- {
8127
- internalType: "address",
8128
- name: "token",
8129
- type: "address"
8130
- }
8131
- ],
8132
- name: "withdrawAllAvailableEpochs",
8133
- outputs: [],
8134
- stateMutability: "nonpayable",
8135
- type: "function"
8136
- },
8137
- {
8138
- inputs: [
8139
- {
8140
- internalType: "uint256",
8141
- name: "epoch",
8142
- type: "uint256"
8143
- },
8144
- {
8145
- internalType: "address",
8146
- name: "token",
8147
- type: "address"
8148
- }
8149
- ],
8150
- name: "withdrawEpochToken",
8151
- outputs: [],
8152
- stateMutability: "nonpayable",
8153
- type: "function"
8154
- }
8155
- ],
8156
- IATPWalletFactory: [
8157
- {
8158
- inputs: [],
8159
- stateMutability: "nonpayable",
8160
- type: "constructor"
8161
- },
8162
- {
8163
- inputs: [
8164
- {
8165
- internalType: "address",
8166
- name: "target",
8167
- type: "address"
8168
- }
8169
- ],
8170
- name: "AddressEmptyCode",
8171
- type: "error"
8172
- },
8173
- {
8174
- inputs: [
8175
- {
8176
- internalType: "address",
8177
- name: "implementation",
8178
- type: "address"
8179
- }
8180
- ],
8181
- name: "ERC1967InvalidImplementation",
8182
- type: "error"
8183
- },
8184
- {
8185
- inputs: [],
8186
- name: "ERC1967NonPayable",
8187
- type: "error"
8188
- },
8189
- {
8190
- inputs: [],
8191
- name: "FailedCall",
8192
- type: "error"
8193
- },
8194
- {
8195
- inputs: [],
8196
- name: "InvalidInitialization",
8197
- type: "error"
8198
- },
8199
- {
8200
- inputs: [],
8201
- name: "InvalidParameters",
8202
- type: "error"
8203
- },
8204
- {
8205
- inputs: [],
8206
- name: "NotInitializing",
8207
- type: "error"
8208
- },
8209
- {
8210
- inputs: [],
8211
- name: "UUPSUnauthorizedCallContext",
8212
- type: "error"
8213
- },
8214
- {
8215
- inputs: [
8216
- {
8217
- internalType: "bytes32",
8218
- name: "slot",
8219
- type: "bytes32"
8220
- }
8221
- ],
8222
- name: "UUPSUnsupportedProxiableUUID",
8223
- type: "error"
8224
- },
8225
- {
8226
- inputs: [],
8227
- name: "ZeroAddress",
8228
- type: "error"
8229
- },
8230
- {
8231
- anonymous: false,
8232
- inputs: [
8233
- {
8234
- indexed: false,
8235
- internalType: "uint64",
8236
- name: "version",
8237
- type: "uint64"
8238
- }
8239
- ],
8240
- name: "Initialized",
8241
- type: "event"
8242
- },
8243
- {
8244
- anonymous: false,
8245
- inputs: [
8246
- {
8247
- indexed: true,
8248
- internalType: "address",
8249
- name: "newRoleManager",
8250
- type: "address"
8251
- }
8252
- ],
8253
- name: "RoleManagerUpdated",
8254
- type: "event"
8255
- },
8256
- {
8257
- anonymous: false,
8258
- inputs: [
8259
- {
8260
- indexed: true,
8261
- internalType: "address",
8262
- name: "newSettlementLayer",
8263
- type: "address"
8264
- }
8265
- ],
8266
- name: "SettlementLayerUpdated",
8267
- type: "event"
8268
- },
8269
- {
8270
- anonymous: false,
8271
- inputs: [
8272
- {
8273
- indexed: true,
8274
- internalType: "address",
8275
- name: "implementation",
8276
- type: "address"
8277
- }
8278
- ],
8279
- name: "Upgraded",
8280
- type: "event"
8281
- },
8282
- {
8283
- anonymous: false,
8284
- inputs: [
8285
- {
8286
- indexed: true,
8287
- internalType: "address",
8288
- name: "wallet",
8289
- type: "address"
8290
- },
8291
- {
8292
- indexed: true,
8293
- internalType: "address",
8294
- name: "owner",
8295
- type: "address"
8296
- },
8297
- {
8298
- indexed: true,
8299
- internalType: "address",
8300
- name: "operatorAddress",
8301
- type: "address"
8302
- },
8303
- {
8304
- indexed: false,
8305
- internalType: "address",
8306
- name: "settlementLayer",
8307
- type: "address"
8308
- }
8309
- ],
8310
- name: "WalletCreated",
8311
- type: "event"
8312
- },
8313
- {
8314
- anonymous: false,
8315
- inputs: [
8316
- {
8317
- indexed: true,
8318
- internalType: "address",
8319
- name: "newImplementation",
8320
- type: "address"
8321
- }
8322
- ],
8323
- name: "WalletImplementationUpdated",
8324
- type: "event"
8325
- },
8326
- {
8327
- anonymous: false,
8328
- inputs: [
8329
- {
8330
- indexed: true,
8331
- internalType: "address",
8332
- name: "newRoleManager",
8333
- type: "address"
8334
- }
8335
- ],
8336
- name: "WalletRoleManagerUpdated",
8337
- type: "event"
8338
- },
8339
- {
8340
- inputs: [],
8341
- name: "BONDING_ROLE",
8342
- outputs: [
8343
- {
8344
- internalType: "bytes32",
8345
- name: "",
8346
- type: "bytes32"
8347
- }
8348
- ],
8349
- stateMutability: "view",
8350
- type: "function"
8351
- },
8352
- {
8353
- inputs: [],
8354
- name: "DEFAULT_ADMIN_ROLE",
8355
- outputs: [
8356
- {
8357
- internalType: "bytes32",
8358
- name: "",
8359
- type: "bytes32"
8360
- }
8361
- ],
8362
- stateMutability: "view",
8363
- type: "function"
8364
- },
8365
- {
8366
- inputs: [],
8367
- name: "UPGRADE_INTERFACE_VERSION",
8368
- outputs: [
8369
- {
8370
- internalType: "string",
8371
- name: "",
8372
- type: "string"
8373
- }
8374
- ],
8375
- stateMutability: "view",
8376
- type: "function"
8377
- },
8378
- {
8379
- inputs: [
8380
- {
8381
- internalType: "uint256",
8382
- name: "",
8383
- type: "uint256"
8384
- }
8385
- ],
8386
- name: "allWallets",
8387
- outputs: [
8388
- {
8389
- internalType: "address",
8390
- name: "",
8391
- type: "address"
8392
- }
8393
- ],
8394
- stateMutability: "view",
8395
- type: "function"
8396
- },
8397
- {
8398
- inputs: [
8399
- {
8400
- internalType: "address",
8401
- name: "_operatorAddress",
8402
- type: "address"
8403
- }
8404
- ],
8405
- name: "createWallet",
8406
- outputs: [
8407
- {
8408
- internalType: "address",
8409
- name: "wallet",
8410
- type: "address"
8411
- }
8412
- ],
8413
- stateMutability: "nonpayable",
8414
- type: "function"
8415
- },
8416
- {
8417
- inputs: [
8418
- {
8419
- internalType: "address",
8420
- name: "_owner",
8421
- type: "address"
8422
- },
8423
- {
8424
- internalType: "address",
8425
- name: "_operatorAddress",
8426
- type: "address"
8427
- }
8428
- ],
8429
- name: "createWalletFor",
8430
- outputs: [
8431
- {
8432
- internalType: "address",
8433
- name: "wallet",
8434
- type: "address"
8435
- }
8436
- ],
8437
- stateMutability: "nonpayable",
8438
- type: "function"
8439
- },
8440
- {
8441
- inputs: [
8442
- {
8443
- internalType: "address",
8444
- name: "_operator",
8445
- type: "address"
8446
- }
8447
- ],
8448
- name: "getOperatorWalletCount",
8449
- outputs: [
8450
- {
8451
- internalType: "uint256",
8452
- name: "",
8453
- type: "uint256"
8454
- }
8455
- ],
8456
- stateMutability: "view",
8457
- type: "function"
8458
- },
8459
- {
8460
- inputs: [
8461
- {
8462
- internalType: "address",
8463
- name: "_owner",
8464
- type: "address"
8465
- }
8466
- ],
8467
- name: "getOwnerWalletCount",
8468
- outputs: [
8469
- {
8470
- internalType: "uint256",
8471
- name: "",
8472
- type: "uint256"
8473
- }
8474
- ],
8475
- stateMutability: "view",
8476
- type: "function"
8477
- },
8478
- {
8479
- inputs: [],
8480
- name: "getTotalWallets",
8481
- outputs: [
8482
- {
8483
- internalType: "uint256",
8484
- name: "",
8485
- type: "uint256"
8486
- }
8487
- ],
8488
- stateMutability: "view",
8489
- type: "function"
8490
- },
8491
- {
8492
- inputs: [
8493
- {
8494
- internalType: "address",
8495
- name: "_owner",
8496
- type: "address"
8497
- }
8498
- ],
8499
- name: "getWallet",
8500
- outputs: [
8501
- {
8502
- internalType: "address",
8503
- name: "",
8504
- type: "address"
8505
- }
8506
- ],
8507
- stateMutability: "view",
8508
- type: "function"
8509
- },
8510
- {
8511
- inputs: [
8512
- {
8513
- internalType: "uint256",
8514
- name: "_offset",
8515
- type: "uint256"
8516
- },
8517
- {
8518
- internalType: "uint256",
8519
- name: "_limit",
8520
- type: "uint256"
8521
- }
8522
- ],
8523
- name: "getWallets",
8524
- outputs: [
8525
- {
8526
- internalType: "address[]",
8527
- name: "wallets",
8528
- type: "address[]"
8529
- },
8530
- {
8531
- internalType: "uint256",
8532
- name: "total",
8533
- type: "uint256"
8534
- }
8535
- ],
8536
- stateMutability: "view",
8537
- type: "function"
8538
- },
8539
- {
8540
- inputs: [
8541
- {
8542
- internalType: "address",
8543
- name: "_operator",
8544
- type: "address"
8545
- }
8546
- ],
8547
- name: "getWalletsByOperator",
8548
- outputs: [
8549
- {
8550
- internalType: "address[]",
8551
- name: "",
8552
- type: "address[]"
8553
- }
8554
- ],
8555
- stateMutability: "view",
8556
- type: "function"
8557
- },
8558
- {
8559
- inputs: [
8560
- {
8561
- internalType: "address",
8562
- name: "_owner",
8563
- type: "address"
8564
- }
8565
- ],
8566
- name: "getWalletsByOwner",
8567
- outputs: [
8568
- {
8569
- internalType: "address[]",
8570
- name: "",
8571
- type: "address[]"
8572
- }
8573
- ],
8574
- stateMutability: "view",
8575
- type: "function"
8576
- },
8577
- {
8578
- inputs: [
8579
- {
8580
- internalType: "address",
8581
- name: "_owner",
8582
- type: "address"
8583
- }
8584
- ],
8585
- name: "hasWallet",
8586
- outputs: [
8587
- {
8588
- internalType: "bool",
8589
- name: "",
8590
- type: "bool"
8591
- }
8592
- ],
8593
- stateMutability: "view",
8594
- type: "function"
8595
- },
8596
- {
8597
- inputs: [
8598
- {
8599
- internalType: "address",
8600
- name: "_roleManager",
8601
- type: "address"
8602
- },
8603
- {
8604
- internalType: "address",
8605
- name: "_walletRoleManager",
8606
- type: "address"
8607
- },
8608
- {
8609
- internalType: "address",
8610
- name: "_settlementLayer",
8611
- type: "address"
8612
- },
8613
- {
8614
- internalType: "address",
8615
- name: "_walletImplementation",
8616
- type: "address"
8617
- }
8618
- ],
8619
- name: "initialize",
8620
- outputs: [],
8621
- stateMutability: "nonpayable",
8622
- type: "function"
8623
- },
8624
- {
8625
- inputs: [
8626
- {
8627
- internalType: "address",
8628
- name: "account",
8629
- type: "address"
8630
- }
8631
- ],
8632
- name: "isMaintainer",
8633
- outputs: [
8634
- {
8635
- internalType: "bool",
8636
- name: "",
8637
- type: "bool"
8638
- }
8639
- ],
8640
- stateMutability: "view",
8641
- type: "function"
8642
- },
8643
- {
8644
- inputs: [
8645
- {
8646
- internalType: "address",
8647
- name: "",
8648
- type: "address"
8649
- }
8650
- ],
8651
- name: "ownerByWallet",
8652
- outputs: [
8653
- {
8654
- internalType: "address",
8655
- name: "",
8656
- type: "address"
8657
- }
8658
- ],
8659
- stateMutability: "view",
8660
- type: "function"
8661
- },
8662
- {
8663
- inputs: [],
8664
- name: "proxiableUUID",
8665
- outputs: [
8666
- {
8667
- internalType: "bytes32",
8668
- name: "",
8669
- type: "bytes32"
8670
- }
8671
- ],
8672
- stateMutability: "view",
8673
- type: "function"
8674
- },
8675
- {
8676
- inputs: [],
8677
- name: "roleManager",
8678
- outputs: [
8679
- {
8680
- internalType: "contract IRoleManager",
8681
- name: "",
8682
- type: "address"
8683
- }
8684
- ],
8685
- stateMutability: "view",
8686
- type: "function"
8687
- },
8688
- {
8689
- inputs: [
8690
- {
8691
- internalType: "address",
8692
- name: "_newSettlementLayer",
8693
- type: "address"
8694
- }
8695
- ],
8696
- name: "setSettlementLayer",
8697
- outputs: [],
8698
- stateMutability: "nonpayable",
8699
- type: "function"
8700
- },
8701
- {
8702
- inputs: [
8703
- {
8704
- internalType: "address",
8705
- name: "_newWalletImplementation",
8706
- type: "address"
8707
- }
8708
- ],
8709
- name: "setWalletImplementation",
8710
- outputs: [],
8711
- stateMutability: "nonpayable",
8712
- type: "function"
8713
- },
8714
- {
8715
- inputs: [
8716
- {
8717
- internalType: "address",
8718
- name: "_newWalletRoleManager",
8719
- type: "address"
8720
- }
8721
- ],
8722
- name: "setWalletRoleManager",
8723
- outputs: [],
8724
- stateMutability: "nonpayable",
8725
- type: "function"
8726
- },
8727
- {
8728
- inputs: [],
8729
- name: "settlementLayer",
8730
- outputs: [
8731
- {
8732
- internalType: "address",
8733
- name: "",
8734
- type: "address"
8735
- }
8736
- ],
8737
- stateMutability: "view",
8738
- type: "function"
8739
- },
8740
- {
8741
- inputs: [],
8742
- name: "totalWallets",
8743
- outputs: [
8744
- {
8745
- internalType: "uint256",
8746
- name: "",
8747
- type: "uint256"
8748
- }
8749
- ],
8750
- stateMutability: "view",
8751
- type: "function"
8752
- },
8753
- {
8754
- inputs: [
8755
- {
8756
- internalType: "address",
8757
- name: "newImplementation",
8758
- type: "address"
8759
- },
8760
- {
8761
- internalType: "bytes",
8762
- name: "data",
8763
- type: "bytes"
8764
- }
8765
- ],
8766
- name: "upgradeToAndCall",
8767
- outputs: [],
8768
- stateMutability: "payable",
8769
- type: "function"
8770
- },
8771
- {
8772
- inputs: [],
8773
- name: "walletImplementation",
8774
- outputs: [
8775
- {
8776
- internalType: "address",
8777
- name: "",
8778
- type: "address"
8779
- }
8780
- ],
8781
- stateMutability: "view",
8782
- type: "function"
8783
- },
8784
- {
8785
- inputs: [],
8786
- name: "walletRoleManager",
8787
- outputs: [
8788
- {
8789
- internalType: "address",
8790
- name: "",
8791
- type: "address"
8792
- }
8793
- ],
8794
- stateMutability: "view",
8795
- type: "function"
8796
- },
8797
- {
8798
- inputs: [
8799
- {
8800
- internalType: "address",
8801
- name: "",
8802
- type: "address"
8803
- },
8804
- {
8805
- internalType: "uint256",
8806
- name: "",
8807
- type: "uint256"
8808
- }
8809
- ],
8810
- name: "walletsByOperator",
8811
- outputs: [
8812
- {
8813
- internalType: "address",
8814
- name: "",
8815
- type: "address"
8816
- }
8817
- ],
8818
- stateMutability: "view",
8819
- type: "function"
8820
- },
8821
- {
8822
- inputs: [
8823
- {
8824
- internalType: "address",
8825
- name: "",
8826
- type: "address"
8827
- },
8828
- {
8829
- internalType: "uint256",
8830
- name: "",
8831
- type: "uint256"
8832
- }
8833
- ],
8834
- name: "walletsByOwner",
8835
- outputs: [
8836
- {
8837
- internalType: "address",
8838
- name: "",
8839
- type: "address"
8840
- }
8841
- ],
8842
- stateMutability: "view",
8843
- type: "function"
8844
- }
8845
- ]
8846
- }
8847
- };
8848
-
8849
4740
  // src/contracts/addresses/proxies.json
8850
4741
  var proxies_default = {
8851
- localhost: {
8852
- RoleManager: "0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512",
8853
- IATPSettlementLayer: "0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9",
8854
- IATPWalletFactory: "0xa513E6E4b8f2a923D98304ec87F64353C4D5C853"
8855
- },
8856
4742
  sepolia: {
8857
4743
  RoleManager: "0x71d388142EA9194e5b51Eee3FEfe3B87D494dd38",
8858
4744
  IATPSettlementLayer: "0xAa91081571404d7E2f2B8F12FB2Be092EBe6d2B8",
@@ -8862,13 +4748,6 @@ var proxies_default = {
8862
4748
 
8863
4749
  // src/contracts/addresses/implementations.json
8864
4750
  var implementations_default = {
8865
- localhost: {
8866
- IATPWalletImplementation: "0x5FC8d32690cc91D4c39d9d3abcBD16989F875707",
8867
- RoleManagerImplementation: "0x5FbDB2315678afecb367f032d93F642f64180aa3",
8868
- Congress: "0x94Fc9eddBd1779542b78eb92F0569762603876e2",
8869
- IATPSettlementLayerImplementation: "0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9",
8870
- IATPWalletFactoryImplementation: "0x0165878A594ca255338adfa4d48449f69242Eb8F"
8871
- },
8872
4751
  sepolia: {
8873
4752
  Congress: "0x94Fc9eddBd1779542b78eb92F0569762603876e2",
8874
4753
  TraiaCongressMembersRegistry: "0x3B685403b195f16D103b42FCf56F848A278d6049",
@@ -8888,8 +4767,7 @@ var ContractName = /* @__PURE__ */ ((ContractName2) => {
8888
4767
  return ContractName2;
8889
4768
  })(ContractName || {});
8890
4769
  var ABIS = {
8891
- sepolia: sepolia_default.sepolia || {},
8892
- localhost: localhost_default.localhost || {}
4770
+ sepolia: sepolia_default.sepolia || {}
8893
4771
  };
8894
4772
  var PROXY_ADDRESSES = proxies_default;
8895
4773
  var IMPL_ADDRESSES = implementations_default;
@@ -8924,16 +4802,14 @@ function isContractDeployed(contractName, network) {
8924
4802
  const abi = getContractAbi(contractName, network);
8925
4803
  return address !== null && abi !== null;
8926
4804
  }
8927
- init_utils();
8928
4805
  async function createIATPWallet(params) {
8929
- const { ownerAccount, network = "sepolia", rpcUrl, operatorPrivateKey } = params;
4806
+ const { ownerAccount, network = "sepolia", rpcUrl } = params;
8930
4807
  const factoryConfig = getContractConfig("IATPWalletFactory" /* IATP_WALLET_FACTORY */, network);
8931
4808
  if (!factoryConfig) {
8932
4809
  throw new Error(`IATPWalletFactory not found for network: ${network}`);
8933
4810
  }
8934
- const operatorKey = operatorPrivateKey || generateNonce();
8935
- const operatorAccount = accounts.privateKeyToAccount(operatorKey);
8936
- const chain = network === "sepolia" ? chains.sepolia : chains.localhost;
4811
+ const operatorAddress = ownerAccount.address;
4812
+ const chain = chains.sepolia;
8937
4813
  const transport = viem.http(rpcUrl);
8938
4814
  const publicClient = viem.createPublicClient({
8939
4815
  chain,
@@ -8953,7 +4829,7 @@ async function createIATPWallet(params) {
8953
4829
  address: factoryConfig.address,
8954
4830
  abi: factoryConfig.abi,
8955
4831
  functionName: "createWallet",
8956
- args: [operatorAccount.address]
4832
+ args: [operatorAddress]
8957
4833
  });
8958
4834
  const hash = await walletClient.writeContract(request);
8959
4835
  const receipt = await publicClient.waitForTransactionReceipt({
@@ -8987,8 +4863,6 @@ async function createIATPWallet(params) {
8987
4863
  return {
8988
4864
  walletAddress,
8989
4865
  ownerAddress: ownerAccount.address,
8990
- operatorAddress: operatorAccount.address,
8991
- operatorPrivateKey: operatorKey,
8992
4866
  transactionHash: hash,
8993
4867
  blockNumber: receipt.blockNumber,
8994
4868
  network,
@@ -9001,7 +4875,7 @@ async function getWalletsByOwner(params) {
9001
4875
  if (!factoryConfig) {
9002
4876
  throw new Error(`IATPWalletFactory not found for network: ${network}`);
9003
4877
  }
9004
- const chain = network === "sepolia" ? chains.sepolia : chains.localhost;
4878
+ const chain = chains.sepolia;
9005
4879
  const transport = viem.http(rpcUrl);
9006
4880
  const publicClient = viem.createPublicClient({
9007
4881
  chain,