@ercworldio/blockchain-shared 1.0.5-dev.7 → 1.0.5-dev.7-PROJ-1469.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.
@@ -5,7 +5,7 @@
5
5
  * IDL can be found at `target/idl/escrow.json`.
6
6
  */
7
7
  export type Escrow = {
8
- "address": "Cr1fJwtExaPdYG8huC5axiW2m2knSoTumLzYBj9rMjCd";
8
+ "address": "AAuFzrm6H4Vv7UyJi8R5Gsm4ixtR2yVmqzLmuyUTS5cu";
9
9
  "metadata": {
10
10
  "name": "escrow";
11
11
  "version": "0.1.0";
@@ -398,6 +398,170 @@ export type Escrow = {
398
398
  }
399
399
  ];
400
400
  },
401
+ {
402
+ "name": "addTreasuryExecutive";
403
+ "discriminator": [
404
+ 189,
405
+ 35,
406
+ 102,
407
+ 15,
408
+ 239,
409
+ 52,
410
+ 121,
411
+ 33
412
+ ];
413
+ "accounts": [
414
+ {
415
+ "name": "escrowConfig";
416
+ "pda": {
417
+ "seeds": [
418
+ {
419
+ "kind": "const";
420
+ "value": [
421
+ 101,
422
+ 115,
423
+ 99,
424
+ 114,
425
+ 111,
426
+ 119,
427
+ 45,
428
+ 99,
429
+ 111,
430
+ 110,
431
+ 102,
432
+ 105,
433
+ 103,
434
+ 45,
435
+ 118,
436
+ 50
437
+ ];
438
+ }
439
+ ];
440
+ };
441
+ },
442
+ {
443
+ "name": "treasuryConfig";
444
+ "writable": true;
445
+ "pda": {
446
+ "seeds": [
447
+ {
448
+ "kind": "const";
449
+ "value": [
450
+ 116,
451
+ 114,
452
+ 101,
453
+ 97,
454
+ 115,
455
+ 117,
456
+ 114,
457
+ 121,
458
+ 45,
459
+ 99,
460
+ 111,
461
+ 110,
462
+ 102,
463
+ 105,
464
+ 103
465
+ ];
466
+ }
467
+ ];
468
+ };
469
+ },
470
+ {
471
+ "name": "admin";
472
+ "writable": true;
473
+ "signer": true;
474
+ }
475
+ ];
476
+ "args": [
477
+ {
478
+ "name": "pubkey";
479
+ "type": "pubkey";
480
+ }
481
+ ];
482
+ },
483
+ {
484
+ "name": "addTreasuryManager";
485
+ "discriminator": [
486
+ 154,
487
+ 51,
488
+ 204,
489
+ 205,
490
+ 2,
491
+ 57,
492
+ 52,
493
+ 21
494
+ ];
495
+ "accounts": [
496
+ {
497
+ "name": "escrowConfig";
498
+ "pda": {
499
+ "seeds": [
500
+ {
501
+ "kind": "const";
502
+ "value": [
503
+ 101,
504
+ 115,
505
+ 99,
506
+ 114,
507
+ 111,
508
+ 119,
509
+ 45,
510
+ 99,
511
+ 111,
512
+ 110,
513
+ 102,
514
+ 105,
515
+ 103,
516
+ 45,
517
+ 118,
518
+ 50
519
+ ];
520
+ }
521
+ ];
522
+ };
523
+ },
524
+ {
525
+ "name": "treasuryConfig";
526
+ "writable": true;
527
+ "pda": {
528
+ "seeds": [
529
+ {
530
+ "kind": "const";
531
+ "value": [
532
+ 116,
533
+ 114,
534
+ 101,
535
+ 97,
536
+ 115,
537
+ 117,
538
+ 114,
539
+ 121,
540
+ 45,
541
+ 99,
542
+ 111,
543
+ 110,
544
+ 102,
545
+ 105,
546
+ 103
547
+ ];
548
+ }
549
+ ];
550
+ };
551
+ },
552
+ {
553
+ "name": "admin";
554
+ "writable": true;
555
+ "signer": true;
556
+ }
557
+ ];
558
+ "args": [
559
+ {
560
+ "name": "pubkey";
561
+ "type": "pubkey";
562
+ }
563
+ ];
564
+ },
401
565
  {
402
566
  "name": "adminDepositSol";
403
567
  "docs": [
@@ -827,6 +991,91 @@ export type Escrow = {
827
991
  }
828
992
  ];
829
993
  },
994
+ {
995
+ "name": "cancelWithdrawal";
996
+ "discriminator": [
997
+ 183,
998
+ 104,
999
+ 181,
1000
+ 250,
1001
+ 28,
1002
+ 128,
1003
+ 210,
1004
+ 70
1005
+ ];
1006
+ "accounts": [
1007
+ {
1008
+ "name": "escrowConfig";
1009
+ "pda": {
1010
+ "seeds": [
1011
+ {
1012
+ "kind": "const";
1013
+ "value": [
1014
+ 101,
1015
+ 115,
1016
+ 99,
1017
+ 114,
1018
+ 111,
1019
+ 119,
1020
+ 45,
1021
+ 99,
1022
+ 111,
1023
+ 110,
1024
+ 102,
1025
+ 105,
1026
+ 103,
1027
+ 45,
1028
+ 118,
1029
+ 50
1030
+ ];
1031
+ }
1032
+ ];
1033
+ };
1034
+ },
1035
+ {
1036
+ "name": "commitment";
1037
+ "writable": true;
1038
+ "pda": {
1039
+ "seeds": [
1040
+ {
1041
+ "kind": "const";
1042
+ "value": [
1043
+ 119,
1044
+ 105,
1045
+ 116,
1046
+ 104,
1047
+ 100,
1048
+ 114,
1049
+ 97,
1050
+ 119,
1051
+ 97,
1052
+ 108
1053
+ ];
1054
+ },
1055
+ {
1056
+ "kind": "arg";
1057
+ "path": "requestId";
1058
+ }
1059
+ ];
1060
+ };
1061
+ },
1062
+ {
1063
+ "name": "admin";
1064
+ "writable": true;
1065
+ "signer": true;
1066
+ },
1067
+ {
1068
+ "name": "systemProgram";
1069
+ "address": "11111111111111111111111111111111";
1070
+ }
1071
+ ];
1072
+ "args": [
1073
+ {
1074
+ "name": "requestId";
1075
+ "type": "u64";
1076
+ }
1077
+ ];
1078
+ },
830
1079
  {
831
1080
  "name": "depositSol";
832
1081
  "discriminator": [
@@ -1176,140 +1425,76 @@ export type Escrow = {
1176
1425
  ];
1177
1426
  },
1178
1427
  {
1179
- "name": "getNonce";
1428
+ "name": "executeWithdrawalSol";
1180
1429
  "discriminator": [
1181
- 132,
1182
- 129,
1183
- 238,
1184
- 76,
1185
- 118,
1186
- 10,
1187
- 212,
1188
- 7
1430
+ 56,
1431
+ 220,
1432
+ 82,
1433
+ 197,
1434
+ 255,
1435
+ 165,
1436
+ 245,
1437
+ 186
1189
1438
  ];
1190
1439
  "accounts": [
1191
1440
  {
1192
- "name": "nonceAccount";
1193
- "writable": true;
1441
+ "name": "escrowConfig";
1194
1442
  "pda": {
1195
1443
  "seeds": [
1196
1444
  {
1197
1445
  "kind": "const";
1198
1446
  "value": [
1199
- 119,
1200
- 105,
1201
- 116,
1202
- 104,
1203
- 100,
1447
+ 101,
1448
+ 115,
1449
+ 99,
1204
1450
  114,
1205
- 97,
1451
+ 111,
1206
1452
  119,
1207
1453
  45,
1208
- 110,
1454
+ 99,
1209
1455
  111,
1210
1456
  110,
1211
- 99,
1212
- 101
1213
- ];
1214
- },
1215
- {
1216
- "kind": "account";
1217
- "path": "user";
1457
+ 102,
1458
+ 105,
1459
+ 103,
1460
+ 45,
1461
+ 118,
1462
+ 50
1463
+ ];
1218
1464
  }
1219
1465
  ];
1220
1466
  };
1221
1467
  },
1222
1468
  {
1223
- "name": "user";
1224
- "writable": true;
1225
- "signer": true;
1226
- },
1227
- {
1228
- "name": "systemProgram";
1229
- "address": "11111111111111111111111111111111";
1230
- }
1231
- ];
1232
- "args": [];
1233
- "returns": "u64";
1234
- },
1235
- {
1236
- "name": "initializeEscrowConfig";
1237
- "discriminator": [
1238
- 59,
1239
- 6,
1240
- 201,
1241
- 67,
1242
- 235,
1243
- 49,
1244
- 169,
1245
- 95
1246
- ];
1247
- "accounts": [
1248
- {
1249
- "name": "escrowConfig";
1469
+ "name": "commitment";
1250
1470
  "writable": true;
1251
1471
  "pda": {
1252
1472
  "seeds": [
1253
1473
  {
1254
1474
  "kind": "const";
1255
1475
  "value": [
1256
- 101,
1257
- 115,
1258
- 99,
1259
- 114,
1260
- 111,
1261
1476
  119,
1262
- 45,
1263
- 99,
1264
- 111,
1265
- 110,
1266
- 102,
1267
1477
  105,
1268
- 103,
1269
- 45,
1270
- 118,
1271
- 50
1478
+ 116,
1479
+ 104,
1480
+ 100,
1481
+ 114,
1482
+ 97,
1483
+ 119,
1484
+ 97,
1485
+ 108
1272
1486
  ];
1487
+ },
1488
+ {
1489
+ "kind": "arg";
1490
+ "path": "requestId";
1273
1491
  }
1274
1492
  ];
1275
1493
  };
1276
1494
  },
1277
1495
  {
1278
- "name": "admin";
1496
+ "name": "vaultAuthority";
1279
1497
  "writable": true;
1280
- "signer": true;
1281
- },
1282
- {
1283
- "name": "systemProgram";
1284
- "address": "11111111111111111111111111111111";
1285
- }
1286
- ];
1287
- "args": [
1288
- {
1289
- "name": "signerPubkey";
1290
- "type": "pubkey";
1291
- },
1292
- {
1293
- "name": "fundingPubkey";
1294
- "type": "pubkey";
1295
- }
1296
- ];
1297
- },
1298
- {
1299
- "name": "isAdminPubkey";
1300
- "discriminator": [
1301
- 121,
1302
- 139,
1303
- 38,
1304
- 24,
1305
- 170,
1306
- 99,
1307
- 139,
1308
- 243
1309
- ];
1310
- "accounts": [
1311
- {
1312
- "name": "escrowConfig";
1313
1498
  "pda": {
1314
1499
  "seeds": [
1315
1500
  {
@@ -1320,42 +1505,44 @@ export type Escrow = {
1320
1505
  99,
1321
1506
  114,
1322
1507
  111,
1323
- 119,
1324
- 45,
1325
- 99,
1326
- 111,
1327
- 110,
1328
- 102,
1329
- 105,
1330
- 103,
1331
- 45,
1332
- 118,
1333
- 50
1508
+ 119
1334
1509
  ];
1335
1510
  }
1336
1511
  ];
1337
1512
  };
1513
+ },
1514
+ {
1515
+ "name": "recipient";
1516
+ "writable": true;
1517
+ },
1518
+ {
1519
+ "name": "caller";
1520
+ "writable": true;
1521
+ "signer": true;
1522
+ },
1523
+ {
1524
+ "name": "systemProgram";
1525
+ "address": "11111111111111111111111111111111";
1338
1526
  }
1339
1527
  ];
1340
1528
  "args": [
1341
1529
  {
1342
- "name": "account";
1343
- "type": "pubkey";
1530
+ "name": "requestId";
1531
+ "type": "u64";
1344
1532
  }
1345
1533
  ];
1346
- "returns": "bool";
1347
1534
  },
1348
1535
  {
1349
- "name": "isFundingPubkey";
1536
+ "name": "executeWithdrawalSpl";
1350
1537
  "discriminator": [
1351
- 252,
1352
- 56,
1353
- 255,
1354
- 21,
1355
- 13,
1538
+ 61,
1356
1539
  63,
1357
- 211,
1358
- 163
1540
+ 171,
1541
+ 104,
1542
+ 233,
1543
+ 62,
1544
+ 148,
1545
+ 55
1359
1546
  ];
1360
1547
  "accounts": [
1361
1548
  {
@@ -1385,76 +1572,39 @@ export type Escrow = {
1385
1572
  }
1386
1573
  ];
1387
1574
  };
1388
- }
1389
- ];
1390
- "args": [
1391
- {
1392
- "name": "account";
1393
- "type": "pubkey";
1394
- }
1395
- ];
1396
- "returns": "bool";
1397
- },
1398
- {
1399
- "name": "isInitializedConfig";
1400
- "discriminator": [
1401
- 113,
1402
- 162,
1403
- 133,
1404
- 92,
1405
- 161,
1406
- 73,
1407
- 200,
1408
- 232
1409
- ];
1410
- "accounts": [
1575
+ },
1411
1576
  {
1412
- "name": "escrowConfig";
1577
+ "name": "commitment";
1578
+ "writable": true;
1413
1579
  "pda": {
1414
1580
  "seeds": [
1415
1581
  {
1416
1582
  "kind": "const";
1417
1583
  "value": [
1418
- 101,
1419
- 115,
1420
- 99,
1421
- 114,
1422
- 111,
1423
1584
  119,
1424
- 45,
1425
- 99,
1426
- 111,
1427
- 110,
1428
- 102,
1429
1585
  105,
1430
- 103,
1431
- 45,
1432
- 118,
1433
- 50
1586
+ 116,
1587
+ 104,
1588
+ 100,
1589
+ 114,
1590
+ 97,
1591
+ 119,
1592
+ 97,
1593
+ 108
1434
1594
  ];
1595
+ },
1596
+ {
1597
+ "kind": "arg";
1598
+ "path": "requestId";
1435
1599
  }
1436
1600
  ];
1437
1601
  };
1438
- }
1439
- ];
1440
- "args": [];
1441
- "returns": "bool";
1442
- },
1443
- {
1444
- "name": "isPaymentToken";
1445
- "discriminator": [
1446
- 103,
1447
- 61,
1448
- 217,
1449
- 183,
1450
- 71,
1451
- 112,
1452
- 38,
1453
- 108
1454
- ];
1455
- "accounts": [
1602
+ },
1456
1603
  {
1457
- "name": "escrowConfig";
1604
+ "name": "mint";
1605
+ },
1606
+ {
1607
+ "name": "vaultAuthority";
1458
1608
  "pda": {
1459
1609
  "seeds": [
1460
1610
  {
@@ -1465,110 +1615,204 @@ export type Escrow = {
1465
1615
  99,
1466
1616
  114,
1467
1617
  111,
1468
- 119,
1469
- 45,
1470
- 99,
1471
- 111,
1472
- 110,
1473
- 102,
1474
- 105,
1475
- 103,
1476
- 45,
1477
- 118,
1478
- 50
1618
+ 119
1479
1619
  ];
1480
1620
  }
1481
1621
  ];
1482
1622
  };
1483
- }
1484
- ];
1485
- "args": [
1486
- {
1487
- "name": "token";
1488
- "type": "pubkey";
1489
- }
1490
- ];
1491
- "returns": "bool";
1492
- },
1493
- {
1494
- "name": "migrateEscrowConfig";
1495
- "discriminator": [
1496
- 221,
1497
- 224,
1498
- 135,
1499
- 120,
1500
- 28,
1501
- 10,
1502
- 75,
1503
- 20
1504
- ];
1505
- "accounts": [
1623
+ },
1506
1624
  {
1507
- "name": "escrowConfig";
1508
- "docs": [
1509
- "Old account (smaller)"
1510
- ];
1625
+ "name": "vaultTokenAccount";
1511
1626
  "writable": true;
1512
1627
  "pda": {
1513
1628
  "seeds": [
1629
+ {
1630
+ "kind": "account";
1631
+ "path": "vaultAuthority";
1632
+ },
1514
1633
  {
1515
1634
  "kind": "const";
1516
1635
  "value": [
1517
- 101,
1518
- 115,
1519
- 99,
1520
- 114,
1521
- 111,
1522
- 119,
1523
- 45,
1524
- 99,
1525
- 111,
1526
- 110,
1527
- 102,
1528
- 105,
1529
- 103
1636
+ 6,
1637
+ 221,
1638
+ 246,
1639
+ 225,
1640
+ 215,
1641
+ 101,
1642
+ 161,
1643
+ 147,
1644
+ 217,
1645
+ 203,
1646
+ 225,
1647
+ 70,
1648
+ 206,
1649
+ 235,
1650
+ 121,
1651
+ 172,
1652
+ 28,
1653
+ 180,
1654
+ 133,
1655
+ 237,
1656
+ 95,
1657
+ 91,
1658
+ 55,
1659
+ 145,
1660
+ 58,
1661
+ 140,
1662
+ 245,
1663
+ 133,
1664
+ 126,
1665
+ 255,
1666
+ 0,
1667
+ 169
1530
1668
  ];
1669
+ },
1670
+ {
1671
+ "kind": "account";
1672
+ "path": "mint";
1531
1673
  }
1532
1674
  ];
1675
+ "program": {
1676
+ "kind": "const";
1677
+ "value": [
1678
+ 140,
1679
+ 151,
1680
+ 37,
1681
+ 143,
1682
+ 78,
1683
+ 36,
1684
+ 137,
1685
+ 241,
1686
+ 187,
1687
+ 61,
1688
+ 16,
1689
+ 41,
1690
+ 20,
1691
+ 142,
1692
+ 13,
1693
+ 131,
1694
+ 11,
1695
+ 90,
1696
+ 19,
1697
+ 153,
1698
+ 218,
1699
+ 255,
1700
+ 16,
1701
+ 132,
1702
+ 4,
1703
+ 142,
1704
+ 123,
1705
+ 216,
1706
+ 219,
1707
+ 233,
1708
+ 248,
1709
+ 89
1710
+ ];
1711
+ };
1533
1712
  };
1534
1713
  },
1535
1714
  {
1536
- "name": "newEscrowConfig";
1537
- "docs": [
1538
- "New account with more space"
1539
- ];
1715
+ "name": "recipient";
1716
+ },
1717
+ {
1718
+ "name": "recipientTokenAccount";
1540
1719
  "writable": true;
1541
1720
  "pda": {
1542
1721
  "seeds": [
1722
+ {
1723
+ "kind": "account";
1724
+ "path": "recipient";
1725
+ },
1543
1726
  {
1544
1727
  "kind": "const";
1545
1728
  "value": [
1729
+ 6,
1730
+ 221,
1731
+ 246,
1732
+ 225,
1733
+ 215,
1546
1734
  101,
1547
- 115,
1548
- 99,
1549
- 114,
1550
- 111,
1551
- 119,
1552
- 45,
1553
- 99,
1554
- 111,
1555
- 110,
1556
- 102,
1557
- 105,
1558
- 103,
1559
- 45,
1560
- 118,
1561
- 50
1735
+ 161,
1736
+ 147,
1737
+ 217,
1738
+ 203,
1739
+ 225,
1740
+ 70,
1741
+ 206,
1742
+ 235,
1743
+ 121,
1744
+ 172,
1745
+ 28,
1746
+ 180,
1747
+ 133,
1748
+ 237,
1749
+ 95,
1750
+ 91,
1751
+ 55,
1752
+ 145,
1753
+ 58,
1754
+ 140,
1755
+ 245,
1756
+ 133,
1757
+ 126,
1758
+ 255,
1759
+ 0,
1760
+ 169
1562
1761
  ];
1762
+ },
1763
+ {
1764
+ "kind": "account";
1765
+ "path": "mint";
1563
1766
  }
1564
1767
  ];
1768
+ "program": {
1769
+ "kind": "const";
1770
+ "value": [
1771
+ 140,
1772
+ 151,
1773
+ 37,
1774
+ 143,
1775
+ 78,
1776
+ 36,
1777
+ 137,
1778
+ 241,
1779
+ 187,
1780
+ 61,
1781
+ 16,
1782
+ 41,
1783
+ 20,
1784
+ 142,
1785
+ 13,
1786
+ 131,
1787
+ 11,
1788
+ 90,
1789
+ 19,
1790
+ 153,
1791
+ 218,
1792
+ 255,
1793
+ 16,
1794
+ 132,
1795
+ 4,
1796
+ 142,
1797
+ 123,
1798
+ 216,
1799
+ 219,
1800
+ 233,
1801
+ 248,
1802
+ 89
1803
+ ];
1804
+ };
1565
1805
  };
1566
1806
  },
1567
1807
  {
1568
- "name": "admin";
1808
+ "name": "caller";
1569
1809
  "writable": true;
1570
1810
  "signer": true;
1571
1811
  },
1812
+ {
1813
+ "name": "tokenProgram";
1814
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
1815
+ },
1572
1816
  {
1573
1817
  "name": "systemProgram";
1574
1818
  "address": "11111111111111111111111111111111";
@@ -1576,67 +1820,57 @@ export type Escrow = {
1576
1820
  ];
1577
1821
  "args": [
1578
1822
  {
1579
- "name": "admins";
1580
- "type": {
1581
- "vec": "pubkey";
1582
- };
1583
- },
1584
- {
1585
- "name": "paymentTokens";
1586
- "type": {
1587
- "vec": "pubkey";
1588
- };
1589
- },
1590
- {
1591
- "name": "fundingWallet";
1592
- "type": "pubkey";
1823
+ "name": "requestId";
1824
+ "type": "u64";
1593
1825
  }
1594
1826
  ];
1595
1827
  },
1596
1828
  {
1597
- "name": "pauseProgram";
1829
+ "name": "getNonce";
1598
1830
  "discriminator": [
1599
- 91,
1600
- 86,
1601
- 253,
1602
- 175,
1603
- 66,
1604
- 236,
1605
- 172,
1606
- 124
1831
+ 132,
1832
+ 129,
1833
+ 238,
1834
+ 76,
1835
+ 118,
1836
+ 10,
1837
+ 212,
1838
+ 7
1607
1839
  ];
1608
1840
  "accounts": [
1609
1841
  {
1610
- "name": "escrowConfig";
1842
+ "name": "nonceAccount";
1611
1843
  "writable": true;
1612
1844
  "pda": {
1613
1845
  "seeds": [
1614
1846
  {
1615
1847
  "kind": "const";
1616
1848
  "value": [
1617
- 101,
1618
- 115,
1619
- 99,
1849
+ 119,
1850
+ 105,
1851
+ 116,
1852
+ 104,
1853
+ 100,
1620
1854
  114,
1621
- 111,
1855
+ 97,
1622
1856
  119,
1623
1857
  45,
1624
- 99,
1858
+ 110,
1625
1859
  111,
1626
1860
  110,
1627
- 102,
1628
- 105,
1629
- 103,
1630
- 45,
1631
- 118,
1632
- 50
1861
+ 99,
1862
+ 101
1633
1863
  ];
1864
+ },
1865
+ {
1866
+ "kind": "account";
1867
+ "path": "user";
1634
1868
  }
1635
1869
  ];
1636
1870
  };
1637
1871
  },
1638
1872
  {
1639
- "name": "admin";
1873
+ "name": "user";
1640
1874
  "writable": true;
1641
1875
  "signer": true;
1642
1876
  },
@@ -1645,24 +1879,20 @@ export type Escrow = {
1645
1879
  "address": "11111111111111111111111111111111";
1646
1880
  }
1647
1881
  ];
1648
- "args": [
1649
- {
1650
- "name": "targetState";
1651
- "type": "bool";
1652
- }
1653
- ];
1882
+ "args": [];
1883
+ "returns": "u64";
1654
1884
  },
1655
1885
  {
1656
- "name": "removeAdmin";
1886
+ "name": "initializeEscrowConfig";
1657
1887
  "discriminator": [
1658
- 74,
1659
- 202,
1660
- 71,
1661
- 106,
1662
- 252,
1663
- 31,
1664
- 72,
1665
- 183
1888
+ 59,
1889
+ 6,
1890
+ 201,
1891
+ 67,
1892
+ 235,
1893
+ 49,
1894
+ 169,
1895
+ 95
1666
1896
  ];
1667
1897
  "accounts": [
1668
1898
  {
@@ -1698,31 +1928,38 @@ export type Escrow = {
1698
1928
  "name": "admin";
1699
1929
  "writable": true;
1700
1930
  "signer": true;
1931
+ },
1932
+ {
1933
+ "name": "systemProgram";
1934
+ "address": "11111111111111111111111111111111";
1701
1935
  }
1702
1936
  ];
1703
1937
  "args": [
1704
1938
  {
1705
- "name": "account";
1939
+ "name": "signerPubkey";
1940
+ "type": "pubkey";
1941
+ },
1942
+ {
1943
+ "name": "fundingPubkey";
1706
1944
  "type": "pubkey";
1707
1945
  }
1708
1946
  ];
1709
1947
  },
1710
1948
  {
1711
- "name": "removePaymentToken";
1949
+ "name": "initializeTreasuryConfig";
1712
1950
  "discriminator": [
1713
- 119,
1714
- 18,
1715
- 240,
1716
- 223,
1717
- 126,
1718
- 168,
1719
- 165,
1720
- 117
1951
+ 42,
1952
+ 221,
1953
+ 143,
1954
+ 37,
1955
+ 13,
1956
+ 169,
1957
+ 92,
1958
+ 98
1721
1959
  ];
1722
1960
  "accounts": [
1723
1961
  {
1724
1962
  "name": "escrowConfig";
1725
- "writable": true;
1726
1963
  "pda": {
1727
1964
  "seeds": [
1728
1965
  {
@@ -1749,33 +1986,66 @@ export type Escrow = {
1749
1986
  ];
1750
1987
  };
1751
1988
  },
1989
+ {
1990
+ "name": "treasuryConfig";
1991
+ "writable": true;
1992
+ "pda": {
1993
+ "seeds": [
1994
+ {
1995
+ "kind": "const";
1996
+ "value": [
1997
+ 116,
1998
+ 114,
1999
+ 101,
2000
+ 97,
2001
+ 115,
2002
+ 117,
2003
+ 114,
2004
+ 121,
2005
+ 45,
2006
+ 99,
2007
+ 111,
2008
+ 110,
2009
+ 102,
2010
+ 105,
2011
+ 103
2012
+ ];
2013
+ }
2014
+ ];
2015
+ };
2016
+ },
1752
2017
  {
1753
2018
  "name": "admin";
1754
2019
  "writable": true;
1755
2020
  "signer": true;
2021
+ },
2022
+ {
2023
+ "name": "systemProgram";
2024
+ "address": "11111111111111111111111111111111";
1756
2025
  }
1757
2026
  ];
1758
2027
  "args": [
1759
2028
  {
1760
- "name": "tokenMint";
1761
- "type": "pubkey";
2029
+ "name": "managerThreshold";
2030
+ "type": "u8";
2031
+ },
2032
+ {
2033
+ "name": "executiveThreshold";
2034
+ "type": "u8";
1762
2035
  }
1763
2036
  ];
1764
2037
  },
1765
2038
  {
1766
- "name": "removeTokenFromEscrow";
1767
- "docs": [
1768
- "Admin Withdraw SPL tokens"
1769
- ];
2039
+ "name": "isAdminPubkey";
1770
2040
  "discriminator": [
1771
- 42,
1772
- 189,
1773
- 194,
1774
- 61,
1775
- 110,
1776
- 149,
1777
- 83,
1778
- 126
2041
+ 121,
2042
+ 139,
2043
+ 38,
2044
+ 24,
2045
+ 170,
2046
+ 99,
2047
+ 139,
2048
+ 243
1779
2049
  ];
1780
2050
  "accounts": [
1781
2051
  {
@@ -1805,18 +2075,31 @@ export type Escrow = {
1805
2075
  }
1806
2076
  ];
1807
2077
  };
1808
- },
1809
- {
1810
- "name": "mint";
1811
- },
2078
+ }
2079
+ ];
2080
+ "args": [
1812
2081
  {
1813
- "name": "admin";
1814
- "writable": true;
1815
- "signer": true;
1816
- },
2082
+ "name": "account";
2083
+ "type": "pubkey";
2084
+ }
2085
+ ];
2086
+ "returns": "bool";
2087
+ },
2088
+ {
2089
+ "name": "isFundingPubkey";
2090
+ "discriminator": [
2091
+ 252,
2092
+ 56,
2093
+ 255,
2094
+ 21,
2095
+ 13,
2096
+ 63,
2097
+ 211,
2098
+ 163
2099
+ ];
2100
+ "accounts": [
1817
2101
  {
1818
- "name": "vaultAuthority";
1819
- "writable": true;
2102
+ "name": "escrowConfig";
1820
2103
  "pda": {
1821
2104
  "seeds": [
1822
2105
  {
@@ -1827,219 +2110,173 @@ export type Escrow = {
1827
2110
  99,
1828
2111
  114,
1829
2112
  111,
1830
- 119
2113
+ 119,
2114
+ 45,
2115
+ 99,
2116
+ 111,
2117
+ 110,
2118
+ 102,
2119
+ 105,
2120
+ 103,
2121
+ 45,
2122
+ 118,
2123
+ 50
1831
2124
  ];
1832
2125
  }
1833
2126
  ];
1834
2127
  };
1835
- },
2128
+ }
2129
+ ];
2130
+ "args": [
1836
2131
  {
1837
- "name": "vaultTokenAccount";
1838
- "writable": true;
2132
+ "name": "account";
2133
+ "type": "pubkey";
2134
+ }
2135
+ ];
2136
+ "returns": "bool";
2137
+ },
2138
+ {
2139
+ "name": "isInitializedConfig";
2140
+ "discriminator": [
2141
+ 113,
2142
+ 162,
2143
+ 133,
2144
+ 92,
2145
+ 161,
2146
+ 73,
2147
+ 200,
2148
+ 232
2149
+ ];
2150
+ "accounts": [
2151
+ {
2152
+ "name": "escrowConfig";
1839
2153
  "pda": {
1840
2154
  "seeds": [
1841
- {
1842
- "kind": "account";
1843
- "path": "vaultAuthority";
1844
- },
1845
2155
  {
1846
2156
  "kind": "const";
1847
2157
  "value": [
1848
- 6,
1849
- 221,
1850
- 246,
1851
- 225,
1852
- 215,
1853
2158
  101,
1854
- 161,
1855
- 147,
1856
- 217,
1857
- 203,
1858
- 225,
1859
- 70,
1860
- 206,
1861
- 235,
1862
- 121,
1863
- 172,
1864
- 28,
1865
- 180,
1866
- 133,
1867
- 237,
1868
- 95,
1869
- 91,
1870
- 55,
1871
- 145,
1872
- 58,
1873
- 140,
1874
- 245,
1875
- 133,
1876
- 126,
1877
- 255,
1878
- 0,
1879
- 169
2159
+ 115,
2160
+ 99,
2161
+ 114,
2162
+ 111,
2163
+ 119,
2164
+ 45,
2165
+ 99,
2166
+ 111,
2167
+ 110,
2168
+ 102,
2169
+ 105,
2170
+ 103,
2171
+ 45,
2172
+ 118,
2173
+ 50
1880
2174
  ];
1881
- },
1882
- {
1883
- "kind": "account";
1884
- "path": "mint";
1885
2175
  }
1886
2176
  ];
1887
- "program": {
1888
- "kind": "const";
1889
- "value": [
1890
- 140,
1891
- 151,
1892
- 37,
1893
- 143,
1894
- 78,
1895
- 36,
1896
- 137,
1897
- 241,
1898
- 187,
1899
- 61,
1900
- 16,
1901
- 41,
1902
- 20,
1903
- 142,
1904
- 13,
1905
- 131,
1906
- 11,
1907
- 90,
1908
- 19,
1909
- 153,
1910
- 218,
1911
- 255,
1912
- 16,
1913
- 132,
1914
- 4,
1915
- 142,
1916
- 123,
1917
- 216,
1918
- 219,
1919
- 233,
1920
- 248,
1921
- 89
1922
- ];
1923
- };
1924
2177
  };
1925
- },
2178
+ }
2179
+ ];
2180
+ "args": [];
2181
+ "returns": "bool";
2182
+ },
2183
+ {
2184
+ "name": "isPaymentToken";
2185
+ "discriminator": [
2186
+ 103,
2187
+ 61,
2188
+ 217,
2189
+ 183,
2190
+ 71,
2191
+ 112,
2192
+ 38,
2193
+ 108
2194
+ ];
2195
+ "accounts": [
1926
2196
  {
1927
- "name": "destinationTokenAccount";
1928
- "writable": true;
2197
+ "name": "escrowConfig";
1929
2198
  "pda": {
1930
2199
  "seeds": [
1931
- {
1932
- "kind": "account";
1933
- "path": "admin";
1934
- },
1935
2200
  {
1936
2201
  "kind": "const";
1937
2202
  "value": [
1938
- 6,
1939
- 221,
1940
- 246,
1941
- 225,
1942
- 215,
1943
2203
  101,
1944
- 161,
1945
- 147,
1946
- 217,
1947
- 203,
1948
- 225,
1949
- 70,
1950
- 206,
1951
- 235,
1952
- 121,
1953
- 172,
1954
- 28,
1955
- 180,
1956
- 133,
1957
- 237,
1958
- 95,
1959
- 91,
1960
- 55,
1961
- 145,
1962
- 58,
1963
- 140,
1964
- 245,
1965
- 133,
1966
- 126,
1967
- 255,
1968
- 0,
1969
- 169
2204
+ 115,
2205
+ 99,
2206
+ 114,
2207
+ 111,
2208
+ 119,
2209
+ 45,
2210
+ 99,
2211
+ 111,
2212
+ 110,
2213
+ 102,
2214
+ 105,
2215
+ 103,
2216
+ 45,
2217
+ 118,
2218
+ 50
1970
2219
  ];
1971
- },
1972
- {
1973
- "kind": "account";
1974
- "path": "mint";
1975
2220
  }
1976
2221
  ];
1977
- "program": {
1978
- "kind": "const";
1979
- "value": [
1980
- 140,
1981
- 151,
1982
- 37,
1983
- 143,
1984
- 78,
1985
- 36,
1986
- 137,
1987
- 241,
1988
- 187,
1989
- 61,
1990
- 16,
1991
- 41,
1992
- 20,
1993
- 142,
1994
- 13,
1995
- 131,
1996
- 11,
1997
- 90,
1998
- 19,
1999
- 153,
2000
- 218,
2001
- 255,
2002
- 16,
2003
- 132,
2004
- 4,
2005
- 142,
2006
- 123,
2007
- 216,
2008
- 219,
2009
- 233,
2010
- 248,
2011
- 89
2012
- ];
2013
- };
2014
2222
  };
2015
- },
2016
- {
2017
- "name": "tokenProgram";
2018
- "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
2019
2223
  }
2020
2224
  ];
2021
2225
  "args": [
2022
2226
  {
2023
- "name": "amount";
2024
- "type": "u64";
2227
+ "name": "token";
2228
+ "type": "pubkey";
2025
2229
  }
2026
2230
  ];
2231
+ "returns": "bool";
2027
2232
  },
2028
2233
  {
2029
- "name": "setAdmin";
2234
+ "name": "migrateEscrowConfig";
2030
2235
  "discriminator": [
2031
- 251,
2032
- 163,
2033
- 0,
2034
- 52,
2035
- 91,
2036
- 194,
2037
- 187,
2038
- 92
2236
+ 221,
2237
+ 224,
2238
+ 135,
2239
+ 120,
2240
+ 28,
2241
+ 10,
2242
+ 75,
2243
+ 20
2039
2244
  ];
2040
2245
  "accounts": [
2041
2246
  {
2042
2247
  "name": "escrowConfig";
2248
+ "docs": [
2249
+ "Old account (smaller)"
2250
+ ];
2251
+ "writable": true;
2252
+ "pda": {
2253
+ "seeds": [
2254
+ {
2255
+ "kind": "const";
2256
+ "value": [
2257
+ 101,
2258
+ 115,
2259
+ 99,
2260
+ 114,
2261
+ 111,
2262
+ 119,
2263
+ 45,
2264
+ 99,
2265
+ 111,
2266
+ 110,
2267
+ 102,
2268
+ 105,
2269
+ 103
2270
+ ];
2271
+ }
2272
+ ];
2273
+ };
2274
+ },
2275
+ {
2276
+ "name": "newEscrowConfig";
2277
+ "docs": [
2278
+ "New account with more space"
2279
+ ];
2043
2280
  "writable": true;
2044
2281
  "pda": {
2045
2282
  "seeds": [
@@ -2069,27 +2306,44 @@ export type Escrow = {
2069
2306
  },
2070
2307
  {
2071
2308
  "name": "admin";
2309
+ "writable": true;
2072
2310
  "signer": true;
2311
+ },
2312
+ {
2313
+ "name": "systemProgram";
2314
+ "address": "11111111111111111111111111111111";
2073
2315
  }
2074
2316
  ];
2075
2317
  "args": [
2076
2318
  {
2077
- "name": "newAdmin";
2319
+ "name": "admins";
2320
+ "type": {
2321
+ "vec": "pubkey";
2322
+ };
2323
+ },
2324
+ {
2325
+ "name": "paymentTokens";
2326
+ "type": {
2327
+ "vec": "pubkey";
2328
+ };
2329
+ },
2330
+ {
2331
+ "name": "fundingWallet";
2078
2332
  "type": "pubkey";
2079
2333
  }
2080
2334
  ];
2081
2335
  },
2082
2336
  {
2083
- "name": "setFundingWallet";
2337
+ "name": "pauseProgram";
2084
2338
  "discriminator": [
2085
- 134,
2086
- 34,
2087
- 203,
2088
- 88,
2089
- 248,
2090
- 13,
2091
- 78,
2092
- 30
2339
+ 91,
2340
+ 86,
2341
+ 253,
2342
+ 175,
2343
+ 66,
2344
+ 236,
2345
+ 172,
2346
+ 124
2093
2347
  ];
2094
2348
  "accounts": [
2095
2349
  {
@@ -2125,30 +2379,35 @@ export type Escrow = {
2125
2379
  "name": "admin";
2126
2380
  "writable": true;
2127
2381
  "signer": true;
2382
+ },
2383
+ {
2384
+ "name": "systemProgram";
2385
+ "address": "11111111111111111111111111111111";
2128
2386
  }
2129
2387
  ];
2130
2388
  "args": [
2131
2389
  {
2132
- "name": "newFundingWallet";
2133
- "type": "pubkey";
2390
+ "name": "targetState";
2391
+ "type": "bool";
2134
2392
  }
2135
2393
  ];
2136
2394
  },
2137
2395
  {
2138
- "name": "withdrawSolWithSig";
2396
+ "name": "removeAdmin";
2139
2397
  "discriminator": [
2140
- 127,
2141
- 123,
2142
- 63,
2143
- 232,
2144
- 4,
2145
- 153,
2146
- 33,
2147
- 13
2398
+ 74,
2399
+ 202,
2400
+ 71,
2401
+ 106,
2402
+ 252,
2403
+ 31,
2404
+ 72,
2405
+ 183
2148
2406
  ];
2149
2407
  "accounts": [
2150
2408
  {
2151
2409
  "name": "escrowConfig";
2410
+ "writable": true;
2152
2411
  "pda": {
2153
2412
  "seeds": [
2154
2413
  {
@@ -2176,102 +2435,87 @@ export type Escrow = {
2176
2435
  };
2177
2436
  },
2178
2437
  {
2179
- "name": "user";
2438
+ "name": "admin";
2180
2439
  "writable": true;
2181
2440
  "signer": true;
2182
- },
2441
+ }
2442
+ ];
2443
+ "args": [
2183
2444
  {
2184
- "name": "vaultAuthority";
2185
- "writable": true;
2186
- "pda": {
2187
- "seeds": [
2188
- {
2189
- "kind": "const";
2190
- "value": [
2191
- 101,
2192
- 115,
2193
- 99,
2194
- 114,
2195
- 111,
2196
- 119
2197
- ];
2198
- }
2199
- ];
2200
- };
2201
- },
2445
+ "name": "account";
2446
+ "type": "pubkey";
2447
+ }
2448
+ ];
2449
+ },
2450
+ {
2451
+ "name": "removePaymentToken";
2452
+ "discriminator": [
2453
+ 119,
2454
+ 18,
2455
+ 240,
2456
+ 223,
2457
+ 126,
2458
+ 168,
2459
+ 165,
2460
+ 117
2461
+ ];
2462
+ "accounts": [
2202
2463
  {
2203
- "name": "withdrawNonce";
2464
+ "name": "escrowConfig";
2204
2465
  "writable": true;
2205
2466
  "pda": {
2206
2467
  "seeds": [
2207
2468
  {
2208
2469
  "kind": "const";
2209
2470
  "value": [
2210
- 119,
2211
- 105,
2212
- 116,
2213
- 104,
2214
- 100,
2471
+ 101,
2472
+ 115,
2473
+ 99,
2215
2474
  114,
2216
- 97,
2475
+ 111,
2217
2476
  119,
2218
2477
  45,
2219
- 110,
2478
+ 99,
2220
2479
  111,
2221
2480
  110,
2222
- 99,
2223
- 101
2481
+ 102,
2482
+ 105,
2483
+ 103,
2484
+ 45,
2485
+ 118,
2486
+ 50
2224
2487
  ];
2225
- },
2226
- {
2227
- "kind": "account";
2228
- "path": "user";
2229
2488
  }
2230
2489
  ];
2231
2490
  };
2232
2491
  },
2233
2492
  {
2234
- "name": "recipient";
2493
+ "name": "admin";
2235
2494
  "writable": true;
2236
- },
2237
- {
2238
- "name": "tokenAddress";
2239
- },
2240
- {
2241
- "name": "systemProgram";
2242
- "address": "11111111111111111111111111111111";
2243
- },
2244
- {
2245
- "name": "instructions";
2246
- "address": "Sysvar1nstructions1111111111111111111111111";
2495
+ "signer": true;
2247
2496
  }
2248
2497
  ];
2249
2498
  "args": [
2250
2499
  {
2251
- "name": "amount";
2252
- "type": "u64";
2253
- },
2254
- {
2255
- "name": "chainId";
2256
- "type": "u64";
2257
- },
2258
- {
2259
- "name": "requestId";
2260
- "type": "u64";
2500
+ "name": "tokenMint";
2501
+ "type": "pubkey";
2261
2502
  }
2262
2503
  ];
2263
2504
  },
2264
2505
  {
2265
- "name": "withdrawSplWithSig";
2506
+ "name": "removeTokenFromEscrow";
2507
+ "docs": [
2508
+ "Admin Withdraw SPL tokens"
2509
+ ];
2266
2510
  "discriminator": [
2267
- 97,
2268
- 26,
2269
- 53,
2270
- 97,
2271
- 35,
2272
- 183,
2273
- 69,
2274
- 237
2511
+ 42,
2512
+ 189,
2513
+ 194,
2514
+ 61,
2515
+ 110,
2516
+ 149,
2517
+ 83,
2518
+ 126
2275
2519
  ];
2276
2520
  "accounts": [
2277
2521
  {
@@ -2306,7 +2550,7 @@ export type Escrow = {
2306
2550
  "name": "mint";
2307
2551
  },
2308
2552
  {
2309
- "name": "user";
2553
+ "name": "admin";
2310
2554
  "writable": true;
2311
2555
  "signer": true;
2312
2556
  },
@@ -2420,20 +2664,13 @@ export type Escrow = {
2420
2664
  };
2421
2665
  },
2422
2666
  {
2423
- "name": "withdrawNonce";
2424
- },
2425
- {
2426
- "name": "recipient";
2427
- "writable": true;
2428
- },
2429
- {
2430
- "name": "userTokenAccount";
2667
+ "name": "destinationTokenAccount";
2431
2668
  "writable": true;
2432
2669
  "pda": {
2433
2670
  "seeds": [
2434
2671
  {
2435
2672
  "kind": "account";
2436
- "path": "user";
2673
+ "path": "admin";
2437
2674
  },
2438
2675
  {
2439
2676
  "kind": "const";
@@ -2519,96 +2756,1608 @@ export type Escrow = {
2519
2756
  {
2520
2757
  "name": "tokenProgram";
2521
2758
  "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
2522
- },
2523
- {
2524
- "name": "systemProgram";
2525
- "address": "11111111111111111111111111111111";
2526
- },
2527
- {
2528
- "name": "instructions";
2529
- "address": "Sysvar1nstructions1111111111111111111111111";
2530
2759
  }
2531
2760
  ];
2532
2761
  "args": [
2533
2762
  {
2534
2763
  "name": "amount";
2535
2764
  "type": "u64";
2765
+ }
2766
+ ];
2767
+ },
2768
+ {
2769
+ "name": "removeTreasuryExecutive";
2770
+ "discriminator": [
2771
+ 147,
2772
+ 53,
2773
+ 215,
2774
+ 158,
2775
+ 215,
2776
+ 195,
2777
+ 139,
2778
+ 26
2779
+ ];
2780
+ "accounts": [
2781
+ {
2782
+ "name": "escrowConfig";
2783
+ "pda": {
2784
+ "seeds": [
2785
+ {
2786
+ "kind": "const";
2787
+ "value": [
2788
+ 101,
2789
+ 115,
2790
+ 99,
2791
+ 114,
2792
+ 111,
2793
+ 119,
2794
+ 45,
2795
+ 99,
2796
+ 111,
2797
+ 110,
2798
+ 102,
2799
+ 105,
2800
+ 103,
2801
+ 45,
2802
+ 118,
2803
+ 50
2804
+ ];
2805
+ }
2806
+ ];
2807
+ };
2536
2808
  },
2537
2809
  {
2538
- "name": "chainId";
2539
- "type": "u64";
2810
+ "name": "treasuryConfig";
2811
+ "writable": true;
2812
+ "pda": {
2813
+ "seeds": [
2814
+ {
2815
+ "kind": "const";
2816
+ "value": [
2817
+ 116,
2818
+ 114,
2819
+ 101,
2820
+ 97,
2821
+ 115,
2822
+ 117,
2823
+ 114,
2824
+ 121,
2825
+ 45,
2826
+ 99,
2827
+ 111,
2828
+ 110,
2829
+ 102,
2830
+ 105,
2831
+ 103
2832
+ ];
2833
+ }
2834
+ ];
2835
+ };
2540
2836
  },
2541
2837
  {
2542
- "name": "requestId";
2543
- "type": "u64";
2838
+ "name": "admin";
2839
+ "writable": true;
2840
+ "signer": true;
2544
2841
  }
2545
2842
  ];
2546
- }
2547
- ];
2548
- "accounts": [
2549
- {
2550
- "name": "escrowConfig";
2551
- "discriminator": [
2552
- 138,
2553
- 174,
2554
- 227,
2555
- 187,
2556
- 239,
2557
- 148,
2558
- 1,
2559
- 44
2843
+ "args": [
2844
+ {
2845
+ "name": "pubkey";
2846
+ "type": "pubkey";
2847
+ }
2560
2848
  ];
2561
2849
  },
2562
2850
  {
2563
- "name": "escrowConfiguration";
2851
+ "name": "removeTreasuryManager";
2564
2852
  "discriminator": [
2565
- 105,
2566
- 131,
2567
- 219,
2568
- 218,
2569
- 63,
2853
+ 82,
2854
+ 21,
2855
+ 184,
2856
+ 234,
2570
2857
  157,
2571
- 131,
2572
- 34
2573
- ];
2574
- },
2575
- {
2576
- "name": "withdrawNonce";
2577
- "discriminator": [
2578
- 14,
2579
- 140,
2580
- 88,
2581
- 169,
2582
- 163,
2583
- 189,
2584
- 45,
2585
- 160
2586
- ];
2587
- }
2588
- ];
2589
- "events": [
2590
- {
2591
- "name": "adminDeposit";
2592
- "discriminator": [
2593
- 59,
2594
- 248,
2595
- 135,
2596
- 30,
2597
- 114,
2598
- 173,
2599
- 182,
2600
- 26
2858
+ 232,
2859
+ 48,
2860
+ 70
2601
2861
  ];
2602
- },
2603
- {
2604
- "name": "adminWithdraw";
2605
- "discriminator": [
2606
- 218,
2607
- 178,
2608
- 1,
2609
- 64,
2610
- 41,
2611
- 179,
2862
+ "accounts": [
2863
+ {
2864
+ "name": "escrowConfig";
2865
+ "pda": {
2866
+ "seeds": [
2867
+ {
2868
+ "kind": "const";
2869
+ "value": [
2870
+ 101,
2871
+ 115,
2872
+ 99,
2873
+ 114,
2874
+ 111,
2875
+ 119,
2876
+ 45,
2877
+ 99,
2878
+ 111,
2879
+ 110,
2880
+ 102,
2881
+ 105,
2882
+ 103,
2883
+ 45,
2884
+ 118,
2885
+ 50
2886
+ ];
2887
+ }
2888
+ ];
2889
+ };
2890
+ },
2891
+ {
2892
+ "name": "treasuryConfig";
2893
+ "writable": true;
2894
+ "pda": {
2895
+ "seeds": [
2896
+ {
2897
+ "kind": "const";
2898
+ "value": [
2899
+ 116,
2900
+ 114,
2901
+ 101,
2902
+ 97,
2903
+ 115,
2904
+ 117,
2905
+ 114,
2906
+ 121,
2907
+ 45,
2908
+ 99,
2909
+ 111,
2910
+ 110,
2911
+ 102,
2912
+ 105,
2913
+ 103
2914
+ ];
2915
+ }
2916
+ ];
2917
+ };
2918
+ },
2919
+ {
2920
+ "name": "admin";
2921
+ "writable": true;
2922
+ "signer": true;
2923
+ }
2924
+ ];
2925
+ "args": [
2926
+ {
2927
+ "name": "pubkey";
2928
+ "type": "pubkey";
2929
+ }
2930
+ ];
2931
+ },
2932
+ {
2933
+ "name": "scheduleWithdrawalSol";
2934
+ "discriminator": [
2935
+ 41,
2936
+ 253,
2937
+ 139,
2938
+ 251,
2939
+ 39,
2940
+ 160,
2941
+ 13,
2942
+ 135
2943
+ ];
2944
+ "accounts": [
2945
+ {
2946
+ "name": "escrowConfig";
2947
+ "pda": {
2948
+ "seeds": [
2949
+ {
2950
+ "kind": "const";
2951
+ "value": [
2952
+ 101,
2953
+ 115,
2954
+ 99,
2955
+ 114,
2956
+ 111,
2957
+ 119,
2958
+ 45,
2959
+ 99,
2960
+ 111,
2961
+ 110,
2962
+ 102,
2963
+ 105,
2964
+ 103,
2965
+ 45,
2966
+ 118,
2967
+ 50
2968
+ ];
2969
+ }
2970
+ ];
2971
+ };
2972
+ },
2973
+ {
2974
+ "name": "treasuryConfig";
2975
+ "pda": {
2976
+ "seeds": [
2977
+ {
2978
+ "kind": "const";
2979
+ "value": [
2980
+ 116,
2981
+ 114,
2982
+ 101,
2983
+ 97,
2984
+ 115,
2985
+ 117,
2986
+ 114,
2987
+ 121,
2988
+ 45,
2989
+ 99,
2990
+ 111,
2991
+ 110,
2992
+ 102,
2993
+ 105,
2994
+ 103
2995
+ ];
2996
+ }
2997
+ ];
2998
+ };
2999
+ },
3000
+ {
3001
+ "name": "commitment";
3002
+ "writable": true;
3003
+ "pda": {
3004
+ "seeds": [
3005
+ {
3006
+ "kind": "const";
3007
+ "value": [
3008
+ 119,
3009
+ 105,
3010
+ 116,
3011
+ 104,
3012
+ 100,
3013
+ 114,
3014
+ 97,
3015
+ 119,
3016
+ 97,
3017
+ 108
3018
+ ];
3019
+ },
3020
+ {
3021
+ "kind": "arg";
3022
+ "path": "requestId";
3023
+ }
3024
+ ];
3025
+ };
3026
+ },
3027
+ {
3028
+ "name": "timelockConfig";
3029
+ "pda": {
3030
+ "seeds": [
3031
+ {
3032
+ "kind": "const";
3033
+ "value": [
3034
+ 116,
3035
+ 105,
3036
+ 109,
3037
+ 101,
3038
+ 108,
3039
+ 111,
3040
+ 99,
3041
+ 107,
3042
+ 45,
3043
+ 99,
3044
+ 111,
3045
+ 110,
3046
+ 102,
3047
+ 105,
3048
+ 103
3049
+ ];
3050
+ }
3051
+ ];
3052
+ };
3053
+ },
3054
+ {
3055
+ "name": "receiverTimelockConfig";
3056
+ "pda": {
3057
+ "seeds": [
3058
+ {
3059
+ "kind": "const";
3060
+ "value": [
3061
+ 114,
3062
+ 101,
3063
+ 99,
3064
+ 101,
3065
+ 105,
3066
+ 118,
3067
+ 101,
3068
+ 114,
3069
+ 45,
3070
+ 116,
3071
+ 105,
3072
+ 109,
3073
+ 101,
3074
+ 108,
3075
+ 111,
3076
+ 99,
3077
+ 107
3078
+ ];
3079
+ },
3080
+ {
3081
+ "kind": "account";
3082
+ "path": "recipient";
3083
+ }
3084
+ ];
3085
+ };
3086
+ },
3087
+ {
3088
+ "name": "recipient";
3089
+ },
3090
+ {
3091
+ "name": "caller";
3092
+ "writable": true;
3093
+ "signer": true;
3094
+ },
3095
+ {
3096
+ "name": "systemProgram";
3097
+ "address": "11111111111111111111111111111111";
3098
+ },
3099
+ {
3100
+ "name": "instructions";
3101
+ "address": "Sysvar1nstructions1111111111111111111111111";
3102
+ }
3103
+ ];
3104
+ "args": [
3105
+ {
3106
+ "name": "requestId";
3107
+ "type": "u64";
3108
+ },
3109
+ {
3110
+ "name": "committedAmount";
3111
+ "type": "u64";
3112
+ },
3113
+ {
3114
+ "name": "netAmount";
3115
+ "type": "u64";
3116
+ },
3117
+ {
3118
+ "name": "chainId";
3119
+ "type": "u64";
3120
+ }
3121
+ ];
3122
+ },
3123
+ {
3124
+ "name": "scheduleWithdrawalSpl";
3125
+ "discriminator": [
3126
+ 95,
3127
+ 68,
3128
+ 202,
3129
+ 149,
3130
+ 66,
3131
+ 113,
3132
+ 28,
3133
+ 201
3134
+ ];
3135
+ "accounts": [
3136
+ {
3137
+ "name": "escrowConfig";
3138
+ "pda": {
3139
+ "seeds": [
3140
+ {
3141
+ "kind": "const";
3142
+ "value": [
3143
+ 101,
3144
+ 115,
3145
+ 99,
3146
+ 114,
3147
+ 111,
3148
+ 119,
3149
+ 45,
3150
+ 99,
3151
+ 111,
3152
+ 110,
3153
+ 102,
3154
+ 105,
3155
+ 103,
3156
+ 45,
3157
+ 118,
3158
+ 50
3159
+ ];
3160
+ }
3161
+ ];
3162
+ };
3163
+ },
3164
+ {
3165
+ "name": "treasuryConfig";
3166
+ "pda": {
3167
+ "seeds": [
3168
+ {
3169
+ "kind": "const";
3170
+ "value": [
3171
+ 116,
3172
+ 114,
3173
+ 101,
3174
+ 97,
3175
+ 115,
3176
+ 117,
3177
+ 114,
3178
+ 121,
3179
+ 45,
3180
+ 99,
3181
+ 111,
3182
+ 110,
3183
+ 102,
3184
+ 105,
3185
+ 103
3186
+ ];
3187
+ }
3188
+ ];
3189
+ };
3190
+ },
3191
+ {
3192
+ "name": "commitment";
3193
+ "writable": true;
3194
+ "pda": {
3195
+ "seeds": [
3196
+ {
3197
+ "kind": "const";
3198
+ "value": [
3199
+ 119,
3200
+ 105,
3201
+ 116,
3202
+ 104,
3203
+ 100,
3204
+ 114,
3205
+ 97,
3206
+ 119,
3207
+ 97,
3208
+ 108
3209
+ ];
3210
+ },
3211
+ {
3212
+ "kind": "arg";
3213
+ "path": "requestId";
3214
+ }
3215
+ ];
3216
+ };
3217
+ },
3218
+ {
3219
+ "name": "timelockConfig";
3220
+ "pda": {
3221
+ "seeds": [
3222
+ {
3223
+ "kind": "const";
3224
+ "value": [
3225
+ 116,
3226
+ 105,
3227
+ 109,
3228
+ 101,
3229
+ 108,
3230
+ 111,
3231
+ 99,
3232
+ 107,
3233
+ 45,
3234
+ 99,
3235
+ 111,
3236
+ 110,
3237
+ 102,
3238
+ 105,
3239
+ 103
3240
+ ];
3241
+ }
3242
+ ];
3243
+ };
3244
+ },
3245
+ {
3246
+ "name": "receiverTimelockConfig";
3247
+ "pda": {
3248
+ "seeds": [
3249
+ {
3250
+ "kind": "const";
3251
+ "value": [
3252
+ 114,
3253
+ 101,
3254
+ 99,
3255
+ 101,
3256
+ 105,
3257
+ 118,
3258
+ 101,
3259
+ 114,
3260
+ 45,
3261
+ 116,
3262
+ 105,
3263
+ 109,
3264
+ 101,
3265
+ 108,
3266
+ 111,
3267
+ 99,
3268
+ 107
3269
+ ];
3270
+ },
3271
+ {
3272
+ "kind": "account";
3273
+ "path": "recipient";
3274
+ }
3275
+ ];
3276
+ };
3277
+ },
3278
+ {
3279
+ "name": "mint";
3280
+ "docs": [
3281
+ "The SPL token mint — determines which token is being withdrawn"
3282
+ ];
3283
+ },
3284
+ {
3285
+ "name": "recipient";
3286
+ },
3287
+ {
3288
+ "name": "caller";
3289
+ "writable": true;
3290
+ "signer": true;
3291
+ },
3292
+ {
3293
+ "name": "systemProgram";
3294
+ "address": "11111111111111111111111111111111";
3295
+ },
3296
+ {
3297
+ "name": "instructions";
3298
+ "address": "Sysvar1nstructions1111111111111111111111111";
3299
+ }
3300
+ ];
3301
+ "args": [
3302
+ {
3303
+ "name": "requestId";
3304
+ "type": "u64";
3305
+ },
3306
+ {
3307
+ "name": "committedAmount";
3308
+ "type": "u64";
3309
+ },
3310
+ {
3311
+ "name": "netAmount";
3312
+ "type": "u64";
3313
+ },
3314
+ {
3315
+ "name": "chainId";
3316
+ "type": "u64";
3317
+ }
3318
+ ];
3319
+ },
3320
+ {
3321
+ "name": "setAdmin";
3322
+ "discriminator": [
3323
+ 251,
3324
+ 163,
3325
+ 0,
3326
+ 52,
3327
+ 91,
3328
+ 194,
3329
+ 187,
3330
+ 92
3331
+ ];
3332
+ "accounts": [
3333
+ {
3334
+ "name": "escrowConfig";
3335
+ "writable": true;
3336
+ "pda": {
3337
+ "seeds": [
3338
+ {
3339
+ "kind": "const";
3340
+ "value": [
3341
+ 101,
3342
+ 115,
3343
+ 99,
3344
+ 114,
3345
+ 111,
3346
+ 119,
3347
+ 45,
3348
+ 99,
3349
+ 111,
3350
+ 110,
3351
+ 102,
3352
+ 105,
3353
+ 103,
3354
+ 45,
3355
+ 118,
3356
+ 50
3357
+ ];
3358
+ }
3359
+ ];
3360
+ };
3361
+ },
3362
+ {
3363
+ "name": "admin";
3364
+ "signer": true;
3365
+ }
3366
+ ];
3367
+ "args": [
3368
+ {
3369
+ "name": "newAdmin";
3370
+ "type": "pubkey";
3371
+ }
3372
+ ];
3373
+ },
3374
+ {
3375
+ "name": "setFundingWallet";
3376
+ "discriminator": [
3377
+ 134,
3378
+ 34,
3379
+ 203,
3380
+ 88,
3381
+ 248,
3382
+ 13,
3383
+ 78,
3384
+ 30
3385
+ ];
3386
+ "accounts": [
3387
+ {
3388
+ "name": "escrowConfig";
3389
+ "writable": true;
3390
+ "pda": {
3391
+ "seeds": [
3392
+ {
3393
+ "kind": "const";
3394
+ "value": [
3395
+ 101,
3396
+ 115,
3397
+ 99,
3398
+ 114,
3399
+ 111,
3400
+ 119,
3401
+ 45,
3402
+ 99,
3403
+ 111,
3404
+ 110,
3405
+ 102,
3406
+ 105,
3407
+ 103,
3408
+ 45,
3409
+ 118,
3410
+ 50
3411
+ ];
3412
+ }
3413
+ ];
3414
+ };
3415
+ },
3416
+ {
3417
+ "name": "admin";
3418
+ "writable": true;
3419
+ "signer": true;
3420
+ }
3421
+ ];
3422
+ "args": [
3423
+ {
3424
+ "name": "newFundingWallet";
3425
+ "type": "pubkey";
3426
+ }
3427
+ ];
3428
+ },
3429
+ {
3430
+ "name": "setMaxFeeDelta";
3431
+ "discriminator": [
3432
+ 184,
3433
+ 66,
3434
+ 78,
3435
+ 162,
3436
+ 85,
3437
+ 237,
3438
+ 83,
3439
+ 148
3440
+ ];
3441
+ "accounts": [
3442
+ {
3443
+ "name": "escrowConfig";
3444
+ "pda": {
3445
+ "seeds": [
3446
+ {
3447
+ "kind": "const";
3448
+ "value": [
3449
+ 101,
3450
+ 115,
3451
+ 99,
3452
+ 114,
3453
+ 111,
3454
+ 119,
3455
+ 45,
3456
+ 99,
3457
+ 111,
3458
+ 110,
3459
+ 102,
3460
+ 105,
3461
+ 103,
3462
+ 45,
3463
+ 118,
3464
+ 50
3465
+ ];
3466
+ }
3467
+ ];
3468
+ };
3469
+ },
3470
+ {
3471
+ "name": "treasuryConfig";
3472
+ "writable": true;
3473
+ "pda": {
3474
+ "seeds": [
3475
+ {
3476
+ "kind": "const";
3477
+ "value": [
3478
+ 116,
3479
+ 114,
3480
+ 101,
3481
+ 97,
3482
+ 115,
3483
+ 117,
3484
+ 114,
3485
+ 121,
3486
+ 45,
3487
+ 99,
3488
+ 111,
3489
+ 110,
3490
+ 102,
3491
+ 105,
3492
+ 103
3493
+ ];
3494
+ }
3495
+ ];
3496
+ };
3497
+ },
3498
+ {
3499
+ "name": "admin";
3500
+ "writable": true;
3501
+ "signer": true;
3502
+ }
3503
+ ];
3504
+ "args": [
3505
+ {
3506
+ "name": "amount";
3507
+ "type": "u64";
3508
+ }
3509
+ ];
3510
+ },
3511
+ {
3512
+ "name": "setReceiverTimelockConfig";
3513
+ "discriminator": [
3514
+ 179,
3515
+ 116,
3516
+ 158,
3517
+ 165,
3518
+ 236,
3519
+ 240,
3520
+ 203,
3521
+ 78
3522
+ ];
3523
+ "accounts": [
3524
+ {
3525
+ "name": "escrowConfig";
3526
+ "pda": {
3527
+ "seeds": [
3528
+ {
3529
+ "kind": "const";
3530
+ "value": [
3531
+ 101,
3532
+ 115,
3533
+ 99,
3534
+ 114,
3535
+ 111,
3536
+ 119,
3537
+ 45,
3538
+ 99,
3539
+ 111,
3540
+ 110,
3541
+ 102,
3542
+ 105,
3543
+ 103,
3544
+ 45,
3545
+ 118,
3546
+ 50
3547
+ ];
3548
+ }
3549
+ ];
3550
+ };
3551
+ },
3552
+ {
3553
+ "name": "receiverTimelockConfig";
3554
+ "writable": true;
3555
+ "pda": {
3556
+ "seeds": [
3557
+ {
3558
+ "kind": "const";
3559
+ "value": [
3560
+ 114,
3561
+ 101,
3562
+ 99,
3563
+ 101,
3564
+ 105,
3565
+ 118,
3566
+ 101,
3567
+ 114,
3568
+ 45,
3569
+ 116,
3570
+ 105,
3571
+ 109,
3572
+ 101,
3573
+ 108,
3574
+ 111,
3575
+ 99,
3576
+ 107
3577
+ ];
3578
+ },
3579
+ {
3580
+ "kind": "arg";
3581
+ "path": "receiver";
3582
+ }
3583
+ ];
3584
+ };
3585
+ },
3586
+ {
3587
+ "name": "admin";
3588
+ "writable": true;
3589
+ "signer": true;
3590
+ },
3591
+ {
3592
+ "name": "systemProgram";
3593
+ "address": "11111111111111111111111111111111";
3594
+ }
3595
+ ];
3596
+ "args": [
3597
+ {
3598
+ "name": "receiver";
3599
+ "type": "pubkey";
3600
+ },
3601
+ {
3602
+ "name": "delaySeconds";
3603
+ "type": "i64";
3604
+ }
3605
+ ];
3606
+ },
3607
+ {
3608
+ "name": "setSignatureWallet";
3609
+ "discriminator": [
3610
+ 218,
3611
+ 131,
3612
+ 78,
3613
+ 197,
3614
+ 72,
3615
+ 225,
3616
+ 0,
3617
+ 90
3618
+ ];
3619
+ "accounts": [
3620
+ {
3621
+ "name": "escrowConfig";
3622
+ "writable": true;
3623
+ "pda": {
3624
+ "seeds": [
3625
+ {
3626
+ "kind": "const";
3627
+ "value": [
3628
+ 101,
3629
+ 115,
3630
+ 99,
3631
+ 114,
3632
+ 111,
3633
+ 119,
3634
+ 45,
3635
+ 99,
3636
+ 111,
3637
+ 110,
3638
+ 102,
3639
+ 105,
3640
+ 103,
3641
+ 45,
3642
+ 118,
3643
+ 50
3644
+ ];
3645
+ }
3646
+ ];
3647
+ };
3648
+ },
3649
+ {
3650
+ "name": "admin";
3651
+ "writable": true;
3652
+ "signer": true;
3653
+ }
3654
+ ];
3655
+ "args": [
3656
+ {
3657
+ "name": "newSignatureWallet";
3658
+ "type": "pubkey";
3659
+ }
3660
+ ];
3661
+ },
3662
+ {
3663
+ "name": "setTimelockConfig";
3664
+ "discriminator": [
3665
+ 176,
3666
+ 167,
3667
+ 10,
3668
+ 233,
3669
+ 251,
3670
+ 255,
3671
+ 15,
3672
+ 254
3673
+ ];
3674
+ "accounts": [
3675
+ {
3676
+ "name": "escrowConfig";
3677
+ "pda": {
3678
+ "seeds": [
3679
+ {
3680
+ "kind": "const";
3681
+ "value": [
3682
+ 101,
3683
+ 115,
3684
+ 99,
3685
+ 114,
3686
+ 111,
3687
+ 119,
3688
+ 45,
3689
+ 99,
3690
+ 111,
3691
+ 110,
3692
+ 102,
3693
+ 105,
3694
+ 103,
3695
+ 45,
3696
+ 118,
3697
+ 50
3698
+ ];
3699
+ }
3700
+ ];
3701
+ };
3702
+ },
3703
+ {
3704
+ "name": "timelockConfig";
3705
+ "writable": true;
3706
+ "pda": {
3707
+ "seeds": [
3708
+ {
3709
+ "kind": "const";
3710
+ "value": [
3711
+ 116,
3712
+ 105,
3713
+ 109,
3714
+ 101,
3715
+ 108,
3716
+ 111,
3717
+ 99,
3718
+ 107,
3719
+ 45,
3720
+ 99,
3721
+ 111,
3722
+ 110,
3723
+ 102,
3724
+ 105,
3725
+ 103
3726
+ ];
3727
+ }
3728
+ ];
3729
+ };
3730
+ },
3731
+ {
3732
+ "name": "admin";
3733
+ "writable": true;
3734
+ "signer": true;
3735
+ },
3736
+ {
3737
+ "name": "systemProgram";
3738
+ "address": "11111111111111111111111111111111";
3739
+ }
3740
+ ];
3741
+ "args": [
3742
+ {
3743
+ "name": "delaySeconds";
3744
+ "type": "i64";
3745
+ }
3746
+ ];
3747
+ },
3748
+ {
3749
+ "name": "setWithdrawalThresholds";
3750
+ "discriminator": [
3751
+ 210,
3752
+ 174,
3753
+ 130,
3754
+ 94,
3755
+ 94,
3756
+ 180,
3757
+ 181,
3758
+ 165
3759
+ ];
3760
+ "accounts": [
3761
+ {
3762
+ "name": "escrowConfig";
3763
+ "pda": {
3764
+ "seeds": [
3765
+ {
3766
+ "kind": "const";
3767
+ "value": [
3768
+ 101,
3769
+ 115,
3770
+ 99,
3771
+ 114,
3772
+ 111,
3773
+ 119,
3774
+ 45,
3775
+ 99,
3776
+ 111,
3777
+ 110,
3778
+ 102,
3779
+ 105,
3780
+ 103,
3781
+ 45,
3782
+ 118,
3783
+ 50
3784
+ ];
3785
+ }
3786
+ ];
3787
+ };
3788
+ },
3789
+ {
3790
+ "name": "treasuryConfig";
3791
+ "writable": true;
3792
+ "pda": {
3793
+ "seeds": [
3794
+ {
3795
+ "kind": "const";
3796
+ "value": [
3797
+ 116,
3798
+ 114,
3799
+ 101,
3800
+ 97,
3801
+ 115,
3802
+ 117,
3803
+ 114,
3804
+ 121,
3805
+ 45,
3806
+ 99,
3807
+ 111,
3808
+ 110,
3809
+ 102,
3810
+ 105,
3811
+ 103
3812
+ ];
3813
+ }
3814
+ ];
3815
+ };
3816
+ },
3817
+ {
3818
+ "name": "admin";
3819
+ "writable": true;
3820
+ "signer": true;
3821
+ }
3822
+ ];
3823
+ "args": [
3824
+ {
3825
+ "name": "managerThreshold";
3826
+ "type": "u8";
3827
+ },
3828
+ {
3829
+ "name": "executiveThreshold";
3830
+ "type": "u8";
3831
+ }
3832
+ ];
3833
+ },
3834
+ {
3835
+ "name": "withdrawSolWithSig";
3836
+ "discriminator": [
3837
+ 127,
3838
+ 123,
3839
+ 63,
3840
+ 232,
3841
+ 4,
3842
+ 153,
3843
+ 33,
3844
+ 13
3845
+ ];
3846
+ "accounts": [
3847
+ {
3848
+ "name": "escrowConfig";
3849
+ "pda": {
3850
+ "seeds": [
3851
+ {
3852
+ "kind": "const";
3853
+ "value": [
3854
+ 101,
3855
+ 115,
3856
+ 99,
3857
+ 114,
3858
+ 111,
3859
+ 119,
3860
+ 45,
3861
+ 99,
3862
+ 111,
3863
+ 110,
3864
+ 102,
3865
+ 105,
3866
+ 103,
3867
+ 45,
3868
+ 118,
3869
+ 50
3870
+ ];
3871
+ }
3872
+ ];
3873
+ };
3874
+ },
3875
+ {
3876
+ "name": "user";
3877
+ "writable": true;
3878
+ "signer": true;
3879
+ },
3880
+ {
3881
+ "name": "vaultAuthority";
3882
+ "writable": true;
3883
+ "pda": {
3884
+ "seeds": [
3885
+ {
3886
+ "kind": "const";
3887
+ "value": [
3888
+ 101,
3889
+ 115,
3890
+ 99,
3891
+ 114,
3892
+ 111,
3893
+ 119
3894
+ ];
3895
+ }
3896
+ ];
3897
+ };
3898
+ },
3899
+ {
3900
+ "name": "withdrawNonce";
3901
+ "writable": true;
3902
+ "pda": {
3903
+ "seeds": [
3904
+ {
3905
+ "kind": "const";
3906
+ "value": [
3907
+ 119,
3908
+ 105,
3909
+ 116,
3910
+ 104,
3911
+ 100,
3912
+ 114,
3913
+ 97,
3914
+ 119,
3915
+ 45,
3916
+ 110,
3917
+ 111,
3918
+ 110,
3919
+ 99,
3920
+ 101
3921
+ ];
3922
+ },
3923
+ {
3924
+ "kind": "account";
3925
+ "path": "user";
3926
+ }
3927
+ ];
3928
+ };
3929
+ },
3930
+ {
3931
+ "name": "recipient";
3932
+ "writable": true;
3933
+ },
3934
+ {
3935
+ "name": "tokenAddress";
3936
+ },
3937
+ {
3938
+ "name": "systemProgram";
3939
+ "address": "11111111111111111111111111111111";
3940
+ },
3941
+ {
3942
+ "name": "instructions";
3943
+ "address": "Sysvar1nstructions1111111111111111111111111";
3944
+ }
3945
+ ];
3946
+ "args": [
3947
+ {
3948
+ "name": "amount";
3949
+ "type": "u64";
3950
+ },
3951
+ {
3952
+ "name": "chainId";
3953
+ "type": "u64";
3954
+ },
3955
+ {
3956
+ "name": "requestId";
3957
+ "type": "u64";
3958
+ }
3959
+ ];
3960
+ },
3961
+ {
3962
+ "name": "withdrawSplWithSig";
3963
+ "discriminator": [
3964
+ 97,
3965
+ 26,
3966
+ 53,
3967
+ 97,
3968
+ 35,
3969
+ 183,
3970
+ 69,
3971
+ 237
3972
+ ];
3973
+ "accounts": [
3974
+ {
3975
+ "name": "escrowConfig";
3976
+ "pda": {
3977
+ "seeds": [
3978
+ {
3979
+ "kind": "const";
3980
+ "value": [
3981
+ 101,
3982
+ 115,
3983
+ 99,
3984
+ 114,
3985
+ 111,
3986
+ 119,
3987
+ 45,
3988
+ 99,
3989
+ 111,
3990
+ 110,
3991
+ 102,
3992
+ 105,
3993
+ 103,
3994
+ 45,
3995
+ 118,
3996
+ 50
3997
+ ];
3998
+ }
3999
+ ];
4000
+ };
4001
+ },
4002
+ {
4003
+ "name": "mint";
4004
+ },
4005
+ {
4006
+ "name": "user";
4007
+ "writable": true;
4008
+ "signer": true;
4009
+ },
4010
+ {
4011
+ "name": "vaultAuthority";
4012
+ "writable": true;
4013
+ "pda": {
4014
+ "seeds": [
4015
+ {
4016
+ "kind": "const";
4017
+ "value": [
4018
+ 101,
4019
+ 115,
4020
+ 99,
4021
+ 114,
4022
+ 111,
4023
+ 119
4024
+ ];
4025
+ }
4026
+ ];
4027
+ };
4028
+ },
4029
+ {
4030
+ "name": "vaultTokenAccount";
4031
+ "writable": true;
4032
+ "pda": {
4033
+ "seeds": [
4034
+ {
4035
+ "kind": "account";
4036
+ "path": "vaultAuthority";
4037
+ },
4038
+ {
4039
+ "kind": "const";
4040
+ "value": [
4041
+ 6,
4042
+ 221,
4043
+ 246,
4044
+ 225,
4045
+ 215,
4046
+ 101,
4047
+ 161,
4048
+ 147,
4049
+ 217,
4050
+ 203,
4051
+ 225,
4052
+ 70,
4053
+ 206,
4054
+ 235,
4055
+ 121,
4056
+ 172,
4057
+ 28,
4058
+ 180,
4059
+ 133,
4060
+ 237,
4061
+ 95,
4062
+ 91,
4063
+ 55,
4064
+ 145,
4065
+ 58,
4066
+ 140,
4067
+ 245,
4068
+ 133,
4069
+ 126,
4070
+ 255,
4071
+ 0,
4072
+ 169
4073
+ ];
4074
+ },
4075
+ {
4076
+ "kind": "account";
4077
+ "path": "mint";
4078
+ }
4079
+ ];
4080
+ "program": {
4081
+ "kind": "const";
4082
+ "value": [
4083
+ 140,
4084
+ 151,
4085
+ 37,
4086
+ 143,
4087
+ 78,
4088
+ 36,
4089
+ 137,
4090
+ 241,
4091
+ 187,
4092
+ 61,
4093
+ 16,
4094
+ 41,
4095
+ 20,
4096
+ 142,
4097
+ 13,
4098
+ 131,
4099
+ 11,
4100
+ 90,
4101
+ 19,
4102
+ 153,
4103
+ 218,
4104
+ 255,
4105
+ 16,
4106
+ 132,
4107
+ 4,
4108
+ 142,
4109
+ 123,
4110
+ 216,
4111
+ 219,
4112
+ 233,
4113
+ 248,
4114
+ 89
4115
+ ];
4116
+ };
4117
+ };
4118
+ },
4119
+ {
4120
+ "name": "withdrawNonce";
4121
+ },
4122
+ {
4123
+ "name": "recipient";
4124
+ "writable": true;
4125
+ },
4126
+ {
4127
+ "name": "userTokenAccount";
4128
+ "writable": true;
4129
+ "pda": {
4130
+ "seeds": [
4131
+ {
4132
+ "kind": "account";
4133
+ "path": "user";
4134
+ },
4135
+ {
4136
+ "kind": "const";
4137
+ "value": [
4138
+ 6,
4139
+ 221,
4140
+ 246,
4141
+ 225,
4142
+ 215,
4143
+ 101,
4144
+ 161,
4145
+ 147,
4146
+ 217,
4147
+ 203,
4148
+ 225,
4149
+ 70,
4150
+ 206,
4151
+ 235,
4152
+ 121,
4153
+ 172,
4154
+ 28,
4155
+ 180,
4156
+ 133,
4157
+ 237,
4158
+ 95,
4159
+ 91,
4160
+ 55,
4161
+ 145,
4162
+ 58,
4163
+ 140,
4164
+ 245,
4165
+ 133,
4166
+ 126,
4167
+ 255,
4168
+ 0,
4169
+ 169
4170
+ ];
4171
+ },
4172
+ {
4173
+ "kind": "account";
4174
+ "path": "mint";
4175
+ }
4176
+ ];
4177
+ "program": {
4178
+ "kind": "const";
4179
+ "value": [
4180
+ 140,
4181
+ 151,
4182
+ 37,
4183
+ 143,
4184
+ 78,
4185
+ 36,
4186
+ 137,
4187
+ 241,
4188
+ 187,
4189
+ 61,
4190
+ 16,
4191
+ 41,
4192
+ 20,
4193
+ 142,
4194
+ 13,
4195
+ 131,
4196
+ 11,
4197
+ 90,
4198
+ 19,
4199
+ 153,
4200
+ 218,
4201
+ 255,
4202
+ 16,
4203
+ 132,
4204
+ 4,
4205
+ 142,
4206
+ 123,
4207
+ 216,
4208
+ 219,
4209
+ 233,
4210
+ 248,
4211
+ 89
4212
+ ];
4213
+ };
4214
+ };
4215
+ },
4216
+ {
4217
+ "name": "tokenProgram";
4218
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
4219
+ },
4220
+ {
4221
+ "name": "systemProgram";
4222
+ "address": "11111111111111111111111111111111";
4223
+ },
4224
+ {
4225
+ "name": "instructions";
4226
+ "address": "Sysvar1nstructions1111111111111111111111111";
4227
+ }
4228
+ ];
4229
+ "args": [
4230
+ {
4231
+ "name": "amount";
4232
+ "type": "u64";
4233
+ },
4234
+ {
4235
+ "name": "chainId";
4236
+ "type": "u64";
4237
+ },
4238
+ {
4239
+ "name": "requestId";
4240
+ "type": "u64";
4241
+ }
4242
+ ];
4243
+ }
4244
+ ];
4245
+ "accounts": [
4246
+ {
4247
+ "name": "escrowConfig";
4248
+ "discriminator": [
4249
+ 138,
4250
+ 174,
4251
+ 227,
4252
+ 187,
4253
+ 239,
4254
+ 148,
4255
+ 1,
4256
+ 44
4257
+ ];
4258
+ },
4259
+ {
4260
+ "name": "escrowConfiguration";
4261
+ "discriminator": [
4262
+ 105,
4263
+ 131,
4264
+ 219,
4265
+ 218,
4266
+ 63,
4267
+ 157,
4268
+ 131,
4269
+ 34
4270
+ ];
4271
+ },
4272
+ {
4273
+ "name": "receiverTimelockConfig";
4274
+ "discriminator": [
4275
+ 155,
4276
+ 62,
4277
+ 82,
4278
+ 53,
4279
+ 244,
4280
+ 149,
4281
+ 35,
4282
+ 69
4283
+ ];
4284
+ },
4285
+ {
4286
+ "name": "timelockConfig";
4287
+ "discriminator": [
4288
+ 189,
4289
+ 87,
4290
+ 27,
4291
+ 18,
4292
+ 189,
4293
+ 173,
4294
+ 47,
4295
+ 197
4296
+ ];
4297
+ },
4298
+ {
4299
+ "name": "treasuryConfig";
4300
+ "discriminator": [
4301
+ 124,
4302
+ 54,
4303
+ 212,
4304
+ 227,
4305
+ 213,
4306
+ 189,
4307
+ 168,
4308
+ 41
4309
+ ];
4310
+ },
4311
+ {
4312
+ "name": "withdrawNonce";
4313
+ "discriminator": [
4314
+ 14,
4315
+ 140,
4316
+ 88,
4317
+ 169,
4318
+ 163,
4319
+ 189,
4320
+ 45,
4321
+ 160
4322
+ ];
4323
+ },
4324
+ {
4325
+ "name": "withdrawalCommitment";
4326
+ "discriminator": [
4327
+ 129,
4328
+ 131,
4329
+ 178,
4330
+ 154,
4331
+ 169,
4332
+ 202,
4333
+ 148,
4334
+ 141
4335
+ ];
4336
+ }
4337
+ ];
4338
+ "events": [
4339
+ {
4340
+ "name": "adminDeposit";
4341
+ "discriminator": [
4342
+ 59,
4343
+ 248,
4344
+ 135,
4345
+ 30,
4346
+ 114,
4347
+ 173,
4348
+ 182,
4349
+ 26
4350
+ ];
4351
+ },
4352
+ {
4353
+ "name": "adminWithdraw";
4354
+ "discriminator": [
4355
+ 218,
4356
+ 178,
4357
+ 1,
4358
+ 64,
4359
+ 41,
4360
+ 179,
2612
4361
  24,
2613
4362
  171
2614
4363
  ];
@@ -2639,6 +4388,84 @@ export type Escrow = {
2639
4388
  23
2640
4389
  ];
2641
4390
  },
4391
+ {
4392
+ "name": "maxFeeDeltaConfiguredEvent";
4393
+ "discriminator": [
4394
+ 22,
4395
+ 138,
4396
+ 194,
4397
+ 64,
4398
+ 245,
4399
+ 136,
4400
+ 168,
4401
+ 16
4402
+ ];
4403
+ },
4404
+ {
4405
+ "name": "receiverTimelockConfiguredEvent";
4406
+ "discriminator": [
4407
+ 133,
4408
+ 139,
4409
+ 55,
4410
+ 62,
4411
+ 207,
4412
+ 76,
4413
+ 16,
4414
+ 95
4415
+ ];
4416
+ },
4417
+ {
4418
+ "name": "roleGranted";
4419
+ "discriminator": [
4420
+ 220,
4421
+ 183,
4422
+ 89,
4423
+ 228,
4424
+ 143,
4425
+ 63,
4426
+ 246,
4427
+ 58
4428
+ ];
4429
+ },
4430
+ {
4431
+ "name": "roleRevoked";
4432
+ "discriminator": [
4433
+ 167,
4434
+ 183,
4435
+ 52,
4436
+ 229,
4437
+ 126,
4438
+ 206,
4439
+ 62,
4440
+ 61
4441
+ ];
4442
+ },
4443
+ {
4444
+ "name": "timelockConfiguredEvent";
4445
+ "discriminator": [
4446
+ 95,
4447
+ 91,
4448
+ 67,
4449
+ 84,
4450
+ 32,
4451
+ 210,
4452
+ 3,
4453
+ 116
4454
+ ];
4455
+ },
4456
+ {
4457
+ "name": "treasuryConfigInitializedEvent";
4458
+ "discriminator": [
4459
+ 170,
4460
+ 202,
4461
+ 243,
4462
+ 194,
4463
+ 90,
4464
+ 143,
4465
+ 28,
4466
+ 119
4467
+ ];
4468
+ },
2642
4469
  {
2643
4470
  "name": "withdrawSolEvent";
2644
4471
  "discriminator": [
@@ -2664,6 +4491,58 @@ export type Escrow = {
2664
4491
  53,
2665
4492
  85
2666
4493
  ];
4494
+ },
4495
+ {
4496
+ "name": "withdrawalCancelledEvent";
4497
+ "discriminator": [
4498
+ 40,
4499
+ 218,
4500
+ 165,
4501
+ 230,
4502
+ 31,
4503
+ 49,
4504
+ 238,
4505
+ 127
4506
+ ];
4507
+ },
4508
+ {
4509
+ "name": "withdrawalExecutedEvent";
4510
+ "discriminator": [
4511
+ 60,
4512
+ 185,
4513
+ 83,
4514
+ 2,
4515
+ 206,
4516
+ 217,
4517
+ 44,
4518
+ 53
4519
+ ];
4520
+ },
4521
+ {
4522
+ "name": "withdrawalScheduledEvent";
4523
+ "discriminator": [
4524
+ 74,
4525
+ 43,
4526
+ 199,
4527
+ 56,
4528
+ 129,
4529
+ 1,
4530
+ 247,
4531
+ 68
4532
+ ];
4533
+ },
4534
+ {
4535
+ "name": "withdrawalThresholdsConfiguredEvent";
4536
+ "discriminator": [
4537
+ 233,
4538
+ 231,
4539
+ 110,
4540
+ 102,
4541
+ 162,
4542
+ 86,
4543
+ 78,
4544
+ 118
4545
+ ];
2667
4546
  }
2668
4547
  ];
2669
4548
  "errors": [
@@ -2718,82 +4597,508 @@ export type Escrow = {
2718
4597
  "msg": "Public Key out of bounds";
2719
4598
  },
2720
4599
  {
2721
- "code": 6010;
2722
- "name": "invalidSigner";
2723
- "msg": "Invalid signer publickey";
4600
+ "code": 6010;
4601
+ "name": "invalidSigner";
4602
+ "msg": "Invalid signer publickey";
4603
+ },
4604
+ {
4605
+ "code": 6011;
4606
+ "name": "alreadyExists";
4607
+ "msg": "Account already exists in the list";
4608
+ },
4609
+ {
4610
+ "code": 6012;
4611
+ "name": "notFound";
4612
+ "msg": "Account not found in the list";
4613
+ },
4614
+ {
4615
+ "code": 6013;
4616
+ "name": "invalidPaymenToken";
4617
+ "msg": "Invalid payment token.";
4618
+ },
4619
+ {
4620
+ "code": 6014;
4621
+ "name": "insufficientSplReserves";
4622
+ "msg": "Insufficient SPL reserve balance.";
4623
+ },
4624
+ {
4625
+ "code": 6015;
4626
+ "name": "insufficientSolReserves";
4627
+ "msg": "Insufficient SOL reserve balance.";
4628
+ },
4629
+ {
4630
+ "code": 6016;
4631
+ "name": "paused";
4632
+ "msg": "Program is paused";
4633
+ },
4634
+ {
4635
+ "code": 6017;
4636
+ "name": "sameState";
4637
+ "msg": "Program is already in this state";
4638
+ },
4639
+ {
4640
+ "code": 6018;
4641
+ "name": "maxPaymentTokenCount";
4642
+ "msg": "Max payment tokens count reached";
4643
+ },
4644
+ {
4645
+ "code": 6019;
4646
+ "name": "maxAdminCount";
4647
+ "msg": "Max admin count reached";
4648
+ },
4649
+ {
4650
+ "code": 6020;
4651
+ "name": "notInitialized";
4652
+ "msg": "Treasury config not initialized";
4653
+ },
4654
+ {
4655
+ "code": 6021;
4656
+ "name": "unauthorizedSigner";
4657
+ "msg": "Signer is not a treasury manager or executive";
4658
+ },
4659
+ {
4660
+ "code": 6022;
4661
+ "name": "insufficientManagerSigs";
4662
+ "msg": "Insufficient treasury manager signatures";
4663
+ },
4664
+ {
4665
+ "code": 6023;
4666
+ "name": "insufficientExecutiveSigs";
4667
+ "msg": "Insufficient treasury executive signatures";
4668
+ },
4669
+ {
4670
+ "code": 6024;
4671
+ "name": "maxRoleCount";
4672
+ "msg": "Max role member count reached";
4673
+ },
4674
+ {
4675
+ "code": 6025;
4676
+ "name": "invalidNetAmount";
4677
+ "msg": "net_amount exceeds committed_amount";
4678
+ },
4679
+ {
4680
+ "code": 6026;
4681
+ "name": "feeDeltaExceedsCap";
4682
+ "msg": "Fee delta exceeds max allowed cap";
4683
+ },
4684
+ {
4685
+ "code": 6027;
4686
+ "name": "timelockNotExpired";
4687
+ "msg": "Timelock has not expired yet";
4688
+ },
4689
+ {
4690
+ "code": 6028;
4691
+ "name": "invalidRequestId";
4692
+ "msg": "Request ID does not match commitment";
4693
+ }
4694
+ ];
4695
+ "types": [
4696
+ {
4697
+ "name": "adminDeposit";
4698
+ "type": {
4699
+ "kind": "struct";
4700
+ "fields": [
4701
+ {
4702
+ "name": "caller";
4703
+ "type": "pubkey";
4704
+ },
4705
+ {
4706
+ "name": "depositor";
4707
+ "type": "pubkey";
4708
+ },
4709
+ {
4710
+ "name": "recipient";
4711
+ "type": "pubkey";
4712
+ },
4713
+ {
4714
+ "name": "token";
4715
+ "type": "pubkey";
4716
+ },
4717
+ {
4718
+ "name": "amount";
4719
+ "type": "u64";
4720
+ },
4721
+ {
4722
+ "name": "slot";
4723
+ "type": "u64";
4724
+ },
4725
+ {
4726
+ "name": "timestamp";
4727
+ "type": "i64";
4728
+ }
4729
+ ];
4730
+ };
4731
+ },
4732
+ {
4733
+ "name": "adminWithdraw";
4734
+ "type": {
4735
+ "kind": "struct";
4736
+ "fields": [
4737
+ {
4738
+ "name": "caller";
4739
+ "type": "pubkey";
4740
+ },
4741
+ {
4742
+ "name": "recipient";
4743
+ "type": "pubkey";
4744
+ },
4745
+ {
4746
+ "name": "token";
4747
+ "type": "pubkey";
4748
+ },
4749
+ {
4750
+ "name": "amount";
4751
+ "type": "u64";
4752
+ },
4753
+ {
4754
+ "name": "slot";
4755
+ "type": "u64";
4756
+ },
4757
+ {
4758
+ "name": "timestamp";
4759
+ "type": "i64";
4760
+ }
4761
+ ];
4762
+ };
2724
4763
  },
2725
4764
  {
2726
- "code": 6011;
2727
- "name": "alreadyExists";
2728
- "msg": "Account already exists in the list";
4765
+ "name": "depositSolEvent";
4766
+ "type": {
4767
+ "kind": "struct";
4768
+ "fields": [
4769
+ {
4770
+ "name": "caller";
4771
+ "type": "pubkey";
4772
+ },
4773
+ {
4774
+ "name": "depositor";
4775
+ "type": "pubkey";
4776
+ },
4777
+ {
4778
+ "name": "vaultAuthority";
4779
+ "type": "pubkey";
4780
+ },
4781
+ {
4782
+ "name": "amount";
4783
+ "type": "u64";
4784
+ },
4785
+ {
4786
+ "name": "bonusCode";
4787
+ "type": "string";
4788
+ },
4789
+ {
4790
+ "name": "slot";
4791
+ "type": "u64";
4792
+ },
4793
+ {
4794
+ "name": "timestamp";
4795
+ "type": "i64";
4796
+ }
4797
+ ];
4798
+ };
2729
4799
  },
2730
4800
  {
2731
- "code": 6012;
2732
- "name": "notFound";
2733
- "msg": "Account not found in the list";
4801
+ "name": "depositSplEvent";
4802
+ "type": {
4803
+ "kind": "struct";
4804
+ "fields": [
4805
+ {
4806
+ "name": "caller";
4807
+ "type": "pubkey";
4808
+ },
4809
+ {
4810
+ "name": "depositor";
4811
+ "type": "pubkey";
4812
+ },
4813
+ {
4814
+ "name": "vaultTokenAccount";
4815
+ "type": "pubkey";
4816
+ },
4817
+ {
4818
+ "name": "mint";
4819
+ "type": "pubkey";
4820
+ },
4821
+ {
4822
+ "name": "amount";
4823
+ "type": "u64";
4824
+ },
4825
+ {
4826
+ "name": "bonusCode";
4827
+ "type": "string";
4828
+ },
4829
+ {
4830
+ "name": "slot";
4831
+ "type": "u64";
4832
+ },
4833
+ {
4834
+ "name": "timestamp";
4835
+ "type": "i64";
4836
+ }
4837
+ ];
4838
+ };
2734
4839
  },
2735
4840
  {
2736
- "code": 6013;
2737
- "name": "invalidPaymenToken";
2738
- "msg": "Invalid payment token.";
4841
+ "name": "escrowConfig";
4842
+ "type": {
4843
+ "kind": "struct";
4844
+ "fields": [
4845
+ {
4846
+ "name": "admin";
4847
+ "type": "pubkey";
4848
+ },
4849
+ {
4850
+ "name": "signer";
4851
+ "type": "pubkey";
4852
+ },
4853
+ {
4854
+ "name": "isInitialized";
4855
+ "type": "bool";
4856
+ }
4857
+ ];
4858
+ };
2739
4859
  },
2740
4860
  {
2741
- "code": 6014;
2742
- "name": "insufficientSplReserves";
2743
- "msg": "Insufficient SPL reserve balance.";
4861
+ "name": "escrowConfiguration";
4862
+ "docs": [
4863
+ "Config account holding"
4864
+ ];
4865
+ "type": {
4866
+ "kind": "struct";
4867
+ "fields": [
4868
+ {
4869
+ "name": "admins";
4870
+ "type": {
4871
+ "vec": "pubkey";
4872
+ };
4873
+ },
4874
+ {
4875
+ "name": "paymentTokens";
4876
+ "type": {
4877
+ "vec": "pubkey";
4878
+ };
4879
+ },
4880
+ {
4881
+ "name": "signer";
4882
+ "type": "pubkey";
4883
+ },
4884
+ {
4885
+ "name": "fundingWallet";
4886
+ "type": "pubkey";
4887
+ },
4888
+ {
4889
+ "name": "isInitialized";
4890
+ "type": "bool";
4891
+ },
4892
+ {
4893
+ "name": "isPaused";
4894
+ "type": "bool";
4895
+ }
4896
+ ];
4897
+ };
2744
4898
  },
2745
4899
  {
2746
- "code": 6015;
2747
- "name": "insufficientSolReserves";
2748
- "msg": "Insufficient SOL reserve balance.";
4900
+ "name": "maxFeeDeltaConfiguredEvent";
4901
+ "docs": [
4902
+ "Emitted when the max fee delta (committed - net cap) is updated. 0 = disabled."
4903
+ ];
4904
+ "type": {
4905
+ "kind": "struct";
4906
+ "fields": [
4907
+ {
4908
+ "name": "amount";
4909
+ "type": "u64";
4910
+ },
4911
+ {
4912
+ "name": "sender";
4913
+ "type": "pubkey";
4914
+ },
4915
+ {
4916
+ "name": "slot";
4917
+ "type": "u64";
4918
+ },
4919
+ {
4920
+ "name": "timestamp";
4921
+ "type": "i64";
4922
+ }
4923
+ ];
4924
+ };
2749
4925
  },
2750
4926
  {
2751
- "code": 6016;
2752
- "name": "paused";
2753
- "msg": "Program is paused";
4927
+ "name": "receiverTimelockConfig";
4928
+ "docs": [
4929
+ "Per-receiver timelock override. delay_seconds = 0 means trusted (immediate execution)."
4930
+ ];
4931
+ "type": {
4932
+ "kind": "struct";
4933
+ "fields": [
4934
+ {
4935
+ "name": "delaySeconds";
4936
+ "type": "i64";
4937
+ },
4938
+ {
4939
+ "name": "isSet";
4940
+ "type": "bool";
4941
+ }
4942
+ ];
4943
+ };
2754
4944
  },
2755
4945
  {
2756
- "code": 6017;
2757
- "name": "sameState";
2758
- "msg": "Program is already in this state";
4946
+ "name": "receiverTimelockConfiguredEvent";
4947
+ "docs": [
4948
+ "Emitted when a per-receiver (granular) timelock override is set."
4949
+ ];
4950
+ "type": {
4951
+ "kind": "struct";
4952
+ "fields": [
4953
+ {
4954
+ "name": "receiver";
4955
+ "type": "pubkey";
4956
+ },
4957
+ {
4958
+ "name": "delaySeconds";
4959
+ "type": "i64";
4960
+ },
4961
+ {
4962
+ "name": "sender";
4963
+ "type": "pubkey";
4964
+ },
4965
+ {
4966
+ "name": "slot";
4967
+ "type": "u64";
4968
+ },
4969
+ {
4970
+ "name": "timestamp";
4971
+ "type": "i64";
4972
+ }
4973
+ ];
4974
+ };
2759
4975
  },
2760
4976
  {
2761
- "code": 6018;
2762
- "name": "maxPaymentTokenCount";
2763
- "msg": "Max payment tokens count reached";
4977
+ "name": "role";
4978
+ "docs": [
4979
+ "Role assigned to a membership set on the escrow (mirrors EVM AccessControl semantics)."
4980
+ ];
4981
+ "type": {
4982
+ "kind": "enum";
4983
+ "variants": [
4984
+ {
4985
+ "name": "admin";
4986
+ },
4987
+ {
4988
+ "name": "treasuryManager";
4989
+ },
4990
+ {
4991
+ "name": "treasuryExecutive";
4992
+ }
4993
+ ];
4994
+ };
2764
4995
  },
2765
4996
  {
2766
- "code": 6019;
2767
- "name": "maxAdminCount";
2768
- "msg": "Max admin count reached";
2769
- }
2770
- ];
2771
- "types": [
2772
- {
2773
- "name": "adminDeposit";
4997
+ "name": "roleGranted";
4998
+ "docs": [
4999
+ "Emitted when an account is added to a role membership set (add_admin, add_treasury_manager,",
5000
+ "add_treasury_executive). `account` is the granted key; `sender` is the admin that authorized it."
5001
+ ];
2774
5002
  "type": {
2775
5003
  "kind": "struct";
2776
5004
  "fields": [
2777
5005
  {
2778
- "name": "caller";
5006
+ "name": "role";
5007
+ "type": {
5008
+ "defined": {
5009
+ "name": "role";
5010
+ };
5011
+ };
5012
+ },
5013
+ {
5014
+ "name": "account";
2779
5015
  "type": "pubkey";
2780
5016
  },
2781
5017
  {
2782
- "name": "depositor";
5018
+ "name": "sender";
2783
5019
  "type": "pubkey";
2784
5020
  },
2785
5021
  {
2786
- "name": "recipient";
5022
+ "name": "slot";
5023
+ "type": "u64";
5024
+ },
5025
+ {
5026
+ "name": "timestamp";
5027
+ "type": "i64";
5028
+ }
5029
+ ];
5030
+ };
5031
+ },
5032
+ {
5033
+ "name": "roleRevoked";
5034
+ "docs": [
5035
+ "Emitted when an account is removed from a role membership set."
5036
+ ];
5037
+ "type": {
5038
+ "kind": "struct";
5039
+ "fields": [
5040
+ {
5041
+ "name": "role";
5042
+ "type": {
5043
+ "defined": {
5044
+ "name": "role";
5045
+ };
5046
+ };
5047
+ },
5048
+ {
5049
+ "name": "account";
2787
5050
  "type": "pubkey";
2788
5051
  },
2789
5052
  {
2790
- "name": "token";
5053
+ "name": "sender";
2791
5054
  "type": "pubkey";
2792
5055
  },
2793
5056
  {
2794
- "name": "amount";
5057
+ "name": "slot";
2795
5058
  "type": "u64";
2796
5059
  },
5060
+ {
5061
+ "name": "timestamp";
5062
+ "type": "i64";
5063
+ }
5064
+ ];
5065
+ };
5066
+ },
5067
+ {
5068
+ "name": "timelockConfig";
5069
+ "docs": [
5070
+ "Global timelock delay applied to all withdrawals unless overridden per-receiver."
5071
+ ];
5072
+ "type": {
5073
+ "kind": "struct";
5074
+ "fields": [
5075
+ {
5076
+ "name": "delaySeconds";
5077
+ "type": "i64";
5078
+ },
5079
+ {
5080
+ "name": "isSet";
5081
+ "type": "bool";
5082
+ }
5083
+ ];
5084
+ };
5085
+ },
5086
+ {
5087
+ "name": "timelockConfiguredEvent";
5088
+ "docs": [
5089
+ "Emitted when the global timelock delay is set."
5090
+ ];
5091
+ "type": {
5092
+ "kind": "struct";
5093
+ "fields": [
5094
+ {
5095
+ "name": "delaySeconds";
5096
+ "type": "i64";
5097
+ },
5098
+ {
5099
+ "name": "sender";
5100
+ "type": "pubkey";
5101
+ },
2797
5102
  {
2798
5103
  "name": "slot";
2799
5104
  "type": "u64";
@@ -2806,26 +5111,64 @@ export type Escrow = {
2806
5111
  };
2807
5112
  },
2808
5113
  {
2809
- "name": "adminWithdraw";
5114
+ "name": "treasuryConfig";
2810
5115
  "type": {
2811
5116
  "kind": "struct";
2812
5117
  "fields": [
2813
5118
  {
2814
- "name": "caller";
2815
- "type": "pubkey";
5119
+ "name": "treasuryManagers";
5120
+ "type": {
5121
+ "vec": "pubkey";
5122
+ };
2816
5123
  },
2817
5124
  {
2818
- "name": "recipient";
2819
- "type": "pubkey";
5125
+ "name": "treasuryExecutives";
5126
+ "type": {
5127
+ "vec": "pubkey";
5128
+ };
2820
5129
  },
2821
5130
  {
2822
- "name": "token";
2823
- "type": "pubkey";
5131
+ "name": "managerThreshold";
5132
+ "type": "u8";
2824
5133
  },
2825
5134
  {
2826
- "name": "amount";
5135
+ "name": "executiveThreshold";
5136
+ "type": "u8";
5137
+ },
5138
+ {
5139
+ "name": "maxFeeDelta";
5140
+ "docs": [
5141
+ "Maximum allowable deduction between committed_amount and net_amount (0 = disabled)"
5142
+ ];
2827
5143
  "type": "u64";
2828
5144
  },
5145
+ {
5146
+ "name": "isInitialized";
5147
+ "type": "bool";
5148
+ }
5149
+ ];
5150
+ };
5151
+ },
5152
+ {
5153
+ "name": "treasuryConfigInitializedEvent";
5154
+ "docs": [
5155
+ "Emitted when the treasury config is first initialized."
5156
+ ];
5157
+ "type": {
5158
+ "kind": "struct";
5159
+ "fields": [
5160
+ {
5161
+ "name": "managerThreshold";
5162
+ "type": "u8";
5163
+ },
5164
+ {
5165
+ "name": "executiveThreshold";
5166
+ "type": "u8";
5167
+ },
5168
+ {
5169
+ "name": "sender";
5170
+ "type": "pubkey";
5171
+ },
2829
5172
  {
2830
5173
  "name": "slot";
2831
5174
  "type": "u64";
@@ -2838,20 +5181,28 @@ export type Escrow = {
2838
5181
  };
2839
5182
  },
2840
5183
  {
2841
- "name": "depositSolEvent";
5184
+ "name": "withdrawNonce";
2842
5185
  "type": {
2843
5186
  "kind": "struct";
2844
5187
  "fields": [
2845
5188
  {
2846
- "name": "caller";
2847
- "type": "pubkey";
2848
- },
5189
+ "name": "nonce";
5190
+ "type": "u64";
5191
+ }
5192
+ ];
5193
+ };
5194
+ },
5195
+ {
5196
+ "name": "withdrawSolEvent";
5197
+ "type": {
5198
+ "kind": "struct";
5199
+ "fields": [
2849
5200
  {
2850
- "name": "depositor";
5201
+ "name": "caller";
2851
5202
  "type": "pubkey";
2852
5203
  },
2853
5204
  {
2854
- "name": "vaultAuthority";
5205
+ "name": "recipient";
2855
5206
  "type": "pubkey";
2856
5207
  },
2857
5208
  {
@@ -2859,8 +5210,8 @@ export type Escrow = {
2859
5210
  "type": "u64";
2860
5211
  },
2861
5212
  {
2862
- "name": "bonusCode";
2863
- "type": "string";
5213
+ "name": "requestId";
5214
+ "type": "u64";
2864
5215
  },
2865
5216
  {
2866
5217
  "name": "slot";
@@ -2874,7 +5225,7 @@ export type Escrow = {
2874
5225
  };
2875
5226
  },
2876
5227
  {
2877
- "name": "depositSplEvent";
5228
+ "name": "withdrawSplEvent";
2878
5229
  "type": {
2879
5230
  "kind": "struct";
2880
5231
  "fields": [
@@ -2883,11 +5234,7 @@ export type Escrow = {
2883
5234
  "type": "pubkey";
2884
5235
  },
2885
5236
  {
2886
- "name": "depositor";
2887
- "type": "pubkey";
2888
- },
2889
- {
2890
- "name": "vaultTokenAccount";
5237
+ "name": "recipient";
2891
5238
  "type": "pubkey";
2892
5239
  },
2893
5240
  {
@@ -2899,8 +5246,8 @@ export type Escrow = {
2899
5246
  "type": "u64";
2900
5247
  },
2901
5248
  {
2902
- "name": "bonusCode";
2903
- "type": "string";
5249
+ "name": "requestId";
5250
+ "type": "u64";
2904
5251
  },
2905
5252
  {
2906
5253
  "name": "slot";
@@ -2914,97 +5261,145 @@ export type Escrow = {
2914
5261
  };
2915
5262
  },
2916
5263
  {
2917
- "name": "escrowConfig";
5264
+ "name": "withdrawalCancelledEvent";
2918
5265
  "type": {
2919
5266
  "kind": "struct";
2920
5267
  "fields": [
2921
5268
  {
2922
- "name": "admin";
2923
- "type": "pubkey";
5269
+ "name": "requestId";
5270
+ "type": "u64";
2924
5271
  },
2925
5272
  {
2926
- "name": "signer";
5273
+ "name": "cancelledBy";
2927
5274
  "type": "pubkey";
2928
5275
  },
2929
5276
  {
2930
- "name": "isInitialized";
2931
- "type": "bool";
5277
+ "name": "slot";
5278
+ "type": "u64";
5279
+ },
5280
+ {
5281
+ "name": "timestamp";
5282
+ "type": "i64";
2932
5283
  }
2933
5284
  ];
2934
5285
  };
2935
5286
  },
2936
5287
  {
2937
- "name": "escrowConfiguration";
2938
- "docs": [
2939
- "Config account holding"
2940
- ];
5288
+ "name": "withdrawalCommitment";
2941
5289
  "type": {
2942
5290
  "kind": "struct";
2943
5291
  "fields": [
2944
5292
  {
2945
- "name": "admins";
2946
- "type": {
2947
- "vec": "pubkey";
2948
- };
5293
+ "name": "requestId";
5294
+ "type": "u64";
2949
5295
  },
2950
5296
  {
2951
- "name": "paymentTokens";
2952
- "type": {
2953
- "vec": "pubkey";
2954
- };
5297
+ "name": "committedAmount";
5298
+ "type": "u64";
2955
5299
  },
2956
5300
  {
2957
- "name": "signer";
5301
+ "name": "netAmount";
5302
+ "type": "u64";
5303
+ },
5304
+ {
5305
+ "name": "recipient";
2958
5306
  "type": "pubkey";
2959
5307
  },
2960
5308
  {
2961
- "name": "fundingWallet";
5309
+ "name": "tokenMint";
5310
+ "docs": [
5311
+ "For SOL withdrawals this is the System Program pubkey."
5312
+ ];
2962
5313
  "type": "pubkey";
2963
5314
  },
2964
5315
  {
2965
- "name": "isInitialized";
2966
- "type": "bool";
5316
+ "name": "executeAt";
5317
+ "type": "i64";
2967
5318
  },
2968
5319
  {
2969
- "name": "isPaused";
5320
+ "name": "creator";
5321
+ "type": "pubkey";
5322
+ },
5323
+ {
5324
+ "name": "isSol";
2970
5325
  "type": "bool";
5326
+ },
5327
+ {
5328
+ "name": "chainId";
5329
+ "type": "u64";
2971
5330
  }
2972
5331
  ];
2973
5332
  };
2974
5333
  },
2975
5334
  {
2976
- "name": "withdrawNonce";
5335
+ "name": "withdrawalExecutedEvent";
2977
5336
  "type": {
2978
5337
  "kind": "struct";
2979
5338
  "fields": [
2980
5339
  {
2981
- "name": "nonce";
5340
+ "name": "requestId";
5341
+ "type": "u64";
5342
+ },
5343
+ {
5344
+ "name": "recipient";
5345
+ "type": "pubkey";
5346
+ },
5347
+ {
5348
+ "name": "netAmount";
5349
+ "type": "u64";
5350
+ },
5351
+ {
5352
+ "name": "tokenMint";
5353
+ "type": "pubkey";
5354
+ },
5355
+ {
5356
+ "name": "isSol";
5357
+ "type": "bool";
5358
+ },
5359
+ {
5360
+ "name": "slot";
2982
5361
  "type": "u64";
5362
+ },
5363
+ {
5364
+ "name": "timestamp";
5365
+ "type": "i64";
2983
5366
  }
2984
5367
  ];
2985
5368
  };
2986
5369
  },
2987
5370
  {
2988
- "name": "withdrawSolEvent";
5371
+ "name": "withdrawalScheduledEvent";
2989
5372
  "type": {
2990
5373
  "kind": "struct";
2991
5374
  "fields": [
2992
5375
  {
2993
- "name": "caller";
2994
- "type": "pubkey";
5376
+ "name": "requestId";
5377
+ "type": "u64";
2995
5378
  },
2996
5379
  {
2997
5380
  "name": "recipient";
2998
5381
  "type": "pubkey";
2999
5382
  },
3000
5383
  {
3001
- "name": "amount";
5384
+ "name": "committedAmount";
3002
5385
  "type": "u64";
3003
5386
  },
3004
5387
  {
3005
- "name": "requestId";
5388
+ "name": "netAmount";
3006
5389
  "type": "u64";
3007
5390
  },
5391
+ {
5392
+ "name": "tokenMint";
5393
+ "type": "pubkey";
5394
+ },
5395
+ {
5396
+ "name": "executeAt";
5397
+ "type": "i64";
5398
+ },
5399
+ {
5400
+ "name": "isSol";
5401
+ "type": "bool";
5402
+ },
3008
5403
  {
3009
5404
  "name": "slot";
3010
5405
  "type": "u64";
@@ -3017,30 +5412,25 @@ export type Escrow = {
3017
5412
  };
3018
5413
  },
3019
5414
  {
3020
- "name": "withdrawSplEvent";
5415
+ "name": "withdrawalThresholdsConfiguredEvent";
5416
+ "docs": [
5417
+ "Emitted when the manager/executive withdrawal thresholds are updated."
5418
+ ];
3021
5419
  "type": {
3022
5420
  "kind": "struct";
3023
5421
  "fields": [
3024
5422
  {
3025
- "name": "caller";
3026
- "type": "pubkey";
5423
+ "name": "managerThreshold";
5424
+ "type": "u8";
3027
5425
  },
3028
5426
  {
3029
- "name": "recipient";
3030
- "type": "pubkey";
5427
+ "name": "executiveThreshold";
5428
+ "type": "u8";
3031
5429
  },
3032
5430
  {
3033
- "name": "mint";
5431
+ "name": "sender";
3034
5432
  "type": "pubkey";
3035
5433
  },
3036
- {
3037
- "name": "amount";
3038
- "type": "u64";
3039
- },
3040
- {
3041
- "name": "requestId";
3042
- "type": "u64";
3043
- },
3044
5434
  {
3045
5435
  "name": "slot";
3046
5436
  "type": "u64";