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

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.
@@ -723,16 +723,16 @@
723
723
  ]
724
724
  },
725
725
  {
726
- "name": "batch_withdraw_sol",
726
+ "name": "batch_execute_withdrawal_sol",
727
727
  "discriminator": [
728
- 60,
729
- 224,
730
- 135,
731
- 236,
732
- 157,
733
- 235,
728
+ 24,
729
+ 194,
730
+ 4,
731
+ 88,
734
732
  169,
735
- 130
733
+ 54,
734
+ 132,
735
+ 46
736
736
  ],
737
737
  "accounts": [
738
738
  {
@@ -763,11 +763,6 @@
763
763
  ]
764
764
  }
765
765
  },
766
- {
767
- "name": "admin",
768
- "writable": true,
769
- "signer": true
770
- },
771
766
  {
772
767
  "name": "vault_authority",
773
768
  "writable": true,
@@ -787,6 +782,11 @@
787
782
  ]
788
783
  }
789
784
  },
785
+ {
786
+ "name": "caller",
787
+ "writable": true,
788
+ "signer": true
789
+ },
790
790
  {
791
791
  "name": "system_program",
792
792
  "address": "11111111111111111111111111111111"
@@ -798,26 +798,20 @@
798
798
  "type": {
799
799
  "vec": "u64"
800
800
  }
801
- },
802
- {
803
- "name": "amounts",
804
- "type": {
805
- "vec": "u64"
806
- }
807
801
  }
808
802
  ]
809
803
  },
810
804
  {
811
- "name": "batch_withdraw_tokens",
805
+ "name": "batch_execute_withdrawal_spl",
812
806
  "discriminator": [
813
- 187,
814
- 198,
815
- 10,
816
- 76,
817
- 205,
818
- 254,
819
- 160,
820
- 83
807
+ 45,
808
+ 210,
809
+ 121,
810
+ 71,
811
+ 144,
812
+ 87,
813
+ 57,
814
+ 119
821
815
  ],
822
816
  "accounts": [
823
817
  {
@@ -851,14 +845,8 @@
851
845
  {
852
846
  "name": "mint"
853
847
  },
854
- {
855
- "name": "admin",
856
- "writable": true,
857
- "signer": true
858
- },
859
848
  {
860
849
  "name": "vault_authority",
861
- "writable": true,
862
850
  "pda": {
863
851
  "seeds": [
864
852
  {
@@ -965,9 +953,18 @@
965
953
  }
966
954
  }
967
955
  },
956
+ {
957
+ "name": "caller",
958
+ "writable": true,
959
+ "signer": true
960
+ },
968
961
  {
969
962
  "name": "token_program",
970
963
  "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
964
+ },
965
+ {
966
+ "name": "system_program",
967
+ "address": "11111111111111111111111111111111"
971
968
  }
972
969
  ],
973
970
  "args": [
@@ -976,26 +973,20 @@
976
973
  "type": {
977
974
  "vec": "u64"
978
975
  }
979
- },
980
- {
981
- "name": "amounts",
982
- "type": {
983
- "vec": "u64"
984
- }
985
976
  }
986
977
  ]
987
978
  },
988
979
  {
989
- "name": "cancel_withdrawal",
980
+ "name": "batch_withdraw_sol",
990
981
  "discriminator": [
991
- 183,
992
- 104,
993
- 181,
994
- 250,
995
- 28,
996
- 128,
997
- 210,
998
- 70
982
+ 60,
983
+ 224,
984
+ 135,
985
+ 236,
986
+ 157,
987
+ 235,
988
+ 169,
989
+ 130
999
990
  ],
1000
991
  "accounts": [
1001
992
  {
@@ -1027,166 +1018,757 @@
1027
1018
  }
1028
1019
  },
1029
1020
  {
1030
- "name": "commitment",
1021
+ "name": "admin",
1022
+ "writable": true,
1023
+ "signer": true
1024
+ },
1025
+ {
1026
+ "name": "vault_authority",
1031
1027
  "writable": true,
1032
1028
  "pda": {
1033
1029
  "seeds": [
1034
1030
  {
1035
1031
  "kind": "const",
1036
1032
  "value": [
1037
- 119,
1038
- 105,
1039
- 116,
1040
- 104,
1041
- 100,
1033
+ 101,
1034
+ 115,
1035
+ 99,
1042
1036
  114,
1043
- 97,
1044
- 119,
1045
- 97,
1046
- 108
1037
+ 111,
1038
+ 119
1047
1039
  ]
1048
- },
1049
- {
1050
- "kind": "arg",
1051
- "path": "request_id"
1052
1040
  }
1053
1041
  ]
1054
1042
  }
1055
1043
  },
1056
1044
  {
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
- },
1073
- {
1074
- "name": "deposit_sol",
1075
- "discriminator": [
1076
- 108,
1077
- 81,
1078
- 78,
1079
- 117,
1080
- 125,
1081
- 155,
1082
- 56,
1083
- 200
1084
- ],
1085
- "accounts": [
1086
- {
1087
- "name": "escrow_config",
1045
+ "name": "treasury_config",
1088
1046
  "pda": {
1089
1047
  "seeds": [
1090
1048
  {
1091
1049
  "kind": "const",
1092
1050
  "value": [
1051
+ 116,
1052
+ 114,
1093
1053
  101,
1054
+ 97,
1094
1055
  115,
1095
- 99,
1056
+ 117,
1096
1057
  114,
1097
- 111,
1098
- 119,
1058
+ 121,
1099
1059
  45,
1100
1060
  99,
1101
1061
  111,
1102
1062
  110,
1103
1063
  102,
1104
1064
  105,
1105
- 103,
1106
- 45,
1107
- 118,
1108
- 50
1065
+ 103
1109
1066
  ]
1110
1067
  }
1111
1068
  ]
1112
1069
  }
1113
1070
  },
1114
1071
  {
1115
- "name": "depositor",
1116
- "writable": true,
1117
- "signer": true
1118
- },
1119
- {
1120
- "name": "vault_authority",
1121
- "writable": true,
1072
+ "name": "token_threshold_config",
1122
1073
  "pda": {
1123
1074
  "seeds": [
1124
1075
  {
1125
1076
  "kind": "const",
1126
1077
  "value": [
1078
+ 116,
1079
+ 111,
1080
+ 107,
1127
1081
  101,
1128
- 115,
1129
- 99,
1082
+ 110,
1083
+ 45,
1084
+ 116,
1085
+ 104,
1130
1086
  114,
1087
+ 101,
1088
+ 115,
1089
+ 104,
1131
1090
  111,
1132
- 119
1091
+ 108,
1092
+ 100
1093
+ ]
1094
+ },
1095
+ {
1096
+ "kind": "const",
1097
+ "value": [
1098
+ 0,
1099
+ 0,
1100
+ 0,
1101
+ 0,
1102
+ 0,
1103
+ 0,
1104
+ 0,
1105
+ 0,
1106
+ 0,
1107
+ 0,
1108
+ 0,
1109
+ 0,
1110
+ 0,
1111
+ 0,
1112
+ 0,
1113
+ 0,
1114
+ 0,
1115
+ 0,
1116
+ 0,
1117
+ 0,
1118
+ 0,
1119
+ 0,
1120
+ 0,
1121
+ 0,
1122
+ 0,
1123
+ 0,
1124
+ 0,
1125
+ 0,
1126
+ 0,
1127
+ 0,
1128
+ 0,
1129
+ 0
1133
1130
  ]
1134
1131
  }
1135
1132
  ]
1136
1133
  }
1137
1134
  },
1138
1135
  {
1139
- "name": "system_program",
1140
- "address": "11111111111111111111111111111111"
1141
- }
1142
- ],
1143
- "args": [
1144
- {
1145
- "name": "amount",
1146
- "type": "u64"
1147
- },
1148
- {
1149
- "name": "bonus_code",
1150
- "type": "string"
1151
- }
1152
- ]
1153
- },
1154
- {
1155
- "name": "deposit_spl",
1156
- "discriminator": [
1157
- 224,
1158
- 0,
1159
- 198,
1160
- 175,
1161
- 198,
1162
- 47,
1163
- 105,
1164
- 204
1165
- ],
1166
- "accounts": [
1167
- {
1168
- "name": "escrow_config",
1136
+ "name": "token_timelock_config",
1169
1137
  "pda": {
1170
1138
  "seeds": [
1171
1139
  {
1172
1140
  "kind": "const",
1173
1141
  "value": [
1174
- 101,
1175
- 115,
1176
- 99,
1177
- 114,
1178
- 111,
1179
- 119,
1180
- 45,
1181
- 99,
1142
+ 116,
1182
1143
  111,
1144
+ 107,
1145
+ 101,
1183
1146
  110,
1184
- 102,
1185
- 105,
1186
- 103,
1187
1147
  45,
1188
- 118,
1189
- 50
1148
+ 116,
1149
+ 105,
1150
+ 109,
1151
+ 101,
1152
+ 108,
1153
+ 111,
1154
+ 99,
1155
+ 107
1156
+ ]
1157
+ },
1158
+ {
1159
+ "kind": "const",
1160
+ "value": [
1161
+ 0,
1162
+ 0,
1163
+ 0,
1164
+ 0,
1165
+ 0,
1166
+ 0,
1167
+ 0,
1168
+ 0,
1169
+ 0,
1170
+ 0,
1171
+ 0,
1172
+ 0,
1173
+ 0,
1174
+ 0,
1175
+ 0,
1176
+ 0,
1177
+ 0,
1178
+ 0,
1179
+ 0,
1180
+ 0,
1181
+ 0,
1182
+ 0,
1183
+ 0,
1184
+ 0,
1185
+ 0,
1186
+ 0,
1187
+ 0,
1188
+ 0,
1189
+ 0,
1190
+ 0,
1191
+ 0,
1192
+ 0
1193
+ ]
1194
+ }
1195
+ ]
1196
+ }
1197
+ },
1198
+ {
1199
+ "name": "timelock_config",
1200
+ "pda": {
1201
+ "seeds": [
1202
+ {
1203
+ "kind": "const",
1204
+ "value": [
1205
+ 116,
1206
+ 105,
1207
+ 109,
1208
+ 101,
1209
+ 108,
1210
+ 111,
1211
+ 99,
1212
+ 107,
1213
+ 45,
1214
+ 99,
1215
+ 111,
1216
+ 110,
1217
+ 102,
1218
+ 105,
1219
+ 103
1220
+ ]
1221
+ }
1222
+ ]
1223
+ }
1224
+ },
1225
+ {
1226
+ "name": "system_program",
1227
+ "address": "11111111111111111111111111111111"
1228
+ },
1229
+ {
1230
+ "name": "instructions",
1231
+ "address": "Sysvar1nstructions1111111111111111111111111"
1232
+ }
1233
+ ],
1234
+ "args": [
1235
+ {
1236
+ "name": "chain_id",
1237
+ "type": "u64"
1238
+ },
1239
+ {
1240
+ "name": "request_ids",
1241
+ "type": {
1242
+ "vec": "u64"
1243
+ }
1244
+ },
1245
+ {
1246
+ "name": "committed_amounts",
1247
+ "type": {
1248
+ "vec": "u64"
1249
+ }
1250
+ },
1251
+ {
1252
+ "name": "net_amounts",
1253
+ "type": {
1254
+ "vec": "u64"
1255
+ }
1256
+ }
1257
+ ]
1258
+ },
1259
+ {
1260
+ "name": "batch_withdraw_tokens",
1261
+ "discriminator": [
1262
+ 187,
1263
+ 198,
1264
+ 10,
1265
+ 76,
1266
+ 205,
1267
+ 254,
1268
+ 160,
1269
+ 83
1270
+ ],
1271
+ "accounts": [
1272
+ {
1273
+ "name": "escrow_config",
1274
+ "pda": {
1275
+ "seeds": [
1276
+ {
1277
+ "kind": "const",
1278
+ "value": [
1279
+ 101,
1280
+ 115,
1281
+ 99,
1282
+ 114,
1283
+ 111,
1284
+ 119,
1285
+ 45,
1286
+ 99,
1287
+ 111,
1288
+ 110,
1289
+ 102,
1290
+ 105,
1291
+ 103,
1292
+ 45,
1293
+ 118,
1294
+ 50
1295
+ ]
1296
+ }
1297
+ ]
1298
+ }
1299
+ },
1300
+ {
1301
+ "name": "mint"
1302
+ },
1303
+ {
1304
+ "name": "admin",
1305
+ "writable": true,
1306
+ "signer": true
1307
+ },
1308
+ {
1309
+ "name": "vault_authority",
1310
+ "writable": true,
1311
+ "pda": {
1312
+ "seeds": [
1313
+ {
1314
+ "kind": "const",
1315
+ "value": [
1316
+ 101,
1317
+ 115,
1318
+ 99,
1319
+ 114,
1320
+ 111,
1321
+ 119
1322
+ ]
1323
+ }
1324
+ ]
1325
+ }
1326
+ },
1327
+ {
1328
+ "name": "vault_token_account",
1329
+ "writable": true,
1330
+ "pda": {
1331
+ "seeds": [
1332
+ {
1333
+ "kind": "account",
1334
+ "path": "vault_authority"
1335
+ },
1336
+ {
1337
+ "kind": "const",
1338
+ "value": [
1339
+ 6,
1340
+ 221,
1341
+ 246,
1342
+ 225,
1343
+ 215,
1344
+ 101,
1345
+ 161,
1346
+ 147,
1347
+ 217,
1348
+ 203,
1349
+ 225,
1350
+ 70,
1351
+ 206,
1352
+ 235,
1353
+ 121,
1354
+ 172,
1355
+ 28,
1356
+ 180,
1357
+ 133,
1358
+ 237,
1359
+ 95,
1360
+ 91,
1361
+ 55,
1362
+ 145,
1363
+ 58,
1364
+ 140,
1365
+ 245,
1366
+ 133,
1367
+ 126,
1368
+ 255,
1369
+ 0,
1370
+ 169
1371
+ ]
1372
+ },
1373
+ {
1374
+ "kind": "account",
1375
+ "path": "mint"
1376
+ }
1377
+ ],
1378
+ "program": {
1379
+ "kind": "const",
1380
+ "value": [
1381
+ 140,
1382
+ 151,
1383
+ 37,
1384
+ 143,
1385
+ 78,
1386
+ 36,
1387
+ 137,
1388
+ 241,
1389
+ 187,
1390
+ 61,
1391
+ 16,
1392
+ 41,
1393
+ 20,
1394
+ 142,
1395
+ 13,
1396
+ 131,
1397
+ 11,
1398
+ 90,
1399
+ 19,
1400
+ 153,
1401
+ 218,
1402
+ 255,
1403
+ 16,
1404
+ 132,
1405
+ 4,
1406
+ 142,
1407
+ 123,
1408
+ 216,
1409
+ 219,
1410
+ 233,
1411
+ 248,
1412
+ 89
1413
+ ]
1414
+ }
1415
+ }
1416
+ },
1417
+ {
1418
+ "name": "treasury_config",
1419
+ "pda": {
1420
+ "seeds": [
1421
+ {
1422
+ "kind": "const",
1423
+ "value": [
1424
+ 116,
1425
+ 114,
1426
+ 101,
1427
+ 97,
1428
+ 115,
1429
+ 117,
1430
+ 114,
1431
+ 121,
1432
+ 45,
1433
+ 99,
1434
+ 111,
1435
+ 110,
1436
+ 102,
1437
+ 105,
1438
+ 103
1439
+ ]
1440
+ }
1441
+ ]
1442
+ }
1443
+ },
1444
+ {
1445
+ "name": "token_threshold_config",
1446
+ "pda": {
1447
+ "seeds": [
1448
+ {
1449
+ "kind": "const",
1450
+ "value": [
1451
+ 116,
1452
+ 111,
1453
+ 107,
1454
+ 101,
1455
+ 110,
1456
+ 45,
1457
+ 116,
1458
+ 104,
1459
+ 114,
1460
+ 101,
1461
+ 115,
1462
+ 104,
1463
+ 111,
1464
+ 108,
1465
+ 100
1466
+ ]
1467
+ },
1468
+ {
1469
+ "kind": "account",
1470
+ "path": "mint"
1471
+ }
1472
+ ]
1473
+ }
1474
+ },
1475
+ {
1476
+ "name": "token_timelock_config",
1477
+ "pda": {
1478
+ "seeds": [
1479
+ {
1480
+ "kind": "const",
1481
+ "value": [
1482
+ 116,
1483
+ 111,
1484
+ 107,
1485
+ 101,
1486
+ 110,
1487
+ 45,
1488
+ 116,
1489
+ 105,
1490
+ 109,
1491
+ 101,
1492
+ 108,
1493
+ 111,
1494
+ 99,
1495
+ 107
1496
+ ]
1497
+ },
1498
+ {
1499
+ "kind": "account",
1500
+ "path": "mint"
1501
+ }
1502
+ ]
1503
+ }
1504
+ },
1505
+ {
1506
+ "name": "timelock_config",
1507
+ "pda": {
1508
+ "seeds": [
1509
+ {
1510
+ "kind": "const",
1511
+ "value": [
1512
+ 116,
1513
+ 105,
1514
+ 109,
1515
+ 101,
1516
+ 108,
1517
+ 111,
1518
+ 99,
1519
+ 107,
1520
+ 45,
1521
+ 99,
1522
+ 111,
1523
+ 110,
1524
+ 102,
1525
+ 105,
1526
+ 103
1527
+ ]
1528
+ }
1529
+ ]
1530
+ }
1531
+ },
1532
+ {
1533
+ "name": "token_program",
1534
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
1535
+ },
1536
+ {
1537
+ "name": "system_program",
1538
+ "address": "11111111111111111111111111111111"
1539
+ },
1540
+ {
1541
+ "name": "instructions",
1542
+ "address": "Sysvar1nstructions1111111111111111111111111"
1543
+ }
1544
+ ],
1545
+ "args": [
1546
+ {
1547
+ "name": "chain_id",
1548
+ "type": "u64"
1549
+ },
1550
+ {
1551
+ "name": "request_ids",
1552
+ "type": {
1553
+ "vec": "u64"
1554
+ }
1555
+ },
1556
+ {
1557
+ "name": "committed_amounts",
1558
+ "type": {
1559
+ "vec": "u64"
1560
+ }
1561
+ },
1562
+ {
1563
+ "name": "net_amounts",
1564
+ "type": {
1565
+ "vec": "u64"
1566
+ }
1567
+ }
1568
+ ]
1569
+ },
1570
+ {
1571
+ "name": "cancel_withdrawal",
1572
+ "discriminator": [
1573
+ 183,
1574
+ 104,
1575
+ 181,
1576
+ 250,
1577
+ 28,
1578
+ 128,
1579
+ 210,
1580
+ 70
1581
+ ],
1582
+ "accounts": [
1583
+ {
1584
+ "name": "escrow_config",
1585
+ "pda": {
1586
+ "seeds": [
1587
+ {
1588
+ "kind": "const",
1589
+ "value": [
1590
+ 101,
1591
+ 115,
1592
+ 99,
1593
+ 114,
1594
+ 111,
1595
+ 119,
1596
+ 45,
1597
+ 99,
1598
+ 111,
1599
+ 110,
1600
+ 102,
1601
+ 105,
1602
+ 103,
1603
+ 45,
1604
+ 118,
1605
+ 50
1606
+ ]
1607
+ }
1608
+ ]
1609
+ }
1610
+ },
1611
+ {
1612
+ "name": "commitment",
1613
+ "writable": true,
1614
+ "pda": {
1615
+ "seeds": [
1616
+ {
1617
+ "kind": "const",
1618
+ "value": [
1619
+ 119,
1620
+ 105,
1621
+ 116,
1622
+ 104,
1623
+ 100,
1624
+ 114,
1625
+ 97,
1626
+ 119,
1627
+ 97,
1628
+ 108
1629
+ ]
1630
+ },
1631
+ {
1632
+ "kind": "arg",
1633
+ "path": "request_id"
1634
+ }
1635
+ ]
1636
+ }
1637
+ },
1638
+ {
1639
+ "name": "admin",
1640
+ "writable": true,
1641
+ "signer": true
1642
+ },
1643
+ {
1644
+ "name": "system_program",
1645
+ "address": "11111111111111111111111111111111"
1646
+ }
1647
+ ],
1648
+ "args": [
1649
+ {
1650
+ "name": "request_id",
1651
+ "type": "u64"
1652
+ }
1653
+ ]
1654
+ },
1655
+ {
1656
+ "name": "deposit_sol",
1657
+ "discriminator": [
1658
+ 108,
1659
+ 81,
1660
+ 78,
1661
+ 117,
1662
+ 125,
1663
+ 155,
1664
+ 56,
1665
+ 200
1666
+ ],
1667
+ "accounts": [
1668
+ {
1669
+ "name": "escrow_config",
1670
+ "pda": {
1671
+ "seeds": [
1672
+ {
1673
+ "kind": "const",
1674
+ "value": [
1675
+ 101,
1676
+ 115,
1677
+ 99,
1678
+ 114,
1679
+ 111,
1680
+ 119,
1681
+ 45,
1682
+ 99,
1683
+ 111,
1684
+ 110,
1685
+ 102,
1686
+ 105,
1687
+ 103,
1688
+ 45,
1689
+ 118,
1690
+ 50
1691
+ ]
1692
+ }
1693
+ ]
1694
+ }
1695
+ },
1696
+ {
1697
+ "name": "depositor",
1698
+ "writable": true,
1699
+ "signer": true
1700
+ },
1701
+ {
1702
+ "name": "vault_authority",
1703
+ "writable": true,
1704
+ "pda": {
1705
+ "seeds": [
1706
+ {
1707
+ "kind": "const",
1708
+ "value": [
1709
+ 101,
1710
+ 115,
1711
+ 99,
1712
+ 114,
1713
+ 111,
1714
+ 119
1715
+ ]
1716
+ }
1717
+ ]
1718
+ }
1719
+ },
1720
+ {
1721
+ "name": "system_program",
1722
+ "address": "11111111111111111111111111111111"
1723
+ }
1724
+ ],
1725
+ "args": [
1726
+ {
1727
+ "name": "amount",
1728
+ "type": "u64"
1729
+ },
1730
+ {
1731
+ "name": "bonus_code",
1732
+ "type": "string"
1733
+ }
1734
+ ]
1735
+ },
1736
+ {
1737
+ "name": "deposit_spl",
1738
+ "discriminator": [
1739
+ 224,
1740
+ 0,
1741
+ 198,
1742
+ 175,
1743
+ 198,
1744
+ 47,
1745
+ 105,
1746
+ 204
1747
+ ],
1748
+ "accounts": [
1749
+ {
1750
+ "name": "escrow_config",
1751
+ "pda": {
1752
+ "seeds": [
1753
+ {
1754
+ "kind": "const",
1755
+ "value": [
1756
+ 101,
1757
+ 115,
1758
+ 99,
1759
+ 114,
1760
+ 111,
1761
+ 119,
1762
+ 45,
1763
+ 99,
1764
+ 111,
1765
+ 110,
1766
+ 102,
1767
+ 105,
1768
+ 103,
1769
+ 45,
1770
+ 118,
1771
+ 50
1190
1772
  ]
1191
1773
  }
1192
1774
  ]
@@ -1941,6 +2523,11 @@
1941
2523
  },
1942
2524
  {
1943
2525
  "name": "initialize_treasury_config",
2526
+ "docs": [
2527
+ "One-time allocation of the treasury config PDA. Required before any treasury role",
2528
+ "management — the role instructions require the account to already exist. Takes no",
2529
+ "thresholds: gating is per-token (see set_token_multisig_threshold)."
2530
+ ],
1944
2531
  "discriminator": [
1945
2532
  42,
1946
2533
  221,
@@ -2018,16 +2605,7 @@
2018
2605
  "address": "11111111111111111111111111111111"
2019
2606
  }
2020
2607
  ],
2021
- "args": [
2022
- {
2023
- "name": "manager_threshold",
2024
- "type": "u8"
2025
- },
2026
- {
2027
- "name": "executive_threshold",
2028
- "type": "u8"
2029
- }
2030
- ]
2608
+ "args": []
2031
2609
  },
2032
2610
  {
2033
2611
  "name": "is_admin_pubkey",
@@ -2802,7 +3380,170 @@
2802
3380
  },
2803
3381
  {
2804
3382
  "name": "treasury_config",
2805
- "writable": true,
3383
+ "writable": true,
3384
+ "pda": {
3385
+ "seeds": [
3386
+ {
3387
+ "kind": "const",
3388
+ "value": [
3389
+ 116,
3390
+ 114,
3391
+ 101,
3392
+ 97,
3393
+ 115,
3394
+ 117,
3395
+ 114,
3396
+ 121,
3397
+ 45,
3398
+ 99,
3399
+ 111,
3400
+ 110,
3401
+ 102,
3402
+ 105,
3403
+ 103
3404
+ ]
3405
+ }
3406
+ ]
3407
+ }
3408
+ },
3409
+ {
3410
+ "name": "admin",
3411
+ "writable": true,
3412
+ "signer": true
3413
+ }
3414
+ ],
3415
+ "args": [
3416
+ {
3417
+ "name": "pubkey",
3418
+ "type": "pubkey"
3419
+ }
3420
+ ]
3421
+ },
3422
+ {
3423
+ "name": "remove_treasury_manager",
3424
+ "discriminator": [
3425
+ 82,
3426
+ 21,
3427
+ 184,
3428
+ 234,
3429
+ 157,
3430
+ 232,
3431
+ 48,
3432
+ 70
3433
+ ],
3434
+ "accounts": [
3435
+ {
3436
+ "name": "escrow_config",
3437
+ "pda": {
3438
+ "seeds": [
3439
+ {
3440
+ "kind": "const",
3441
+ "value": [
3442
+ 101,
3443
+ 115,
3444
+ 99,
3445
+ 114,
3446
+ 111,
3447
+ 119,
3448
+ 45,
3449
+ 99,
3450
+ 111,
3451
+ 110,
3452
+ 102,
3453
+ 105,
3454
+ 103,
3455
+ 45,
3456
+ 118,
3457
+ 50
3458
+ ]
3459
+ }
3460
+ ]
3461
+ }
3462
+ },
3463
+ {
3464
+ "name": "treasury_config",
3465
+ "writable": true,
3466
+ "pda": {
3467
+ "seeds": [
3468
+ {
3469
+ "kind": "const",
3470
+ "value": [
3471
+ 116,
3472
+ 114,
3473
+ 101,
3474
+ 97,
3475
+ 115,
3476
+ 117,
3477
+ 114,
3478
+ 121,
3479
+ 45,
3480
+ 99,
3481
+ 111,
3482
+ 110,
3483
+ 102,
3484
+ 105,
3485
+ 103
3486
+ ]
3487
+ }
3488
+ ]
3489
+ }
3490
+ },
3491
+ {
3492
+ "name": "admin",
3493
+ "writable": true,
3494
+ "signer": true
3495
+ }
3496
+ ],
3497
+ "args": [
3498
+ {
3499
+ "name": "pubkey",
3500
+ "type": "pubkey"
3501
+ }
3502
+ ]
3503
+ },
3504
+ {
3505
+ "name": "schedule_withdrawal_sol",
3506
+ "discriminator": [
3507
+ 41,
3508
+ 253,
3509
+ 139,
3510
+ 251,
3511
+ 39,
3512
+ 160,
3513
+ 13,
3514
+ 135
3515
+ ],
3516
+ "accounts": [
3517
+ {
3518
+ "name": "escrow_config",
3519
+ "pda": {
3520
+ "seeds": [
3521
+ {
3522
+ "kind": "const",
3523
+ "value": [
3524
+ 101,
3525
+ 115,
3526
+ 99,
3527
+ 114,
3528
+ 111,
3529
+ 119,
3530
+ 45,
3531
+ 99,
3532
+ 111,
3533
+ 110,
3534
+ 102,
3535
+ 105,
3536
+ 103,
3537
+ 45,
3538
+ 118,
3539
+ 50
3540
+ ]
3541
+ }
3542
+ ]
3543
+ }
3544
+ },
3545
+ {
3546
+ "name": "treasury_config",
2806
3547
  "pda": {
2807
3548
  "seeds": [
2808
3549
  {
@@ -2829,111 +3570,139 @@
2829
3570
  }
2830
3571
  },
2831
3572
  {
2832
- "name": "admin",
3573
+ "name": "commitment",
2833
3574
  "writable": true,
2834
- "signer": true
2835
- }
2836
- ],
2837
- "args": [
2838
- {
2839
- "name": "pubkey",
2840
- "type": "pubkey"
2841
- }
2842
- ]
2843
- },
2844
- {
2845
- "name": "remove_treasury_manager",
2846
- "discriminator": [
2847
- 82,
2848
- 21,
2849
- 184,
2850
- 234,
2851
- 157,
2852
- 232,
2853
- 48,
2854
- 70
2855
- ],
2856
- "accounts": [
3575
+ "pda": {
3576
+ "seeds": [
3577
+ {
3578
+ "kind": "const",
3579
+ "value": [
3580
+ 119,
3581
+ 105,
3582
+ 116,
3583
+ 104,
3584
+ 100,
3585
+ 114,
3586
+ 97,
3587
+ 119,
3588
+ 97,
3589
+ 108
3590
+ ]
3591
+ },
3592
+ {
3593
+ "kind": "arg",
3594
+ "path": "request_id"
3595
+ }
3596
+ ]
3597
+ }
3598
+ },
2857
3599
  {
2858
- "name": "escrow_config",
3600
+ "name": "timelock_config",
2859
3601
  "pda": {
2860
3602
  "seeds": [
2861
3603
  {
2862
3604
  "kind": "const",
2863
3605
  "value": [
3606
+ 116,
3607
+ 105,
3608
+ 109,
2864
3609
  101,
2865
- 115,
2866
- 99,
2867
- 114,
3610
+ 108,
2868
3611
  111,
2869
- 119,
3612
+ 99,
3613
+ 107,
2870
3614
  45,
2871
3615
  99,
2872
3616
  111,
2873
3617
  110,
2874
3618
  102,
2875
3619
  105,
2876
- 103,
2877
- 45,
2878
- 118,
2879
- 50
3620
+ 103
2880
3621
  ]
2881
3622
  }
2882
3623
  ]
2883
3624
  }
2884
3625
  },
2885
3626
  {
2886
- "name": "treasury_config",
2887
- "writable": true,
3627
+ "name": "receiver_timelock_config",
2888
3628
  "pda": {
2889
3629
  "seeds": [
2890
3630
  {
2891
3631
  "kind": "const",
2892
3632
  "value": [
2893
- 116,
2894
3633
  114,
2895
3634
  101,
2896
- 97,
2897
- 115,
2898
- 117,
3635
+ 99,
3636
+ 101,
3637
+ 105,
3638
+ 118,
3639
+ 101,
2899
3640
  114,
2900
- 121,
2901
3641
  45,
2902
- 99,
2903
- 111,
2904
- 110,
2905
- 102,
3642
+ 116,
2906
3643
  105,
2907
- 103
3644
+ 109,
3645
+ 101,
3646
+ 108,
3647
+ 111,
3648
+ 99,
3649
+ 107
2908
3650
  ]
3651
+ },
3652
+ {
3653
+ "kind": "account",
3654
+ "path": "recipient"
2909
3655
  }
2910
3656
  ]
2911
3657
  }
2912
3658
  },
2913
3659
  {
2914
- "name": "admin",
3660
+ "name": "recipient"
3661
+ },
3662
+ {
3663
+ "name": "caller",
2915
3664
  "writable": true,
2916
3665
  "signer": true
3666
+ },
3667
+ {
3668
+ "name": "system_program",
3669
+ "address": "11111111111111111111111111111111"
3670
+ },
3671
+ {
3672
+ "name": "instructions",
3673
+ "address": "Sysvar1nstructions1111111111111111111111111"
2917
3674
  }
2918
3675
  ],
2919
3676
  "args": [
2920
3677
  {
2921
- "name": "pubkey",
2922
- "type": "pubkey"
3678
+ "name": "request_id",
3679
+ "type": "u64"
3680
+ },
3681
+ {
3682
+ "name": "committed_amount",
3683
+ "type": "u64"
3684
+ },
3685
+ {
3686
+ "name": "net_amount",
3687
+ "type": "u64"
3688
+ },
3689
+ {
3690
+ "name": "chain_id",
3691
+ "type": "u64"
2923
3692
  }
2924
3693
  ]
2925
3694
  },
2926
3695
  {
2927
- "name": "schedule_withdrawal_sol",
3696
+ "name": "schedule_withdrawal_spl",
2928
3697
  "discriminator": [
2929
- 41,
2930
- 253,
2931
- 139,
2932
- 251,
2933
- 39,
2934
- 160,
2935
- 13,
2936
- 135
3698
+ 95,
3699
+ 68,
3700
+ 202,
3701
+ 149,
3702
+ 66,
3703
+ 113,
3704
+ 28,
3705
+ 201
2937
3706
  ],
2938
3707
  "accounts": [
2939
3708
  {
@@ -3078,6 +3847,12 @@
3078
3847
  ]
3079
3848
  }
3080
3849
  },
3850
+ {
3851
+ "name": "mint",
3852
+ "docs": [
3853
+ "The SPL token mint — determines which token is being withdrawn"
3854
+ ]
3855
+ },
3081
3856
  {
3082
3857
  "name": "recipient"
3083
3858
  },
@@ -3109,22 +3884,131 @@
3109
3884
  "type": "u64"
3110
3885
  },
3111
3886
  {
3112
- "name": "chain_id",
3113
- "type": "u64"
3887
+ "name": "chain_id",
3888
+ "type": "u64"
3889
+ }
3890
+ ]
3891
+ },
3892
+ {
3893
+ "name": "set_admin",
3894
+ "discriminator": [
3895
+ 251,
3896
+ 163,
3897
+ 0,
3898
+ 52,
3899
+ 91,
3900
+ 194,
3901
+ 187,
3902
+ 92
3903
+ ],
3904
+ "accounts": [
3905
+ {
3906
+ "name": "escrow_config",
3907
+ "writable": true,
3908
+ "pda": {
3909
+ "seeds": [
3910
+ {
3911
+ "kind": "const",
3912
+ "value": [
3913
+ 101,
3914
+ 115,
3915
+ 99,
3916
+ 114,
3917
+ 111,
3918
+ 119,
3919
+ 45,
3920
+ 99,
3921
+ 111,
3922
+ 110,
3923
+ 102,
3924
+ 105,
3925
+ 103,
3926
+ 45,
3927
+ 118,
3928
+ 50
3929
+ ]
3930
+ }
3931
+ ]
3932
+ }
3933
+ },
3934
+ {
3935
+ "name": "admin",
3936
+ "signer": true
3937
+ }
3938
+ ],
3939
+ "args": [
3940
+ {
3941
+ "name": "new_admin",
3942
+ "type": "pubkey"
3943
+ }
3944
+ ]
3945
+ },
3946
+ {
3947
+ "name": "set_funding_wallet",
3948
+ "discriminator": [
3949
+ 134,
3950
+ 34,
3951
+ 203,
3952
+ 88,
3953
+ 248,
3954
+ 13,
3955
+ 78,
3956
+ 30
3957
+ ],
3958
+ "accounts": [
3959
+ {
3960
+ "name": "escrow_config",
3961
+ "writable": true,
3962
+ "pda": {
3963
+ "seeds": [
3964
+ {
3965
+ "kind": "const",
3966
+ "value": [
3967
+ 101,
3968
+ 115,
3969
+ 99,
3970
+ 114,
3971
+ 111,
3972
+ 119,
3973
+ 45,
3974
+ 99,
3975
+ 111,
3976
+ 110,
3977
+ 102,
3978
+ 105,
3979
+ 103,
3980
+ 45,
3981
+ 118,
3982
+ 50
3983
+ ]
3984
+ }
3985
+ ]
3986
+ }
3987
+ },
3988
+ {
3989
+ "name": "admin",
3990
+ "writable": true,
3991
+ "signer": true
3992
+ }
3993
+ ],
3994
+ "args": [
3995
+ {
3996
+ "name": "new_funding_wallet",
3997
+ "type": "pubkey"
3114
3998
  }
3115
3999
  ]
3116
4000
  },
3117
4001
  {
3118
- "name": "schedule_withdrawal_spl",
4002
+ "name": "set_max_fee_delta",
3119
4003
  "discriminator": [
3120
- 95,
3121
- 68,
3122
- 202,
3123
- 149,
4004
+ 184,
3124
4005
  66,
3125
- 113,
3126
- 28,
3127
- 201
4006
+ 78,
4007
+ 162,
4008
+ 85,
4009
+ 237,
4010
+ 83,
4011
+ 148
3128
4012
  ],
3129
4013
  "accounts": [
3130
4014
  {
@@ -3157,6 +4041,7 @@
3157
4041
  },
3158
4042
  {
3159
4043
  "name": "treasury_config",
4044
+ "writable": true,
3160
4045
  "pda": {
3161
4046
  "seeds": [
3162
4047
  {
@@ -3183,54 +4068,54 @@
3183
4068
  }
3184
4069
  },
3185
4070
  {
3186
- "name": "commitment",
4071
+ "name": "admin",
3187
4072
  "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
- },
4073
+ "signer": true
4074
+ }
4075
+ ],
4076
+ "args": [
3212
4077
  {
3213
- "name": "timelock_config",
4078
+ "name": "amount",
4079
+ "type": "u64"
4080
+ }
4081
+ ]
4082
+ },
4083
+ {
4084
+ "name": "set_receiver_timelock_config",
4085
+ "discriminator": [
4086
+ 179,
4087
+ 116,
4088
+ 158,
4089
+ 165,
4090
+ 236,
4091
+ 240,
4092
+ 203,
4093
+ 78
4094
+ ],
4095
+ "accounts": [
4096
+ {
4097
+ "name": "escrow_config",
3214
4098
  "pda": {
3215
4099
  "seeds": [
3216
4100
  {
3217
4101
  "kind": "const",
3218
4102
  "value": [
3219
- 116,
3220
- 105,
3221
- 109,
3222
4103
  101,
3223
- 108,
3224
- 111,
4104
+ 115,
3225
4105
  99,
3226
- 107,
4106
+ 114,
4107
+ 111,
4108
+ 119,
3227
4109
  45,
3228
4110
  99,
3229
4111
  111,
3230
4112
  110,
3231
4113
  102,
3232
4114
  105,
3233
- 103
4115
+ 103,
4116
+ 45,
4117
+ 118,
4118
+ 50
3234
4119
  ]
3235
4120
  }
3236
4121
  ]
@@ -3238,6 +4123,7 @@
3238
4123
  },
3239
4124
  {
3240
4125
  "name": "receiver_timelock_config",
4126
+ "writable": true,
3241
4127
  "pda": {
3242
4128
  "seeds": [
3243
4129
  {
@@ -3263,65 +4149,44 @@
3263
4149
  ]
3264
4150
  },
3265
4151
  {
3266
- "kind": "account",
3267
- "path": "recipient"
4152
+ "kind": "arg",
4153
+ "path": "receiver"
3268
4154
  }
3269
4155
  ]
3270
4156
  }
3271
4157
  },
3272
4158
  {
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",
4159
+ "name": "admin",
3283
4160
  "writable": true,
3284
4161
  "signer": true
3285
4162
  },
3286
4163
  {
3287
4164
  "name": "system_program",
3288
4165
  "address": "11111111111111111111111111111111"
3289
- },
3290
- {
3291
- "name": "instructions",
3292
- "address": "Sysvar1nstructions1111111111111111111111111"
3293
4166
  }
3294
4167
  ],
3295
4168
  "args": [
3296
4169
  {
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"
4170
+ "name": "receiver",
4171
+ "type": "pubkey"
3307
4172
  },
3308
4173
  {
3309
- "name": "chain_id",
3310
- "type": "u64"
4174
+ "name": "delay_seconds",
4175
+ "type": "i64"
3311
4176
  }
3312
4177
  ]
3313
4178
  },
3314
4179
  {
3315
- "name": "set_admin",
4180
+ "name": "set_signature_wallet",
3316
4181
  "discriminator": [
3317
- 251,
3318
- 163,
4182
+ 218,
4183
+ 131,
4184
+ 78,
4185
+ 197,
4186
+ 72,
4187
+ 225,
3319
4188
  0,
3320
- 52,
3321
- 91,
3322
- 194,
3323
- 187,
3324
- 92
4189
+ 90
3325
4190
  ],
3326
4191
  "accounts": [
3327
4192
  {
@@ -3355,32 +4220,32 @@
3355
4220
  },
3356
4221
  {
3357
4222
  "name": "admin",
4223
+ "writable": true,
3358
4224
  "signer": true
3359
4225
  }
3360
4226
  ],
3361
4227
  "args": [
3362
4228
  {
3363
- "name": "new_admin",
4229
+ "name": "new_signature_wallet",
3364
4230
  "type": "pubkey"
3365
4231
  }
3366
4232
  ]
3367
4233
  },
3368
4234
  {
3369
- "name": "set_funding_wallet",
4235
+ "name": "set_timelock_config",
3370
4236
  "discriminator": [
3371
- 134,
3372
- 34,
3373
- 203,
3374
- 88,
3375
- 248,
3376
- 13,
3377
- 78,
3378
- 30
4237
+ 176,
4238
+ 167,
4239
+ 10,
4240
+ 233,
4241
+ 251,
4242
+ 255,
4243
+ 15,
4244
+ 254
3379
4245
  ],
3380
4246
  "accounts": [
3381
4247
  {
3382
4248
  "name": "escrow_config",
3383
- "writable": true,
3384
4249
  "pda": {
3385
4250
  "seeds": [
3386
4251
  {
@@ -3407,30 +4272,62 @@
3407
4272
  ]
3408
4273
  }
3409
4274
  },
4275
+ {
4276
+ "name": "timelock_config",
4277
+ "writable": true,
4278
+ "pda": {
4279
+ "seeds": [
4280
+ {
4281
+ "kind": "const",
4282
+ "value": [
4283
+ 116,
4284
+ 105,
4285
+ 109,
4286
+ 101,
4287
+ 108,
4288
+ 111,
4289
+ 99,
4290
+ 107,
4291
+ 45,
4292
+ 99,
4293
+ 111,
4294
+ 110,
4295
+ 102,
4296
+ 105,
4297
+ 103
4298
+ ]
4299
+ }
4300
+ ]
4301
+ }
4302
+ },
3410
4303
  {
3411
4304
  "name": "admin",
3412
4305
  "writable": true,
3413
4306
  "signer": true
4307
+ },
4308
+ {
4309
+ "name": "system_program",
4310
+ "address": "11111111111111111111111111111111"
3414
4311
  }
3415
4312
  ],
3416
4313
  "args": [
3417
4314
  {
3418
- "name": "new_funding_wallet",
3419
- "type": "pubkey"
4315
+ "name": "delay_seconds",
4316
+ "type": "i64"
3420
4317
  }
3421
4318
  ]
3422
4319
  },
3423
4320
  {
3424
- "name": "set_max_fee_delta",
4321
+ "name": "set_token_multisig_threshold",
3425
4322
  "discriminator": [
3426
- 184,
3427
- 66,
3428
- 78,
3429
- 162,
4323
+ 222,
4324
+ 3,
4325
+ 118,
4326
+ 195,
4327
+ 77,
3430
4328
  85,
3431
- 237,
3432
- 83,
3433
- 148
4329
+ 132,
4330
+ 22
3434
4331
  ],
3435
4332
  "accounts": [
3436
4333
  {
@@ -3462,7 +4359,7 @@
3462
4359
  }
3463
4360
  },
3464
4361
  {
3465
- "name": "treasury_config",
4362
+ "name": "token_threshold_config",
3466
4363
  "writable": true,
3467
4364
  "pda": {
3468
4365
  "seeds": [
@@ -3470,21 +4367,25 @@
3470
4367
  "kind": "const",
3471
4368
  "value": [
3472
4369
  116,
4370
+ 111,
4371
+ 107,
4372
+ 101,
4373
+ 110,
4374
+ 45,
4375
+ 116,
4376
+ 104,
3473
4377
  114,
3474
4378
  101,
3475
- 97,
3476
4379
  115,
3477
- 117,
3478
- 114,
3479
- 121,
3480
- 45,
3481
- 99,
4380
+ 104,
3482
4381
  111,
3483
- 110,
3484
- 102,
3485
- 105,
3486
- 103
4382
+ 108,
4383
+ 100
3487
4384
  ]
4385
+ },
4386
+ {
4387
+ "kind": "arg",
4388
+ "path": "mint"
3488
4389
  }
3489
4390
  ]
3490
4391
  }
@@ -3493,26 +4394,50 @@
3493
4394
  "name": "admin",
3494
4395
  "writable": true,
3495
4396
  "signer": true
4397
+ },
4398
+ {
4399
+ "name": "system_program",
4400
+ "address": "11111111111111111111111111111111"
3496
4401
  }
3497
4402
  ],
3498
4403
  "args": [
3499
4404
  {
3500
- "name": "amount",
3501
- "type": "u64"
4405
+ "name": "mint",
4406
+ "type": "pubkey"
4407
+ },
4408
+ {
4409
+ "name": "threshold_amount",
4410
+ "type": "u64"
4411
+ },
4412
+ {
4413
+ "name": "manager_below",
4414
+ "type": "u8"
4415
+ },
4416
+ {
4417
+ "name": "manager_above",
4418
+ "type": "u8"
4419
+ },
4420
+ {
4421
+ "name": "executive_below",
4422
+ "type": "u8"
4423
+ },
4424
+ {
4425
+ "name": "executive_above",
4426
+ "type": "u8"
3502
4427
  }
3503
4428
  ]
3504
4429
  },
3505
4430
  {
3506
- "name": "set_receiver_timelock_config",
4431
+ "name": "set_token_timelock",
3507
4432
  "discriminator": [
3508
- 179,
3509
- 116,
3510
- 158,
4433
+ 161,
4434
+ 141,
4435
+ 167,
3511
4436
  165,
3512
- 236,
3513
- 240,
3514
- 203,
3515
- 78
4437
+ 1,
4438
+ 60,
4439
+ 136,
4440
+ 162
3516
4441
  ],
3517
4442
  "accounts": [
3518
4443
  {
@@ -3544,21 +4469,18 @@
3544
4469
  }
3545
4470
  },
3546
4471
  {
3547
- "name": "receiver_timelock_config",
4472
+ "name": "token_timelock_config",
3548
4473
  "writable": true,
3549
4474
  "pda": {
3550
4475
  "seeds": [
3551
4476
  {
3552
4477
  "kind": "const",
3553
4478
  "value": [
3554
- 114,
3555
- 101,
3556
- 99,
3557
- 101,
3558
- 105,
3559
- 118,
4479
+ 116,
4480
+ 111,
4481
+ 107,
3560
4482
  101,
3561
- 114,
4483
+ 110,
3562
4484
  45,
3563
4485
  116,
3564
4486
  105,
@@ -3572,7 +4494,7 @@
3572
4494
  },
3573
4495
  {
3574
4496
  "kind": "arg",
3575
- "path": "receiver"
4497
+ "path": "mint"
3576
4498
  }
3577
4499
  ]
3578
4500
  }
@@ -3589,31 +4511,38 @@
3589
4511
  ],
3590
4512
  "args": [
3591
4513
  {
3592
- "name": "receiver",
4514
+ "name": "mint",
3593
4515
  "type": "pubkey"
3594
4516
  },
3595
4517
  {
3596
- "name": "delay_seconds",
4518
+ "name": "threshold_amount",
4519
+ "type": "u64"
4520
+ },
4521
+ {
4522
+ "name": "duration_below",
4523
+ "type": "i64"
4524
+ },
4525
+ {
4526
+ "name": "duration_above",
3597
4527
  "type": "i64"
3598
4528
  }
3599
4529
  ]
3600
4530
  },
3601
4531
  {
3602
- "name": "set_signature_wallet",
4532
+ "name": "set_withdrawal_thresholds",
3603
4533
  "discriminator": [
3604
- 218,
3605
- 131,
3606
- 78,
3607
- 197,
3608
- 72,
3609
- 225,
3610
- 0,
3611
- 90
4534
+ 210,
4535
+ 174,
4536
+ 130,
4537
+ 94,
4538
+ 94,
4539
+ 180,
4540
+ 181,
4541
+ 165
3612
4542
  ],
3613
4543
  "accounts": [
3614
4544
  {
3615
4545
  "name": "escrow_config",
3616
- "writable": true,
3617
4546
  "pda": {
3618
4547
  "seeds": [
3619
4548
  {
@@ -3640,6 +4569,34 @@
3640
4569
  ]
3641
4570
  }
3642
4571
  },
4572
+ {
4573
+ "name": "treasury_config",
4574
+ "writable": true,
4575
+ "pda": {
4576
+ "seeds": [
4577
+ {
4578
+ "kind": "const",
4579
+ "value": [
4580
+ 116,
4581
+ 114,
4582
+ 101,
4583
+ 97,
4584
+ 115,
4585
+ 117,
4586
+ 114,
4587
+ 121,
4588
+ 45,
4589
+ 99,
4590
+ 111,
4591
+ 110,
4592
+ 102,
4593
+ 105,
4594
+ 103
4595
+ ]
4596
+ }
4597
+ ]
4598
+ }
4599
+ },
3643
4600
  {
3644
4601
  "name": "admin",
3645
4602
  "writable": true,
@@ -3648,22 +4605,26 @@
3648
4605
  ],
3649
4606
  "args": [
3650
4607
  {
3651
- "name": "new_signature_wallet",
3652
- "type": "pubkey"
4608
+ "name": "manager_threshold",
4609
+ "type": "u8"
4610
+ },
4611
+ {
4612
+ "name": "executive_threshold",
4613
+ "type": "u8"
3653
4614
  }
3654
4615
  ]
3655
4616
  },
3656
4617
  {
3657
- "name": "set_timelock_config",
4618
+ "name": "withdraw_sol_with_sig",
3658
4619
  "discriminator": [
3659
- 176,
3660
- 167,
3661
- 10,
3662
- 233,
3663
- 251,
3664
- 255,
3665
- 15,
3666
- 254
4620
+ 127,
4621
+ 123,
4622
+ 63,
4623
+ 232,
4624
+ 4,
4625
+ 153,
4626
+ 33,
4627
+ 13
3667
4628
  ],
3668
4629
  "accounts": [
3669
4630
  {
@@ -3695,94 +4656,69 @@
3695
4656
  }
3696
4657
  },
3697
4658
  {
3698
- "name": "timelock_config",
4659
+ "name": "user",
4660
+ "writable": true,
4661
+ "signer": true
4662
+ },
4663
+ {
4664
+ "name": "vault_authority",
3699
4665
  "writable": true,
3700
4666
  "pda": {
3701
4667
  "seeds": [
3702
4668
  {
3703
4669
  "kind": "const",
3704
4670
  "value": [
3705
- 116,
3706
- 105,
3707
- 109,
3708
4671
  101,
3709
- 108,
3710
- 111,
3711
- 99,
3712
- 107,
3713
- 45,
4672
+ 115,
3714
4673
  99,
4674
+ 114,
3715
4675
  111,
3716
- 110,
3717
- 102,
3718
- 105,
3719
- 103
4676
+ 119
3720
4677
  ]
3721
4678
  }
3722
4679
  ]
3723
4680
  }
3724
4681
  },
3725
4682
  {
3726
- "name": "admin",
4683
+ "name": "withdraw_nonce",
3727
4684
  "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
4685
  "pda": {
3758
4686
  "seeds": [
3759
4687
  {
3760
4688
  "kind": "const",
3761
4689
  "value": [
3762
- 101,
3763
- 115,
3764
- 99,
4690
+ 119,
4691
+ 105,
4692
+ 116,
4693
+ 104,
4694
+ 100,
3765
4695
  114,
3766
- 111,
4696
+ 97,
3767
4697
  119,
3768
4698
  45,
3769
- 99,
4699
+ 110,
3770
4700
  111,
3771
4701
  110,
3772
- 102,
3773
- 105,
3774
- 103,
3775
- 45,
3776
- 118,
3777
- 50
4702
+ 99,
4703
+ 101
3778
4704
  ]
4705
+ },
4706
+ {
4707
+ "kind": "account",
4708
+ "path": "user"
3779
4709
  }
3780
4710
  ]
3781
4711
  }
3782
4712
  },
4713
+ {
4714
+ "name": "recipient",
4715
+ "writable": true
4716
+ },
4717
+ {
4718
+ "name": "token_address"
4719
+ },
3783
4720
  {
3784
4721
  "name": "treasury_config",
3785
- "writable": true,
3786
4722
  "pda": {
3787
4723
  "seeds": [
3788
4724
  {
@@ -3809,89 +4745,128 @@
3809
4745
  }
3810
4746
  },
3811
4747
  {
3812
- "name": "admin",
3813
- "writable": true,
3814
- "signer": true
3815
- }
3816
- ],
3817
- "args": [
4748
+ "name": "token_threshold_config",
4749
+ "pda": {
4750
+ "seeds": [
4751
+ {
4752
+ "kind": "const",
4753
+ "value": [
4754
+ 116,
4755
+ 111,
4756
+ 107,
4757
+ 101,
4758
+ 110,
4759
+ 45,
4760
+ 116,
4761
+ 104,
4762
+ 114,
4763
+ 101,
4764
+ 115,
4765
+ 104,
4766
+ 111,
4767
+ 108,
4768
+ 100
4769
+ ]
4770
+ },
4771
+ {
4772
+ "kind": "account",
4773
+ "path": "token_address"
4774
+ }
4775
+ ]
4776
+ }
4777
+ },
3818
4778
  {
3819
- "name": "manager_threshold",
3820
- "type": "u8"
4779
+ "name": "token_timelock_config",
4780
+ "pda": {
4781
+ "seeds": [
4782
+ {
4783
+ "kind": "const",
4784
+ "value": [
4785
+ 116,
4786
+ 111,
4787
+ 107,
4788
+ 101,
4789
+ 110,
4790
+ 45,
4791
+ 116,
4792
+ 105,
4793
+ 109,
4794
+ 101,
4795
+ 108,
4796
+ 111,
4797
+ 99,
4798
+ 107
4799
+ ]
4800
+ },
4801
+ {
4802
+ "kind": "account",
4803
+ "path": "token_address"
4804
+ }
4805
+ ]
4806
+ }
3821
4807
  },
3822
4808
  {
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",
4809
+ "name": "timelock_config",
3843
4810
  "pda": {
3844
4811
  "seeds": [
3845
4812
  {
3846
4813
  "kind": "const",
3847
4814
  "value": [
4815
+ 116,
4816
+ 105,
4817
+ 109,
3848
4818
  101,
3849
- 115,
3850
- 99,
3851
- 114,
4819
+ 108,
3852
4820
  111,
3853
- 119,
4821
+ 99,
4822
+ 107,
3854
4823
  45,
3855
4824
  99,
3856
4825
  111,
3857
4826
  110,
3858
4827
  102,
3859
4828
  105,
3860
- 103,
3861
- 45,
3862
- 118,
3863
- 50
4829
+ 103
3864
4830
  ]
3865
4831
  }
3866
4832
  ]
3867
4833
  }
3868
4834
  },
3869
4835
  {
3870
- "name": "user",
3871
- "writable": true,
3872
- "signer": true
3873
- },
3874
- {
3875
- "name": "vault_authority",
3876
- "writable": true,
4836
+ "name": "receiver_timelock_config",
3877
4837
  "pda": {
3878
4838
  "seeds": [
3879
4839
  {
3880
4840
  "kind": "const",
3881
4841
  "value": [
4842
+ 114,
3882
4843
  101,
3883
- 115,
3884
4844
  99,
4845
+ 101,
4846
+ 105,
4847
+ 118,
4848
+ 101,
3885
4849
  114,
4850
+ 45,
4851
+ 116,
4852
+ 105,
4853
+ 109,
4854
+ 101,
4855
+ 108,
3886
4856
  111,
3887
- 119
4857
+ 99,
4858
+ 107
3888
4859
  ]
4860
+ },
4861
+ {
4862
+ "kind": "account",
4863
+ "path": "recipient"
3889
4864
  }
3890
4865
  ]
3891
4866
  }
3892
4867
  },
3893
4868
  {
3894
- "name": "withdraw_nonce",
4869
+ "name": "commitment",
3895
4870
  "writable": true,
3896
4871
  "pda": {
3897
4872
  "seeds": [
@@ -3906,28 +4881,17 @@
3906
4881
  114,
3907
4882
  97,
3908
4883
  119,
3909
- 45,
3910
- 110,
3911
- 111,
3912
- 110,
3913
- 99,
3914
- 101
4884
+ 97,
4885
+ 108
3915
4886
  ]
3916
4887
  },
3917
4888
  {
3918
- "kind": "account",
3919
- "path": "user"
4889
+ "kind": "arg",
4890
+ "path": "request_id"
3920
4891
  }
3921
4892
  ]
3922
4893
  }
3923
4894
  },
3924
- {
3925
- "name": "recipient",
3926
- "writable": true
3927
- },
3928
- {
3929
- "name": "token_address"
3930
- },
3931
4895
  {
3932
4896
  "name": "system_program",
3933
4897
  "address": "11111111111111111111111111111111"
@@ -4165,46 +5129,221 @@
4165
5129
  },
4166
5130
  {
4167
5131
  "kind": "account",
4168
- "path": "mint"
5132
+ "path": "mint"
5133
+ }
5134
+ ],
5135
+ "program": {
5136
+ "kind": "const",
5137
+ "value": [
5138
+ 140,
5139
+ 151,
5140
+ 37,
5141
+ 143,
5142
+ 78,
5143
+ 36,
5144
+ 137,
5145
+ 241,
5146
+ 187,
5147
+ 61,
5148
+ 16,
5149
+ 41,
5150
+ 20,
5151
+ 142,
5152
+ 13,
5153
+ 131,
5154
+ 11,
5155
+ 90,
5156
+ 19,
5157
+ 153,
5158
+ 218,
5159
+ 255,
5160
+ 16,
5161
+ 132,
5162
+ 4,
5163
+ 142,
5164
+ 123,
5165
+ 216,
5166
+ 219,
5167
+ 233,
5168
+ 248,
5169
+ 89
5170
+ ]
5171
+ }
5172
+ }
5173
+ },
5174
+ {
5175
+ "name": "treasury_config",
5176
+ "pda": {
5177
+ "seeds": [
5178
+ {
5179
+ "kind": "const",
5180
+ "value": [
5181
+ 116,
5182
+ 114,
5183
+ 101,
5184
+ 97,
5185
+ 115,
5186
+ 117,
5187
+ 114,
5188
+ 121,
5189
+ 45,
5190
+ 99,
5191
+ 111,
5192
+ 110,
5193
+ 102,
5194
+ 105,
5195
+ 103
5196
+ ]
5197
+ }
5198
+ ]
5199
+ }
5200
+ },
5201
+ {
5202
+ "name": "token_threshold_config",
5203
+ "pda": {
5204
+ "seeds": [
5205
+ {
5206
+ "kind": "const",
5207
+ "value": [
5208
+ 116,
5209
+ 111,
5210
+ 107,
5211
+ 101,
5212
+ 110,
5213
+ 45,
5214
+ 116,
5215
+ 104,
5216
+ 114,
5217
+ 101,
5218
+ 115,
5219
+ 104,
5220
+ 111,
5221
+ 108,
5222
+ 100
5223
+ ]
5224
+ },
5225
+ {
5226
+ "kind": "account",
5227
+ "path": "mint"
5228
+ }
5229
+ ]
5230
+ }
5231
+ },
5232
+ {
5233
+ "name": "token_timelock_config",
5234
+ "pda": {
5235
+ "seeds": [
5236
+ {
5237
+ "kind": "const",
5238
+ "value": [
5239
+ 116,
5240
+ 111,
5241
+ 107,
5242
+ 101,
5243
+ 110,
5244
+ 45,
5245
+ 116,
5246
+ 105,
5247
+ 109,
5248
+ 101,
5249
+ 108,
5250
+ 111,
5251
+ 99,
5252
+ 107
5253
+ ]
5254
+ },
5255
+ {
5256
+ "kind": "account",
5257
+ "path": "mint"
5258
+ }
5259
+ ]
5260
+ }
5261
+ },
5262
+ {
5263
+ "name": "timelock_config",
5264
+ "pda": {
5265
+ "seeds": [
5266
+ {
5267
+ "kind": "const",
5268
+ "value": [
5269
+ 116,
5270
+ 105,
5271
+ 109,
5272
+ 101,
5273
+ 108,
5274
+ 111,
5275
+ 99,
5276
+ 107,
5277
+ 45,
5278
+ 99,
5279
+ 111,
5280
+ 110,
5281
+ 102,
5282
+ 105,
5283
+ 103
5284
+ ]
5285
+ }
5286
+ ]
5287
+ }
5288
+ },
5289
+ {
5290
+ "name": "receiver_timelock_config",
5291
+ "pda": {
5292
+ "seeds": [
5293
+ {
5294
+ "kind": "const",
5295
+ "value": [
5296
+ 114,
5297
+ 101,
5298
+ 99,
5299
+ 101,
5300
+ 105,
5301
+ 118,
5302
+ 101,
5303
+ 114,
5304
+ 45,
5305
+ 116,
5306
+ 105,
5307
+ 109,
5308
+ 101,
5309
+ 108,
5310
+ 111,
5311
+ 99,
5312
+ 107
5313
+ ]
5314
+ },
5315
+ {
5316
+ "kind": "account",
5317
+ "path": "recipient"
4169
5318
  }
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
- }
5319
+ ]
5320
+ }
5321
+ },
5322
+ {
5323
+ "name": "commitment",
5324
+ "writable": true,
5325
+ "pda": {
5326
+ "seeds": [
5327
+ {
5328
+ "kind": "const",
5329
+ "value": [
5330
+ 119,
5331
+ 105,
5332
+ 116,
5333
+ 104,
5334
+ 100,
5335
+ 114,
5336
+ 97,
5337
+ 119,
5338
+ 97,
5339
+ 108
5340
+ ]
5341
+ },
5342
+ {
5343
+ "kind": "arg",
5344
+ "path": "request_id"
5345
+ }
5346
+ ]
4208
5347
  }
4209
5348
  },
4210
5349
  {
@@ -4289,6 +5428,32 @@
4289
5428
  197
4290
5429
  ]
4291
5430
  },
5431
+ {
5432
+ "name": "TokenThresholdConfig",
5433
+ "discriminator": [
5434
+ 239,
5435
+ 53,
5436
+ 2,
5437
+ 63,
5438
+ 29,
5439
+ 99,
5440
+ 180,
5441
+ 126
5442
+ ]
5443
+ },
5444
+ {
5445
+ "name": "TokenTimelockConfig",
5446
+ "discriminator": [
5447
+ 51,
5448
+ 228,
5449
+ 40,
5450
+ 68,
5451
+ 91,
5452
+ 228,
5453
+ 142,
5454
+ 151
5455
+ ]
5456
+ },
4292
5457
  {
4293
5458
  "name": "TreasuryConfig",
4294
5459
  "discriminator": [
@@ -4447,6 +5612,32 @@
4447
5612
  116
4448
5613
  ]
4449
5614
  },
5615
+ {
5616
+ "name": "TokenMultisigConfiguredEvent",
5617
+ "discriminator": [
5618
+ 97,
5619
+ 171,
5620
+ 100,
5621
+ 139,
5622
+ 60,
5623
+ 200,
5624
+ 134,
5625
+ 54
5626
+ ]
5627
+ },
5628
+ {
5629
+ "name": "TokenTimelockConfiguredEvent",
5630
+ "discriminator": [
5631
+ 236,
5632
+ 0,
5633
+ 0,
5634
+ 171,
5635
+ 251,
5636
+ 210,
5637
+ 77,
5638
+ 224
5639
+ ]
5640
+ },
4450
5641
  {
4451
5642
  "name": "TreasuryConfigInitializedEvent",
4452
5643
  "discriminator": [
@@ -5104,6 +6295,169 @@
5104
6295
  ]
5105
6296
  }
5106
6297
  },
6298
+ {
6299
+ "name": "TokenMultisigConfiguredEvent",
6300
+ "docs": [
6301
+ "Emitted when a token's amount-banded multisig thresholds are configured",
6302
+ "(mirrors EVM ConfigureTokenMultisig)."
6303
+ ],
6304
+ "type": {
6305
+ "kind": "struct",
6306
+ "fields": [
6307
+ {
6308
+ "name": "token_mint",
6309
+ "type": "pubkey"
6310
+ },
6311
+ {
6312
+ "name": "threshold_amount",
6313
+ "type": "u64"
6314
+ },
6315
+ {
6316
+ "name": "manager_below",
6317
+ "type": "u8"
6318
+ },
6319
+ {
6320
+ "name": "manager_above",
6321
+ "type": "u8"
6322
+ },
6323
+ {
6324
+ "name": "executive_below",
6325
+ "type": "u8"
6326
+ },
6327
+ {
6328
+ "name": "executive_above",
6329
+ "type": "u8"
6330
+ },
6331
+ {
6332
+ "name": "sender",
6333
+ "type": "pubkey"
6334
+ },
6335
+ {
6336
+ "name": "slot",
6337
+ "type": "u64"
6338
+ },
6339
+ {
6340
+ "name": "timestamp",
6341
+ "type": "i64"
6342
+ }
6343
+ ]
6344
+ }
6345
+ },
6346
+ {
6347
+ "name": "TokenThresholdConfig",
6348
+ "docs": [
6349
+ "Per-token multisig execution thresholds (mirrors EVM tokenThresholdSettings).",
6350
+ "",
6351
+ "`threshold_amount` splits withdrawals into two bands: amounts `>= threshold_amount`",
6352
+ "use the `*_above` counts, amounts below use `*_below`. A count of 0 means no signatures",
6353
+ "of that role are required for that band. An unset/zero config ⇒ no multisig required",
6354
+ "(the withdrawal proceeds as it did before this feature).",
6355
+ "",
6356
+ "PDA seeds: [b\"token-threshold\", mint]. For SOL, `mint` is the System Program id."
6357
+ ],
6358
+ "type": {
6359
+ "kind": "struct",
6360
+ "fields": [
6361
+ {
6362
+ "name": "threshold_amount",
6363
+ "type": "u64"
6364
+ },
6365
+ {
6366
+ "name": "manager_below",
6367
+ "type": "u8"
6368
+ },
6369
+ {
6370
+ "name": "manager_above",
6371
+ "type": "u8"
6372
+ },
6373
+ {
6374
+ "name": "executive_below",
6375
+ "type": "u8"
6376
+ },
6377
+ {
6378
+ "name": "executive_above",
6379
+ "type": "u8"
6380
+ },
6381
+ {
6382
+ "name": "is_set",
6383
+ "type": "bool"
6384
+ }
6385
+ ]
6386
+ }
6387
+ },
6388
+ {
6389
+ "name": "TokenTimelockConfig",
6390
+ "docs": [
6391
+ "Per-token, amount-banded timelock (mirrors EVM timelockConfig[token]).",
6392
+ "",
6393
+ "Withdrawals `>= threshold_amount` use `duration_above`, otherwise `duration_below`.",
6394
+ "Resolution order for the effective delay is: per-receiver override → this per-token",
6395
+ "band → global `TimelockConfig` default → 0 (immediate).",
6396
+ "",
6397
+ "PDA seeds: [b\"token-timelock\", mint]. For SOL, `mint` is the System Program id."
6398
+ ],
6399
+ "type": {
6400
+ "kind": "struct",
6401
+ "fields": [
6402
+ {
6403
+ "name": "threshold_amount",
6404
+ "type": "u64"
6405
+ },
6406
+ {
6407
+ "name": "duration_below",
6408
+ "type": "i64"
6409
+ },
6410
+ {
6411
+ "name": "duration_above",
6412
+ "type": "i64"
6413
+ },
6414
+ {
6415
+ "name": "is_set",
6416
+ "type": "bool"
6417
+ }
6418
+ ]
6419
+ }
6420
+ },
6421
+ {
6422
+ "name": "TokenTimelockConfiguredEvent",
6423
+ "docs": [
6424
+ "Emitted when a token's amount-banded timelock is configured",
6425
+ "(mirrors EVM SetTokenTimelock)."
6426
+ ],
6427
+ "type": {
6428
+ "kind": "struct",
6429
+ "fields": [
6430
+ {
6431
+ "name": "token_mint",
6432
+ "type": "pubkey"
6433
+ },
6434
+ {
6435
+ "name": "threshold_amount",
6436
+ "type": "u64"
6437
+ },
6438
+ {
6439
+ "name": "duration_below",
6440
+ "type": "i64"
6441
+ },
6442
+ {
6443
+ "name": "duration_above",
6444
+ "type": "i64"
6445
+ },
6446
+ {
6447
+ "name": "sender",
6448
+ "type": "pubkey"
6449
+ },
6450
+ {
6451
+ "name": "slot",
6452
+ "type": "u64"
6453
+ },
6454
+ {
6455
+ "name": "timestamp",
6456
+ "type": "i64"
6457
+ }
6458
+ ]
6459
+ }
6460
+ },
5107
6461
  {
5108
6462
  "name": "TreasuryConfig",
5109
6463
  "type": {
@@ -5146,19 +6500,13 @@
5146
6500
  {
5147
6501
  "name": "TreasuryConfigInitializedEvent",
5148
6502
  "docs": [
5149
- "Emitted when the treasury config is first initialized."
6503
+ "Emitted when the treasury config PDA is first allocated. Thresholds are not part of this",
6504
+ "event: withdrawal gating is decided by the per-token bands (see ConfigureTokenMultisig),",
6505
+ "not by any value set at init time."
5150
6506
  ],
5151
6507
  "type": {
5152
6508
  "kind": "struct",
5153
6509
  "fields": [
5154
- {
5155
- "name": "manager_threshold",
5156
- "type": "u8"
5157
- },
5158
- {
5159
- "name": "executive_threshold",
5160
- "type": "u8"
5161
- },
5162
6510
  {
5163
6511
  "name": "sender",
5164
6512
  "type": "pubkey"