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

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,167 +1018,758 @@
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
1190
- ]
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
1772
+ ]
1191
1773
  }
1192
1774
  ]
1193
1775
  }
@@ -3629,13 +4211,185 @@
3629
4211
  99,
3630
4212
  111,
3631
4213
  110,
3632
- 102,
3633
- 105,
3634
- 103,
4214
+ 102,
4215
+ 105,
4216
+ 103,
4217
+ 45,
4218
+ 118,
4219
+ 50
4220
+ ]
4221
+ }
4222
+ ]
4223
+ }
4224
+ },
4225
+ {
4226
+ "name": "admin",
4227
+ "writable": true,
4228
+ "signer": true
4229
+ }
4230
+ ],
4231
+ "args": [
4232
+ {
4233
+ "name": "new_signature_wallet",
4234
+ "type": "pubkey"
4235
+ }
4236
+ ]
4237
+ },
4238
+ {
4239
+ "name": "set_timelock_config",
4240
+ "discriminator": [
4241
+ 176,
4242
+ 167,
4243
+ 10,
4244
+ 233,
4245
+ 251,
4246
+ 255,
4247
+ 15,
4248
+ 254
4249
+ ],
4250
+ "accounts": [
4251
+ {
4252
+ "name": "escrow_config",
4253
+ "pda": {
4254
+ "seeds": [
4255
+ {
4256
+ "kind": "const",
4257
+ "value": [
4258
+ 101,
4259
+ 115,
4260
+ 99,
4261
+ 114,
4262
+ 111,
4263
+ 119,
4264
+ 45,
4265
+ 99,
4266
+ 111,
4267
+ 110,
4268
+ 102,
4269
+ 105,
4270
+ 103,
4271
+ 45,
4272
+ 118,
4273
+ 50
4274
+ ]
4275
+ }
4276
+ ]
4277
+ }
4278
+ },
4279
+ {
4280
+ "name": "timelock_config",
4281
+ "writable": true,
4282
+ "pda": {
4283
+ "seeds": [
4284
+ {
4285
+ "kind": "const",
4286
+ "value": [
4287
+ 116,
4288
+ 105,
4289
+ 109,
4290
+ 101,
4291
+ 108,
4292
+ 111,
4293
+ 99,
4294
+ 107,
4295
+ 45,
4296
+ 99,
4297
+ 111,
4298
+ 110,
4299
+ 102,
4300
+ 105,
4301
+ 103
4302
+ ]
4303
+ }
4304
+ ]
4305
+ }
4306
+ },
4307
+ {
4308
+ "name": "admin",
4309
+ "writable": true,
4310
+ "signer": true
4311
+ },
4312
+ {
4313
+ "name": "system_program",
4314
+ "address": "11111111111111111111111111111111"
4315
+ }
4316
+ ],
4317
+ "args": [
4318
+ {
4319
+ "name": "delay_seconds",
4320
+ "type": "i64"
4321
+ }
4322
+ ]
4323
+ },
4324
+ {
4325
+ "name": "set_token_multisig_threshold",
4326
+ "discriminator": [
4327
+ 222,
4328
+ 3,
4329
+ 118,
4330
+ 195,
4331
+ 77,
4332
+ 85,
4333
+ 132,
4334
+ 22
4335
+ ],
4336
+ "accounts": [
4337
+ {
4338
+ "name": "escrow_config",
4339
+ "pda": {
4340
+ "seeds": [
4341
+ {
4342
+ "kind": "const",
4343
+ "value": [
4344
+ 101,
4345
+ 115,
4346
+ 99,
4347
+ 114,
4348
+ 111,
4349
+ 119,
4350
+ 45,
4351
+ 99,
4352
+ 111,
4353
+ 110,
4354
+ 102,
4355
+ 105,
4356
+ 103,
4357
+ 45,
4358
+ 118,
4359
+ 50
4360
+ ]
4361
+ }
4362
+ ]
4363
+ }
4364
+ },
4365
+ {
4366
+ "name": "token_threshold_config",
4367
+ "writable": true,
4368
+ "pda": {
4369
+ "seeds": [
4370
+ {
4371
+ "kind": "const",
4372
+ "value": [
4373
+ 116,
4374
+ 111,
4375
+ 107,
4376
+ 101,
4377
+ 110,
3635
4378
  45,
3636
- 118,
3637
- 50
4379
+ 116,
4380
+ 104,
4381
+ 114,
4382
+ 101,
4383
+ 115,
4384
+ 104,
4385
+ 111,
4386
+ 108,
4387
+ 100
3638
4388
  ]
4389
+ },
4390
+ {
4391
+ "kind": "arg",
4392
+ "path": "mint"
3639
4393
  }
3640
4394
  ]
3641
4395
  }
@@ -3644,26 +4398,50 @@
3644
4398
  "name": "admin",
3645
4399
  "writable": true,
3646
4400
  "signer": true
4401
+ },
4402
+ {
4403
+ "name": "system_program",
4404
+ "address": "11111111111111111111111111111111"
3647
4405
  }
3648
4406
  ],
3649
4407
  "args": [
3650
4408
  {
3651
- "name": "new_signature_wallet",
4409
+ "name": "mint",
3652
4410
  "type": "pubkey"
4411
+ },
4412
+ {
4413
+ "name": "threshold_amount",
4414
+ "type": "u64"
4415
+ },
4416
+ {
4417
+ "name": "manager_below",
4418
+ "type": "u8"
4419
+ },
4420
+ {
4421
+ "name": "manager_above",
4422
+ "type": "u8"
4423
+ },
4424
+ {
4425
+ "name": "executive_below",
4426
+ "type": "u8"
4427
+ },
4428
+ {
4429
+ "name": "executive_above",
4430
+ "type": "u8"
3653
4431
  }
3654
4432
  ]
3655
4433
  },
3656
4434
  {
3657
- "name": "set_timelock_config",
4435
+ "name": "set_token_timelock",
3658
4436
  "discriminator": [
3659
- 176,
4437
+ 161,
4438
+ 141,
3660
4439
  167,
3661
- 10,
3662
- 233,
3663
- 251,
3664
- 255,
3665
- 15,
3666
- 254
4440
+ 165,
4441
+ 1,
4442
+ 60,
4443
+ 136,
4444
+ 162
3667
4445
  ],
3668
4446
  "accounts": [
3669
4447
  {
@@ -3695,13 +4473,19 @@
3695
4473
  }
3696
4474
  },
3697
4475
  {
3698
- "name": "timelock_config",
4476
+ "name": "token_timelock_config",
3699
4477
  "writable": true,
3700
4478
  "pda": {
3701
4479
  "seeds": [
3702
4480
  {
3703
4481
  "kind": "const",
3704
4482
  "value": [
4483
+ 116,
4484
+ 111,
4485
+ 107,
4486
+ 101,
4487
+ 110,
4488
+ 45,
3705
4489
  116,
3706
4490
  105,
3707
4491
  109,
@@ -3709,15 +4493,12 @@
3709
4493
  108,
3710
4494
  111,
3711
4495
  99,
3712
- 107,
3713
- 45,
3714
- 99,
3715
- 111,
3716
- 110,
3717
- 102,
3718
- 105,
3719
- 103
4496
+ 107
3720
4497
  ]
4498
+ },
4499
+ {
4500
+ "kind": "arg",
4501
+ "path": "mint"
3721
4502
  }
3722
4503
  ]
3723
4504
  }
@@ -3734,7 +4515,19 @@
3734
4515
  ],
3735
4516
  "args": [
3736
4517
  {
3737
- "name": "delay_seconds",
4518
+ "name": "mint",
4519
+ "type": "pubkey"
4520
+ },
4521
+ {
4522
+ "name": "threshold_amount",
4523
+ "type": "u64"
4524
+ },
4525
+ {
4526
+ "name": "duration_below",
4527
+ "type": "i64"
4528
+ },
4529
+ {
4530
+ "name": "duration_above",
3738
4531
  "type": "i64"
3739
4532
  }
3740
4533
  ]
@@ -3928,6 +4721,181 @@
3928
4721
  {
3929
4722
  "name": "token_address"
3930
4723
  },
4724
+ {
4725
+ "name": "treasury_config",
4726
+ "pda": {
4727
+ "seeds": [
4728
+ {
4729
+ "kind": "const",
4730
+ "value": [
4731
+ 116,
4732
+ 114,
4733
+ 101,
4734
+ 97,
4735
+ 115,
4736
+ 117,
4737
+ 114,
4738
+ 121,
4739
+ 45,
4740
+ 99,
4741
+ 111,
4742
+ 110,
4743
+ 102,
4744
+ 105,
4745
+ 103
4746
+ ]
4747
+ }
4748
+ ]
4749
+ }
4750
+ },
4751
+ {
4752
+ "name": "token_threshold_config",
4753
+ "pda": {
4754
+ "seeds": [
4755
+ {
4756
+ "kind": "const",
4757
+ "value": [
4758
+ 116,
4759
+ 111,
4760
+ 107,
4761
+ 101,
4762
+ 110,
4763
+ 45,
4764
+ 116,
4765
+ 104,
4766
+ 114,
4767
+ 101,
4768
+ 115,
4769
+ 104,
4770
+ 111,
4771
+ 108,
4772
+ 100
4773
+ ]
4774
+ },
4775
+ {
4776
+ "kind": "account",
4777
+ "path": "token_address"
4778
+ }
4779
+ ]
4780
+ }
4781
+ },
4782
+ {
4783
+ "name": "token_timelock_config",
4784
+ "pda": {
4785
+ "seeds": [
4786
+ {
4787
+ "kind": "const",
4788
+ "value": [
4789
+ 116,
4790
+ 111,
4791
+ 107,
4792
+ 101,
4793
+ 110,
4794
+ 45,
4795
+ 116,
4796
+ 105,
4797
+ 109,
4798
+ 101,
4799
+ 108,
4800
+ 111,
4801
+ 99,
4802
+ 107
4803
+ ]
4804
+ },
4805
+ {
4806
+ "kind": "account",
4807
+ "path": "token_address"
4808
+ }
4809
+ ]
4810
+ }
4811
+ },
4812
+ {
4813
+ "name": "timelock_config",
4814
+ "pda": {
4815
+ "seeds": [
4816
+ {
4817
+ "kind": "const",
4818
+ "value": [
4819
+ 116,
4820
+ 105,
4821
+ 109,
4822
+ 101,
4823
+ 108,
4824
+ 111,
4825
+ 99,
4826
+ 107,
4827
+ 45,
4828
+ 99,
4829
+ 111,
4830
+ 110,
4831
+ 102,
4832
+ 105,
4833
+ 103
4834
+ ]
4835
+ }
4836
+ ]
4837
+ }
4838
+ },
4839
+ {
4840
+ "name": "receiver_timelock_config",
4841
+ "pda": {
4842
+ "seeds": [
4843
+ {
4844
+ "kind": "const",
4845
+ "value": [
4846
+ 114,
4847
+ 101,
4848
+ 99,
4849
+ 101,
4850
+ 105,
4851
+ 118,
4852
+ 101,
4853
+ 114,
4854
+ 45,
4855
+ 116,
4856
+ 105,
4857
+ 109,
4858
+ 101,
4859
+ 108,
4860
+ 111,
4861
+ 99,
4862
+ 107
4863
+ ]
4864
+ },
4865
+ {
4866
+ "kind": "account",
4867
+ "path": "recipient"
4868
+ }
4869
+ ]
4870
+ }
4871
+ },
4872
+ {
4873
+ "name": "commitment",
4874
+ "writable": true,
4875
+ "pda": {
4876
+ "seeds": [
4877
+ {
4878
+ "kind": "const",
4879
+ "value": [
4880
+ 119,
4881
+ 105,
4882
+ 116,
4883
+ 104,
4884
+ 100,
4885
+ 114,
4886
+ 97,
4887
+ 119,
4888
+ 97,
4889
+ 108
4890
+ ]
4891
+ },
4892
+ {
4893
+ "kind": "arg",
4894
+ "path": "request_id"
4895
+ }
4896
+ ]
4897
+ }
4898
+ },
3931
4899
  {
3932
4900
  "name": "system_program",
3933
4901
  "address": "11111111111111111111111111111111"
@@ -4068,143 +5036,318 @@
4068
5036
  },
4069
5037
  {
4070
5038
  "kind": "account",
4071
- "path": "mint"
5039
+ "path": "mint"
5040
+ }
5041
+ ],
5042
+ "program": {
5043
+ "kind": "const",
5044
+ "value": [
5045
+ 140,
5046
+ 151,
5047
+ 37,
5048
+ 143,
5049
+ 78,
5050
+ 36,
5051
+ 137,
5052
+ 241,
5053
+ 187,
5054
+ 61,
5055
+ 16,
5056
+ 41,
5057
+ 20,
5058
+ 142,
5059
+ 13,
5060
+ 131,
5061
+ 11,
5062
+ 90,
5063
+ 19,
5064
+ 153,
5065
+ 218,
5066
+ 255,
5067
+ 16,
5068
+ 132,
5069
+ 4,
5070
+ 142,
5071
+ 123,
5072
+ 216,
5073
+ 219,
5074
+ 233,
5075
+ 248,
5076
+ 89
5077
+ ]
5078
+ }
5079
+ }
5080
+ },
5081
+ {
5082
+ "name": "withdraw_nonce"
5083
+ },
5084
+ {
5085
+ "name": "recipient",
5086
+ "writable": true
5087
+ },
5088
+ {
5089
+ "name": "user_token_account",
5090
+ "writable": true,
5091
+ "pda": {
5092
+ "seeds": [
5093
+ {
5094
+ "kind": "account",
5095
+ "path": "user"
5096
+ },
5097
+ {
5098
+ "kind": "const",
5099
+ "value": [
5100
+ 6,
5101
+ 221,
5102
+ 246,
5103
+ 225,
5104
+ 215,
5105
+ 101,
5106
+ 161,
5107
+ 147,
5108
+ 217,
5109
+ 203,
5110
+ 225,
5111
+ 70,
5112
+ 206,
5113
+ 235,
5114
+ 121,
5115
+ 172,
5116
+ 28,
5117
+ 180,
5118
+ 133,
5119
+ 237,
5120
+ 95,
5121
+ 91,
5122
+ 55,
5123
+ 145,
5124
+ 58,
5125
+ 140,
5126
+ 245,
5127
+ 133,
5128
+ 126,
5129
+ 255,
5130
+ 0,
5131
+ 169
5132
+ ]
5133
+ },
5134
+ {
5135
+ "kind": "account",
5136
+ "path": "mint"
5137
+ }
5138
+ ],
5139
+ "program": {
5140
+ "kind": "const",
5141
+ "value": [
5142
+ 140,
5143
+ 151,
5144
+ 37,
5145
+ 143,
5146
+ 78,
5147
+ 36,
5148
+ 137,
5149
+ 241,
5150
+ 187,
5151
+ 61,
5152
+ 16,
5153
+ 41,
5154
+ 20,
5155
+ 142,
5156
+ 13,
5157
+ 131,
5158
+ 11,
5159
+ 90,
5160
+ 19,
5161
+ 153,
5162
+ 218,
5163
+ 255,
5164
+ 16,
5165
+ 132,
5166
+ 4,
5167
+ 142,
5168
+ 123,
5169
+ 216,
5170
+ 219,
5171
+ 233,
5172
+ 248,
5173
+ 89
5174
+ ]
5175
+ }
5176
+ }
5177
+ },
5178
+ {
5179
+ "name": "treasury_config",
5180
+ "pda": {
5181
+ "seeds": [
5182
+ {
5183
+ "kind": "const",
5184
+ "value": [
5185
+ 116,
5186
+ 114,
5187
+ 101,
5188
+ 97,
5189
+ 115,
5190
+ 117,
5191
+ 114,
5192
+ 121,
5193
+ 45,
5194
+ 99,
5195
+ 111,
5196
+ 110,
5197
+ 102,
5198
+ 105,
5199
+ 103
5200
+ ]
5201
+ }
5202
+ ]
5203
+ }
5204
+ },
5205
+ {
5206
+ "name": "token_threshold_config",
5207
+ "pda": {
5208
+ "seeds": [
5209
+ {
5210
+ "kind": "const",
5211
+ "value": [
5212
+ 116,
5213
+ 111,
5214
+ 107,
5215
+ 101,
5216
+ 110,
5217
+ 45,
5218
+ 116,
5219
+ 104,
5220
+ 114,
5221
+ 101,
5222
+ 115,
5223
+ 104,
5224
+ 111,
5225
+ 108,
5226
+ 100
5227
+ ]
5228
+ },
5229
+ {
5230
+ "kind": "account",
5231
+ "path": "mint"
5232
+ }
5233
+ ]
5234
+ }
5235
+ },
5236
+ {
5237
+ "name": "token_timelock_config",
5238
+ "pda": {
5239
+ "seeds": [
5240
+ {
5241
+ "kind": "const",
5242
+ "value": [
5243
+ 116,
5244
+ 111,
5245
+ 107,
5246
+ 101,
5247
+ 110,
5248
+ 45,
5249
+ 116,
5250
+ 105,
5251
+ 109,
5252
+ 101,
5253
+ 108,
5254
+ 111,
5255
+ 99,
5256
+ 107
5257
+ ]
5258
+ },
5259
+ {
5260
+ "kind": "account",
5261
+ "path": "mint"
5262
+ }
5263
+ ]
5264
+ }
5265
+ },
5266
+ {
5267
+ "name": "timelock_config",
5268
+ "pda": {
5269
+ "seeds": [
5270
+ {
5271
+ "kind": "const",
5272
+ "value": [
5273
+ 116,
5274
+ 105,
5275
+ 109,
5276
+ 101,
5277
+ 108,
5278
+ 111,
5279
+ 99,
5280
+ 107,
5281
+ 45,
5282
+ 99,
5283
+ 111,
5284
+ 110,
5285
+ 102,
5286
+ 105,
5287
+ 103
5288
+ ]
5289
+ }
5290
+ ]
5291
+ }
5292
+ },
5293
+ {
5294
+ "name": "receiver_timelock_config",
5295
+ "pda": {
5296
+ "seeds": [
5297
+ {
5298
+ "kind": "const",
5299
+ "value": [
5300
+ 114,
5301
+ 101,
5302
+ 99,
5303
+ 101,
5304
+ 105,
5305
+ 118,
5306
+ 101,
5307
+ 114,
5308
+ 45,
5309
+ 116,
5310
+ 105,
5311
+ 109,
5312
+ 101,
5313
+ 108,
5314
+ 111,
5315
+ 99,
5316
+ 107
5317
+ ]
5318
+ },
5319
+ {
5320
+ "kind": "account",
5321
+ "path": "recipient"
4072
5322
  }
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
- }
5323
+ ]
4111
5324
  }
4112
5325
  },
4113
5326
  {
4114
- "name": "withdraw_nonce"
4115
- },
4116
- {
4117
- "name": "recipient",
4118
- "writable": true
4119
- },
4120
- {
4121
- "name": "user_token_account",
5327
+ "name": "commitment",
4122
5328
  "writable": true,
4123
5329
  "pda": {
4124
5330
  "seeds": [
4125
- {
4126
- "kind": "account",
4127
- "path": "user"
4128
- },
4129
5331
  {
4130
5332
  "kind": "const",
4131
5333
  "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
5334
+ 119,
5335
+ 105,
5336
+ 116,
5337
+ 104,
5338
+ 100,
5339
+ 114,
5340
+ 97,
5341
+ 119,
5342
+ 97,
5343
+ 108
4164
5344
  ]
4165
5345
  },
4166
5346
  {
4167
- "kind": "account",
4168
- "path": "mint"
5347
+ "kind": "arg",
5348
+ "path": "request_id"
4169
5349
  }
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
- }
5350
+ ]
4208
5351
  }
4209
5352
  },
4210
5353
  {
@@ -4289,6 +5432,32 @@
4289
5432
  197
4290
5433
  ]
4291
5434
  },
5435
+ {
5436
+ "name": "TokenThresholdConfig",
5437
+ "discriminator": [
5438
+ 239,
5439
+ 53,
5440
+ 2,
5441
+ 63,
5442
+ 29,
5443
+ 99,
5444
+ 180,
5445
+ 126
5446
+ ]
5447
+ },
5448
+ {
5449
+ "name": "TokenTimelockConfig",
5450
+ "discriminator": [
5451
+ 51,
5452
+ 228,
5453
+ 40,
5454
+ 68,
5455
+ 91,
5456
+ 228,
5457
+ 142,
5458
+ 151
5459
+ ]
5460
+ },
4292
5461
  {
4293
5462
  "name": "TreasuryConfig",
4294
5463
  "discriminator": [
@@ -4370,16 +5539,120 @@
4370
5539
  ]
4371
5540
  },
4372
5541
  {
4373
- "name": "DepositSplEvent",
5542
+ "name": "DepositSplEvent",
5543
+ "discriminator": [
5544
+ 109,
5545
+ 11,
5546
+ 28,
5547
+ 127,
5548
+ 178,
5549
+ 29,
5550
+ 254,
5551
+ 23
5552
+ ]
5553
+ },
5554
+ {
5555
+ "name": "MaxFeeDeltaConfiguredEvent",
5556
+ "discriminator": [
5557
+ 22,
5558
+ 138,
5559
+ 194,
5560
+ 64,
5561
+ 245,
5562
+ 136,
5563
+ 168,
5564
+ 16
5565
+ ]
5566
+ },
5567
+ {
5568
+ "name": "ReceiverTimelockConfiguredEvent",
5569
+ "discriminator": [
5570
+ 133,
5571
+ 139,
5572
+ 55,
5573
+ 62,
5574
+ 207,
5575
+ 76,
5576
+ 16,
5577
+ 95
5578
+ ]
5579
+ },
5580
+ {
5581
+ "name": "RoleGranted",
5582
+ "discriminator": [
5583
+ 220,
5584
+ 183,
5585
+ 89,
5586
+ 228,
5587
+ 143,
5588
+ 63,
5589
+ 246,
5590
+ 58
5591
+ ]
5592
+ },
5593
+ {
5594
+ "name": "RoleRevoked",
5595
+ "discriminator": [
5596
+ 167,
5597
+ 183,
5598
+ 52,
5599
+ 229,
5600
+ 126,
5601
+ 206,
5602
+ 62,
5603
+ 61
5604
+ ]
5605
+ },
5606
+ {
5607
+ "name": "TimelockConfiguredEvent",
5608
+ "discriminator": [
5609
+ 95,
5610
+ 91,
5611
+ 67,
5612
+ 84,
5613
+ 32,
5614
+ 210,
5615
+ 3,
5616
+ 116
5617
+ ]
5618
+ },
5619
+ {
5620
+ "name": "TokenMultisigConfiguredEvent",
5621
+ "discriminator": [
5622
+ 97,
5623
+ 171,
5624
+ 100,
5625
+ 139,
5626
+ 60,
5627
+ 200,
5628
+ 134,
5629
+ 54
5630
+ ]
5631
+ },
5632
+ {
5633
+ "name": "TokenTimelockConfiguredEvent",
5634
+ "discriminator": [
5635
+ 236,
5636
+ 0,
5637
+ 0,
5638
+ 171,
5639
+ 251,
5640
+ 210,
5641
+ 77,
5642
+ 224
5643
+ ]
5644
+ },
5645
+ {
5646
+ "name": "TreasuryConfigInitializedEvent",
4374
5647
  "discriminator": [
4375
- 109,
4376
- 11,
5648
+ 170,
5649
+ 202,
5650
+ 243,
5651
+ 194,
5652
+ 90,
5653
+ 143,
4377
5654
  28,
4378
- 127,
4379
- 178,
4380
- 29,
4381
- 254,
4382
- 23
5655
+ 119
4383
5656
  ]
4384
5657
  },
4385
5658
  {
@@ -4446,6 +5719,19 @@
4446
5719
  247,
4447
5720
  68
4448
5721
  ]
5722
+ },
5723
+ {
5724
+ "name": "WithdrawalThresholdsConfiguredEvent",
5725
+ "discriminator": [
5726
+ 233,
5727
+ 231,
5728
+ 110,
5729
+ 102,
5730
+ 162,
5731
+ 86,
5732
+ 78,
5733
+ 118
5734
+ ]
4449
5735
  }
4450
5736
  ],
4451
5737
  "errors": [
@@ -4597,29 +5883,273 @@
4597
5883
  ],
4598
5884
  "types": [
4599
5885
  {
4600
- "name": "AdminDeposit",
5886
+ "name": "AdminDeposit",
5887
+ "type": {
5888
+ "kind": "struct",
5889
+ "fields": [
5890
+ {
5891
+ "name": "caller",
5892
+ "type": "pubkey"
5893
+ },
5894
+ {
5895
+ "name": "depositor",
5896
+ "type": "pubkey"
5897
+ },
5898
+ {
5899
+ "name": "recipient",
5900
+ "type": "pubkey"
5901
+ },
5902
+ {
5903
+ "name": "token",
5904
+ "type": "pubkey"
5905
+ },
5906
+ {
5907
+ "name": "amount",
5908
+ "type": "u64"
5909
+ },
5910
+ {
5911
+ "name": "slot",
5912
+ "type": "u64"
5913
+ },
5914
+ {
5915
+ "name": "timestamp",
5916
+ "type": "i64"
5917
+ }
5918
+ ]
5919
+ }
5920
+ },
5921
+ {
5922
+ "name": "AdminWithdraw",
5923
+ "type": {
5924
+ "kind": "struct",
5925
+ "fields": [
5926
+ {
5927
+ "name": "caller",
5928
+ "type": "pubkey"
5929
+ },
5930
+ {
5931
+ "name": "recipient",
5932
+ "type": "pubkey"
5933
+ },
5934
+ {
5935
+ "name": "token",
5936
+ "type": "pubkey"
5937
+ },
5938
+ {
5939
+ "name": "amount",
5940
+ "type": "u64"
5941
+ },
5942
+ {
5943
+ "name": "slot",
5944
+ "type": "u64"
5945
+ },
5946
+ {
5947
+ "name": "timestamp",
5948
+ "type": "i64"
5949
+ }
5950
+ ]
5951
+ }
5952
+ },
5953
+ {
5954
+ "name": "DepositSolEvent",
5955
+ "type": {
5956
+ "kind": "struct",
5957
+ "fields": [
5958
+ {
5959
+ "name": "caller",
5960
+ "type": "pubkey"
5961
+ },
5962
+ {
5963
+ "name": "depositor",
5964
+ "type": "pubkey"
5965
+ },
5966
+ {
5967
+ "name": "vault_authority",
5968
+ "type": "pubkey"
5969
+ },
5970
+ {
5971
+ "name": "amount",
5972
+ "type": "u64"
5973
+ },
5974
+ {
5975
+ "name": "bonus_code",
5976
+ "type": "string"
5977
+ },
5978
+ {
5979
+ "name": "slot",
5980
+ "type": "u64"
5981
+ },
5982
+ {
5983
+ "name": "timestamp",
5984
+ "type": "i64"
5985
+ }
5986
+ ]
5987
+ }
5988
+ },
5989
+ {
5990
+ "name": "DepositSplEvent",
5991
+ "type": {
5992
+ "kind": "struct",
5993
+ "fields": [
5994
+ {
5995
+ "name": "caller",
5996
+ "type": "pubkey"
5997
+ },
5998
+ {
5999
+ "name": "depositor",
6000
+ "type": "pubkey"
6001
+ },
6002
+ {
6003
+ "name": "vault_token_account",
6004
+ "type": "pubkey"
6005
+ },
6006
+ {
6007
+ "name": "mint",
6008
+ "type": "pubkey"
6009
+ },
6010
+ {
6011
+ "name": "amount",
6012
+ "type": "u64"
6013
+ },
6014
+ {
6015
+ "name": "bonus_code",
6016
+ "type": "string"
6017
+ },
6018
+ {
6019
+ "name": "slot",
6020
+ "type": "u64"
6021
+ },
6022
+ {
6023
+ "name": "timestamp",
6024
+ "type": "i64"
6025
+ }
6026
+ ]
6027
+ }
6028
+ },
6029
+ {
6030
+ "name": "EscrowConfig",
6031
+ "type": {
6032
+ "kind": "struct",
6033
+ "fields": [
6034
+ {
6035
+ "name": "admin",
6036
+ "type": "pubkey"
6037
+ },
6038
+ {
6039
+ "name": "signer",
6040
+ "type": "pubkey"
6041
+ },
6042
+ {
6043
+ "name": "is_initialized",
6044
+ "type": "bool"
6045
+ }
6046
+ ]
6047
+ }
6048
+ },
6049
+ {
6050
+ "name": "EscrowConfiguration",
6051
+ "docs": [
6052
+ "Config account holding"
6053
+ ],
6054
+ "type": {
6055
+ "kind": "struct",
6056
+ "fields": [
6057
+ {
6058
+ "name": "admins",
6059
+ "type": {
6060
+ "vec": "pubkey"
6061
+ }
6062
+ },
6063
+ {
6064
+ "name": "payment_tokens",
6065
+ "type": {
6066
+ "vec": "pubkey"
6067
+ }
6068
+ },
6069
+ {
6070
+ "name": "signer",
6071
+ "type": "pubkey"
6072
+ },
6073
+ {
6074
+ "name": "funding_wallet",
6075
+ "type": "pubkey"
6076
+ },
6077
+ {
6078
+ "name": "is_initialized",
6079
+ "type": "bool"
6080
+ },
6081
+ {
6082
+ "name": "is_paused",
6083
+ "type": "bool"
6084
+ }
6085
+ ]
6086
+ }
6087
+ },
6088
+ {
6089
+ "name": "MaxFeeDeltaConfiguredEvent",
6090
+ "docs": [
6091
+ "Emitted when the max fee delta (committed - net cap) is updated. 0 = disabled."
6092
+ ],
6093
+ "type": {
6094
+ "kind": "struct",
6095
+ "fields": [
6096
+ {
6097
+ "name": "amount",
6098
+ "type": "u64"
6099
+ },
6100
+ {
6101
+ "name": "sender",
6102
+ "type": "pubkey"
6103
+ },
6104
+ {
6105
+ "name": "slot",
6106
+ "type": "u64"
6107
+ },
6108
+ {
6109
+ "name": "timestamp",
6110
+ "type": "i64"
6111
+ }
6112
+ ]
6113
+ }
6114
+ },
6115
+ {
6116
+ "name": "ReceiverTimelockConfig",
6117
+ "docs": [
6118
+ "Per-receiver timelock override. delay_seconds = 0 means trusted (immediate execution)."
6119
+ ],
4601
6120
  "type": {
4602
6121
  "kind": "struct",
4603
6122
  "fields": [
4604
6123
  {
4605
- "name": "caller",
4606
- "type": "pubkey"
6124
+ "name": "delay_seconds",
6125
+ "type": "i64"
4607
6126
  },
4608
6127
  {
4609
- "name": "depositor",
4610
- "type": "pubkey"
4611
- },
6128
+ "name": "is_set",
6129
+ "type": "bool"
6130
+ }
6131
+ ]
6132
+ }
6133
+ },
6134
+ {
6135
+ "name": "ReceiverTimelockConfiguredEvent",
6136
+ "docs": [
6137
+ "Emitted when a per-receiver (granular) timelock override is set."
6138
+ ],
6139
+ "type": {
6140
+ "kind": "struct",
6141
+ "fields": [
4612
6142
  {
4613
- "name": "recipient",
6143
+ "name": "receiver",
4614
6144
  "type": "pubkey"
4615
6145
  },
4616
6146
  {
4617
- "name": "token",
4618
- "type": "pubkey"
6147
+ "name": "delay_seconds",
6148
+ "type": "i64"
4619
6149
  },
4620
6150
  {
4621
- "name": "amount",
4622
- "type": "u64"
6151
+ "name": "sender",
6152
+ "type": "pubkey"
4623
6153
  },
4624
6154
  {
4625
6155
  "name": "slot",
@@ -4633,26 +6163,50 @@
4633
6163
  }
4634
6164
  },
4635
6165
  {
4636
- "name": "AdminWithdraw",
6166
+ "name": "Role",
6167
+ "docs": [
6168
+ "Role assigned to a membership set on the escrow (mirrors EVM AccessControl semantics)."
6169
+ ],
6170
+ "type": {
6171
+ "kind": "enum",
6172
+ "variants": [
6173
+ {
6174
+ "name": "Admin"
6175
+ },
6176
+ {
6177
+ "name": "TreasuryManager"
6178
+ },
6179
+ {
6180
+ "name": "TreasuryExecutive"
6181
+ }
6182
+ ]
6183
+ }
6184
+ },
6185
+ {
6186
+ "name": "RoleGranted",
6187
+ "docs": [
6188
+ "Emitted when an account is added to a role membership set (add_admin, add_treasury_manager,",
6189
+ "add_treasury_executive). `account` is the granted key; `sender` is the admin that authorized it."
6190
+ ],
4637
6191
  "type": {
4638
6192
  "kind": "struct",
4639
6193
  "fields": [
4640
6194
  {
4641
- "name": "caller",
4642
- "type": "pubkey"
6195
+ "name": "role",
6196
+ "type": {
6197
+ "defined": {
6198
+ "name": "Role"
6199
+ }
6200
+ }
4643
6201
  },
4644
6202
  {
4645
- "name": "recipient",
6203
+ "name": "account",
4646
6204
  "type": "pubkey"
4647
6205
  },
4648
6206
  {
4649
- "name": "token",
6207
+ "name": "sender",
4650
6208
  "type": "pubkey"
4651
6209
  },
4652
- {
4653
- "name": "amount",
4654
- "type": "u64"
4655
- },
4656
6210
  {
4657
6211
  "name": "slot",
4658
6212
  "type": "u64"
@@ -4665,30 +6219,29 @@
4665
6219
  }
4666
6220
  },
4667
6221
  {
4668
- "name": "DepositSolEvent",
6222
+ "name": "RoleRevoked",
6223
+ "docs": [
6224
+ "Emitted when an account is removed from a role membership set."
6225
+ ],
4669
6226
  "type": {
4670
6227
  "kind": "struct",
4671
6228
  "fields": [
4672
6229
  {
4673
- "name": "caller",
4674
- "type": "pubkey"
6230
+ "name": "role",
6231
+ "type": {
6232
+ "defined": {
6233
+ "name": "Role"
6234
+ }
6235
+ }
4675
6236
  },
4676
6237
  {
4677
- "name": "depositor",
6238
+ "name": "account",
4678
6239
  "type": "pubkey"
4679
6240
  },
4680
6241
  {
4681
- "name": "vault_authority",
6242
+ "name": "sender",
4682
6243
  "type": "pubkey"
4683
6244
  },
4684
- {
4685
- "name": "amount",
4686
- "type": "u64"
4687
- },
4688
- {
4689
- "name": "bonus_code",
4690
- "type": "string"
4691
- },
4692
6245
  {
4693
6246
  "name": "slot",
4694
6247
  "type": "u64"
@@ -4701,34 +6254,40 @@
4701
6254
  }
4702
6255
  },
4703
6256
  {
4704
- "name": "DepositSplEvent",
6257
+ "name": "TimelockConfig",
6258
+ "docs": [
6259
+ "Global timelock delay applied to all withdrawals unless overridden per-receiver."
6260
+ ],
4705
6261
  "type": {
4706
6262
  "kind": "struct",
4707
6263
  "fields": [
4708
6264
  {
4709
- "name": "caller",
4710
- "type": "pubkey"
6265
+ "name": "delay_seconds",
6266
+ "type": "i64"
4711
6267
  },
4712
6268
  {
4713
- "name": "depositor",
4714
- "type": "pubkey"
4715
- },
6269
+ "name": "is_set",
6270
+ "type": "bool"
6271
+ }
6272
+ ]
6273
+ }
6274
+ },
6275
+ {
6276
+ "name": "TimelockConfiguredEvent",
6277
+ "docs": [
6278
+ "Emitted when the global timelock delay is set."
6279
+ ],
6280
+ "type": {
6281
+ "kind": "struct",
6282
+ "fields": [
4716
6283
  {
4717
- "name": "vault_token_account",
4718
- "type": "pubkey"
6284
+ "name": "delay_seconds",
6285
+ "type": "i64"
4719
6286
  },
4720
6287
  {
4721
- "name": "mint",
6288
+ "name": "sender",
4722
6289
  "type": "pubkey"
4723
6290
  },
4724
- {
4725
- "name": "amount",
4726
- "type": "u64"
4727
- },
4728
- {
4729
- "name": "bonus_code",
4730
- "type": "string"
4731
- },
4732
6291
  {
4733
6292
  "name": "slot",
4734
6293
  "type": "u64"
@@ -4741,74 +6300,119 @@
4741
6300
  }
4742
6301
  },
4743
6302
  {
4744
- "name": "EscrowConfig",
6303
+ "name": "TokenMultisigConfiguredEvent",
6304
+ "docs": [
6305
+ "Emitted when a token's amount-banded multisig thresholds are configured",
6306
+ "(mirrors EVM ConfigureTokenMultisig)."
6307
+ ],
4745
6308
  "type": {
4746
6309
  "kind": "struct",
4747
6310
  "fields": [
4748
6311
  {
4749
- "name": "admin",
6312
+ "name": "token_mint",
4750
6313
  "type": "pubkey"
4751
6314
  },
4752
6315
  {
4753
- "name": "signer",
6316
+ "name": "threshold_amount",
6317
+ "type": "u64"
6318
+ },
6319
+ {
6320
+ "name": "manager_below",
6321
+ "type": "u8"
6322
+ },
6323
+ {
6324
+ "name": "manager_above",
6325
+ "type": "u8"
6326
+ },
6327
+ {
6328
+ "name": "executive_below",
6329
+ "type": "u8"
6330
+ },
6331
+ {
6332
+ "name": "executive_above",
6333
+ "type": "u8"
6334
+ },
6335
+ {
6336
+ "name": "sender",
4754
6337
  "type": "pubkey"
4755
6338
  },
4756
6339
  {
4757
- "name": "is_initialized",
4758
- "type": "bool"
6340
+ "name": "slot",
6341
+ "type": "u64"
6342
+ },
6343
+ {
6344
+ "name": "timestamp",
6345
+ "type": "i64"
4759
6346
  }
4760
6347
  ]
4761
6348
  }
4762
6349
  },
4763
6350
  {
4764
- "name": "EscrowConfiguration",
6351
+ "name": "TokenThresholdConfig",
4765
6352
  "docs": [
4766
- "Config account holding"
6353
+ "Per-token multisig execution thresholds (mirrors EVM tokenThresholdSettings).",
6354
+ "",
6355
+ "`threshold_amount` splits withdrawals into two bands: amounts `>= threshold_amount`",
6356
+ "use the `*_above` counts, amounts below use `*_below`. A count of 0 means no signatures",
6357
+ "of that role are required for that band. An unset/zero config ⇒ no multisig required",
6358
+ "(the withdrawal proceeds as it did before this feature).",
6359
+ "",
6360
+ "PDA seeds: [b\"token-threshold\", mint]. For SOL, `mint` is the System Program id."
4767
6361
  ],
4768
6362
  "type": {
4769
6363
  "kind": "struct",
4770
6364
  "fields": [
4771
6365
  {
4772
- "name": "admins",
4773
- "type": {
4774
- "vec": "pubkey"
4775
- }
6366
+ "name": "threshold_amount",
6367
+ "type": "u64"
4776
6368
  },
4777
6369
  {
4778
- "name": "payment_tokens",
4779
- "type": {
4780
- "vec": "pubkey"
4781
- }
6370
+ "name": "manager_below",
6371
+ "type": "u8"
4782
6372
  },
4783
6373
  {
4784
- "name": "signer",
4785
- "type": "pubkey"
6374
+ "name": "manager_above",
6375
+ "type": "u8"
4786
6376
  },
4787
6377
  {
4788
- "name": "funding_wallet",
4789
- "type": "pubkey"
6378
+ "name": "executive_below",
6379
+ "type": "u8"
4790
6380
  },
4791
6381
  {
4792
- "name": "is_initialized",
4793
- "type": "bool"
6382
+ "name": "executive_above",
6383
+ "type": "u8"
4794
6384
  },
4795
6385
  {
4796
- "name": "is_paused",
6386
+ "name": "is_set",
4797
6387
  "type": "bool"
4798
6388
  }
4799
6389
  ]
4800
6390
  }
4801
6391
  },
4802
6392
  {
4803
- "name": "ReceiverTimelockConfig",
6393
+ "name": "TokenTimelockConfig",
4804
6394
  "docs": [
4805
- "Per-receiver timelock override. delay_seconds = 0 means trusted (immediate execution)."
6395
+ "Per-token, amount-banded timelock (mirrors EVM timelockConfig[token]).",
6396
+ "",
6397
+ "Withdrawals `>= threshold_amount` use `duration_above`, otherwise `duration_below`.",
6398
+ "Resolution order for the effective delay is: per-receiver override → this per-token",
6399
+ "band → global `TimelockConfig` default → 0 (immediate).",
6400
+ "",
6401
+ "PDA seeds: [b\"token-timelock\", mint]. For SOL, `mint` is the System Program id."
4806
6402
  ],
4807
6403
  "type": {
4808
6404
  "kind": "struct",
4809
6405
  "fields": [
4810
6406
  {
4811
- "name": "delay_seconds",
6407
+ "name": "threshold_amount",
6408
+ "type": "u64"
6409
+ },
6410
+ {
6411
+ "name": "duration_below",
6412
+ "type": "i64"
6413
+ },
6414
+ {
6415
+ "name": "duration_above",
4812
6416
  "type": "i64"
4813
6417
  },
4814
6418
  {
@@ -4819,20 +6423,41 @@
4819
6423
  }
4820
6424
  },
4821
6425
  {
4822
- "name": "TimelockConfig",
6426
+ "name": "TokenTimelockConfiguredEvent",
4823
6427
  "docs": [
4824
- "Global timelock delay applied to all withdrawals unless overridden per-receiver."
6428
+ "Emitted when a token's amount-banded timelock is configured",
6429
+ "(mirrors EVM SetTokenTimelock)."
4825
6430
  ],
4826
6431
  "type": {
4827
6432
  "kind": "struct",
4828
6433
  "fields": [
4829
6434
  {
4830
- "name": "delay_seconds",
6435
+ "name": "token_mint",
6436
+ "type": "pubkey"
6437
+ },
6438
+ {
6439
+ "name": "threshold_amount",
6440
+ "type": "u64"
6441
+ },
6442
+ {
6443
+ "name": "duration_below",
4831
6444
  "type": "i64"
4832
6445
  },
4833
6446
  {
4834
- "name": "is_set",
4835
- "type": "bool"
6447
+ "name": "duration_above",
6448
+ "type": "i64"
6449
+ },
6450
+ {
6451
+ "name": "sender",
6452
+ "type": "pubkey"
6453
+ },
6454
+ {
6455
+ "name": "slot",
6456
+ "type": "u64"
6457
+ },
6458
+ {
6459
+ "name": "timestamp",
6460
+ "type": "i64"
4836
6461
  }
4837
6462
  ]
4838
6463
  }
@@ -4876,6 +6501,37 @@
4876
6501
  ]
4877
6502
  }
4878
6503
  },
6504
+ {
6505
+ "name": "TreasuryConfigInitializedEvent",
6506
+ "docs": [
6507
+ "Emitted when the treasury config is first initialized."
6508
+ ],
6509
+ "type": {
6510
+ "kind": "struct",
6511
+ "fields": [
6512
+ {
6513
+ "name": "manager_threshold",
6514
+ "type": "u8"
6515
+ },
6516
+ {
6517
+ "name": "executive_threshold",
6518
+ "type": "u8"
6519
+ },
6520
+ {
6521
+ "name": "sender",
6522
+ "type": "pubkey"
6523
+ },
6524
+ {
6525
+ "name": "slot",
6526
+ "type": "u64"
6527
+ },
6528
+ {
6529
+ "name": "timestamp",
6530
+ "type": "i64"
6531
+ }
6532
+ ]
6533
+ }
6534
+ },
4879
6535
  {
4880
6536
  "name": "WithdrawNonce",
4881
6537
  "type": {
@@ -5106,6 +6762,37 @@
5106
6762
  }
5107
6763
  ]
5108
6764
  }
6765
+ },
6766
+ {
6767
+ "name": "WithdrawalThresholdsConfiguredEvent",
6768
+ "docs": [
6769
+ "Emitted when the manager/executive withdrawal thresholds are updated."
6770
+ ],
6771
+ "type": {
6772
+ "kind": "struct",
6773
+ "fields": [
6774
+ {
6775
+ "name": "manager_threshold",
6776
+ "type": "u8"
6777
+ },
6778
+ {
6779
+ "name": "executive_threshold",
6780
+ "type": "u8"
6781
+ },
6782
+ {
6783
+ "name": "sender",
6784
+ "type": "pubkey"
6785
+ },
6786
+ {
6787
+ "name": "slot",
6788
+ "type": "u64"
6789
+ },
6790
+ {
6791
+ "name": "timestamp",
6792
+ "type": "i64"
6793
+ }
6794
+ ]
6795
+ }
5109
6796
  }
5110
6797
  ]
5111
6798
  }