@pushchain/core 6.0.27-alpha.0 → 6.0.27-alpha.1

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.
Files changed (78) hide show
  1. package/AGW.md +49 -17
  2. package/CHANGELOG.md +10 -0
  3. package/package.json +1 -1
  4. package/src/lib/agentic/agentic.types.d.ts +8 -3
  5. package/src/lib/agentic/capabilities.d.ts +1 -1
  6. package/src/lib/agentic/capabilities.js +1 -1
  7. package/src/lib/agentic/codec/abi-layout.d.ts +5 -0
  8. package/src/lib/agentic/codec/abi-layout.js +50 -3
  9. package/src/lib/agentic/codec/defaults.d.ts +2 -2
  10. package/src/lib/agentic/codec/defaults.js +2 -2
  11. package/src/lib/agentic/codec/ids.d.ts +1 -1
  12. package/src/lib/agentic/codec/ids.js +1 -1
  13. package/src/lib/agentic/codec/native.d.ts +4 -6
  14. package/src/lib/agentic/codec/native.js +27 -14
  15. package/src/lib/agentic/codec/pins.d.ts +20 -0
  16. package/src/lib/agentic/codec/pins.js +29 -0
  17. package/src/lib/agentic/codec/rules.d.ts +1 -1
  18. package/src/lib/agentic/codec/rules.js +3 -3
  19. package/src/lib/agentic/codec/session.d.ts +2 -2
  20. package/src/lib/agentic/codec/session.js +3 -3
  21. package/src/lib/agentic/codec/svm-terms.d.ts +1 -1
  22. package/src/lib/agentic/codec/svm-terms.js +7 -3
  23. package/src/lib/agentic/codec/universal-terms.d.ts +15 -0
  24. package/src/lib/agentic/codec/universal-terms.js +2 -0
  25. package/src/lib/agentic/codec/universal.js +22 -6
  26. package/src/lib/agentic/constants.d.ts +1 -0
  27. package/src/lib/agentic/constants.js +1 -0
  28. package/src/lib/agentic/contracts/abi/{v5 → v6}/agent-validator.js +1 -1
  29. package/src/lib/agentic/contracts/abi/{v5 → v6}/agw-factory.d.ts +299 -0
  30. package/src/lib/agentic/contracts/abi/{v5 → v6}/agw-factory.js +393 -2
  31. package/src/lib/agentic/contracts/abi/{v5 → v6}/agw.d.ts +96 -1
  32. package/src/lib/agentic/contracts/abi/{v5 → v6}/agw.js +128 -3
  33. package/src/lib/agentic/contracts/abi/{v5 → v6}/index.d.ts +1 -1
  34. package/src/lib/agentic/contracts/abi/{v5 → v6}/index.js +3 -3
  35. package/src/lib/agentic/contracts/abi/{v5 → v6}/smart-session.js +1 -1
  36. package/src/lib/agentic/contracts/abi/{v5 → v6}/universal-rules-policy.d.ts +329 -308
  37. package/src/lib/agentic/contracts/abi/{v5 → v6}/universal-rules-policy.js +396 -369
  38. package/src/lib/agentic/contracts/donut-v6.d.ts +11 -0
  39. package/src/lib/agentic/contracts/donut-v6.js +15 -0
  40. package/src/lib/agentic/contracts/{v5.d.ts → v6.d.ts} +800 -384
  41. package/src/lib/agentic/contracts/{v5.js → v6.js} +60 -33
  42. package/src/lib/agentic/deployments.d.ts +5 -5
  43. package/src/lib/agentic/deployments.js +19 -19
  44. package/src/lib/agentic/errors.d.ts +1 -7
  45. package/src/lib/agentic/errors.js +1 -9
  46. package/src/lib/agentic/execution/outbound.d.ts +4 -4
  47. package/src/lib/agentic/execution/outbound.js +5 -5
  48. package/src/lib/agentic/execution/send.js +3 -11
  49. package/src/lib/agentic/execution/svm-outbound.d.ts +1 -1
  50. package/src/lib/agentic/execution/svm-payload.js +1 -1
  51. package/src/lib/agentic/execution/svm-public.js +1 -7
  52. package/src/lib/agentic/execution/svm-send.d.ts +1 -1
  53. package/src/lib/agentic/execution/svm-send.js +0 -3
  54. package/src/lib/agentic/index.d.ts +1 -1
  55. package/src/lib/agentic/management/common.js +7 -5
  56. package/src/lib/agentic/management/create.d.ts +1 -13
  57. package/src/lib/agentic/management/create.js +24 -157
  58. package/src/lib/agentic/management/svm.js +2 -2
  59. package/src/lib/agentic/presets/catalog.d.ts +7 -2
  60. package/src/lib/agentic/presets/catalog.js +300 -3
  61. package/src/lib/agentic/presets/index.js +93 -18
  62. package/src/lib/agentic/presets/types.d.ts +5 -1
  63. package/src/lib/agentic/public-rule.d.ts +2 -2
  64. package/src/lib/agentic/public-rule.js +24 -40
  65. package/src/lib/agentic/reads/rules.js +27 -11
  66. package/src/lib/agentic/reads/svm.d.ts +1 -1
  67. package/src/lib/agentic/reads/svm.js +2 -2
  68. package/src/lib/agentic/response.js +7 -7
  69. package/src/lib/agentic/revert.js +5 -5
  70. package/src/lib/agentic/runtime.js +12 -3
  71. package/src/lib/agentic/utils.js +1 -1
  72. package/src/lib/constants/index.d.ts +1 -0
  73. package/src/lib/index.d.ts +1 -1
  74. package/src/lib/push-chain/push-chain.d.ts +1 -0
  75. package/src/lib/agentic/contracts/donut-v5.d.ts +0 -11
  76. package/src/lib/agentic/contracts/donut-v5.js +0 -15
  77. /package/src/lib/agentic/contracts/abi/{v5 → v6}/agent-validator.d.ts +0 -0
  78. /package/src/lib/agentic/contracts/abi/{v5 → v6}/smart-session.d.ts +0 -0
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UNIVERSAL_RULES_POLICY_ABI = void 0;
4
4
  // GENERATED by packages/core/scripts/agw-local/gen-abi.mjs — do not edit.
5
5
  // Source: packages/core/scripts/agw-local/abis/policy.json
6
- // push-agentic-wallets@2e61e133e641b4e0e1ddbdc9306b0903b60e4dbb
7
- // sha256(UniversalRulesPolicy.json) = c7e3cd5c7f8e47be217c77ebebde4c090903cea7db63024838e434eb6f1fd77b
6
+ // push-agentic-wallets@ffd567d3e49b2d27c6f50ad36093274dbac3090f
7
+ // sha256(UniversalRulesPolicy.json) = a07661d19b19656afdea560275d45669a908cd96646817884295e0017560f299
8
8
  exports.UNIVERSAL_RULES_POLICY_ABI = [
9
9
  {
10
10
  "type": "function",
@@ -283,6 +283,28 @@ exports.UNIVERSAL_RULES_POLICY_ABI = [
283
283
  "name": "maxValue",
284
284
  "type": "uint256",
285
285
  "internalType": "uint256"
286
+ },
287
+ {
288
+ "name": "pins",
289
+ "type": "tuple[]",
290
+ "internalType": "struct ArgPin[]",
291
+ "components": [
292
+ {
293
+ "name": "offset",
294
+ "type": "uint16",
295
+ "internalType": "uint16"
296
+ },
297
+ {
298
+ "name": "op",
299
+ "type": "uint8",
300
+ "internalType": "enum PinOp"
301
+ },
302
+ {
303
+ "name": "value",
304
+ "type": "bytes32",
305
+ "internalType": "bytes32"
306
+ }
307
+ ]
286
308
  }
287
309
  ]
288
310
  }
@@ -446,7 +468,12 @@ exports.UNIVERSAL_RULES_POLICY_ABI = [
446
468
  "internalType": "uint16"
447
469
  },
448
470
  {
449
- "name": "expected",
471
+ "name": "op",
472
+ "type": "uint8",
473
+ "internalType": "enum PinOp"
474
+ },
475
+ {
476
+ "name": "value",
450
477
  "type": "bytes32",
451
478
  "internalType": "bytes32"
452
479
  }
@@ -983,15 +1010,15 @@ exports.UNIVERSAL_RULES_POLICY_ABI = [
983
1010
  },
984
1011
  {
985
1012
  "type": "error",
986
- "name": "AmbiguousRule",
1013
+ "name": "AmountExceedsCap",
987
1014
  "inputs": [
988
1015
  {
989
- "name": "i",
1016
+ "name": "amount",
990
1017
  "type": "uint256",
991
1018
  "internalType": "uint256"
992
1019
  },
993
1020
  {
994
- "name": "j",
1021
+ "name": "cap",
995
1022
  "type": "uint256",
996
1023
  "internalType": "uint256"
997
1024
  }
@@ -999,26 +1026,20 @@ exports.UNIVERSAL_RULES_POLICY_ABI = [
999
1026
  },
1000
1027
  {
1001
1028
  "type": "error",
1002
- "name": "AmountExceedsCap",
1029
+ "name": "ArgPinAboveMax",
1003
1030
  "inputs": [
1004
1031
  {
1005
- "name": "amount",
1032
+ "name": "actual",
1006
1033
  "type": "uint256",
1007
1034
  "internalType": "uint256"
1008
1035
  },
1009
1036
  {
1010
- "name": "cap",
1037
+ "name": "index",
1011
1038
  "type": "uint256",
1012
1039
  "internalType": "uint256"
1013
- }
1014
- ]
1015
- },
1016
- {
1017
- "type": "error",
1018
- "name": "AmountExceedsU64",
1019
- "inputs": [
1040
+ },
1020
1041
  {
1021
- "name": "amount",
1042
+ "name": "max",
1022
1043
  "type": "uint256",
1023
1044
  "internalType": "uint256"
1024
1045
  }
@@ -1099,22 +1120,6 @@ exports.UNIVERSAL_RULES_POLICY_ABI = [
1099
1120
  }
1100
1121
  ]
1101
1122
  },
1102
- {
1103
- "type": "error",
1104
- "name": "BeneficiaryMismatch",
1105
- "inputs": [
1106
- {
1107
- "name": "expected",
1108
- "type": "address",
1109
- "internalType": "address"
1110
- },
1111
- {
1112
- "name": "actual",
1113
- "type": "address",
1114
- "internalType": "address"
1115
- }
1116
- ]
1117
- },
1118
1123
  {
1119
1124
  "type": "error",
1120
1125
  "name": "CallLimitReached",
@@ -1206,27 +1211,6 @@ exports.UNIVERSAL_RULES_POLICY_ABI = [
1206
1211
  }
1207
1212
  ]
1208
1213
  },
1209
- {
1210
- "type": "error",
1211
- "name": "CeaAccountAtUnpinnedIndex",
1212
- "inputs": [
1213
- {
1214
- "name": "accountIndex",
1215
- "type": "uint256",
1216
- "internalType": "uint256"
1217
- },
1218
- {
1219
- "name": "account",
1220
- "type": "bytes32",
1221
- "internalType": "bytes32"
1222
- }
1223
- ]
1224
- },
1225
- {
1226
- "type": "error",
1227
- "name": "CeaAccountsMissExpectedCEA",
1228
- "inputs": []
1229
- },
1230
1214
  {
1231
1215
  "type": "error",
1232
1216
  "name": "ChainMismatch",
@@ -1243,22 +1227,6 @@ exports.UNIVERSAL_RULES_POLICY_ABI = [
1243
1227
  }
1244
1228
  ]
1245
1229
  },
1246
- {
1247
- "type": "error",
1248
- "name": "DiscriminatorLenOutOfRange",
1249
- "inputs": [
1250
- {
1251
- "name": "rule",
1252
- "type": "uint256",
1253
- "internalType": "uint256"
1254
- },
1255
- {
1256
- "name": "len",
1257
- "type": "uint8",
1258
- "internalType": "uint8"
1259
- }
1260
- ]
1261
- },
1262
1230
  {
1263
1231
  "type": "error",
1264
1232
  "name": "DuplicateAsset",
@@ -1270,22 +1238,6 @@ exports.UNIVERSAL_RULES_POLICY_ABI = [
1270
1238
  }
1271
1239
  ]
1272
1240
  },
1273
- {
1274
- "type": "error",
1275
- "name": "DuplicateSvmPin",
1276
- "inputs": [
1277
- {
1278
- "name": "first",
1279
- "type": "uint256",
1280
- "internalType": "uint256"
1281
- },
1282
- {
1283
- "name": "second",
1284
- "type": "uint256",
1285
- "internalType": "uint256"
1286
- }
1287
- ]
1288
- },
1289
1241
  {
1290
1242
  "type": "error",
1291
1243
  "name": "EmptyChain",
@@ -1302,54 +1254,6 @@ exports.UNIVERSAL_RULES_POLICY_ABI = [
1302
1254
  }
1303
1255
  ]
1304
1256
  },
1305
- {
1306
- "type": "error",
1307
- "name": "ForbiddenProgramInAllowList",
1308
- "inputs": [
1309
- {
1310
- "name": "rule",
1311
- "type": "uint256",
1312
- "internalType": "uint256"
1313
- },
1314
- {
1315
- "name": "program",
1316
- "type": "bytes32",
1317
- "internalType": "bytes32"
1318
- }
1319
- ]
1320
- },
1321
- {
1322
- "type": "error",
1323
- "name": "ForbiddenTargetProgram",
1324
- "inputs": [
1325
- {
1326
- "name": "program",
1327
- "type": "bytes32",
1328
- "internalType": "bytes32"
1329
- }
1330
- ]
1331
- },
1332
- {
1333
- "type": "error",
1334
- "name": "InnerValueExceedsAllowance",
1335
- "inputs": [
1336
- {
1337
- "name": "index",
1338
- "type": "uint256",
1339
- "internalType": "uint256"
1340
- },
1341
- {
1342
- "name": "value",
1343
- "type": "uint256",
1344
- "internalType": "uint256"
1345
- },
1346
- {
1347
- "name": "maxValue",
1348
- "type": "uint256",
1349
- "internalType": "uint256"
1350
- }
1351
- ]
1352
- },
1353
1257
  {
1354
1258
  "type": "error",
1355
1259
  "name": "InvalidAsset",
@@ -1361,17 +1265,6 @@ exports.UNIVERSAL_RULES_POLICY_ABI = [
1361
1265
  }
1362
1266
  ]
1363
1267
  },
1364
- {
1365
- "type": "error",
1366
- "name": "InvalidCeaAccount",
1367
- "inputs": [
1368
- {
1369
- "name": "index",
1370
- "type": "uint256",
1371
- "internalType": "uint256"
1372
- }
1373
- ]
1374
- },
1375
1268
  {
1376
1269
  "type": "error",
1377
1270
  "name": "InvalidConfigField",
@@ -1420,11 +1313,6 @@ exports.UNIVERSAL_RULES_POLICY_ABI = [
1420
1313
  }
1421
1314
  ]
1422
1315
  },
1423
- {
1424
- "type": "error",
1425
- "name": "InvalidSvmConfigField",
1426
- "inputs": []
1427
- },
1428
1316
  {
1429
1317
  "type": "error",
1430
1318
  "name": "InvalidTarget",
@@ -1452,17 +1340,6 @@ exports.UNIVERSAL_RULES_POLICY_ABI = [
1452
1340
  }
1453
1341
  ]
1454
1342
  },
1455
- {
1456
- "type": "error",
1457
- "name": "MalformedSvmPayload",
1458
- "inputs": [
1459
- {
1460
- "name": "code",
1461
- "type": "uint8",
1462
- "internalType": "uint8"
1463
- }
1464
- ]
1465
- },
1466
1343
  {
1467
1344
  "type": "error",
1468
1345
  "name": "NativeAmountExceedsCap",
@@ -1558,76 +1435,11 @@ exports.UNIVERSAL_RULES_POLICY_ABI = [
1558
1435
  }
1559
1436
  ]
1560
1437
  },
1561
- {
1562
- "type": "error",
1563
- "name": "ProgramListOutOfRange",
1564
- "inputs": [
1565
- {
1566
- "name": "length",
1567
- "type": "uint256",
1568
- "internalType": "uint256"
1569
- }
1570
- ]
1571
- },
1572
- {
1573
- "type": "error",
1574
- "name": "ProgramNotAllowed",
1575
- "inputs": [
1576
- {
1577
- "name": "program",
1578
- "type": "bytes32",
1579
- "internalType": "bytes32"
1580
- },
1581
- {
1582
- "name": "discriminator",
1583
- "type": "bytes8",
1584
- "internalType": "bytes8"
1585
- }
1586
- ]
1587
- },
1588
1438
  {
1589
1439
  "type": "error",
1590
1440
  "name": "RecipientMustBeEmpty",
1591
1441
  "inputs": []
1592
1442
  },
1593
- {
1594
- "type": "error",
1595
- "name": "RecipientNotPubkey",
1596
- "inputs": [
1597
- {
1598
- "name": "length",
1599
- "type": "uint256",
1600
- "internalType": "uint256"
1601
- }
1602
- ]
1603
- },
1604
- {
1605
- "type": "error",
1606
- "name": "RecipientTargetMismatch",
1607
- "inputs": [
1608
- {
1609
- "name": "recipient",
1610
- "type": "bytes32",
1611
- "internalType": "bytes32"
1612
- },
1613
- {
1614
- "name": "target",
1615
- "type": "bytes32",
1616
- "internalType": "bytes32"
1617
- }
1618
- ]
1619
- },
1620
- {
1621
- "type": "error",
1622
- "name": "RuleWithoutPin",
1623
- "inputs": [
1624
- {
1625
- "name": "rule",
1626
- "type": "uint256",
1627
- "internalType": "uint256"
1628
- }
1629
- ]
1630
- },
1631
1443
  {
1632
1444
  "type": "error",
1633
1445
  "name": "RulesExpired",
@@ -1689,73 +1501,85 @@ exports.UNIVERSAL_RULES_POLICY_ABI = [
1689
1501
  },
1690
1502
  {
1691
1503
  "type": "error",
1692
- "name": "SvmAccountCountBelowPin",
1504
+ "name": "TargetMismatch",
1693
1505
  "inputs": [
1694
1506
  {
1695
- "name": "pin",
1696
- "type": "uint256",
1697
- "internalType": "uint256"
1698
- },
1699
- {
1700
- "name": "count",
1701
- "type": "uint256",
1702
- "internalType": "uint256"
1507
+ "name": "actual",
1508
+ "type": "address",
1509
+ "internalType": "address"
1703
1510
  },
1704
1511
  {
1705
- "name": "needed",
1706
- "type": "uint8",
1707
- "internalType": "uint8"
1512
+ "name": "expected",
1513
+ "type": "address",
1514
+ "internalType": "address"
1708
1515
  }
1709
1516
  ]
1710
1517
  },
1711
1518
  {
1712
1519
  "type": "error",
1713
- "name": "SvmAccountCountMismatch",
1520
+ "name": "TooManyAllowedCallPins",
1714
1521
  "inputs": [
1715
1522
  {
1716
- "name": "count",
1523
+ "name": "total",
1717
1524
  "type": "uint256",
1718
1525
  "internalType": "uint256"
1719
- },
1720
- {
1721
- "name": "expected",
1722
- "type": "uint8",
1723
- "internalType": "uint8"
1724
1526
  }
1725
1527
  ]
1726
1528
  },
1727
1529
  {
1728
1530
  "type": "error",
1729
- "name": "SvmAccountPinMismatch",
1531
+ "name": "TooManyPins",
1730
1532
  "inputs": [
1731
1533
  {
1732
- "name": "pin",
1534
+ "name": "count",
1733
1535
  "type": "uint256",
1734
1536
  "internalType": "uint256"
1735
- },
1537
+ }
1538
+ ]
1539
+ },
1540
+ {
1541
+ "type": "error",
1542
+ "name": "TotalNativeAmountExceeded",
1543
+ "inputs": [
1736
1544
  {
1737
- "name": "accountIndex",
1738
- "type": "uint8",
1739
- "internalType": "uint8"
1545
+ "name": "newSpent",
1546
+ "type": "uint256",
1547
+ "internalType": "uint256"
1740
1548
  },
1741
1549
  {
1742
- "name": "expected",
1743
- "type": "bytes32",
1744
- "internalType": "bytes32"
1550
+ "name": "cap",
1551
+ "type": "uint256",
1552
+ "internalType": "uint256"
1553
+ }
1554
+ ]
1555
+ },
1556
+ {
1557
+ "type": "error",
1558
+ "name": "TotalSpendCapExceeded",
1559
+ "inputs": [
1560
+ {
1561
+ "name": "wouldBeTotal",
1562
+ "type": "uint256",
1563
+ "internalType": "uint256"
1745
1564
  },
1746
1565
  {
1747
- "name": "actual",
1748
- "type": "bytes32",
1749
- "internalType": "bytes32"
1566
+ "name": "cap",
1567
+ "type": "uint256",
1568
+ "internalType": "uint256"
1750
1569
  }
1751
1570
  ]
1752
1571
  },
1753
1572
  {
1754
1573
  "type": "error",
1755
- "name": "SvmAccountsOutOfRange",
1574
+ "name": "TotalValueExceeded",
1756
1575
  "inputs": [
1757
1576
  {
1758
- "name": "count",
1577
+ "name": "newSpent",
1578
+ "type": "uint256",
1579
+ "internalType": "uint256"
1580
+ },
1581
+ {
1582
+ "name": "cap",
1759
1583
  "type": "uint256",
1760
1584
  "internalType": "uint256"
1761
1585
  }
@@ -1763,20 +1587,42 @@ exports.UNIVERSAL_RULES_POLICY_ABI = [
1763
1587
  },
1764
1588
  {
1765
1589
  "type": "error",
1766
- "name": "SvmDataCeilingExceeded",
1590
+ "name": "UncappedGasSwapRejected",
1591
+ "inputs": []
1592
+ },
1593
+ {
1594
+ "type": "error",
1595
+ "name": "UnsupportedEnvelopeVersion",
1767
1596
  "inputs": [
1768
1597
  {
1769
- "name": "pin",
1598
+ "name": "version",
1770
1599
  "type": "uint256",
1771
1600
  "internalType": "uint256"
1772
- },
1601
+ }
1602
+ ]
1603
+ },
1604
+ {
1605
+ "type": "error",
1606
+ "name": "UnsupportedNamespace",
1607
+ "inputs": [
1773
1608
  {
1774
- "name": "actual",
1609
+ "name": "chainHash",
1610
+ "type": "bytes32",
1611
+ "internalType": "bytes32"
1612
+ }
1613
+ ]
1614
+ },
1615
+ {
1616
+ "type": "error",
1617
+ "name": "ValueExceedsCap",
1618
+ "inputs": [
1619
+ {
1620
+ "name": "value",
1775
1621
  "type": "uint256",
1776
1622
  "internalType": "uint256"
1777
1623
  },
1778
1624
  {
1779
- "name": "ceiling",
1625
+ "name": "cap",
1780
1626
  "type": "uint256",
1781
1627
  "internalType": "uint256"
1782
1628
  }
@@ -1784,20 +1630,68 @@ exports.UNIVERSAL_RULES_POLICY_ABI = [
1784
1630
  },
1785
1631
  {
1786
1632
  "type": "error",
1787
- "name": "SvmDataFloorNotMet",
1633
+ "name": "ValueOnlyCalldataNotEmpty",
1788
1634
  "inputs": [
1789
1635
  {
1790
- "name": "pin",
1636
+ "name": "length",
1791
1637
  "type": "uint256",
1792
1638
  "internalType": "uint256"
1793
- },
1639
+ }
1640
+ ]
1641
+ },
1642
+ {
1643
+ "type": "error",
1644
+ "name": "ValueOnlyWithAmountRule",
1645
+ "inputs": []
1646
+ },
1647
+ {
1648
+ "type": "error",
1649
+ "name": "ValueOnlyWithPins",
1650
+ "inputs": []
1651
+ },
1652
+ {
1653
+ "type": "error",
1654
+ "name": "WrongModeForCall",
1655
+ "inputs": [
1656
+ {
1657
+ "name": "actual",
1658
+ "type": "uint8",
1659
+ "internalType": "enum RulesType"
1660
+ }
1661
+ ]
1662
+ },
1663
+ {
1664
+ "type": "error",
1665
+ "name": "WrongVmForCall",
1666
+ "inputs": [
1794
1667
  {
1795
1668
  "name": "actual",
1669
+ "type": "uint8",
1670
+ "internalType": "enum VmFamily"
1671
+ }
1672
+ ]
1673
+ },
1674
+ {
1675
+ "type": "error",
1676
+ "name": "ZeroAddress",
1677
+ "inputs": []
1678
+ },
1679
+ {
1680
+ "type": "error",
1681
+ "name": "ZeroMaxCalls",
1682
+ "inputs": []
1683
+ },
1684
+ {
1685
+ "type": "error",
1686
+ "name": "AmbiguousRule",
1687
+ "inputs": [
1688
+ {
1689
+ "name": "i",
1796
1690
  "type": "uint256",
1797
1691
  "internalType": "uint256"
1798
1692
  },
1799
1693
  {
1800
- "name": "floor",
1694
+ "name": "j",
1801
1695
  "type": "uint256",
1802
1696
  "internalType": "uint256"
1803
1697
  }
@@ -1805,10 +1699,10 @@ exports.UNIVERSAL_RULES_POLICY_ABI = [
1805
1699
  },
1806
1700
  {
1807
1701
  "type": "error",
1808
- "name": "SvmDataPinInvalid",
1702
+ "name": "AmountExceedsU64",
1809
1703
  "inputs": [
1810
1704
  {
1811
- "name": "pin",
1705
+ "name": "amount",
1812
1706
  "type": "uint256",
1813
1707
  "internalType": "uint256"
1814
1708
  }
@@ -1816,20 +1710,15 @@ exports.UNIVERSAL_RULES_POLICY_ABI = [
1816
1710
  },
1817
1711
  {
1818
1712
  "type": "error",
1819
- "name": "SvmDataPinMismatch",
1713
+ "name": "CeaAccountAtUnpinnedIndex",
1820
1714
  "inputs": [
1821
1715
  {
1822
- "name": "pin",
1716
+ "name": "accountIndex",
1823
1717
  "type": "uint256",
1824
1718
  "internalType": "uint256"
1825
1719
  },
1826
1720
  {
1827
- "name": "expected",
1828
- "type": "bytes32",
1829
- "internalType": "bytes32"
1830
- },
1831
- {
1832
- "name": "actual",
1721
+ "name": "account",
1833
1722
  "type": "bytes32",
1834
1723
  "internalType": "bytes32"
1835
1724
  }
@@ -1837,46 +1726,74 @@ exports.UNIVERSAL_RULES_POLICY_ABI = [
1837
1726
  },
1838
1727
  {
1839
1728
  "type": "error",
1840
- "name": "SvmDataRatioNotMet",
1729
+ "name": "CeaAccountsMissExpectedCEA",
1730
+ "inputs": []
1731
+ },
1732
+ {
1733
+ "type": "error",
1734
+ "name": "DiscriminatorLenOutOfRange",
1841
1735
  "inputs": [
1842
1736
  {
1843
- "name": "pin",
1737
+ "name": "rule",
1844
1738
  "type": "uint256",
1845
1739
  "internalType": "uint256"
1846
1740
  },
1847
1741
  {
1848
- "name": "a",
1742
+ "name": "len",
1743
+ "type": "uint8",
1744
+ "internalType": "uint8"
1745
+ }
1746
+ ]
1747
+ },
1748
+ {
1749
+ "type": "error",
1750
+ "name": "DuplicateSvmPin",
1751
+ "inputs": [
1752
+ {
1753
+ "name": "first",
1849
1754
  "type": "uint256",
1850
1755
  "internalType": "uint256"
1851
1756
  },
1852
1757
  {
1853
- "name": "b",
1758
+ "name": "second",
1854
1759
  "type": "uint256",
1855
1760
  "internalType": "uint256"
1856
- },
1857
- {
1858
- "name": "num",
1859
- "type": "uint64",
1860
- "internalType": "uint64"
1861
- },
1862
- {
1863
- "name": "den",
1864
- "type": "uint64",
1865
- "internalType": "uint64"
1866
1761
  }
1867
1762
  ]
1868
1763
  },
1869
1764
  {
1870
1765
  "type": "error",
1871
- "name": "SvmDataTooShortForPin",
1766
+ "name": "ForbiddenProgramInAllowList",
1872
1767
  "inputs": [
1873
1768
  {
1874
- "name": "pin",
1769
+ "name": "rule",
1875
1770
  "type": "uint256",
1876
1771
  "internalType": "uint256"
1877
1772
  },
1878
1773
  {
1879
- "name": "ixLen",
1774
+ "name": "program",
1775
+ "type": "bytes32",
1776
+ "internalType": "bytes32"
1777
+ }
1778
+ ]
1779
+ },
1780
+ {
1781
+ "type": "error",
1782
+ "name": "ForbiddenTargetProgram",
1783
+ "inputs": [
1784
+ {
1785
+ "name": "program",
1786
+ "type": "bytes32",
1787
+ "internalType": "bytes32"
1788
+ }
1789
+ ]
1790
+ },
1791
+ {
1792
+ "type": "error",
1793
+ "name": "InvalidCeaAccount",
1794
+ "inputs": [
1795
+ {
1796
+ "name": "index",
1880
1797
  "type": "uint256",
1881
1798
  "internalType": "uint256"
1882
1799
  }
@@ -1884,10 +1801,15 @@ exports.UNIVERSAL_RULES_POLICY_ABI = [
1884
1801
  },
1885
1802
  {
1886
1803
  "type": "error",
1887
- "name": "SvmInstructionNotExecute",
1804
+ "name": "InvalidSvmConfigField",
1805
+ "inputs": []
1806
+ },
1807
+ {
1808
+ "type": "error",
1809
+ "name": "MalformedSvmPayload",
1888
1810
  "inputs": [
1889
1811
  {
1890
- "name": "instructionId",
1812
+ "name": "code",
1891
1813
  "type": "uint8",
1892
1814
  "internalType": "uint8"
1893
1815
  }
@@ -1895,7 +1817,7 @@ exports.UNIVERSAL_RULES_POLICY_ABI = [
1895
1817
  },
1896
1818
  {
1897
1819
  "type": "error",
1898
- "name": "SvmIxDataTooLong",
1820
+ "name": "ProgramListOutOfRange",
1899
1821
  "inputs": [
1900
1822
  {
1901
1823
  "name": "length",
@@ -1906,28 +1828,61 @@ exports.UNIVERSAL_RULES_POLICY_ABI = [
1906
1828
  },
1907
1829
  {
1908
1830
  "type": "error",
1909
- "name": "SvmMaxAccountsOutOfRange",
1831
+ "name": "ProgramNotAllowed",
1910
1832
  "inputs": [
1911
1833
  {
1912
- "name": "rule",
1834
+ "name": "program",
1835
+ "type": "bytes32",
1836
+ "internalType": "bytes32"
1837
+ },
1838
+ {
1839
+ "name": "discriminator",
1840
+ "type": "bytes8",
1841
+ "internalType": "bytes8"
1842
+ }
1843
+ ]
1844
+ },
1845
+ {
1846
+ "type": "error",
1847
+ "name": "RecipientNotPubkey",
1848
+ "inputs": [
1849
+ {
1850
+ "name": "length",
1913
1851
  "type": "uint256",
1914
1852
  "internalType": "uint256"
1853
+ }
1854
+ ]
1855
+ },
1856
+ {
1857
+ "type": "error",
1858
+ "name": "RecipientTargetMismatch",
1859
+ "inputs": [
1860
+ {
1861
+ "name": "recipient",
1862
+ "type": "bytes32",
1863
+ "internalType": "bytes32"
1915
1864
  },
1916
1865
  {
1917
- "name": "maxAccounts",
1918
- "type": "uint8",
1919
- "internalType": "uint8"
1866
+ "name": "target",
1867
+ "type": "bytes32",
1868
+ "internalType": "bytes32"
1920
1869
  }
1921
1870
  ]
1922
1871
  },
1923
1872
  {
1924
1873
  "type": "error",
1925
- "name": "SvmPayloadEmpty",
1926
- "inputs": []
1874
+ "name": "RuleWithoutPin",
1875
+ "inputs": [
1876
+ {
1877
+ "name": "rule",
1878
+ "type": "uint256",
1879
+ "internalType": "uint256"
1880
+ }
1881
+ ]
1927
1882
  },
1928
1883
  {
1929
1884
  "type": "error",
1930
- "name": "SvmPinIndexOutOfRange",
1885
+ "name": "SvmAccountCountBelowPin",
1931
1886
  "inputs": [
1932
1887
  {
1933
1888
  "name": "pin",
@@ -1935,7 +1890,12 @@ exports.UNIVERSAL_RULES_POLICY_ABI = [
1935
1890
  "internalType": "uint256"
1936
1891
  },
1937
1892
  {
1938
- "name": "accountIndex",
1893
+ "name": "count",
1894
+ "type": "uint256",
1895
+ "internalType": "uint256"
1896
+ },
1897
+ {
1898
+ "name": "needed",
1939
1899
  "type": "uint8",
1940
1900
  "internalType": "uint8"
1941
1901
  }
@@ -1943,15 +1903,15 @@ exports.UNIVERSAL_RULES_POLICY_ABI = [
1943
1903
  },
1944
1904
  {
1945
1905
  "type": "error",
1946
- "name": "SvmPinRuleOutOfRange",
1906
+ "name": "SvmAccountCountMismatch",
1947
1907
  "inputs": [
1948
1908
  {
1949
- "name": "pin",
1909
+ "name": "count",
1950
1910
  "type": "uint256",
1951
1911
  "internalType": "uint256"
1952
1912
  },
1953
1913
  {
1954
- "name": "rule",
1914
+ "name": "expected",
1955
1915
  "type": "uint8",
1956
1916
  "internalType": "uint8"
1957
1917
  }
@@ -1959,23 +1919,33 @@ exports.UNIVERSAL_RULES_POLICY_ABI = [
1959
1919
  },
1960
1920
  {
1961
1921
  "type": "error",
1962
- "name": "TargetMismatch",
1922
+ "name": "SvmAccountPinMismatch",
1963
1923
  "inputs": [
1964
1924
  {
1965
- "name": "actual",
1966
- "type": "address",
1967
- "internalType": "address"
1925
+ "name": "pin",
1926
+ "type": "uint256",
1927
+ "internalType": "uint256"
1928
+ },
1929
+ {
1930
+ "name": "accountIndex",
1931
+ "type": "uint8",
1932
+ "internalType": "uint8"
1968
1933
  },
1969
1934
  {
1970
1935
  "name": "expected",
1971
- "type": "address",
1972
- "internalType": "address"
1936
+ "type": "bytes32",
1937
+ "internalType": "bytes32"
1938
+ },
1939
+ {
1940
+ "name": "actual",
1941
+ "type": "bytes32",
1942
+ "internalType": "bytes32"
1973
1943
  }
1974
1944
  ]
1975
1945
  },
1976
1946
  {
1977
1947
  "type": "error",
1978
- "name": "TooManyCeaAccounts",
1948
+ "name": "SvmAccountsOutOfRange",
1979
1949
  "inputs": [
1980
1950
  {
1981
1951
  "name": "count",
@@ -1986,10 +1956,20 @@ exports.UNIVERSAL_RULES_POLICY_ABI = [
1986
1956
  },
1987
1957
  {
1988
1958
  "type": "error",
1989
- "name": "TooManyPins",
1959
+ "name": "SvmDataCeilingExceeded",
1990
1960
  "inputs": [
1991
1961
  {
1992
- "name": "count",
1962
+ "name": "pin",
1963
+ "type": "uint256",
1964
+ "internalType": "uint256"
1965
+ },
1966
+ {
1967
+ "name": "actual",
1968
+ "type": "uint256",
1969
+ "internalType": "uint256"
1970
+ },
1971
+ {
1972
+ "name": "ceiling",
1993
1973
  "type": "uint256",
1994
1974
  "internalType": "uint256"
1995
1975
  }
@@ -1997,10 +1977,20 @@ exports.UNIVERSAL_RULES_POLICY_ABI = [
1997
1977
  },
1998
1978
  {
1999
1979
  "type": "error",
2000
- "name": "TooManySvmDataPins",
1980
+ "name": "SvmDataFloorNotMet",
2001
1981
  "inputs": [
2002
1982
  {
2003
- "name": "count",
1983
+ "name": "pin",
1984
+ "type": "uint256",
1985
+ "internalType": "uint256"
1986
+ },
1987
+ {
1988
+ "name": "actual",
1989
+ "type": "uint256",
1990
+ "internalType": "uint256"
1991
+ },
1992
+ {
1993
+ "name": "floor",
2004
1994
  "type": "uint256",
2005
1995
  "internalType": "uint256"
2006
1996
  }
@@ -2008,10 +1998,10 @@ exports.UNIVERSAL_RULES_POLICY_ABI = [
2008
1998
  },
2009
1999
  {
2010
2000
  "type": "error",
2011
- "name": "TooManySvmPins",
2001
+ "name": "SvmDataPinInvalid",
2012
2002
  "inputs": [
2013
2003
  {
2014
- "name": "count",
2004
+ "name": "pin",
2015
2005
  "type": "uint256",
2016
2006
  "internalType": "uint256"
2017
2007
  }
@@ -2019,47 +2009,67 @@ exports.UNIVERSAL_RULES_POLICY_ABI = [
2019
2009
  },
2020
2010
  {
2021
2011
  "type": "error",
2022
- "name": "TotalNativeAmountExceeded",
2012
+ "name": "SvmDataPinMismatch",
2023
2013
  "inputs": [
2024
2014
  {
2025
- "name": "newSpent",
2015
+ "name": "pin",
2026
2016
  "type": "uint256",
2027
2017
  "internalType": "uint256"
2028
2018
  },
2029
2019
  {
2030
- "name": "cap",
2031
- "type": "uint256",
2032
- "internalType": "uint256"
2020
+ "name": "expected",
2021
+ "type": "bytes32",
2022
+ "internalType": "bytes32"
2023
+ },
2024
+ {
2025
+ "name": "actual",
2026
+ "type": "bytes32",
2027
+ "internalType": "bytes32"
2033
2028
  }
2034
2029
  ]
2035
2030
  },
2036
2031
  {
2037
2032
  "type": "error",
2038
- "name": "TotalSpendCapExceeded",
2033
+ "name": "SvmDataRatioNotMet",
2039
2034
  "inputs": [
2040
2035
  {
2041
- "name": "wouldBeTotal",
2036
+ "name": "pin",
2042
2037
  "type": "uint256",
2043
2038
  "internalType": "uint256"
2044
2039
  },
2045
2040
  {
2046
- "name": "cap",
2041
+ "name": "a",
2042
+ "type": "uint256",
2043
+ "internalType": "uint256"
2044
+ },
2045
+ {
2046
+ "name": "b",
2047
2047
  "type": "uint256",
2048
2048
  "internalType": "uint256"
2049
+ },
2050
+ {
2051
+ "name": "num",
2052
+ "type": "uint64",
2053
+ "internalType": "uint64"
2054
+ },
2055
+ {
2056
+ "name": "den",
2057
+ "type": "uint64",
2058
+ "internalType": "uint64"
2049
2059
  }
2050
2060
  ]
2051
2061
  },
2052
2062
  {
2053
2063
  "type": "error",
2054
- "name": "TotalValueExceeded",
2064
+ "name": "SvmDataTooShortForPin",
2055
2065
  "inputs": [
2056
2066
  {
2057
- "name": "newSpent",
2067
+ "name": "pin",
2058
2068
  "type": "uint256",
2059
2069
  "internalType": "uint256"
2060
2070
  },
2061
2071
  {
2062
- "name": "cap",
2072
+ "name": "ixLen",
2063
2073
  "type": "uint256",
2064
2074
  "internalType": "uint256"
2065
2075
  }
@@ -2067,15 +2077,21 @@ exports.UNIVERSAL_RULES_POLICY_ABI = [
2067
2077
  },
2068
2078
  {
2069
2079
  "type": "error",
2070
- "name": "UncappedGasSwapRejected",
2071
- "inputs": []
2080
+ "name": "SvmInstructionNotExecute",
2081
+ "inputs": [
2082
+ {
2083
+ "name": "instructionId",
2084
+ "type": "uint8",
2085
+ "internalType": "uint8"
2086
+ }
2087
+ ]
2072
2088
  },
2073
2089
  {
2074
2090
  "type": "error",
2075
- "name": "UnsupportedEnvelopeVersion",
2091
+ "name": "SvmIxDataTooLong",
2076
2092
  "inputs": [
2077
2093
  {
2078
- "name": "version",
2094
+ "name": "length",
2079
2095
  "type": "uint256",
2080
2096
  "internalType": "uint256"
2081
2097
  }
@@ -2083,78 +2099,89 @@ exports.UNIVERSAL_RULES_POLICY_ABI = [
2083
2099
  },
2084
2100
  {
2085
2101
  "type": "error",
2086
- "name": "UnsupportedNamespace",
2102
+ "name": "SvmMaxAccountsOutOfRange",
2087
2103
  "inputs": [
2088
2104
  {
2089
- "name": "chainHash",
2090
- "type": "bytes32",
2091
- "internalType": "bytes32"
2105
+ "name": "rule",
2106
+ "type": "uint256",
2107
+ "internalType": "uint256"
2108
+ },
2109
+ {
2110
+ "name": "maxAccounts",
2111
+ "type": "uint8",
2112
+ "internalType": "uint8"
2092
2113
  }
2093
2114
  ]
2094
2115
  },
2095
2116
  {
2096
2117
  "type": "error",
2097
- "name": "ValueExceedsCap",
2118
+ "name": "SvmPayloadEmpty",
2119
+ "inputs": []
2120
+ },
2121
+ {
2122
+ "type": "error",
2123
+ "name": "SvmPinIndexOutOfRange",
2098
2124
  "inputs": [
2099
2125
  {
2100
- "name": "value",
2126
+ "name": "pin",
2101
2127
  "type": "uint256",
2102
2128
  "internalType": "uint256"
2103
2129
  },
2104
2130
  {
2105
- "name": "cap",
2106
- "type": "uint256",
2107
- "internalType": "uint256"
2131
+ "name": "accountIndex",
2132
+ "type": "uint8",
2133
+ "internalType": "uint8"
2108
2134
  }
2109
2135
  ]
2110
2136
  },
2111
2137
  {
2112
2138
  "type": "error",
2113
- "name": "ValueOnlyCalldataNotEmpty",
2139
+ "name": "SvmPinRuleOutOfRange",
2114
2140
  "inputs": [
2115
2141
  {
2116
- "name": "length",
2142
+ "name": "pin",
2117
2143
  "type": "uint256",
2118
2144
  "internalType": "uint256"
2145
+ },
2146
+ {
2147
+ "name": "rule",
2148
+ "type": "uint8",
2149
+ "internalType": "uint8"
2119
2150
  }
2120
2151
  ]
2121
2152
  },
2122
2153
  {
2123
2154
  "type": "error",
2124
- "name": "ValueOnlyWithAmountRule",
2125
- "inputs": []
2126
- },
2127
- {
2128
- "type": "error",
2129
- "name": "ValueOnlyWithPins",
2130
- "inputs": []
2131
- },
2132
- {
2133
- "type": "error",
2134
- "name": "WrongModeForCall",
2155
+ "name": "TooManyCeaAccounts",
2135
2156
  "inputs": [
2136
2157
  {
2137
- "name": "actual",
2138
- "type": "uint8",
2139
- "internalType": "enum RulesType"
2158
+ "name": "count",
2159
+ "type": "uint256",
2160
+ "internalType": "uint256"
2140
2161
  }
2141
2162
  ]
2142
2163
  },
2143
2164
  {
2144
2165
  "type": "error",
2145
- "name": "WrongVmForCall",
2166
+ "name": "TooManySvmDataPins",
2146
2167
  "inputs": [
2147
2168
  {
2148
- "name": "actual",
2149
- "type": "uint8",
2150
- "internalType": "enum VmFamily"
2169
+ "name": "count",
2170
+ "type": "uint256",
2171
+ "internalType": "uint256"
2151
2172
  }
2152
2173
  ]
2153
2174
  },
2154
2175
  {
2155
2176
  "type": "error",
2156
- "name": "ZeroAddress",
2157
- "inputs": []
2177
+ "name": "TooManySvmPins",
2178
+ "inputs": [
2179
+ {
2180
+ "name": "count",
2181
+ "type": "uint256",
2182
+ "internalType": "uint256"
2183
+ }
2184
+ ]
2158
2185
  }
2159
2186
  ];
2160
2187
  //# sourceMappingURL=universal-rules-policy.js.map