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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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,140 +1419,76 @@
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
- },
1209
- {
1210
- "kind": "account",
1211
- "path": "user"
1451
+ 102,
1452
+ 105,
1453
+ 103,
1454
+ 45,
1455
+ 118,
1456
+ 50
1457
+ ]
1212
1458
  }
1213
1459
  ]
1214
1460
  }
1215
1461
  },
1216
1462
  {
1217
- "name": "user",
1218
- "writable": true,
1219
- "signer": true
1220
- },
1221
- {
1222
- "name": "system_program",
1223
- "address": "11111111111111111111111111111111"
1224
- }
1225
- ],
1226
- "args": [],
1227
- "returns": "u64"
1228
- },
1229
- {
1230
- "name": "initialize_escrow_config",
1231
- "discriminator": [
1232
- 59,
1233
- 6,
1234
- 201,
1235
- 67,
1236
- 235,
1237
- 49,
1238
- 169,
1239
- 95
1240
- ],
1241
- "accounts": [
1242
- {
1243
- "name": "escrow_config",
1463
+ "name": "commitment",
1244
1464
  "writable": true,
1245
1465
  "pda": {
1246
1466
  "seeds": [
1247
1467
  {
1248
1468
  "kind": "const",
1249
1469
  "value": [
1250
- 101,
1251
- 115,
1252
- 99,
1253
- 114,
1254
- 111,
1255
1470
  119,
1256
- 45,
1257
- 99,
1258
- 111,
1259
- 110,
1260
- 102,
1261
1471
  105,
1262
- 103,
1263
- 45,
1264
- 118,
1265
- 50
1472
+ 116,
1473
+ 104,
1474
+ 100,
1475
+ 114,
1476
+ 97,
1477
+ 119,
1478
+ 97,
1479
+ 108
1266
1480
  ]
1481
+ },
1482
+ {
1483
+ "kind": "arg",
1484
+ "path": "request_id"
1267
1485
  }
1268
1486
  ]
1269
1487
  }
1270
1488
  },
1271
1489
  {
1272
- "name": "admin",
1490
+ "name": "vault_authority",
1273
1491
  "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",
1307
1492
  "pda": {
1308
1493
  "seeds": [
1309
1494
  {
@@ -1314,42 +1499,44 @@
1314
1499
  99,
1315
1500
  114,
1316
1501
  111,
1317
- 119,
1318
- 45,
1319
- 99,
1320
- 111,
1321
- 110,
1322
- 102,
1323
- 105,
1324
- 103,
1325
- 45,
1326
- 118,
1327
- 50
1502
+ 119
1328
1503
  ]
1329
1504
  }
1330
1505
  ]
1331
1506
  }
1507
+ },
1508
+ {
1509
+ "name": "recipient",
1510
+ "writable": true
1511
+ },
1512
+ {
1513
+ "name": "caller",
1514
+ "writable": true,
1515
+ "signer": true
1516
+ },
1517
+ {
1518
+ "name": "system_program",
1519
+ "address": "11111111111111111111111111111111"
1332
1520
  }
1333
1521
  ],
1334
1522
  "args": [
1335
1523
  {
1336
- "name": "account",
1337
- "type": "pubkey"
1524
+ "name": "request_id",
1525
+ "type": "u64"
1338
1526
  }
1339
- ],
1340
- "returns": "bool"
1527
+ ]
1341
1528
  },
1342
1529
  {
1343
- "name": "is_funding_pubkey",
1530
+ "name": "execute_withdrawal_spl",
1344
1531
  "discriminator": [
1345
- 252,
1346
- 56,
1347
- 255,
1348
- 21,
1349
- 13,
1532
+ 61,
1350
1533
  63,
1351
- 211,
1352
- 163
1534
+ 171,
1535
+ 104,
1536
+ 233,
1537
+ 62,
1538
+ 148,
1539
+ 55
1353
1540
  ],
1354
1541
  "accounts": [
1355
1542
  {
@@ -1379,76 +1566,39 @@
1379
1566
  }
1380
1567
  ]
1381
1568
  }
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": [
1569
+ },
1405
1570
  {
1406
- "name": "escrow_config",
1571
+ "name": "commitment",
1572
+ "writable": true,
1407
1573
  "pda": {
1408
1574
  "seeds": [
1409
1575
  {
1410
1576
  "kind": "const",
1411
1577
  "value": [
1412
- 101,
1413
- 115,
1414
- 99,
1415
- 114,
1416
- 111,
1417
1578
  119,
1418
- 45,
1419
- 99,
1420
- 111,
1421
- 110,
1422
- 102,
1423
1579
  105,
1424
- 103,
1425
- 45,
1426
- 118,
1427
- 50
1580
+ 116,
1581
+ 104,
1582
+ 100,
1583
+ 114,
1584
+ 97,
1585
+ 119,
1586
+ 97,
1587
+ 108
1428
1588
  ]
1589
+ },
1590
+ {
1591
+ "kind": "arg",
1592
+ "path": "request_id"
1429
1593
  }
1430
1594
  ]
1431
1595
  }
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": [
1596
+ },
1450
1597
  {
1451
- "name": "escrow_config",
1598
+ "name": "mint"
1599
+ },
1600
+ {
1601
+ "name": "vault_authority",
1452
1602
  "pda": {
1453
1603
  "seeds": [
1454
1604
  {
@@ -1459,110 +1609,204 @@
1459
1609
  99,
1460
1610
  114,
1461
1611
  111,
1462
- 119,
1463
- 45,
1464
- 99,
1465
- 111,
1466
- 110,
1467
- 102,
1468
- 105,
1469
- 103,
1470
- 45,
1471
- 118,
1472
- 50
1612
+ 119
1473
1613
  ]
1474
1614
  }
1475
1615
  ]
1476
1616
  }
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": [
1617
+ },
1500
1618
  {
1501
- "name": "escrow_config",
1502
- "docs": [
1503
- "Old account (smaller)"
1504
- ],
1619
+ "name": "vault_token_account",
1505
1620
  "writable": true,
1506
1621
  "pda": {
1507
1622
  "seeds": [
1623
+ {
1624
+ "kind": "account",
1625
+ "path": "vault_authority"
1626
+ },
1508
1627
  {
1509
1628
  "kind": "const",
1510
1629
  "value": [
1511
- 101,
1512
- 115,
1513
- 99,
1514
- 114,
1515
- 111,
1516
- 119,
1517
- 45,
1518
- 99,
1519
- 111,
1520
- 110,
1521
- 102,
1522
- 105,
1523
- 103
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
1524
1662
  ]
1663
+ },
1664
+ {
1665
+ "kind": "account",
1666
+ "path": "mint"
1525
1667
  }
1526
- ]
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
+ }
1527
1706
  }
1528
1707
  },
1529
1708
  {
1530
- "name": "new_escrow_config",
1531
- "docs": [
1532
- "New account with more space"
1533
- ],
1709
+ "name": "recipient"
1710
+ },
1711
+ {
1712
+ "name": "recipient_token_account",
1534
1713
  "writable": true,
1535
1714
  "pda": {
1536
1715
  "seeds": [
1716
+ {
1717
+ "kind": "account",
1718
+ "path": "recipient"
1719
+ },
1537
1720
  {
1538
1721
  "kind": "const",
1539
1722
  "value": [
1723
+ 6,
1724
+ 221,
1725
+ 246,
1726
+ 225,
1727
+ 215,
1540
1728
  101,
1541
- 115,
1542
- 99,
1543
- 114,
1544
- 111,
1545
- 119,
1546
- 45,
1547
- 99,
1548
- 111,
1549
- 110,
1550
- 102,
1551
- 105,
1552
- 103,
1553
- 45,
1554
- 118,
1555
- 50
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
1556
1755
  ]
1756
+ },
1757
+ {
1758
+ "kind": "account",
1759
+ "path": "mint"
1557
1760
  }
1558
- ]
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
+ }
1559
1799
  }
1560
1800
  },
1561
1801
  {
1562
- "name": "admin",
1802
+ "name": "caller",
1563
1803
  "writable": true,
1564
1804
  "signer": true
1565
1805
  },
1806
+ {
1807
+ "name": "token_program",
1808
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
1809
+ },
1566
1810
  {
1567
1811
  "name": "system_program",
1568
1812
  "address": "11111111111111111111111111111111"
@@ -1570,67 +1814,57 @@
1570
1814
  ],
1571
1815
  "args": [
1572
1816
  {
1573
- "name": "admins",
1574
- "type": {
1575
- "vec": "pubkey"
1576
- }
1577
- },
1578
- {
1579
- "name": "payment_tokens",
1580
- "type": {
1581
- "vec": "pubkey"
1582
- }
1583
- },
1584
- {
1585
- "name": "funding_wallet",
1586
- "type": "pubkey"
1817
+ "name": "request_id",
1818
+ "type": "u64"
1587
1819
  }
1588
1820
  ]
1589
1821
  },
1590
1822
  {
1591
- "name": "pause_program",
1823
+ "name": "get_nonce",
1592
1824
  "discriminator": [
1593
- 91,
1594
- 86,
1595
- 253,
1596
- 175,
1597
- 66,
1598
- 236,
1599
- 172,
1600
- 124
1825
+ 132,
1826
+ 129,
1827
+ 238,
1828
+ 76,
1829
+ 118,
1830
+ 10,
1831
+ 212,
1832
+ 7
1601
1833
  ],
1602
1834
  "accounts": [
1603
1835
  {
1604
- "name": "escrow_config",
1836
+ "name": "nonce_account",
1605
1837
  "writable": true,
1606
1838
  "pda": {
1607
1839
  "seeds": [
1608
1840
  {
1609
1841
  "kind": "const",
1610
1842
  "value": [
1611
- 101,
1612
- 115,
1613
- 99,
1843
+ 119,
1844
+ 105,
1845
+ 116,
1846
+ 104,
1847
+ 100,
1614
1848
  114,
1615
- 111,
1849
+ 97,
1616
1850
  119,
1617
1851
  45,
1618
- 99,
1852
+ 110,
1619
1853
  111,
1620
1854
  110,
1621
- 102,
1622
- 105,
1623
- 103,
1624
- 45,
1625
- 118,
1626
- 50
1855
+ 99,
1856
+ 101
1627
1857
  ]
1858
+ },
1859
+ {
1860
+ "kind": "account",
1861
+ "path": "user"
1628
1862
  }
1629
1863
  ]
1630
1864
  }
1631
1865
  },
1632
1866
  {
1633
- "name": "admin",
1867
+ "name": "user",
1634
1868
  "writable": true,
1635
1869
  "signer": true
1636
1870
  },
@@ -1639,24 +1873,20 @@
1639
1873
  "address": "11111111111111111111111111111111"
1640
1874
  }
1641
1875
  ],
1642
- "args": [
1643
- {
1644
- "name": "target_state",
1645
- "type": "bool"
1646
- }
1647
- ]
1876
+ "args": [],
1877
+ "returns": "u64"
1648
1878
  },
1649
1879
  {
1650
- "name": "remove_admin",
1880
+ "name": "initialize_escrow_config",
1651
1881
  "discriminator": [
1652
- 74,
1653
- 202,
1654
- 71,
1655
- 106,
1656
- 252,
1657
- 31,
1658
- 72,
1659
- 183
1882
+ 59,
1883
+ 6,
1884
+ 201,
1885
+ 67,
1886
+ 235,
1887
+ 49,
1888
+ 169,
1889
+ 95
1660
1890
  ],
1661
1891
  "accounts": [
1662
1892
  {
@@ -1692,31 +1922,38 @@
1692
1922
  "name": "admin",
1693
1923
  "writable": true,
1694
1924
  "signer": true
1925
+ },
1926
+ {
1927
+ "name": "system_program",
1928
+ "address": "11111111111111111111111111111111"
1695
1929
  }
1696
1930
  ],
1697
1931
  "args": [
1698
1932
  {
1699
- "name": "account",
1933
+ "name": "signer_pubkey",
1934
+ "type": "pubkey"
1935
+ },
1936
+ {
1937
+ "name": "funding_pubkey",
1700
1938
  "type": "pubkey"
1701
1939
  }
1702
1940
  ]
1703
1941
  },
1704
1942
  {
1705
- "name": "remove_payment_token",
1943
+ "name": "initialize_treasury_config",
1706
1944
  "discriminator": [
1707
- 119,
1708
- 18,
1709
- 240,
1710
- 223,
1711
- 126,
1712
- 168,
1713
- 165,
1714
- 117
1945
+ 42,
1946
+ 221,
1947
+ 143,
1948
+ 37,
1949
+ 13,
1950
+ 169,
1951
+ 92,
1952
+ 98
1715
1953
  ],
1716
1954
  "accounts": [
1717
1955
  {
1718
1956
  "name": "escrow_config",
1719
- "writable": true,
1720
1957
  "pda": {
1721
1958
  "seeds": [
1722
1959
  {
@@ -1743,33 +1980,66 @@
1743
1980
  ]
1744
1981
  }
1745
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
+ },
1746
2011
  {
1747
2012
  "name": "admin",
1748
2013
  "writable": true,
1749
2014
  "signer": true
2015
+ },
2016
+ {
2017
+ "name": "system_program",
2018
+ "address": "11111111111111111111111111111111"
1750
2019
  }
1751
2020
  ],
1752
2021
  "args": [
1753
2022
  {
1754
- "name": "token_mint",
1755
- "type": "pubkey"
2023
+ "name": "manager_threshold",
2024
+ "type": "u8"
2025
+ },
2026
+ {
2027
+ "name": "executive_threshold",
2028
+ "type": "u8"
1756
2029
  }
1757
2030
  ]
1758
2031
  },
1759
2032
  {
1760
- "name": "remove_token_from_escrow",
1761
- "docs": [
1762
- "Admin Withdraw SPL tokens"
1763
- ],
2033
+ "name": "is_admin_pubkey",
1764
2034
  "discriminator": [
1765
- 42,
1766
- 189,
1767
- 194,
1768
- 61,
1769
- 110,
1770
- 149,
1771
- 83,
1772
- 126
2035
+ 121,
2036
+ 139,
2037
+ 38,
2038
+ 24,
2039
+ 170,
2040
+ 99,
2041
+ 139,
2042
+ 243
1773
2043
  ],
1774
2044
  "accounts": [
1775
2045
  {
@@ -1799,18 +2069,31 @@
1799
2069
  }
1800
2070
  ]
1801
2071
  }
1802
- },
1803
- {
1804
- "name": "mint"
1805
- },
2072
+ }
2073
+ ],
2074
+ "args": [
1806
2075
  {
1807
- "name": "admin",
1808
- "writable": true,
1809
- "signer": true
1810
- },
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": [
1811
2095
  {
1812
- "name": "vault_authority",
1813
- "writable": true,
2096
+ "name": "escrow_config",
1814
2097
  "pda": {
1815
2098
  "seeds": [
1816
2099
  {
@@ -1821,219 +2104,173 @@
1821
2104
  99,
1822
2105
  114,
1823
2106
  111,
1824
- 119
2107
+ 119,
2108
+ 45,
2109
+ 99,
2110
+ 111,
2111
+ 110,
2112
+ 102,
2113
+ 105,
2114
+ 103,
2115
+ 45,
2116
+ 118,
2117
+ 50
1825
2118
  ]
1826
2119
  }
1827
2120
  ]
1828
2121
  }
1829
- },
2122
+ }
2123
+ ],
2124
+ "args": [
1830
2125
  {
1831
- "name": "vault_token_account",
1832
- "writable": true,
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",
1833
2147
  "pda": {
1834
2148
  "seeds": [
1835
- {
1836
- "kind": "account",
1837
- "path": "vault_authority"
1838
- },
1839
2149
  {
1840
2150
  "kind": "const",
1841
2151
  "value": [
1842
- 6,
1843
- 221,
1844
- 246,
1845
- 225,
1846
- 215,
1847
2152
  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
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
1874
2168
  ]
1875
- },
1876
- {
1877
- "kind": "account",
1878
- "path": "mint"
1879
2169
  }
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
- }
2170
+ ]
1918
2171
  }
1919
- },
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": [
1920
2190
  {
1921
- "name": "destination_token_account",
1922
- "writable": true,
2191
+ "name": "escrow_config",
1923
2192
  "pda": {
1924
2193
  "seeds": [
1925
- {
1926
- "kind": "account",
1927
- "path": "admin"
1928
- },
1929
2194
  {
1930
2195
  "kind": "const",
1931
2196
  "value": [
1932
- 6,
1933
- 221,
1934
- 246,
1935
- 225,
1936
- 215,
1937
2197
  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
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
1964
2213
  ]
1965
- },
1966
- {
1967
- "kind": "account",
1968
- "path": "mint"
1969
2214
  }
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
- }
2215
+ ]
2008
2216
  }
2009
- },
2010
- {
2011
- "name": "token_program",
2012
- "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
2013
2217
  }
2014
2218
  ],
2015
2219
  "args": [
2016
2220
  {
2017
- "name": "amount",
2018
- "type": "u64"
2221
+ "name": "token",
2222
+ "type": "pubkey"
2019
2223
  }
2020
- ]
2224
+ ],
2225
+ "returns": "bool"
2021
2226
  },
2022
2227
  {
2023
- "name": "set_admin",
2228
+ "name": "migrate_escrow_config",
2024
2229
  "discriminator": [
2025
- 251,
2026
- 163,
2027
- 0,
2028
- 52,
2029
- 91,
2030
- 194,
2031
- 187,
2032
- 92
2230
+ 221,
2231
+ 224,
2232
+ 135,
2233
+ 120,
2234
+ 28,
2235
+ 10,
2236
+ 75,
2237
+ 20
2033
2238
  ],
2034
2239
  "accounts": [
2035
2240
  {
2036
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
+ ],
2037
2274
  "writable": true,
2038
2275
  "pda": {
2039
2276
  "seeds": [
@@ -2063,27 +2300,44 @@
2063
2300
  },
2064
2301
  {
2065
2302
  "name": "admin",
2303
+ "writable": true,
2066
2304
  "signer": true
2305
+ },
2306
+ {
2307
+ "name": "system_program",
2308
+ "address": "11111111111111111111111111111111"
2067
2309
  }
2068
2310
  ],
2069
2311
  "args": [
2070
2312
  {
2071
- "name": "new_admin",
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",
2072
2326
  "type": "pubkey"
2073
2327
  }
2074
2328
  ]
2075
2329
  },
2076
2330
  {
2077
- "name": "set_funding_wallet",
2331
+ "name": "pause_program",
2078
2332
  "discriminator": [
2079
- 134,
2080
- 34,
2081
- 203,
2082
- 88,
2083
- 248,
2084
- 13,
2085
- 78,
2086
- 30
2333
+ 91,
2334
+ 86,
2335
+ 253,
2336
+ 175,
2337
+ 66,
2338
+ 236,
2339
+ 172,
2340
+ 124
2087
2341
  ],
2088
2342
  "accounts": [
2089
2343
  {
@@ -2119,30 +2373,35 @@
2119
2373
  "name": "admin",
2120
2374
  "writable": true,
2121
2375
  "signer": true
2376
+ },
2377
+ {
2378
+ "name": "system_program",
2379
+ "address": "11111111111111111111111111111111"
2122
2380
  }
2123
2381
  ],
2124
2382
  "args": [
2125
2383
  {
2126
- "name": "new_funding_wallet",
2127
- "type": "pubkey"
2384
+ "name": "target_state",
2385
+ "type": "bool"
2128
2386
  }
2129
2387
  ]
2130
2388
  },
2131
2389
  {
2132
- "name": "withdraw_sol_with_sig",
2390
+ "name": "remove_admin",
2133
2391
  "discriminator": [
2134
- 127,
2135
- 123,
2136
- 63,
2137
- 232,
2138
- 4,
2139
- 153,
2140
- 33,
2141
- 13
2392
+ 74,
2393
+ 202,
2394
+ 71,
2395
+ 106,
2396
+ 252,
2397
+ 31,
2398
+ 72,
2399
+ 183
2142
2400
  ],
2143
2401
  "accounts": [
2144
2402
  {
2145
2403
  "name": "escrow_config",
2404
+ "writable": true,
2146
2405
  "pda": {
2147
2406
  "seeds": [
2148
2407
  {
@@ -2170,12 +2429,33 @@
2170
2429
  }
2171
2430
  },
2172
2431
  {
2173
- "name": "user",
2432
+ "name": "admin",
2174
2433
  "writable": true,
2175
2434
  "signer": true
2176
- },
2177
- {
2178
- "name": "vault_authority",
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",
2179
2459
  "writable": true,
2180
2460
  "pda": {
2181
2461
  "seeds": [
@@ -2187,85 +2467,49 @@
2187
2467
  99,
2188
2468
  114,
2189
2469
  111,
2190
- 119
2191
- ]
2192
- }
2193
- ]
2194
- }
2195
- },
2196
- {
2197
- "name": "withdraw_nonce",
2198
- "writable": true,
2199
- "pda": {
2200
- "seeds": [
2201
- {
2202
- "kind": "const",
2203
- "value": [
2204
- 119,
2205
- 105,
2206
- 116,
2207
- 104,
2208
- 100,
2209
- 114,
2210
- 97,
2211
2470
  119,
2212
2471
  45,
2213
- 110,
2472
+ 99,
2214
2473
  111,
2215
2474
  110,
2216
- 99,
2217
- 101
2475
+ 102,
2476
+ 105,
2477
+ 103,
2478
+ 45,
2479
+ 118,
2480
+ 50
2218
2481
  ]
2219
- },
2220
- {
2221
- "kind": "account",
2222
- "path": "user"
2223
2482
  }
2224
2483
  ]
2225
2484
  }
2226
2485
  },
2227
2486
  {
2228
- "name": "recipient",
2229
- "writable": true
2230
- },
2231
- {
2232
- "name": "token_address"
2233
- },
2234
- {
2235
- "name": "system_program",
2236
- "address": "11111111111111111111111111111111"
2237
- },
2238
- {
2239
- "name": "instructions",
2240
- "address": "Sysvar1nstructions1111111111111111111111111"
2487
+ "name": "admin",
2488
+ "writable": true,
2489
+ "signer": true
2241
2490
  }
2242
2491
  ],
2243
2492
  "args": [
2244
2493
  {
2245
- "name": "amount",
2246
- "type": "u64"
2247
- },
2248
- {
2249
- "name": "chain_id",
2250
- "type": "u64"
2251
- },
2252
- {
2253
- "name": "request_id",
2254
- "type": "u64"
2494
+ "name": "token_mint",
2495
+ "type": "pubkey"
2255
2496
  }
2256
2497
  ]
2257
2498
  },
2258
2499
  {
2259
- "name": "withdraw_spl_with_sig",
2500
+ "name": "remove_token_from_escrow",
2501
+ "docs": [
2502
+ "Admin Withdraw SPL tokens"
2503
+ ],
2260
2504
  "discriminator": [
2261
- 97,
2262
- 26,
2263
- 53,
2264
- 97,
2265
- 35,
2266
- 183,
2267
- 69,
2268
- 237
2505
+ 42,
2506
+ 189,
2507
+ 194,
2508
+ 61,
2509
+ 110,
2510
+ 149,
2511
+ 83,
2512
+ 126
2269
2513
  ],
2270
2514
  "accounts": [
2271
2515
  {
@@ -2300,7 +2544,7 @@
2300
2544
  "name": "mint"
2301
2545
  },
2302
2546
  {
2303
- "name": "user",
2547
+ "name": "admin",
2304
2548
  "writable": true,
2305
2549
  "signer": true
2306
2550
  },
@@ -2414,20 +2658,13 @@
2414
2658
  }
2415
2659
  },
2416
2660
  {
2417
- "name": "withdraw_nonce"
2418
- },
2419
- {
2420
- "name": "recipient",
2421
- "writable": true
2422
- },
2423
- {
2424
- "name": "user_token_account",
2661
+ "name": "destination_token_account",
2425
2662
  "writable": true,
2426
2663
  "pda": {
2427
2664
  "seeds": [
2428
2665
  {
2429
2666
  "kind": "account",
2430
- "path": "user"
2667
+ "path": "admin"
2431
2668
  },
2432
2669
  {
2433
2670
  "kind": "const",
@@ -2513,86 +2750,1598 @@
2513
2750
  {
2514
2751
  "name": "token_program",
2515
2752
  "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
2516
- },
2517
- {
2518
- "name": "system_program",
2519
- "address": "11111111111111111111111111111111"
2520
- },
2521
- {
2522
- "name": "instructions",
2523
- "address": "Sysvar1nstructions1111111111111111111111111"
2524
2753
  }
2525
2754
  ],
2526
2755
  "args": [
2527
2756
  {
2528
2757
  "name": "amount",
2529
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
+ }
2530
2802
  },
2531
2803
  {
2532
- "name": "chain_id",
2533
- "type": "u64"
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
+ }
2534
2830
  },
2535
2831
  {
2536
- "name": "request_id",
2537
- "type": "u64"
2832
+ "name": "admin",
2833
+ "writable": true,
2834
+ "signer": true
2835
+ }
2836
+ ],
2837
+ "args": [
2838
+ {
2839
+ "name": "pubkey",
2840
+ "type": "pubkey"
2538
2841
  }
2539
- ]
2540
- }
2541
- ],
2542
- "accounts": [
2543
- {
2544
- "name": "EscrowConfig",
2545
- "discriminator": [
2546
- 138,
2547
- 174,
2548
- 227,
2549
- 187,
2550
- 239,
2551
- 148,
2552
- 1,
2553
- 44
2554
2842
  ]
2555
2843
  },
2556
2844
  {
2557
- "name": "EscrowConfiguration",
2845
+ "name": "remove_treasury_manager",
2558
2846
  "discriminator": [
2559
- 105,
2560
- 131,
2561
- 219,
2562
- 218,
2563
- 63,
2847
+ 82,
2848
+ 21,
2849
+ 184,
2850
+ 234,
2564
2851
  157,
2565
- 131,
2566
- 34
2567
- ]
2568
- },
2569
- {
2570
- "name": "WithdrawNonce",
2571
- "discriminator": [
2572
- 14,
2573
- 140,
2574
- 88,
2575
- 169,
2576
- 163,
2577
- 189,
2578
- 45,
2579
- 160
2580
- ]
2581
- }
2582
- ],
2583
- "events": [
2584
- {
2585
- "name": "AdminDeposit",
2586
- "discriminator": [
2587
- 59,
2588
- 248,
2589
- 135,
2590
- 30,
2591
- 114,
2592
- 173,
2593
- 182,
2594
- 26
2595
- ]
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",
3023
+ "pda": {
3024
+ "seeds": [
3025
+ {
3026
+ "kind": "const",
3027
+ "value": [
3028
+ 116,
3029
+ 105,
3030
+ 109,
3031
+ 101,
3032
+ 108,
3033
+ 111,
3034
+ 99,
3035
+ 107,
3036
+ 45,
3037
+ 99,
3038
+ 111,
3039
+ 110,
3040
+ 102,
3041
+ 105,
3042
+ 103
3043
+ ]
3044
+ }
3045
+ ]
3046
+ }
3047
+ },
3048
+ {
3049
+ "name": "receiver_timelock_config",
3050
+ "pda": {
3051
+ "seeds": [
3052
+ {
3053
+ "kind": "const",
3054
+ "value": [
3055
+ 114,
3056
+ 101,
3057
+ 99,
3058
+ 101,
3059
+ 105,
3060
+ 118,
3061
+ 101,
3062
+ 114,
3063
+ 45,
3064
+ 116,
3065
+ 105,
3066
+ 109,
3067
+ 101,
3068
+ 108,
3069
+ 111,
3070
+ 99,
3071
+ 107
3072
+ ]
3073
+ },
3074
+ {
3075
+ "kind": "account",
3076
+ "path": "recipient"
3077
+ }
3078
+ ]
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"
3096
+ }
3097
+ ],
3098
+ "args": [
3099
+ {
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"
3114
+ }
3115
+ ]
3116
+ },
3117
+ {
3118
+ "name": "schedule_withdrawal_spl",
3119
+ "discriminator": [
3120
+ 95,
3121
+ 68,
3122
+ 202,
3123
+ 149,
3124
+ 66,
3125
+ 113,
3126
+ 28,
3127
+ 201
3128
+ ],
3129
+ "accounts": [
3130
+ {
3131
+ "name": "escrow_config",
3132
+ "pda": {
3133
+ "seeds": [
3134
+ {
3135
+ "kind": "const",
3136
+ "value": [
3137
+ 101,
3138
+ 115,
3139
+ 99,
3140
+ 114,
3141
+ 111,
3142
+ 119,
3143
+ 45,
3144
+ 99,
3145
+ 111,
3146
+ 110,
3147
+ 102,
3148
+ 105,
3149
+ 103,
3150
+ 45,
3151
+ 118,
3152
+ 50
3153
+ ]
3154
+ }
3155
+ ]
3156
+ }
3157
+ },
3158
+ {
3159
+ "name": "treasury_config",
3160
+ "pda": {
3161
+ "seeds": [
3162
+ {
3163
+ "kind": "const",
3164
+ "value": [
3165
+ 116,
3166
+ 114,
3167
+ 101,
3168
+ 97,
3169
+ 115,
3170
+ 117,
3171
+ 114,
3172
+ 121,
3173
+ 45,
3174
+ 99,
3175
+ 111,
3176
+ 110,
3177
+ 102,
3178
+ 105,
3179
+ 103
3180
+ ]
3181
+ }
3182
+ ]
3183
+ }
3184
+ },
3185
+ {
3186
+ "name": "commitment",
3187
+ "writable": true,
3188
+ "pda": {
3189
+ "seeds": [
3190
+ {
3191
+ "kind": "const",
3192
+ "value": [
3193
+ 119,
3194
+ 105,
3195
+ 116,
3196
+ 104,
3197
+ 100,
3198
+ 114,
3199
+ 97,
3200
+ 119,
3201
+ 97,
3202
+ 108
3203
+ ]
3204
+ },
3205
+ {
3206
+ "kind": "arg",
3207
+ "path": "request_id"
3208
+ }
3209
+ ]
3210
+ }
3211
+ },
3212
+ {
3213
+ "name": "timelock_config",
3214
+ "pda": {
3215
+ "seeds": [
3216
+ {
3217
+ "kind": "const",
3218
+ "value": [
3219
+ 116,
3220
+ 105,
3221
+ 109,
3222
+ 101,
3223
+ 108,
3224
+ 111,
3225
+ 99,
3226
+ 107,
3227
+ 45,
3228
+ 99,
3229
+ 111,
3230
+ 110,
3231
+ 102,
3232
+ 105,
3233
+ 103
3234
+ ]
3235
+ }
3236
+ ]
3237
+ }
3238
+ },
3239
+ {
3240
+ "name": "receiver_timelock_config",
3241
+ "pda": {
3242
+ "seeds": [
3243
+ {
3244
+ "kind": "const",
3245
+ "value": [
3246
+ 114,
3247
+ 101,
3248
+ 99,
3249
+ 101,
3250
+ 105,
3251
+ 118,
3252
+ 101,
3253
+ 114,
3254
+ 45,
3255
+ 116,
3256
+ 105,
3257
+ 109,
3258
+ 101,
3259
+ 108,
3260
+ 111,
3261
+ 99,
3262
+ 107
3263
+ ]
3264
+ },
3265
+ {
3266
+ "kind": "account",
3267
+ "path": "recipient"
3268
+ }
3269
+ ]
3270
+ }
3271
+ },
3272
+ {
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",
3283
+ "writable": true,
3284
+ "signer": true
3285
+ },
3286
+ {
3287
+ "name": "system_program",
3288
+ "address": "11111111111111111111111111111111"
3289
+ },
3290
+ {
3291
+ "name": "instructions",
3292
+ "address": "Sysvar1nstructions1111111111111111111111111"
3293
+ }
3294
+ ],
3295
+ "args": [
3296
+ {
3297
+ "name": "request_id",
3298
+ "type": "u64"
3299
+ },
3300
+ {
3301
+ "name": "committed_amount",
3302
+ "type": "u64"
3303
+ },
3304
+ {
3305
+ "name": "net_amount",
3306
+ "type": "u64"
3307
+ },
3308
+ {
3309
+ "name": "chain_id",
3310
+ "type": "u64"
3311
+ }
3312
+ ]
3313
+ },
3314
+ {
3315
+ "name": "set_admin",
3316
+ "discriminator": [
3317
+ 251,
3318
+ 163,
3319
+ 0,
3320
+ 52,
3321
+ 91,
3322
+ 194,
3323
+ 187,
3324
+ 92
3325
+ ],
3326
+ "accounts": [
3327
+ {
3328
+ "name": "escrow_config",
3329
+ "writable": true,
3330
+ "pda": {
3331
+ "seeds": [
3332
+ {
3333
+ "kind": "const",
3334
+ "value": [
3335
+ 101,
3336
+ 115,
3337
+ 99,
3338
+ 114,
3339
+ 111,
3340
+ 119,
3341
+ 45,
3342
+ 99,
3343
+ 111,
3344
+ 110,
3345
+ 102,
3346
+ 105,
3347
+ 103,
3348
+ 45,
3349
+ 118,
3350
+ 50
3351
+ ]
3352
+ }
3353
+ ]
3354
+ }
3355
+ },
3356
+ {
3357
+ "name": "admin",
3358
+ "signer": true
3359
+ }
3360
+ ],
3361
+ "args": [
3362
+ {
3363
+ "name": "new_admin",
3364
+ "type": "pubkey"
3365
+ }
3366
+ ]
3367
+ },
3368
+ {
3369
+ "name": "set_funding_wallet",
3370
+ "discriminator": [
3371
+ 134,
3372
+ 34,
3373
+ 203,
3374
+ 88,
3375
+ 248,
3376
+ 13,
3377
+ 78,
3378
+ 30
3379
+ ],
3380
+ "accounts": [
3381
+ {
3382
+ "name": "escrow_config",
3383
+ "writable": true,
3384
+ "pda": {
3385
+ "seeds": [
3386
+ {
3387
+ "kind": "const",
3388
+ "value": [
3389
+ 101,
3390
+ 115,
3391
+ 99,
3392
+ 114,
3393
+ 111,
3394
+ 119,
3395
+ 45,
3396
+ 99,
3397
+ 111,
3398
+ 110,
3399
+ 102,
3400
+ 105,
3401
+ 103,
3402
+ 45,
3403
+ 118,
3404
+ 50
3405
+ ]
3406
+ }
3407
+ ]
3408
+ }
3409
+ },
3410
+ {
3411
+ "name": "admin",
3412
+ "writable": true,
3413
+ "signer": true
3414
+ }
3415
+ ],
3416
+ "args": [
3417
+ {
3418
+ "name": "new_funding_wallet",
3419
+ "type": "pubkey"
3420
+ }
3421
+ ]
3422
+ },
3423
+ {
3424
+ "name": "set_max_fee_delta",
3425
+ "discriminator": [
3426
+ 184,
3427
+ 66,
3428
+ 78,
3429
+ 162,
3430
+ 85,
3431
+ 237,
3432
+ 83,
3433
+ 148
3434
+ ],
3435
+ "accounts": [
3436
+ {
3437
+ "name": "escrow_config",
3438
+ "pda": {
3439
+ "seeds": [
3440
+ {
3441
+ "kind": "const",
3442
+ "value": [
3443
+ 101,
3444
+ 115,
3445
+ 99,
3446
+ 114,
3447
+ 111,
3448
+ 119,
3449
+ 45,
3450
+ 99,
3451
+ 111,
3452
+ 110,
3453
+ 102,
3454
+ 105,
3455
+ 103,
3456
+ 45,
3457
+ 118,
3458
+ 50
3459
+ ]
3460
+ }
3461
+ ]
3462
+ }
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
+ },
3492
+ {
3493
+ "name": "admin",
3494
+ "writable": true,
3495
+ "signer": true
3496
+ }
3497
+ ],
3498
+ "args": [
3499
+ {
3500
+ "name": "amount",
3501
+ "type": "u64"
3502
+ }
3503
+ ]
3504
+ },
3505
+ {
3506
+ "name": "set_receiver_timelock_config",
3507
+ "discriminator": [
3508
+ 179,
3509
+ 116,
3510
+ 158,
3511
+ 165,
3512
+ 236,
3513
+ 240,
3514
+ 203,
3515
+ 78
3516
+ ],
3517
+ "accounts": [
3518
+ {
3519
+ "name": "escrow_config",
3520
+ "pda": {
3521
+ "seeds": [
3522
+ {
3523
+ "kind": "const",
3524
+ "value": [
3525
+ 101,
3526
+ 115,
3527
+ 99,
3528
+ 114,
3529
+ 111,
3530
+ 119,
3531
+ 45,
3532
+ 99,
3533
+ 111,
3534
+ 110,
3535
+ 102,
3536
+ 105,
3537
+ 103,
3538
+ 45,
3539
+ 118,
3540
+ 50
3541
+ ]
3542
+ }
3543
+ ]
3544
+ }
3545
+ },
3546
+ {
3547
+ "name": "receiver_timelock_config",
3548
+ "writable": true,
3549
+ "pda": {
3550
+ "seeds": [
3551
+ {
3552
+ "kind": "const",
3553
+ "value": [
3554
+ 114,
3555
+ 101,
3556
+ 99,
3557
+ 101,
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
+ ]
3578
+ }
3579
+ },
3580
+ {
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",
3616
+ "writable": true,
3617
+ "pda": {
3618
+ "seeds": [
3619
+ {
3620
+ "kind": "const",
3621
+ "value": [
3622
+ 101,
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
3638
+ ]
3639
+ }
3640
+ ]
3641
+ }
3642
+ },
3643
+ {
3644
+ "name": "admin",
3645
+ "writable": true,
3646
+ "signer": true
3647
+ }
3648
+ ],
3649
+ "args": [
3650
+ {
3651
+ "name": "new_signature_wallet",
3652
+ "type": "pubkey"
3653
+ }
3654
+ ]
3655
+ },
3656
+ {
3657
+ "name": "set_timelock_config",
3658
+ "discriminator": [
3659
+ 176,
3660
+ 167,
3661
+ 10,
3662
+ 233,
3663
+ 251,
3664
+ 255,
3665
+ 15,
3666
+ 254
3667
+ ],
3668
+ "accounts": [
3669
+ {
3670
+ "name": "escrow_config",
3671
+ "pda": {
3672
+ "seeds": [
3673
+ {
3674
+ "kind": "const",
3675
+ "value": [
3676
+ 101,
3677
+ 115,
3678
+ 99,
3679
+ 114,
3680
+ 111,
3681
+ 119,
3682
+ 45,
3683
+ 99,
3684
+ 111,
3685
+ 110,
3686
+ 102,
3687
+ 105,
3688
+ 103,
3689
+ 45,
3690
+ 118,
3691
+ 50
3692
+ ]
3693
+ }
3694
+ ]
3695
+ }
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
+ },
3725
+ {
3726
+ "name": "admin",
3727
+ "writable": true,
3728
+ "signer": true
3729
+ },
3730
+ {
3731
+ "name": "system_program",
3732
+ "address": "11111111111111111111111111111111"
3733
+ }
3734
+ ],
3735
+ "args": [
3736
+ {
3737
+ "name": "delay_seconds",
3738
+ "type": "i64"
3739
+ }
3740
+ ]
3741
+ },
3742
+ {
3743
+ "name": "set_withdrawal_thresholds",
3744
+ "discriminator": [
3745
+ 210,
3746
+ 174,
3747
+ 130,
3748
+ 94,
3749
+ 94,
3750
+ 180,
3751
+ 181,
3752
+ 165
3753
+ ],
3754
+ "accounts": [
3755
+ {
3756
+ "name": "escrow_config",
3757
+ "pda": {
3758
+ "seeds": [
3759
+ {
3760
+ "kind": "const",
3761
+ "value": [
3762
+ 101,
3763
+ 115,
3764
+ 99,
3765
+ 114,
3766
+ 111,
3767
+ 119,
3768
+ 45,
3769
+ 99,
3770
+ 111,
3771
+ 110,
3772
+ 102,
3773
+ 105,
3774
+ 103,
3775
+ 45,
3776
+ 118,
3777
+ 50
3778
+ ]
3779
+ }
3780
+ ]
3781
+ }
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
+ },
3811
+ {
3812
+ "name": "admin",
3813
+ "writable": true,
3814
+ "signer": true
3815
+ }
3816
+ ],
3817
+ "args": [
3818
+ {
3819
+ "name": "manager_threshold",
3820
+ "type": "u8"
3821
+ },
3822
+ {
3823
+ "name": "executive_threshold",
3824
+ "type": "u8"
3825
+ }
3826
+ ]
3827
+ },
3828
+ {
3829
+ "name": "withdraw_sol_with_sig",
3830
+ "discriminator": [
3831
+ 127,
3832
+ 123,
3833
+ 63,
3834
+ 232,
3835
+ 4,
3836
+ 153,
3837
+ 33,
3838
+ 13
3839
+ ],
3840
+ "accounts": [
3841
+ {
3842
+ "name": "escrow_config",
3843
+ "pda": {
3844
+ "seeds": [
3845
+ {
3846
+ "kind": "const",
3847
+ "value": [
3848
+ 101,
3849
+ 115,
3850
+ 99,
3851
+ 114,
3852
+ 111,
3853
+ 119,
3854
+ 45,
3855
+ 99,
3856
+ 111,
3857
+ 110,
3858
+ 102,
3859
+ 105,
3860
+ 103,
3861
+ 45,
3862
+ 118,
3863
+ 50
3864
+ ]
3865
+ }
3866
+ ]
3867
+ }
3868
+ },
3869
+ {
3870
+ "name": "user",
3871
+ "writable": true,
3872
+ "signer": true
3873
+ },
3874
+ {
3875
+ "name": "vault_authority",
3876
+ "writable": true,
3877
+ "pda": {
3878
+ "seeds": [
3879
+ {
3880
+ "kind": "const",
3881
+ "value": [
3882
+ 101,
3883
+ 115,
3884
+ 99,
3885
+ 114,
3886
+ 111,
3887
+ 119
3888
+ ]
3889
+ }
3890
+ ]
3891
+ }
3892
+ },
3893
+ {
3894
+ "name": "withdraw_nonce",
3895
+ "writable": true,
3896
+ "pda": {
3897
+ "seeds": [
3898
+ {
3899
+ "kind": "const",
3900
+ "value": [
3901
+ 119,
3902
+ 105,
3903
+ 116,
3904
+ 104,
3905
+ 100,
3906
+ 114,
3907
+ 97,
3908
+ 119,
3909
+ 45,
3910
+ 110,
3911
+ 111,
3912
+ 110,
3913
+ 99,
3914
+ 101
3915
+ ]
3916
+ },
3917
+ {
3918
+ "kind": "account",
3919
+ "path": "user"
3920
+ }
3921
+ ]
3922
+ }
3923
+ },
3924
+ {
3925
+ "name": "recipient",
3926
+ "writable": true
3927
+ },
3928
+ {
3929
+ "name": "token_address"
3930
+ },
3931
+ {
3932
+ "name": "system_program",
3933
+ "address": "11111111111111111111111111111111"
3934
+ },
3935
+ {
3936
+ "name": "instructions",
3937
+ "address": "Sysvar1nstructions1111111111111111111111111"
3938
+ }
3939
+ ],
3940
+ "args": [
3941
+ {
3942
+ "name": "amount",
3943
+ "type": "u64"
3944
+ },
3945
+ {
3946
+ "name": "chain_id",
3947
+ "type": "u64"
3948
+ },
3949
+ {
3950
+ "name": "request_id",
3951
+ "type": "u64"
3952
+ }
3953
+ ]
3954
+ },
3955
+ {
3956
+ "name": "withdraw_spl_with_sig",
3957
+ "discriminator": [
3958
+ 97,
3959
+ 26,
3960
+ 53,
3961
+ 97,
3962
+ 35,
3963
+ 183,
3964
+ 69,
3965
+ 237
3966
+ ],
3967
+ "accounts": [
3968
+ {
3969
+ "name": "escrow_config",
3970
+ "pda": {
3971
+ "seeds": [
3972
+ {
3973
+ "kind": "const",
3974
+ "value": [
3975
+ 101,
3976
+ 115,
3977
+ 99,
3978
+ 114,
3979
+ 111,
3980
+ 119,
3981
+ 45,
3982
+ 99,
3983
+ 111,
3984
+ 110,
3985
+ 102,
3986
+ 105,
3987
+ 103,
3988
+ 45,
3989
+ 118,
3990
+ 50
3991
+ ]
3992
+ }
3993
+ ]
3994
+ }
3995
+ },
3996
+ {
3997
+ "name": "mint"
3998
+ },
3999
+ {
4000
+ "name": "user",
4001
+ "writable": true,
4002
+ "signer": true
4003
+ },
4004
+ {
4005
+ "name": "vault_authority",
4006
+ "writable": true,
4007
+ "pda": {
4008
+ "seeds": [
4009
+ {
4010
+ "kind": "const",
4011
+ "value": [
4012
+ 101,
4013
+ 115,
4014
+ 99,
4015
+ 114,
4016
+ 111,
4017
+ 119
4018
+ ]
4019
+ }
4020
+ ]
4021
+ }
4022
+ },
4023
+ {
4024
+ "name": "vault_token_account",
4025
+ "writable": true,
4026
+ "pda": {
4027
+ "seeds": [
4028
+ {
4029
+ "kind": "account",
4030
+ "path": "vault_authority"
4031
+ },
4032
+ {
4033
+ "kind": "const",
4034
+ "value": [
4035
+ 6,
4036
+ 221,
4037
+ 246,
4038
+ 225,
4039
+ 215,
4040
+ 101,
4041
+ 161,
4042
+ 147,
4043
+ 217,
4044
+ 203,
4045
+ 225,
4046
+ 70,
4047
+ 206,
4048
+ 235,
4049
+ 121,
4050
+ 172,
4051
+ 28,
4052
+ 180,
4053
+ 133,
4054
+ 237,
4055
+ 95,
4056
+ 91,
4057
+ 55,
4058
+ 145,
4059
+ 58,
4060
+ 140,
4061
+ 245,
4062
+ 133,
4063
+ 126,
4064
+ 255,
4065
+ 0,
4066
+ 169
4067
+ ]
4068
+ },
4069
+ {
4070
+ "kind": "account",
4071
+ "path": "mint"
4072
+ }
4073
+ ],
4074
+ "program": {
4075
+ "kind": "const",
4076
+ "value": [
4077
+ 140,
4078
+ 151,
4079
+ 37,
4080
+ 143,
4081
+ 78,
4082
+ 36,
4083
+ 137,
4084
+ 241,
4085
+ 187,
4086
+ 61,
4087
+ 16,
4088
+ 41,
4089
+ 20,
4090
+ 142,
4091
+ 13,
4092
+ 131,
4093
+ 11,
4094
+ 90,
4095
+ 19,
4096
+ 153,
4097
+ 218,
4098
+ 255,
4099
+ 16,
4100
+ 132,
4101
+ 4,
4102
+ 142,
4103
+ 123,
4104
+ 216,
4105
+ 219,
4106
+ 233,
4107
+ 248,
4108
+ 89
4109
+ ]
4110
+ }
4111
+ }
4112
+ },
4113
+ {
4114
+ "name": "withdraw_nonce"
4115
+ },
4116
+ {
4117
+ "name": "recipient",
4118
+ "writable": true
4119
+ },
4120
+ {
4121
+ "name": "user_token_account",
4122
+ "writable": true,
4123
+ "pda": {
4124
+ "seeds": [
4125
+ {
4126
+ "kind": "account",
4127
+ "path": "user"
4128
+ },
4129
+ {
4130
+ "kind": "const",
4131
+ "value": [
4132
+ 6,
4133
+ 221,
4134
+ 246,
4135
+ 225,
4136
+ 215,
4137
+ 101,
4138
+ 161,
4139
+ 147,
4140
+ 217,
4141
+ 203,
4142
+ 225,
4143
+ 70,
4144
+ 206,
4145
+ 235,
4146
+ 121,
4147
+ 172,
4148
+ 28,
4149
+ 180,
4150
+ 133,
4151
+ 237,
4152
+ 95,
4153
+ 91,
4154
+ 55,
4155
+ 145,
4156
+ 58,
4157
+ 140,
4158
+ 245,
4159
+ 133,
4160
+ 126,
4161
+ 255,
4162
+ 0,
4163
+ 169
4164
+ ]
4165
+ },
4166
+ {
4167
+ "kind": "account",
4168
+ "path": "mint"
4169
+ }
4170
+ ],
4171
+ "program": {
4172
+ "kind": "const",
4173
+ "value": [
4174
+ 140,
4175
+ 151,
4176
+ 37,
4177
+ 143,
4178
+ 78,
4179
+ 36,
4180
+ 137,
4181
+ 241,
4182
+ 187,
4183
+ 61,
4184
+ 16,
4185
+ 41,
4186
+ 20,
4187
+ 142,
4188
+ 13,
4189
+ 131,
4190
+ 11,
4191
+ 90,
4192
+ 19,
4193
+ 153,
4194
+ 218,
4195
+ 255,
4196
+ 16,
4197
+ 132,
4198
+ 4,
4199
+ 142,
4200
+ 123,
4201
+ 216,
4202
+ 219,
4203
+ 233,
4204
+ 248,
4205
+ 89
4206
+ ]
4207
+ }
4208
+ }
4209
+ },
4210
+ {
4211
+ "name": "token_program",
4212
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
4213
+ },
4214
+ {
4215
+ "name": "system_program",
4216
+ "address": "11111111111111111111111111111111"
4217
+ },
4218
+ {
4219
+ "name": "instructions",
4220
+ "address": "Sysvar1nstructions1111111111111111111111111"
4221
+ }
4222
+ ],
4223
+ "args": [
4224
+ {
4225
+ "name": "amount",
4226
+ "type": "u64"
4227
+ },
4228
+ {
4229
+ "name": "chain_id",
4230
+ "type": "u64"
4231
+ },
4232
+ {
4233
+ "name": "request_id",
4234
+ "type": "u64"
4235
+ }
4236
+ ]
4237
+ }
4238
+ ],
4239
+ "accounts": [
4240
+ {
4241
+ "name": "EscrowConfig",
4242
+ "discriminator": [
4243
+ 138,
4244
+ 174,
4245
+ 227,
4246
+ 187,
4247
+ 239,
4248
+ 148,
4249
+ 1,
4250
+ 44
4251
+ ]
4252
+ },
4253
+ {
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",
4294
+ "discriminator": [
4295
+ 124,
4296
+ 54,
4297
+ 212,
4298
+ 227,
4299
+ 213,
4300
+ 189,
4301
+ 168,
4302
+ 41
4303
+ ]
4304
+ },
4305
+ {
4306
+ "name": "WithdrawNonce",
4307
+ "discriminator": [
4308
+ 14,
4309
+ 140,
4310
+ 88,
4311
+ 169,
4312
+ 163,
4313
+ 189,
4314
+ 45,
4315
+ 160
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
+ ]
4330
+ }
4331
+ ],
4332
+ "events": [
4333
+ {
4334
+ "name": "AdminDeposit",
4335
+ "discriminator": [
4336
+ 59,
4337
+ 248,
4338
+ 135,
4339
+ 30,
4340
+ 114,
4341
+ 173,
4342
+ 182,
4343
+ 26
4344
+ ]
2596
4345
  },
2597
4346
  {
2598
4347
  "name": "AdminWithdraw",
@@ -2633,6 +4382,84 @@
2633
4382
  23
2634
4383
  ]
2635
4384
  },
4385
+ {
4386
+ "name": "MaxFeeDeltaConfiguredEvent",
4387
+ "discriminator": [
4388
+ 22,
4389
+ 138,
4390
+ 194,
4391
+ 64,
4392
+ 245,
4393
+ 136,
4394
+ 168,
4395
+ 16
4396
+ ]
4397
+ },
4398
+ {
4399
+ "name": "ReceiverTimelockConfiguredEvent",
4400
+ "discriminator": [
4401
+ 133,
4402
+ 139,
4403
+ 55,
4404
+ 62,
4405
+ 207,
4406
+ 76,
4407
+ 16,
4408
+ 95
4409
+ ]
4410
+ },
4411
+ {
4412
+ "name": "RoleGranted",
4413
+ "discriminator": [
4414
+ 220,
4415
+ 183,
4416
+ 89,
4417
+ 228,
4418
+ 143,
4419
+ 63,
4420
+ 246,
4421
+ 58
4422
+ ]
4423
+ },
4424
+ {
4425
+ "name": "RoleRevoked",
4426
+ "discriminator": [
4427
+ 167,
4428
+ 183,
4429
+ 52,
4430
+ 229,
4431
+ 126,
4432
+ 206,
4433
+ 62,
4434
+ 61
4435
+ ]
4436
+ },
4437
+ {
4438
+ "name": "TimelockConfiguredEvent",
4439
+ "discriminator": [
4440
+ 95,
4441
+ 91,
4442
+ 67,
4443
+ 84,
4444
+ 32,
4445
+ 210,
4446
+ 3,
4447
+ 116
4448
+ ]
4449
+ },
4450
+ {
4451
+ "name": "TreasuryConfigInitializedEvent",
4452
+ "discriminator": [
4453
+ 170,
4454
+ 202,
4455
+ 243,
4456
+ 194,
4457
+ 90,
4458
+ 143,
4459
+ 28,
4460
+ 119
4461
+ ]
4462
+ },
2636
4463
  {
2637
4464
  "name": "WithdrawSolEvent",
2638
4465
  "discriminator": [
@@ -2658,6 +4485,58 @@
2658
4485
  53,
2659
4486
  85
2660
4487
  ]
4488
+ },
4489
+ {
4490
+ "name": "WithdrawalCancelledEvent",
4491
+ "discriminator": [
4492
+ 40,
4493
+ 218,
4494
+ 165,
4495
+ 230,
4496
+ 31,
4497
+ 49,
4498
+ 238,
4499
+ 127
4500
+ ]
4501
+ },
4502
+ {
4503
+ "name": "WithdrawalExecutedEvent",
4504
+ "discriminator": [
4505
+ 60,
4506
+ 185,
4507
+ 83,
4508
+ 2,
4509
+ 206,
4510
+ 217,
4511
+ 44,
4512
+ 53
4513
+ ]
4514
+ },
4515
+ {
4516
+ "name": "WithdrawalScheduledEvent",
4517
+ "discriminator": [
4518
+ 74,
4519
+ 43,
4520
+ 199,
4521
+ 56,
4522
+ 129,
4523
+ 1,
4524
+ 247,
4525
+ 68
4526
+ ]
4527
+ },
4528
+ {
4529
+ "name": "WithdrawalThresholdsConfiguredEvent",
4530
+ "discriminator": [
4531
+ 233,
4532
+ 231,
4533
+ 110,
4534
+ 102,
4535
+ 162,
4536
+ 86,
4537
+ 78,
4538
+ 118
4539
+ ]
2661
4540
  }
2662
4541
  ],
2663
4542
  "errors": [
@@ -2712,82 +4591,508 @@
2712
4591
  "msg": "Public Key out of bounds"
2713
4592
  },
2714
4593
  {
2715
- "code": 6010,
2716
- "name": "InvalidSigner",
2717
- "msg": "Invalid signer publickey"
4594
+ "code": 6010,
4595
+ "name": "InvalidSigner",
4596
+ "msg": "Invalid signer publickey"
4597
+ },
4598
+ {
4599
+ "code": 6011,
4600
+ "name": "AlreadyExists",
4601
+ "msg": "Account already exists in the list"
4602
+ },
4603
+ {
4604
+ "code": 6012,
4605
+ "name": "NotFound",
4606
+ "msg": "Account not found in the list"
4607
+ },
4608
+ {
4609
+ "code": 6013,
4610
+ "name": "InvalidPaymenToken",
4611
+ "msg": "Invalid payment token."
4612
+ },
4613
+ {
4614
+ "code": 6014,
4615
+ "name": "InsufficientSPLReserves",
4616
+ "msg": "Insufficient SPL reserve balance."
4617
+ },
4618
+ {
4619
+ "code": 6015,
4620
+ "name": "InsufficientSOLReserves",
4621
+ "msg": "Insufficient SOL reserve balance."
4622
+ },
4623
+ {
4624
+ "code": 6016,
4625
+ "name": "Paused",
4626
+ "msg": "Program is paused"
4627
+ },
4628
+ {
4629
+ "code": 6017,
4630
+ "name": "SameState",
4631
+ "msg": "Program is already in this state"
4632
+ },
4633
+ {
4634
+ "code": 6018,
4635
+ "name": "MaxPaymentTokenCount",
4636
+ "msg": "Max payment tokens count reached"
4637
+ },
4638
+ {
4639
+ "code": 6019,
4640
+ "name": "MaxAdminCount",
4641
+ "msg": "Max admin count reached"
4642
+ },
4643
+ {
4644
+ "code": 6020,
4645
+ "name": "NotInitialized",
4646
+ "msg": "Treasury config not initialized"
4647
+ },
4648
+ {
4649
+ "code": 6021,
4650
+ "name": "UnauthorizedSigner",
4651
+ "msg": "Signer is not a treasury manager or executive"
4652
+ },
4653
+ {
4654
+ "code": 6022,
4655
+ "name": "InsufficientManagerSigs",
4656
+ "msg": "Insufficient treasury manager signatures"
4657
+ },
4658
+ {
4659
+ "code": 6023,
4660
+ "name": "InsufficientExecutiveSigs",
4661
+ "msg": "Insufficient treasury executive signatures"
4662
+ },
4663
+ {
4664
+ "code": 6024,
4665
+ "name": "MaxRoleCount",
4666
+ "msg": "Max role member count reached"
4667
+ },
4668
+ {
4669
+ "code": 6025,
4670
+ "name": "InvalidNetAmount",
4671
+ "msg": "net_amount exceeds committed_amount"
4672
+ },
4673
+ {
4674
+ "code": 6026,
4675
+ "name": "FeeDeltaExceedsCap",
4676
+ "msg": "Fee delta exceeds max allowed cap"
4677
+ },
4678
+ {
4679
+ "code": 6027,
4680
+ "name": "TimelockNotExpired",
4681
+ "msg": "Timelock has not expired yet"
4682
+ },
4683
+ {
4684
+ "code": 6028,
4685
+ "name": "InvalidRequestId",
4686
+ "msg": "Request ID does not match commitment"
4687
+ }
4688
+ ],
4689
+ "types": [
4690
+ {
4691
+ "name": "AdminDeposit",
4692
+ "type": {
4693
+ "kind": "struct",
4694
+ "fields": [
4695
+ {
4696
+ "name": "caller",
4697
+ "type": "pubkey"
4698
+ },
4699
+ {
4700
+ "name": "depositor",
4701
+ "type": "pubkey"
4702
+ },
4703
+ {
4704
+ "name": "recipient",
4705
+ "type": "pubkey"
4706
+ },
4707
+ {
4708
+ "name": "token",
4709
+ "type": "pubkey"
4710
+ },
4711
+ {
4712
+ "name": "amount",
4713
+ "type": "u64"
4714
+ },
4715
+ {
4716
+ "name": "slot",
4717
+ "type": "u64"
4718
+ },
4719
+ {
4720
+ "name": "timestamp",
4721
+ "type": "i64"
4722
+ }
4723
+ ]
4724
+ }
4725
+ },
4726
+ {
4727
+ "name": "AdminWithdraw",
4728
+ "type": {
4729
+ "kind": "struct",
4730
+ "fields": [
4731
+ {
4732
+ "name": "caller",
4733
+ "type": "pubkey"
4734
+ },
4735
+ {
4736
+ "name": "recipient",
4737
+ "type": "pubkey"
4738
+ },
4739
+ {
4740
+ "name": "token",
4741
+ "type": "pubkey"
4742
+ },
4743
+ {
4744
+ "name": "amount",
4745
+ "type": "u64"
4746
+ },
4747
+ {
4748
+ "name": "slot",
4749
+ "type": "u64"
4750
+ },
4751
+ {
4752
+ "name": "timestamp",
4753
+ "type": "i64"
4754
+ }
4755
+ ]
4756
+ }
2718
4757
  },
2719
4758
  {
2720
- "code": 6011,
2721
- "name": "AlreadyExists",
2722
- "msg": "Account already exists in the list"
4759
+ "name": "DepositSolEvent",
4760
+ "type": {
4761
+ "kind": "struct",
4762
+ "fields": [
4763
+ {
4764
+ "name": "caller",
4765
+ "type": "pubkey"
4766
+ },
4767
+ {
4768
+ "name": "depositor",
4769
+ "type": "pubkey"
4770
+ },
4771
+ {
4772
+ "name": "vault_authority",
4773
+ "type": "pubkey"
4774
+ },
4775
+ {
4776
+ "name": "amount",
4777
+ "type": "u64"
4778
+ },
4779
+ {
4780
+ "name": "bonus_code",
4781
+ "type": "string"
4782
+ },
4783
+ {
4784
+ "name": "slot",
4785
+ "type": "u64"
4786
+ },
4787
+ {
4788
+ "name": "timestamp",
4789
+ "type": "i64"
4790
+ }
4791
+ ]
4792
+ }
2723
4793
  },
2724
4794
  {
2725
- "code": 6012,
2726
- "name": "NotFound",
2727
- "msg": "Account not found in the list"
4795
+ "name": "DepositSplEvent",
4796
+ "type": {
4797
+ "kind": "struct",
4798
+ "fields": [
4799
+ {
4800
+ "name": "caller",
4801
+ "type": "pubkey"
4802
+ },
4803
+ {
4804
+ "name": "depositor",
4805
+ "type": "pubkey"
4806
+ },
4807
+ {
4808
+ "name": "vault_token_account",
4809
+ "type": "pubkey"
4810
+ },
4811
+ {
4812
+ "name": "mint",
4813
+ "type": "pubkey"
4814
+ },
4815
+ {
4816
+ "name": "amount",
4817
+ "type": "u64"
4818
+ },
4819
+ {
4820
+ "name": "bonus_code",
4821
+ "type": "string"
4822
+ },
4823
+ {
4824
+ "name": "slot",
4825
+ "type": "u64"
4826
+ },
4827
+ {
4828
+ "name": "timestamp",
4829
+ "type": "i64"
4830
+ }
4831
+ ]
4832
+ }
2728
4833
  },
2729
4834
  {
2730
- "code": 6013,
2731
- "name": "InvalidPaymenToken",
2732
- "msg": "Invalid payment token."
4835
+ "name": "EscrowConfig",
4836
+ "type": {
4837
+ "kind": "struct",
4838
+ "fields": [
4839
+ {
4840
+ "name": "admin",
4841
+ "type": "pubkey"
4842
+ },
4843
+ {
4844
+ "name": "signer",
4845
+ "type": "pubkey"
4846
+ },
4847
+ {
4848
+ "name": "is_initialized",
4849
+ "type": "bool"
4850
+ }
4851
+ ]
4852
+ }
2733
4853
  },
2734
4854
  {
2735
- "code": 6014,
2736
- "name": "InsufficientSPLReserves",
2737
- "msg": "Insufficient SPL reserve balance."
4855
+ "name": "EscrowConfiguration",
4856
+ "docs": [
4857
+ "Config account holding"
4858
+ ],
4859
+ "type": {
4860
+ "kind": "struct",
4861
+ "fields": [
4862
+ {
4863
+ "name": "admins",
4864
+ "type": {
4865
+ "vec": "pubkey"
4866
+ }
4867
+ },
4868
+ {
4869
+ "name": "payment_tokens",
4870
+ "type": {
4871
+ "vec": "pubkey"
4872
+ }
4873
+ },
4874
+ {
4875
+ "name": "signer",
4876
+ "type": "pubkey"
4877
+ },
4878
+ {
4879
+ "name": "funding_wallet",
4880
+ "type": "pubkey"
4881
+ },
4882
+ {
4883
+ "name": "is_initialized",
4884
+ "type": "bool"
4885
+ },
4886
+ {
4887
+ "name": "is_paused",
4888
+ "type": "bool"
4889
+ }
4890
+ ]
4891
+ }
2738
4892
  },
2739
4893
  {
2740
- "code": 6015,
2741
- "name": "InsufficientSOLReserves",
2742
- "msg": "Insufficient SOL reserve balance."
4894
+ "name": "MaxFeeDeltaConfiguredEvent",
4895
+ "docs": [
4896
+ "Emitted when the max fee delta (committed - net cap) is updated. 0 = disabled."
4897
+ ],
4898
+ "type": {
4899
+ "kind": "struct",
4900
+ "fields": [
4901
+ {
4902
+ "name": "amount",
4903
+ "type": "u64"
4904
+ },
4905
+ {
4906
+ "name": "sender",
4907
+ "type": "pubkey"
4908
+ },
4909
+ {
4910
+ "name": "slot",
4911
+ "type": "u64"
4912
+ },
4913
+ {
4914
+ "name": "timestamp",
4915
+ "type": "i64"
4916
+ }
4917
+ ]
4918
+ }
2743
4919
  },
2744
4920
  {
2745
- "code": 6016,
2746
- "name": "Paused",
2747
- "msg": "Program is paused"
4921
+ "name": "ReceiverTimelockConfig",
4922
+ "docs": [
4923
+ "Per-receiver timelock override. delay_seconds = 0 means trusted (immediate execution)."
4924
+ ],
4925
+ "type": {
4926
+ "kind": "struct",
4927
+ "fields": [
4928
+ {
4929
+ "name": "delay_seconds",
4930
+ "type": "i64"
4931
+ },
4932
+ {
4933
+ "name": "is_set",
4934
+ "type": "bool"
4935
+ }
4936
+ ]
4937
+ }
2748
4938
  },
2749
4939
  {
2750
- "code": 6017,
2751
- "name": "SameState",
2752
- "msg": "Program is already in this state"
4940
+ "name": "ReceiverTimelockConfiguredEvent",
4941
+ "docs": [
4942
+ "Emitted when a per-receiver (granular) timelock override is set."
4943
+ ],
4944
+ "type": {
4945
+ "kind": "struct",
4946
+ "fields": [
4947
+ {
4948
+ "name": "receiver",
4949
+ "type": "pubkey"
4950
+ },
4951
+ {
4952
+ "name": "delay_seconds",
4953
+ "type": "i64"
4954
+ },
4955
+ {
4956
+ "name": "sender",
4957
+ "type": "pubkey"
4958
+ },
4959
+ {
4960
+ "name": "slot",
4961
+ "type": "u64"
4962
+ },
4963
+ {
4964
+ "name": "timestamp",
4965
+ "type": "i64"
4966
+ }
4967
+ ]
4968
+ }
2753
4969
  },
2754
4970
  {
2755
- "code": 6018,
2756
- "name": "MaxPaymentTokenCount",
2757
- "msg": "Max payment tokens count reached"
4971
+ "name": "Role",
4972
+ "docs": [
4973
+ "Role assigned to a membership set on the escrow (mirrors EVM AccessControl semantics)."
4974
+ ],
4975
+ "type": {
4976
+ "kind": "enum",
4977
+ "variants": [
4978
+ {
4979
+ "name": "Admin"
4980
+ },
4981
+ {
4982
+ "name": "TreasuryManager"
4983
+ },
4984
+ {
4985
+ "name": "TreasuryExecutive"
4986
+ }
4987
+ ]
4988
+ }
2758
4989
  },
2759
4990
  {
2760
- "code": 6019,
2761
- "name": "MaxAdminCount",
2762
- "msg": "Max admin count reached"
2763
- }
2764
- ],
2765
- "types": [
2766
- {
2767
- "name": "AdminDeposit",
4991
+ "name": "RoleGranted",
4992
+ "docs": [
4993
+ "Emitted when an account is added to a role membership set (add_admin, add_treasury_manager,",
4994
+ "add_treasury_executive). `account` is the granted key; `sender` is the admin that authorized it."
4995
+ ],
2768
4996
  "type": {
2769
4997
  "kind": "struct",
2770
4998
  "fields": [
2771
4999
  {
2772
- "name": "caller",
5000
+ "name": "role",
5001
+ "type": {
5002
+ "defined": {
5003
+ "name": "Role"
5004
+ }
5005
+ }
5006
+ },
5007
+ {
5008
+ "name": "account",
2773
5009
  "type": "pubkey"
2774
5010
  },
2775
5011
  {
2776
- "name": "depositor",
5012
+ "name": "sender",
2777
5013
  "type": "pubkey"
2778
5014
  },
2779
5015
  {
2780
- "name": "recipient",
5016
+ "name": "slot",
5017
+ "type": "u64"
5018
+ },
5019
+ {
5020
+ "name": "timestamp",
5021
+ "type": "i64"
5022
+ }
5023
+ ]
5024
+ }
5025
+ },
5026
+ {
5027
+ "name": "RoleRevoked",
5028
+ "docs": [
5029
+ "Emitted when an account is removed from a role membership set."
5030
+ ],
5031
+ "type": {
5032
+ "kind": "struct",
5033
+ "fields": [
5034
+ {
5035
+ "name": "role",
5036
+ "type": {
5037
+ "defined": {
5038
+ "name": "Role"
5039
+ }
5040
+ }
5041
+ },
5042
+ {
5043
+ "name": "account",
2781
5044
  "type": "pubkey"
2782
5045
  },
2783
5046
  {
2784
- "name": "token",
5047
+ "name": "sender",
2785
5048
  "type": "pubkey"
2786
5049
  },
2787
5050
  {
2788
- "name": "amount",
5051
+ "name": "slot",
2789
5052
  "type": "u64"
2790
5053
  },
5054
+ {
5055
+ "name": "timestamp",
5056
+ "type": "i64"
5057
+ }
5058
+ ]
5059
+ }
5060
+ },
5061
+ {
5062
+ "name": "TimelockConfig",
5063
+ "docs": [
5064
+ "Global timelock delay applied to all withdrawals unless overridden per-receiver."
5065
+ ],
5066
+ "type": {
5067
+ "kind": "struct",
5068
+ "fields": [
5069
+ {
5070
+ "name": "delay_seconds",
5071
+ "type": "i64"
5072
+ },
5073
+ {
5074
+ "name": "is_set",
5075
+ "type": "bool"
5076
+ }
5077
+ ]
5078
+ }
5079
+ },
5080
+ {
5081
+ "name": "TimelockConfiguredEvent",
5082
+ "docs": [
5083
+ "Emitted when the global timelock delay is set."
5084
+ ],
5085
+ "type": {
5086
+ "kind": "struct",
5087
+ "fields": [
5088
+ {
5089
+ "name": "delay_seconds",
5090
+ "type": "i64"
5091
+ },
5092
+ {
5093
+ "name": "sender",
5094
+ "type": "pubkey"
5095
+ },
2791
5096
  {
2792
5097
  "name": "slot",
2793
5098
  "type": "u64"
@@ -2800,26 +5105,64 @@
2800
5105
  }
2801
5106
  },
2802
5107
  {
2803
- "name": "AdminWithdraw",
5108
+ "name": "TreasuryConfig",
2804
5109
  "type": {
2805
5110
  "kind": "struct",
2806
5111
  "fields": [
2807
5112
  {
2808
- "name": "caller",
2809
- "type": "pubkey"
5113
+ "name": "treasury_managers",
5114
+ "type": {
5115
+ "vec": "pubkey"
5116
+ }
2810
5117
  },
2811
5118
  {
2812
- "name": "recipient",
2813
- "type": "pubkey"
5119
+ "name": "treasury_executives",
5120
+ "type": {
5121
+ "vec": "pubkey"
5122
+ }
2814
5123
  },
2815
5124
  {
2816
- "name": "token",
2817
- "type": "pubkey"
5125
+ "name": "manager_threshold",
5126
+ "type": "u8"
2818
5127
  },
2819
5128
  {
2820
- "name": "amount",
5129
+ "name": "executive_threshold",
5130
+ "type": "u8"
5131
+ },
5132
+ {
5133
+ "name": "max_fee_delta",
5134
+ "docs": [
5135
+ "Maximum allowable deduction between committed_amount and net_amount (0 = disabled)"
5136
+ ],
2821
5137
  "type": "u64"
2822
5138
  },
5139
+ {
5140
+ "name": "is_initialized",
5141
+ "type": "bool"
5142
+ }
5143
+ ]
5144
+ }
5145
+ },
5146
+ {
5147
+ "name": "TreasuryConfigInitializedEvent",
5148
+ "docs": [
5149
+ "Emitted when the treasury config is first initialized."
5150
+ ],
5151
+ "type": {
5152
+ "kind": "struct",
5153
+ "fields": [
5154
+ {
5155
+ "name": "manager_threshold",
5156
+ "type": "u8"
5157
+ },
5158
+ {
5159
+ "name": "executive_threshold",
5160
+ "type": "u8"
5161
+ },
5162
+ {
5163
+ "name": "sender",
5164
+ "type": "pubkey"
5165
+ },
2823
5166
  {
2824
5167
  "name": "slot",
2825
5168
  "type": "u64"
@@ -2832,20 +5175,28 @@
2832
5175
  }
2833
5176
  },
2834
5177
  {
2835
- "name": "DepositSolEvent",
5178
+ "name": "WithdrawNonce",
2836
5179
  "type": {
2837
5180
  "kind": "struct",
2838
5181
  "fields": [
2839
5182
  {
2840
- "name": "caller",
2841
- "type": "pubkey"
2842
- },
5183
+ "name": "nonce",
5184
+ "type": "u64"
5185
+ }
5186
+ ]
5187
+ }
5188
+ },
5189
+ {
5190
+ "name": "WithdrawSolEvent",
5191
+ "type": {
5192
+ "kind": "struct",
5193
+ "fields": [
2843
5194
  {
2844
- "name": "depositor",
5195
+ "name": "caller",
2845
5196
  "type": "pubkey"
2846
5197
  },
2847
5198
  {
2848
- "name": "vault_authority",
5199
+ "name": "recipient",
2849
5200
  "type": "pubkey"
2850
5201
  },
2851
5202
  {
@@ -2853,8 +5204,8 @@
2853
5204
  "type": "u64"
2854
5205
  },
2855
5206
  {
2856
- "name": "bonus_code",
2857
- "type": "string"
5207
+ "name": "request_id",
5208
+ "type": "u64"
2858
5209
  },
2859
5210
  {
2860
5211
  "name": "slot",
@@ -2868,7 +5219,7 @@
2868
5219
  }
2869
5220
  },
2870
5221
  {
2871
- "name": "DepositSplEvent",
5222
+ "name": "WithdrawSplEvent",
2872
5223
  "type": {
2873
5224
  "kind": "struct",
2874
5225
  "fields": [
@@ -2877,11 +5228,7 @@
2877
5228
  "type": "pubkey"
2878
5229
  },
2879
5230
  {
2880
- "name": "depositor",
2881
- "type": "pubkey"
2882
- },
2883
- {
2884
- "name": "vault_token_account",
5231
+ "name": "recipient",
2885
5232
  "type": "pubkey"
2886
5233
  },
2887
5234
  {
@@ -2893,8 +5240,8 @@
2893
5240
  "type": "u64"
2894
5241
  },
2895
5242
  {
2896
- "name": "bonus_code",
2897
- "type": "string"
5243
+ "name": "request_id",
5244
+ "type": "u64"
2898
5245
  },
2899
5246
  {
2900
5247
  "name": "slot",
@@ -2908,97 +5255,145 @@
2908
5255
  }
2909
5256
  },
2910
5257
  {
2911
- "name": "EscrowConfig",
5258
+ "name": "WithdrawalCancelledEvent",
2912
5259
  "type": {
2913
5260
  "kind": "struct",
2914
5261
  "fields": [
2915
5262
  {
2916
- "name": "admin",
2917
- "type": "pubkey"
5263
+ "name": "request_id",
5264
+ "type": "u64"
2918
5265
  },
2919
5266
  {
2920
- "name": "signer",
5267
+ "name": "cancelled_by",
2921
5268
  "type": "pubkey"
2922
5269
  },
2923
5270
  {
2924
- "name": "is_initialized",
2925
- "type": "bool"
5271
+ "name": "slot",
5272
+ "type": "u64"
5273
+ },
5274
+ {
5275
+ "name": "timestamp",
5276
+ "type": "i64"
2926
5277
  }
2927
5278
  ]
2928
5279
  }
2929
5280
  },
2930
5281
  {
2931
- "name": "EscrowConfiguration",
2932
- "docs": [
2933
- "Config account holding"
2934
- ],
5282
+ "name": "WithdrawalCommitment",
2935
5283
  "type": {
2936
5284
  "kind": "struct",
2937
5285
  "fields": [
2938
5286
  {
2939
- "name": "admins",
2940
- "type": {
2941
- "vec": "pubkey"
2942
- }
5287
+ "name": "request_id",
5288
+ "type": "u64"
2943
5289
  },
2944
5290
  {
2945
- "name": "payment_tokens",
2946
- "type": {
2947
- "vec": "pubkey"
2948
- }
5291
+ "name": "committed_amount",
5292
+ "type": "u64"
2949
5293
  },
2950
5294
  {
2951
- "name": "signer",
5295
+ "name": "net_amount",
5296
+ "type": "u64"
5297
+ },
5298
+ {
5299
+ "name": "recipient",
2952
5300
  "type": "pubkey"
2953
5301
  },
2954
5302
  {
2955
- "name": "funding_wallet",
5303
+ "name": "token_mint",
5304
+ "docs": [
5305
+ "For SOL withdrawals this is the System Program pubkey."
5306
+ ],
2956
5307
  "type": "pubkey"
2957
5308
  },
2958
5309
  {
2959
- "name": "is_initialized",
2960
- "type": "bool"
5310
+ "name": "execute_at",
5311
+ "type": "i64"
2961
5312
  },
2962
5313
  {
2963
- "name": "is_paused",
5314
+ "name": "creator",
5315
+ "type": "pubkey"
5316
+ },
5317
+ {
5318
+ "name": "is_sol",
2964
5319
  "type": "bool"
5320
+ },
5321
+ {
5322
+ "name": "chain_id",
5323
+ "type": "u64"
2965
5324
  }
2966
5325
  ]
2967
5326
  }
2968
5327
  },
2969
5328
  {
2970
- "name": "WithdrawNonce",
5329
+ "name": "WithdrawalExecutedEvent",
2971
5330
  "type": {
2972
5331
  "kind": "struct",
2973
5332
  "fields": [
2974
5333
  {
2975
- "name": "nonce",
5334
+ "name": "request_id",
5335
+ "type": "u64"
5336
+ },
5337
+ {
5338
+ "name": "recipient",
5339
+ "type": "pubkey"
5340
+ },
5341
+ {
5342
+ "name": "net_amount",
5343
+ "type": "u64"
5344
+ },
5345
+ {
5346
+ "name": "token_mint",
5347
+ "type": "pubkey"
5348
+ },
5349
+ {
5350
+ "name": "is_sol",
5351
+ "type": "bool"
5352
+ },
5353
+ {
5354
+ "name": "slot",
2976
5355
  "type": "u64"
5356
+ },
5357
+ {
5358
+ "name": "timestamp",
5359
+ "type": "i64"
2977
5360
  }
2978
5361
  ]
2979
5362
  }
2980
5363
  },
2981
5364
  {
2982
- "name": "WithdrawSolEvent",
5365
+ "name": "WithdrawalScheduledEvent",
2983
5366
  "type": {
2984
5367
  "kind": "struct",
2985
5368
  "fields": [
2986
5369
  {
2987
- "name": "caller",
2988
- "type": "pubkey"
5370
+ "name": "request_id",
5371
+ "type": "u64"
2989
5372
  },
2990
5373
  {
2991
5374
  "name": "recipient",
2992
5375
  "type": "pubkey"
2993
5376
  },
2994
5377
  {
2995
- "name": "amount",
5378
+ "name": "committed_amount",
2996
5379
  "type": "u64"
2997
5380
  },
2998
5381
  {
2999
- "name": "request_id",
5382
+ "name": "net_amount",
3000
5383
  "type": "u64"
3001
5384
  },
5385
+ {
5386
+ "name": "token_mint",
5387
+ "type": "pubkey"
5388
+ },
5389
+ {
5390
+ "name": "execute_at",
5391
+ "type": "i64"
5392
+ },
5393
+ {
5394
+ "name": "is_sol",
5395
+ "type": "bool"
5396
+ },
3002
5397
  {
3003
5398
  "name": "slot",
3004
5399
  "type": "u64"
@@ -3011,30 +5406,25 @@
3011
5406
  }
3012
5407
  },
3013
5408
  {
3014
- "name": "WithdrawSplEvent",
5409
+ "name": "WithdrawalThresholdsConfiguredEvent",
5410
+ "docs": [
5411
+ "Emitted when the manager/executive withdrawal thresholds are updated."
5412
+ ],
3015
5413
  "type": {
3016
5414
  "kind": "struct",
3017
5415
  "fields": [
3018
5416
  {
3019
- "name": "caller",
3020
- "type": "pubkey"
5417
+ "name": "manager_threshold",
5418
+ "type": "u8"
3021
5419
  },
3022
5420
  {
3023
- "name": "recipient",
3024
- "type": "pubkey"
5421
+ "name": "executive_threshold",
5422
+ "type": "u8"
3025
5423
  },
3026
5424
  {
3027
- "name": "mint",
5425
+ "name": "sender",
3028
5426
  "type": "pubkey"
3029
5427
  },
3030
- {
3031
- "name": "amount",
3032
- "type": "u64"
3033
- },
3034
- {
3035
- "name": "request_id",
3036
- "type": "u64"
3037
- },
3038
5428
  {
3039
5429
  "name": "slot",
3040
5430
  "type": "u64"