@dcentralab/d402-client 0.3.13 → 0.3.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -3259,6 +3259,19 @@ var sepolia_default = {
3259
3259
  stateMutability: "view",
3260
3260
  type: "function"
3261
3261
  },
3262
+ {
3263
+ inputs: [],
3264
+ name: "MAX_BATCH_DISPUTE_SIZE",
3265
+ outputs: [
3266
+ {
3267
+ internalType: "uint256",
3268
+ name: "",
3269
+ type: "uint256"
3270
+ }
3271
+ ],
3272
+ stateMutability: "view",
3273
+ type: "function"
3274
+ },
3262
3275
  {
3263
3276
  inputs: [],
3264
3277
  name: "MAX_DISPUTE_REASON_LENGTH",
@@ -3324,93 +3337,6 @@ var sepolia_default = {
3324
3337
  stateMutability: "view",
3325
3338
  type: "function"
3326
3339
  },
3327
- {
3328
- inputs: [
3329
- {
3330
- components: [
3331
- {
3332
- components: [
3333
- {
3334
- internalType: "contract IIATPWallet",
3335
- name: "consumer",
3336
- type: "address"
3337
- },
3338
- {
3339
- internalType: "contract IIATPWallet",
3340
- name: "provider",
3341
- type: "address"
3342
- },
3343
- {
3344
- internalType: "address",
3345
- name: "tokenAddress",
3346
- type: "address"
3347
- },
3348
- {
3349
- internalType: "uint256",
3350
- name: "amount",
3351
- type: "uint256"
3352
- },
3353
- {
3354
- internalType: "string",
3355
- name: "requestPath",
3356
- type: "string"
3357
- },
3358
- {
3359
- internalType: "uint256",
3360
- name: "consumerDeadline",
3361
- type: "uint256"
3362
- },
3363
- {
3364
- internalType: "uint256",
3365
- name: "timestamp",
3366
- type: "uint256"
3367
- },
3368
- {
3369
- internalType: "bytes32",
3370
- name: "serviceDescription",
3371
- type: "bytes32"
3372
- },
3373
- {
3374
- internalType: "bytes",
3375
- name: "outputHash",
3376
- type: "bytes"
3377
- },
3378
- {
3379
- internalType: "uint256",
3380
- name: "facilitatorFeePercent",
3381
- type: "uint256"
3382
- }
3383
- ],
3384
- internalType: "struct IIATPSettlementLayer.SettlementRequestData",
3385
- name: "requestData",
3386
- type: "tuple"
3387
- },
3388
- {
3389
- internalType: "bytes",
3390
- name: "consumerSignature",
3391
- type: "bytes"
3392
- },
3393
- {
3394
- internalType: "bytes",
3395
- name: "providerSignature",
3396
- type: "bytes"
3397
- }
3398
- ],
3399
- internalType: "struct IIATPSettlementLayer.SettlementRequest",
3400
- name: "req",
3401
- type: "tuple"
3402
- },
3403
- {
3404
- internalType: "address",
3405
- name: "facilitator",
3406
- type: "address"
3407
- }
3408
- ],
3409
- name: "_settleRequest",
3410
- outputs: [],
3411
- stateMutability: "nonpayable",
3412
- type: "function"
3413
- },
3414
3340
  {
3415
3341
  inputs: [
3416
3342
  {
@@ -3463,20 +3389,10 @@ var sepolia_default = {
3463
3389
  name: "failed",
3464
3390
  type: "uint256"
3465
3391
  },
3466
- {
3467
- internalType: "uint256",
3468
- name: "faults",
3469
- type: "uint256"
3470
- },
3471
3392
  {
3472
3393
  internalType: "int256",
3473
3394
  name: "score",
3474
3395
  type: "int256"
3475
- },
3476
- {
3477
- internalType: "uint256",
3478
- name: "firstSettlementAt",
3479
- type: "uint256"
3480
3396
  }
3481
3397
  ],
3482
3398
  stateMutability: "view",
@@ -3519,6 +3435,24 @@ var sepolia_default = {
3519
3435
  stateMutability: "nonpayable",
3520
3436
  type: "function"
3521
3437
  },
3438
+ {
3439
+ inputs: [
3440
+ {
3441
+ internalType: "bytes32[]",
3442
+ name: "requestIds",
3443
+ type: "bytes32[]"
3444
+ },
3445
+ {
3446
+ internalType: "string[]",
3447
+ name: "reasons",
3448
+ type: "string[]"
3449
+ }
3450
+ ],
3451
+ name: "disputeRequests",
3452
+ outputs: [],
3453
+ stateMutability: "nonpayable",
3454
+ type: "function"
3455
+ },
3522
3456
  {
3523
3457
  inputs: [
3524
3458
  {
@@ -3672,6 +3606,72 @@ var sepolia_default = {
3672
3606
  stateMutability: "view",
3673
3607
  type: "function"
3674
3608
  },
3609
+ {
3610
+ inputs: [
3611
+ {
3612
+ internalType: "address",
3613
+ name: "consumer",
3614
+ type: "address"
3615
+ },
3616
+ {
3617
+ internalType: "uint256",
3618
+ name: "offset",
3619
+ type: "uint256"
3620
+ },
3621
+ {
3622
+ internalType: "uint256",
3623
+ name: "limit",
3624
+ type: "uint256"
3625
+ }
3626
+ ],
3627
+ name: "getConsumerSettlements",
3628
+ outputs: [
3629
+ {
3630
+ components: [
3631
+ {
3632
+ internalType: "address",
3633
+ name: "consumer",
3634
+ type: "address"
3635
+ },
3636
+ {
3637
+ internalType: "address",
3638
+ name: "provider",
3639
+ type: "address"
3640
+ },
3641
+ {
3642
+ internalType: "address",
3643
+ name: "tokenAddress",
3644
+ type: "address"
3645
+ },
3646
+ {
3647
+ internalType: "uint128",
3648
+ name: "providerAmount",
3649
+ type: "uint128"
3650
+ },
3651
+ {
3652
+ internalType: "uint64",
3653
+ name: "epoch",
3654
+ type: "uint64"
3655
+ },
3656
+ {
3657
+ internalType: "enum IIATPSettlementLayer.RequestStatus",
3658
+ name: "status",
3659
+ type: "uint8"
3660
+ }
3661
+ ],
3662
+ internalType: "struct IIATPSettlementLayer.SettlementRecord[]",
3663
+ name: "records",
3664
+ type: "tuple[]"
3665
+ },
3666
+ {
3667
+ internalType: "uint256",
3668
+ name: "total",
3669
+ type: "uint256"
3670
+ }
3671
+ ],
3672
+ stateMutability: "view",
3673
+ type: "function"
3674
+ },
3675
3675
  {
3676
3676
  inputs: [],
3677
3677
  name: "getCurrentEpoch",
@@ -3685,6 +3685,19 @@ var sepolia_default = {
3685
3685
  stateMutability: "view",
3686
3686
  type: "function"
3687
3687
  },
3688
+ {
3689
+ inputs: [],
3690
+ name: "getDeploymentTimestamp",
3691
+ outputs: [
3692
+ {
3693
+ internalType: "uint256",
3694
+ name: "",
3695
+ type: "uint256"
3696
+ }
3697
+ ],
3698
+ stateMutability: "view",
3699
+ type: "function"
3700
+ },
3688
3701
  {
3689
3702
  inputs: [
3690
3703
  {
@@ -3835,39 +3848,12 @@ var sepolia_default = {
3835
3848
  type: "address"
3836
3849
  }
3837
3850
  ],
3838
- name: "getProviderReputation",
3851
+ name: "getProviderReputationScore",
3839
3852
  outputs: [
3840
3853
  {
3841
- components: [
3842
- {
3843
- internalType: "uint256",
3844
- name: "completed",
3845
- type: "uint256"
3846
- },
3847
- {
3848
- internalType: "uint256",
3849
- name: "failed",
3850
- type: "uint256"
3851
- },
3852
- {
3853
- internalType: "uint256",
3854
- name: "faults",
3855
- type: "uint256"
3856
- },
3857
- {
3858
- internalType: "int256",
3859
- name: "score",
3860
- type: "int256"
3861
- },
3862
- {
3863
- internalType: "uint256",
3864
- name: "firstSettlementAt",
3865
- type: "uint256"
3866
- }
3867
- ],
3868
- internalType: "struct IIATPSettlementLayer.Reputation",
3854
+ internalType: "int256",
3869
3855
  name: "",
3870
- type: "tuple"
3856
+ type: "int256"
3871
3857
  }
3872
3858
  ],
3873
3859
  stateMutability: "view",
@@ -3877,19 +3863,24 @@ var sepolia_default = {
3877
3863
  inputs: [
3878
3864
  {
3879
3865
  internalType: "address",
3880
- name: "provider",
3866
+ name: "consumer",
3881
3867
  type: "address"
3868
+ },
3869
+ {
3870
+ internalType: "uint256",
3871
+ name: "count",
3872
+ type: "uint256"
3882
3873
  }
3883
3874
  ],
3884
- name: "getProviderReputationScore",
3875
+ name: "getRequestIdFromConsumer",
3885
3876
  outputs: [
3886
3877
  {
3887
- internalType: "int256",
3878
+ internalType: "bytes32",
3888
3879
  name: "",
3889
- type: "int256"
3880
+ type: "bytes32"
3890
3881
  }
3891
3882
  ],
3892
- stateMutability: "view",
3883
+ stateMutability: "pure",
3893
3884
  type: "function"
3894
3885
  },
3895
3886
  {
@@ -4101,19 +4092,57 @@ var sepolia_default = {
4101
4092
  name: "failed",
4102
4093
  type: "uint256"
4103
4094
  },
4104
- {
4105
- internalType: "uint256",
4106
- name: "faults",
4107
- type: "uint256"
4108
- },
4109
4095
  {
4110
4096
  internalType: "int256",
4111
4097
  name: "score",
4112
4098
  type: "int256"
4099
+ }
4100
+ ],
4101
+ stateMutability: "view",
4102
+ type: "function"
4103
+ },
4104
+ {
4105
+ inputs: [
4106
+ {
4107
+ internalType: "address",
4108
+ name: "",
4109
+ type: "address"
4113
4110
  },
4111
+ {
4112
+ internalType: "address",
4113
+ name: "",
4114
+ type: "address"
4115
+ }
4116
+ ],
4117
+ name: "providerTotalBalance",
4118
+ outputs: [
4114
4119
  {
4115
4120
  internalType: "uint256",
4116
- name: "firstSettlementAt",
4121
+ name: "",
4122
+ type: "uint256"
4123
+ }
4124
+ ],
4125
+ stateMutability: "view",
4126
+ type: "function"
4127
+ },
4128
+ {
4129
+ inputs: [
4130
+ {
4131
+ internalType: "address",
4132
+ name: "",
4133
+ type: "address"
4134
+ },
4135
+ {
4136
+ internalType: "address",
4137
+ name: "",
4138
+ type: "address"
4139
+ }
4140
+ ],
4141
+ name: "providerTotalDisputeInProgress",
4142
+ outputs: [
4143
+ {
4144
+ internalType: "uint256",
4145
+ name: "",
4117
4146
  type: "uint256"
4118
4147
  }
4119
4148
  ],
@@ -4164,6 +4193,24 @@ var sepolia_default = {
4164
4193
  stateMutability: "nonpayable",
4165
4194
  type: "function"
4166
4195
  },
4196
+ {
4197
+ inputs: [
4198
+ {
4199
+ internalType: "bytes32[]",
4200
+ name: "requestIds",
4201
+ type: "bytes32[]"
4202
+ },
4203
+ {
4204
+ internalType: "bool[]",
4205
+ name: "consumerWonArray",
4206
+ type: "bool[]"
4207
+ }
4208
+ ],
4209
+ name: "resolveDisputes",
4210
+ outputs: [],
4211
+ stateMutability: "nonpayable",
4212
+ type: "function"
4213
+ },
4167
4214
  {
4168
4215
  inputs: [],
4169
4216
  name: "roleManager",
@@ -4278,11 +4325,6 @@ var sepolia_default = {
4278
4325
  name: "amount",
4279
4326
  type: "uint256"
4280
4327
  },
4281
- {
4282
- internalType: "string",
4283
- name: "requestPath",
4284
- type: "string"
4285
- },
4286
4328
  {
4287
4329
  internalType: "uint256",
4288
4330
  name: "consumerDeadline",
@@ -4299,9 +4341,9 @@ var sepolia_default = {
4299
4341
  type: "bytes32"
4300
4342
  },
4301
4343
  {
4302
- internalType: "bytes",
4344
+ internalType: "bytes32",
4303
4345
  name: "outputHash",
4304
- type: "bytes"
4346
+ type: "bytes32"
4305
4347
  },
4306
4348
  {
4307
4349
  internalType: "uint256",
@@ -4360,11 +4402,6 @@ var sepolia_default = {
4360
4402
  name: "amount",
4361
4403
  type: "uint256"
4362
4404
  },
4363
- {
4364
- internalType: "string",
4365
- name: "requestPath",
4366
- type: "string"
4367
- },
4368
4405
  {
4369
4406
  internalType: "uint256",
4370
4407
  name: "consumerDeadline",
@@ -4381,9 +4418,9 @@ var sepolia_default = {
4381
4418
  type: "bytes32"
4382
4419
  },
4383
4420
  {
4384
- internalType: "bytes",
4421
+ internalType: "bytes32",
4385
4422
  name: "outputHash",
4386
- type: "bytes"
4423
+ type: "bytes32"
4387
4424
  },
4388
4425
  {
4389
4426
  internalType: "uint256",
@@ -4424,14 +4461,6 @@ var sepolia_default = {
4424
4461
  },
4425
4462
  {
4426
4463
  inputs: [
4427
- {
4428
- internalType: "bytes32",
4429
- name: "",
4430
- type: "bytes32"
4431
- }
4432
- ],
4433
- name: "settlements",
4434
- outputs: [
4435
4464
  {
4436
4465
  components: [
4437
4466
  {
@@ -4456,11 +4485,6 @@ var sepolia_default = {
4456
4485
  name: "amount",
4457
4486
  type: "uint256"
4458
4487
  },
4459
- {
4460
- internalType: "string",
4461
- name: "requestPath",
4462
- type: "string"
4463
- },
4464
4488
  {
4465
4489
  internalType: "uint256",
4466
4490
  name: "consumerDeadline",
@@ -4477,9 +4501,9 @@ var sepolia_default = {
4477
4501
  type: "bytes32"
4478
4502
  },
4479
4503
  {
4480
- internalType: "bytes",
4504
+ internalType: "bytes32",
4481
4505
  name: "outputHash",
4482
- type: "bytes"
4506
+ type: "bytes32"
4483
4507
  },
4484
4508
  {
4485
4509
  internalType: "uint256",
@@ -4502,14 +4526,50 @@ var sepolia_default = {
4502
4526
  type: "bytes"
4503
4527
  }
4504
4528
  ],
4505
- internalType: "struct IIATPSettlementLayer.SettlementRequest",
4506
- name: "settlementRequest",
4507
- type: "tuple"
4529
+ internalType: "struct IIATPSettlementLayer.SettlementRequest[]",
4530
+ name: "serviceRequests",
4531
+ type: "tuple[]"
4532
+ }
4533
+ ],
4534
+ name: "settleRequestsStrict",
4535
+ outputs: [],
4536
+ stateMutability: "nonpayable",
4537
+ type: "function"
4538
+ },
4539
+ {
4540
+ inputs: [
4541
+ {
4542
+ internalType: "bytes32",
4543
+ name: "",
4544
+ type: "bytes32"
4545
+ }
4546
+ ],
4547
+ name: "settlements",
4548
+ outputs: [
4549
+ {
4550
+ internalType: "address",
4551
+ name: "consumer",
4552
+ type: "address"
4508
4553
  },
4509
4554
  {
4510
- internalType: "uint256",
4555
+ internalType: "address",
4556
+ name: "provider",
4557
+ type: "address"
4558
+ },
4559
+ {
4560
+ internalType: "address",
4561
+ name: "tokenAddress",
4562
+ type: "address"
4563
+ },
4564
+ {
4565
+ internalType: "uint128",
4566
+ name: "providerAmount",
4567
+ type: "uint128"
4568
+ },
4569
+ {
4570
+ internalType: "uint64",
4511
4571
  name: "epoch",
4512
- type: "uint256"
4572
+ type: "uint64"
4513
4573
  },
4514
4574
  {
4515
4575
  internalType: "enum IIATPSettlementLayer.RequestStatus",
@@ -4633,24 +4693,6 @@ var sepolia_default = {
4633
4693
  stateMutability: "nonpayable",
4634
4694
  type: "function"
4635
4695
  },
4636
- {
4637
- inputs: [
4638
- {
4639
- internalType: "uint256",
4640
- name: "epoch",
4641
- type: "uint256"
4642
- },
4643
- {
4644
- internalType: "address",
4645
- name: "token",
4646
- type: "address"
4647
- }
4648
- ],
4649
- name: "withdrawEpochToken",
4650
- outputs: [],
4651
- stateMutability: "nonpayable",
4652
- type: "function"
4653
- },
4654
4696
  {
4655
4697
  inputs: [
4656
4698
  {
@@ -5361,6 +5403,19 @@ var sepolia_default = {
5361
5403
  stateMutability: "view",
5362
5404
  type: "function"
5363
5405
  },
5406
+ {
5407
+ inputs: [
5408
+ {
5409
+ internalType: "address",
5410
+ name: "_wallet",
5411
+ type: "address"
5412
+ }
5413
+ ],
5414
+ name: "registerWalletWithSettlementLayer",
5415
+ outputs: [],
5416
+ stateMutability: "nonpayable",
5417
+ type: "function"
5418
+ },
5364
5419
  {
5365
5420
  inputs: [],
5366
5421
  name: "roleManager",
@@ -10364,8 +10419,8 @@ var arbitrum_default = {
10364
10419
  var proxies_default = {
10365
10420
  sepolia: {
10366
10421
  RoleManager: "0x71d388142EA9194e5b51Eee3FEfe3B87D494dd38",
10367
- IATPSettlementLayer: "0x0205ea98258eda5f6C94116a44f9811d8089f110",
10368
- IATPWalletFactory: "0x54083Cc03c5D9D408D71D36170Ef01310E0C78fE"
10422
+ IATPSettlementLayer: "0xB82816BA396fB06aF7076202cb5d7D9e4dACBb15",
10423
+ IATPWalletFactory: "0x2A95caE178142EC53864b42891828455f45a9E01"
10369
10424
  },
10370
10425
  arbitrum: {
10371
10426
  RoleManager: "0xB256b27681FaC8b4EaB79d392083B2D992972eff",