@pearldigital/p3-abis 4.0.2 → 4.0.4

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.
@@ -290,6 +290,25 @@ export declare const abi: [
290
290
  ],
291
291
  "stateMutability": "pure"
292
292
  },
293
+ {
294
+ "type": "function",
295
+ "name": "isAssetSuspended",
296
+ "inputs": [
297
+ {
298
+ "name": "asset_",
299
+ "type": "address",
300
+ "internalType": "address"
301
+ }
302
+ ],
303
+ "outputs": [
304
+ {
305
+ "name": "",
306
+ "type": "bool",
307
+ "internalType": "bool"
308
+ }
309
+ ],
310
+ "stateMutability": "view"
311
+ },
293
312
  {
294
313
  "type": "function",
295
314
  "name": "isPairSupported",
@@ -352,6 +371,24 @@ export declare const abi: [
352
371
  "outputs": [],
353
372
  "stateMutability": "nonpayable"
354
373
  },
374
+ {
375
+ "type": "function",
376
+ "name": "setAssetSuspended",
377
+ "inputs": [
378
+ {
379
+ "name": "asset_",
380
+ "type": "address",
381
+ "internalType": "address"
382
+ },
383
+ {
384
+ "name": "suspended_",
385
+ "type": "bool",
386
+ "internalType": "bool"
387
+ }
388
+ ],
389
+ "outputs": [],
390
+ "stateMutability": "nonpayable"
391
+ },
355
392
  {
356
393
  "type": "function",
357
394
  "name": "setSwapFee",
@@ -486,6 +523,77 @@ export declare const abi: [
486
523
  ],
487
524
  "stateMutability": "view"
488
525
  },
526
+ {
527
+ "type": "function",
528
+ "name": "swapQuoted",
529
+ "inputs": [
530
+ {
531
+ "name": "quote_",
532
+ "type": "tuple",
533
+ "internalType": "struct IP3StablecoinSwap.ProviderQuote",
534
+ "components": [
535
+ {
536
+ "name": "provider",
537
+ "type": "address",
538
+ "internalType": "address"
539
+ },
540
+ {
541
+ "name": "fromToken",
542
+ "type": "address",
543
+ "internalType": "address"
544
+ },
545
+ {
546
+ "name": "toToken",
547
+ "type": "address",
548
+ "internalType": "address"
549
+ },
550
+ {
551
+ "name": "rate",
552
+ "type": "uint256",
553
+ "internalType": "uint256"
554
+ },
555
+ {
556
+ "name": "maxAmountIn",
557
+ "type": "uint256",
558
+ "internalType": "uint256"
559
+ },
560
+ {
561
+ "name": "validBefore",
562
+ "type": "uint256",
563
+ "internalType": "uint256"
564
+ },
565
+ {
566
+ "name": "nonce",
567
+ "type": "bytes32",
568
+ "internalType": "bytes32"
569
+ }
570
+ ]
571
+ },
572
+ {
573
+ "name": "signature_",
574
+ "type": "bytes",
575
+ "internalType": "bytes"
576
+ },
577
+ {
578
+ "name": "amountIn_",
579
+ "type": "uint256",
580
+ "internalType": "uint256"
581
+ },
582
+ {
583
+ "name": "minAmountOut_",
584
+ "type": "uint256",
585
+ "internalType": "uint256"
586
+ }
587
+ ],
588
+ "outputs": [
589
+ {
590
+ "name": "amountOut_",
591
+ "type": "uint256",
592
+ "internalType": "uint256"
593
+ }
594
+ ],
595
+ "stateMutability": "nonpayable"
596
+ },
489
597
  {
490
598
  "type": "function",
491
599
  "name": "swapWithAuthorization",
@@ -779,6 +887,25 @@ export declare const abi: [
779
887
  ],
780
888
  "anonymous": false
781
889
  },
890
+ {
891
+ "type": "event",
892
+ "name": "P3SwapAssetSuspensionSet",
893
+ "inputs": [
894
+ {
895
+ "name": "asset",
896
+ "type": "address",
897
+ "indexed": true,
898
+ "internalType": "address"
899
+ },
900
+ {
901
+ "name": "suspended",
902
+ "type": "bool",
903
+ "indexed": false,
904
+ "internalType": "bool"
905
+ }
906
+ ],
907
+ "anonymous": false
908
+ },
782
909
  {
783
910
  "type": "event",
784
911
  "name": "P3SwapPairAdded",
@@ -857,6 +984,49 @@ export declare const abi: [
857
984
  ],
858
985
  "anonymous": false
859
986
  },
987
+ {
988
+ "type": "event",
989
+ "name": "P3SwapQuoteFilled",
990
+ "inputs": [
991
+ {
992
+ "name": "provider",
993
+ "type": "address",
994
+ "indexed": true,
995
+ "internalType": "address"
996
+ },
997
+ {
998
+ "name": "caller",
999
+ "type": "address",
1000
+ "indexed": true,
1001
+ "internalType": "address"
1002
+ },
1003
+ {
1004
+ "name": "nonce",
1005
+ "type": "bytes32",
1006
+ "indexed": true,
1007
+ "internalType": "bytes32"
1008
+ },
1009
+ {
1010
+ "name": "amountIn",
1011
+ "type": "uint256",
1012
+ "indexed": false,
1013
+ "internalType": "uint256"
1014
+ },
1015
+ {
1016
+ "name": "amountOut",
1017
+ "type": "uint256",
1018
+ "indexed": false,
1019
+ "internalType": "uint256"
1020
+ },
1021
+ {
1022
+ "name": "rate",
1023
+ "type": "uint256",
1024
+ "indexed": false,
1025
+ "internalType": "uint256"
1026
+ }
1027
+ ],
1028
+ "anonymous": false
1029
+ },
860
1030
  {
861
1031
  "type": "event",
862
1032
  "name": "SwapAuthorizationCanceled",
@@ -938,6 +1108,17 @@ export declare const abi: [
938
1108
  "name": "AbstractFeeModuleInvalidFeeRecipient",
939
1109
  "inputs": []
940
1110
  },
1111
+ {
1112
+ "type": "error",
1113
+ "name": "P3StablecoinSwapAssetSuspended",
1114
+ "inputs": [
1115
+ {
1116
+ "name": "asset",
1117
+ "type": "address",
1118
+ "internalType": "address"
1119
+ }
1120
+ ]
1121
+ },
941
1122
  {
942
1123
  "type": "error",
943
1124
  "name": "P3StablecoinSwapDeadlineExpired",
@@ -1003,6 +1184,54 @@ export declare const abi: [
1003
1184
  }
1004
1185
  ]
1005
1186
  },
1187
+ {
1188
+ "type": "error",
1189
+ "name": "P3StablecoinSwapQuoteAlreadyUsed",
1190
+ "inputs": [
1191
+ {
1192
+ "name": "nonce",
1193
+ "type": "bytes32",
1194
+ "internalType": "bytes32"
1195
+ }
1196
+ ]
1197
+ },
1198
+ {
1199
+ "type": "error",
1200
+ "name": "P3StablecoinSwapQuoteAmountExceeded",
1201
+ "inputs": [
1202
+ {
1203
+ "name": "amountIn",
1204
+ "type": "uint256",
1205
+ "internalType": "uint256"
1206
+ },
1207
+ {
1208
+ "name": "maxAmountIn",
1209
+ "type": "uint256",
1210
+ "internalType": "uint256"
1211
+ }
1212
+ ]
1213
+ },
1214
+ {
1215
+ "type": "error",
1216
+ "name": "P3StablecoinSwapQuoteExpired",
1217
+ "inputs": [
1218
+ {
1219
+ "name": "validBefore",
1220
+ "type": "uint256",
1221
+ "internalType": "uint256"
1222
+ },
1223
+ {
1224
+ "name": "blockTimestamp",
1225
+ "type": "uint256",
1226
+ "internalType": "uint256"
1227
+ }
1228
+ ]
1229
+ },
1230
+ {
1231
+ "type": "error",
1232
+ "name": "P3StablecoinSwapQuoteMismatch",
1233
+ "inputs": []
1234
+ },
1006
1235
  {
1007
1236
  "type": "error",
1008
1237
  "name": "P3StablecoinSwapRecoveryActive",
@@ -1030,6 +1259,28 @@ export declare const abi: [
1030
1259
  }
1031
1260
  ]
1032
1261
  },
1262
+ {
1263
+ "type": "error",
1264
+ "name": "P3StablecoinSwapSourcedFromTokenBurnable",
1265
+ "inputs": [
1266
+ {
1267
+ "name": "fromToken",
1268
+ "type": "address",
1269
+ "internalType": "address"
1270
+ }
1271
+ ]
1272
+ },
1273
+ {
1274
+ "type": "error",
1275
+ "name": "P3StablecoinSwapSourcedRequiresQuote",
1276
+ "inputs": [
1277
+ {
1278
+ "name": "pairKey",
1279
+ "type": "bytes32",
1280
+ "internalType": "bytes32"
1281
+ }
1282
+ ]
1283
+ },
1033
1284
  {
1034
1285
  "type": "error",
1035
1286
  "name": "P3StablecoinSwapUnsupportedPair",
@@ -290,6 +290,25 @@ export const abi = [
290
290
  ],
291
291
  "stateMutability": "pure"
292
292
  },
293
+ {
294
+ "type": "function",
295
+ "name": "isAssetSuspended",
296
+ "inputs": [
297
+ {
298
+ "name": "asset_",
299
+ "type": "address",
300
+ "internalType": "address"
301
+ }
302
+ ],
303
+ "outputs": [
304
+ {
305
+ "name": "",
306
+ "type": "bool",
307
+ "internalType": "bool"
308
+ }
309
+ ],
310
+ "stateMutability": "view"
311
+ },
293
312
  {
294
313
  "type": "function",
295
314
  "name": "isPairSupported",
@@ -352,6 +371,24 @@ export const abi = [
352
371
  "outputs": [],
353
372
  "stateMutability": "nonpayable"
354
373
  },
374
+ {
375
+ "type": "function",
376
+ "name": "setAssetSuspended",
377
+ "inputs": [
378
+ {
379
+ "name": "asset_",
380
+ "type": "address",
381
+ "internalType": "address"
382
+ },
383
+ {
384
+ "name": "suspended_",
385
+ "type": "bool",
386
+ "internalType": "bool"
387
+ }
388
+ ],
389
+ "outputs": [],
390
+ "stateMutability": "nonpayable"
391
+ },
355
392
  {
356
393
  "type": "function",
357
394
  "name": "setSwapFee",
@@ -486,6 +523,77 @@ export const abi = [
486
523
  ],
487
524
  "stateMutability": "view"
488
525
  },
526
+ {
527
+ "type": "function",
528
+ "name": "swapQuoted",
529
+ "inputs": [
530
+ {
531
+ "name": "quote_",
532
+ "type": "tuple",
533
+ "internalType": "struct IP3StablecoinSwap.ProviderQuote",
534
+ "components": [
535
+ {
536
+ "name": "provider",
537
+ "type": "address",
538
+ "internalType": "address"
539
+ },
540
+ {
541
+ "name": "fromToken",
542
+ "type": "address",
543
+ "internalType": "address"
544
+ },
545
+ {
546
+ "name": "toToken",
547
+ "type": "address",
548
+ "internalType": "address"
549
+ },
550
+ {
551
+ "name": "rate",
552
+ "type": "uint256",
553
+ "internalType": "uint256"
554
+ },
555
+ {
556
+ "name": "maxAmountIn",
557
+ "type": "uint256",
558
+ "internalType": "uint256"
559
+ },
560
+ {
561
+ "name": "validBefore",
562
+ "type": "uint256",
563
+ "internalType": "uint256"
564
+ },
565
+ {
566
+ "name": "nonce",
567
+ "type": "bytes32",
568
+ "internalType": "bytes32"
569
+ }
570
+ ]
571
+ },
572
+ {
573
+ "name": "signature_",
574
+ "type": "bytes",
575
+ "internalType": "bytes"
576
+ },
577
+ {
578
+ "name": "amountIn_",
579
+ "type": "uint256",
580
+ "internalType": "uint256"
581
+ },
582
+ {
583
+ "name": "minAmountOut_",
584
+ "type": "uint256",
585
+ "internalType": "uint256"
586
+ }
587
+ ],
588
+ "outputs": [
589
+ {
590
+ "name": "amountOut_",
591
+ "type": "uint256",
592
+ "internalType": "uint256"
593
+ }
594
+ ],
595
+ "stateMutability": "nonpayable"
596
+ },
489
597
  {
490
598
  "type": "function",
491
599
  "name": "swapWithAuthorization",
@@ -779,6 +887,25 @@ export const abi = [
779
887
  ],
780
888
  "anonymous": false
781
889
  },
890
+ {
891
+ "type": "event",
892
+ "name": "P3SwapAssetSuspensionSet",
893
+ "inputs": [
894
+ {
895
+ "name": "asset",
896
+ "type": "address",
897
+ "indexed": true,
898
+ "internalType": "address"
899
+ },
900
+ {
901
+ "name": "suspended",
902
+ "type": "bool",
903
+ "indexed": false,
904
+ "internalType": "bool"
905
+ }
906
+ ],
907
+ "anonymous": false
908
+ },
782
909
  {
783
910
  "type": "event",
784
911
  "name": "P3SwapPairAdded",
@@ -857,6 +984,49 @@ export const abi = [
857
984
  ],
858
985
  "anonymous": false
859
986
  },
987
+ {
988
+ "type": "event",
989
+ "name": "P3SwapQuoteFilled",
990
+ "inputs": [
991
+ {
992
+ "name": "provider",
993
+ "type": "address",
994
+ "indexed": true,
995
+ "internalType": "address"
996
+ },
997
+ {
998
+ "name": "caller",
999
+ "type": "address",
1000
+ "indexed": true,
1001
+ "internalType": "address"
1002
+ },
1003
+ {
1004
+ "name": "nonce",
1005
+ "type": "bytes32",
1006
+ "indexed": true,
1007
+ "internalType": "bytes32"
1008
+ },
1009
+ {
1010
+ "name": "amountIn",
1011
+ "type": "uint256",
1012
+ "indexed": false,
1013
+ "internalType": "uint256"
1014
+ },
1015
+ {
1016
+ "name": "amountOut",
1017
+ "type": "uint256",
1018
+ "indexed": false,
1019
+ "internalType": "uint256"
1020
+ },
1021
+ {
1022
+ "name": "rate",
1023
+ "type": "uint256",
1024
+ "indexed": false,
1025
+ "internalType": "uint256"
1026
+ }
1027
+ ],
1028
+ "anonymous": false
1029
+ },
860
1030
  {
861
1031
  "type": "event",
862
1032
  "name": "SwapAuthorizationCanceled",
@@ -938,6 +1108,17 @@ export const abi = [
938
1108
  "name": "AbstractFeeModuleInvalidFeeRecipient",
939
1109
  "inputs": []
940
1110
  },
1111
+ {
1112
+ "type": "error",
1113
+ "name": "P3StablecoinSwapAssetSuspended",
1114
+ "inputs": [
1115
+ {
1116
+ "name": "asset",
1117
+ "type": "address",
1118
+ "internalType": "address"
1119
+ }
1120
+ ]
1121
+ },
941
1122
  {
942
1123
  "type": "error",
943
1124
  "name": "P3StablecoinSwapDeadlineExpired",
@@ -1003,6 +1184,54 @@ export const abi = [
1003
1184
  }
1004
1185
  ]
1005
1186
  },
1187
+ {
1188
+ "type": "error",
1189
+ "name": "P3StablecoinSwapQuoteAlreadyUsed",
1190
+ "inputs": [
1191
+ {
1192
+ "name": "nonce",
1193
+ "type": "bytes32",
1194
+ "internalType": "bytes32"
1195
+ }
1196
+ ]
1197
+ },
1198
+ {
1199
+ "type": "error",
1200
+ "name": "P3StablecoinSwapQuoteAmountExceeded",
1201
+ "inputs": [
1202
+ {
1203
+ "name": "amountIn",
1204
+ "type": "uint256",
1205
+ "internalType": "uint256"
1206
+ },
1207
+ {
1208
+ "name": "maxAmountIn",
1209
+ "type": "uint256",
1210
+ "internalType": "uint256"
1211
+ }
1212
+ ]
1213
+ },
1214
+ {
1215
+ "type": "error",
1216
+ "name": "P3StablecoinSwapQuoteExpired",
1217
+ "inputs": [
1218
+ {
1219
+ "name": "validBefore",
1220
+ "type": "uint256",
1221
+ "internalType": "uint256"
1222
+ },
1223
+ {
1224
+ "name": "blockTimestamp",
1225
+ "type": "uint256",
1226
+ "internalType": "uint256"
1227
+ }
1228
+ ]
1229
+ },
1230
+ {
1231
+ "type": "error",
1232
+ "name": "P3StablecoinSwapQuoteMismatch",
1233
+ "inputs": []
1234
+ },
1006
1235
  {
1007
1236
  "type": "error",
1008
1237
  "name": "P3StablecoinSwapRecoveryActive",
@@ -1030,6 +1259,28 @@ export const abi = [
1030
1259
  }
1031
1260
  ]
1032
1261
  },
1262
+ {
1263
+ "type": "error",
1264
+ "name": "P3StablecoinSwapSourcedFromTokenBurnable",
1265
+ "inputs": [
1266
+ {
1267
+ "name": "fromToken",
1268
+ "type": "address",
1269
+ "internalType": "address"
1270
+ }
1271
+ ]
1272
+ },
1273
+ {
1274
+ "type": "error",
1275
+ "name": "P3StablecoinSwapSourcedRequiresQuote",
1276
+ "inputs": [
1277
+ {
1278
+ "name": "pairKey",
1279
+ "type": "bytes32",
1280
+ "internalType": "bytes32"
1281
+ }
1282
+ ]
1283
+ },
1033
1284
  {
1034
1285
  "type": "error",
1035
1286
  "name": "P3StablecoinSwapUnsupportedPair",