@ercworldio/blockchain-shared 1.0.5-dev.6 → 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.
@@ -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,51 +1425,98 @@ 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
- },
1457
+ 102,
1458
+ 105,
1459
+ 103,
1460
+ 45,
1461
+ 118,
1462
+ 50
1463
+ ];
1464
+ }
1465
+ ];
1466
+ };
1467
+ },
1468
+ {
1469
+ "name": "commitment";
1470
+ "writable": true;
1471
+ "pda": {
1472
+ "seeds": [
1215
1473
  {
1216
- "kind": "account";
1217
- "path": "user";
1474
+ "kind": "const";
1475
+ "value": [
1476
+ 119,
1477
+ 105,
1478
+ 116,
1479
+ 104,
1480
+ 100,
1481
+ 114,
1482
+ 97,
1483
+ 119,
1484
+ 97,
1485
+ 108
1486
+ ];
1487
+ },
1488
+ {
1489
+ "kind": "arg";
1490
+ "path": "requestId";
1218
1491
  }
1219
1492
  ];
1220
1493
  };
1221
1494
  },
1222
1495
  {
1223
- "name": "user";
1496
+ "name": "vaultAuthority";
1497
+ "writable": true;
1498
+ "pda": {
1499
+ "seeds": [
1500
+ {
1501
+ "kind": "const";
1502
+ "value": [
1503
+ 101,
1504
+ 115,
1505
+ 99,
1506
+ 114,
1507
+ 111,
1508
+ 119
1509
+ ];
1510
+ }
1511
+ ];
1512
+ };
1513
+ },
1514
+ {
1515
+ "name": "recipient";
1516
+ "writable": true;
1517
+ },
1518
+ {
1519
+ "name": "caller";
1224
1520
  "writable": true;
1225
1521
  "signer": true;
1226
1522
  },
@@ -1229,133 +1525,1612 @@ export type Escrow = {
1229
1525
  "address": "11111111111111111111111111111111";
1230
1526
  }
1231
1527
  ];
1232
- "args": [];
1233
- "returns": "u64";
1528
+ "args": [
1529
+ {
1530
+ "name": "requestId";
1531
+ "type": "u64";
1532
+ }
1533
+ ];
1234
1534
  },
1235
1535
  {
1236
- "name": "initializeEscrowConfig";
1536
+ "name": "executeWithdrawalSpl";
1237
1537
  "discriminator": [
1238
- 59,
1239
- 6,
1240
- 201,
1241
- 67,
1242
- 235,
1243
- 49,
1244
- 169,
1245
- 95
1538
+ 61,
1539
+ 63,
1540
+ 171,
1541
+ 104,
1542
+ 233,
1543
+ 62,
1544
+ 148,
1545
+ 55
1246
1546
  ];
1247
1547
  "accounts": [
1248
1548
  {
1249
- "name": "escrowConfig";
1250
- "writable": true;
1549
+ "name": "escrowConfig";
1550
+ "pda": {
1551
+ "seeds": [
1552
+ {
1553
+ "kind": "const";
1554
+ "value": [
1555
+ 101,
1556
+ 115,
1557
+ 99,
1558
+ 114,
1559
+ 111,
1560
+ 119,
1561
+ 45,
1562
+ 99,
1563
+ 111,
1564
+ 110,
1565
+ 102,
1566
+ 105,
1567
+ 103,
1568
+ 45,
1569
+ 118,
1570
+ 50
1571
+ ];
1572
+ }
1573
+ ];
1574
+ };
1575
+ },
1576
+ {
1577
+ "name": "commitment";
1578
+ "writable": true;
1579
+ "pda": {
1580
+ "seeds": [
1581
+ {
1582
+ "kind": "const";
1583
+ "value": [
1584
+ 119,
1585
+ 105,
1586
+ 116,
1587
+ 104,
1588
+ 100,
1589
+ 114,
1590
+ 97,
1591
+ 119,
1592
+ 97,
1593
+ 108
1594
+ ];
1595
+ },
1596
+ {
1597
+ "kind": "arg";
1598
+ "path": "requestId";
1599
+ }
1600
+ ];
1601
+ };
1602
+ },
1603
+ {
1604
+ "name": "mint";
1605
+ },
1606
+ {
1607
+ "name": "vaultAuthority";
1608
+ "pda": {
1609
+ "seeds": [
1610
+ {
1611
+ "kind": "const";
1612
+ "value": [
1613
+ 101,
1614
+ 115,
1615
+ 99,
1616
+ 114,
1617
+ 111,
1618
+ 119
1619
+ ];
1620
+ }
1621
+ ];
1622
+ };
1623
+ },
1624
+ {
1625
+ "name": "vaultTokenAccount";
1626
+ "writable": true;
1627
+ "pda": {
1628
+ "seeds": [
1629
+ {
1630
+ "kind": "account";
1631
+ "path": "vaultAuthority";
1632
+ },
1633
+ {
1634
+ "kind": "const";
1635
+ "value": [
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
1668
+ ];
1669
+ },
1670
+ {
1671
+ "kind": "account";
1672
+ "path": "mint";
1673
+ }
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
+ };
1712
+ };
1713
+ },
1714
+ {
1715
+ "name": "recipient";
1716
+ },
1717
+ {
1718
+ "name": "recipientTokenAccount";
1719
+ "writable": true;
1720
+ "pda": {
1721
+ "seeds": [
1722
+ {
1723
+ "kind": "account";
1724
+ "path": "recipient";
1725
+ },
1726
+ {
1727
+ "kind": "const";
1728
+ "value": [
1729
+ 6,
1730
+ 221,
1731
+ 246,
1732
+ 225,
1733
+ 215,
1734
+ 101,
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
1761
+ ];
1762
+ },
1763
+ {
1764
+ "kind": "account";
1765
+ "path": "mint";
1766
+ }
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
+ };
1805
+ };
1806
+ },
1807
+ {
1808
+ "name": "caller";
1809
+ "writable": true;
1810
+ "signer": true;
1811
+ },
1812
+ {
1813
+ "name": "tokenProgram";
1814
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
1815
+ },
1816
+ {
1817
+ "name": "systemProgram";
1818
+ "address": "11111111111111111111111111111111";
1819
+ }
1820
+ ];
1821
+ "args": [
1822
+ {
1823
+ "name": "requestId";
1824
+ "type": "u64";
1825
+ }
1826
+ ];
1827
+ },
1828
+ {
1829
+ "name": "getNonce";
1830
+ "discriminator": [
1831
+ 132,
1832
+ 129,
1833
+ 238,
1834
+ 76,
1835
+ 118,
1836
+ 10,
1837
+ 212,
1838
+ 7
1839
+ ];
1840
+ "accounts": [
1841
+ {
1842
+ "name": "nonceAccount";
1843
+ "writable": true;
1844
+ "pda": {
1845
+ "seeds": [
1846
+ {
1847
+ "kind": "const";
1848
+ "value": [
1849
+ 119,
1850
+ 105,
1851
+ 116,
1852
+ 104,
1853
+ 100,
1854
+ 114,
1855
+ 97,
1856
+ 119,
1857
+ 45,
1858
+ 110,
1859
+ 111,
1860
+ 110,
1861
+ 99,
1862
+ 101
1863
+ ];
1864
+ },
1865
+ {
1866
+ "kind": "account";
1867
+ "path": "user";
1868
+ }
1869
+ ];
1870
+ };
1871
+ },
1872
+ {
1873
+ "name": "user";
1874
+ "writable": true;
1875
+ "signer": true;
1876
+ },
1877
+ {
1878
+ "name": "systemProgram";
1879
+ "address": "11111111111111111111111111111111";
1880
+ }
1881
+ ];
1882
+ "args": [];
1883
+ "returns": "u64";
1884
+ },
1885
+ {
1886
+ "name": "initializeEscrowConfig";
1887
+ "discriminator": [
1888
+ 59,
1889
+ 6,
1890
+ 201,
1891
+ 67,
1892
+ 235,
1893
+ 49,
1894
+ 169,
1895
+ 95
1896
+ ];
1897
+ "accounts": [
1898
+ {
1899
+ "name": "escrowConfig";
1900
+ "writable": true;
1901
+ "pda": {
1902
+ "seeds": [
1903
+ {
1904
+ "kind": "const";
1905
+ "value": [
1906
+ 101,
1907
+ 115,
1908
+ 99,
1909
+ 114,
1910
+ 111,
1911
+ 119,
1912
+ 45,
1913
+ 99,
1914
+ 111,
1915
+ 110,
1916
+ 102,
1917
+ 105,
1918
+ 103,
1919
+ 45,
1920
+ 118,
1921
+ 50
1922
+ ];
1923
+ }
1924
+ ];
1925
+ };
1926
+ },
1927
+ {
1928
+ "name": "admin";
1929
+ "writable": true;
1930
+ "signer": true;
1931
+ },
1932
+ {
1933
+ "name": "systemProgram";
1934
+ "address": "11111111111111111111111111111111";
1935
+ }
1936
+ ];
1937
+ "args": [
1938
+ {
1939
+ "name": "signerPubkey";
1940
+ "type": "pubkey";
1941
+ },
1942
+ {
1943
+ "name": "fundingPubkey";
1944
+ "type": "pubkey";
1945
+ }
1946
+ ];
1947
+ },
1948
+ {
1949
+ "name": "initializeTreasuryConfig";
1950
+ "discriminator": [
1951
+ 42,
1952
+ 221,
1953
+ 143,
1954
+ 37,
1955
+ 13,
1956
+ 169,
1957
+ 92,
1958
+ 98
1959
+ ];
1960
+ "accounts": [
1961
+ {
1962
+ "name": "escrowConfig";
1963
+ "pda": {
1964
+ "seeds": [
1965
+ {
1966
+ "kind": "const";
1967
+ "value": [
1968
+ 101,
1969
+ 115,
1970
+ 99,
1971
+ 114,
1972
+ 111,
1973
+ 119,
1974
+ 45,
1975
+ 99,
1976
+ 111,
1977
+ 110,
1978
+ 102,
1979
+ 105,
1980
+ 103,
1981
+ 45,
1982
+ 118,
1983
+ 50
1984
+ ];
1985
+ }
1986
+ ];
1987
+ };
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
+ },
2017
+ {
2018
+ "name": "admin";
2019
+ "writable": true;
2020
+ "signer": true;
2021
+ },
2022
+ {
2023
+ "name": "systemProgram";
2024
+ "address": "11111111111111111111111111111111";
2025
+ }
2026
+ ];
2027
+ "args": [
2028
+ {
2029
+ "name": "managerThreshold";
2030
+ "type": "u8";
2031
+ },
2032
+ {
2033
+ "name": "executiveThreshold";
2034
+ "type": "u8";
2035
+ }
2036
+ ];
2037
+ },
2038
+ {
2039
+ "name": "isAdminPubkey";
2040
+ "discriminator": [
2041
+ 121,
2042
+ 139,
2043
+ 38,
2044
+ 24,
2045
+ 170,
2046
+ 99,
2047
+ 139,
2048
+ 243
2049
+ ];
2050
+ "accounts": [
2051
+ {
2052
+ "name": "escrowConfig";
2053
+ "pda": {
2054
+ "seeds": [
2055
+ {
2056
+ "kind": "const";
2057
+ "value": [
2058
+ 101,
2059
+ 115,
2060
+ 99,
2061
+ 114,
2062
+ 111,
2063
+ 119,
2064
+ 45,
2065
+ 99,
2066
+ 111,
2067
+ 110,
2068
+ 102,
2069
+ 105,
2070
+ 103,
2071
+ 45,
2072
+ 118,
2073
+ 50
2074
+ ];
2075
+ }
2076
+ ];
2077
+ };
2078
+ }
2079
+ ];
2080
+ "args": [
2081
+ {
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": [
2101
+ {
2102
+ "name": "escrowConfig";
2103
+ "pda": {
2104
+ "seeds": [
2105
+ {
2106
+ "kind": "const";
2107
+ "value": [
2108
+ 101,
2109
+ 115,
2110
+ 99,
2111
+ 114,
2112
+ 111,
2113
+ 119,
2114
+ 45,
2115
+ 99,
2116
+ 111,
2117
+ 110,
2118
+ 102,
2119
+ 105,
2120
+ 103,
2121
+ 45,
2122
+ 118,
2123
+ 50
2124
+ ];
2125
+ }
2126
+ ];
2127
+ };
2128
+ }
2129
+ ];
2130
+ "args": [
2131
+ {
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";
2153
+ "pda": {
2154
+ "seeds": [
2155
+ {
2156
+ "kind": "const";
2157
+ "value": [
2158
+ 101,
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
2174
+ ];
2175
+ }
2176
+ ];
2177
+ };
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": [
2196
+ {
2197
+ "name": "escrowConfig";
2198
+ "pda": {
2199
+ "seeds": [
2200
+ {
2201
+ "kind": "const";
2202
+ "value": [
2203
+ 101,
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
2219
+ ];
2220
+ }
2221
+ ];
2222
+ };
2223
+ }
2224
+ ];
2225
+ "args": [
2226
+ {
2227
+ "name": "token";
2228
+ "type": "pubkey";
2229
+ }
2230
+ ];
2231
+ "returns": "bool";
2232
+ },
2233
+ {
2234
+ "name": "migrateEscrowConfig";
2235
+ "discriminator": [
2236
+ 221,
2237
+ 224,
2238
+ 135,
2239
+ 120,
2240
+ 28,
2241
+ 10,
2242
+ 75,
2243
+ 20
2244
+ ];
2245
+ "accounts": [
2246
+ {
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
+ ];
2280
+ "writable": true;
2281
+ "pda": {
2282
+ "seeds": [
2283
+ {
2284
+ "kind": "const";
2285
+ "value": [
2286
+ 101,
2287
+ 115,
2288
+ 99,
2289
+ 114,
2290
+ 111,
2291
+ 119,
2292
+ 45,
2293
+ 99,
2294
+ 111,
2295
+ 110,
2296
+ 102,
2297
+ 105,
2298
+ 103,
2299
+ 45,
2300
+ 118,
2301
+ 50
2302
+ ];
2303
+ }
2304
+ ];
2305
+ };
2306
+ },
2307
+ {
2308
+ "name": "admin";
2309
+ "writable": true;
2310
+ "signer": true;
2311
+ },
2312
+ {
2313
+ "name": "systemProgram";
2314
+ "address": "11111111111111111111111111111111";
2315
+ }
2316
+ ];
2317
+ "args": [
2318
+ {
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";
2332
+ "type": "pubkey";
2333
+ }
2334
+ ];
2335
+ },
2336
+ {
2337
+ "name": "pauseProgram";
2338
+ "discriminator": [
2339
+ 91,
2340
+ 86,
2341
+ 253,
2342
+ 175,
2343
+ 66,
2344
+ 236,
2345
+ 172,
2346
+ 124
2347
+ ];
2348
+ "accounts": [
2349
+ {
2350
+ "name": "escrowConfig";
2351
+ "writable": true;
2352
+ "pda": {
2353
+ "seeds": [
2354
+ {
2355
+ "kind": "const";
2356
+ "value": [
2357
+ 101,
2358
+ 115,
2359
+ 99,
2360
+ 114,
2361
+ 111,
2362
+ 119,
2363
+ 45,
2364
+ 99,
2365
+ 111,
2366
+ 110,
2367
+ 102,
2368
+ 105,
2369
+ 103,
2370
+ 45,
2371
+ 118,
2372
+ 50
2373
+ ];
2374
+ }
2375
+ ];
2376
+ };
2377
+ },
2378
+ {
2379
+ "name": "admin";
2380
+ "writable": true;
2381
+ "signer": true;
2382
+ },
2383
+ {
2384
+ "name": "systemProgram";
2385
+ "address": "11111111111111111111111111111111";
2386
+ }
2387
+ ];
2388
+ "args": [
2389
+ {
2390
+ "name": "targetState";
2391
+ "type": "bool";
2392
+ }
2393
+ ];
2394
+ },
2395
+ {
2396
+ "name": "removeAdmin";
2397
+ "discriminator": [
2398
+ 74,
2399
+ 202,
2400
+ 71,
2401
+ 106,
2402
+ 252,
2403
+ 31,
2404
+ 72,
2405
+ 183
2406
+ ];
2407
+ "accounts": [
2408
+ {
2409
+ "name": "escrowConfig";
2410
+ "writable": true;
2411
+ "pda": {
2412
+ "seeds": [
2413
+ {
2414
+ "kind": "const";
2415
+ "value": [
2416
+ 101,
2417
+ 115,
2418
+ 99,
2419
+ 114,
2420
+ 111,
2421
+ 119,
2422
+ 45,
2423
+ 99,
2424
+ 111,
2425
+ 110,
2426
+ 102,
2427
+ 105,
2428
+ 103,
2429
+ 45,
2430
+ 118,
2431
+ 50
2432
+ ];
2433
+ }
2434
+ ];
2435
+ };
2436
+ },
2437
+ {
2438
+ "name": "admin";
2439
+ "writable": true;
2440
+ "signer": true;
2441
+ }
2442
+ ];
2443
+ "args": [
2444
+ {
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": [
2463
+ {
2464
+ "name": "escrowConfig";
2465
+ "writable": true;
2466
+ "pda": {
2467
+ "seeds": [
2468
+ {
2469
+ "kind": "const";
2470
+ "value": [
2471
+ 101,
2472
+ 115,
2473
+ 99,
2474
+ 114,
2475
+ 111,
2476
+ 119,
2477
+ 45,
2478
+ 99,
2479
+ 111,
2480
+ 110,
2481
+ 102,
2482
+ 105,
2483
+ 103,
2484
+ 45,
2485
+ 118,
2486
+ 50
2487
+ ];
2488
+ }
2489
+ ];
2490
+ };
2491
+ },
2492
+ {
2493
+ "name": "admin";
2494
+ "writable": true;
2495
+ "signer": true;
2496
+ }
2497
+ ];
2498
+ "args": [
2499
+ {
2500
+ "name": "tokenMint";
2501
+ "type": "pubkey";
2502
+ }
2503
+ ];
2504
+ },
2505
+ {
2506
+ "name": "removeTokenFromEscrow";
2507
+ "docs": [
2508
+ "Admin Withdraw SPL tokens"
2509
+ ];
2510
+ "discriminator": [
2511
+ 42,
2512
+ 189,
2513
+ 194,
2514
+ 61,
2515
+ 110,
2516
+ 149,
2517
+ 83,
2518
+ 126
2519
+ ];
2520
+ "accounts": [
2521
+ {
2522
+ "name": "escrowConfig";
2523
+ "pda": {
2524
+ "seeds": [
2525
+ {
2526
+ "kind": "const";
2527
+ "value": [
2528
+ 101,
2529
+ 115,
2530
+ 99,
2531
+ 114,
2532
+ 111,
2533
+ 119,
2534
+ 45,
2535
+ 99,
2536
+ 111,
2537
+ 110,
2538
+ 102,
2539
+ 105,
2540
+ 103,
2541
+ 45,
2542
+ 118,
2543
+ 50
2544
+ ];
2545
+ }
2546
+ ];
2547
+ };
2548
+ },
2549
+ {
2550
+ "name": "mint";
2551
+ },
2552
+ {
2553
+ "name": "admin";
2554
+ "writable": true;
2555
+ "signer": true;
2556
+ },
2557
+ {
2558
+ "name": "vaultAuthority";
2559
+ "writable": true;
2560
+ "pda": {
2561
+ "seeds": [
2562
+ {
2563
+ "kind": "const";
2564
+ "value": [
2565
+ 101,
2566
+ 115,
2567
+ 99,
2568
+ 114,
2569
+ 111,
2570
+ 119
2571
+ ];
2572
+ }
2573
+ ];
2574
+ };
2575
+ },
2576
+ {
2577
+ "name": "vaultTokenAccount";
2578
+ "writable": true;
2579
+ "pda": {
2580
+ "seeds": [
2581
+ {
2582
+ "kind": "account";
2583
+ "path": "vaultAuthority";
2584
+ },
2585
+ {
2586
+ "kind": "const";
2587
+ "value": [
2588
+ 6,
2589
+ 221,
2590
+ 246,
2591
+ 225,
2592
+ 215,
2593
+ 101,
2594
+ 161,
2595
+ 147,
2596
+ 217,
2597
+ 203,
2598
+ 225,
2599
+ 70,
2600
+ 206,
2601
+ 235,
2602
+ 121,
2603
+ 172,
2604
+ 28,
2605
+ 180,
2606
+ 133,
2607
+ 237,
2608
+ 95,
2609
+ 91,
2610
+ 55,
2611
+ 145,
2612
+ 58,
2613
+ 140,
2614
+ 245,
2615
+ 133,
2616
+ 126,
2617
+ 255,
2618
+ 0,
2619
+ 169
2620
+ ];
2621
+ },
2622
+ {
2623
+ "kind": "account";
2624
+ "path": "mint";
2625
+ }
2626
+ ];
2627
+ "program": {
2628
+ "kind": "const";
2629
+ "value": [
2630
+ 140,
2631
+ 151,
2632
+ 37,
2633
+ 143,
2634
+ 78,
2635
+ 36,
2636
+ 137,
2637
+ 241,
2638
+ 187,
2639
+ 61,
2640
+ 16,
2641
+ 41,
2642
+ 20,
2643
+ 142,
2644
+ 13,
2645
+ 131,
2646
+ 11,
2647
+ 90,
2648
+ 19,
2649
+ 153,
2650
+ 218,
2651
+ 255,
2652
+ 16,
2653
+ 132,
2654
+ 4,
2655
+ 142,
2656
+ 123,
2657
+ 216,
2658
+ 219,
2659
+ 233,
2660
+ 248,
2661
+ 89
2662
+ ];
2663
+ };
2664
+ };
2665
+ },
2666
+ {
2667
+ "name": "destinationTokenAccount";
2668
+ "writable": true;
2669
+ "pda": {
2670
+ "seeds": [
2671
+ {
2672
+ "kind": "account";
2673
+ "path": "admin";
2674
+ },
2675
+ {
2676
+ "kind": "const";
2677
+ "value": [
2678
+ 6,
2679
+ 221,
2680
+ 246,
2681
+ 225,
2682
+ 215,
2683
+ 101,
2684
+ 161,
2685
+ 147,
2686
+ 217,
2687
+ 203,
2688
+ 225,
2689
+ 70,
2690
+ 206,
2691
+ 235,
2692
+ 121,
2693
+ 172,
2694
+ 28,
2695
+ 180,
2696
+ 133,
2697
+ 237,
2698
+ 95,
2699
+ 91,
2700
+ 55,
2701
+ 145,
2702
+ 58,
2703
+ 140,
2704
+ 245,
2705
+ 133,
2706
+ 126,
2707
+ 255,
2708
+ 0,
2709
+ 169
2710
+ ];
2711
+ },
2712
+ {
2713
+ "kind": "account";
2714
+ "path": "mint";
2715
+ }
2716
+ ];
2717
+ "program": {
2718
+ "kind": "const";
2719
+ "value": [
2720
+ 140,
2721
+ 151,
2722
+ 37,
2723
+ 143,
2724
+ 78,
2725
+ 36,
2726
+ 137,
2727
+ 241,
2728
+ 187,
2729
+ 61,
2730
+ 16,
2731
+ 41,
2732
+ 20,
2733
+ 142,
2734
+ 13,
2735
+ 131,
2736
+ 11,
2737
+ 90,
2738
+ 19,
2739
+ 153,
2740
+ 218,
2741
+ 255,
2742
+ 16,
2743
+ 132,
2744
+ 4,
2745
+ 142,
2746
+ 123,
2747
+ 216,
2748
+ 219,
2749
+ 233,
2750
+ 248,
2751
+ 89
2752
+ ];
2753
+ };
2754
+ };
2755
+ },
2756
+ {
2757
+ "name": "tokenProgram";
2758
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
2759
+ }
2760
+ ];
2761
+ "args": [
2762
+ {
2763
+ "name": "amount";
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
+ };
2808
+ },
2809
+ {
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
+ };
2836
+ },
2837
+ {
2838
+ "name": "admin";
2839
+ "writable": true;
2840
+ "signer": true;
2841
+ }
2842
+ ];
2843
+ "args": [
2844
+ {
2845
+ "name": "pubkey";
2846
+ "type": "pubkey";
2847
+ }
2848
+ ];
2849
+ },
2850
+ {
2851
+ "name": "removeTreasuryManager";
2852
+ "discriminator": [
2853
+ 82,
2854
+ 21,
2855
+ 184,
2856
+ 234,
2857
+ 157,
2858
+ 232,
2859
+ 48,
2860
+ 70
2861
+ ];
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";
1251
3029
  "pda": {
1252
3030
  "seeds": [
1253
3031
  {
1254
3032
  "kind": "const";
1255
3033
  "value": [
3034
+ 116,
3035
+ 105,
3036
+ 109,
1256
3037
  101,
1257
- 115,
1258
- 99,
1259
- 114,
3038
+ 108,
1260
3039
  111,
1261
- 119,
3040
+ 99,
3041
+ 107,
1262
3042
  45,
1263
3043
  99,
1264
3044
  111,
1265
3045
  110,
1266
3046
  102,
1267
3047
  105,
1268
- 103,
1269
- 45,
1270
- 118,
1271
- 50
3048
+ 103
1272
3049
  ];
1273
3050
  }
1274
3051
  ];
1275
3052
  };
1276
3053
  },
1277
3054
  {
1278
- "name": "admin";
1279
- "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";
3055
+ "name": "receiverTimelockConfig";
1313
3056
  "pda": {
1314
3057
  "seeds": [
1315
3058
  {
1316
3059
  "kind": "const";
1317
3060
  "value": [
3061
+ 114,
1318
3062
  101,
1319
- 115,
1320
3063
  99,
3064
+ 101,
3065
+ 105,
3066
+ 118,
3067
+ 101,
1321
3068
  114,
1322
- 111,
1323
- 119,
1324
3069
  45,
1325
- 99,
1326
- 111,
1327
- 110,
1328
- 102,
3070
+ 116,
1329
3071
  105,
1330
- 103,
1331
- 45,
1332
- 118,
1333
- 50
3072
+ 109,
3073
+ 101,
3074
+ 108,
3075
+ 111,
3076
+ 99,
3077
+ 107
1334
3078
  ];
3079
+ },
3080
+ {
3081
+ "kind": "account";
3082
+ "path": "recipient";
1335
3083
  }
1336
3084
  ];
1337
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";
1338
3102
  }
1339
3103
  ];
1340
3104
  "args": [
1341
3105
  {
1342
- "name": "account";
1343
- "type": "pubkey";
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";
1344
3120
  }
1345
3121
  ];
1346
- "returns": "bool";
1347
3122
  },
1348
3123
  {
1349
- "name": "isFundingPubkey";
3124
+ "name": "scheduleWithdrawalSpl";
1350
3125
  "discriminator": [
1351
- 252,
1352
- 56,
1353
- 255,
1354
- 21,
1355
- 13,
1356
- 63,
1357
- 211,
1358
- 163
3126
+ 95,
3127
+ 68,
3128
+ 202,
3129
+ 149,
3130
+ 66,
3131
+ 113,
3132
+ 28,
3133
+ 201
1359
3134
  ];
1360
3135
  "accounts": [
1361
3136
  {
@@ -1385,141 +3160,76 @@ export type Escrow = {
1385
3160
  }
1386
3161
  ];
1387
3162
  };
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": [
3163
+ },
1411
3164
  {
1412
- "name": "escrowConfig";
3165
+ "name": "treasuryConfig";
1413
3166
  "pda": {
1414
3167
  "seeds": [
1415
3168
  {
1416
3169
  "kind": "const";
1417
3170
  "value": [
3171
+ 116,
3172
+ 114,
1418
3173
  101,
3174
+ 97,
1419
3175
  115,
1420
- 99,
3176
+ 117,
1421
3177
  114,
1422
- 111,
1423
- 119,
3178
+ 121,
1424
3179
  45,
1425
3180
  99,
1426
3181
  111,
1427
3182
  110,
1428
3183
  102,
1429
3184
  105,
1430
- 103,
1431
- 45,
1432
- 118,
1433
- 50
3185
+ 103
1434
3186
  ];
1435
3187
  }
1436
3188
  ];
1437
3189
  };
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": [
3190
+ },
1456
3191
  {
1457
- "name": "escrowConfig";
3192
+ "name": "commitment";
3193
+ "writable": true;
1458
3194
  "pda": {
1459
3195
  "seeds": [
1460
3196
  {
1461
3197
  "kind": "const";
1462
3198
  "value": [
1463
- 101,
1464
- 115,
1465
- 99,
1466
- 114,
1467
- 111,
1468
3199
  119,
1469
- 45,
1470
- 99,
1471
- 111,
1472
- 110,
1473
- 102,
1474
3200
  105,
1475
- 103,
1476
- 45,
1477
- 118,
1478
- 50
3201
+ 116,
3202
+ 104,
3203
+ 100,
3204
+ 114,
3205
+ 97,
3206
+ 119,
3207
+ 97,
3208
+ 108
1479
3209
  ];
3210
+ },
3211
+ {
3212
+ "kind": "arg";
3213
+ "path": "requestId";
1480
3214
  }
1481
3215
  ];
1482
3216
  };
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": [
3217
+ },
1506
3218
  {
1507
- "name": "escrowConfig";
1508
- "docs": [
1509
- "Old account (smaller)"
1510
- ];
1511
- "writable": true;
3219
+ "name": "timelockConfig";
1512
3220
  "pda": {
1513
3221
  "seeds": [
1514
3222
  {
1515
3223
  "kind": "const";
1516
3224
  "value": [
3225
+ 116,
3226
+ 105,
3227
+ 109,
1517
3228
  101,
1518
- 115,
1519
- 99,
1520
- 114,
3229
+ 108,
1521
3230
  111,
1522
- 119,
3231
+ 99,
3232
+ 107,
1523
3233
  45,
1524
3234
  99,
1525
3235
  111,
@@ -1533,77 +3243,91 @@ export type Escrow = {
1533
3243
  };
1534
3244
  },
1535
3245
  {
1536
- "name": "newEscrowConfig";
1537
- "docs": [
1538
- "New account with more space"
1539
- ];
1540
- "writable": true;
3246
+ "name": "receiverTimelockConfig";
1541
3247
  "pda": {
1542
3248
  "seeds": [
1543
3249
  {
1544
3250
  "kind": "const";
1545
3251
  "value": [
1546
- 101,
1547
- 115,
1548
- 99,
1549
3252
  114,
1550
- 111,
1551
- 119,
1552
- 45,
3253
+ 101,
1553
3254
  99,
1554
- 111,
1555
- 110,
1556
- 102,
3255
+ 101,
1557
3256
  105,
1558
- 103,
1559
- 45,
1560
3257
  118,
1561
- 50
3258
+ 101,
3259
+ 114,
3260
+ 45,
3261
+ 116,
3262
+ 105,
3263
+ 109,
3264
+ 101,
3265
+ 108,
3266
+ 111,
3267
+ 99,
3268
+ 107
1562
3269
  ];
3270
+ },
3271
+ {
3272
+ "kind": "account";
3273
+ "path": "recipient";
1563
3274
  }
1564
3275
  ];
1565
3276
  };
1566
3277
  },
1567
3278
  {
1568
- "name": "admin";
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";
1569
3289
  "writable": true;
1570
3290
  "signer": true;
1571
3291
  },
1572
3292
  {
1573
3293
  "name": "systemProgram";
1574
3294
  "address": "11111111111111111111111111111111";
3295
+ },
3296
+ {
3297
+ "name": "instructions";
3298
+ "address": "Sysvar1nstructions1111111111111111111111111";
1575
3299
  }
1576
3300
  ];
1577
3301
  "args": [
1578
3302
  {
1579
- "name": "admins";
1580
- "type": {
1581
- "vec": "pubkey";
1582
- };
3303
+ "name": "requestId";
3304
+ "type": "u64";
1583
3305
  },
1584
3306
  {
1585
- "name": "paymentTokens";
1586
- "type": {
1587
- "vec": "pubkey";
1588
- };
3307
+ "name": "committedAmount";
3308
+ "type": "u64";
1589
3309
  },
1590
3310
  {
1591
- "name": "fundingWallet";
1592
- "type": "pubkey";
3311
+ "name": "netAmount";
3312
+ "type": "u64";
3313
+ },
3314
+ {
3315
+ "name": "chainId";
3316
+ "type": "u64";
1593
3317
  }
1594
3318
  ];
1595
3319
  },
1596
3320
  {
1597
- "name": "pauseProgram";
3321
+ "name": "setAdmin";
1598
3322
  "discriminator": [
3323
+ 251,
3324
+ 163,
3325
+ 0,
3326
+ 52,
1599
3327
  91,
1600
- 86,
1601
- 253,
1602
- 175,
1603
- 66,
1604
- 236,
1605
- 172,
1606
- 124
3328
+ 194,
3329
+ 187,
3330
+ 92
1607
3331
  ];
1608
3332
  "accounts": [
1609
3333
  {
@@ -1637,32 +3361,27 @@ export type Escrow = {
1637
3361
  },
1638
3362
  {
1639
3363
  "name": "admin";
1640
- "writable": true;
1641
3364
  "signer": true;
1642
- },
1643
- {
1644
- "name": "systemProgram";
1645
- "address": "11111111111111111111111111111111";
1646
3365
  }
1647
3366
  ];
1648
3367
  "args": [
1649
3368
  {
1650
- "name": "targetState";
1651
- "type": "bool";
3369
+ "name": "newAdmin";
3370
+ "type": "pubkey";
1652
3371
  }
1653
3372
  ];
1654
3373
  },
1655
3374
  {
1656
- "name": "removeAdmin";
3375
+ "name": "setFundingWallet";
1657
3376
  "discriminator": [
1658
- 74,
1659
- 202,
1660
- 71,
1661
- 106,
1662
- 252,
1663
- 31,
1664
- 72,
1665
- 183
3377
+ 134,
3378
+ 34,
3379
+ 203,
3380
+ 88,
3381
+ 248,
3382
+ 13,
3383
+ 78,
3384
+ 30
1666
3385
  ];
1667
3386
  "accounts": [
1668
3387
  {
@@ -1702,27 +3421,26 @@ export type Escrow = {
1702
3421
  ];
1703
3422
  "args": [
1704
3423
  {
1705
- "name": "account";
3424
+ "name": "newFundingWallet";
1706
3425
  "type": "pubkey";
1707
3426
  }
1708
3427
  ];
1709
3428
  },
1710
3429
  {
1711
- "name": "removePaymentToken";
3430
+ "name": "setMaxFeeDelta";
1712
3431
  "discriminator": [
1713
- 119,
1714
- 18,
1715
- 240,
1716
- 223,
1717
- 126,
1718
- 168,
1719
- 165,
1720
- 117
3432
+ 184,
3433
+ 66,
3434
+ 78,
3435
+ 162,
3436
+ 85,
3437
+ 237,
3438
+ 83,
3439
+ 148
1721
3440
  ];
1722
3441
  "accounts": [
1723
3442
  {
1724
3443
  "name": "escrowConfig";
1725
- "writable": true;
1726
3444
  "pda": {
1727
3445
  "seeds": [
1728
3446
  {
@@ -1749,6 +3467,34 @@ export type Escrow = {
1749
3467
  ];
1750
3468
  };
1751
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
+ },
1752
3498
  {
1753
3499
  "name": "admin";
1754
3500
  "writable": true;
@@ -1757,25 +3503,22 @@ export type Escrow = {
1757
3503
  ];
1758
3504
  "args": [
1759
3505
  {
1760
- "name": "tokenMint";
1761
- "type": "pubkey";
3506
+ "name": "amount";
3507
+ "type": "u64";
1762
3508
  }
1763
3509
  ];
1764
3510
  },
1765
3511
  {
1766
- "name": "removeTokenFromEscrow";
1767
- "docs": [
1768
- "Admin Withdraw SPL tokens"
1769
- ];
3512
+ "name": "setReceiverTimelockConfig";
1770
3513
  "discriminator": [
1771
- 42,
1772
- 189,
1773
- 194,
1774
- 61,
1775
- 110,
1776
- 149,
1777
- 83,
1778
- 126
3514
+ 179,
3515
+ 116,
3516
+ 158,
3517
+ 165,
3518
+ 236,
3519
+ 240,
3520
+ 203,
3521
+ 78
1779
3522
  ];
1780
3523
  "accounts": [
1781
3524
  {
@@ -1807,240 +3550,130 @@ export type Escrow = {
1807
3550
  };
1808
3551
  },
1809
3552
  {
1810
- "name": "mint";
1811
- },
1812
- {
1813
- "name": "admin";
1814
- "writable": true;
1815
- "signer": true;
1816
- },
1817
- {
1818
- "name": "vaultAuthority";
3553
+ "name": "receiverTimelockConfig";
1819
3554
  "writable": true;
1820
3555
  "pda": {
1821
3556
  "seeds": [
1822
3557
  {
1823
3558
  "kind": "const";
1824
3559
  "value": [
3560
+ 114,
1825
3561
  101,
1826
- 115,
1827
3562
  99,
1828
- 114,
1829
- 111,
1830
- 119
1831
- ];
1832
- }
1833
- ];
1834
- };
1835
- },
1836
- {
1837
- "name": "vaultTokenAccount";
1838
- "writable": true;
1839
- "pda": {
1840
- "seeds": [
1841
- {
1842
- "kind": "account";
1843
- "path": "vaultAuthority";
1844
- },
1845
- {
1846
- "kind": "const";
1847
- "value": [
1848
- 6,
1849
- 221,
1850
- 246,
1851
- 225,
1852
- 215,
1853
3563
  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
1880
- ];
1881
- },
1882
- {
1883
- "kind": "account";
1884
- "path": "mint";
1885
- }
1886
- ];
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
- };
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
+ ];
1924
3584
  };
1925
3585
  },
1926
3586
  {
1927
- "name": "destinationTokenAccount";
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";
1928
3622
  "writable": true;
1929
3623
  "pda": {
1930
3624
  "seeds": [
1931
- {
1932
- "kind": "account";
1933
- "path": "admin";
1934
- },
1935
3625
  {
1936
3626
  "kind": "const";
1937
3627
  "value": [
1938
- 6,
1939
- 221,
1940
- 246,
1941
- 225,
1942
- 215,
1943
3628
  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
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
1970
3644
  ];
1971
- },
1972
- {
1973
- "kind": "account";
1974
- "path": "mint";
1975
3645
  }
1976
3646
  ];
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
3647
  };
2015
3648
  },
2016
3649
  {
2017
- "name": "tokenProgram";
2018
- "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
3650
+ "name": "admin";
3651
+ "writable": true;
3652
+ "signer": true;
2019
3653
  }
2020
3654
  ];
2021
3655
  "args": [
2022
3656
  {
2023
- "name": "amount";
2024
- "type": "u64";
3657
+ "name": "newSignatureWallet";
3658
+ "type": "pubkey";
2025
3659
  }
2026
3660
  ];
2027
3661
  },
2028
3662
  {
2029
- "name": "setAdmin";
3663
+ "name": "setTimelockConfig";
2030
3664
  "discriminator": [
3665
+ 176,
3666
+ 167,
3667
+ 10,
3668
+ 233,
2031
3669
  251,
2032
- 163,
2033
- 0,
2034
- 52,
2035
- 91,
2036
- 194,
2037
- 187,
2038
- 92
3670
+ 255,
3671
+ 15,
3672
+ 254
2039
3673
  ];
2040
3674
  "accounts": [
2041
3675
  {
2042
3676
  "name": "escrowConfig";
2043
- "writable": true;
2044
3677
  "pda": {
2045
3678
  "seeds": [
2046
3679
  {
@@ -2067,34 +3700,66 @@ export type Escrow = {
2067
3700
  ];
2068
3701
  };
2069
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
+ },
2070
3731
  {
2071
3732
  "name": "admin";
3733
+ "writable": true;
2072
3734
  "signer": true;
3735
+ },
3736
+ {
3737
+ "name": "systemProgram";
3738
+ "address": "11111111111111111111111111111111";
2073
3739
  }
2074
3740
  ];
2075
3741
  "args": [
2076
3742
  {
2077
- "name": "newAdmin";
2078
- "type": "pubkey";
3743
+ "name": "delaySeconds";
3744
+ "type": "i64";
2079
3745
  }
2080
3746
  ];
2081
3747
  },
2082
3748
  {
2083
- "name": "setFundingWallet";
3749
+ "name": "setWithdrawalThresholds";
2084
3750
  "discriminator": [
2085
- 134,
2086
- 34,
2087
- 203,
2088
- 88,
2089
- 248,
2090
- 13,
2091
- 78,
2092
- 30
3751
+ 210,
3752
+ 174,
3753
+ 130,
3754
+ 94,
3755
+ 94,
3756
+ 180,
3757
+ 181,
3758
+ 165
2093
3759
  ];
2094
3760
  "accounts": [
2095
3761
  {
2096
3762
  "name": "escrowConfig";
2097
- "writable": true;
2098
3763
  "pda": {
2099
3764
  "seeds": [
2100
3765
  {
@@ -2121,6 +3786,34 @@ export type Escrow = {
2121
3786
  ];
2122
3787
  };
2123
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
+ },
2124
3817
  {
2125
3818
  "name": "admin";
2126
3819
  "writable": true;
@@ -2129,8 +3822,12 @@ export type Escrow = {
2129
3822
  ];
2130
3823
  "args": [
2131
3824
  {
2132
- "name": "newFundingWallet";
2133
- "type": "pubkey";
3825
+ "name": "managerThreshold";
3826
+ "type": "u8";
3827
+ },
3828
+ {
3829
+ "name": "executiveThreshold";
3830
+ "type": "u8";
2134
3831
  }
2135
3832
  ];
2136
3833
  },
@@ -2560,16 +4257,55 @@ export type Escrow = {
2560
4257
  ];
2561
4258
  },
2562
4259
  {
2563
- "name": "escrowConfiguration";
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";
2564
4300
  "discriminator": [
2565
- 105,
2566
- 131,
2567
- 219,
2568
- 218,
2569
- 63,
2570
- 157,
2571
- 131,
2572
- 34
4301
+ 124,
4302
+ 54,
4303
+ 212,
4304
+ 227,
4305
+ 213,
4306
+ 189,
4307
+ 168,
4308
+ 41
2573
4309
  ];
2574
4310
  },
2575
4311
  {
@@ -2584,6 +4320,19 @@ export type Escrow = {
2584
4320
  45,
2585
4321
  160
2586
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
+ ];
2587
4336
  }
2588
4337
  ];
2589
4338
  "events": [
@@ -2664,6 +4413,45 @@ export type Escrow = {
2664
4413
  53,
2665
4414
  85
2666
4415
  ];
4416
+ },
4417
+ {
4418
+ "name": "withdrawalCancelledEvent";
4419
+ "discriminator": [
4420
+ 40,
4421
+ 218,
4422
+ 165,
4423
+ 230,
4424
+ 31,
4425
+ 49,
4426
+ 238,
4427
+ 127
4428
+ ];
4429
+ },
4430
+ {
4431
+ "name": "withdrawalExecutedEvent";
4432
+ "discriminator": [
4433
+ 60,
4434
+ 185,
4435
+ 83,
4436
+ 2,
4437
+ 206,
4438
+ 217,
4439
+ 44,
4440
+ 53
4441
+ ];
4442
+ },
4443
+ {
4444
+ "name": "withdrawalScheduledEvent";
4445
+ "discriminator": [
4446
+ 74,
4447
+ 43,
4448
+ 199,
4449
+ 56,
4450
+ 129,
4451
+ 1,
4452
+ 247,
4453
+ 68
4454
+ ];
2667
4455
  }
2668
4456
  ];
2669
4457
  "errors": [
@@ -2766,6 +4554,51 @@ export type Escrow = {
2766
4554
  "code": 6019;
2767
4555
  "name": "maxAdminCount";
2768
4556
  "msg": "Max admin count reached";
4557
+ },
4558
+ {
4559
+ "code": 6020;
4560
+ "name": "notInitialized";
4561
+ "msg": "Treasury config not initialized";
4562
+ },
4563
+ {
4564
+ "code": 6021;
4565
+ "name": "unauthorizedSigner";
4566
+ "msg": "Signer is not a treasury manager or executive";
4567
+ },
4568
+ {
4569
+ "code": 6022;
4570
+ "name": "insufficientManagerSigs";
4571
+ "msg": "Insufficient treasury manager signatures";
4572
+ },
4573
+ {
4574
+ "code": 6023;
4575
+ "name": "insufficientExecutiveSigs";
4576
+ "msg": "Insufficient treasury executive signatures";
4577
+ },
4578
+ {
4579
+ "code": 6024;
4580
+ "name": "maxRoleCount";
4581
+ "msg": "Max role member count reached";
4582
+ },
4583
+ {
4584
+ "code": 6025;
4585
+ "name": "invalidNetAmount";
4586
+ "msg": "net_amount exceeds committed_amount";
4587
+ },
4588
+ {
4589
+ "code": 6026;
4590
+ "name": "feeDeltaExceedsCap";
4591
+ "msg": "Fee delta exceeds max allowed cap";
4592
+ },
4593
+ {
4594
+ "code": 6027;
4595
+ "name": "timelockNotExpired";
4596
+ "msg": "Timelock has not expired yet";
4597
+ },
4598
+ {
4599
+ "code": 6028;
4600
+ "name": "invalidRequestId";
4601
+ "msg": "Request ID does not match commitment";
2769
4602
  }
2770
4603
  ];
2771
4604
  "types": [
@@ -2972,6 +4805,83 @@ export type Escrow = {
2972
4805
  ];
2973
4806
  };
2974
4807
  },
4808
+ {
4809
+ "name": "receiverTimelockConfig";
4810
+ "docs": [
4811
+ "Per-receiver timelock override. delay_seconds = 0 means trusted (immediate execution)."
4812
+ ];
4813
+ "type": {
4814
+ "kind": "struct";
4815
+ "fields": [
4816
+ {
4817
+ "name": "delaySeconds";
4818
+ "type": "i64";
4819
+ },
4820
+ {
4821
+ "name": "isSet";
4822
+ "type": "bool";
4823
+ }
4824
+ ];
4825
+ };
4826
+ },
4827
+ {
4828
+ "name": "timelockConfig";
4829
+ "docs": [
4830
+ "Global timelock delay applied to all withdrawals unless overridden per-receiver."
4831
+ ];
4832
+ "type": {
4833
+ "kind": "struct";
4834
+ "fields": [
4835
+ {
4836
+ "name": "delaySeconds";
4837
+ "type": "i64";
4838
+ },
4839
+ {
4840
+ "name": "isSet";
4841
+ "type": "bool";
4842
+ }
4843
+ ];
4844
+ };
4845
+ },
4846
+ {
4847
+ "name": "treasuryConfig";
4848
+ "type": {
4849
+ "kind": "struct";
4850
+ "fields": [
4851
+ {
4852
+ "name": "treasuryManagers";
4853
+ "type": {
4854
+ "vec": "pubkey";
4855
+ };
4856
+ },
4857
+ {
4858
+ "name": "treasuryExecutives";
4859
+ "type": {
4860
+ "vec": "pubkey";
4861
+ };
4862
+ },
4863
+ {
4864
+ "name": "managerThreshold";
4865
+ "type": "u8";
4866
+ },
4867
+ {
4868
+ "name": "executiveThreshold";
4869
+ "type": "u8";
4870
+ },
4871
+ {
4872
+ "name": "maxFeeDelta";
4873
+ "docs": [
4874
+ "Maximum allowable deduction between committed_amount and net_amount (0 = disabled)"
4875
+ ];
4876
+ "type": "u64";
4877
+ },
4878
+ {
4879
+ "name": "isInitialized";
4880
+ "type": "bool";
4881
+ }
4882
+ ];
4883
+ };
4884
+ },
2975
4885
  {
2976
4886
  "name": "withdrawNonce";
2977
4887
  "type": {
@@ -3051,6 +4961,157 @@ export type Escrow = {
3051
4961
  }
3052
4962
  ];
3053
4963
  };
4964
+ },
4965
+ {
4966
+ "name": "withdrawalCancelledEvent";
4967
+ "type": {
4968
+ "kind": "struct";
4969
+ "fields": [
4970
+ {
4971
+ "name": "requestId";
4972
+ "type": "u64";
4973
+ },
4974
+ {
4975
+ "name": "cancelledBy";
4976
+ "type": "pubkey";
4977
+ },
4978
+ {
4979
+ "name": "slot";
4980
+ "type": "u64";
4981
+ },
4982
+ {
4983
+ "name": "timestamp";
4984
+ "type": "i64";
4985
+ }
4986
+ ];
4987
+ };
4988
+ },
4989
+ {
4990
+ "name": "withdrawalCommitment";
4991
+ "type": {
4992
+ "kind": "struct";
4993
+ "fields": [
4994
+ {
4995
+ "name": "requestId";
4996
+ "type": "u64";
4997
+ },
4998
+ {
4999
+ "name": "committedAmount";
5000
+ "type": "u64";
5001
+ },
5002
+ {
5003
+ "name": "netAmount";
5004
+ "type": "u64";
5005
+ },
5006
+ {
5007
+ "name": "recipient";
5008
+ "type": "pubkey";
5009
+ },
5010
+ {
5011
+ "name": "tokenMint";
5012
+ "docs": [
5013
+ "For SOL withdrawals this is the System Program pubkey."
5014
+ ];
5015
+ "type": "pubkey";
5016
+ },
5017
+ {
5018
+ "name": "executeAt";
5019
+ "type": "i64";
5020
+ },
5021
+ {
5022
+ "name": "creator";
5023
+ "type": "pubkey";
5024
+ },
5025
+ {
5026
+ "name": "isSol";
5027
+ "type": "bool";
5028
+ },
5029
+ {
5030
+ "name": "chainId";
5031
+ "type": "u64";
5032
+ }
5033
+ ];
5034
+ };
5035
+ },
5036
+ {
5037
+ "name": "withdrawalExecutedEvent";
5038
+ "type": {
5039
+ "kind": "struct";
5040
+ "fields": [
5041
+ {
5042
+ "name": "requestId";
5043
+ "type": "u64";
5044
+ },
5045
+ {
5046
+ "name": "recipient";
5047
+ "type": "pubkey";
5048
+ },
5049
+ {
5050
+ "name": "netAmount";
5051
+ "type": "u64";
5052
+ },
5053
+ {
5054
+ "name": "tokenMint";
5055
+ "type": "pubkey";
5056
+ },
5057
+ {
5058
+ "name": "isSol";
5059
+ "type": "bool";
5060
+ },
5061
+ {
5062
+ "name": "slot";
5063
+ "type": "u64";
5064
+ },
5065
+ {
5066
+ "name": "timestamp";
5067
+ "type": "i64";
5068
+ }
5069
+ ];
5070
+ };
5071
+ },
5072
+ {
5073
+ "name": "withdrawalScheduledEvent";
5074
+ "type": {
5075
+ "kind": "struct";
5076
+ "fields": [
5077
+ {
5078
+ "name": "requestId";
5079
+ "type": "u64";
5080
+ },
5081
+ {
5082
+ "name": "recipient";
5083
+ "type": "pubkey";
5084
+ },
5085
+ {
5086
+ "name": "committedAmount";
5087
+ "type": "u64";
5088
+ },
5089
+ {
5090
+ "name": "netAmount";
5091
+ "type": "u64";
5092
+ },
5093
+ {
5094
+ "name": "tokenMint";
5095
+ "type": "pubkey";
5096
+ },
5097
+ {
5098
+ "name": "executeAt";
5099
+ "type": "i64";
5100
+ },
5101
+ {
5102
+ "name": "isSol";
5103
+ "type": "bool";
5104
+ },
5105
+ {
5106
+ "name": "slot";
5107
+ "type": "u64";
5108
+ },
5109
+ {
5110
+ "name": "timestamp";
5111
+ "type": "i64";
5112
+ }
5113
+ ];
5114
+ };
3054
5115
  }
3055
5116
  ];
3056
5117
  };