@agentpactai/mcp-server 0.2.1 → 0.2.3
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 +52 -2620
- package/dist/index.js.map +1 -1
- package/package.json +5 -4
package/dist/index.js
CHANGED
|
@@ -18299,2586 +18299,8 @@ var baseSepolia = /* @__PURE__ */ defineChain({
|
|
|
18299
18299
|
});
|
|
18300
18300
|
|
|
18301
18301
|
// ../runtime/dist/index.js
|
|
18302
|
-
var ESCROW_ABI = [
|
|
18303
|
-
{
|
|
18304
|
-
"inputs": [],
|
|
18305
|
-
"stateMutability": "nonpayable",
|
|
18306
|
-
"type": "constructor"
|
|
18307
|
-
},
|
|
18308
|
-
{
|
|
18309
|
-
"inputs": [
|
|
18310
|
-
{
|
|
18311
|
-
"internalType": "address",
|
|
18312
|
-
"name": "target",
|
|
18313
|
-
"type": "address"
|
|
18314
|
-
}
|
|
18315
|
-
],
|
|
18316
|
-
"name": "AddressEmptyCode",
|
|
18317
|
-
"type": "error"
|
|
18318
|
-
},
|
|
18319
|
-
{
|
|
18320
|
-
"inputs": [],
|
|
18321
|
-
"name": "DeadlineNotReached",
|
|
18322
|
-
"type": "error"
|
|
18323
|
-
},
|
|
18324
|
-
{
|
|
18325
|
-
"inputs": [],
|
|
18326
|
-
"name": "ECDSAInvalidSignature",
|
|
18327
|
-
"type": "error"
|
|
18328
|
-
},
|
|
18329
|
-
{
|
|
18330
|
-
"inputs": [
|
|
18331
|
-
{
|
|
18332
|
-
"internalType": "uint256",
|
|
18333
|
-
"name": "length",
|
|
18334
|
-
"type": "uint256"
|
|
18335
|
-
}
|
|
18336
|
-
],
|
|
18337
|
-
"name": "ECDSAInvalidSignatureLength",
|
|
18338
|
-
"type": "error"
|
|
18339
|
-
},
|
|
18340
|
-
{
|
|
18341
|
-
"inputs": [
|
|
18342
|
-
{
|
|
18343
|
-
"internalType": "bytes32",
|
|
18344
|
-
"name": "s",
|
|
18345
|
-
"type": "bytes32"
|
|
18346
|
-
}
|
|
18347
|
-
],
|
|
18348
|
-
"name": "ECDSAInvalidSignatureS",
|
|
18349
|
-
"type": "error"
|
|
18350
|
-
},
|
|
18351
|
-
{
|
|
18352
|
-
"inputs": [
|
|
18353
|
-
{
|
|
18354
|
-
"internalType": "address",
|
|
18355
|
-
"name": "implementation",
|
|
18356
|
-
"type": "address"
|
|
18357
|
-
}
|
|
18358
|
-
],
|
|
18359
|
-
"name": "ERC1967InvalidImplementation",
|
|
18360
|
-
"type": "error"
|
|
18361
|
-
},
|
|
18362
|
-
{
|
|
18363
|
-
"inputs": [],
|
|
18364
|
-
"name": "ERC1967NonPayable",
|
|
18365
|
-
"type": "error"
|
|
18366
|
-
},
|
|
18367
|
-
{
|
|
18368
|
-
"inputs": [],
|
|
18369
|
-
"name": "FailedCall",
|
|
18370
|
-
"type": "error"
|
|
18371
|
-
},
|
|
18372
|
-
{
|
|
18373
|
-
"inputs": [],
|
|
18374
|
-
"name": "InsufficientDeposit",
|
|
18375
|
-
"type": "error"
|
|
18376
|
-
},
|
|
18377
|
-
{
|
|
18378
|
-
"inputs": [],
|
|
18379
|
-
"name": "InvalidAcceptanceWindow",
|
|
18380
|
-
"type": "error"
|
|
18381
|
-
},
|
|
18382
|
-
{
|
|
18383
|
-
"inputs": [],
|
|
18384
|
-
"name": "InvalidCriteriaCount",
|
|
18385
|
-
"type": "error"
|
|
18386
|
-
},
|
|
18387
|
-
{
|
|
18388
|
-
"inputs": [],
|
|
18389
|
-
"name": "InvalidDuration",
|
|
18390
|
-
"type": "error"
|
|
18391
|
-
},
|
|
18392
|
-
{
|
|
18393
|
-
"inputs": [],
|
|
18394
|
-
"name": "InvalidFundWeight",
|
|
18395
|
-
"type": "error"
|
|
18396
|
-
},
|
|
18397
|
-
{
|
|
18398
|
-
"inputs": [],
|
|
18399
|
-
"name": "InvalidInitialization",
|
|
18400
|
-
"type": "error"
|
|
18401
|
-
},
|
|
18402
|
-
{
|
|
18403
|
-
"inputs": [],
|
|
18404
|
-
"name": "InvalidMaxRevisions",
|
|
18405
|
-
"type": "error"
|
|
18406
|
-
},
|
|
18407
|
-
{
|
|
18408
|
-
"inputs": [],
|
|
18409
|
-
"name": "InvalidNonce",
|
|
18410
|
-
"type": "error"
|
|
18411
|
-
},
|
|
18412
|
-
{
|
|
18413
|
-
"inputs": [],
|
|
18414
|
-
"name": "InvalidPassRate",
|
|
18415
|
-
"type": "error"
|
|
18416
|
-
},
|
|
18417
|
-
{
|
|
18418
|
-
"inputs": [],
|
|
18419
|
-
"name": "InvalidSignature",
|
|
18420
|
-
"type": "error"
|
|
18421
|
-
},
|
|
18422
|
-
{
|
|
18423
|
-
"inputs": [
|
|
18424
|
-
{
|
|
18425
|
-
"internalType": "enum IAgentPactEscrow.TaskState",
|
|
18426
|
-
"name": "current",
|
|
18427
|
-
"type": "uint8"
|
|
18428
|
-
},
|
|
18429
|
-
{
|
|
18430
|
-
"internalType": "enum IAgentPactEscrow.TaskState",
|
|
18431
|
-
"name": "expected",
|
|
18432
|
-
"type": "uint8"
|
|
18433
|
-
}
|
|
18434
|
-
],
|
|
18435
|
-
"name": "InvalidState",
|
|
18436
|
-
"type": "error"
|
|
18437
|
-
},
|
|
18438
|
-
{
|
|
18439
|
-
"inputs": [],
|
|
18440
|
-
"name": "NotInitializing",
|
|
18441
|
-
"type": "error"
|
|
18442
|
-
},
|
|
18443
|
-
{
|
|
18444
|
-
"inputs": [],
|
|
18445
|
-
"name": "OnlyParties",
|
|
18446
|
-
"type": "error"
|
|
18447
|
-
},
|
|
18448
|
-
{
|
|
18449
|
-
"inputs": [],
|
|
18450
|
-
"name": "OnlyProvider",
|
|
18451
|
-
"type": "error"
|
|
18452
|
-
},
|
|
18453
|
-
{
|
|
18454
|
-
"inputs": [],
|
|
18455
|
-
"name": "OnlyRequester",
|
|
18456
|
-
"type": "error"
|
|
18457
|
-
},
|
|
18458
|
-
{
|
|
18459
|
-
"inputs": [
|
|
18460
|
-
{
|
|
18461
|
-
"internalType": "address",
|
|
18462
|
-
"name": "owner",
|
|
18463
|
-
"type": "address"
|
|
18464
|
-
}
|
|
18465
|
-
],
|
|
18466
|
-
"name": "OwnableInvalidOwner",
|
|
18467
|
-
"type": "error"
|
|
18468
|
-
},
|
|
18469
|
-
{
|
|
18470
|
-
"inputs": [
|
|
18471
|
-
{
|
|
18472
|
-
"internalType": "address",
|
|
18473
|
-
"name": "account",
|
|
18474
|
-
"type": "address"
|
|
18475
|
-
}
|
|
18476
|
-
],
|
|
18477
|
-
"name": "OwnableUnauthorizedAccount",
|
|
18478
|
-
"type": "error"
|
|
18479
|
-
},
|
|
18480
|
-
{
|
|
18481
|
-
"inputs": [],
|
|
18482
|
-
"name": "ReentrancyGuardReentrantCall",
|
|
18483
|
-
"type": "error"
|
|
18484
|
-
},
|
|
18485
|
-
{
|
|
18486
|
-
"inputs": [
|
|
18487
|
-
{
|
|
18488
|
-
"internalType": "address",
|
|
18489
|
-
"name": "token",
|
|
18490
|
-
"type": "address"
|
|
18491
|
-
}
|
|
18492
|
-
],
|
|
18493
|
-
"name": "SafeERC20FailedOperation",
|
|
18494
|
-
"type": "error"
|
|
18495
|
-
},
|
|
18496
|
-
{
|
|
18497
|
-
"inputs": [],
|
|
18498
|
-
"name": "SignatureExpired",
|
|
18499
|
-
"type": "error"
|
|
18500
|
-
},
|
|
18501
|
-
{
|
|
18502
|
-
"inputs": [],
|
|
18503
|
-
"name": "TokenNotAllowed",
|
|
18504
|
-
"type": "error"
|
|
18505
|
-
},
|
|
18506
|
-
{
|
|
18507
|
-
"inputs": [],
|
|
18508
|
-
"name": "UUPSUnauthorizedCallContext",
|
|
18509
|
-
"type": "error"
|
|
18510
|
-
},
|
|
18511
|
-
{
|
|
18512
|
-
"inputs": [
|
|
18513
|
-
{
|
|
18514
|
-
"internalType": "bytes32",
|
|
18515
|
-
"name": "slot",
|
|
18516
|
-
"type": "bytes32"
|
|
18517
|
-
}
|
|
18518
|
-
],
|
|
18519
|
-
"name": "UUPSUnsupportedProxiableUUID",
|
|
18520
|
-
"type": "error"
|
|
18521
|
-
},
|
|
18522
|
-
{
|
|
18523
|
-
"inputs": [],
|
|
18524
|
-
"name": "WeightCountMismatch",
|
|
18525
|
-
"type": "error"
|
|
18526
|
-
},
|
|
18527
|
-
{
|
|
18528
|
-
"inputs": [],
|
|
18529
|
-
"name": "WeightsSumNot100",
|
|
18530
|
-
"type": "error"
|
|
18531
|
-
},
|
|
18532
|
-
{
|
|
18533
|
-
"inputs": [],
|
|
18534
|
-
"name": "ZeroAddress",
|
|
18535
|
-
"type": "error"
|
|
18536
|
-
},
|
|
18537
|
-
{
|
|
18538
|
-
"inputs": [],
|
|
18539
|
-
"name": "ZeroAmount",
|
|
18540
|
-
"type": "error"
|
|
18541
|
-
},
|
|
18542
|
-
{
|
|
18543
|
-
"anonymous": false,
|
|
18544
|
-
"inputs": [
|
|
18545
|
-
{
|
|
18546
|
-
"indexed": true,
|
|
18547
|
-
"internalType": "uint256",
|
|
18548
|
-
"name": "escrowId",
|
|
18549
|
-
"type": "uint256"
|
|
18550
|
-
},
|
|
18551
|
-
{
|
|
18552
|
-
"indexed": false,
|
|
18553
|
-
"internalType": "uint256",
|
|
18554
|
-
"name": "providerPayout",
|
|
18555
|
-
"type": "uint256"
|
|
18556
|
-
},
|
|
18557
|
-
{
|
|
18558
|
-
"indexed": false,
|
|
18559
|
-
"internalType": "uint256",
|
|
18560
|
-
"name": "platformFee",
|
|
18561
|
-
"type": "uint256"
|
|
18562
|
-
}
|
|
18563
|
-
],
|
|
18564
|
-
"name": "DeliveryAccepted",
|
|
18565
|
-
"type": "event"
|
|
18566
|
-
},
|
|
18567
|
-
{
|
|
18568
|
-
"anonymous": false,
|
|
18569
|
-
"inputs": [
|
|
18570
|
-
{
|
|
18571
|
-
"indexed": true,
|
|
18572
|
-
"internalType": "uint256",
|
|
18573
|
-
"name": "escrowId",
|
|
18574
|
-
"type": "uint256"
|
|
18575
|
-
},
|
|
18576
|
-
{
|
|
18577
|
-
"indexed": false,
|
|
18578
|
-
"internalType": "bytes32",
|
|
18579
|
-
"name": "deliveryHash",
|
|
18580
|
-
"type": "bytes32"
|
|
18581
|
-
},
|
|
18582
|
-
{
|
|
18583
|
-
"indexed": false,
|
|
18584
|
-
"internalType": "uint8",
|
|
18585
|
-
"name": "revision",
|
|
18586
|
-
"type": "uint8"
|
|
18587
|
-
},
|
|
18588
|
-
{
|
|
18589
|
-
"indexed": false,
|
|
18590
|
-
"internalType": "uint64",
|
|
18591
|
-
"name": "acceptanceDeadline",
|
|
18592
|
-
"type": "uint64"
|
|
18593
|
-
}
|
|
18594
|
-
],
|
|
18595
|
-
"name": "DeliverySubmitted",
|
|
18596
|
-
"type": "event"
|
|
18597
|
-
},
|
|
18598
|
-
{
|
|
18599
|
-
"anonymous": false,
|
|
18600
|
-
"inputs": [],
|
|
18601
|
-
"name": "EIP712DomainChanged",
|
|
18602
|
-
"type": "event"
|
|
18603
|
-
},
|
|
18604
|
-
{
|
|
18605
|
-
"anonymous": false,
|
|
18606
|
-
"inputs": [
|
|
18607
|
-
{
|
|
18608
|
-
"indexed": true,
|
|
18609
|
-
"internalType": "uint256",
|
|
18610
|
-
"name": "escrowId",
|
|
18611
|
-
"type": "uint256"
|
|
18612
|
-
},
|
|
18613
|
-
{
|
|
18614
|
-
"indexed": true,
|
|
18615
|
-
"internalType": "address",
|
|
18616
|
-
"name": "requester",
|
|
18617
|
-
"type": "address"
|
|
18618
|
-
},
|
|
18619
|
-
{
|
|
18620
|
-
"indexed": false,
|
|
18621
|
-
"internalType": "bytes32",
|
|
18622
|
-
"name": "taskHash",
|
|
18623
|
-
"type": "bytes32"
|
|
18624
|
-
},
|
|
18625
|
-
{
|
|
18626
|
-
"indexed": false,
|
|
18627
|
-
"internalType": "uint256",
|
|
18628
|
-
"name": "rewardAmount",
|
|
18629
|
-
"type": "uint256"
|
|
18630
|
-
},
|
|
18631
|
-
{
|
|
18632
|
-
"indexed": false,
|
|
18633
|
-
"internalType": "uint256",
|
|
18634
|
-
"name": "requesterDeposit",
|
|
18635
|
-
"type": "uint256"
|
|
18636
|
-
},
|
|
18637
|
-
{
|
|
18638
|
-
"indexed": false,
|
|
18639
|
-
"internalType": "address",
|
|
18640
|
-
"name": "token",
|
|
18641
|
-
"type": "address"
|
|
18642
|
-
},
|
|
18643
|
-
{
|
|
18644
|
-
"indexed": false,
|
|
18645
|
-
"internalType": "uint64",
|
|
18646
|
-
"name": "deliveryDurationSeconds",
|
|
18647
|
-
"type": "uint64"
|
|
18648
|
-
},
|
|
18649
|
-
{
|
|
18650
|
-
"indexed": false,
|
|
18651
|
-
"internalType": "uint8",
|
|
18652
|
-
"name": "maxRevisions",
|
|
18653
|
-
"type": "uint8"
|
|
18654
|
-
},
|
|
18655
|
-
{
|
|
18656
|
-
"indexed": false,
|
|
18657
|
-
"internalType": "uint8",
|
|
18658
|
-
"name": "acceptanceWindowHours",
|
|
18659
|
-
"type": "uint8"
|
|
18660
|
-
},
|
|
18661
|
-
{
|
|
18662
|
-
"indexed": false,
|
|
18663
|
-
"internalType": "uint8",
|
|
18664
|
-
"name": "criteriaCount",
|
|
18665
|
-
"type": "uint8"
|
|
18666
|
-
}
|
|
18667
|
-
],
|
|
18668
|
-
"name": "EscrowCreated",
|
|
18669
|
-
"type": "event"
|
|
18670
|
-
},
|
|
18671
|
-
{
|
|
18672
|
-
"anonymous": false,
|
|
18673
|
-
"inputs": [
|
|
18674
|
-
{
|
|
18675
|
-
"indexed": false,
|
|
18676
|
-
"internalType": "uint64",
|
|
18677
|
-
"name": "version",
|
|
18678
|
-
"type": "uint64"
|
|
18679
|
-
}
|
|
18680
|
-
],
|
|
18681
|
-
"name": "Initialized",
|
|
18682
|
-
"type": "event"
|
|
18683
|
-
},
|
|
18684
|
-
{
|
|
18685
|
-
"anonymous": false,
|
|
18686
|
-
"inputs": [
|
|
18687
|
-
{
|
|
18688
|
-
"indexed": true,
|
|
18689
|
-
"internalType": "address",
|
|
18690
|
-
"name": "previousOwner",
|
|
18691
|
-
"type": "address"
|
|
18692
|
-
},
|
|
18693
|
-
{
|
|
18694
|
-
"indexed": true,
|
|
18695
|
-
"internalType": "address",
|
|
18696
|
-
"name": "newOwner",
|
|
18697
|
-
"type": "address"
|
|
18698
|
-
}
|
|
18699
|
-
],
|
|
18700
|
-
"name": "OwnershipTransferred",
|
|
18701
|
-
"type": "event"
|
|
18702
|
-
},
|
|
18703
|
-
{
|
|
18704
|
-
"anonymous": false,
|
|
18705
|
-
"inputs": [
|
|
18706
|
-
{
|
|
18707
|
-
"indexed": true,
|
|
18708
|
-
"internalType": "uint256",
|
|
18709
|
-
"name": "escrowId",
|
|
18710
|
-
"type": "uint256"
|
|
18711
|
-
},
|
|
18712
|
-
{
|
|
18713
|
-
"indexed": false,
|
|
18714
|
-
"internalType": "bytes32",
|
|
18715
|
-
"name": "reasonHash",
|
|
18716
|
-
"type": "bytes32"
|
|
18717
|
-
},
|
|
18718
|
-
{
|
|
18719
|
-
"indexed": false,
|
|
18720
|
-
"internalType": "bytes32",
|
|
18721
|
-
"name": "criteriaResultsHash",
|
|
18722
|
-
"type": "bytes32"
|
|
18723
|
-
},
|
|
18724
|
-
{
|
|
18725
|
-
"indexed": false,
|
|
18726
|
-
"internalType": "uint8",
|
|
18727
|
-
"name": "currentRevision",
|
|
18728
|
-
"type": "uint8"
|
|
18729
|
-
},
|
|
18730
|
-
{
|
|
18731
|
-
"indexed": false,
|
|
18732
|
-
"internalType": "uint256",
|
|
18733
|
-
"name": "depositPenalty",
|
|
18734
|
-
"type": "uint256"
|
|
18735
|
-
},
|
|
18736
|
-
{
|
|
18737
|
-
"indexed": false,
|
|
18738
|
-
"internalType": "uint8",
|
|
18739
|
-
"name": "passRate",
|
|
18740
|
-
"type": "uint8"
|
|
18741
|
-
}
|
|
18742
|
-
],
|
|
18743
|
-
"name": "RevisionRequested",
|
|
18744
|
-
"type": "event"
|
|
18745
|
-
},
|
|
18746
|
-
{
|
|
18747
|
-
"anonymous": false,
|
|
18748
|
-
"inputs": [
|
|
18749
|
-
{
|
|
18750
|
-
"indexed": true,
|
|
18751
|
-
"internalType": "uint256",
|
|
18752
|
-
"name": "escrowId",
|
|
18753
|
-
"type": "uint256"
|
|
18754
|
-
},
|
|
18755
|
-
{
|
|
18756
|
-
"indexed": true,
|
|
18757
|
-
"internalType": "address",
|
|
18758
|
-
"name": "provider",
|
|
18759
|
-
"type": "address"
|
|
18760
|
-
}
|
|
18761
|
-
],
|
|
18762
|
-
"name": "TaskAbandoned",
|
|
18763
|
-
"type": "event"
|
|
18764
|
-
},
|
|
18765
|
-
{
|
|
18766
|
-
"anonymous": false,
|
|
18767
|
-
"inputs": [
|
|
18768
|
-
{
|
|
18769
|
-
"indexed": true,
|
|
18770
|
-
"internalType": "uint256",
|
|
18771
|
-
"name": "escrowId",
|
|
18772
|
-
"type": "uint256"
|
|
18773
|
-
},
|
|
18774
|
-
{
|
|
18775
|
-
"indexed": false,
|
|
18776
|
-
"internalType": "uint8",
|
|
18777
|
-
"name": "passRate",
|
|
18778
|
-
"type": "uint8"
|
|
18779
|
-
},
|
|
18780
|
-
{
|
|
18781
|
-
"indexed": false,
|
|
18782
|
-
"internalType": "uint256",
|
|
18783
|
-
"name": "providerShare",
|
|
18784
|
-
"type": "uint256"
|
|
18785
|
-
},
|
|
18786
|
-
{
|
|
18787
|
-
"indexed": false,
|
|
18788
|
-
"internalType": "uint256",
|
|
18789
|
-
"name": "requesterRefund",
|
|
18790
|
-
"type": "uint256"
|
|
18791
|
-
},
|
|
18792
|
-
{
|
|
18793
|
-
"indexed": false,
|
|
18794
|
-
"internalType": "uint256",
|
|
18795
|
-
"name": "platformFee",
|
|
18796
|
-
"type": "uint256"
|
|
18797
|
-
}
|
|
18798
|
-
],
|
|
18799
|
-
"name": "TaskAutoSettled",
|
|
18800
|
-
"type": "event"
|
|
18801
|
-
},
|
|
18802
|
-
{
|
|
18803
|
-
"anonymous": false,
|
|
18804
|
-
"inputs": [
|
|
18805
|
-
{
|
|
18806
|
-
"indexed": true,
|
|
18807
|
-
"internalType": "uint256",
|
|
18808
|
-
"name": "escrowId",
|
|
18809
|
-
"type": "uint256"
|
|
18810
|
-
},
|
|
18811
|
-
{
|
|
18812
|
-
"indexed": false,
|
|
18813
|
-
"internalType": "uint256",
|
|
18814
|
-
"name": "compensation",
|
|
18815
|
-
"type": "uint256"
|
|
18816
|
-
}
|
|
18817
|
-
],
|
|
18818
|
-
"name": "TaskCancelled",
|
|
18819
|
-
"type": "event"
|
|
18820
|
-
},
|
|
18821
|
-
{
|
|
18822
|
-
"anonymous": false,
|
|
18823
|
-
"inputs": [
|
|
18824
|
-
{
|
|
18825
|
-
"indexed": true,
|
|
18826
|
-
"internalType": "uint256",
|
|
18827
|
-
"name": "escrowId",
|
|
18828
|
-
"type": "uint256"
|
|
18829
|
-
},
|
|
18830
|
-
{
|
|
18831
|
-
"indexed": true,
|
|
18832
|
-
"internalType": "address",
|
|
18833
|
-
"name": "provider",
|
|
18834
|
-
"type": "address"
|
|
18835
|
-
},
|
|
18836
|
-
{
|
|
18837
|
-
"indexed": false,
|
|
18838
|
-
"internalType": "uint64",
|
|
18839
|
-
"name": "confirmationDeadline",
|
|
18840
|
-
"type": "uint64"
|
|
18841
|
-
}
|
|
18842
|
-
],
|
|
18843
|
-
"name": "TaskClaimed",
|
|
18844
|
-
"type": "event"
|
|
18845
|
-
},
|
|
18846
|
-
{
|
|
18847
|
-
"anonymous": false,
|
|
18848
|
-
"inputs": [
|
|
18849
|
-
{
|
|
18850
|
-
"indexed": true,
|
|
18851
|
-
"internalType": "uint256",
|
|
18852
|
-
"name": "escrowId",
|
|
18853
|
-
"type": "uint256"
|
|
18854
|
-
},
|
|
18855
|
-
{
|
|
18856
|
-
"indexed": true,
|
|
18857
|
-
"internalType": "address",
|
|
18858
|
-
"name": "provider",
|
|
18859
|
-
"type": "address"
|
|
18860
|
-
},
|
|
18861
|
-
{
|
|
18862
|
-
"indexed": false,
|
|
18863
|
-
"internalType": "uint64",
|
|
18864
|
-
"name": "deliveryDeadline",
|
|
18865
|
-
"type": "uint64"
|
|
18866
|
-
}
|
|
18867
|
-
],
|
|
18868
|
-
"name": "TaskConfirmed",
|
|
18869
|
-
"type": "event"
|
|
18870
|
-
},
|
|
18871
|
-
{
|
|
18872
|
-
"anonymous": false,
|
|
18873
|
-
"inputs": [
|
|
18874
|
-
{
|
|
18875
|
-
"indexed": true,
|
|
18876
|
-
"internalType": "uint256",
|
|
18877
|
-
"name": "escrowId",
|
|
18878
|
-
"type": "uint256"
|
|
18879
|
-
},
|
|
18880
|
-
{
|
|
18881
|
-
"indexed": true,
|
|
18882
|
-
"internalType": "address",
|
|
18883
|
-
"name": "provider",
|
|
18884
|
-
"type": "address"
|
|
18885
|
-
}
|
|
18886
|
-
],
|
|
18887
|
-
"name": "TaskDeclined",
|
|
18888
|
-
"type": "event"
|
|
18889
|
-
},
|
|
18890
|
-
{
|
|
18891
|
-
"anonymous": false,
|
|
18892
|
-
"inputs": [
|
|
18893
|
-
{
|
|
18894
|
-
"indexed": true,
|
|
18895
|
-
"internalType": "uint256",
|
|
18896
|
-
"name": "escrowId",
|
|
18897
|
-
"type": "uint256"
|
|
18898
|
-
},
|
|
18899
|
-
{
|
|
18900
|
-
"indexed": false,
|
|
18901
|
-
"internalType": "uint8",
|
|
18902
|
-
"name": "declineCount",
|
|
18903
|
-
"type": "uint8"
|
|
18904
|
-
}
|
|
18905
|
-
],
|
|
18906
|
-
"name": "TaskSuspendedAfterDeclines",
|
|
18907
|
-
"type": "event"
|
|
18908
|
-
},
|
|
18909
|
-
{
|
|
18910
|
-
"anonymous": false,
|
|
18911
|
-
"inputs": [
|
|
18912
|
-
{
|
|
18913
|
-
"indexed": true,
|
|
18914
|
-
"internalType": "uint256",
|
|
18915
|
-
"name": "escrowId",
|
|
18916
|
-
"type": "uint256"
|
|
18917
|
-
},
|
|
18918
|
-
{
|
|
18919
|
-
"indexed": false,
|
|
18920
|
-
"internalType": "enum IAgentPactEscrow.TaskState",
|
|
18921
|
-
"name": "previousState",
|
|
18922
|
-
"type": "uint8"
|
|
18923
|
-
},
|
|
18924
|
-
{
|
|
18925
|
-
"indexed": true,
|
|
18926
|
-
"internalType": "address",
|
|
18927
|
-
"name": "claimedBy",
|
|
18928
|
-
"type": "address"
|
|
18929
|
-
}
|
|
18930
|
-
],
|
|
18931
|
-
"name": "TimeoutClaimed",
|
|
18932
|
-
"type": "event"
|
|
18933
|
-
},
|
|
18934
|
-
{
|
|
18935
|
-
"anonymous": false,
|
|
18936
|
-
"inputs": [
|
|
18937
|
-
{
|
|
18938
|
-
"indexed": true,
|
|
18939
|
-
"internalType": "address",
|
|
18940
|
-
"name": "implementation",
|
|
18941
|
-
"type": "address"
|
|
18942
|
-
}
|
|
18943
|
-
],
|
|
18944
|
-
"name": "Upgraded",
|
|
18945
|
-
"type": "event"
|
|
18946
|
-
},
|
|
18947
|
-
{
|
|
18948
|
-
"inputs": [],
|
|
18949
|
-
"name": "ASSIGNMENT_TYPEHASH",
|
|
18950
|
-
"outputs": [
|
|
18951
|
-
{
|
|
18952
|
-
"internalType": "bytes32",
|
|
18953
|
-
"name": "",
|
|
18954
|
-
"type": "bytes32"
|
|
18955
|
-
}
|
|
18956
|
-
],
|
|
18957
|
-
"stateMutability": "view",
|
|
18958
|
-
"type": "function"
|
|
18959
|
-
},
|
|
18960
|
-
{
|
|
18961
|
-
"inputs": [],
|
|
18962
|
-
"name": "CONFIRMATION_WINDOW",
|
|
18963
|
-
"outputs": [
|
|
18964
|
-
{
|
|
18965
|
-
"internalType": "uint64",
|
|
18966
|
-
"name": "",
|
|
18967
|
-
"type": "uint64"
|
|
18968
|
-
}
|
|
18969
|
-
],
|
|
18970
|
-
"stateMutability": "view",
|
|
18971
|
-
"type": "function"
|
|
18972
|
-
},
|
|
18973
|
-
{
|
|
18974
|
-
"inputs": [],
|
|
18975
|
-
"name": "MAX_DECLINE_COUNT",
|
|
18976
|
-
"outputs": [
|
|
18977
|
-
{
|
|
18978
|
-
"internalType": "uint8",
|
|
18979
|
-
"name": "",
|
|
18980
|
-
"type": "uint8"
|
|
18981
|
-
}
|
|
18982
|
-
],
|
|
18983
|
-
"stateMutability": "view",
|
|
18984
|
-
"type": "function"
|
|
18985
|
-
},
|
|
18986
|
-
{
|
|
18987
|
-
"inputs": [],
|
|
18988
|
-
"name": "MIN_PASS_RATE",
|
|
18989
|
-
"outputs": [
|
|
18990
|
-
{
|
|
18991
|
-
"internalType": "uint8",
|
|
18992
|
-
"name": "",
|
|
18993
|
-
"type": "uint8"
|
|
18994
|
-
}
|
|
18995
|
-
],
|
|
18996
|
-
"stateMutability": "view",
|
|
18997
|
-
"type": "function"
|
|
18998
|
-
},
|
|
18999
|
-
{
|
|
19000
|
-
"inputs": [],
|
|
19001
|
-
"name": "PLATFORM_FEE_BPS",
|
|
19002
|
-
"outputs": [
|
|
19003
|
-
{
|
|
19004
|
-
"internalType": "uint256",
|
|
19005
|
-
"name": "",
|
|
19006
|
-
"type": "uint256"
|
|
19007
|
-
}
|
|
19008
|
-
],
|
|
19009
|
-
"stateMutability": "view",
|
|
19010
|
-
"type": "function"
|
|
19011
|
-
},
|
|
19012
|
-
{
|
|
19013
|
-
"inputs": [],
|
|
19014
|
-
"name": "UPGRADE_INTERFACE_VERSION",
|
|
19015
|
-
"outputs": [
|
|
19016
|
-
{
|
|
19017
|
-
"internalType": "string",
|
|
19018
|
-
"name": "",
|
|
19019
|
-
"type": "string"
|
|
19020
|
-
}
|
|
19021
|
-
],
|
|
19022
|
-
"stateMutability": "view",
|
|
19023
|
-
"type": "function"
|
|
19024
|
-
},
|
|
19025
|
-
{
|
|
19026
|
-
"inputs": [
|
|
19027
|
-
{
|
|
19028
|
-
"internalType": "uint256",
|
|
19029
|
-
"name": "escrowId",
|
|
19030
|
-
"type": "uint256"
|
|
19031
|
-
}
|
|
19032
|
-
],
|
|
19033
|
-
"name": "abandonTask",
|
|
19034
|
-
"outputs": [],
|
|
19035
|
-
"stateMutability": "nonpayable",
|
|
19036
|
-
"type": "function"
|
|
19037
|
-
},
|
|
19038
|
-
{
|
|
19039
|
-
"inputs": [
|
|
19040
|
-
{
|
|
19041
|
-
"internalType": "uint256",
|
|
19042
|
-
"name": "escrowId",
|
|
19043
|
-
"type": "uint256"
|
|
19044
|
-
}
|
|
19045
|
-
],
|
|
19046
|
-
"name": "acceptDelivery",
|
|
19047
|
-
"outputs": [],
|
|
19048
|
-
"stateMutability": "nonpayable",
|
|
19049
|
-
"type": "function"
|
|
19050
|
-
},
|
|
19051
|
-
{
|
|
19052
|
-
"inputs": [
|
|
19053
|
-
{
|
|
19054
|
-
"internalType": "address",
|
|
19055
|
-
"name": "",
|
|
19056
|
-
"type": "address"
|
|
19057
|
-
}
|
|
19058
|
-
],
|
|
19059
|
-
"name": "allowedTokens",
|
|
19060
|
-
"outputs": [
|
|
19061
|
-
{
|
|
19062
|
-
"internalType": "bool",
|
|
19063
|
-
"name": "",
|
|
19064
|
-
"type": "bool"
|
|
19065
|
-
}
|
|
19066
|
-
],
|
|
19067
|
-
"stateMutability": "view",
|
|
19068
|
-
"type": "function"
|
|
19069
|
-
},
|
|
19070
|
-
{
|
|
19071
|
-
"inputs": [
|
|
19072
|
-
{
|
|
19073
|
-
"internalType": "uint256",
|
|
19074
|
-
"name": "",
|
|
19075
|
-
"type": "uint256"
|
|
19076
|
-
}
|
|
19077
|
-
],
|
|
19078
|
-
"name": "assignmentNonces",
|
|
19079
|
-
"outputs": [
|
|
19080
|
-
{
|
|
19081
|
-
"internalType": "uint256",
|
|
19082
|
-
"name": "",
|
|
19083
|
-
"type": "uint256"
|
|
19084
|
-
}
|
|
19085
|
-
],
|
|
19086
|
-
"stateMutability": "view",
|
|
19087
|
-
"type": "function"
|
|
19088
|
-
},
|
|
19089
|
-
{
|
|
19090
|
-
"inputs": [
|
|
19091
|
-
{
|
|
19092
|
-
"internalType": "uint256",
|
|
19093
|
-
"name": "escrowId",
|
|
19094
|
-
"type": "uint256"
|
|
19095
|
-
}
|
|
19096
|
-
],
|
|
19097
|
-
"name": "cancelTask",
|
|
19098
|
-
"outputs": [],
|
|
19099
|
-
"stateMutability": "nonpayable",
|
|
19100
|
-
"type": "function"
|
|
19101
|
-
},
|
|
19102
|
-
{
|
|
19103
|
-
"inputs": [
|
|
19104
|
-
{
|
|
19105
|
-
"internalType": "uint256",
|
|
19106
|
-
"name": "escrowId",
|
|
19107
|
-
"type": "uint256"
|
|
19108
|
-
}
|
|
19109
|
-
],
|
|
19110
|
-
"name": "claimAcceptanceTimeout",
|
|
19111
|
-
"outputs": [],
|
|
19112
|
-
"stateMutability": "nonpayable",
|
|
19113
|
-
"type": "function"
|
|
19114
|
-
},
|
|
19115
|
-
{
|
|
19116
|
-
"inputs": [
|
|
19117
|
-
{
|
|
19118
|
-
"internalType": "uint256",
|
|
19119
|
-
"name": "escrowId",
|
|
19120
|
-
"type": "uint256"
|
|
19121
|
-
}
|
|
19122
|
-
],
|
|
19123
|
-
"name": "claimConfirmationTimeout",
|
|
19124
|
-
"outputs": [],
|
|
19125
|
-
"stateMutability": "nonpayable",
|
|
19126
|
-
"type": "function"
|
|
19127
|
-
},
|
|
19128
|
-
{
|
|
19129
|
-
"inputs": [
|
|
19130
|
-
{
|
|
19131
|
-
"internalType": "uint256",
|
|
19132
|
-
"name": "escrowId",
|
|
19133
|
-
"type": "uint256"
|
|
19134
|
-
}
|
|
19135
|
-
],
|
|
19136
|
-
"name": "claimDeliveryTimeout",
|
|
19137
|
-
"outputs": [],
|
|
19138
|
-
"stateMutability": "nonpayable",
|
|
19139
|
-
"type": "function"
|
|
19140
|
-
},
|
|
19141
|
-
{
|
|
19142
|
-
"inputs": [
|
|
19143
|
-
{
|
|
19144
|
-
"internalType": "uint256",
|
|
19145
|
-
"name": "escrowId",
|
|
19146
|
-
"type": "uint256"
|
|
19147
|
-
},
|
|
19148
|
-
{
|
|
19149
|
-
"internalType": "uint256",
|
|
19150
|
-
"name": "nonce",
|
|
19151
|
-
"type": "uint256"
|
|
19152
|
-
},
|
|
19153
|
-
{
|
|
19154
|
-
"internalType": "uint256",
|
|
19155
|
-
"name": "expiredAt",
|
|
19156
|
-
"type": "uint256"
|
|
19157
|
-
},
|
|
19158
|
-
{
|
|
19159
|
-
"internalType": "bytes",
|
|
19160
|
-
"name": "platformSignature",
|
|
19161
|
-
"type": "bytes"
|
|
19162
|
-
}
|
|
19163
|
-
],
|
|
19164
|
-
"name": "claimTask",
|
|
19165
|
-
"outputs": [],
|
|
19166
|
-
"stateMutability": "nonpayable",
|
|
19167
|
-
"type": "function"
|
|
19168
|
-
},
|
|
19169
|
-
{
|
|
19170
|
-
"inputs": [
|
|
19171
|
-
{
|
|
19172
|
-
"internalType": "uint256",
|
|
19173
|
-
"name": "escrowId",
|
|
19174
|
-
"type": "uint256"
|
|
19175
|
-
}
|
|
19176
|
-
],
|
|
19177
|
-
"name": "confirmTask",
|
|
19178
|
-
"outputs": [],
|
|
19179
|
-
"stateMutability": "nonpayable",
|
|
19180
|
-
"type": "function"
|
|
19181
|
-
},
|
|
19182
|
-
{
|
|
19183
|
-
"inputs": [
|
|
19184
|
-
{
|
|
19185
|
-
"internalType": "bytes32",
|
|
19186
|
-
"name": "taskHash",
|
|
19187
|
-
"type": "bytes32"
|
|
19188
|
-
},
|
|
19189
|
-
{
|
|
19190
|
-
"internalType": "uint64",
|
|
19191
|
-
"name": "deliveryDurationSeconds",
|
|
19192
|
-
"type": "uint64"
|
|
19193
|
-
},
|
|
19194
|
-
{
|
|
19195
|
-
"internalType": "uint8",
|
|
19196
|
-
"name": "maxRevisions",
|
|
19197
|
-
"type": "uint8"
|
|
19198
|
-
},
|
|
19199
|
-
{
|
|
19200
|
-
"internalType": "uint8",
|
|
19201
|
-
"name": "acceptanceWindowHours",
|
|
19202
|
-
"type": "uint8"
|
|
19203
|
-
},
|
|
19204
|
-
{
|
|
19205
|
-
"internalType": "uint8",
|
|
19206
|
-
"name": "criteriaCount",
|
|
19207
|
-
"type": "uint8"
|
|
19208
|
-
},
|
|
19209
|
-
{
|
|
19210
|
-
"internalType": "uint8[]",
|
|
19211
|
-
"name": "fundWeights",
|
|
19212
|
-
"type": "uint8[]"
|
|
19213
|
-
},
|
|
19214
|
-
{
|
|
19215
|
-
"internalType": "address",
|
|
19216
|
-
"name": "token",
|
|
19217
|
-
"type": "address"
|
|
19218
|
-
},
|
|
19219
|
-
{
|
|
19220
|
-
"internalType": "uint256",
|
|
19221
|
-
"name": "totalAmount",
|
|
19222
|
-
"type": "uint256"
|
|
19223
|
-
}
|
|
19224
|
-
],
|
|
19225
|
-
"name": "createEscrow",
|
|
19226
|
-
"outputs": [
|
|
19227
|
-
{
|
|
19228
|
-
"internalType": "uint256",
|
|
19229
|
-
"name": "escrowId",
|
|
19230
|
-
"type": "uint256"
|
|
19231
|
-
}
|
|
19232
|
-
],
|
|
19233
|
-
"stateMutability": "payable",
|
|
19234
|
-
"type": "function"
|
|
19235
|
-
},
|
|
19236
|
-
{
|
|
19237
|
-
"inputs": [
|
|
19238
|
-
{
|
|
19239
|
-
"internalType": "uint256",
|
|
19240
|
-
"name": "escrowId",
|
|
19241
|
-
"type": "uint256"
|
|
19242
|
-
}
|
|
19243
|
-
],
|
|
19244
|
-
"name": "declineTask",
|
|
19245
|
-
"outputs": [],
|
|
19246
|
-
"stateMutability": "nonpayable",
|
|
19247
|
-
"type": "function"
|
|
19248
|
-
},
|
|
19249
|
-
{
|
|
19250
|
-
"inputs": [],
|
|
19251
|
-
"name": "eip712Domain",
|
|
19252
|
-
"outputs": [
|
|
19253
|
-
{
|
|
19254
|
-
"internalType": "bytes1",
|
|
19255
|
-
"name": "fields",
|
|
19256
|
-
"type": "bytes1"
|
|
19257
|
-
},
|
|
19258
|
-
{
|
|
19259
|
-
"internalType": "string",
|
|
19260
|
-
"name": "name",
|
|
19261
|
-
"type": "string"
|
|
19262
|
-
},
|
|
19263
|
-
{
|
|
19264
|
-
"internalType": "string",
|
|
19265
|
-
"name": "version",
|
|
19266
|
-
"type": "string"
|
|
19267
|
-
},
|
|
19268
|
-
{
|
|
19269
|
-
"internalType": "uint256",
|
|
19270
|
-
"name": "chainId",
|
|
19271
|
-
"type": "uint256"
|
|
19272
|
-
},
|
|
19273
|
-
{
|
|
19274
|
-
"internalType": "address",
|
|
19275
|
-
"name": "verifyingContract",
|
|
19276
|
-
"type": "address"
|
|
19277
|
-
},
|
|
19278
|
-
{
|
|
19279
|
-
"internalType": "bytes32",
|
|
19280
|
-
"name": "salt",
|
|
19281
|
-
"type": "bytes32"
|
|
19282
|
-
},
|
|
19283
|
-
{
|
|
19284
|
-
"internalType": "uint256[]",
|
|
19285
|
-
"name": "extensions",
|
|
19286
|
-
"type": "uint256[]"
|
|
19287
|
-
}
|
|
19288
|
-
],
|
|
19289
|
-
"stateMutability": "view",
|
|
19290
|
-
"type": "function"
|
|
19291
|
-
},
|
|
19292
|
-
{
|
|
19293
|
-
"inputs": [
|
|
19294
|
-
{
|
|
19295
|
-
"internalType": "uint256",
|
|
19296
|
-
"name": "",
|
|
19297
|
-
"type": "uint256"
|
|
19298
|
-
},
|
|
19299
|
-
{
|
|
19300
|
-
"internalType": "uint8",
|
|
19301
|
-
"name": "",
|
|
19302
|
-
"type": "uint8"
|
|
19303
|
-
}
|
|
19304
|
-
],
|
|
19305
|
-
"name": "escrowFundWeights",
|
|
19306
|
-
"outputs": [
|
|
19307
|
-
{
|
|
19308
|
-
"internalType": "uint8",
|
|
19309
|
-
"name": "",
|
|
19310
|
-
"type": "uint8"
|
|
19311
|
-
}
|
|
19312
|
-
],
|
|
19313
|
-
"stateMutability": "view",
|
|
19314
|
-
"type": "function"
|
|
19315
|
-
},
|
|
19316
|
-
{
|
|
19317
|
-
"inputs": [
|
|
19318
|
-
{
|
|
19319
|
-
"internalType": "uint256",
|
|
19320
|
-
"name": "",
|
|
19321
|
-
"type": "uint256"
|
|
19322
|
-
}
|
|
19323
|
-
],
|
|
19324
|
-
"name": "escrows",
|
|
19325
|
-
"outputs": [
|
|
19326
|
-
{
|
|
19327
|
-
"internalType": "address",
|
|
19328
|
-
"name": "requester",
|
|
19329
|
-
"type": "address"
|
|
19330
|
-
},
|
|
19331
|
-
{
|
|
19332
|
-
"internalType": "address",
|
|
19333
|
-
"name": "provider",
|
|
19334
|
-
"type": "address"
|
|
19335
|
-
},
|
|
19336
|
-
{
|
|
19337
|
-
"internalType": "uint256",
|
|
19338
|
-
"name": "rewardAmount",
|
|
19339
|
-
"type": "uint256"
|
|
19340
|
-
},
|
|
19341
|
-
{
|
|
19342
|
-
"internalType": "uint256",
|
|
19343
|
-
"name": "requesterDeposit",
|
|
19344
|
-
"type": "uint256"
|
|
19345
|
-
},
|
|
19346
|
-
{
|
|
19347
|
-
"internalType": "uint256",
|
|
19348
|
-
"name": "depositConsumed",
|
|
19349
|
-
"type": "uint256"
|
|
19350
|
-
},
|
|
19351
|
-
{
|
|
19352
|
-
"internalType": "address",
|
|
19353
|
-
"name": "token",
|
|
19354
|
-
"type": "address"
|
|
19355
|
-
},
|
|
19356
|
-
{
|
|
19357
|
-
"internalType": "enum IAgentPactEscrow.TaskState",
|
|
19358
|
-
"name": "state",
|
|
19359
|
-
"type": "uint8"
|
|
19360
|
-
},
|
|
19361
|
-
{
|
|
19362
|
-
"internalType": "bytes32",
|
|
19363
|
-
"name": "taskHash",
|
|
19364
|
-
"type": "bytes32"
|
|
19365
|
-
},
|
|
19366
|
-
{
|
|
19367
|
-
"internalType": "bytes32",
|
|
19368
|
-
"name": "latestDeliveryHash",
|
|
19369
|
-
"type": "bytes32"
|
|
19370
|
-
},
|
|
19371
|
-
{
|
|
19372
|
-
"internalType": "bytes32",
|
|
19373
|
-
"name": "latestCriteriaHash",
|
|
19374
|
-
"type": "bytes32"
|
|
19375
|
-
},
|
|
19376
|
-
{
|
|
19377
|
-
"internalType": "uint64",
|
|
19378
|
-
"name": "deliveryDurationSeconds",
|
|
19379
|
-
"type": "uint64"
|
|
19380
|
-
},
|
|
19381
|
-
{
|
|
19382
|
-
"internalType": "uint64",
|
|
19383
|
-
"name": "deliveryDeadline",
|
|
19384
|
-
"type": "uint64"
|
|
19385
|
-
},
|
|
19386
|
-
{
|
|
19387
|
-
"internalType": "uint64",
|
|
19388
|
-
"name": "acceptanceDeadline",
|
|
19389
|
-
"type": "uint64"
|
|
19390
|
-
},
|
|
19391
|
-
{
|
|
19392
|
-
"internalType": "uint64",
|
|
19393
|
-
"name": "confirmationDeadline",
|
|
19394
|
-
"type": "uint64"
|
|
19395
|
-
},
|
|
19396
|
-
{
|
|
19397
|
-
"internalType": "uint8",
|
|
19398
|
-
"name": "maxRevisions",
|
|
19399
|
-
"type": "uint8"
|
|
19400
|
-
},
|
|
19401
|
-
{
|
|
19402
|
-
"internalType": "uint8",
|
|
19403
|
-
"name": "currentRevision",
|
|
19404
|
-
"type": "uint8"
|
|
19405
|
-
},
|
|
19406
|
-
{
|
|
19407
|
-
"internalType": "uint8",
|
|
19408
|
-
"name": "criteriaCount",
|
|
19409
|
-
"type": "uint8"
|
|
19410
|
-
},
|
|
19411
|
-
{
|
|
19412
|
-
"internalType": "uint8",
|
|
19413
|
-
"name": "declineCount",
|
|
19414
|
-
"type": "uint8"
|
|
19415
|
-
},
|
|
19416
|
-
{
|
|
19417
|
-
"internalType": "uint8",
|
|
19418
|
-
"name": "acceptanceWindowHours",
|
|
19419
|
-
"type": "uint8"
|
|
19420
|
-
}
|
|
19421
|
-
],
|
|
19422
|
-
"stateMutability": "view",
|
|
19423
|
-
"type": "function"
|
|
19424
|
-
},
|
|
19425
|
-
{
|
|
19426
|
-
"inputs": [],
|
|
19427
|
-
"name": "getDomainSeparator",
|
|
19428
|
-
"outputs": [
|
|
19429
|
-
{
|
|
19430
|
-
"internalType": "bytes32",
|
|
19431
|
-
"name": "",
|
|
19432
|
-
"type": "bytes32"
|
|
19433
|
-
}
|
|
19434
|
-
],
|
|
19435
|
-
"stateMutability": "view",
|
|
19436
|
-
"type": "function"
|
|
19437
|
-
},
|
|
19438
|
-
{
|
|
19439
|
-
"inputs": [
|
|
19440
|
-
{
|
|
19441
|
-
"internalType": "uint256",
|
|
19442
|
-
"name": "escrowId",
|
|
19443
|
-
"type": "uint256"
|
|
19444
|
-
}
|
|
19445
|
-
],
|
|
19446
|
-
"name": "getEscrow",
|
|
19447
|
-
"outputs": [
|
|
19448
|
-
{
|
|
19449
|
-
"components": [
|
|
19450
|
-
{
|
|
19451
|
-
"internalType": "address",
|
|
19452
|
-
"name": "requester",
|
|
19453
|
-
"type": "address"
|
|
19454
|
-
},
|
|
19455
|
-
{
|
|
19456
|
-
"internalType": "address",
|
|
19457
|
-
"name": "provider",
|
|
19458
|
-
"type": "address"
|
|
19459
|
-
},
|
|
19460
|
-
{
|
|
19461
|
-
"internalType": "uint256",
|
|
19462
|
-
"name": "rewardAmount",
|
|
19463
|
-
"type": "uint256"
|
|
19464
|
-
},
|
|
19465
|
-
{
|
|
19466
|
-
"internalType": "uint256",
|
|
19467
|
-
"name": "requesterDeposit",
|
|
19468
|
-
"type": "uint256"
|
|
19469
|
-
},
|
|
19470
|
-
{
|
|
19471
|
-
"internalType": "uint256",
|
|
19472
|
-
"name": "depositConsumed",
|
|
19473
|
-
"type": "uint256"
|
|
19474
|
-
},
|
|
19475
|
-
{
|
|
19476
|
-
"internalType": "address",
|
|
19477
|
-
"name": "token",
|
|
19478
|
-
"type": "address"
|
|
19479
|
-
},
|
|
19480
|
-
{
|
|
19481
|
-
"internalType": "enum IAgentPactEscrow.TaskState",
|
|
19482
|
-
"name": "state",
|
|
19483
|
-
"type": "uint8"
|
|
19484
|
-
},
|
|
19485
|
-
{
|
|
19486
|
-
"internalType": "bytes32",
|
|
19487
|
-
"name": "taskHash",
|
|
19488
|
-
"type": "bytes32"
|
|
19489
|
-
},
|
|
19490
|
-
{
|
|
19491
|
-
"internalType": "bytes32",
|
|
19492
|
-
"name": "latestDeliveryHash",
|
|
19493
|
-
"type": "bytes32"
|
|
19494
|
-
},
|
|
19495
|
-
{
|
|
19496
|
-
"internalType": "bytes32",
|
|
19497
|
-
"name": "latestCriteriaHash",
|
|
19498
|
-
"type": "bytes32"
|
|
19499
|
-
},
|
|
19500
|
-
{
|
|
19501
|
-
"internalType": "uint64",
|
|
19502
|
-
"name": "deliveryDurationSeconds",
|
|
19503
|
-
"type": "uint64"
|
|
19504
|
-
},
|
|
19505
|
-
{
|
|
19506
|
-
"internalType": "uint64",
|
|
19507
|
-
"name": "deliveryDeadline",
|
|
19508
|
-
"type": "uint64"
|
|
19509
|
-
},
|
|
19510
|
-
{
|
|
19511
|
-
"internalType": "uint64",
|
|
19512
|
-
"name": "acceptanceDeadline",
|
|
19513
|
-
"type": "uint64"
|
|
19514
|
-
},
|
|
19515
|
-
{
|
|
19516
|
-
"internalType": "uint64",
|
|
19517
|
-
"name": "confirmationDeadline",
|
|
19518
|
-
"type": "uint64"
|
|
19519
|
-
},
|
|
19520
|
-
{
|
|
19521
|
-
"internalType": "uint8",
|
|
19522
|
-
"name": "maxRevisions",
|
|
19523
|
-
"type": "uint8"
|
|
19524
|
-
},
|
|
19525
|
-
{
|
|
19526
|
-
"internalType": "uint8",
|
|
19527
|
-
"name": "currentRevision",
|
|
19528
|
-
"type": "uint8"
|
|
19529
|
-
},
|
|
19530
|
-
{
|
|
19531
|
-
"internalType": "uint8",
|
|
19532
|
-
"name": "criteriaCount",
|
|
19533
|
-
"type": "uint8"
|
|
19534
|
-
},
|
|
19535
|
-
{
|
|
19536
|
-
"internalType": "uint8",
|
|
19537
|
-
"name": "declineCount",
|
|
19538
|
-
"type": "uint8"
|
|
19539
|
-
},
|
|
19540
|
-
{
|
|
19541
|
-
"internalType": "uint8",
|
|
19542
|
-
"name": "acceptanceWindowHours",
|
|
19543
|
-
"type": "uint8"
|
|
19544
|
-
}
|
|
19545
|
-
],
|
|
19546
|
-
"internalType": "struct IAgentPactEscrow.EscrowRecord",
|
|
19547
|
-
"name": "",
|
|
19548
|
-
"type": "tuple"
|
|
19549
|
-
}
|
|
19550
|
-
],
|
|
19551
|
-
"stateMutability": "view",
|
|
19552
|
-
"type": "function"
|
|
19553
|
-
},
|
|
19554
|
-
{
|
|
19555
|
-
"inputs": [
|
|
19556
|
-
{
|
|
19557
|
-
"internalType": "uint256",
|
|
19558
|
-
"name": "escrowId",
|
|
19559
|
-
"type": "uint256"
|
|
19560
|
-
},
|
|
19561
|
-
{
|
|
19562
|
-
"internalType": "uint8",
|
|
19563
|
-
"name": "criteriaIndex",
|
|
19564
|
-
"type": "uint8"
|
|
19565
|
-
}
|
|
19566
|
-
],
|
|
19567
|
-
"name": "getFundWeight",
|
|
19568
|
-
"outputs": [
|
|
19569
|
-
{
|
|
19570
|
-
"internalType": "uint8",
|
|
19571
|
-
"name": "",
|
|
19572
|
-
"type": "uint8"
|
|
19573
|
-
}
|
|
19574
|
-
],
|
|
19575
|
-
"stateMutability": "view",
|
|
19576
|
-
"type": "function"
|
|
19577
|
-
},
|
|
19578
|
-
{
|
|
19579
|
-
"inputs": [
|
|
19580
|
-
{
|
|
19581
|
-
"internalType": "uint256",
|
|
19582
|
-
"name": "escrowId",
|
|
19583
|
-
"type": "uint256"
|
|
19584
|
-
}
|
|
19585
|
-
],
|
|
19586
|
-
"name": "getFundWeights",
|
|
19587
|
-
"outputs": [
|
|
19588
|
-
{
|
|
19589
|
-
"internalType": "uint8[]",
|
|
19590
|
-
"name": "",
|
|
19591
|
-
"type": "uint8[]"
|
|
19592
|
-
}
|
|
19593
|
-
],
|
|
19594
|
-
"stateMutability": "view",
|
|
19595
|
-
"type": "function"
|
|
19596
|
-
},
|
|
19597
|
-
{
|
|
19598
|
-
"inputs": [
|
|
19599
|
-
{
|
|
19600
|
-
"internalType": "address",
|
|
19601
|
-
"name": "_platformSigner",
|
|
19602
|
-
"type": "address"
|
|
19603
|
-
},
|
|
19604
|
-
{
|
|
19605
|
-
"internalType": "address",
|
|
19606
|
-
"name": "_platformFund",
|
|
19607
|
-
"type": "address"
|
|
19608
|
-
},
|
|
19609
|
-
{
|
|
19610
|
-
"internalType": "address",
|
|
19611
|
-
"name": "_owner",
|
|
19612
|
-
"type": "address"
|
|
19613
|
-
}
|
|
19614
|
-
],
|
|
19615
|
-
"name": "initialize",
|
|
19616
|
-
"outputs": [],
|
|
19617
|
-
"stateMutability": "nonpayable",
|
|
19618
|
-
"type": "function"
|
|
19619
|
-
},
|
|
19620
|
-
{
|
|
19621
|
-
"inputs": [],
|
|
19622
|
-
"name": "nextEscrowId",
|
|
19623
|
-
"outputs": [
|
|
19624
|
-
{
|
|
19625
|
-
"internalType": "uint256",
|
|
19626
|
-
"name": "",
|
|
19627
|
-
"type": "uint256"
|
|
19628
|
-
}
|
|
19629
|
-
],
|
|
19630
|
-
"stateMutability": "view",
|
|
19631
|
-
"type": "function"
|
|
19632
|
-
},
|
|
19633
|
-
{
|
|
19634
|
-
"inputs": [],
|
|
19635
|
-
"name": "owner",
|
|
19636
|
-
"outputs": [
|
|
19637
|
-
{
|
|
19638
|
-
"internalType": "address",
|
|
19639
|
-
"name": "",
|
|
19640
|
-
"type": "address"
|
|
19641
|
-
}
|
|
19642
|
-
],
|
|
19643
|
-
"stateMutability": "view",
|
|
19644
|
-
"type": "function"
|
|
19645
|
-
},
|
|
19646
|
-
{
|
|
19647
|
-
"inputs": [],
|
|
19648
|
-
"name": "platformFund",
|
|
19649
|
-
"outputs": [
|
|
19650
|
-
{
|
|
19651
|
-
"internalType": "address",
|
|
19652
|
-
"name": "",
|
|
19653
|
-
"type": "address"
|
|
19654
|
-
}
|
|
19655
|
-
],
|
|
19656
|
-
"stateMutability": "view",
|
|
19657
|
-
"type": "function"
|
|
19658
|
-
},
|
|
19659
|
-
{
|
|
19660
|
-
"inputs": [],
|
|
19661
|
-
"name": "platformSigner",
|
|
19662
|
-
"outputs": [
|
|
19663
|
-
{
|
|
19664
|
-
"internalType": "address",
|
|
19665
|
-
"name": "",
|
|
19666
|
-
"type": "address"
|
|
19667
|
-
}
|
|
19668
|
-
],
|
|
19669
|
-
"stateMutability": "view",
|
|
19670
|
-
"type": "function"
|
|
19671
|
-
},
|
|
19672
|
-
{
|
|
19673
|
-
"inputs": [],
|
|
19674
|
-
"name": "proxiableUUID",
|
|
19675
|
-
"outputs": [
|
|
19676
|
-
{
|
|
19677
|
-
"internalType": "bytes32",
|
|
19678
|
-
"name": "",
|
|
19679
|
-
"type": "bytes32"
|
|
19680
|
-
}
|
|
19681
|
-
],
|
|
19682
|
-
"stateMutability": "view",
|
|
19683
|
-
"type": "function"
|
|
19684
|
-
},
|
|
19685
|
-
{
|
|
19686
|
-
"inputs": [],
|
|
19687
|
-
"name": "renounceOwnership",
|
|
19688
|
-
"outputs": [],
|
|
19689
|
-
"stateMutability": "nonpayable",
|
|
19690
|
-
"type": "function"
|
|
19691
|
-
},
|
|
19692
|
-
{
|
|
19693
|
-
"inputs": [],
|
|
19694
|
-
"name": "reputationRegistry",
|
|
19695
|
-
"outputs": [
|
|
19696
|
-
{
|
|
19697
|
-
"internalType": "contract IAgentPactReputationRegistry",
|
|
19698
|
-
"name": "",
|
|
19699
|
-
"type": "address"
|
|
19700
|
-
}
|
|
19701
|
-
],
|
|
19702
|
-
"stateMutability": "view",
|
|
19703
|
-
"type": "function"
|
|
19704
|
-
},
|
|
19705
|
-
{
|
|
19706
|
-
"inputs": [
|
|
19707
|
-
{
|
|
19708
|
-
"internalType": "uint256",
|
|
19709
|
-
"name": "escrowId",
|
|
19710
|
-
"type": "uint256"
|
|
19711
|
-
},
|
|
19712
|
-
{
|
|
19713
|
-
"internalType": "bytes32",
|
|
19714
|
-
"name": "reasonHash",
|
|
19715
|
-
"type": "bytes32"
|
|
19716
|
-
},
|
|
19717
|
-
{
|
|
19718
|
-
"internalType": "bool[]",
|
|
19719
|
-
"name": "criteriaResults",
|
|
19720
|
-
"type": "bool[]"
|
|
19721
|
-
}
|
|
19722
|
-
],
|
|
19723
|
-
"name": "requestRevision",
|
|
19724
|
-
"outputs": [],
|
|
19725
|
-
"stateMutability": "nonpayable",
|
|
19726
|
-
"type": "function"
|
|
19727
|
-
},
|
|
19728
|
-
{
|
|
19729
|
-
"inputs": [
|
|
19730
|
-
{
|
|
19731
|
-
"internalType": "address",
|
|
19732
|
-
"name": "token",
|
|
19733
|
-
"type": "address"
|
|
19734
|
-
},
|
|
19735
|
-
{
|
|
19736
|
-
"internalType": "bool",
|
|
19737
|
-
"name": "allowed",
|
|
19738
|
-
"type": "bool"
|
|
19739
|
-
}
|
|
19740
|
-
],
|
|
19741
|
-
"name": "setAllowedToken",
|
|
19742
|
-
"outputs": [],
|
|
19743
|
-
"stateMutability": "nonpayable",
|
|
19744
|
-
"type": "function"
|
|
19745
|
-
},
|
|
19746
|
-
{
|
|
19747
|
-
"inputs": [
|
|
19748
|
-
{
|
|
19749
|
-
"internalType": "address",
|
|
19750
|
-
"name": "newFund",
|
|
19751
|
-
"type": "address"
|
|
19752
|
-
}
|
|
19753
|
-
],
|
|
19754
|
-
"name": "setPlatformFund",
|
|
19755
|
-
"outputs": [],
|
|
19756
|
-
"stateMutability": "nonpayable",
|
|
19757
|
-
"type": "function"
|
|
19758
|
-
},
|
|
19759
|
-
{
|
|
19760
|
-
"inputs": [
|
|
19761
|
-
{
|
|
19762
|
-
"internalType": "address",
|
|
19763
|
-
"name": "newSigner",
|
|
19764
|
-
"type": "address"
|
|
19765
|
-
}
|
|
19766
|
-
],
|
|
19767
|
-
"name": "setPlatformSigner",
|
|
19768
|
-
"outputs": [],
|
|
19769
|
-
"stateMutability": "nonpayable",
|
|
19770
|
-
"type": "function"
|
|
19771
|
-
},
|
|
19772
|
-
{
|
|
19773
|
-
"inputs": [
|
|
19774
|
-
{
|
|
19775
|
-
"internalType": "address",
|
|
19776
|
-
"name": "_treasury",
|
|
19777
|
-
"type": "address"
|
|
19778
|
-
}
|
|
19779
|
-
],
|
|
19780
|
-
"name": "setTreasury",
|
|
19781
|
-
"outputs": [],
|
|
19782
|
-
"stateMutability": "nonpayable",
|
|
19783
|
-
"type": "function"
|
|
19784
|
-
},
|
|
19785
|
-
{
|
|
19786
|
-
"inputs": [
|
|
19787
|
-
{
|
|
19788
|
-
"internalType": "uint256",
|
|
19789
|
-
"name": "escrowId",
|
|
19790
|
-
"type": "uint256"
|
|
19791
|
-
},
|
|
19792
|
-
{
|
|
19793
|
-
"internalType": "bytes32",
|
|
19794
|
-
"name": "deliveryHash",
|
|
19795
|
-
"type": "bytes32"
|
|
19796
|
-
}
|
|
19797
|
-
],
|
|
19798
|
-
"name": "submitDelivery",
|
|
19799
|
-
"outputs": [],
|
|
19800
|
-
"stateMutability": "nonpayable",
|
|
19801
|
-
"type": "function"
|
|
19802
|
-
},
|
|
19803
|
-
{
|
|
19804
|
-
"inputs": [],
|
|
19805
|
-
"name": "totalClosedEscrows",
|
|
19806
|
-
"outputs": [
|
|
19807
|
-
{
|
|
19808
|
-
"internalType": "uint256",
|
|
19809
|
-
"name": "",
|
|
19810
|
-
"type": "uint256"
|
|
19811
|
-
}
|
|
19812
|
-
],
|
|
19813
|
-
"stateMutability": "view",
|
|
19814
|
-
"type": "function"
|
|
19815
|
-
},
|
|
19816
|
-
{
|
|
19817
|
-
"inputs": [
|
|
19818
|
-
{
|
|
19819
|
-
"internalType": "address",
|
|
19820
|
-
"name": "",
|
|
19821
|
-
"type": "address"
|
|
19822
|
-
}
|
|
19823
|
-
],
|
|
19824
|
-
"name": "totalPayoutVolumeByToken",
|
|
19825
|
-
"outputs": [
|
|
19826
|
-
{
|
|
19827
|
-
"internalType": "uint256",
|
|
19828
|
-
"name": "",
|
|
19829
|
-
"type": "uint256"
|
|
19830
|
-
}
|
|
19831
|
-
],
|
|
19832
|
-
"stateMutability": "view",
|
|
19833
|
-
"type": "function"
|
|
19834
|
-
},
|
|
19835
|
-
{
|
|
19836
|
-
"inputs": [
|
|
19837
|
-
{
|
|
19838
|
-
"internalType": "address",
|
|
19839
|
-
"name": "",
|
|
19840
|
-
"type": "address"
|
|
19841
|
-
}
|
|
19842
|
-
],
|
|
19843
|
-
"name": "totalRewardVolumeByToken",
|
|
19844
|
-
"outputs": [
|
|
19845
|
-
{
|
|
19846
|
-
"internalType": "uint256",
|
|
19847
|
-
"name": "",
|
|
19848
|
-
"type": "uint256"
|
|
19849
|
-
}
|
|
19850
|
-
],
|
|
19851
|
-
"stateMutability": "view",
|
|
19852
|
-
"type": "function"
|
|
19853
|
-
},
|
|
19854
|
-
{
|
|
19855
|
-
"inputs": [],
|
|
19856
|
-
"name": "totalSuccessfulEscrows",
|
|
19857
|
-
"outputs": [
|
|
19858
|
-
{
|
|
19859
|
-
"internalType": "uint256",
|
|
19860
|
-
"name": "",
|
|
19861
|
-
"type": "uint256"
|
|
19862
|
-
}
|
|
19863
|
-
],
|
|
19864
|
-
"stateMutability": "view",
|
|
19865
|
-
"type": "function"
|
|
19866
|
-
},
|
|
19867
|
-
{
|
|
19868
|
-
"inputs": [
|
|
19869
|
-
{
|
|
19870
|
-
"internalType": "address",
|
|
19871
|
-
"name": "newOwner",
|
|
19872
|
-
"type": "address"
|
|
19873
|
-
}
|
|
19874
|
-
],
|
|
19875
|
-
"name": "transferOwnership",
|
|
19876
|
-
"outputs": [],
|
|
19877
|
-
"stateMutability": "nonpayable",
|
|
19878
|
-
"type": "function"
|
|
19879
|
-
},
|
|
19880
|
-
{
|
|
19881
|
-
"inputs": [],
|
|
19882
|
-
"name": "treasuryContract",
|
|
19883
|
-
"outputs": [
|
|
19884
|
-
{
|
|
19885
|
-
"internalType": "contract IAgentPactTreasury",
|
|
19886
|
-
"name": "",
|
|
19887
|
-
"type": "address"
|
|
19888
|
-
}
|
|
19889
|
-
],
|
|
19890
|
-
"stateMutability": "view",
|
|
19891
|
-
"type": "function"
|
|
19892
|
-
},
|
|
19893
|
-
{
|
|
19894
|
-
"inputs": [
|
|
19895
|
-
{
|
|
19896
|
-
"internalType": "address",
|
|
19897
|
-
"name": "newImplementation",
|
|
19898
|
-
"type": "address"
|
|
19899
|
-
},
|
|
19900
|
-
{
|
|
19901
|
-
"internalType": "bytes",
|
|
19902
|
-
"name": "data",
|
|
19903
|
-
"type": "bytes"
|
|
19904
|
-
}
|
|
19905
|
-
],
|
|
19906
|
-
"name": "upgradeToAndCall",
|
|
19907
|
-
"outputs": [],
|
|
19908
|
-
"stateMutability": "payable",
|
|
19909
|
-
"type": "function"
|
|
19910
|
-
},
|
|
19911
|
-
{
|
|
19912
|
-
"stateMutability": "payable",
|
|
19913
|
-
"type": "receive"
|
|
19914
|
-
}
|
|
19915
|
-
];
|
|
19916
|
-
var TIPJAR_ABI = [
|
|
19917
|
-
{
|
|
19918
|
-
"inputs": [],
|
|
19919
|
-
"stateMutability": "nonpayable",
|
|
19920
|
-
"type": "constructor"
|
|
19921
|
-
},
|
|
19922
|
-
{
|
|
19923
|
-
"inputs": [
|
|
19924
|
-
{
|
|
19925
|
-
"internalType": "address",
|
|
19926
|
-
"name": "target",
|
|
19927
|
-
"type": "address"
|
|
19928
|
-
}
|
|
19929
|
-
],
|
|
19930
|
-
"name": "AddressEmptyCode",
|
|
19931
|
-
"type": "error"
|
|
19932
|
-
},
|
|
19933
|
-
{
|
|
19934
|
-
"inputs": [],
|
|
19935
|
-
"name": "BelowMinTip",
|
|
19936
|
-
"type": "error"
|
|
19937
|
-
},
|
|
19938
|
-
{
|
|
19939
|
-
"inputs": [],
|
|
19940
|
-
"name": "ECDSAInvalidSignature",
|
|
19941
|
-
"type": "error"
|
|
19942
|
-
},
|
|
19943
|
-
{
|
|
19944
|
-
"inputs": [
|
|
19945
|
-
{
|
|
19946
|
-
"internalType": "uint256",
|
|
19947
|
-
"name": "length",
|
|
19948
|
-
"type": "uint256"
|
|
19949
|
-
}
|
|
19950
|
-
],
|
|
19951
|
-
"name": "ECDSAInvalidSignatureLength",
|
|
19952
|
-
"type": "error"
|
|
19953
|
-
},
|
|
19954
|
-
{
|
|
19955
|
-
"inputs": [
|
|
19956
|
-
{
|
|
19957
|
-
"internalType": "bytes32",
|
|
19958
|
-
"name": "s",
|
|
19959
|
-
"type": "bytes32"
|
|
19960
|
-
}
|
|
19961
|
-
],
|
|
19962
|
-
"name": "ECDSAInvalidSignatureS",
|
|
19963
|
-
"type": "error"
|
|
19964
|
-
},
|
|
19965
|
-
{
|
|
19966
|
-
"inputs": [
|
|
19967
|
-
{
|
|
19968
|
-
"internalType": "address",
|
|
19969
|
-
"name": "implementation",
|
|
19970
|
-
"type": "address"
|
|
19971
|
-
}
|
|
19972
|
-
],
|
|
19973
|
-
"name": "ERC1967InvalidImplementation",
|
|
19974
|
-
"type": "error"
|
|
19975
|
-
},
|
|
19976
|
-
{
|
|
19977
|
-
"inputs": [],
|
|
19978
|
-
"name": "ERC1967NonPayable",
|
|
19979
|
-
"type": "error"
|
|
19980
|
-
},
|
|
19981
|
-
{
|
|
19982
|
-
"inputs": [],
|
|
19983
|
-
"name": "ExceedsDailyCap",
|
|
19984
|
-
"type": "error"
|
|
19985
|
-
},
|
|
19986
|
-
{
|
|
19987
|
-
"inputs": [],
|
|
19988
|
-
"name": "ExceedsMaxTip",
|
|
19989
|
-
"type": "error"
|
|
19990
|
-
},
|
|
19991
|
-
{
|
|
19992
|
-
"inputs": [],
|
|
19993
|
-
"name": "FailedCall",
|
|
19994
|
-
"type": "error"
|
|
19995
|
-
},
|
|
19996
|
-
{
|
|
19997
|
-
"inputs": [],
|
|
19998
|
-
"name": "FeeTooHigh",
|
|
19999
|
-
"type": "error"
|
|
20000
|
-
},
|
|
20001
|
-
{
|
|
20002
|
-
"inputs": [],
|
|
20003
|
-
"name": "InsufficientAllowance",
|
|
20004
|
-
"type": "error"
|
|
20005
|
-
},
|
|
20006
|
-
{
|
|
20007
|
-
"inputs": [],
|
|
20008
|
-
"name": "InvalidInitialization",
|
|
20009
|
-
"type": "error"
|
|
20010
|
-
},
|
|
20011
|
-
{
|
|
20012
|
-
"inputs": [],
|
|
20013
|
-
"name": "InvalidSignature",
|
|
20014
|
-
"type": "error"
|
|
20015
|
-
},
|
|
20016
|
-
{
|
|
20017
|
-
"inputs": [],
|
|
20018
|
-
"name": "NonceAlreadyUsed",
|
|
20019
|
-
"type": "error"
|
|
20020
|
-
},
|
|
20021
|
-
{
|
|
20022
|
-
"inputs": [],
|
|
20023
|
-
"name": "NotInitializing",
|
|
20024
|
-
"type": "error"
|
|
20025
|
-
},
|
|
20026
|
-
{
|
|
20027
|
-
"inputs": [
|
|
20028
|
-
{
|
|
20029
|
-
"internalType": "address",
|
|
20030
|
-
"name": "owner",
|
|
20031
|
-
"type": "address"
|
|
20032
|
-
}
|
|
20033
|
-
],
|
|
20034
|
-
"name": "OwnableInvalidOwner",
|
|
20035
|
-
"type": "error"
|
|
20036
|
-
},
|
|
20037
|
-
{
|
|
20038
|
-
"inputs": [
|
|
20039
|
-
{
|
|
20040
|
-
"internalType": "address",
|
|
20041
|
-
"name": "account",
|
|
20042
|
-
"type": "address"
|
|
20043
|
-
}
|
|
20044
|
-
],
|
|
20045
|
-
"name": "OwnableUnauthorizedAccount",
|
|
20046
|
-
"type": "error"
|
|
20047
|
-
},
|
|
20048
|
-
{
|
|
20049
|
-
"inputs": [],
|
|
20050
|
-
"name": "ReentrancyGuardReentrantCall",
|
|
20051
|
-
"type": "error"
|
|
20052
|
-
},
|
|
20053
|
-
{
|
|
20054
|
-
"inputs": [
|
|
20055
|
-
{
|
|
20056
|
-
"internalType": "address",
|
|
20057
|
-
"name": "token",
|
|
20058
|
-
"type": "address"
|
|
20059
|
-
}
|
|
20060
|
-
],
|
|
20061
|
-
"name": "SafeERC20FailedOperation",
|
|
20062
|
-
"type": "error"
|
|
20063
|
-
},
|
|
20064
|
-
{
|
|
20065
|
-
"inputs": [],
|
|
20066
|
-
"name": "SelfTipNotAllowed",
|
|
20067
|
-
"type": "error"
|
|
20068
|
-
},
|
|
20069
|
-
{
|
|
20070
|
-
"inputs": [],
|
|
20071
|
-
"name": "SignatureExpired",
|
|
20072
|
-
"type": "error"
|
|
20073
|
-
},
|
|
20074
|
-
{
|
|
20075
|
-
"inputs": [],
|
|
20076
|
-
"name": "TippingPausedError",
|
|
20077
|
-
"type": "error"
|
|
20078
|
-
},
|
|
20079
|
-
{
|
|
20080
|
-
"inputs": [],
|
|
20081
|
-
"name": "UUPSUnauthorizedCallContext",
|
|
20082
|
-
"type": "error"
|
|
20083
|
-
},
|
|
20084
|
-
{
|
|
20085
|
-
"inputs": [
|
|
20086
|
-
{
|
|
20087
|
-
"internalType": "bytes32",
|
|
20088
|
-
"name": "slot",
|
|
20089
|
-
"type": "bytes32"
|
|
20090
|
-
}
|
|
20091
|
-
],
|
|
20092
|
-
"name": "UUPSUnsupportedProxiableUUID",
|
|
20093
|
-
"type": "error"
|
|
20094
|
-
},
|
|
20095
|
-
{
|
|
20096
|
-
"inputs": [],
|
|
20097
|
-
"name": "ZeroAddress",
|
|
20098
|
-
"type": "error"
|
|
20099
|
-
},
|
|
20100
|
-
{
|
|
20101
|
-
"inputs": [],
|
|
20102
|
-
"name": "ZeroAmount",
|
|
20103
|
-
"type": "error"
|
|
20104
|
-
},
|
|
20105
|
-
{
|
|
20106
|
-
"anonymous": false,
|
|
20107
|
-
"inputs": [
|
|
20108
|
-
{
|
|
20109
|
-
"indexed": false,
|
|
20110
|
-
"internalType": "uint256",
|
|
20111
|
-
"name": "oldCap",
|
|
20112
|
-
"type": "uint256"
|
|
20113
|
-
},
|
|
20114
|
-
{
|
|
20115
|
-
"indexed": false,
|
|
20116
|
-
"internalType": "uint256",
|
|
20117
|
-
"name": "newCap",
|
|
20118
|
-
"type": "uint256"
|
|
20119
|
-
}
|
|
20120
|
-
],
|
|
20121
|
-
"name": "DailyTipCapUpdated",
|
|
20122
|
-
"type": "event"
|
|
20123
|
-
},
|
|
20124
|
-
{
|
|
20125
|
-
"anonymous": false,
|
|
20126
|
-
"inputs": [],
|
|
20127
|
-
"name": "EIP712DomainChanged",
|
|
20128
|
-
"type": "event"
|
|
20129
|
-
},
|
|
20130
|
-
{
|
|
20131
|
-
"anonymous": false,
|
|
20132
|
-
"inputs": [
|
|
20133
|
-
{
|
|
20134
|
-
"indexed": false,
|
|
20135
|
-
"internalType": "uint64",
|
|
20136
|
-
"name": "version",
|
|
20137
|
-
"type": "uint64"
|
|
20138
|
-
}
|
|
20139
|
-
],
|
|
20140
|
-
"name": "Initialized",
|
|
20141
|
-
"type": "event"
|
|
20142
|
-
},
|
|
20143
|
-
{
|
|
20144
|
-
"anonymous": false,
|
|
20145
|
-
"inputs": [
|
|
20146
|
-
{
|
|
20147
|
-
"indexed": false,
|
|
20148
|
-
"internalType": "uint256",
|
|
20149
|
-
"name": "oldMax",
|
|
20150
|
-
"type": "uint256"
|
|
20151
|
-
},
|
|
20152
|
-
{
|
|
20153
|
-
"indexed": false,
|
|
20154
|
-
"internalType": "uint256",
|
|
20155
|
-
"name": "newMax",
|
|
20156
|
-
"type": "uint256"
|
|
20157
|
-
}
|
|
20158
|
-
],
|
|
20159
|
-
"name": "MaxTipAmountUpdated",
|
|
20160
|
-
"type": "event"
|
|
20161
|
-
},
|
|
20162
|
-
{
|
|
20163
|
-
"anonymous": false,
|
|
20164
|
-
"inputs": [
|
|
20165
|
-
{
|
|
20166
|
-
"indexed": true,
|
|
20167
|
-
"internalType": "address",
|
|
20168
|
-
"name": "previousOwner",
|
|
20169
|
-
"type": "address"
|
|
20170
|
-
},
|
|
20171
|
-
{
|
|
20172
|
-
"indexed": true,
|
|
20173
|
-
"internalType": "address",
|
|
20174
|
-
"name": "newOwner",
|
|
20175
|
-
"type": "address"
|
|
20176
|
-
}
|
|
20177
|
-
],
|
|
20178
|
-
"name": "OwnershipTransferred",
|
|
20179
|
-
"type": "event"
|
|
20180
|
-
},
|
|
20181
|
-
{
|
|
20182
|
-
"anonymous": false,
|
|
20183
|
-
"inputs": [
|
|
20184
|
-
{
|
|
20185
|
-
"indexed": false,
|
|
20186
|
-
"internalType": "uint16",
|
|
20187
|
-
"name": "oldFeeBps",
|
|
20188
|
-
"type": "uint16"
|
|
20189
|
-
},
|
|
20190
|
-
{
|
|
20191
|
-
"indexed": false,
|
|
20192
|
-
"internalType": "uint16",
|
|
20193
|
-
"name": "newFeeBps",
|
|
20194
|
-
"type": "uint16"
|
|
20195
|
-
}
|
|
20196
|
-
],
|
|
20197
|
-
"name": "PlatformFeeUpdated",
|
|
20198
|
-
"type": "event"
|
|
20199
|
-
},
|
|
20200
|
-
{
|
|
20201
|
-
"anonymous": false,
|
|
20202
|
-
"inputs": [
|
|
20203
|
-
{
|
|
20204
|
-
"indexed": false,
|
|
20205
|
-
"internalType": "address",
|
|
20206
|
-
"name": "oldSigner",
|
|
20207
|
-
"type": "address"
|
|
20208
|
-
},
|
|
20209
|
-
{
|
|
20210
|
-
"indexed": false,
|
|
20211
|
-
"internalType": "address",
|
|
20212
|
-
"name": "newSigner",
|
|
20213
|
-
"type": "address"
|
|
20214
|
-
}
|
|
20215
|
-
],
|
|
20216
|
-
"name": "PlatformSignerUpdated",
|
|
20217
|
-
"type": "event"
|
|
20218
|
-
},
|
|
20219
|
-
{
|
|
20220
|
-
"anonymous": false,
|
|
20221
|
-
"inputs": [
|
|
20222
|
-
{
|
|
20223
|
-
"indexed": true,
|
|
20224
|
-
"internalType": "address",
|
|
20225
|
-
"name": "from",
|
|
20226
|
-
"type": "address"
|
|
20227
|
-
},
|
|
20228
|
-
{
|
|
20229
|
-
"indexed": true,
|
|
20230
|
-
"internalType": "address",
|
|
20231
|
-
"name": "to",
|
|
20232
|
-
"type": "address"
|
|
20233
|
-
},
|
|
20234
|
-
{
|
|
20235
|
-
"indexed": false,
|
|
20236
|
-
"internalType": "uint256",
|
|
20237
|
-
"name": "amount",
|
|
20238
|
-
"type": "uint256"
|
|
20239
|
-
},
|
|
20240
|
-
{
|
|
20241
|
-
"indexed": false,
|
|
20242
|
-
"internalType": "uint256",
|
|
20243
|
-
"name": "fee",
|
|
20244
|
-
"type": "uint256"
|
|
20245
|
-
},
|
|
20246
|
-
{
|
|
20247
|
-
"indexed": false,
|
|
20248
|
-
"internalType": "string",
|
|
20249
|
-
"name": "postId",
|
|
20250
|
-
"type": "string"
|
|
20251
|
-
}
|
|
20252
|
-
],
|
|
20253
|
-
"name": "TipSent",
|
|
20254
|
-
"type": "event"
|
|
20255
|
-
},
|
|
20256
|
-
{
|
|
20257
|
-
"anonymous": false,
|
|
20258
|
-
"inputs": [
|
|
20259
|
-
{
|
|
20260
|
-
"indexed": false,
|
|
20261
|
-
"internalType": "bool",
|
|
20262
|
-
"name": "paused",
|
|
20263
|
-
"type": "bool"
|
|
20264
|
-
}
|
|
20265
|
-
],
|
|
20266
|
-
"name": "TippingPaused",
|
|
20267
|
-
"type": "event"
|
|
20268
|
-
},
|
|
20269
|
-
{
|
|
20270
|
-
"anonymous": false,
|
|
20271
|
-
"inputs": [
|
|
20272
|
-
{
|
|
20273
|
-
"indexed": false,
|
|
20274
|
-
"internalType": "address",
|
|
20275
|
-
"name": "oldTreasury",
|
|
20276
|
-
"type": "address"
|
|
20277
|
-
},
|
|
20278
|
-
{
|
|
20279
|
-
"indexed": false,
|
|
20280
|
-
"internalType": "address",
|
|
20281
|
-
"name": "newTreasury",
|
|
20282
|
-
"type": "address"
|
|
20283
|
-
}
|
|
20284
|
-
],
|
|
20285
|
-
"name": "TreasuryUpdated",
|
|
20286
|
-
"type": "event"
|
|
20287
|
-
},
|
|
20288
|
-
{
|
|
20289
|
-
"anonymous": false,
|
|
20290
|
-
"inputs": [
|
|
20291
|
-
{
|
|
20292
|
-
"indexed": true,
|
|
20293
|
-
"internalType": "address",
|
|
20294
|
-
"name": "implementation",
|
|
20295
|
-
"type": "address"
|
|
20296
|
-
}
|
|
20297
|
-
],
|
|
20298
|
-
"name": "Upgraded",
|
|
20299
|
-
"type": "event"
|
|
20300
|
-
},
|
|
20301
|
-
{
|
|
20302
|
-
"inputs": [],
|
|
20303
|
-
"name": "MAX_FEE_BPS",
|
|
20304
|
-
"outputs": [
|
|
20305
|
-
{
|
|
20306
|
-
"internalType": "uint16",
|
|
20307
|
-
"name": "",
|
|
20308
|
-
"type": "uint16"
|
|
20309
|
-
}
|
|
20310
|
-
],
|
|
20311
|
-
"stateMutability": "view",
|
|
20312
|
-
"type": "function"
|
|
20313
|
-
},
|
|
20314
|
-
{
|
|
20315
|
-
"inputs": [],
|
|
20316
|
-
"name": "MIN_TIP_AMOUNT",
|
|
20317
|
-
"outputs": [
|
|
20318
|
-
{
|
|
20319
|
-
"internalType": "uint256",
|
|
20320
|
-
"name": "",
|
|
20321
|
-
"type": "uint256"
|
|
20322
|
-
}
|
|
20323
|
-
],
|
|
20324
|
-
"stateMutability": "view",
|
|
20325
|
-
"type": "function"
|
|
20326
|
-
},
|
|
20327
|
-
{
|
|
20328
|
-
"inputs": [],
|
|
20329
|
-
"name": "TIP_TYPEHASH",
|
|
20330
|
-
"outputs": [
|
|
20331
|
-
{
|
|
20332
|
-
"internalType": "bytes32",
|
|
20333
|
-
"name": "",
|
|
20334
|
-
"type": "bytes32"
|
|
20335
|
-
}
|
|
20336
|
-
],
|
|
20337
|
-
"stateMutability": "view",
|
|
20338
|
-
"type": "function"
|
|
20339
|
-
},
|
|
20340
|
-
{
|
|
20341
|
-
"inputs": [],
|
|
20342
|
-
"name": "UPGRADE_INTERFACE_VERSION",
|
|
20343
|
-
"outputs": [
|
|
20344
|
-
{
|
|
20345
|
-
"internalType": "string",
|
|
20346
|
-
"name": "",
|
|
20347
|
-
"type": "string"
|
|
20348
|
-
}
|
|
20349
|
-
],
|
|
20350
|
-
"stateMutability": "view",
|
|
20351
|
-
"type": "function"
|
|
20352
|
-
},
|
|
20353
|
-
{
|
|
20354
|
-
"inputs": [],
|
|
20355
|
-
"name": "dailyTipCap",
|
|
20356
|
-
"outputs": [
|
|
20357
|
-
{
|
|
20358
|
-
"internalType": "uint256",
|
|
20359
|
-
"name": "",
|
|
20360
|
-
"type": "uint256"
|
|
20361
|
-
}
|
|
20362
|
-
],
|
|
20363
|
-
"stateMutability": "view",
|
|
20364
|
-
"type": "function"
|
|
20365
|
-
},
|
|
20366
|
-
{
|
|
20367
|
-
"inputs": [
|
|
20368
|
-
{
|
|
20369
|
-
"internalType": "address",
|
|
20370
|
-
"name": "user",
|
|
20371
|
-
"type": "address"
|
|
20372
|
-
}
|
|
20373
|
-
],
|
|
20374
|
-
"name": "dailyTipSpent",
|
|
20375
|
-
"outputs": [
|
|
20376
|
-
{
|
|
20377
|
-
"internalType": "uint256",
|
|
20378
|
-
"name": "",
|
|
20379
|
-
"type": "uint256"
|
|
20380
|
-
}
|
|
20381
|
-
],
|
|
20382
|
-
"stateMutability": "view",
|
|
20383
|
-
"type": "function"
|
|
20384
|
-
},
|
|
20385
|
-
{
|
|
20386
|
-
"inputs": [],
|
|
20387
|
-
"name": "domainSeparator",
|
|
20388
|
-
"outputs": [
|
|
20389
|
-
{
|
|
20390
|
-
"internalType": "bytes32",
|
|
20391
|
-
"name": "",
|
|
20392
|
-
"type": "bytes32"
|
|
20393
|
-
}
|
|
20394
|
-
],
|
|
20395
|
-
"stateMutability": "view",
|
|
20396
|
-
"type": "function"
|
|
20397
|
-
},
|
|
20398
|
-
{
|
|
20399
|
-
"inputs": [],
|
|
20400
|
-
"name": "eip712Domain",
|
|
20401
|
-
"outputs": [
|
|
20402
|
-
{
|
|
20403
|
-
"internalType": "bytes1",
|
|
20404
|
-
"name": "fields",
|
|
20405
|
-
"type": "bytes1"
|
|
20406
|
-
},
|
|
20407
|
-
{
|
|
20408
|
-
"internalType": "string",
|
|
20409
|
-
"name": "name",
|
|
20410
|
-
"type": "string"
|
|
20411
|
-
},
|
|
20412
|
-
{
|
|
20413
|
-
"internalType": "string",
|
|
20414
|
-
"name": "version",
|
|
20415
|
-
"type": "string"
|
|
20416
|
-
},
|
|
20417
|
-
{
|
|
20418
|
-
"internalType": "uint256",
|
|
20419
|
-
"name": "chainId",
|
|
20420
|
-
"type": "uint256"
|
|
20421
|
-
},
|
|
20422
|
-
{
|
|
20423
|
-
"internalType": "address",
|
|
20424
|
-
"name": "verifyingContract",
|
|
20425
|
-
"type": "address"
|
|
20426
|
-
},
|
|
20427
|
-
{
|
|
20428
|
-
"internalType": "bytes32",
|
|
20429
|
-
"name": "salt",
|
|
20430
|
-
"type": "bytes32"
|
|
20431
|
-
},
|
|
20432
|
-
{
|
|
20433
|
-
"internalType": "uint256[]",
|
|
20434
|
-
"name": "extensions",
|
|
20435
|
-
"type": "uint256[]"
|
|
20436
|
-
}
|
|
20437
|
-
],
|
|
20438
|
-
"stateMutability": "view",
|
|
20439
|
-
"type": "function"
|
|
20440
|
-
},
|
|
20441
|
-
{
|
|
20442
|
-
"inputs": [
|
|
20443
|
-
{
|
|
20444
|
-
"internalType": "address",
|
|
20445
|
-
"name": "_usdc",
|
|
20446
|
-
"type": "address"
|
|
20447
|
-
},
|
|
20448
|
-
{
|
|
20449
|
-
"internalType": "address",
|
|
20450
|
-
"name": "_platformSigner",
|
|
20451
|
-
"type": "address"
|
|
20452
|
-
},
|
|
20453
|
-
{
|
|
20454
|
-
"internalType": "address",
|
|
20455
|
-
"name": "_treasury",
|
|
20456
|
-
"type": "address"
|
|
20457
|
-
},
|
|
20458
|
-
{
|
|
20459
|
-
"internalType": "address",
|
|
20460
|
-
"name": "_owner",
|
|
20461
|
-
"type": "address"
|
|
20462
|
-
}
|
|
20463
|
-
],
|
|
20464
|
-
"name": "initialize",
|
|
20465
|
-
"outputs": [],
|
|
20466
|
-
"stateMutability": "nonpayable",
|
|
20467
|
-
"type": "function"
|
|
20468
|
-
},
|
|
20469
|
-
{
|
|
20470
|
-
"inputs": [
|
|
20471
|
-
{
|
|
20472
|
-
"internalType": "address",
|
|
20473
|
-
"name": "tipper",
|
|
20474
|
-
"type": "address"
|
|
20475
|
-
},
|
|
20476
|
-
{
|
|
20477
|
-
"internalType": "uint256",
|
|
20478
|
-
"name": "nonce",
|
|
20479
|
-
"type": "uint256"
|
|
20480
|
-
}
|
|
20481
|
-
],
|
|
20482
|
-
"name": "isNonceUsed",
|
|
20483
|
-
"outputs": [
|
|
20484
|
-
{
|
|
20485
|
-
"internalType": "bool",
|
|
20486
|
-
"name": "",
|
|
20487
|
-
"type": "bool"
|
|
20488
|
-
}
|
|
20489
|
-
],
|
|
20490
|
-
"stateMutability": "view",
|
|
20491
|
-
"type": "function"
|
|
20492
|
-
},
|
|
20493
|
-
{
|
|
20494
|
-
"inputs": [],
|
|
20495
|
-
"name": "maxTipAmount",
|
|
20496
|
-
"outputs": [
|
|
20497
|
-
{
|
|
20498
|
-
"internalType": "uint256",
|
|
20499
|
-
"name": "",
|
|
20500
|
-
"type": "uint256"
|
|
20501
|
-
}
|
|
20502
|
-
],
|
|
20503
|
-
"stateMutability": "view",
|
|
20504
|
-
"type": "function"
|
|
20505
|
-
},
|
|
20506
|
-
{
|
|
20507
|
-
"inputs": [],
|
|
20508
|
-
"name": "owner",
|
|
20509
|
-
"outputs": [
|
|
20510
|
-
{
|
|
20511
|
-
"internalType": "address",
|
|
20512
|
-
"name": "",
|
|
20513
|
-
"type": "address"
|
|
20514
|
-
}
|
|
20515
|
-
],
|
|
20516
|
-
"stateMutability": "view",
|
|
20517
|
-
"type": "function"
|
|
20518
|
-
},
|
|
20519
|
-
{
|
|
20520
|
-
"inputs": [],
|
|
20521
|
-
"name": "paused",
|
|
20522
|
-
"outputs": [
|
|
20523
|
-
{
|
|
20524
|
-
"internalType": "bool",
|
|
20525
|
-
"name": "",
|
|
20526
|
-
"type": "bool"
|
|
20527
|
-
}
|
|
20528
|
-
],
|
|
20529
|
-
"stateMutability": "view",
|
|
20530
|
-
"type": "function"
|
|
20531
|
-
},
|
|
20532
|
-
{
|
|
20533
|
-
"inputs": [],
|
|
20534
|
-
"name": "platformFeeBps",
|
|
20535
|
-
"outputs": [
|
|
20536
|
-
{
|
|
20537
|
-
"internalType": "uint16",
|
|
20538
|
-
"name": "",
|
|
20539
|
-
"type": "uint16"
|
|
20540
|
-
}
|
|
20541
|
-
],
|
|
20542
|
-
"stateMutability": "view",
|
|
20543
|
-
"type": "function"
|
|
20544
|
-
},
|
|
20545
|
-
{
|
|
20546
|
-
"inputs": [],
|
|
20547
|
-
"name": "platformSigner",
|
|
20548
|
-
"outputs": [
|
|
20549
|
-
{
|
|
20550
|
-
"internalType": "address",
|
|
20551
|
-
"name": "",
|
|
20552
|
-
"type": "address"
|
|
20553
|
-
}
|
|
20554
|
-
],
|
|
20555
|
-
"stateMutability": "view",
|
|
20556
|
-
"type": "function"
|
|
20557
|
-
},
|
|
20558
|
-
{
|
|
20559
|
-
"inputs": [],
|
|
20560
|
-
"name": "proxiableUUID",
|
|
20561
|
-
"outputs": [
|
|
20562
|
-
{
|
|
20563
|
-
"internalType": "bytes32",
|
|
20564
|
-
"name": "",
|
|
20565
|
-
"type": "bytes32"
|
|
20566
|
-
}
|
|
20567
|
-
],
|
|
20568
|
-
"stateMutability": "view",
|
|
20569
|
-
"type": "function"
|
|
20570
|
-
},
|
|
20571
|
-
{
|
|
20572
|
-
"inputs": [],
|
|
20573
|
-
"name": "renounceOwnership",
|
|
20574
|
-
"outputs": [],
|
|
20575
|
-
"stateMutability": "nonpayable",
|
|
20576
|
-
"type": "function"
|
|
20577
|
-
},
|
|
20578
|
-
{
|
|
20579
|
-
"inputs": [],
|
|
20580
|
-
"name": "reputationRegistry",
|
|
20581
|
-
"outputs": [
|
|
20582
|
-
{
|
|
20583
|
-
"internalType": "contract IAgentPactReputationRegistry",
|
|
20584
|
-
"name": "",
|
|
20585
|
-
"type": "address"
|
|
20586
|
-
}
|
|
20587
|
-
],
|
|
20588
|
-
"stateMutability": "view",
|
|
20589
|
-
"type": "function"
|
|
20590
|
-
},
|
|
20591
|
-
{
|
|
20592
|
-
"inputs": [
|
|
20593
|
-
{
|
|
20594
|
-
"internalType": "uint256",
|
|
20595
|
-
"name": "newCap",
|
|
20596
|
-
"type": "uint256"
|
|
20597
|
-
}
|
|
20598
|
-
],
|
|
20599
|
-
"name": "setDailyTipCap",
|
|
20600
|
-
"outputs": [],
|
|
20601
|
-
"stateMutability": "nonpayable",
|
|
20602
|
-
"type": "function"
|
|
20603
|
-
},
|
|
20604
|
-
{
|
|
20605
|
-
"inputs": [
|
|
20606
|
-
{
|
|
20607
|
-
"internalType": "uint256",
|
|
20608
|
-
"name": "newMax",
|
|
20609
|
-
"type": "uint256"
|
|
20610
|
-
}
|
|
20611
|
-
],
|
|
20612
|
-
"name": "setMaxTipAmount",
|
|
20613
|
-
"outputs": [],
|
|
20614
|
-
"stateMutability": "nonpayable",
|
|
20615
|
-
"type": "function"
|
|
20616
|
-
},
|
|
20617
|
-
{
|
|
20618
|
-
"inputs": [
|
|
20619
|
-
{
|
|
20620
|
-
"internalType": "bool",
|
|
20621
|
-
"name": "_paused",
|
|
20622
|
-
"type": "bool"
|
|
20623
|
-
}
|
|
20624
|
-
],
|
|
20625
|
-
"name": "setPaused",
|
|
20626
|
-
"outputs": [],
|
|
20627
|
-
"stateMutability": "nonpayable",
|
|
20628
|
-
"type": "function"
|
|
20629
|
-
},
|
|
20630
|
-
{
|
|
20631
|
-
"inputs": [
|
|
20632
|
-
{
|
|
20633
|
-
"internalType": "uint16",
|
|
20634
|
-
"name": "newFeeBps",
|
|
20635
|
-
"type": "uint16"
|
|
20636
|
-
}
|
|
20637
|
-
],
|
|
20638
|
-
"name": "setPlatformFeeBps",
|
|
20639
|
-
"outputs": [],
|
|
20640
|
-
"stateMutability": "nonpayable",
|
|
20641
|
-
"type": "function"
|
|
20642
|
-
},
|
|
20643
|
-
{
|
|
20644
|
-
"inputs": [
|
|
20645
|
-
{
|
|
20646
|
-
"internalType": "address",
|
|
20647
|
-
"name": "newSigner",
|
|
20648
|
-
"type": "address"
|
|
20649
|
-
}
|
|
20650
|
-
],
|
|
20651
|
-
"name": "setPlatformSigner",
|
|
20652
|
-
"outputs": [],
|
|
20653
|
-
"stateMutability": "nonpayable",
|
|
20654
|
-
"type": "function"
|
|
20655
|
-
},
|
|
20656
|
-
{
|
|
20657
|
-
"inputs": [
|
|
20658
|
-
{
|
|
20659
|
-
"internalType": "address",
|
|
20660
|
-
"name": "registry",
|
|
20661
|
-
"type": "address"
|
|
20662
|
-
}
|
|
20663
|
-
],
|
|
20664
|
-
"name": "setReputationRegistry",
|
|
20665
|
-
"outputs": [],
|
|
20666
|
-
"stateMutability": "nonpayable",
|
|
20667
|
-
"type": "function"
|
|
20668
|
-
},
|
|
20669
|
-
{
|
|
20670
|
-
"inputs": [
|
|
20671
|
-
{
|
|
20672
|
-
"internalType": "address",
|
|
20673
|
-
"name": "newTreasury",
|
|
20674
|
-
"type": "address"
|
|
20675
|
-
}
|
|
20676
|
-
],
|
|
20677
|
-
"name": "setTreasury",
|
|
20678
|
-
"outputs": [],
|
|
20679
|
-
"stateMutability": "nonpayable",
|
|
20680
|
-
"type": "function"
|
|
20681
|
-
},
|
|
20682
|
-
{
|
|
20683
|
-
"inputs": [
|
|
20684
|
-
{
|
|
20685
|
-
"internalType": "address",
|
|
20686
|
-
"name": "_treasury",
|
|
20687
|
-
"type": "address"
|
|
20688
|
-
}
|
|
20689
|
-
],
|
|
20690
|
-
"name": "setTreasuryContract",
|
|
20691
|
-
"outputs": [],
|
|
20692
|
-
"stateMutability": "nonpayable",
|
|
20693
|
-
"type": "function"
|
|
20694
|
-
},
|
|
20695
|
-
{
|
|
20696
|
-
"inputs": [
|
|
20697
|
-
{
|
|
20698
|
-
"internalType": "address",
|
|
20699
|
-
"name": "_usdc",
|
|
20700
|
-
"type": "address"
|
|
20701
|
-
}
|
|
20702
|
-
],
|
|
20703
|
-
"name": "setUsdcToken",
|
|
20704
|
-
"outputs": [],
|
|
20705
|
-
"stateMutability": "nonpayable",
|
|
20706
|
-
"type": "function"
|
|
20707
|
-
},
|
|
20708
|
-
{
|
|
20709
|
-
"inputs": [
|
|
20710
|
-
{
|
|
20711
|
-
"internalType": "address",
|
|
20712
|
-
"name": "recipient",
|
|
20713
|
-
"type": "address"
|
|
20714
|
-
},
|
|
20715
|
-
{
|
|
20716
|
-
"internalType": "uint256",
|
|
20717
|
-
"name": "amount",
|
|
20718
|
-
"type": "uint256"
|
|
20719
|
-
},
|
|
20720
|
-
{
|
|
20721
|
-
"internalType": "string",
|
|
20722
|
-
"name": "postId",
|
|
20723
|
-
"type": "string"
|
|
20724
|
-
},
|
|
20725
|
-
{
|
|
20726
|
-
"internalType": "uint256",
|
|
20727
|
-
"name": "nonce",
|
|
20728
|
-
"type": "uint256"
|
|
20729
|
-
},
|
|
20730
|
-
{
|
|
20731
|
-
"internalType": "uint256",
|
|
20732
|
-
"name": "expiredAt",
|
|
20733
|
-
"type": "uint256"
|
|
20734
|
-
},
|
|
20735
|
-
{
|
|
20736
|
-
"internalType": "bytes",
|
|
20737
|
-
"name": "platformSignature",
|
|
20738
|
-
"type": "bytes"
|
|
20739
|
-
}
|
|
20740
|
-
],
|
|
20741
|
-
"name": "tip",
|
|
20742
|
-
"outputs": [],
|
|
20743
|
-
"stateMutability": "nonpayable",
|
|
20744
|
-
"type": "function"
|
|
20745
|
-
},
|
|
20746
|
-
{
|
|
20747
|
-
"inputs": [
|
|
20748
|
-
{
|
|
20749
|
-
"internalType": "address",
|
|
20750
|
-
"name": "user",
|
|
20751
|
-
"type": "address"
|
|
20752
|
-
}
|
|
20753
|
-
],
|
|
20754
|
-
"name": "tipStats",
|
|
20755
|
-
"outputs": [
|
|
20756
|
-
{
|
|
20757
|
-
"components": [
|
|
20758
|
-
{
|
|
20759
|
-
"internalType": "uint256",
|
|
20760
|
-
"name": "totalSent",
|
|
20761
|
-
"type": "uint256"
|
|
20762
|
-
},
|
|
20763
|
-
{
|
|
20764
|
-
"internalType": "uint256",
|
|
20765
|
-
"name": "totalReceived",
|
|
20766
|
-
"type": "uint256"
|
|
20767
|
-
},
|
|
20768
|
-
{
|
|
20769
|
-
"internalType": "uint256",
|
|
20770
|
-
"name": "totalFeesPaid",
|
|
20771
|
-
"type": "uint256"
|
|
20772
|
-
},
|
|
20773
|
-
{
|
|
20774
|
-
"internalType": "uint64",
|
|
20775
|
-
"name": "tipsSentCount",
|
|
20776
|
-
"type": "uint64"
|
|
20777
|
-
},
|
|
20778
|
-
{
|
|
20779
|
-
"internalType": "uint64",
|
|
20780
|
-
"name": "tipsReceivedCount",
|
|
20781
|
-
"type": "uint64"
|
|
20782
|
-
}
|
|
20783
|
-
],
|
|
20784
|
-
"internalType": "struct IAgentPactTipJar.TipStats",
|
|
20785
|
-
"name": "",
|
|
20786
|
-
"type": "tuple"
|
|
20787
|
-
}
|
|
20788
|
-
],
|
|
20789
|
-
"stateMutability": "view",
|
|
20790
|
-
"type": "function"
|
|
20791
|
-
},
|
|
20792
|
-
{
|
|
20793
|
-
"inputs": [
|
|
20794
|
-
{
|
|
20795
|
-
"internalType": "address",
|
|
20796
|
-
"name": "newOwner",
|
|
20797
|
-
"type": "address"
|
|
20798
|
-
}
|
|
20799
|
-
],
|
|
20800
|
-
"name": "transferOwnership",
|
|
20801
|
-
"outputs": [],
|
|
20802
|
-
"stateMutability": "nonpayable",
|
|
20803
|
-
"type": "function"
|
|
20804
|
-
},
|
|
20805
|
-
{
|
|
20806
|
-
"inputs": [],
|
|
20807
|
-
"name": "treasury",
|
|
20808
|
-
"outputs": [
|
|
20809
|
-
{
|
|
20810
|
-
"internalType": "address",
|
|
20811
|
-
"name": "",
|
|
20812
|
-
"type": "address"
|
|
20813
|
-
}
|
|
20814
|
-
],
|
|
20815
|
-
"stateMutability": "view",
|
|
20816
|
-
"type": "function"
|
|
20817
|
-
},
|
|
20818
|
-
{
|
|
20819
|
-
"inputs": [],
|
|
20820
|
-
"name": "treasuryContract",
|
|
20821
|
-
"outputs": [
|
|
20822
|
-
{
|
|
20823
|
-
"internalType": "contract IAgentPactTreasury",
|
|
20824
|
-
"name": "",
|
|
20825
|
-
"type": "address"
|
|
20826
|
-
}
|
|
20827
|
-
],
|
|
20828
|
-
"stateMutability": "view",
|
|
20829
|
-
"type": "function"
|
|
20830
|
-
},
|
|
20831
|
-
{
|
|
20832
|
-
"inputs": [
|
|
20833
|
-
{
|
|
20834
|
-
"internalType": "address",
|
|
20835
|
-
"name": "newImplementation",
|
|
20836
|
-
"type": "address"
|
|
20837
|
-
},
|
|
20838
|
-
{
|
|
20839
|
-
"internalType": "bytes",
|
|
20840
|
-
"name": "data",
|
|
20841
|
-
"type": "bytes"
|
|
20842
|
-
}
|
|
20843
|
-
],
|
|
20844
|
-
"name": "upgradeToAndCall",
|
|
20845
|
-
"outputs": [],
|
|
20846
|
-
"stateMutability": "payable",
|
|
20847
|
-
"type": "function"
|
|
20848
|
-
},
|
|
20849
|
-
{
|
|
20850
|
-
"inputs": [],
|
|
20851
|
-
"name": "usdcToken",
|
|
20852
|
-
"outputs": [
|
|
20853
|
-
{
|
|
20854
|
-
"internalType": "contract IERC20",
|
|
20855
|
-
"name": "",
|
|
20856
|
-
"type": "address"
|
|
20857
|
-
}
|
|
20858
|
-
],
|
|
20859
|
-
"stateMutability": "view",
|
|
20860
|
-
"type": "function"
|
|
20861
|
-
},
|
|
20862
|
-
{
|
|
20863
|
-
"inputs": [
|
|
20864
|
-
{
|
|
20865
|
-
"internalType": "bytes32",
|
|
20866
|
-
"name": "nonceHash",
|
|
20867
|
-
"type": "bytes32"
|
|
20868
|
-
}
|
|
20869
|
-
],
|
|
20870
|
-
"name": "usedNonces",
|
|
20871
|
-
"outputs": [
|
|
20872
|
-
{
|
|
20873
|
-
"internalType": "bool",
|
|
20874
|
-
"name": "",
|
|
20875
|
-
"type": "bool"
|
|
20876
|
-
}
|
|
20877
|
-
],
|
|
20878
|
-
"stateMutability": "view",
|
|
20879
|
-
"type": "function"
|
|
20880
|
-
}
|
|
20881
|
-
];
|
|
18302
|
+
var ESCROW_ABI = [{ "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [{ "internalType": "address", "name": "target", "type": "address" }], "name": "AddressEmptyCode", "type": "error" }, { "inputs": [], "name": "DeadlineNotReached", "type": "error" }, { "inputs": [], "name": "DeadlinePassed", "type": "error" }, { "inputs": [], "name": "ECDSAInvalidSignature", "type": "error" }, { "inputs": [{ "internalType": "uint256", "name": "length", "type": "uint256" }], "name": "ECDSAInvalidSignatureLength", "type": "error" }, { "inputs": [{ "internalType": "bytes32", "name": "s", "type": "bytes32" }], "name": "ECDSAInvalidSignatureS", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "implementation", "type": "address" }], "name": "ERC1967InvalidImplementation", "type": "error" }, { "inputs": [], "name": "ERC1967NonPayable", "type": "error" }, { "inputs": [], "name": "FailedCall", "type": "error" }, { "inputs": [], "name": "FeeTooHigh", "type": "error" }, { "inputs": [], "name": "InsufficientDeposit", "type": "error" }, { "inputs": [], "name": "InvalidAcceptanceWindow", "type": "error" }, { "inputs": [], "name": "InvalidCriteriaCount", "type": "error" }, { "inputs": [], "name": "InvalidDuration", "type": "error" }, { "inputs": [], "name": "InvalidFundWeight", "type": "error" }, { "inputs": [], "name": "InvalidInitialization", "type": "error" }, { "inputs": [], "name": "InvalidMaxRevisions", "type": "error" }, { "inputs": [], "name": "InvalidNonce", "type": "error" }, { "inputs": [], "name": "InvalidPassRate", "type": "error" }, { "inputs": [], "name": "InvalidSignature", "type": "error" }, { "inputs": [{ "internalType": "enum IAgentPactEscrow.TaskState", "name": "current", "type": "uint8" }, { "internalType": "enum IAgentPactEscrow.TaskState", "name": "expected", "type": "uint8" }], "name": "InvalidState", "type": "error" }, { "inputs": [], "name": "NotInitializing", "type": "error" }, { "inputs": [], "name": "OnlyParties", "type": "error" }, { "inputs": [], "name": "OnlyProvider", "type": "error" }, { "inputs": [], "name": "OnlyRequester", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }], "name": "OwnableInvalidOwner", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "account", "type": "address" }], "name": "OwnableUnauthorizedAccount", "type": "error" }, { "inputs": [], "name": "ReentrancyGuardReentrantCall", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }], "name": "SafeERC20FailedOperation", "type": "error" }, { "inputs": [], "name": "SignatureExpired", "type": "error" }, { "inputs": [], "name": "TaskSuspended", "type": "error" }, { "inputs": [], "name": "TokenNotAllowed", "type": "error" }, { "inputs": [], "name": "UUPSUnauthorizedCallContext", "type": "error" }, { "inputs": [{ "internalType": "bytes32", "name": "slot", "type": "bytes32" }], "name": "UUPSUnsupportedProxiableUUID", "type": "error" }, { "inputs": [], "name": "WeightCountMismatch", "type": "error" }, { "inputs": [], "name": "WeightsSumNot100", "type": "error" }, { "inputs": [], "name": "ZeroAddress", "type": "error" }, { "inputs": [], "name": "ZeroAmount", "type": "error" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "uint256", "name": "escrowId", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "providerPayout", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "platformFee", "type": "uint256" }], "name": "DeliveryAccepted", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "uint256", "name": "escrowId", "type": "uint256" }, { "indexed": false, "internalType": "bytes32", "name": "deliveryHash", "type": "bytes32" }, { "indexed": false, "internalType": "uint8", "name": "revision", "type": "uint8" }, { "indexed": false, "internalType": "uint64", "name": "acceptanceDeadline", "type": "uint64" }], "name": "DeliverySubmitted", "type": "event" }, { "anonymous": false, "inputs": [], "name": "EIP712DomainChanged", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "uint256", "name": "escrowId", "type": "uint256" }, { "indexed": true, "internalType": "address", "name": "requester", "type": "address" }, { "indexed": false, "internalType": "bytes32", "name": "taskHash", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "rewardAmount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "requesterDeposit", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "token", "type": "address" }, { "indexed": false, "internalType": "uint64", "name": "deliveryDurationSeconds", "type": "uint64" }, { "indexed": false, "internalType": "uint8", "name": "maxRevisions", "type": "uint8" }, { "indexed": false, "internalType": "uint8", "name": "acceptanceWindowHours", "type": "uint8" }, { "indexed": false, "internalType": "uint8", "name": "criteriaCount", "type": "uint8" }], "name": "EscrowCreated", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint64", "name": "version", "type": "uint64" }], "name": "Initialized", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" }], "name": "OwnershipTransferred", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint256", "name": "oldFeeBps", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "newFeeBps", "type": "uint256" }], "name": "PlatformFeeUpdated", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "uint256", "name": "escrowId", "type": "uint256" }, { "indexed": false, "internalType": "bytes32", "name": "reasonHash", "type": "bytes32" }, { "indexed": false, "internalType": "bytes32", "name": "criteriaResultsHash", "type": "bytes32" }, { "indexed": false, "internalType": "uint8", "name": "currentRevision", "type": "uint8" }, { "indexed": false, "internalType": "uint256", "name": "depositPenalty", "type": "uint256" }, { "indexed": false, "internalType": "uint8", "name": "passRate", "type": "uint8" }], "name": "RevisionRequested", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "uint256", "name": "escrowId", "type": "uint256" }, { "indexed": true, "internalType": "address", "name": "provider", "type": "address" }], "name": "TaskAbandoned", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "uint256", "name": "escrowId", "type": "uint256" }, { "indexed": false, "internalType": "uint8", "name": "passRate", "type": "uint8" }, { "indexed": false, "internalType": "uint256", "name": "providerShare", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "requesterRefund", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "platformFee", "type": "uint256" }], "name": "TaskAutoSettled", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "uint256", "name": "escrowId", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "compensation", "type": "uint256" }], "name": "TaskCancelled", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "uint256", "name": "escrowId", "type": "uint256" }, { "indexed": true, "internalType": "address", "name": "provider", "type": "address" }, { "indexed": false, "internalType": "uint64", "name": "confirmationDeadline", "type": "uint64" }], "name": "TaskClaimed", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "uint256", "name": "escrowId", "type": "uint256" }, { "indexed": true, "internalType": "address", "name": "provider", "type": "address" }, { "indexed": false, "internalType": "uint64", "name": "deliveryDeadline", "type": "uint64" }], "name": "TaskConfirmed", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "uint256", "name": "escrowId", "type": "uint256" }, { "indexed": true, "internalType": "address", "name": "provider", "type": "address" }], "name": "TaskDeclined", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "uint256", "name": "escrowId", "type": "uint256" }, { "indexed": false, "internalType": "uint8", "name": "declineCount", "type": "uint8" }], "name": "TaskSuspendedAfterDeclines", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "uint256", "name": "escrowId", "type": "uint256" }, { "indexed": false, "internalType": "enum IAgentPactEscrow.TaskState", "name": "previousState", "type": "uint8" }, { "indexed": true, "internalType": "address", "name": "claimedBy", "type": "address" }], "name": "TimeoutClaimed", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "implementation", "type": "address" }], "name": "Upgraded", "type": "event" }, { "inputs": [], "name": "ASSIGNMENT_TYPEHASH", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "CONFIRMATION_WINDOW", "outputs": [{ "internalType": "uint64", "name": "", "type": "uint64" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "DEFAULT_PENALTY_PLATFORM_BPS", "outputs": [{ "internalType": "uint16", "name": "", "type": "uint16" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "DEFAULT_PLATFORM_FEE_BPS", "outputs": [{ "internalType": "uint16", "name": "", "type": "uint16" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "MAX_DECLINE_COUNT", "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "MAX_PLATFORM_FEE_BPS", "outputs": [{ "internalType": "uint16", "name": "", "type": "uint16" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "MIN_PASS_RATE", "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "UPGRADE_INTERFACE_VERSION", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "escrowId", "type": "uint256" }], "name": "abandonTask", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "escrowId", "type": "uint256" }], "name": "acceptDelivery", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "allowedTokens", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "name": "assignmentNonces", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "escrowId", "type": "uint256" }], "name": "cancelTask", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "escrowId", "type": "uint256" }], "name": "claimAcceptanceTimeout", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "escrowId", "type": "uint256" }], "name": "claimConfirmationTimeout", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "escrowId", "type": "uint256" }], "name": "claimDeliveryTimeout", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "escrowId", "type": "uint256" }, { "internalType": "uint256", "name": "nonce", "type": "uint256" }, { "internalType": "uint256", "name": "expiredAt", "type": "uint256" }, { "internalType": "bytes", "name": "platformSignature", "type": "bytes" }], "name": "claimTask", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "escrowId", "type": "uint256" }], "name": "confirmTask", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "taskHash", "type": "bytes32" }, { "internalType": "uint64", "name": "deliveryDurationSeconds", "type": "uint64" }, { "internalType": "uint8", "name": "maxRevisions", "type": "uint8" }, { "internalType": "uint8", "name": "acceptanceWindowHours", "type": "uint8" }, { "internalType": "uint8", "name": "criteriaCount", "type": "uint8" }, { "internalType": "uint8[]", "name": "fundWeights", "type": "uint8[]" }, { "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "totalAmount", "type": "uint256" }], "name": "createEscrow", "outputs": [{ "internalType": "uint256", "name": "escrowId", "type": "uint256" }], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "escrowId", "type": "uint256" }], "name": "declineTask", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "eip712Domain", "outputs": [{ "internalType": "bytes1", "name": "fields", "type": "bytes1" }, { "internalType": "string", "name": "name", "type": "string" }, { "internalType": "string", "name": "version", "type": "string" }, { "internalType": "uint256", "name": "chainId", "type": "uint256" }, { "internalType": "address", "name": "verifyingContract", "type": "address" }, { "internalType": "bytes32", "name": "salt", "type": "bytes32" }, { "internalType": "uint256[]", "name": "extensions", "type": "uint256[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint8", "name": "", "type": "uint8" }], "name": "escrowFundWeights", "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "name": "escrows", "outputs": [{ "internalType": "address", "name": "requester", "type": "address" }, { "internalType": "address", "name": "provider", "type": "address" }, { "internalType": "uint256", "name": "rewardAmount", "type": "uint256" }, { "internalType": "uint256", "name": "requesterDeposit", "type": "uint256" }, { "internalType": "uint256", "name": "depositConsumed", "type": "uint256" }, { "internalType": "address", "name": "token", "type": "address" }, { "internalType": "enum IAgentPactEscrow.TaskState", "name": "state", "type": "uint8" }, { "internalType": "bytes32", "name": "taskHash", "type": "bytes32" }, { "internalType": "bytes32", "name": "latestDeliveryHash", "type": "bytes32" }, { "internalType": "bytes32", "name": "latestCriteriaHash", "type": "bytes32" }, { "internalType": "uint64", "name": "deliveryDurationSeconds", "type": "uint64" }, { "internalType": "uint64", "name": "deliveryDeadline", "type": "uint64" }, { "internalType": "uint64", "name": "acceptanceDeadline", "type": "uint64" }, { "internalType": "uint64", "name": "confirmationDeadline", "type": "uint64" }, { "internalType": "uint8", "name": "maxRevisions", "type": "uint8" }, { "internalType": "uint8", "name": "currentRevision", "type": "uint8" }, { "internalType": "uint8", "name": "criteriaCount", "type": "uint8" }, { "internalType": "uint8", "name": "declineCount", "type": "uint8" }, { "internalType": "uint8", "name": "acceptanceWindowHours", "type": "uint8" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getDomainSeparator", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "escrowId", "type": "uint256" }], "name": "getEscrow", "outputs": [{ "components": [{ "internalType": "address", "name": "requester", "type": "address" }, { "internalType": "address", "name": "provider", "type": "address" }, { "internalType": "uint256", "name": "rewardAmount", "type": "uint256" }, { "internalType": "uint256", "name": "requesterDeposit", "type": "uint256" }, { "internalType": "uint256", "name": "depositConsumed", "type": "uint256" }, { "internalType": "address", "name": "token", "type": "address" }, { "internalType": "enum IAgentPactEscrow.TaskState", "name": "state", "type": "uint8" }, { "internalType": "bytes32", "name": "taskHash", "type": "bytes32" }, { "internalType": "bytes32", "name": "latestDeliveryHash", "type": "bytes32" }, { "internalType": "bytes32", "name": "latestCriteriaHash", "type": "bytes32" }, { "internalType": "uint64", "name": "deliveryDurationSeconds", "type": "uint64" }, { "internalType": "uint64", "name": "deliveryDeadline", "type": "uint64" }, { "internalType": "uint64", "name": "acceptanceDeadline", "type": "uint64" }, { "internalType": "uint64", "name": "confirmationDeadline", "type": "uint64" }, { "internalType": "uint8", "name": "maxRevisions", "type": "uint8" }, { "internalType": "uint8", "name": "currentRevision", "type": "uint8" }, { "internalType": "uint8", "name": "criteriaCount", "type": "uint8" }, { "internalType": "uint8", "name": "declineCount", "type": "uint8" }, { "internalType": "uint8", "name": "acceptanceWindowHours", "type": "uint8" }], "internalType": "struct IAgentPactEscrow.EscrowRecord", "name": "", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "escrowId", "type": "uint256" }, { "internalType": "uint8", "name": "criteriaIndex", "type": "uint8" }], "name": "getFundWeight", "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "escrowId", "type": "uint256" }], "name": "getFundWeights", "outputs": [{ "internalType": "uint8[]", "name": "", "type": "uint8[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_platformSigner", "type": "address" }, { "internalType": "address", "name": "_platformFund", "type": "address" }, { "internalType": "address", "name": "_owner", "type": "address" }], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "nextEscrowId", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "penaltyPlatformBps", "outputs": [{ "internalType": "uint16", "name": "", "type": "uint16" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "platformFeeBps", "outputs": [{ "internalType": "uint16", "name": "", "type": "uint16" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "platformFund", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "platformSigner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "proxiableUUID", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "reputationRegistry", "outputs": [{ "internalType": "contract IAgentPactReputationRegistry", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "escrowId", "type": "uint256" }, { "internalType": "bytes32", "name": "reasonHash", "type": "bytes32" }, { "internalType": "bool[]", "name": "criteriaResults", "type": "bool[]" }], "name": "requestRevision", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "bool", "name": "allowed", "type": "bool" }], "name": "setAllowedToken", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint16", "name": "_bps", "type": "uint16" }], "name": "setPenaltyPlatformBps", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint16", "name": "newFeeBps", "type": "uint16" }], "name": "setPlatformFeeBps", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newFund", "type": "address" }], "name": "setPlatformFund", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newSigner", "type": "address" }], "name": "setPlatformSigner", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_treasury", "type": "address" }], "name": "setTreasury", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "escrowId", "type": "uint256" }, { "internalType": "bytes32", "name": "deliveryHash", "type": "bytes32" }], "name": "submitDelivery", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "totalClosedEscrows", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "totalPayoutVolumeByToken", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "totalRewardVolumeByToken", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "totalSuccessfulEscrows", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "treasuryContract", "outputs": [{ "internalType": "contract IAgentPactTreasury", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newImplementation", "type": "address" }, { "internalType": "bytes", "name": "data", "type": "bytes" }], "name": "upgradeToAndCall", "outputs": [], "stateMutability": "payable", "type": "function" }, { "stateMutability": "payable", "type": "receive" }];
|
|
18303
|
+
var TIPJAR_ABI = [{ "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [{ "internalType": "address", "name": "target", "type": "address" }], "name": "AddressEmptyCode", "type": "error" }, { "inputs": [], "name": "BelowMinTip", "type": "error" }, { "inputs": [], "name": "ECDSAInvalidSignature", "type": "error" }, { "inputs": [{ "internalType": "uint256", "name": "length", "type": "uint256" }], "name": "ECDSAInvalidSignatureLength", "type": "error" }, { "inputs": [{ "internalType": "bytes32", "name": "s", "type": "bytes32" }], "name": "ECDSAInvalidSignatureS", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "implementation", "type": "address" }], "name": "ERC1967InvalidImplementation", "type": "error" }, { "inputs": [], "name": "ERC1967NonPayable", "type": "error" }, { "inputs": [], "name": "ExceedsDailyCap", "type": "error" }, { "inputs": [], "name": "ExceedsMaxTip", "type": "error" }, { "inputs": [], "name": "FailedCall", "type": "error" }, { "inputs": [], "name": "FeeTooHigh", "type": "error" }, { "inputs": [], "name": "InsufficientAllowance", "type": "error" }, { "inputs": [], "name": "InvalidInitialization", "type": "error" }, { "inputs": [], "name": "InvalidSignature", "type": "error" }, { "inputs": [], "name": "NonceAlreadyUsed", "type": "error" }, { "inputs": [], "name": "NotInitializing", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }], "name": "OwnableInvalidOwner", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "account", "type": "address" }], "name": "OwnableUnauthorizedAccount", "type": "error" }, { "inputs": [], "name": "ReentrancyGuardReentrantCall", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }], "name": "SafeERC20FailedOperation", "type": "error" }, { "inputs": [], "name": "SelfTipNotAllowed", "type": "error" }, { "inputs": [], "name": "SignatureExpired", "type": "error" }, { "inputs": [], "name": "TippingPausedError", "type": "error" }, { "inputs": [], "name": "UUPSUnauthorizedCallContext", "type": "error" }, { "inputs": [{ "internalType": "bytes32", "name": "slot", "type": "bytes32" }], "name": "UUPSUnsupportedProxiableUUID", "type": "error" }, { "inputs": [], "name": "ZeroAddress", "type": "error" }, { "inputs": [], "name": "ZeroAmount", "type": "error" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint256", "name": "oldCap", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "newCap", "type": "uint256" }], "name": "DailyTipCapUpdated", "type": "event" }, { "anonymous": false, "inputs": [], "name": "EIP712DomainChanged", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint64", "name": "version", "type": "uint64" }], "name": "Initialized", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint256", "name": "oldMax", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "newMax", "type": "uint256" }], "name": "MaxTipAmountUpdated", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" }], "name": "OwnershipTransferred", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint16", "name": "oldFeeBps", "type": "uint16" }, { "indexed": false, "internalType": "uint16", "name": "newFeeBps", "type": "uint16" }], "name": "PlatformFeeUpdated", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "oldSigner", "type": "address" }, { "indexed": false, "internalType": "address", "name": "newSigner", "type": "address" }], "name": "PlatformSignerUpdated", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "fee", "type": "uint256" }, { "indexed": false, "internalType": "string", "name": "postId", "type": "string" }], "name": "TipSent", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "bool", "name": "paused", "type": "bool" }], "name": "TippingPaused", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "oldTreasury", "type": "address" }, { "indexed": false, "internalType": "address", "name": "newTreasury", "type": "address" }], "name": "TreasuryUpdated", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "implementation", "type": "address" }], "name": "Upgraded", "type": "event" }, { "inputs": [], "name": "MAX_FEE_BPS", "outputs": [{ "internalType": "uint16", "name": "", "type": "uint16" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "MIN_TIP_AMOUNT", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "TIP_TYPEHASH", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "UPGRADE_INTERFACE_VERSION", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "dailyTipCap", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "user", "type": "address" }], "name": "dailyTipSpent", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "domainSeparator", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "eip712Domain", "outputs": [{ "internalType": "bytes1", "name": "fields", "type": "bytes1" }, { "internalType": "string", "name": "name", "type": "string" }, { "internalType": "string", "name": "version", "type": "string" }, { "internalType": "uint256", "name": "chainId", "type": "uint256" }, { "internalType": "address", "name": "verifyingContract", "type": "address" }, { "internalType": "bytes32", "name": "salt", "type": "bytes32" }, { "internalType": "uint256[]", "name": "extensions", "type": "uint256[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_usdc", "type": "address" }, { "internalType": "address", "name": "_platformSigner", "type": "address" }, { "internalType": "address", "name": "_treasury", "type": "address" }, { "internalType": "address", "name": "_owner", "type": "address" }], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "tipper", "type": "address" }, { "internalType": "uint256", "name": "nonce", "type": "uint256" }], "name": "isNonceUsed", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "maxTipAmount", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "paused", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "platformFeeBps", "outputs": [{ "internalType": "uint16", "name": "", "type": "uint16" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "platformFund", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "platformSigner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "proxiableUUID", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "reputationRegistry", "outputs": [{ "internalType": "contract IAgentPactReputationRegistry", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "newCap", "type": "uint256" }], "name": "setDailyTipCap", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "newMax", "type": "uint256" }], "name": "setMaxTipAmount", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bool", "name": "_paused", "type": "bool" }], "name": "setPaused", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint16", "name": "newFeeBps", "type": "uint16" }], "name": "setPlatformFeeBps", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newPlatformFund", "type": "address" }], "name": "setPlatformFund", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newSigner", "type": "address" }], "name": "setPlatformSigner", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "registry", "type": "address" }], "name": "setReputationRegistry", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_treasury", "type": "address" }], "name": "setTreasuryContract", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_usdc", "type": "address" }], "name": "setUsdcToken", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "recipient", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "string", "name": "postId", "type": "string" }, { "internalType": "uint256", "name": "nonce", "type": "uint256" }, { "internalType": "uint256", "name": "expiredAt", "type": "uint256" }, { "internalType": "bytes", "name": "platformSignature", "type": "bytes" }], "name": "tip", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "user", "type": "address" }], "name": "tipStats", "outputs": [{ "components": [{ "internalType": "uint256", "name": "totalSent", "type": "uint256" }, { "internalType": "uint256", "name": "totalReceived", "type": "uint256" }, { "internalType": "uint256", "name": "totalFeesPaid", "type": "uint256" }, { "internalType": "uint64", "name": "tipsSentCount", "type": "uint64" }, { "internalType": "uint64", "name": "tipsReceivedCount", "type": "uint64" }], "internalType": "struct IAgentPactTipJar.TipStats", "name": "", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "treasury", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "treasuryContract", "outputs": [{ "internalType": "contract IAgentPactTreasury", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newImplementation", "type": "address" }, { "internalType": "bytes", "name": "data", "type": "bytes" }], "name": "upgradeToAndCall", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [], "name": "usdcToken", "outputs": [{ "internalType": "contract IERC20", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "nonceHash", "type": "bytes32" }], "name": "usedNonces", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }];
|
|
20882
18304
|
var ETH_TOKEN = "0x0000000000000000000000000000000000000000";
|
|
20883
18305
|
var CHAIN_ID_BASE_SEPOLIA = 84532;
|
|
20884
18306
|
var CHAIN_ID = CHAIN_ID_BASE_SEPOLIA;
|
|
@@ -21366,8 +18788,10 @@ var AgentPactClient = class _AgentPactClient {
|
|
|
21366
18788
|
/** Get the current status of a transaction without waiting */
|
|
21367
18789
|
async getTransactionStatus(hash4) {
|
|
21368
18790
|
try {
|
|
21369
|
-
const receipt = await
|
|
21370
|
-
|
|
18791
|
+
const [receipt, latestBlock] = await Promise.all([
|
|
18792
|
+
this.publicClient.getTransactionReceipt({ hash: hash4 }),
|
|
18793
|
+
this.publicClient.getBlockNumber()
|
|
18794
|
+
]);
|
|
21371
18795
|
const confirmations = latestBlock >= receipt.blockNumber ? Number(latestBlock - receipt.blockNumber + 1n) : 0;
|
|
21372
18796
|
return {
|
|
21373
18797
|
transactionHash: receipt.transactionHash,
|
|
@@ -22337,9 +19761,9 @@ var AgentPactAgent = class _AgentPactAgent {
|
|
|
22337
19761
|
}
|
|
22338
19762
|
/** Get a wallet overview for the current agent wallet */
|
|
22339
19763
|
async getWalletOverview() {
|
|
22340
|
-
const nativeBalanceWei = await this.getNativeBalance();
|
|
22341
19764
|
const usdcAddress = this.platformConfig.usdcAddress;
|
|
22342
|
-
const [usdcRaw, usdcDecimals, usdcSymbol] = await Promise.all([
|
|
19765
|
+
const [nativeBalanceWei, usdcRaw, usdcDecimals, usdcSymbol] = await Promise.all([
|
|
19766
|
+
this.getNativeBalance(),
|
|
22343
19767
|
this.getUsdcBalance(),
|
|
22344
19768
|
this.client.getTokenDecimals(usdcAddress),
|
|
22345
19769
|
this.client.getTokenSymbol(usdcAddress)
|
|
@@ -22400,28 +19824,29 @@ var AgentPactAgent = class _AgentPactAgent {
|
|
|
22400
19824
|
async preflightCheck(params = {}) {
|
|
22401
19825
|
const notes = [];
|
|
22402
19826
|
const blockingReasons = [];
|
|
22403
|
-
const
|
|
22404
|
-
|
|
19827
|
+
const gasQuotePromise = params.action ? this.getGasQuote({
|
|
19828
|
+
action: params.action,
|
|
19829
|
+
tokenAddress: params.tokenAddress,
|
|
19830
|
+
spender: params.spender,
|
|
19831
|
+
requiredAmount: void 0,
|
|
19832
|
+
amount: params.requiredAmount,
|
|
19833
|
+
escrowId: params.escrowId,
|
|
19834
|
+
deliveryHash: params.deliveryHash
|
|
19835
|
+
}) : Promise.resolve(void 0);
|
|
19836
|
+
const [chainId, wallet, gasQuote] = await Promise.all([
|
|
19837
|
+
this.client.getChainId(),
|
|
19838
|
+
this.getWalletOverview(),
|
|
19839
|
+
gasQuotePromise
|
|
19840
|
+
]);
|
|
19841
|
+
if (!params.action) {
|
|
19842
|
+
notes.push("No action-specific gas quote requested.");
|
|
19843
|
+
}
|
|
22405
19844
|
const chainOk = chainId === this.platformConfig.chainId;
|
|
22406
19845
|
if (!chainOk) {
|
|
22407
19846
|
blockingReasons.push(
|
|
22408
19847
|
`Connected chainId ${chainId} does not match expected chainId ${this.platformConfig.chainId}`
|
|
22409
19848
|
);
|
|
22410
19849
|
}
|
|
22411
|
-
let gasQuote;
|
|
22412
|
-
if (params.action) {
|
|
22413
|
-
gasQuote = await this.getGasQuote({
|
|
22414
|
-
action: params.action,
|
|
22415
|
-
tokenAddress: params.tokenAddress,
|
|
22416
|
-
spender: params.spender,
|
|
22417
|
-
requiredAmount: void 0,
|
|
22418
|
-
amount: params.requiredAmount,
|
|
22419
|
-
escrowId: params.escrowId,
|
|
22420
|
-
deliveryHash: params.deliveryHash
|
|
22421
|
-
});
|
|
22422
|
-
} else {
|
|
22423
|
-
notes.push("No action-specific gas quote requested.");
|
|
22424
|
-
}
|
|
22425
19850
|
const minNativeBalanceWei = params.minNativeBalanceWei ?? gasQuote?.estimatedTotalCostWei;
|
|
22426
19851
|
const gasBalanceOk = minNativeBalanceWei !== void 0 ? wallet.nativeBalanceWei >= minNativeBalanceWei : void 0;
|
|
22427
19852
|
if (gasBalanceOk === false) {
|
|
@@ -22431,8 +19856,15 @@ var AgentPactAgent = class _AgentPactAgent {
|
|
|
22431
19856
|
}
|
|
22432
19857
|
let token;
|
|
22433
19858
|
let tokenBalanceOk;
|
|
19859
|
+
let allowance;
|
|
22434
19860
|
if (params.tokenAddress) {
|
|
22435
|
-
|
|
19861
|
+
const tokenPromise = this.getTokenBalanceInfo(params.tokenAddress);
|
|
19862
|
+
const allowancePromise = params.spender ? this.getTokenAllowance(params.tokenAddress, params.spender) : Promise.resolve(void 0);
|
|
19863
|
+
const [tokenInfo, allowanceRaw] = await Promise.all([
|
|
19864
|
+
tokenPromise,
|
|
19865
|
+
allowancePromise
|
|
19866
|
+
]);
|
|
19867
|
+
token = tokenInfo;
|
|
22436
19868
|
if (params.requiredAmount !== void 0) {
|
|
22437
19869
|
tokenBalanceOk = token.raw >= params.requiredAmount;
|
|
22438
19870
|
if (!tokenBalanceOk) {
|
|
@@ -22441,25 +19873,22 @@ var AgentPactAgent = class _AgentPactAgent {
|
|
|
22441
19873
|
);
|
|
22442
19874
|
}
|
|
22443
19875
|
}
|
|
22444
|
-
|
|
22445
|
-
|
|
22446
|
-
|
|
22447
|
-
|
|
22448
|
-
|
|
22449
|
-
|
|
22450
|
-
|
|
22451
|
-
|
|
22452
|
-
|
|
22453
|
-
|
|
22454
|
-
|
|
22455
|
-
|
|
22456
|
-
|
|
22457
|
-
|
|
22458
|
-
|
|
22459
|
-
|
|
22460
|
-
blockingReasons.push(
|
|
22461
|
-
`Allowance ${allowance.formatted} is below the required amount ${allowance.requiredFormatted}`
|
|
22462
|
-
);
|
|
19876
|
+
if (params.spender && allowanceRaw !== void 0) {
|
|
19877
|
+
allowance = {
|
|
19878
|
+
tokenAddress: params.tokenAddress,
|
|
19879
|
+
spender: params.spender,
|
|
19880
|
+
raw: allowanceRaw,
|
|
19881
|
+
formatted: formatUnits(allowanceRaw, token.decimals)
|
|
19882
|
+
};
|
|
19883
|
+
if (params.requiredAmount !== void 0) {
|
|
19884
|
+
allowance.requiredRaw = params.requiredAmount;
|
|
19885
|
+
allowance.requiredFormatted = formatUnits(params.requiredAmount, token.decimals);
|
|
19886
|
+
allowance.sufficient = allowanceRaw >= params.requiredAmount;
|
|
19887
|
+
if (!allowance.sufficient) {
|
|
19888
|
+
blockingReasons.push(
|
|
19889
|
+
`Allowance ${allowance.formatted} is below the required amount ${allowance.requiredFormatted}`
|
|
19890
|
+
);
|
|
19891
|
+
}
|
|
22463
19892
|
}
|
|
22464
19893
|
}
|
|
22465
19894
|
}
|
|
@@ -37434,6 +34863,9 @@ function registerMcpLiveTools(server2, runtime2) {
|
|
|
37434
34863
|
}
|
|
37435
34864
|
},
|
|
37436
34865
|
async (params) => {
|
|
34866
|
+
if (typeof global !== "undefined" && global.writeLog) {
|
|
34867
|
+
global.writeLog(`[TOOL CALL] ${tool.name} params=${JSON.stringify(params)}`);
|
|
34868
|
+
}
|
|
37437
34869
|
try {
|
|
37438
34870
|
return await tool.execute(runtime2, params);
|
|
37439
34871
|
} catch (error48) {
|