@pearldigital/p3-abis 3.2.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -441,6 +441,16 @@ export declare const abi: [
441
441
  "name": "amountIn_",
442
442
  "type": "uint256",
443
443
  "internalType": "uint256"
444
+ },
445
+ {
446
+ "name": "minAmountOut_",
447
+ "type": "uint256",
448
+ "internalType": "uint256"
449
+ },
450
+ {
451
+ "name": "deadline_",
452
+ "type": "uint256",
453
+ "internalType": "uint256"
444
454
  }
445
455
  ],
446
456
  "outputs": [
@@ -928,6 +938,22 @@ export declare const abi: [
928
938
  "name": "AbstractFeeModuleInvalidFeeRecipient",
929
939
  "inputs": []
930
940
  },
941
+ {
942
+ "type": "error",
943
+ "name": "P3StablecoinSwapDeadlineExpired",
944
+ "inputs": [
945
+ {
946
+ "name": "deadline",
947
+ "type": "uint256",
948
+ "internalType": "uint256"
949
+ },
950
+ {
951
+ "name": "currentTime",
952
+ "type": "uint256",
953
+ "internalType": "uint256"
954
+ }
955
+ ]
956
+ },
931
957
  {
932
958
  "type": "error",
933
959
  "name": "P3StablecoinSwapIdenticalTokens",
@@ -977,6 +1003,33 @@ export declare const abi: [
977
1003
  }
978
1004
  ]
979
1005
  },
1006
+ {
1007
+ "type": "error",
1008
+ "name": "P3StablecoinSwapRecoveryActive",
1009
+ "inputs": [
1010
+ {
1011
+ "name": "token",
1012
+ "type": "address",
1013
+ "internalType": "address"
1014
+ }
1015
+ ]
1016
+ },
1017
+ {
1018
+ "type": "error",
1019
+ "name": "P3StablecoinSwapSlippageLimitExceeded",
1020
+ "inputs": [
1021
+ {
1022
+ "name": "amountOut",
1023
+ "type": "uint256",
1024
+ "internalType": "uint256"
1025
+ },
1026
+ {
1027
+ "name": "minAmountOut",
1028
+ "type": "uint256",
1029
+ "internalType": "uint256"
1030
+ }
1031
+ ]
1032
+ },
980
1033
  {
981
1034
  "type": "error",
982
1035
  "name": "P3StablecoinSwapUnsupportedPair",
@@ -441,6 +441,16 @@ export const abi = [
441
441
  "name": "amountIn_",
442
442
  "type": "uint256",
443
443
  "internalType": "uint256"
444
+ },
445
+ {
446
+ "name": "minAmountOut_",
447
+ "type": "uint256",
448
+ "internalType": "uint256"
449
+ },
450
+ {
451
+ "name": "deadline_",
452
+ "type": "uint256",
453
+ "internalType": "uint256"
444
454
  }
445
455
  ],
446
456
  "outputs": [
@@ -928,6 +938,22 @@ export const abi = [
928
938
  "name": "AbstractFeeModuleInvalidFeeRecipient",
929
939
  "inputs": []
930
940
  },
941
+ {
942
+ "type": "error",
943
+ "name": "P3StablecoinSwapDeadlineExpired",
944
+ "inputs": [
945
+ {
946
+ "name": "deadline",
947
+ "type": "uint256",
948
+ "internalType": "uint256"
949
+ },
950
+ {
951
+ "name": "currentTime",
952
+ "type": "uint256",
953
+ "internalType": "uint256"
954
+ }
955
+ ]
956
+ },
931
957
  {
932
958
  "type": "error",
933
959
  "name": "P3StablecoinSwapIdenticalTokens",
@@ -977,6 +1003,33 @@ export const abi = [
977
1003
  }
978
1004
  ]
979
1005
  },
1006
+ {
1007
+ "type": "error",
1008
+ "name": "P3StablecoinSwapRecoveryActive",
1009
+ "inputs": [
1010
+ {
1011
+ "name": "token",
1012
+ "type": "address",
1013
+ "internalType": "address"
1014
+ }
1015
+ ]
1016
+ },
1017
+ {
1018
+ "type": "error",
1019
+ "name": "P3StablecoinSwapSlippageLimitExceeded",
1020
+ "inputs": [
1021
+ {
1022
+ "name": "amountOut",
1023
+ "type": "uint256",
1024
+ "internalType": "uint256"
1025
+ },
1026
+ {
1027
+ "name": "minAmountOut",
1028
+ "type": "uint256",
1029
+ "internalType": "uint256"
1030
+ }
1031
+ ]
1032
+ },
980
1033
  {
981
1034
  "type": "error",
982
1035
  "name": "P3StablecoinSwapUnsupportedPair",
@@ -23,6 +23,13 @@ export declare const abi: [
23
23
  "outputs": [],
24
24
  "stateMutability": "nonpayable"
25
25
  },
26
+ {
27
+ "type": "function",
28
+ "name": "cancelAttestationManager",
29
+ "inputs": [],
30
+ "outputs": [],
31
+ "stateMutability": "nonpayable"
32
+ },
26
33
  {
27
34
  "type": "function",
28
35
  "name": "cancelSolvencyToggle",
@@ -54,6 +61,26 @@ export declare const abi: [
54
61
  ],
55
62
  "stateMutability": "view"
56
63
  },
64
+ {
65
+ "type": "function",
66
+ "name": "clearSweptAccumulator",
67
+ "inputs": [
68
+ {
69
+ "name": "stablecoinToken_",
70
+ "type": "address",
71
+ "internalType": "address"
72
+ }
73
+ ],
74
+ "outputs": [],
75
+ "stateMutability": "nonpayable"
76
+ },
77
+ {
78
+ "type": "function",
79
+ "name": "executeAttestationManager",
80
+ "inputs": [],
81
+ "outputs": [],
82
+ "stateMutability": "nonpayable"
83
+ },
57
84
  {
58
85
  "type": "function",
59
86
  "name": "executeSolvencyToggle",
@@ -61,6 +88,57 @@ export declare const abi: [
61
88
  "outputs": [],
62
89
  "stateMutability": "nonpayable"
63
90
  },
91
+ {
92
+ "type": "function",
93
+ "name": "getBridgeContract",
94
+ "inputs": [],
95
+ "outputs": [
96
+ {
97
+ "name": "bridge",
98
+ "type": "address",
99
+ "internalType": "address"
100
+ }
101
+ ],
102
+ "stateMutability": "view"
103
+ },
104
+ {
105
+ "type": "function",
106
+ "name": "getBridgeInflowBalance",
107
+ "inputs": [
108
+ {
109
+ "name": "token_",
110
+ "type": "address",
111
+ "internalType": "address"
112
+ }
113
+ ],
114
+ "outputs": [
115
+ {
116
+ "name": "balance",
117
+ "type": "uint256",
118
+ "internalType": "uint256"
119
+ }
120
+ ],
121
+ "stateMutability": "view"
122
+ },
123
+ {
124
+ "type": "function",
125
+ "name": "getBridgeOutflowDebt",
126
+ "inputs": [
127
+ {
128
+ "name": "token_",
129
+ "type": "address",
130
+ "internalType": "address"
131
+ }
132
+ ],
133
+ "outputs": [
134
+ {
135
+ "name": "debt",
136
+ "type": "uint256",
137
+ "internalType": "uint256"
138
+ }
139
+ ],
140
+ "stateMutability": "view"
141
+ },
64
142
  {
65
143
  "type": "function",
66
144
  "name": "getDepositToken",
@@ -158,6 +236,19 @@ export declare const abi: [
158
236
  ],
159
237
  "stateMutability": "view"
160
238
  },
239
+ {
240
+ "type": "function",
241
+ "name": "getReserveMirror",
242
+ "inputs": [],
243
+ "outputs": [
244
+ {
245
+ "name": "reserveMirror",
246
+ "type": "address",
247
+ "internalType": "address"
248
+ }
249
+ ],
250
+ "stateMutability": "view"
251
+ },
161
252
  {
162
253
  "type": "function",
163
254
  "name": "getSolvencyToggleInfo",
@@ -281,6 +372,34 @@ export declare const abi: [
281
372
  ],
282
373
  "stateMutability": "view"
283
374
  },
375
+ {
376
+ "type": "function",
377
+ "name": "mintBridgeInflow",
378
+ "inputs": [
379
+ {
380
+ "name": "token_",
381
+ "type": "address",
382
+ "internalType": "address"
383
+ },
384
+ {
385
+ "name": "recipient_",
386
+ "type": "address",
387
+ "internalType": "address"
388
+ },
389
+ {
390
+ "name": "amount_",
391
+ "type": "uint256",
392
+ "internalType": "uint256"
393
+ },
394
+ {
395
+ "name": "burnId_",
396
+ "type": "bytes32",
397
+ "internalType": "bytes32"
398
+ }
399
+ ],
400
+ "outputs": [],
401
+ "stateMutability": "nonpayable"
402
+ },
284
403
  {
285
404
  "type": "function",
286
405
  "name": "mintDepositForTreasury",
@@ -545,6 +664,24 @@ export declare const abi: [
545
664
  "outputs": [],
546
665
  "stateMutability": "nonpayable"
547
666
  },
667
+ {
668
+ "type": "function",
669
+ "name": "recordBridgeOutflow",
670
+ "inputs": [
671
+ {
672
+ "name": "token_",
673
+ "type": "address",
674
+ "internalType": "address"
675
+ },
676
+ {
677
+ "name": "amount_",
678
+ "type": "uint256",
679
+ "internalType": "uint256"
680
+ }
681
+ ],
682
+ "outputs": [],
683
+ "stateMutability": "nonpayable"
684
+ },
548
685
  {
549
686
  "type": "function",
550
687
  "name": "reserveRebalancer",
@@ -558,6 +695,19 @@ export declare const abi: [
558
695
  ],
559
696
  "stateMutability": "view"
560
697
  },
698
+ {
699
+ "type": "function",
700
+ "name": "scheduleAttestationManager",
701
+ "inputs": [
702
+ {
703
+ "name": "attestationManager_",
704
+ "type": "address",
705
+ "internalType": "address"
706
+ }
707
+ ],
708
+ "outputs": [],
709
+ "stateMutability": "nonpayable"
710
+ },
561
711
  {
562
712
  "type": "function",
563
713
  "name": "scheduleSolvencyToggle",
@@ -573,10 +723,10 @@ export declare const abi: [
573
723
  },
574
724
  {
575
725
  "type": "function",
576
- "name": "setAttestationManager",
726
+ "name": "setBridgeContract",
577
727
  "inputs": [
578
728
  {
579
- "name": "attestationManager_",
729
+ "name": "bridge_",
580
730
  "type": "address",
581
731
  "internalType": "address"
582
732
  }
@@ -654,6 +804,19 @@ export declare const abi: [
654
804
  "outputs": [],
655
805
  "stateMutability": "nonpayable"
656
806
  },
807
+ {
808
+ "type": "function",
809
+ "name": "setReserveMirror",
810
+ "inputs": [
811
+ {
812
+ "name": "reserveMirror_",
813
+ "type": "address",
814
+ "internalType": "address"
815
+ }
816
+ ],
817
+ "outputs": [],
818
+ "stateMutability": "nonpayable"
819
+ },
657
820
  {
658
821
  "type": "function",
659
822
  "name": "setReserveRatio",
@@ -877,6 +1040,38 @@ export declare const abi: [
877
1040
  "outputs": [],
878
1041
  "stateMutability": "nonpayable"
879
1042
  },
1043
+ {
1044
+ "type": "event",
1045
+ "name": "AttestationManagerScheduleCancelled",
1046
+ "inputs": [
1047
+ {
1048
+ "name": "cancelledAddress",
1049
+ "type": "address",
1050
+ "indexed": true,
1051
+ "internalType": "address"
1052
+ }
1053
+ ],
1054
+ "anonymous": false
1055
+ },
1056
+ {
1057
+ "type": "event",
1058
+ "name": "AttestationManagerScheduled",
1059
+ "inputs": [
1060
+ {
1061
+ "name": "newAttestationManager",
1062
+ "type": "address",
1063
+ "indexed": true,
1064
+ "internalType": "address"
1065
+ },
1066
+ {
1067
+ "name": "readyAt",
1068
+ "type": "uint256",
1069
+ "indexed": false,
1070
+ "internalType": "uint256"
1071
+ }
1072
+ ],
1073
+ "anonymous": false
1074
+ },
880
1075
  {
881
1076
  "type": "event",
882
1077
  "name": "AttestationManagerUpdated",
@@ -890,6 +1085,87 @@ export declare const abi: [
890
1085
  ],
891
1086
  "anonymous": false
892
1087
  },
1088
+ {
1089
+ "type": "event",
1090
+ "name": "BridgeContractSet",
1091
+ "inputs": [
1092
+ {
1093
+ "name": "oldBridge",
1094
+ "type": "address",
1095
+ "indexed": true,
1096
+ "internalType": "address"
1097
+ },
1098
+ {
1099
+ "name": "newBridge",
1100
+ "type": "address",
1101
+ "indexed": true,
1102
+ "internalType": "address"
1103
+ }
1104
+ ],
1105
+ "anonymous": false
1106
+ },
1107
+ {
1108
+ "type": "event",
1109
+ "name": "BridgeInflowMinted",
1110
+ "inputs": [
1111
+ {
1112
+ "name": "burnId",
1113
+ "type": "bytes32",
1114
+ "indexed": true,
1115
+ "internalType": "bytes32"
1116
+ },
1117
+ {
1118
+ "name": "token",
1119
+ "type": "address",
1120
+ "indexed": true,
1121
+ "internalType": "address"
1122
+ },
1123
+ {
1124
+ "name": "recipient",
1125
+ "type": "address",
1126
+ "indexed": true,
1127
+ "internalType": "address"
1128
+ },
1129
+ {
1130
+ "name": "amount",
1131
+ "type": "uint256",
1132
+ "indexed": false,
1133
+ "internalType": "uint256"
1134
+ },
1135
+ {
1136
+ "name": "newInflowBalance",
1137
+ "type": "uint256",
1138
+ "indexed": false,
1139
+ "internalType": "uint256"
1140
+ }
1141
+ ],
1142
+ "anonymous": false
1143
+ },
1144
+ {
1145
+ "type": "event",
1146
+ "name": "BridgeOutflowRecorded",
1147
+ "inputs": [
1148
+ {
1149
+ "name": "token",
1150
+ "type": "address",
1151
+ "indexed": true,
1152
+ "internalType": "address"
1153
+ },
1154
+ {
1155
+ "name": "amount",
1156
+ "type": "uint256",
1157
+ "indexed": false,
1158
+ "internalType": "uint256"
1159
+ },
1160
+ {
1161
+ "name": "newInflowBalance",
1162
+ "type": "uint256",
1163
+ "indexed": false,
1164
+ "internalType": "uint256"
1165
+ }
1166
+ ],
1167
+ "anonymous": false
1168
+ },
893
1169
  {
894
1170
  "type": "event",
895
1171
  "name": "ExcessReserveSwept",
@@ -1180,6 +1456,25 @@ export declare const abi: [
1180
1456
  ],
1181
1457
  "anonymous": false
1182
1458
  },
1459
+ {
1460
+ "type": "event",
1461
+ "name": "ReserveMirrorSet",
1462
+ "inputs": [
1463
+ {
1464
+ "name": "oldMirror",
1465
+ "type": "address",
1466
+ "indexed": true,
1467
+ "internalType": "address"
1468
+ },
1469
+ {
1470
+ "name": "newMirror",
1471
+ "type": "address",
1472
+ "indexed": true,
1473
+ "internalType": "address"
1474
+ }
1475
+ ],
1476
+ "anonymous": false
1477
+ },
1183
1478
  {
1184
1479
  "type": "event",
1185
1480
  "name": "ReserveRatioUpdated",
@@ -1282,6 +1577,19 @@ export declare const abi: [
1282
1577
  ],
1283
1578
  "anonymous": false
1284
1579
  },
1580
+ {
1581
+ "type": "event",
1582
+ "name": "SweptAccumulatorCleared",
1583
+ "inputs": [
1584
+ {
1585
+ "name": "stablecoinToken",
1586
+ "type": "address",
1587
+ "indexed": true,
1588
+ "internalType": "address"
1589
+ }
1590
+ ],
1591
+ "anonymous": false
1592
+ },
1285
1593
  {
1286
1594
  "type": "event",
1287
1595
  "name": "YieldBatchSettled",
@@ -1435,6 +1743,38 @@ export declare const abi: [
1435
1743
  "name": "P3TreasuryManagerAttestationManagerNotSet",
1436
1744
  "inputs": []
1437
1745
  },
1746
+ {
1747
+ "type": "error",
1748
+ "name": "P3TreasuryManagerAttestationManagerTimelockNotElapsed",
1749
+ "inputs": [
1750
+ {
1751
+ "name": "readyAt",
1752
+ "type": "uint256",
1753
+ "internalType": "uint256"
1754
+ },
1755
+ {
1756
+ "name": "currentTime",
1757
+ "type": "uint256",
1758
+ "internalType": "uint256"
1759
+ }
1760
+ ]
1761
+ },
1762
+ {
1763
+ "type": "error",
1764
+ "name": "P3TreasuryManagerBridgeContractIsZero",
1765
+ "inputs": []
1766
+ },
1767
+ {
1768
+ "type": "error",
1769
+ "name": "P3TreasuryManagerCallerIsNotBridge",
1770
+ "inputs": [
1771
+ {
1772
+ "name": "caller",
1773
+ "type": "address",
1774
+ "internalType": "address"
1775
+ }
1776
+ ]
1777
+ },
1438
1778
  {
1439
1779
  "type": "error",
1440
1780
  "name": "P3TreasuryManagerCannotClearAttestationManagerWhileSolvencyEnabled",
@@ -1569,6 +1909,11 @@ export declare const abi: [
1569
1909
  }
1570
1910
  ]
1571
1911
  },
1912
+ {
1913
+ "type": "error",
1914
+ "name": "P3TreasuryManagerNoAttestationManagerScheduled",
1915
+ "inputs": []
1916
+ },
1572
1917
  {
1573
1918
  "type": "error",
1574
1919
  "name": "P3TreasuryManagerNoExcessReserve",
@@ -1633,6 +1978,17 @@ export declare const abi: [
1633
1978
  }
1634
1979
  ]
1635
1980
  },
1981
+ {
1982
+ "type": "error",
1983
+ "name": "P3TreasuryManagerReserveRatioNotConfigured",
1984
+ "inputs": [
1985
+ {
1986
+ "name": "token",
1987
+ "type": "address",
1988
+ "internalType": "address"
1989
+ }
1990
+ ]
1991
+ },
1636
1992
  {
1637
1993
  "type": "error",
1638
1994
  "name": "P3TreasuryManagerReserveWalletAlreadyAssigned",
@@ -1728,6 +2084,32 @@ export declare const abi: [
1728
2084
  }
1729
2085
  ]
1730
2086
  },
2087
+ {
2088
+ "type": "error",
2089
+ "name": "P3TreasuryManagerSweepAccumulatorExceeds",
2090
+ "inputs": [
2091
+ {
2092
+ "name": "token",
2093
+ "type": "address",
2094
+ "internalType": "address"
2095
+ },
2096
+ {
2097
+ "name": "cumulativeSwept",
2098
+ "type": "uint256",
2099
+ "internalType": "uint256"
2100
+ },
2101
+ {
2102
+ "name": "maxExcessValue",
2103
+ "type": "uint256",
2104
+ "internalType": "uint256"
2105
+ },
2106
+ {
2107
+ "name": "available",
2108
+ "type": "uint256",
2109
+ "internalType": "uint256"
2110
+ }
2111
+ ]
2112
+ },
1731
2113
  {
1732
2114
  "type": "error",
1733
2115
  "name": "P3TreasuryManagerSweepExceedsExcess",