@pearldigital/p3-abis 3.2.3 → 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.
@@ -88,6 +88,57 @@ export declare const abi: [
88
88
  "outputs": [],
89
89
  "stateMutability": "nonpayable"
90
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
+ },
91
142
  {
92
143
  "type": "function",
93
144
  "name": "getDepositToken",
@@ -185,6 +236,19 @@ export declare const abi: [
185
236
  ],
186
237
  "stateMutability": "view"
187
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
+ },
188
252
  {
189
253
  "type": "function",
190
254
  "name": "getSolvencyToggleInfo",
@@ -308,6 +372,34 @@ export declare const abi: [
308
372
  ],
309
373
  "stateMutability": "view"
310
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
+ },
311
403
  {
312
404
  "type": "function",
313
405
  "name": "mintDepositForTreasury",
@@ -572,6 +664,24 @@ export declare const abi: [
572
664
  "outputs": [],
573
665
  "stateMutability": "nonpayable"
574
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
+ },
575
685
  {
576
686
  "type": "function",
577
687
  "name": "reserveRebalancer",
@@ -611,6 +721,19 @@ export declare const abi: [
611
721
  "outputs": [],
612
722
  "stateMutability": "nonpayable"
613
723
  },
724
+ {
725
+ "type": "function",
726
+ "name": "setBridgeContract",
727
+ "inputs": [
728
+ {
729
+ "name": "bridge_",
730
+ "type": "address",
731
+ "internalType": "address"
732
+ }
733
+ ],
734
+ "outputs": [],
735
+ "stateMutability": "nonpayable"
736
+ },
614
737
  {
615
738
  "type": "function",
616
739
  "name": "setFeeCaps",
@@ -681,6 +804,19 @@ export declare const abi: [
681
804
  "outputs": [],
682
805
  "stateMutability": "nonpayable"
683
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
+ },
684
820
  {
685
821
  "type": "function",
686
822
  "name": "setReserveRatio",
@@ -949,6 +1085,87 @@ export declare const abi: [
949
1085
  ],
950
1086
  "anonymous": false
951
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
+ },
952
1169
  {
953
1170
  "type": "event",
954
1171
  "name": "ExcessReserveSwept",
@@ -1239,6 +1456,25 @@ export declare const abi: [
1239
1456
  ],
1240
1457
  "anonymous": false
1241
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
+ },
1242
1478
  {
1243
1479
  "type": "event",
1244
1480
  "name": "ReserveRatioUpdated",
@@ -1523,6 +1759,22 @@ export declare const abi: [
1523
1759
  }
1524
1760
  ]
1525
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
+ },
1526
1778
  {
1527
1779
  "type": "error",
1528
1780
  "name": "P3TreasuryManagerCannotClearAttestationManagerWhileSolvencyEnabled",
@@ -88,6 +88,57 @@ export const abi = [
88
88
  "outputs": [],
89
89
  "stateMutability": "nonpayable"
90
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
+ },
91
142
  {
92
143
  "type": "function",
93
144
  "name": "getDepositToken",
@@ -185,6 +236,19 @@ export const abi = [
185
236
  ],
186
237
  "stateMutability": "view"
187
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
+ },
188
252
  {
189
253
  "type": "function",
190
254
  "name": "getSolvencyToggleInfo",
@@ -308,6 +372,34 @@ export const abi = [
308
372
  ],
309
373
  "stateMutability": "view"
310
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
+ },
311
403
  {
312
404
  "type": "function",
313
405
  "name": "mintDepositForTreasury",
@@ -572,6 +664,24 @@ export const abi = [
572
664
  "outputs": [],
573
665
  "stateMutability": "nonpayable"
574
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
+ },
575
685
  {
576
686
  "type": "function",
577
687
  "name": "reserveRebalancer",
@@ -611,6 +721,19 @@ export const abi = [
611
721
  "outputs": [],
612
722
  "stateMutability": "nonpayable"
613
723
  },
724
+ {
725
+ "type": "function",
726
+ "name": "setBridgeContract",
727
+ "inputs": [
728
+ {
729
+ "name": "bridge_",
730
+ "type": "address",
731
+ "internalType": "address"
732
+ }
733
+ ],
734
+ "outputs": [],
735
+ "stateMutability": "nonpayable"
736
+ },
614
737
  {
615
738
  "type": "function",
616
739
  "name": "setFeeCaps",
@@ -681,6 +804,19 @@ export const abi = [
681
804
  "outputs": [],
682
805
  "stateMutability": "nonpayable"
683
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
+ },
684
820
  {
685
821
  "type": "function",
686
822
  "name": "setReserveRatio",
@@ -949,6 +1085,87 @@ export const abi = [
949
1085
  ],
950
1086
  "anonymous": false
951
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
+ },
952
1169
  {
953
1170
  "type": "event",
954
1171
  "name": "ExcessReserveSwept",
@@ -1239,6 +1456,25 @@ export const abi = [
1239
1456
  ],
1240
1457
  "anonymous": false
1241
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
+ },
1242
1478
  {
1243
1479
  "type": "event",
1244
1480
  "name": "ReserveRatioUpdated",
@@ -1523,6 +1759,22 @@ export const abi = [
1523
1759
  }
1524
1760
  ]
1525
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
+ },
1526
1778
  {
1527
1779
  "type": "error",
1528
1780
  "name": "P3TreasuryManagerCannotClearAttestationManagerWhileSolvencyEnabled",
package/src/index.d.ts CHANGED
@@ -8,8 +8,11 @@ export { abi as IP3AgentLimitComplianceModule, abi as P3AgentLimitComplianceModu
8
8
  export { abi as IP3AgenticRegistryManager, abi as P3AgenticRegistryManagerABI } from "./IP3AgenticRegistryManager.js";
9
9
  export { abi as IP3AttestationManager, abi as P3AttestationManagerABI } from "./IP3AttestationManager.js";
10
10
  export { abi as IP3BasicToken, abi as P3BasicTokenABI } from "./IP3BasicToken.js";
11
+ export { abi as IP3BridgeRegistryAdapter, abi as P3BridgeRegistryAdapterABI } from "./IP3BridgeRegistryAdapter.js";
12
+ export { abi as IP3ChainRegistry, abi as P3ChainRegistryABI } from "./IP3ChainRegistry.js";
11
13
  export { abi as IP3ComplianceFactory, abi as P3ComplianceFactoryABI } from "./IP3ComplianceFactory.js";
12
14
  export { abi as IP3ComplianceModule, abi as P3ComplianceModuleABI } from "./IP3ComplianceModule.js";
15
+ export { abi as IP3CrossChainBridge, abi as P3CrossChainBridgeABI } from "./IP3CrossChainBridge.js";
13
16
  export { abi as IP3DepositToken, abi as P3DepositTokenABI } from "./IP3DepositToken.js";
14
17
  export { abi as IP3DigitalSecurityToken, abi as P3DigitalSecurityTokenABI } from "./IP3DigitalSecurityToken.js";
15
18
  export { abi as IP3EIP3009, abi as P3EIP3009ABI } from "./IP3EIP3009.js";
@@ -19,8 +22,10 @@ export { abi as IP3EquityVault, abi as P3EquityVaultABI } from "./IP3EquityVault
19
22
  export { abi as IP3FXSwap, abi as P3FXSwapABI } from "./IP3FXSwap.js";
20
23
  export { abi as IP3ModularCompliance, abi as P3ModularComplianceABI } from "./IP3ModularCompliance.js";
21
24
  export { abi as IP3RWAVault, abi as P3RWAVaultABI } from "./IP3RWAVault.js";
25
+ export { abi as IP3RegistryMirror, abi as P3RegistryMirrorABI } from "./IP3RegistryMirror.js";
22
26
  export { abi as IP3ReputationComplianceModule, abi as P3ReputationComplianceModuleABI } from "./IP3ReputationComplianceModule.js";
23
27
  export { abi as IP3ReputationRegistry, abi as P3ReputationRegistryABI } from "./IP3ReputationRegistry.js";
28
+ export { abi as IP3ReserveMirror, abi as P3ReserveMirrorABI } from "./IP3ReserveMirror.js";
24
29
  export { abi as IP3StablecoinSwap, abi as P3StablecoinSwapABI } from "./IP3StablecoinSwap.js";
25
30
  export { abi as IP3StablecoinToken, abi as P3StablecoinTokenABI } from "./IP3StablecoinToken.js";
26
31
  export { abi as IP3TokensFactory, abi as P3TokensFactoryABI } from "./IP3TokensFactory.js";
package/src/index.js CHANGED
@@ -8,8 +8,11 @@ export { abi as IP3AgentLimitComplianceModule, abi as P3AgentLimitComplianceModu
8
8
  export { abi as IP3AgenticRegistryManager, abi as P3AgenticRegistryManagerABI } from "./IP3AgenticRegistryManager.js";
9
9
  export { abi as IP3AttestationManager, abi as P3AttestationManagerABI } from "./IP3AttestationManager.js";
10
10
  export { abi as IP3BasicToken, abi as P3BasicTokenABI } from "./IP3BasicToken.js";
11
+ export { abi as IP3BridgeRegistryAdapter, abi as P3BridgeRegistryAdapterABI } from "./IP3BridgeRegistryAdapter.js";
12
+ export { abi as IP3ChainRegistry, abi as P3ChainRegistryABI } from "./IP3ChainRegistry.js";
11
13
  export { abi as IP3ComplianceFactory, abi as P3ComplianceFactoryABI } from "./IP3ComplianceFactory.js";
12
14
  export { abi as IP3ComplianceModule, abi as P3ComplianceModuleABI } from "./IP3ComplianceModule.js";
15
+ export { abi as IP3CrossChainBridge, abi as P3CrossChainBridgeABI } from "./IP3CrossChainBridge.js";
13
16
  export { abi as IP3DepositToken, abi as P3DepositTokenABI } from "./IP3DepositToken.js";
14
17
  export { abi as IP3DigitalSecurityToken, abi as P3DigitalSecurityTokenABI } from "./IP3DigitalSecurityToken.js";
15
18
  export { abi as IP3EIP3009, abi as P3EIP3009ABI } from "./IP3EIP3009.js";
@@ -19,8 +22,10 @@ export { abi as IP3EquityVault, abi as P3EquityVaultABI } from "./IP3EquityVault
19
22
  export { abi as IP3FXSwap, abi as P3FXSwapABI } from "./IP3FXSwap.js";
20
23
  export { abi as IP3ModularCompliance, abi as P3ModularComplianceABI } from "./IP3ModularCompliance.js";
21
24
  export { abi as IP3RWAVault, abi as P3RWAVaultABI } from "./IP3RWAVault.js";
25
+ export { abi as IP3RegistryMirror, abi as P3RegistryMirrorABI } from "./IP3RegistryMirror.js";
22
26
  export { abi as IP3ReputationComplianceModule, abi as P3ReputationComplianceModuleABI } from "./IP3ReputationComplianceModule.js";
23
27
  export { abi as IP3ReputationRegistry, abi as P3ReputationRegistryABI } from "./IP3ReputationRegistry.js";
28
+ export { abi as IP3ReserveMirror, abi as P3ReserveMirrorABI } from "./IP3ReserveMirror.js";
24
29
  export { abi as IP3StablecoinSwap, abi as P3StablecoinSwapABI } from "./IP3StablecoinSwap.js";
25
30
  export { abi as IP3StablecoinToken, abi as P3StablecoinTokenABI } from "./IP3StablecoinToken.js";
26
31
  export { abi as IP3TokensFactory, abi as P3TokensFactoryABI } from "./IP3TokensFactory.js";