@ercworldio/blockchain-shared 1.0.5-dev.7 → 1.0.5-dev.7-PROJ-1469.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  {
2
- "address": "Cr1fJwtExaPdYG8huC5axiW2m2knSoTumLzYBj9rMjCd",
2
+ "address": "AAuFzrm6H4Vv7UyJi8R5Gsm4ixtR2yVmqzLmuyUTS5cu",
3
3
  "metadata": {
4
4
  "name": "escrow",
5
5
  "version": "0.1.0",
@@ -392,6 +392,170 @@
392
392
  }
393
393
  ]
394
394
  },
395
+ {
396
+ "name": "add_treasury_executive",
397
+ "discriminator": [
398
+ 189,
399
+ 35,
400
+ 102,
401
+ 15,
402
+ 239,
403
+ 52,
404
+ 121,
405
+ 33
406
+ ],
407
+ "accounts": [
408
+ {
409
+ "name": "escrow_config",
410
+ "pda": {
411
+ "seeds": [
412
+ {
413
+ "kind": "const",
414
+ "value": [
415
+ 101,
416
+ 115,
417
+ 99,
418
+ 114,
419
+ 111,
420
+ 119,
421
+ 45,
422
+ 99,
423
+ 111,
424
+ 110,
425
+ 102,
426
+ 105,
427
+ 103,
428
+ 45,
429
+ 118,
430
+ 50
431
+ ]
432
+ }
433
+ ]
434
+ }
435
+ },
436
+ {
437
+ "name": "treasury_config",
438
+ "writable": true,
439
+ "pda": {
440
+ "seeds": [
441
+ {
442
+ "kind": "const",
443
+ "value": [
444
+ 116,
445
+ 114,
446
+ 101,
447
+ 97,
448
+ 115,
449
+ 117,
450
+ 114,
451
+ 121,
452
+ 45,
453
+ 99,
454
+ 111,
455
+ 110,
456
+ 102,
457
+ 105,
458
+ 103
459
+ ]
460
+ }
461
+ ]
462
+ }
463
+ },
464
+ {
465
+ "name": "admin",
466
+ "writable": true,
467
+ "signer": true
468
+ }
469
+ ],
470
+ "args": [
471
+ {
472
+ "name": "pubkey",
473
+ "type": "pubkey"
474
+ }
475
+ ]
476
+ },
477
+ {
478
+ "name": "add_treasury_manager",
479
+ "discriminator": [
480
+ 154,
481
+ 51,
482
+ 204,
483
+ 205,
484
+ 2,
485
+ 57,
486
+ 52,
487
+ 21
488
+ ],
489
+ "accounts": [
490
+ {
491
+ "name": "escrow_config",
492
+ "pda": {
493
+ "seeds": [
494
+ {
495
+ "kind": "const",
496
+ "value": [
497
+ 101,
498
+ 115,
499
+ 99,
500
+ 114,
501
+ 111,
502
+ 119,
503
+ 45,
504
+ 99,
505
+ 111,
506
+ 110,
507
+ 102,
508
+ 105,
509
+ 103,
510
+ 45,
511
+ 118,
512
+ 50
513
+ ]
514
+ }
515
+ ]
516
+ }
517
+ },
518
+ {
519
+ "name": "treasury_config",
520
+ "writable": true,
521
+ "pda": {
522
+ "seeds": [
523
+ {
524
+ "kind": "const",
525
+ "value": [
526
+ 116,
527
+ 114,
528
+ 101,
529
+ 97,
530
+ 115,
531
+ 117,
532
+ 114,
533
+ 121,
534
+ 45,
535
+ 99,
536
+ 111,
537
+ 110,
538
+ 102,
539
+ 105,
540
+ 103
541
+ ]
542
+ }
543
+ ]
544
+ }
545
+ },
546
+ {
547
+ "name": "admin",
548
+ "writable": true,
549
+ "signer": true
550
+ }
551
+ ],
552
+ "args": [
553
+ {
554
+ "name": "pubkey",
555
+ "type": "pubkey"
556
+ }
557
+ ]
558
+ },
395
559
  {
396
560
  "name": "admin_deposit_sol",
397
561
  "docs": [
@@ -821,6 +985,91 @@
821
985
  }
822
986
  ]
823
987
  },
988
+ {
989
+ "name": "cancel_withdrawal",
990
+ "discriminator": [
991
+ 183,
992
+ 104,
993
+ 181,
994
+ 250,
995
+ 28,
996
+ 128,
997
+ 210,
998
+ 70
999
+ ],
1000
+ "accounts": [
1001
+ {
1002
+ "name": "escrow_config",
1003
+ "pda": {
1004
+ "seeds": [
1005
+ {
1006
+ "kind": "const",
1007
+ "value": [
1008
+ 101,
1009
+ 115,
1010
+ 99,
1011
+ 114,
1012
+ 111,
1013
+ 119,
1014
+ 45,
1015
+ 99,
1016
+ 111,
1017
+ 110,
1018
+ 102,
1019
+ 105,
1020
+ 103,
1021
+ 45,
1022
+ 118,
1023
+ 50
1024
+ ]
1025
+ }
1026
+ ]
1027
+ }
1028
+ },
1029
+ {
1030
+ "name": "commitment",
1031
+ "writable": true,
1032
+ "pda": {
1033
+ "seeds": [
1034
+ {
1035
+ "kind": "const",
1036
+ "value": [
1037
+ 119,
1038
+ 105,
1039
+ 116,
1040
+ 104,
1041
+ 100,
1042
+ 114,
1043
+ 97,
1044
+ 119,
1045
+ 97,
1046
+ 108
1047
+ ]
1048
+ },
1049
+ {
1050
+ "kind": "arg",
1051
+ "path": "request_id"
1052
+ }
1053
+ ]
1054
+ }
1055
+ },
1056
+ {
1057
+ "name": "admin",
1058
+ "writable": true,
1059
+ "signer": true
1060
+ },
1061
+ {
1062
+ "name": "system_program",
1063
+ "address": "11111111111111111111111111111111"
1064
+ }
1065
+ ],
1066
+ "args": [
1067
+ {
1068
+ "name": "request_id",
1069
+ "type": "u64"
1070
+ }
1071
+ ]
1072
+ },
824
1073
  {
825
1074
  "name": "deposit_sol",
826
1075
  "discriminator": [
@@ -1170,51 +1419,98 @@
1170
1419
  ]
1171
1420
  },
1172
1421
  {
1173
- "name": "get_nonce",
1422
+ "name": "execute_withdrawal_sol",
1174
1423
  "discriminator": [
1175
- 132,
1176
- 129,
1177
- 238,
1178
- 76,
1179
- 118,
1180
- 10,
1181
- 212,
1182
- 7
1424
+ 56,
1425
+ 220,
1426
+ 82,
1427
+ 197,
1428
+ 255,
1429
+ 165,
1430
+ 245,
1431
+ 186
1183
1432
  ],
1184
1433
  "accounts": [
1185
1434
  {
1186
- "name": "nonce_account",
1187
- "writable": true,
1435
+ "name": "escrow_config",
1188
1436
  "pda": {
1189
1437
  "seeds": [
1190
1438
  {
1191
1439
  "kind": "const",
1192
1440
  "value": [
1193
- 119,
1194
- 105,
1195
- 116,
1196
- 104,
1197
- 100,
1441
+ 101,
1442
+ 115,
1443
+ 99,
1198
1444
  114,
1199
- 97,
1445
+ 111,
1200
1446
  119,
1201
1447
  45,
1202
- 110,
1448
+ 99,
1203
1449
  111,
1204
1450
  110,
1205
- 99,
1206
- 101
1207
- ]
1208
- },
1451
+ 102,
1452
+ 105,
1453
+ 103,
1454
+ 45,
1455
+ 118,
1456
+ 50
1457
+ ]
1458
+ }
1459
+ ]
1460
+ }
1461
+ },
1462
+ {
1463
+ "name": "commitment",
1464
+ "writable": true,
1465
+ "pda": {
1466
+ "seeds": [
1209
1467
  {
1210
- "kind": "account",
1211
- "path": "user"
1468
+ "kind": "const",
1469
+ "value": [
1470
+ 119,
1471
+ 105,
1472
+ 116,
1473
+ 104,
1474
+ 100,
1475
+ 114,
1476
+ 97,
1477
+ 119,
1478
+ 97,
1479
+ 108
1480
+ ]
1481
+ },
1482
+ {
1483
+ "kind": "arg",
1484
+ "path": "request_id"
1212
1485
  }
1213
1486
  ]
1214
1487
  }
1215
1488
  },
1216
1489
  {
1217
- "name": "user",
1490
+ "name": "vault_authority",
1491
+ "writable": true,
1492
+ "pda": {
1493
+ "seeds": [
1494
+ {
1495
+ "kind": "const",
1496
+ "value": [
1497
+ 101,
1498
+ 115,
1499
+ 99,
1500
+ 114,
1501
+ 111,
1502
+ 119
1503
+ ]
1504
+ }
1505
+ ]
1506
+ }
1507
+ },
1508
+ {
1509
+ "name": "recipient",
1510
+ "writable": true
1511
+ },
1512
+ {
1513
+ "name": "caller",
1218
1514
  "writable": true,
1219
1515
  "signer": true
1220
1516
  },
@@ -1223,133 +1519,1612 @@
1223
1519
  "address": "11111111111111111111111111111111"
1224
1520
  }
1225
1521
  ],
1226
- "args": [],
1227
- "returns": "u64"
1522
+ "args": [
1523
+ {
1524
+ "name": "request_id",
1525
+ "type": "u64"
1526
+ }
1527
+ ]
1228
1528
  },
1229
1529
  {
1230
- "name": "initialize_escrow_config",
1530
+ "name": "execute_withdrawal_spl",
1231
1531
  "discriminator": [
1232
- 59,
1233
- 6,
1234
- 201,
1235
- 67,
1236
- 235,
1237
- 49,
1238
- 169,
1239
- 95
1532
+ 61,
1533
+ 63,
1534
+ 171,
1535
+ 104,
1536
+ 233,
1537
+ 62,
1538
+ 148,
1539
+ 55
1240
1540
  ],
1241
1541
  "accounts": [
1242
1542
  {
1243
- "name": "escrow_config",
1244
- "writable": true,
1543
+ "name": "escrow_config",
1544
+ "pda": {
1545
+ "seeds": [
1546
+ {
1547
+ "kind": "const",
1548
+ "value": [
1549
+ 101,
1550
+ 115,
1551
+ 99,
1552
+ 114,
1553
+ 111,
1554
+ 119,
1555
+ 45,
1556
+ 99,
1557
+ 111,
1558
+ 110,
1559
+ 102,
1560
+ 105,
1561
+ 103,
1562
+ 45,
1563
+ 118,
1564
+ 50
1565
+ ]
1566
+ }
1567
+ ]
1568
+ }
1569
+ },
1570
+ {
1571
+ "name": "commitment",
1572
+ "writable": true,
1573
+ "pda": {
1574
+ "seeds": [
1575
+ {
1576
+ "kind": "const",
1577
+ "value": [
1578
+ 119,
1579
+ 105,
1580
+ 116,
1581
+ 104,
1582
+ 100,
1583
+ 114,
1584
+ 97,
1585
+ 119,
1586
+ 97,
1587
+ 108
1588
+ ]
1589
+ },
1590
+ {
1591
+ "kind": "arg",
1592
+ "path": "request_id"
1593
+ }
1594
+ ]
1595
+ }
1596
+ },
1597
+ {
1598
+ "name": "mint"
1599
+ },
1600
+ {
1601
+ "name": "vault_authority",
1602
+ "pda": {
1603
+ "seeds": [
1604
+ {
1605
+ "kind": "const",
1606
+ "value": [
1607
+ 101,
1608
+ 115,
1609
+ 99,
1610
+ 114,
1611
+ 111,
1612
+ 119
1613
+ ]
1614
+ }
1615
+ ]
1616
+ }
1617
+ },
1618
+ {
1619
+ "name": "vault_token_account",
1620
+ "writable": true,
1621
+ "pda": {
1622
+ "seeds": [
1623
+ {
1624
+ "kind": "account",
1625
+ "path": "vault_authority"
1626
+ },
1627
+ {
1628
+ "kind": "const",
1629
+ "value": [
1630
+ 6,
1631
+ 221,
1632
+ 246,
1633
+ 225,
1634
+ 215,
1635
+ 101,
1636
+ 161,
1637
+ 147,
1638
+ 217,
1639
+ 203,
1640
+ 225,
1641
+ 70,
1642
+ 206,
1643
+ 235,
1644
+ 121,
1645
+ 172,
1646
+ 28,
1647
+ 180,
1648
+ 133,
1649
+ 237,
1650
+ 95,
1651
+ 91,
1652
+ 55,
1653
+ 145,
1654
+ 58,
1655
+ 140,
1656
+ 245,
1657
+ 133,
1658
+ 126,
1659
+ 255,
1660
+ 0,
1661
+ 169
1662
+ ]
1663
+ },
1664
+ {
1665
+ "kind": "account",
1666
+ "path": "mint"
1667
+ }
1668
+ ],
1669
+ "program": {
1670
+ "kind": "const",
1671
+ "value": [
1672
+ 140,
1673
+ 151,
1674
+ 37,
1675
+ 143,
1676
+ 78,
1677
+ 36,
1678
+ 137,
1679
+ 241,
1680
+ 187,
1681
+ 61,
1682
+ 16,
1683
+ 41,
1684
+ 20,
1685
+ 142,
1686
+ 13,
1687
+ 131,
1688
+ 11,
1689
+ 90,
1690
+ 19,
1691
+ 153,
1692
+ 218,
1693
+ 255,
1694
+ 16,
1695
+ 132,
1696
+ 4,
1697
+ 142,
1698
+ 123,
1699
+ 216,
1700
+ 219,
1701
+ 233,
1702
+ 248,
1703
+ 89
1704
+ ]
1705
+ }
1706
+ }
1707
+ },
1708
+ {
1709
+ "name": "recipient"
1710
+ },
1711
+ {
1712
+ "name": "recipient_token_account",
1713
+ "writable": true,
1714
+ "pda": {
1715
+ "seeds": [
1716
+ {
1717
+ "kind": "account",
1718
+ "path": "recipient"
1719
+ },
1720
+ {
1721
+ "kind": "const",
1722
+ "value": [
1723
+ 6,
1724
+ 221,
1725
+ 246,
1726
+ 225,
1727
+ 215,
1728
+ 101,
1729
+ 161,
1730
+ 147,
1731
+ 217,
1732
+ 203,
1733
+ 225,
1734
+ 70,
1735
+ 206,
1736
+ 235,
1737
+ 121,
1738
+ 172,
1739
+ 28,
1740
+ 180,
1741
+ 133,
1742
+ 237,
1743
+ 95,
1744
+ 91,
1745
+ 55,
1746
+ 145,
1747
+ 58,
1748
+ 140,
1749
+ 245,
1750
+ 133,
1751
+ 126,
1752
+ 255,
1753
+ 0,
1754
+ 169
1755
+ ]
1756
+ },
1757
+ {
1758
+ "kind": "account",
1759
+ "path": "mint"
1760
+ }
1761
+ ],
1762
+ "program": {
1763
+ "kind": "const",
1764
+ "value": [
1765
+ 140,
1766
+ 151,
1767
+ 37,
1768
+ 143,
1769
+ 78,
1770
+ 36,
1771
+ 137,
1772
+ 241,
1773
+ 187,
1774
+ 61,
1775
+ 16,
1776
+ 41,
1777
+ 20,
1778
+ 142,
1779
+ 13,
1780
+ 131,
1781
+ 11,
1782
+ 90,
1783
+ 19,
1784
+ 153,
1785
+ 218,
1786
+ 255,
1787
+ 16,
1788
+ 132,
1789
+ 4,
1790
+ 142,
1791
+ 123,
1792
+ 216,
1793
+ 219,
1794
+ 233,
1795
+ 248,
1796
+ 89
1797
+ ]
1798
+ }
1799
+ }
1800
+ },
1801
+ {
1802
+ "name": "caller",
1803
+ "writable": true,
1804
+ "signer": true
1805
+ },
1806
+ {
1807
+ "name": "token_program",
1808
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
1809
+ },
1810
+ {
1811
+ "name": "system_program",
1812
+ "address": "11111111111111111111111111111111"
1813
+ }
1814
+ ],
1815
+ "args": [
1816
+ {
1817
+ "name": "request_id",
1818
+ "type": "u64"
1819
+ }
1820
+ ]
1821
+ },
1822
+ {
1823
+ "name": "get_nonce",
1824
+ "discriminator": [
1825
+ 132,
1826
+ 129,
1827
+ 238,
1828
+ 76,
1829
+ 118,
1830
+ 10,
1831
+ 212,
1832
+ 7
1833
+ ],
1834
+ "accounts": [
1835
+ {
1836
+ "name": "nonce_account",
1837
+ "writable": true,
1838
+ "pda": {
1839
+ "seeds": [
1840
+ {
1841
+ "kind": "const",
1842
+ "value": [
1843
+ 119,
1844
+ 105,
1845
+ 116,
1846
+ 104,
1847
+ 100,
1848
+ 114,
1849
+ 97,
1850
+ 119,
1851
+ 45,
1852
+ 110,
1853
+ 111,
1854
+ 110,
1855
+ 99,
1856
+ 101
1857
+ ]
1858
+ },
1859
+ {
1860
+ "kind": "account",
1861
+ "path": "user"
1862
+ }
1863
+ ]
1864
+ }
1865
+ },
1866
+ {
1867
+ "name": "user",
1868
+ "writable": true,
1869
+ "signer": true
1870
+ },
1871
+ {
1872
+ "name": "system_program",
1873
+ "address": "11111111111111111111111111111111"
1874
+ }
1875
+ ],
1876
+ "args": [],
1877
+ "returns": "u64"
1878
+ },
1879
+ {
1880
+ "name": "initialize_escrow_config",
1881
+ "discriminator": [
1882
+ 59,
1883
+ 6,
1884
+ 201,
1885
+ 67,
1886
+ 235,
1887
+ 49,
1888
+ 169,
1889
+ 95
1890
+ ],
1891
+ "accounts": [
1892
+ {
1893
+ "name": "escrow_config",
1894
+ "writable": true,
1895
+ "pda": {
1896
+ "seeds": [
1897
+ {
1898
+ "kind": "const",
1899
+ "value": [
1900
+ 101,
1901
+ 115,
1902
+ 99,
1903
+ 114,
1904
+ 111,
1905
+ 119,
1906
+ 45,
1907
+ 99,
1908
+ 111,
1909
+ 110,
1910
+ 102,
1911
+ 105,
1912
+ 103,
1913
+ 45,
1914
+ 118,
1915
+ 50
1916
+ ]
1917
+ }
1918
+ ]
1919
+ }
1920
+ },
1921
+ {
1922
+ "name": "admin",
1923
+ "writable": true,
1924
+ "signer": true
1925
+ },
1926
+ {
1927
+ "name": "system_program",
1928
+ "address": "11111111111111111111111111111111"
1929
+ }
1930
+ ],
1931
+ "args": [
1932
+ {
1933
+ "name": "signer_pubkey",
1934
+ "type": "pubkey"
1935
+ },
1936
+ {
1937
+ "name": "funding_pubkey",
1938
+ "type": "pubkey"
1939
+ }
1940
+ ]
1941
+ },
1942
+ {
1943
+ "name": "initialize_treasury_config",
1944
+ "discriminator": [
1945
+ 42,
1946
+ 221,
1947
+ 143,
1948
+ 37,
1949
+ 13,
1950
+ 169,
1951
+ 92,
1952
+ 98
1953
+ ],
1954
+ "accounts": [
1955
+ {
1956
+ "name": "escrow_config",
1957
+ "pda": {
1958
+ "seeds": [
1959
+ {
1960
+ "kind": "const",
1961
+ "value": [
1962
+ 101,
1963
+ 115,
1964
+ 99,
1965
+ 114,
1966
+ 111,
1967
+ 119,
1968
+ 45,
1969
+ 99,
1970
+ 111,
1971
+ 110,
1972
+ 102,
1973
+ 105,
1974
+ 103,
1975
+ 45,
1976
+ 118,
1977
+ 50
1978
+ ]
1979
+ }
1980
+ ]
1981
+ }
1982
+ },
1983
+ {
1984
+ "name": "treasury_config",
1985
+ "writable": true,
1986
+ "pda": {
1987
+ "seeds": [
1988
+ {
1989
+ "kind": "const",
1990
+ "value": [
1991
+ 116,
1992
+ 114,
1993
+ 101,
1994
+ 97,
1995
+ 115,
1996
+ 117,
1997
+ 114,
1998
+ 121,
1999
+ 45,
2000
+ 99,
2001
+ 111,
2002
+ 110,
2003
+ 102,
2004
+ 105,
2005
+ 103
2006
+ ]
2007
+ }
2008
+ ]
2009
+ }
2010
+ },
2011
+ {
2012
+ "name": "admin",
2013
+ "writable": true,
2014
+ "signer": true
2015
+ },
2016
+ {
2017
+ "name": "system_program",
2018
+ "address": "11111111111111111111111111111111"
2019
+ }
2020
+ ],
2021
+ "args": [
2022
+ {
2023
+ "name": "manager_threshold",
2024
+ "type": "u8"
2025
+ },
2026
+ {
2027
+ "name": "executive_threshold",
2028
+ "type": "u8"
2029
+ }
2030
+ ]
2031
+ },
2032
+ {
2033
+ "name": "is_admin_pubkey",
2034
+ "discriminator": [
2035
+ 121,
2036
+ 139,
2037
+ 38,
2038
+ 24,
2039
+ 170,
2040
+ 99,
2041
+ 139,
2042
+ 243
2043
+ ],
2044
+ "accounts": [
2045
+ {
2046
+ "name": "escrow_config",
2047
+ "pda": {
2048
+ "seeds": [
2049
+ {
2050
+ "kind": "const",
2051
+ "value": [
2052
+ 101,
2053
+ 115,
2054
+ 99,
2055
+ 114,
2056
+ 111,
2057
+ 119,
2058
+ 45,
2059
+ 99,
2060
+ 111,
2061
+ 110,
2062
+ 102,
2063
+ 105,
2064
+ 103,
2065
+ 45,
2066
+ 118,
2067
+ 50
2068
+ ]
2069
+ }
2070
+ ]
2071
+ }
2072
+ }
2073
+ ],
2074
+ "args": [
2075
+ {
2076
+ "name": "account",
2077
+ "type": "pubkey"
2078
+ }
2079
+ ],
2080
+ "returns": "bool"
2081
+ },
2082
+ {
2083
+ "name": "is_funding_pubkey",
2084
+ "discriminator": [
2085
+ 252,
2086
+ 56,
2087
+ 255,
2088
+ 21,
2089
+ 13,
2090
+ 63,
2091
+ 211,
2092
+ 163
2093
+ ],
2094
+ "accounts": [
2095
+ {
2096
+ "name": "escrow_config",
2097
+ "pda": {
2098
+ "seeds": [
2099
+ {
2100
+ "kind": "const",
2101
+ "value": [
2102
+ 101,
2103
+ 115,
2104
+ 99,
2105
+ 114,
2106
+ 111,
2107
+ 119,
2108
+ 45,
2109
+ 99,
2110
+ 111,
2111
+ 110,
2112
+ 102,
2113
+ 105,
2114
+ 103,
2115
+ 45,
2116
+ 118,
2117
+ 50
2118
+ ]
2119
+ }
2120
+ ]
2121
+ }
2122
+ }
2123
+ ],
2124
+ "args": [
2125
+ {
2126
+ "name": "account",
2127
+ "type": "pubkey"
2128
+ }
2129
+ ],
2130
+ "returns": "bool"
2131
+ },
2132
+ {
2133
+ "name": "is_initialized_config",
2134
+ "discriminator": [
2135
+ 113,
2136
+ 162,
2137
+ 133,
2138
+ 92,
2139
+ 161,
2140
+ 73,
2141
+ 200,
2142
+ 232
2143
+ ],
2144
+ "accounts": [
2145
+ {
2146
+ "name": "escrow_config",
2147
+ "pda": {
2148
+ "seeds": [
2149
+ {
2150
+ "kind": "const",
2151
+ "value": [
2152
+ 101,
2153
+ 115,
2154
+ 99,
2155
+ 114,
2156
+ 111,
2157
+ 119,
2158
+ 45,
2159
+ 99,
2160
+ 111,
2161
+ 110,
2162
+ 102,
2163
+ 105,
2164
+ 103,
2165
+ 45,
2166
+ 118,
2167
+ 50
2168
+ ]
2169
+ }
2170
+ ]
2171
+ }
2172
+ }
2173
+ ],
2174
+ "args": [],
2175
+ "returns": "bool"
2176
+ },
2177
+ {
2178
+ "name": "is_payment_token",
2179
+ "discriminator": [
2180
+ 103,
2181
+ 61,
2182
+ 217,
2183
+ 183,
2184
+ 71,
2185
+ 112,
2186
+ 38,
2187
+ 108
2188
+ ],
2189
+ "accounts": [
2190
+ {
2191
+ "name": "escrow_config",
2192
+ "pda": {
2193
+ "seeds": [
2194
+ {
2195
+ "kind": "const",
2196
+ "value": [
2197
+ 101,
2198
+ 115,
2199
+ 99,
2200
+ 114,
2201
+ 111,
2202
+ 119,
2203
+ 45,
2204
+ 99,
2205
+ 111,
2206
+ 110,
2207
+ 102,
2208
+ 105,
2209
+ 103,
2210
+ 45,
2211
+ 118,
2212
+ 50
2213
+ ]
2214
+ }
2215
+ ]
2216
+ }
2217
+ }
2218
+ ],
2219
+ "args": [
2220
+ {
2221
+ "name": "token",
2222
+ "type": "pubkey"
2223
+ }
2224
+ ],
2225
+ "returns": "bool"
2226
+ },
2227
+ {
2228
+ "name": "migrate_escrow_config",
2229
+ "discriminator": [
2230
+ 221,
2231
+ 224,
2232
+ 135,
2233
+ 120,
2234
+ 28,
2235
+ 10,
2236
+ 75,
2237
+ 20
2238
+ ],
2239
+ "accounts": [
2240
+ {
2241
+ "name": "escrow_config",
2242
+ "docs": [
2243
+ "Old account (smaller)"
2244
+ ],
2245
+ "writable": true,
2246
+ "pda": {
2247
+ "seeds": [
2248
+ {
2249
+ "kind": "const",
2250
+ "value": [
2251
+ 101,
2252
+ 115,
2253
+ 99,
2254
+ 114,
2255
+ 111,
2256
+ 119,
2257
+ 45,
2258
+ 99,
2259
+ 111,
2260
+ 110,
2261
+ 102,
2262
+ 105,
2263
+ 103
2264
+ ]
2265
+ }
2266
+ ]
2267
+ }
2268
+ },
2269
+ {
2270
+ "name": "new_escrow_config",
2271
+ "docs": [
2272
+ "New account with more space"
2273
+ ],
2274
+ "writable": true,
2275
+ "pda": {
2276
+ "seeds": [
2277
+ {
2278
+ "kind": "const",
2279
+ "value": [
2280
+ 101,
2281
+ 115,
2282
+ 99,
2283
+ 114,
2284
+ 111,
2285
+ 119,
2286
+ 45,
2287
+ 99,
2288
+ 111,
2289
+ 110,
2290
+ 102,
2291
+ 105,
2292
+ 103,
2293
+ 45,
2294
+ 118,
2295
+ 50
2296
+ ]
2297
+ }
2298
+ ]
2299
+ }
2300
+ },
2301
+ {
2302
+ "name": "admin",
2303
+ "writable": true,
2304
+ "signer": true
2305
+ },
2306
+ {
2307
+ "name": "system_program",
2308
+ "address": "11111111111111111111111111111111"
2309
+ }
2310
+ ],
2311
+ "args": [
2312
+ {
2313
+ "name": "admins",
2314
+ "type": {
2315
+ "vec": "pubkey"
2316
+ }
2317
+ },
2318
+ {
2319
+ "name": "payment_tokens",
2320
+ "type": {
2321
+ "vec": "pubkey"
2322
+ }
2323
+ },
2324
+ {
2325
+ "name": "funding_wallet",
2326
+ "type": "pubkey"
2327
+ }
2328
+ ]
2329
+ },
2330
+ {
2331
+ "name": "pause_program",
2332
+ "discriminator": [
2333
+ 91,
2334
+ 86,
2335
+ 253,
2336
+ 175,
2337
+ 66,
2338
+ 236,
2339
+ 172,
2340
+ 124
2341
+ ],
2342
+ "accounts": [
2343
+ {
2344
+ "name": "escrow_config",
2345
+ "writable": true,
2346
+ "pda": {
2347
+ "seeds": [
2348
+ {
2349
+ "kind": "const",
2350
+ "value": [
2351
+ 101,
2352
+ 115,
2353
+ 99,
2354
+ 114,
2355
+ 111,
2356
+ 119,
2357
+ 45,
2358
+ 99,
2359
+ 111,
2360
+ 110,
2361
+ 102,
2362
+ 105,
2363
+ 103,
2364
+ 45,
2365
+ 118,
2366
+ 50
2367
+ ]
2368
+ }
2369
+ ]
2370
+ }
2371
+ },
2372
+ {
2373
+ "name": "admin",
2374
+ "writable": true,
2375
+ "signer": true
2376
+ },
2377
+ {
2378
+ "name": "system_program",
2379
+ "address": "11111111111111111111111111111111"
2380
+ }
2381
+ ],
2382
+ "args": [
2383
+ {
2384
+ "name": "target_state",
2385
+ "type": "bool"
2386
+ }
2387
+ ]
2388
+ },
2389
+ {
2390
+ "name": "remove_admin",
2391
+ "discriminator": [
2392
+ 74,
2393
+ 202,
2394
+ 71,
2395
+ 106,
2396
+ 252,
2397
+ 31,
2398
+ 72,
2399
+ 183
2400
+ ],
2401
+ "accounts": [
2402
+ {
2403
+ "name": "escrow_config",
2404
+ "writable": true,
2405
+ "pda": {
2406
+ "seeds": [
2407
+ {
2408
+ "kind": "const",
2409
+ "value": [
2410
+ 101,
2411
+ 115,
2412
+ 99,
2413
+ 114,
2414
+ 111,
2415
+ 119,
2416
+ 45,
2417
+ 99,
2418
+ 111,
2419
+ 110,
2420
+ 102,
2421
+ 105,
2422
+ 103,
2423
+ 45,
2424
+ 118,
2425
+ 50
2426
+ ]
2427
+ }
2428
+ ]
2429
+ }
2430
+ },
2431
+ {
2432
+ "name": "admin",
2433
+ "writable": true,
2434
+ "signer": true
2435
+ }
2436
+ ],
2437
+ "args": [
2438
+ {
2439
+ "name": "account",
2440
+ "type": "pubkey"
2441
+ }
2442
+ ]
2443
+ },
2444
+ {
2445
+ "name": "remove_payment_token",
2446
+ "discriminator": [
2447
+ 119,
2448
+ 18,
2449
+ 240,
2450
+ 223,
2451
+ 126,
2452
+ 168,
2453
+ 165,
2454
+ 117
2455
+ ],
2456
+ "accounts": [
2457
+ {
2458
+ "name": "escrow_config",
2459
+ "writable": true,
2460
+ "pda": {
2461
+ "seeds": [
2462
+ {
2463
+ "kind": "const",
2464
+ "value": [
2465
+ 101,
2466
+ 115,
2467
+ 99,
2468
+ 114,
2469
+ 111,
2470
+ 119,
2471
+ 45,
2472
+ 99,
2473
+ 111,
2474
+ 110,
2475
+ 102,
2476
+ 105,
2477
+ 103,
2478
+ 45,
2479
+ 118,
2480
+ 50
2481
+ ]
2482
+ }
2483
+ ]
2484
+ }
2485
+ },
2486
+ {
2487
+ "name": "admin",
2488
+ "writable": true,
2489
+ "signer": true
2490
+ }
2491
+ ],
2492
+ "args": [
2493
+ {
2494
+ "name": "token_mint",
2495
+ "type": "pubkey"
2496
+ }
2497
+ ]
2498
+ },
2499
+ {
2500
+ "name": "remove_token_from_escrow",
2501
+ "docs": [
2502
+ "Admin Withdraw SPL tokens"
2503
+ ],
2504
+ "discriminator": [
2505
+ 42,
2506
+ 189,
2507
+ 194,
2508
+ 61,
2509
+ 110,
2510
+ 149,
2511
+ 83,
2512
+ 126
2513
+ ],
2514
+ "accounts": [
2515
+ {
2516
+ "name": "escrow_config",
2517
+ "pda": {
2518
+ "seeds": [
2519
+ {
2520
+ "kind": "const",
2521
+ "value": [
2522
+ 101,
2523
+ 115,
2524
+ 99,
2525
+ 114,
2526
+ 111,
2527
+ 119,
2528
+ 45,
2529
+ 99,
2530
+ 111,
2531
+ 110,
2532
+ 102,
2533
+ 105,
2534
+ 103,
2535
+ 45,
2536
+ 118,
2537
+ 50
2538
+ ]
2539
+ }
2540
+ ]
2541
+ }
2542
+ },
2543
+ {
2544
+ "name": "mint"
2545
+ },
2546
+ {
2547
+ "name": "admin",
2548
+ "writable": true,
2549
+ "signer": true
2550
+ },
2551
+ {
2552
+ "name": "vault_authority",
2553
+ "writable": true,
2554
+ "pda": {
2555
+ "seeds": [
2556
+ {
2557
+ "kind": "const",
2558
+ "value": [
2559
+ 101,
2560
+ 115,
2561
+ 99,
2562
+ 114,
2563
+ 111,
2564
+ 119
2565
+ ]
2566
+ }
2567
+ ]
2568
+ }
2569
+ },
2570
+ {
2571
+ "name": "vault_token_account",
2572
+ "writable": true,
2573
+ "pda": {
2574
+ "seeds": [
2575
+ {
2576
+ "kind": "account",
2577
+ "path": "vault_authority"
2578
+ },
2579
+ {
2580
+ "kind": "const",
2581
+ "value": [
2582
+ 6,
2583
+ 221,
2584
+ 246,
2585
+ 225,
2586
+ 215,
2587
+ 101,
2588
+ 161,
2589
+ 147,
2590
+ 217,
2591
+ 203,
2592
+ 225,
2593
+ 70,
2594
+ 206,
2595
+ 235,
2596
+ 121,
2597
+ 172,
2598
+ 28,
2599
+ 180,
2600
+ 133,
2601
+ 237,
2602
+ 95,
2603
+ 91,
2604
+ 55,
2605
+ 145,
2606
+ 58,
2607
+ 140,
2608
+ 245,
2609
+ 133,
2610
+ 126,
2611
+ 255,
2612
+ 0,
2613
+ 169
2614
+ ]
2615
+ },
2616
+ {
2617
+ "kind": "account",
2618
+ "path": "mint"
2619
+ }
2620
+ ],
2621
+ "program": {
2622
+ "kind": "const",
2623
+ "value": [
2624
+ 140,
2625
+ 151,
2626
+ 37,
2627
+ 143,
2628
+ 78,
2629
+ 36,
2630
+ 137,
2631
+ 241,
2632
+ 187,
2633
+ 61,
2634
+ 16,
2635
+ 41,
2636
+ 20,
2637
+ 142,
2638
+ 13,
2639
+ 131,
2640
+ 11,
2641
+ 90,
2642
+ 19,
2643
+ 153,
2644
+ 218,
2645
+ 255,
2646
+ 16,
2647
+ 132,
2648
+ 4,
2649
+ 142,
2650
+ 123,
2651
+ 216,
2652
+ 219,
2653
+ 233,
2654
+ 248,
2655
+ 89
2656
+ ]
2657
+ }
2658
+ }
2659
+ },
2660
+ {
2661
+ "name": "destination_token_account",
2662
+ "writable": true,
2663
+ "pda": {
2664
+ "seeds": [
2665
+ {
2666
+ "kind": "account",
2667
+ "path": "admin"
2668
+ },
2669
+ {
2670
+ "kind": "const",
2671
+ "value": [
2672
+ 6,
2673
+ 221,
2674
+ 246,
2675
+ 225,
2676
+ 215,
2677
+ 101,
2678
+ 161,
2679
+ 147,
2680
+ 217,
2681
+ 203,
2682
+ 225,
2683
+ 70,
2684
+ 206,
2685
+ 235,
2686
+ 121,
2687
+ 172,
2688
+ 28,
2689
+ 180,
2690
+ 133,
2691
+ 237,
2692
+ 95,
2693
+ 91,
2694
+ 55,
2695
+ 145,
2696
+ 58,
2697
+ 140,
2698
+ 245,
2699
+ 133,
2700
+ 126,
2701
+ 255,
2702
+ 0,
2703
+ 169
2704
+ ]
2705
+ },
2706
+ {
2707
+ "kind": "account",
2708
+ "path": "mint"
2709
+ }
2710
+ ],
2711
+ "program": {
2712
+ "kind": "const",
2713
+ "value": [
2714
+ 140,
2715
+ 151,
2716
+ 37,
2717
+ 143,
2718
+ 78,
2719
+ 36,
2720
+ 137,
2721
+ 241,
2722
+ 187,
2723
+ 61,
2724
+ 16,
2725
+ 41,
2726
+ 20,
2727
+ 142,
2728
+ 13,
2729
+ 131,
2730
+ 11,
2731
+ 90,
2732
+ 19,
2733
+ 153,
2734
+ 218,
2735
+ 255,
2736
+ 16,
2737
+ 132,
2738
+ 4,
2739
+ 142,
2740
+ 123,
2741
+ 216,
2742
+ 219,
2743
+ 233,
2744
+ 248,
2745
+ 89
2746
+ ]
2747
+ }
2748
+ }
2749
+ },
2750
+ {
2751
+ "name": "token_program",
2752
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
2753
+ }
2754
+ ],
2755
+ "args": [
2756
+ {
2757
+ "name": "amount",
2758
+ "type": "u64"
2759
+ }
2760
+ ]
2761
+ },
2762
+ {
2763
+ "name": "remove_treasury_executive",
2764
+ "discriminator": [
2765
+ 147,
2766
+ 53,
2767
+ 215,
2768
+ 158,
2769
+ 215,
2770
+ 195,
2771
+ 139,
2772
+ 26
2773
+ ],
2774
+ "accounts": [
2775
+ {
2776
+ "name": "escrow_config",
2777
+ "pda": {
2778
+ "seeds": [
2779
+ {
2780
+ "kind": "const",
2781
+ "value": [
2782
+ 101,
2783
+ 115,
2784
+ 99,
2785
+ 114,
2786
+ 111,
2787
+ 119,
2788
+ 45,
2789
+ 99,
2790
+ 111,
2791
+ 110,
2792
+ 102,
2793
+ 105,
2794
+ 103,
2795
+ 45,
2796
+ 118,
2797
+ 50
2798
+ ]
2799
+ }
2800
+ ]
2801
+ }
2802
+ },
2803
+ {
2804
+ "name": "treasury_config",
2805
+ "writable": true,
2806
+ "pda": {
2807
+ "seeds": [
2808
+ {
2809
+ "kind": "const",
2810
+ "value": [
2811
+ 116,
2812
+ 114,
2813
+ 101,
2814
+ 97,
2815
+ 115,
2816
+ 117,
2817
+ 114,
2818
+ 121,
2819
+ 45,
2820
+ 99,
2821
+ 111,
2822
+ 110,
2823
+ 102,
2824
+ 105,
2825
+ 103
2826
+ ]
2827
+ }
2828
+ ]
2829
+ }
2830
+ },
2831
+ {
2832
+ "name": "admin",
2833
+ "writable": true,
2834
+ "signer": true
2835
+ }
2836
+ ],
2837
+ "args": [
2838
+ {
2839
+ "name": "pubkey",
2840
+ "type": "pubkey"
2841
+ }
2842
+ ]
2843
+ },
2844
+ {
2845
+ "name": "remove_treasury_manager",
2846
+ "discriminator": [
2847
+ 82,
2848
+ 21,
2849
+ 184,
2850
+ 234,
2851
+ 157,
2852
+ 232,
2853
+ 48,
2854
+ 70
2855
+ ],
2856
+ "accounts": [
2857
+ {
2858
+ "name": "escrow_config",
2859
+ "pda": {
2860
+ "seeds": [
2861
+ {
2862
+ "kind": "const",
2863
+ "value": [
2864
+ 101,
2865
+ 115,
2866
+ 99,
2867
+ 114,
2868
+ 111,
2869
+ 119,
2870
+ 45,
2871
+ 99,
2872
+ 111,
2873
+ 110,
2874
+ 102,
2875
+ 105,
2876
+ 103,
2877
+ 45,
2878
+ 118,
2879
+ 50
2880
+ ]
2881
+ }
2882
+ ]
2883
+ }
2884
+ },
2885
+ {
2886
+ "name": "treasury_config",
2887
+ "writable": true,
2888
+ "pda": {
2889
+ "seeds": [
2890
+ {
2891
+ "kind": "const",
2892
+ "value": [
2893
+ 116,
2894
+ 114,
2895
+ 101,
2896
+ 97,
2897
+ 115,
2898
+ 117,
2899
+ 114,
2900
+ 121,
2901
+ 45,
2902
+ 99,
2903
+ 111,
2904
+ 110,
2905
+ 102,
2906
+ 105,
2907
+ 103
2908
+ ]
2909
+ }
2910
+ ]
2911
+ }
2912
+ },
2913
+ {
2914
+ "name": "admin",
2915
+ "writable": true,
2916
+ "signer": true
2917
+ }
2918
+ ],
2919
+ "args": [
2920
+ {
2921
+ "name": "pubkey",
2922
+ "type": "pubkey"
2923
+ }
2924
+ ]
2925
+ },
2926
+ {
2927
+ "name": "schedule_withdrawal_sol",
2928
+ "discriminator": [
2929
+ 41,
2930
+ 253,
2931
+ 139,
2932
+ 251,
2933
+ 39,
2934
+ 160,
2935
+ 13,
2936
+ 135
2937
+ ],
2938
+ "accounts": [
2939
+ {
2940
+ "name": "escrow_config",
2941
+ "pda": {
2942
+ "seeds": [
2943
+ {
2944
+ "kind": "const",
2945
+ "value": [
2946
+ 101,
2947
+ 115,
2948
+ 99,
2949
+ 114,
2950
+ 111,
2951
+ 119,
2952
+ 45,
2953
+ 99,
2954
+ 111,
2955
+ 110,
2956
+ 102,
2957
+ 105,
2958
+ 103,
2959
+ 45,
2960
+ 118,
2961
+ 50
2962
+ ]
2963
+ }
2964
+ ]
2965
+ }
2966
+ },
2967
+ {
2968
+ "name": "treasury_config",
2969
+ "pda": {
2970
+ "seeds": [
2971
+ {
2972
+ "kind": "const",
2973
+ "value": [
2974
+ 116,
2975
+ 114,
2976
+ 101,
2977
+ 97,
2978
+ 115,
2979
+ 117,
2980
+ 114,
2981
+ 121,
2982
+ 45,
2983
+ 99,
2984
+ 111,
2985
+ 110,
2986
+ 102,
2987
+ 105,
2988
+ 103
2989
+ ]
2990
+ }
2991
+ ]
2992
+ }
2993
+ },
2994
+ {
2995
+ "name": "commitment",
2996
+ "writable": true,
2997
+ "pda": {
2998
+ "seeds": [
2999
+ {
3000
+ "kind": "const",
3001
+ "value": [
3002
+ 119,
3003
+ 105,
3004
+ 116,
3005
+ 104,
3006
+ 100,
3007
+ 114,
3008
+ 97,
3009
+ 119,
3010
+ 97,
3011
+ 108
3012
+ ]
3013
+ },
3014
+ {
3015
+ "kind": "arg",
3016
+ "path": "request_id"
3017
+ }
3018
+ ]
3019
+ }
3020
+ },
3021
+ {
3022
+ "name": "timelock_config",
1245
3023
  "pda": {
1246
3024
  "seeds": [
1247
3025
  {
1248
3026
  "kind": "const",
1249
3027
  "value": [
3028
+ 116,
3029
+ 105,
3030
+ 109,
1250
3031
  101,
1251
- 115,
1252
- 99,
1253
- 114,
3032
+ 108,
1254
3033
  111,
1255
- 119,
3034
+ 99,
3035
+ 107,
1256
3036
  45,
1257
3037
  99,
1258
3038
  111,
1259
3039
  110,
1260
3040
  102,
1261
3041
  105,
1262
- 103,
1263
- 45,
1264
- 118,
1265
- 50
3042
+ 103
1266
3043
  ]
1267
3044
  }
1268
3045
  ]
1269
3046
  }
1270
3047
  },
1271
3048
  {
1272
- "name": "admin",
1273
- "writable": true,
1274
- "signer": true
1275
- },
1276
- {
1277
- "name": "system_program",
1278
- "address": "11111111111111111111111111111111"
1279
- }
1280
- ],
1281
- "args": [
1282
- {
1283
- "name": "signer_pubkey",
1284
- "type": "pubkey"
1285
- },
1286
- {
1287
- "name": "funding_pubkey",
1288
- "type": "pubkey"
1289
- }
1290
- ]
1291
- },
1292
- {
1293
- "name": "is_admin_pubkey",
1294
- "discriminator": [
1295
- 121,
1296
- 139,
1297
- 38,
1298
- 24,
1299
- 170,
1300
- 99,
1301
- 139,
1302
- 243
1303
- ],
1304
- "accounts": [
1305
- {
1306
- "name": "escrow_config",
3049
+ "name": "receiver_timelock_config",
1307
3050
  "pda": {
1308
3051
  "seeds": [
1309
3052
  {
1310
3053
  "kind": "const",
1311
3054
  "value": [
3055
+ 114,
1312
3056
  101,
1313
- 115,
1314
3057
  99,
3058
+ 101,
3059
+ 105,
3060
+ 118,
3061
+ 101,
1315
3062
  114,
1316
- 111,
1317
- 119,
1318
3063
  45,
1319
- 99,
1320
- 111,
1321
- 110,
1322
- 102,
3064
+ 116,
1323
3065
  105,
1324
- 103,
1325
- 45,
1326
- 118,
1327
- 50
3066
+ 109,
3067
+ 101,
3068
+ 108,
3069
+ 111,
3070
+ 99,
3071
+ 107
1328
3072
  ]
3073
+ },
3074
+ {
3075
+ "kind": "account",
3076
+ "path": "recipient"
1329
3077
  }
1330
3078
  ]
1331
3079
  }
3080
+ },
3081
+ {
3082
+ "name": "recipient"
3083
+ },
3084
+ {
3085
+ "name": "caller",
3086
+ "writable": true,
3087
+ "signer": true
3088
+ },
3089
+ {
3090
+ "name": "system_program",
3091
+ "address": "11111111111111111111111111111111"
3092
+ },
3093
+ {
3094
+ "name": "instructions",
3095
+ "address": "Sysvar1nstructions1111111111111111111111111"
1332
3096
  }
1333
3097
  ],
1334
3098
  "args": [
1335
3099
  {
1336
- "name": "account",
1337
- "type": "pubkey"
3100
+ "name": "request_id",
3101
+ "type": "u64"
3102
+ },
3103
+ {
3104
+ "name": "committed_amount",
3105
+ "type": "u64"
3106
+ },
3107
+ {
3108
+ "name": "net_amount",
3109
+ "type": "u64"
3110
+ },
3111
+ {
3112
+ "name": "chain_id",
3113
+ "type": "u64"
1338
3114
  }
1339
- ],
1340
- "returns": "bool"
3115
+ ]
1341
3116
  },
1342
3117
  {
1343
- "name": "is_funding_pubkey",
3118
+ "name": "schedule_withdrawal_spl",
1344
3119
  "discriminator": [
1345
- 252,
1346
- 56,
1347
- 255,
1348
- 21,
1349
- 13,
1350
- 63,
1351
- 211,
1352
- 163
3120
+ 95,
3121
+ 68,
3122
+ 202,
3123
+ 149,
3124
+ 66,
3125
+ 113,
3126
+ 28,
3127
+ 201
1353
3128
  ],
1354
3129
  "accounts": [
1355
3130
  {
@@ -1379,141 +3154,76 @@
1379
3154
  }
1380
3155
  ]
1381
3156
  }
1382
- }
1383
- ],
1384
- "args": [
1385
- {
1386
- "name": "account",
1387
- "type": "pubkey"
1388
- }
1389
- ],
1390
- "returns": "bool"
1391
- },
1392
- {
1393
- "name": "is_initialized_config",
1394
- "discriminator": [
1395
- 113,
1396
- 162,
1397
- 133,
1398
- 92,
1399
- 161,
1400
- 73,
1401
- 200,
1402
- 232
1403
- ],
1404
- "accounts": [
3157
+ },
1405
3158
  {
1406
- "name": "escrow_config",
3159
+ "name": "treasury_config",
1407
3160
  "pda": {
1408
3161
  "seeds": [
1409
3162
  {
1410
3163
  "kind": "const",
1411
3164
  "value": [
3165
+ 116,
3166
+ 114,
1412
3167
  101,
3168
+ 97,
1413
3169
  115,
1414
- 99,
3170
+ 117,
1415
3171
  114,
1416
- 111,
1417
- 119,
3172
+ 121,
1418
3173
  45,
1419
3174
  99,
1420
3175
  111,
1421
3176
  110,
1422
3177
  102,
1423
3178
  105,
1424
- 103,
1425
- 45,
1426
- 118,
1427
- 50
3179
+ 103
1428
3180
  ]
1429
3181
  }
1430
3182
  ]
1431
3183
  }
1432
- }
1433
- ],
1434
- "args": [],
1435
- "returns": "bool"
1436
- },
1437
- {
1438
- "name": "is_payment_token",
1439
- "discriminator": [
1440
- 103,
1441
- 61,
1442
- 217,
1443
- 183,
1444
- 71,
1445
- 112,
1446
- 38,
1447
- 108
1448
- ],
1449
- "accounts": [
3184
+ },
1450
3185
  {
1451
- "name": "escrow_config",
3186
+ "name": "commitment",
3187
+ "writable": true,
1452
3188
  "pda": {
1453
3189
  "seeds": [
1454
3190
  {
1455
3191
  "kind": "const",
1456
3192
  "value": [
1457
- 101,
1458
- 115,
1459
- 99,
1460
- 114,
1461
- 111,
1462
3193
  119,
1463
- 45,
1464
- 99,
1465
- 111,
1466
- 110,
1467
- 102,
1468
3194
  105,
1469
- 103,
1470
- 45,
1471
- 118,
1472
- 50
3195
+ 116,
3196
+ 104,
3197
+ 100,
3198
+ 114,
3199
+ 97,
3200
+ 119,
3201
+ 97,
3202
+ 108
1473
3203
  ]
3204
+ },
3205
+ {
3206
+ "kind": "arg",
3207
+ "path": "request_id"
1474
3208
  }
1475
3209
  ]
1476
3210
  }
1477
- }
1478
- ],
1479
- "args": [
1480
- {
1481
- "name": "token",
1482
- "type": "pubkey"
1483
- }
1484
- ],
1485
- "returns": "bool"
1486
- },
1487
- {
1488
- "name": "migrate_escrow_config",
1489
- "discriminator": [
1490
- 221,
1491
- 224,
1492
- 135,
1493
- 120,
1494
- 28,
1495
- 10,
1496
- 75,
1497
- 20
1498
- ],
1499
- "accounts": [
3211
+ },
1500
3212
  {
1501
- "name": "escrow_config",
1502
- "docs": [
1503
- "Old account (smaller)"
1504
- ],
1505
- "writable": true,
3213
+ "name": "timelock_config",
1506
3214
  "pda": {
1507
3215
  "seeds": [
1508
3216
  {
1509
3217
  "kind": "const",
1510
3218
  "value": [
3219
+ 116,
3220
+ 105,
3221
+ 109,
1511
3222
  101,
1512
- 115,
1513
- 99,
1514
- 114,
3223
+ 108,
1515
3224
  111,
1516
- 119,
3225
+ 99,
3226
+ 107,
1517
3227
  45,
1518
3228
  99,
1519
3229
  111,
@@ -1527,77 +3237,91 @@
1527
3237
  }
1528
3238
  },
1529
3239
  {
1530
- "name": "new_escrow_config",
1531
- "docs": [
1532
- "New account with more space"
1533
- ],
1534
- "writable": true,
3240
+ "name": "receiver_timelock_config",
1535
3241
  "pda": {
1536
3242
  "seeds": [
1537
3243
  {
1538
3244
  "kind": "const",
1539
3245
  "value": [
1540
- 101,
1541
- 115,
1542
- 99,
1543
3246
  114,
1544
- 111,
1545
- 119,
1546
- 45,
3247
+ 101,
1547
3248
  99,
1548
- 111,
1549
- 110,
1550
- 102,
3249
+ 101,
1551
3250
  105,
1552
- 103,
1553
- 45,
1554
3251
  118,
1555
- 50
3252
+ 101,
3253
+ 114,
3254
+ 45,
3255
+ 116,
3256
+ 105,
3257
+ 109,
3258
+ 101,
3259
+ 108,
3260
+ 111,
3261
+ 99,
3262
+ 107
1556
3263
  ]
3264
+ },
3265
+ {
3266
+ "kind": "account",
3267
+ "path": "recipient"
1557
3268
  }
1558
3269
  ]
1559
3270
  }
1560
3271
  },
1561
3272
  {
1562
- "name": "admin",
3273
+ "name": "mint",
3274
+ "docs": [
3275
+ "The SPL token mint — determines which token is being withdrawn"
3276
+ ]
3277
+ },
3278
+ {
3279
+ "name": "recipient"
3280
+ },
3281
+ {
3282
+ "name": "caller",
1563
3283
  "writable": true,
1564
3284
  "signer": true
1565
3285
  },
1566
3286
  {
1567
3287
  "name": "system_program",
1568
3288
  "address": "11111111111111111111111111111111"
3289
+ },
3290
+ {
3291
+ "name": "instructions",
3292
+ "address": "Sysvar1nstructions1111111111111111111111111"
1569
3293
  }
1570
3294
  ],
1571
3295
  "args": [
1572
3296
  {
1573
- "name": "admins",
1574
- "type": {
1575
- "vec": "pubkey"
1576
- }
3297
+ "name": "request_id",
3298
+ "type": "u64"
1577
3299
  },
1578
3300
  {
1579
- "name": "payment_tokens",
1580
- "type": {
1581
- "vec": "pubkey"
1582
- }
3301
+ "name": "committed_amount",
3302
+ "type": "u64"
1583
3303
  },
1584
3304
  {
1585
- "name": "funding_wallet",
1586
- "type": "pubkey"
3305
+ "name": "net_amount",
3306
+ "type": "u64"
3307
+ },
3308
+ {
3309
+ "name": "chain_id",
3310
+ "type": "u64"
1587
3311
  }
1588
3312
  ]
1589
3313
  },
1590
3314
  {
1591
- "name": "pause_program",
3315
+ "name": "set_admin",
1592
3316
  "discriminator": [
3317
+ 251,
3318
+ 163,
3319
+ 0,
3320
+ 52,
1593
3321
  91,
1594
- 86,
1595
- 253,
1596
- 175,
1597
- 66,
1598
- 236,
1599
- 172,
1600
- 124
3322
+ 194,
3323
+ 187,
3324
+ 92
1601
3325
  ],
1602
3326
  "accounts": [
1603
3327
  {
@@ -1631,32 +3355,27 @@
1631
3355
  },
1632
3356
  {
1633
3357
  "name": "admin",
1634
- "writable": true,
1635
3358
  "signer": true
1636
- },
1637
- {
1638
- "name": "system_program",
1639
- "address": "11111111111111111111111111111111"
1640
3359
  }
1641
3360
  ],
1642
3361
  "args": [
1643
3362
  {
1644
- "name": "target_state",
1645
- "type": "bool"
3363
+ "name": "new_admin",
3364
+ "type": "pubkey"
1646
3365
  }
1647
3366
  ]
1648
3367
  },
1649
3368
  {
1650
- "name": "remove_admin",
3369
+ "name": "set_funding_wallet",
1651
3370
  "discriminator": [
1652
- 74,
1653
- 202,
1654
- 71,
1655
- 106,
1656
- 252,
1657
- 31,
1658
- 72,
1659
- 183
3371
+ 134,
3372
+ 34,
3373
+ 203,
3374
+ 88,
3375
+ 248,
3376
+ 13,
3377
+ 78,
3378
+ 30
1660
3379
  ],
1661
3380
  "accounts": [
1662
3381
  {
@@ -1696,27 +3415,26 @@
1696
3415
  ],
1697
3416
  "args": [
1698
3417
  {
1699
- "name": "account",
3418
+ "name": "new_funding_wallet",
1700
3419
  "type": "pubkey"
1701
3420
  }
1702
3421
  ]
1703
3422
  },
1704
3423
  {
1705
- "name": "remove_payment_token",
3424
+ "name": "set_max_fee_delta",
1706
3425
  "discriminator": [
1707
- 119,
1708
- 18,
1709
- 240,
1710
- 223,
1711
- 126,
1712
- 168,
1713
- 165,
1714
- 117
3426
+ 184,
3427
+ 66,
3428
+ 78,
3429
+ 162,
3430
+ 85,
3431
+ 237,
3432
+ 83,
3433
+ 148
1715
3434
  ],
1716
3435
  "accounts": [
1717
3436
  {
1718
3437
  "name": "escrow_config",
1719
- "writable": true,
1720
3438
  "pda": {
1721
3439
  "seeds": [
1722
3440
  {
@@ -1743,6 +3461,34 @@
1743
3461
  ]
1744
3462
  }
1745
3463
  },
3464
+ {
3465
+ "name": "treasury_config",
3466
+ "writable": true,
3467
+ "pda": {
3468
+ "seeds": [
3469
+ {
3470
+ "kind": "const",
3471
+ "value": [
3472
+ 116,
3473
+ 114,
3474
+ 101,
3475
+ 97,
3476
+ 115,
3477
+ 117,
3478
+ 114,
3479
+ 121,
3480
+ 45,
3481
+ 99,
3482
+ 111,
3483
+ 110,
3484
+ 102,
3485
+ 105,
3486
+ 103
3487
+ ]
3488
+ }
3489
+ ]
3490
+ }
3491
+ },
1746
3492
  {
1747
3493
  "name": "admin",
1748
3494
  "writable": true,
@@ -1751,25 +3497,22 @@
1751
3497
  ],
1752
3498
  "args": [
1753
3499
  {
1754
- "name": "token_mint",
1755
- "type": "pubkey"
3500
+ "name": "amount",
3501
+ "type": "u64"
1756
3502
  }
1757
3503
  ]
1758
3504
  },
1759
3505
  {
1760
- "name": "remove_token_from_escrow",
1761
- "docs": [
1762
- "Admin Withdraw SPL tokens"
1763
- ],
3506
+ "name": "set_receiver_timelock_config",
1764
3507
  "discriminator": [
1765
- 42,
1766
- 189,
1767
- 194,
1768
- 61,
1769
- 110,
1770
- 149,
1771
- 83,
1772
- 126
3508
+ 179,
3509
+ 116,
3510
+ 158,
3511
+ 165,
3512
+ 236,
3513
+ 240,
3514
+ 203,
3515
+ 78
1773
3516
  ],
1774
3517
  "accounts": [
1775
3518
  {
@@ -1801,240 +3544,130 @@
1801
3544
  }
1802
3545
  },
1803
3546
  {
1804
- "name": "mint"
1805
- },
1806
- {
1807
- "name": "admin",
1808
- "writable": true,
1809
- "signer": true
1810
- },
1811
- {
1812
- "name": "vault_authority",
3547
+ "name": "receiver_timelock_config",
1813
3548
  "writable": true,
1814
3549
  "pda": {
1815
3550
  "seeds": [
1816
3551
  {
1817
3552
  "kind": "const",
1818
3553
  "value": [
3554
+ 114,
1819
3555
  101,
1820
- 115,
1821
3556
  99,
1822
- 114,
1823
- 111,
1824
- 119
1825
- ]
1826
- }
1827
- ]
1828
- }
1829
- },
1830
- {
1831
- "name": "vault_token_account",
1832
- "writable": true,
1833
- "pda": {
1834
- "seeds": [
1835
- {
1836
- "kind": "account",
1837
- "path": "vault_authority"
1838
- },
1839
- {
1840
- "kind": "const",
1841
- "value": [
1842
- 6,
1843
- 221,
1844
- 246,
1845
- 225,
1846
- 215,
1847
3557
  101,
1848
- 161,
1849
- 147,
1850
- 217,
1851
- 203,
1852
- 225,
1853
- 70,
1854
- 206,
1855
- 235,
1856
- 121,
1857
- 172,
1858
- 28,
1859
- 180,
1860
- 133,
1861
- 237,
1862
- 95,
1863
- 91,
1864
- 55,
1865
- 145,
1866
- 58,
1867
- 140,
1868
- 245,
1869
- 133,
1870
- 126,
1871
- 255,
1872
- 0,
1873
- 169
1874
- ]
1875
- },
1876
- {
1877
- "kind": "account",
1878
- "path": "mint"
1879
- }
1880
- ],
1881
- "program": {
1882
- "kind": "const",
1883
- "value": [
1884
- 140,
1885
- 151,
1886
- 37,
1887
- 143,
1888
- 78,
1889
- 36,
1890
- 137,
1891
- 241,
1892
- 187,
1893
- 61,
1894
- 16,
1895
- 41,
1896
- 20,
1897
- 142,
1898
- 13,
1899
- 131,
1900
- 11,
1901
- 90,
1902
- 19,
1903
- 153,
1904
- 218,
1905
- 255,
1906
- 16,
1907
- 132,
1908
- 4,
1909
- 142,
1910
- 123,
1911
- 216,
1912
- 219,
1913
- 233,
1914
- 248,
1915
- 89
1916
- ]
1917
- }
3558
+ 105,
3559
+ 118,
3560
+ 101,
3561
+ 114,
3562
+ 45,
3563
+ 116,
3564
+ 105,
3565
+ 109,
3566
+ 101,
3567
+ 108,
3568
+ 111,
3569
+ 99,
3570
+ 107
3571
+ ]
3572
+ },
3573
+ {
3574
+ "kind": "arg",
3575
+ "path": "receiver"
3576
+ }
3577
+ ]
1918
3578
  }
1919
3579
  },
1920
3580
  {
1921
- "name": "destination_token_account",
3581
+ "name": "admin",
3582
+ "writable": true,
3583
+ "signer": true
3584
+ },
3585
+ {
3586
+ "name": "system_program",
3587
+ "address": "11111111111111111111111111111111"
3588
+ }
3589
+ ],
3590
+ "args": [
3591
+ {
3592
+ "name": "receiver",
3593
+ "type": "pubkey"
3594
+ },
3595
+ {
3596
+ "name": "delay_seconds",
3597
+ "type": "i64"
3598
+ }
3599
+ ]
3600
+ },
3601
+ {
3602
+ "name": "set_signature_wallet",
3603
+ "discriminator": [
3604
+ 218,
3605
+ 131,
3606
+ 78,
3607
+ 197,
3608
+ 72,
3609
+ 225,
3610
+ 0,
3611
+ 90
3612
+ ],
3613
+ "accounts": [
3614
+ {
3615
+ "name": "escrow_config",
1922
3616
  "writable": true,
1923
3617
  "pda": {
1924
3618
  "seeds": [
1925
- {
1926
- "kind": "account",
1927
- "path": "admin"
1928
- },
1929
3619
  {
1930
3620
  "kind": "const",
1931
3621
  "value": [
1932
- 6,
1933
- 221,
1934
- 246,
1935
- 225,
1936
- 215,
1937
3622
  101,
1938
- 161,
1939
- 147,
1940
- 217,
1941
- 203,
1942
- 225,
1943
- 70,
1944
- 206,
1945
- 235,
1946
- 121,
1947
- 172,
1948
- 28,
1949
- 180,
1950
- 133,
1951
- 237,
1952
- 95,
1953
- 91,
1954
- 55,
1955
- 145,
1956
- 58,
1957
- 140,
1958
- 245,
1959
- 133,
1960
- 126,
1961
- 255,
1962
- 0,
1963
- 169
3623
+ 115,
3624
+ 99,
3625
+ 114,
3626
+ 111,
3627
+ 119,
3628
+ 45,
3629
+ 99,
3630
+ 111,
3631
+ 110,
3632
+ 102,
3633
+ 105,
3634
+ 103,
3635
+ 45,
3636
+ 118,
3637
+ 50
1964
3638
  ]
1965
- },
1966
- {
1967
- "kind": "account",
1968
- "path": "mint"
1969
3639
  }
1970
- ],
1971
- "program": {
1972
- "kind": "const",
1973
- "value": [
1974
- 140,
1975
- 151,
1976
- 37,
1977
- 143,
1978
- 78,
1979
- 36,
1980
- 137,
1981
- 241,
1982
- 187,
1983
- 61,
1984
- 16,
1985
- 41,
1986
- 20,
1987
- 142,
1988
- 13,
1989
- 131,
1990
- 11,
1991
- 90,
1992
- 19,
1993
- 153,
1994
- 218,
1995
- 255,
1996
- 16,
1997
- 132,
1998
- 4,
1999
- 142,
2000
- 123,
2001
- 216,
2002
- 219,
2003
- 233,
2004
- 248,
2005
- 89
2006
- ]
2007
- }
3640
+ ]
2008
3641
  }
2009
3642
  },
2010
3643
  {
2011
- "name": "token_program",
2012
- "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
3644
+ "name": "admin",
3645
+ "writable": true,
3646
+ "signer": true
2013
3647
  }
2014
3648
  ],
2015
3649
  "args": [
2016
3650
  {
2017
- "name": "amount",
2018
- "type": "u64"
3651
+ "name": "new_signature_wallet",
3652
+ "type": "pubkey"
2019
3653
  }
2020
3654
  ]
2021
3655
  },
2022
3656
  {
2023
- "name": "set_admin",
3657
+ "name": "set_timelock_config",
2024
3658
  "discriminator": [
3659
+ 176,
3660
+ 167,
3661
+ 10,
3662
+ 233,
2025
3663
  251,
2026
- 163,
2027
- 0,
2028
- 52,
2029
- 91,
2030
- 194,
2031
- 187,
2032
- 92
3664
+ 255,
3665
+ 15,
3666
+ 254
2033
3667
  ],
2034
3668
  "accounts": [
2035
3669
  {
2036
3670
  "name": "escrow_config",
2037
- "writable": true,
2038
3671
  "pda": {
2039
3672
  "seeds": [
2040
3673
  {
@@ -2061,34 +3694,66 @@
2061
3694
  ]
2062
3695
  }
2063
3696
  },
3697
+ {
3698
+ "name": "timelock_config",
3699
+ "writable": true,
3700
+ "pda": {
3701
+ "seeds": [
3702
+ {
3703
+ "kind": "const",
3704
+ "value": [
3705
+ 116,
3706
+ 105,
3707
+ 109,
3708
+ 101,
3709
+ 108,
3710
+ 111,
3711
+ 99,
3712
+ 107,
3713
+ 45,
3714
+ 99,
3715
+ 111,
3716
+ 110,
3717
+ 102,
3718
+ 105,
3719
+ 103
3720
+ ]
3721
+ }
3722
+ ]
3723
+ }
3724
+ },
2064
3725
  {
2065
3726
  "name": "admin",
3727
+ "writable": true,
2066
3728
  "signer": true
3729
+ },
3730
+ {
3731
+ "name": "system_program",
3732
+ "address": "11111111111111111111111111111111"
2067
3733
  }
2068
3734
  ],
2069
3735
  "args": [
2070
3736
  {
2071
- "name": "new_admin",
2072
- "type": "pubkey"
3737
+ "name": "delay_seconds",
3738
+ "type": "i64"
2073
3739
  }
2074
3740
  ]
2075
3741
  },
2076
3742
  {
2077
- "name": "set_funding_wallet",
3743
+ "name": "set_withdrawal_thresholds",
2078
3744
  "discriminator": [
2079
- 134,
2080
- 34,
2081
- 203,
2082
- 88,
2083
- 248,
2084
- 13,
2085
- 78,
2086
- 30
3745
+ 210,
3746
+ 174,
3747
+ 130,
3748
+ 94,
3749
+ 94,
3750
+ 180,
3751
+ 181,
3752
+ 165
2087
3753
  ],
2088
3754
  "accounts": [
2089
3755
  {
2090
3756
  "name": "escrow_config",
2091
- "writable": true,
2092
3757
  "pda": {
2093
3758
  "seeds": [
2094
3759
  {
@@ -2115,6 +3780,34 @@
2115
3780
  ]
2116
3781
  }
2117
3782
  },
3783
+ {
3784
+ "name": "treasury_config",
3785
+ "writable": true,
3786
+ "pda": {
3787
+ "seeds": [
3788
+ {
3789
+ "kind": "const",
3790
+ "value": [
3791
+ 116,
3792
+ 114,
3793
+ 101,
3794
+ 97,
3795
+ 115,
3796
+ 117,
3797
+ 114,
3798
+ 121,
3799
+ 45,
3800
+ 99,
3801
+ 111,
3802
+ 110,
3803
+ 102,
3804
+ 105,
3805
+ 103
3806
+ ]
3807
+ }
3808
+ ]
3809
+ }
3810
+ },
2118
3811
  {
2119
3812
  "name": "admin",
2120
3813
  "writable": true,
@@ -2123,8 +3816,12 @@
2123
3816
  ],
2124
3817
  "args": [
2125
3818
  {
2126
- "name": "new_funding_wallet",
2127
- "type": "pubkey"
3819
+ "name": "manager_threshold",
3820
+ "type": "u8"
3821
+ },
3822
+ {
3823
+ "name": "executive_threshold",
3824
+ "type": "u8"
2128
3825
  }
2129
3826
  ]
2130
3827
  },
@@ -2554,16 +4251,55 @@
2554
4251
  ]
2555
4252
  },
2556
4253
  {
2557
- "name": "EscrowConfiguration",
4254
+ "name": "EscrowConfiguration",
4255
+ "discriminator": [
4256
+ 105,
4257
+ 131,
4258
+ 219,
4259
+ 218,
4260
+ 63,
4261
+ 157,
4262
+ 131,
4263
+ 34
4264
+ ]
4265
+ },
4266
+ {
4267
+ "name": "ReceiverTimelockConfig",
4268
+ "discriminator": [
4269
+ 155,
4270
+ 62,
4271
+ 82,
4272
+ 53,
4273
+ 244,
4274
+ 149,
4275
+ 35,
4276
+ 69
4277
+ ]
4278
+ },
4279
+ {
4280
+ "name": "TimelockConfig",
4281
+ "discriminator": [
4282
+ 189,
4283
+ 87,
4284
+ 27,
4285
+ 18,
4286
+ 189,
4287
+ 173,
4288
+ 47,
4289
+ 197
4290
+ ]
4291
+ },
4292
+ {
4293
+ "name": "TreasuryConfig",
2558
4294
  "discriminator": [
2559
- 105,
2560
- 131,
2561
- 219,
2562
- 218,
2563
- 63,
2564
- 157,
2565
- 131,
2566
- 34
4295
+ 124,
4296
+ 54,
4297
+ 212,
4298
+ 227,
4299
+ 213,
4300
+ 189,
4301
+ 168,
4302
+ 41
2567
4303
  ]
2568
4304
  },
2569
4305
  {
@@ -2578,6 +4314,19 @@
2578
4314
  45,
2579
4315
  160
2580
4316
  ]
4317
+ },
4318
+ {
4319
+ "name": "WithdrawalCommitment",
4320
+ "discriminator": [
4321
+ 129,
4322
+ 131,
4323
+ 178,
4324
+ 154,
4325
+ 169,
4326
+ 202,
4327
+ 148,
4328
+ 141
4329
+ ]
2581
4330
  }
2582
4331
  ],
2583
4332
  "events": [
@@ -2658,6 +4407,45 @@
2658
4407
  53,
2659
4408
  85
2660
4409
  ]
4410
+ },
4411
+ {
4412
+ "name": "WithdrawalCancelledEvent",
4413
+ "discriminator": [
4414
+ 40,
4415
+ 218,
4416
+ 165,
4417
+ 230,
4418
+ 31,
4419
+ 49,
4420
+ 238,
4421
+ 127
4422
+ ]
4423
+ },
4424
+ {
4425
+ "name": "WithdrawalExecutedEvent",
4426
+ "discriminator": [
4427
+ 60,
4428
+ 185,
4429
+ 83,
4430
+ 2,
4431
+ 206,
4432
+ 217,
4433
+ 44,
4434
+ 53
4435
+ ]
4436
+ },
4437
+ {
4438
+ "name": "WithdrawalScheduledEvent",
4439
+ "discriminator": [
4440
+ 74,
4441
+ 43,
4442
+ 199,
4443
+ 56,
4444
+ 129,
4445
+ 1,
4446
+ 247,
4447
+ 68
4448
+ ]
2661
4449
  }
2662
4450
  ],
2663
4451
  "errors": [
@@ -2760,6 +4548,51 @@
2760
4548
  "code": 6019,
2761
4549
  "name": "MaxAdminCount",
2762
4550
  "msg": "Max admin count reached"
4551
+ },
4552
+ {
4553
+ "code": 6020,
4554
+ "name": "NotInitialized",
4555
+ "msg": "Treasury config not initialized"
4556
+ },
4557
+ {
4558
+ "code": 6021,
4559
+ "name": "UnauthorizedSigner",
4560
+ "msg": "Signer is not a treasury manager or executive"
4561
+ },
4562
+ {
4563
+ "code": 6022,
4564
+ "name": "InsufficientManagerSigs",
4565
+ "msg": "Insufficient treasury manager signatures"
4566
+ },
4567
+ {
4568
+ "code": 6023,
4569
+ "name": "InsufficientExecutiveSigs",
4570
+ "msg": "Insufficient treasury executive signatures"
4571
+ },
4572
+ {
4573
+ "code": 6024,
4574
+ "name": "MaxRoleCount",
4575
+ "msg": "Max role member count reached"
4576
+ },
4577
+ {
4578
+ "code": 6025,
4579
+ "name": "InvalidNetAmount",
4580
+ "msg": "net_amount exceeds committed_amount"
4581
+ },
4582
+ {
4583
+ "code": 6026,
4584
+ "name": "FeeDeltaExceedsCap",
4585
+ "msg": "Fee delta exceeds max allowed cap"
4586
+ },
4587
+ {
4588
+ "code": 6027,
4589
+ "name": "TimelockNotExpired",
4590
+ "msg": "Timelock has not expired yet"
4591
+ },
4592
+ {
4593
+ "code": 6028,
4594
+ "name": "InvalidRequestId",
4595
+ "msg": "Request ID does not match commitment"
2763
4596
  }
2764
4597
  ],
2765
4598
  "types": [
@@ -2966,6 +4799,83 @@
2966
4799
  ]
2967
4800
  }
2968
4801
  },
4802
+ {
4803
+ "name": "ReceiverTimelockConfig",
4804
+ "docs": [
4805
+ "Per-receiver timelock override. delay_seconds = 0 means trusted (immediate execution)."
4806
+ ],
4807
+ "type": {
4808
+ "kind": "struct",
4809
+ "fields": [
4810
+ {
4811
+ "name": "delay_seconds",
4812
+ "type": "i64"
4813
+ },
4814
+ {
4815
+ "name": "is_set",
4816
+ "type": "bool"
4817
+ }
4818
+ ]
4819
+ }
4820
+ },
4821
+ {
4822
+ "name": "TimelockConfig",
4823
+ "docs": [
4824
+ "Global timelock delay applied to all withdrawals unless overridden per-receiver."
4825
+ ],
4826
+ "type": {
4827
+ "kind": "struct",
4828
+ "fields": [
4829
+ {
4830
+ "name": "delay_seconds",
4831
+ "type": "i64"
4832
+ },
4833
+ {
4834
+ "name": "is_set",
4835
+ "type": "bool"
4836
+ }
4837
+ ]
4838
+ }
4839
+ },
4840
+ {
4841
+ "name": "TreasuryConfig",
4842
+ "type": {
4843
+ "kind": "struct",
4844
+ "fields": [
4845
+ {
4846
+ "name": "treasury_managers",
4847
+ "type": {
4848
+ "vec": "pubkey"
4849
+ }
4850
+ },
4851
+ {
4852
+ "name": "treasury_executives",
4853
+ "type": {
4854
+ "vec": "pubkey"
4855
+ }
4856
+ },
4857
+ {
4858
+ "name": "manager_threshold",
4859
+ "type": "u8"
4860
+ },
4861
+ {
4862
+ "name": "executive_threshold",
4863
+ "type": "u8"
4864
+ },
4865
+ {
4866
+ "name": "max_fee_delta",
4867
+ "docs": [
4868
+ "Maximum allowable deduction between committed_amount and net_amount (0 = disabled)"
4869
+ ],
4870
+ "type": "u64"
4871
+ },
4872
+ {
4873
+ "name": "is_initialized",
4874
+ "type": "bool"
4875
+ }
4876
+ ]
4877
+ }
4878
+ },
2969
4879
  {
2970
4880
  "name": "WithdrawNonce",
2971
4881
  "type": {
@@ -3045,6 +4955,157 @@
3045
4955
  }
3046
4956
  ]
3047
4957
  }
4958
+ },
4959
+ {
4960
+ "name": "WithdrawalCancelledEvent",
4961
+ "type": {
4962
+ "kind": "struct",
4963
+ "fields": [
4964
+ {
4965
+ "name": "request_id",
4966
+ "type": "u64"
4967
+ },
4968
+ {
4969
+ "name": "cancelled_by",
4970
+ "type": "pubkey"
4971
+ },
4972
+ {
4973
+ "name": "slot",
4974
+ "type": "u64"
4975
+ },
4976
+ {
4977
+ "name": "timestamp",
4978
+ "type": "i64"
4979
+ }
4980
+ ]
4981
+ }
4982
+ },
4983
+ {
4984
+ "name": "WithdrawalCommitment",
4985
+ "type": {
4986
+ "kind": "struct",
4987
+ "fields": [
4988
+ {
4989
+ "name": "request_id",
4990
+ "type": "u64"
4991
+ },
4992
+ {
4993
+ "name": "committed_amount",
4994
+ "type": "u64"
4995
+ },
4996
+ {
4997
+ "name": "net_amount",
4998
+ "type": "u64"
4999
+ },
5000
+ {
5001
+ "name": "recipient",
5002
+ "type": "pubkey"
5003
+ },
5004
+ {
5005
+ "name": "token_mint",
5006
+ "docs": [
5007
+ "For SOL withdrawals this is the System Program pubkey."
5008
+ ],
5009
+ "type": "pubkey"
5010
+ },
5011
+ {
5012
+ "name": "execute_at",
5013
+ "type": "i64"
5014
+ },
5015
+ {
5016
+ "name": "creator",
5017
+ "type": "pubkey"
5018
+ },
5019
+ {
5020
+ "name": "is_sol",
5021
+ "type": "bool"
5022
+ },
5023
+ {
5024
+ "name": "chain_id",
5025
+ "type": "u64"
5026
+ }
5027
+ ]
5028
+ }
5029
+ },
5030
+ {
5031
+ "name": "WithdrawalExecutedEvent",
5032
+ "type": {
5033
+ "kind": "struct",
5034
+ "fields": [
5035
+ {
5036
+ "name": "request_id",
5037
+ "type": "u64"
5038
+ },
5039
+ {
5040
+ "name": "recipient",
5041
+ "type": "pubkey"
5042
+ },
5043
+ {
5044
+ "name": "net_amount",
5045
+ "type": "u64"
5046
+ },
5047
+ {
5048
+ "name": "token_mint",
5049
+ "type": "pubkey"
5050
+ },
5051
+ {
5052
+ "name": "is_sol",
5053
+ "type": "bool"
5054
+ },
5055
+ {
5056
+ "name": "slot",
5057
+ "type": "u64"
5058
+ },
5059
+ {
5060
+ "name": "timestamp",
5061
+ "type": "i64"
5062
+ }
5063
+ ]
5064
+ }
5065
+ },
5066
+ {
5067
+ "name": "WithdrawalScheduledEvent",
5068
+ "type": {
5069
+ "kind": "struct",
5070
+ "fields": [
5071
+ {
5072
+ "name": "request_id",
5073
+ "type": "u64"
5074
+ },
5075
+ {
5076
+ "name": "recipient",
5077
+ "type": "pubkey"
5078
+ },
5079
+ {
5080
+ "name": "committed_amount",
5081
+ "type": "u64"
5082
+ },
5083
+ {
5084
+ "name": "net_amount",
5085
+ "type": "u64"
5086
+ },
5087
+ {
5088
+ "name": "token_mint",
5089
+ "type": "pubkey"
5090
+ },
5091
+ {
5092
+ "name": "execute_at",
5093
+ "type": "i64"
5094
+ },
5095
+ {
5096
+ "name": "is_sol",
5097
+ "type": "bool"
5098
+ },
5099
+ {
5100
+ "name": "slot",
5101
+ "type": "u64"
5102
+ },
5103
+ {
5104
+ "name": "timestamp",
5105
+ "type": "i64"
5106
+ }
5107
+ ]
5108
+ }
3048
5109
  }
3049
5110
  ]
3050
5111
  }