@ercworldio/blockchain-shared 1.0.5-dev.8-PLAT134.2 → 1.0.5-dev.8-PLAT134.5
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.
- package/build/chains/networks_dev.json +0 -10
- package/build/chains/networks_prod-bu.json +14 -0
- package/build/chains/networks_prod-dz.json +1 -22
- package/build/contracts/artifacts/Escrow.json +0 -13
- package/build/contracts/contract-events/EscrowEvents.d.ts +2 -16
- package/build/contracts/contract-events/EscrowEvents.d.ts.map +1 -1
- package/build/contracts/contract-events/EscrowEvents.js +0 -5
- package/build/contracts/contract-events/types/events.d.ts +1 -5
- package/build/contracts/contract-events/types/events.d.ts.map +1 -1
- package/build/contracts/typechain-types/contracts/escrow/Escrow.d.ts +1 -15
- package/build/contracts/typechain-types/contracts/escrow/Escrow.d.ts.map +1 -1
- package/build/contracts/typechain-types/contracts/lib/Events.d.ts +1 -15
- package/build/contracts/typechain-types/contracts/lib/Events.d.ts.map +1 -1
- package/build/contracts/typechain-types/factories/contracts/escrow/Escrow__factory.d.ts +1 -11
- package/build/contracts/typechain-types/factories/contracts/escrow/Escrow__factory.d.ts.map +1 -1
- package/build/contracts/typechain-types/factories/contracts/escrow/Escrow__factory.js +1 -14
- package/build/contracts/typechain-types/factories/contracts/lib/Events__factory.d.ts +1 -11
- package/build/contracts/typechain-types/factories/contracts/lib/Events__factory.d.ts.map +1 -1
- package/build/contracts/typechain-types/factories/contracts/lib/Events__factory.js +1 -14
- package/build/index.d.ts +0 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +2 -4
- package/build/services/AlchemyService.d.ts.map +1 -1
- package/build/services/AlchemyService.js +3 -2
- package/build/services/AzureEventHubHandler.d.ts.map +1 -1
- package/build/services/AzureEventHubHandler.js +1 -4
- package/build/services/ClaimJobService.d.ts.map +1 -1
- package/build/services/ClaimJobService.js +5 -12
- package/build/services/Redis.js +2 -2
- package/build/services/RedisPubSub.js +1 -1
- package/build/services/db/timelock/ScheduleTransactionService.d.ts +2 -16
- package/build/services/db/timelock/ScheduleTransactionService.d.ts.map +1 -1
- package/build/services/db/timelock/ScheduleTransactionService.js +1 -265
- package/build/services/solana/escrow/idl/escrow.json +877 -0
- package/build/services/solana/escrow/types/escrow.d.ts +877 -0
- package/build/services/solana/escrow/types/escrow.d.ts.map +1 -1
- package/build/services/types/azure_event_hub_handler.d.ts +1 -3
- package/build/services/types/azure_event_hub_handler.d.ts.map +1 -1
- package/build/services/types/azure_event_hub_handler.js +0 -3
- package/build/services/types/claim.d.ts +0 -1
- package/build/services/types/claim.d.ts.map +1 -1
- package/build/services/types/db/timelock.d.ts +0 -56
- package/build/services/types/db/timelock.d.ts.map +1 -1
- package/build/utils/solana.d.ts.map +1 -1
- package/build/utils/solana.js +3 -5
- package/package.json +1 -1
|
@@ -1084,6 +1084,592 @@ export type Escrow = {
|
|
|
1084
1084
|
}
|
|
1085
1085
|
];
|
|
1086
1086
|
},
|
|
1087
|
+
{
|
|
1088
|
+
"name": "adminWithdrawSolV2";
|
|
1089
|
+
"docs": [
|
|
1090
|
+
"Pull-based admin withdrawal of native SOL, multisig-aware (mirrors EVM adminWithdraw)."
|
|
1091
|
+
];
|
|
1092
|
+
"discriminator": [
|
|
1093
|
+
76,
|
|
1094
|
+
84,
|
|
1095
|
+
255,
|
|
1096
|
+
156,
|
|
1097
|
+
101,
|
|
1098
|
+
7,
|
|
1099
|
+
49,
|
|
1100
|
+
42
|
|
1101
|
+
];
|
|
1102
|
+
"accounts": [
|
|
1103
|
+
{
|
|
1104
|
+
"name": "escrowConfig";
|
|
1105
|
+
"pda": {
|
|
1106
|
+
"seeds": [
|
|
1107
|
+
{
|
|
1108
|
+
"kind": "const";
|
|
1109
|
+
"value": [
|
|
1110
|
+
101,
|
|
1111
|
+
115,
|
|
1112
|
+
99,
|
|
1113
|
+
114,
|
|
1114
|
+
111,
|
|
1115
|
+
119,
|
|
1116
|
+
45,
|
|
1117
|
+
99,
|
|
1118
|
+
111,
|
|
1119
|
+
110,
|
|
1120
|
+
102,
|
|
1121
|
+
105,
|
|
1122
|
+
103,
|
|
1123
|
+
45,
|
|
1124
|
+
118,
|
|
1125
|
+
50
|
|
1126
|
+
];
|
|
1127
|
+
}
|
|
1128
|
+
];
|
|
1129
|
+
};
|
|
1130
|
+
},
|
|
1131
|
+
{
|
|
1132
|
+
"name": "treasuryConfig";
|
|
1133
|
+
"pda": {
|
|
1134
|
+
"seeds": [
|
|
1135
|
+
{
|
|
1136
|
+
"kind": "const";
|
|
1137
|
+
"value": [
|
|
1138
|
+
116,
|
|
1139
|
+
114,
|
|
1140
|
+
101,
|
|
1141
|
+
97,
|
|
1142
|
+
115,
|
|
1143
|
+
117,
|
|
1144
|
+
114,
|
|
1145
|
+
121,
|
|
1146
|
+
45,
|
|
1147
|
+
99,
|
|
1148
|
+
111,
|
|
1149
|
+
110,
|
|
1150
|
+
102,
|
|
1151
|
+
105,
|
|
1152
|
+
103
|
|
1153
|
+
];
|
|
1154
|
+
}
|
|
1155
|
+
];
|
|
1156
|
+
};
|
|
1157
|
+
},
|
|
1158
|
+
{
|
|
1159
|
+
"name": "adminWithdrawConfig";
|
|
1160
|
+
"pda": {
|
|
1161
|
+
"seeds": [
|
|
1162
|
+
{
|
|
1163
|
+
"kind": "const";
|
|
1164
|
+
"value": [
|
|
1165
|
+
97,
|
|
1166
|
+
100,
|
|
1167
|
+
109,
|
|
1168
|
+
105,
|
|
1169
|
+
110,
|
|
1170
|
+
45,
|
|
1171
|
+
119,
|
|
1172
|
+
105,
|
|
1173
|
+
116,
|
|
1174
|
+
104,
|
|
1175
|
+
100,
|
|
1176
|
+
114,
|
|
1177
|
+
97,
|
|
1178
|
+
119,
|
|
1179
|
+
45,
|
|
1180
|
+
99,
|
|
1181
|
+
111,
|
|
1182
|
+
110,
|
|
1183
|
+
102,
|
|
1184
|
+
105,
|
|
1185
|
+
103
|
|
1186
|
+
];
|
|
1187
|
+
}
|
|
1188
|
+
];
|
|
1189
|
+
};
|
|
1190
|
+
},
|
|
1191
|
+
{
|
|
1192
|
+
"name": "adminWithdrawalUsed";
|
|
1193
|
+
"docs": [
|
|
1194
|
+
"Anti-replay marker — `init` fails if `request_id` was already used."
|
|
1195
|
+
];
|
|
1196
|
+
"writable": true;
|
|
1197
|
+
"pda": {
|
|
1198
|
+
"seeds": [
|
|
1199
|
+
{
|
|
1200
|
+
"kind": "const";
|
|
1201
|
+
"value": [
|
|
1202
|
+
97,
|
|
1203
|
+
100,
|
|
1204
|
+
109,
|
|
1205
|
+
105,
|
|
1206
|
+
110,
|
|
1207
|
+
45,
|
|
1208
|
+
119,
|
|
1209
|
+
105,
|
|
1210
|
+
116,
|
|
1211
|
+
104,
|
|
1212
|
+
100,
|
|
1213
|
+
114,
|
|
1214
|
+
97,
|
|
1215
|
+
119,
|
|
1216
|
+
97,
|
|
1217
|
+
108,
|
|
1218
|
+
45,
|
|
1219
|
+
117,
|
|
1220
|
+
115,
|
|
1221
|
+
101,
|
|
1222
|
+
100
|
|
1223
|
+
];
|
|
1224
|
+
},
|
|
1225
|
+
{
|
|
1226
|
+
"kind": "arg";
|
|
1227
|
+
"path": "requestId";
|
|
1228
|
+
}
|
|
1229
|
+
];
|
|
1230
|
+
};
|
|
1231
|
+
},
|
|
1232
|
+
{
|
|
1233
|
+
"name": "vaultAuthority";
|
|
1234
|
+
"writable": true;
|
|
1235
|
+
"pda": {
|
|
1236
|
+
"seeds": [
|
|
1237
|
+
{
|
|
1238
|
+
"kind": "const";
|
|
1239
|
+
"value": [
|
|
1240
|
+
101,
|
|
1241
|
+
115,
|
|
1242
|
+
99,
|
|
1243
|
+
114,
|
|
1244
|
+
111,
|
|
1245
|
+
119
|
|
1246
|
+
];
|
|
1247
|
+
}
|
|
1248
|
+
];
|
|
1249
|
+
};
|
|
1250
|
+
},
|
|
1251
|
+
{
|
|
1252
|
+
"name": "recipient";
|
|
1253
|
+
"docs": [
|
|
1254
|
+
"(see the plan doc's \"minimal parity\" decision; EVM enforces TREASURY_RECEIVER_ROLE on-chain,",
|
|
1255
|
+
"this is a known interim gap, not an oversight)."
|
|
1256
|
+
];
|
|
1257
|
+
"writable": true;
|
|
1258
|
+
},
|
|
1259
|
+
{
|
|
1260
|
+
"name": "admin";
|
|
1261
|
+
"writable": true;
|
|
1262
|
+
"signer": true;
|
|
1263
|
+
},
|
|
1264
|
+
{
|
|
1265
|
+
"name": "systemProgram";
|
|
1266
|
+
"address": "11111111111111111111111111111111";
|
|
1267
|
+
},
|
|
1268
|
+
{
|
|
1269
|
+
"name": "instructions";
|
|
1270
|
+
"address": "Sysvar1nstructions1111111111111111111111111";
|
|
1271
|
+
}
|
|
1272
|
+
];
|
|
1273
|
+
"args": [
|
|
1274
|
+
{
|
|
1275
|
+
"name": "chainId";
|
|
1276
|
+
"type": "u64";
|
|
1277
|
+
},
|
|
1278
|
+
{
|
|
1279
|
+
"name": "requestId";
|
|
1280
|
+
"type": "u64";
|
|
1281
|
+
},
|
|
1282
|
+
{
|
|
1283
|
+
"name": "amount";
|
|
1284
|
+
"type": "u64";
|
|
1285
|
+
}
|
|
1286
|
+
];
|
|
1287
|
+
},
|
|
1288
|
+
{
|
|
1289
|
+
"name": "adminWithdrawSplV2";
|
|
1290
|
+
"docs": [
|
|
1291
|
+
"Pull-based admin withdrawal of an SPL token, multisig-aware (mirrors EVM adminWithdraw)."
|
|
1292
|
+
];
|
|
1293
|
+
"discriminator": [
|
|
1294
|
+
174,
|
|
1295
|
+
14,
|
|
1296
|
+
175,
|
|
1297
|
+
111,
|
|
1298
|
+
48,
|
|
1299
|
+
41,
|
|
1300
|
+
185,
|
|
1301
|
+
32
|
|
1302
|
+
];
|
|
1303
|
+
"accounts": [
|
|
1304
|
+
{
|
|
1305
|
+
"name": "escrowConfig";
|
|
1306
|
+
"pda": {
|
|
1307
|
+
"seeds": [
|
|
1308
|
+
{
|
|
1309
|
+
"kind": "const";
|
|
1310
|
+
"value": [
|
|
1311
|
+
101,
|
|
1312
|
+
115,
|
|
1313
|
+
99,
|
|
1314
|
+
114,
|
|
1315
|
+
111,
|
|
1316
|
+
119,
|
|
1317
|
+
45,
|
|
1318
|
+
99,
|
|
1319
|
+
111,
|
|
1320
|
+
110,
|
|
1321
|
+
102,
|
|
1322
|
+
105,
|
|
1323
|
+
103,
|
|
1324
|
+
45,
|
|
1325
|
+
118,
|
|
1326
|
+
50
|
|
1327
|
+
];
|
|
1328
|
+
}
|
|
1329
|
+
];
|
|
1330
|
+
};
|
|
1331
|
+
},
|
|
1332
|
+
{
|
|
1333
|
+
"name": "mint";
|
|
1334
|
+
},
|
|
1335
|
+
{
|
|
1336
|
+
"name": "treasuryConfig";
|
|
1337
|
+
"pda": {
|
|
1338
|
+
"seeds": [
|
|
1339
|
+
{
|
|
1340
|
+
"kind": "const";
|
|
1341
|
+
"value": [
|
|
1342
|
+
116,
|
|
1343
|
+
114,
|
|
1344
|
+
101,
|
|
1345
|
+
97,
|
|
1346
|
+
115,
|
|
1347
|
+
117,
|
|
1348
|
+
114,
|
|
1349
|
+
121,
|
|
1350
|
+
45,
|
|
1351
|
+
99,
|
|
1352
|
+
111,
|
|
1353
|
+
110,
|
|
1354
|
+
102,
|
|
1355
|
+
105,
|
|
1356
|
+
103
|
|
1357
|
+
];
|
|
1358
|
+
}
|
|
1359
|
+
];
|
|
1360
|
+
};
|
|
1361
|
+
},
|
|
1362
|
+
{
|
|
1363
|
+
"name": "adminWithdrawConfig";
|
|
1364
|
+
"pda": {
|
|
1365
|
+
"seeds": [
|
|
1366
|
+
{
|
|
1367
|
+
"kind": "const";
|
|
1368
|
+
"value": [
|
|
1369
|
+
97,
|
|
1370
|
+
100,
|
|
1371
|
+
109,
|
|
1372
|
+
105,
|
|
1373
|
+
110,
|
|
1374
|
+
45,
|
|
1375
|
+
119,
|
|
1376
|
+
105,
|
|
1377
|
+
116,
|
|
1378
|
+
104,
|
|
1379
|
+
100,
|
|
1380
|
+
114,
|
|
1381
|
+
97,
|
|
1382
|
+
119,
|
|
1383
|
+
45,
|
|
1384
|
+
99,
|
|
1385
|
+
111,
|
|
1386
|
+
110,
|
|
1387
|
+
102,
|
|
1388
|
+
105,
|
|
1389
|
+
103
|
|
1390
|
+
];
|
|
1391
|
+
}
|
|
1392
|
+
];
|
|
1393
|
+
};
|
|
1394
|
+
},
|
|
1395
|
+
{
|
|
1396
|
+
"name": "adminWithdrawalUsed";
|
|
1397
|
+
"docs": [
|
|
1398
|
+
"Anti-replay marker — `init` fails if `request_id` was already used."
|
|
1399
|
+
];
|
|
1400
|
+
"writable": true;
|
|
1401
|
+
"pda": {
|
|
1402
|
+
"seeds": [
|
|
1403
|
+
{
|
|
1404
|
+
"kind": "const";
|
|
1405
|
+
"value": [
|
|
1406
|
+
97,
|
|
1407
|
+
100,
|
|
1408
|
+
109,
|
|
1409
|
+
105,
|
|
1410
|
+
110,
|
|
1411
|
+
45,
|
|
1412
|
+
119,
|
|
1413
|
+
105,
|
|
1414
|
+
116,
|
|
1415
|
+
104,
|
|
1416
|
+
100,
|
|
1417
|
+
114,
|
|
1418
|
+
97,
|
|
1419
|
+
119,
|
|
1420
|
+
97,
|
|
1421
|
+
108,
|
|
1422
|
+
45,
|
|
1423
|
+
117,
|
|
1424
|
+
115,
|
|
1425
|
+
101,
|
|
1426
|
+
100
|
|
1427
|
+
];
|
|
1428
|
+
},
|
|
1429
|
+
{
|
|
1430
|
+
"kind": "arg";
|
|
1431
|
+
"path": "requestId";
|
|
1432
|
+
}
|
|
1433
|
+
];
|
|
1434
|
+
};
|
|
1435
|
+
},
|
|
1436
|
+
{
|
|
1437
|
+
"name": "vaultAuthority";
|
|
1438
|
+
"pda": {
|
|
1439
|
+
"seeds": [
|
|
1440
|
+
{
|
|
1441
|
+
"kind": "const";
|
|
1442
|
+
"value": [
|
|
1443
|
+
101,
|
|
1444
|
+
115,
|
|
1445
|
+
99,
|
|
1446
|
+
114,
|
|
1447
|
+
111,
|
|
1448
|
+
119
|
|
1449
|
+
];
|
|
1450
|
+
}
|
|
1451
|
+
];
|
|
1452
|
+
};
|
|
1453
|
+
},
|
|
1454
|
+
{
|
|
1455
|
+
"name": "vaultTokenAccount";
|
|
1456
|
+
"writable": true;
|
|
1457
|
+
"pda": {
|
|
1458
|
+
"seeds": [
|
|
1459
|
+
{
|
|
1460
|
+
"kind": "account";
|
|
1461
|
+
"path": "vaultAuthority";
|
|
1462
|
+
},
|
|
1463
|
+
{
|
|
1464
|
+
"kind": "const";
|
|
1465
|
+
"value": [
|
|
1466
|
+
6,
|
|
1467
|
+
221,
|
|
1468
|
+
246,
|
|
1469
|
+
225,
|
|
1470
|
+
215,
|
|
1471
|
+
101,
|
|
1472
|
+
161,
|
|
1473
|
+
147,
|
|
1474
|
+
217,
|
|
1475
|
+
203,
|
|
1476
|
+
225,
|
|
1477
|
+
70,
|
|
1478
|
+
206,
|
|
1479
|
+
235,
|
|
1480
|
+
121,
|
|
1481
|
+
172,
|
|
1482
|
+
28,
|
|
1483
|
+
180,
|
|
1484
|
+
133,
|
|
1485
|
+
237,
|
|
1486
|
+
95,
|
|
1487
|
+
91,
|
|
1488
|
+
55,
|
|
1489
|
+
145,
|
|
1490
|
+
58,
|
|
1491
|
+
140,
|
|
1492
|
+
245,
|
|
1493
|
+
133,
|
|
1494
|
+
126,
|
|
1495
|
+
255,
|
|
1496
|
+
0,
|
|
1497
|
+
169
|
|
1498
|
+
];
|
|
1499
|
+
},
|
|
1500
|
+
{
|
|
1501
|
+
"kind": "account";
|
|
1502
|
+
"path": "mint";
|
|
1503
|
+
}
|
|
1504
|
+
];
|
|
1505
|
+
"program": {
|
|
1506
|
+
"kind": "const";
|
|
1507
|
+
"value": [
|
|
1508
|
+
140,
|
|
1509
|
+
151,
|
|
1510
|
+
37,
|
|
1511
|
+
143,
|
|
1512
|
+
78,
|
|
1513
|
+
36,
|
|
1514
|
+
137,
|
|
1515
|
+
241,
|
|
1516
|
+
187,
|
|
1517
|
+
61,
|
|
1518
|
+
16,
|
|
1519
|
+
41,
|
|
1520
|
+
20,
|
|
1521
|
+
142,
|
|
1522
|
+
13,
|
|
1523
|
+
131,
|
|
1524
|
+
11,
|
|
1525
|
+
90,
|
|
1526
|
+
19,
|
|
1527
|
+
153,
|
|
1528
|
+
218,
|
|
1529
|
+
255,
|
|
1530
|
+
16,
|
|
1531
|
+
132,
|
|
1532
|
+
4,
|
|
1533
|
+
142,
|
|
1534
|
+
123,
|
|
1535
|
+
216,
|
|
1536
|
+
219,
|
|
1537
|
+
233,
|
|
1538
|
+
248,
|
|
1539
|
+
89
|
|
1540
|
+
];
|
|
1541
|
+
};
|
|
1542
|
+
};
|
|
1543
|
+
},
|
|
1544
|
+
{
|
|
1545
|
+
"name": "recipient";
|
|
1546
|
+
"docs": [
|
|
1547
|
+
"(see the plan doc's \"minimal parity\" decision)."
|
|
1548
|
+
];
|
|
1549
|
+
},
|
|
1550
|
+
{
|
|
1551
|
+
"name": "recipientTokenAccount";
|
|
1552
|
+
"writable": true;
|
|
1553
|
+
"pda": {
|
|
1554
|
+
"seeds": [
|
|
1555
|
+
{
|
|
1556
|
+
"kind": "account";
|
|
1557
|
+
"path": "recipient";
|
|
1558
|
+
},
|
|
1559
|
+
{
|
|
1560
|
+
"kind": "const";
|
|
1561
|
+
"value": [
|
|
1562
|
+
6,
|
|
1563
|
+
221,
|
|
1564
|
+
246,
|
|
1565
|
+
225,
|
|
1566
|
+
215,
|
|
1567
|
+
101,
|
|
1568
|
+
161,
|
|
1569
|
+
147,
|
|
1570
|
+
217,
|
|
1571
|
+
203,
|
|
1572
|
+
225,
|
|
1573
|
+
70,
|
|
1574
|
+
206,
|
|
1575
|
+
235,
|
|
1576
|
+
121,
|
|
1577
|
+
172,
|
|
1578
|
+
28,
|
|
1579
|
+
180,
|
|
1580
|
+
133,
|
|
1581
|
+
237,
|
|
1582
|
+
95,
|
|
1583
|
+
91,
|
|
1584
|
+
55,
|
|
1585
|
+
145,
|
|
1586
|
+
58,
|
|
1587
|
+
140,
|
|
1588
|
+
245,
|
|
1589
|
+
133,
|
|
1590
|
+
126,
|
|
1591
|
+
255,
|
|
1592
|
+
0,
|
|
1593
|
+
169
|
|
1594
|
+
];
|
|
1595
|
+
},
|
|
1596
|
+
{
|
|
1597
|
+
"kind": "account";
|
|
1598
|
+
"path": "mint";
|
|
1599
|
+
}
|
|
1600
|
+
];
|
|
1601
|
+
"program": {
|
|
1602
|
+
"kind": "const";
|
|
1603
|
+
"value": [
|
|
1604
|
+
140,
|
|
1605
|
+
151,
|
|
1606
|
+
37,
|
|
1607
|
+
143,
|
|
1608
|
+
78,
|
|
1609
|
+
36,
|
|
1610
|
+
137,
|
|
1611
|
+
241,
|
|
1612
|
+
187,
|
|
1613
|
+
61,
|
|
1614
|
+
16,
|
|
1615
|
+
41,
|
|
1616
|
+
20,
|
|
1617
|
+
142,
|
|
1618
|
+
13,
|
|
1619
|
+
131,
|
|
1620
|
+
11,
|
|
1621
|
+
90,
|
|
1622
|
+
19,
|
|
1623
|
+
153,
|
|
1624
|
+
218,
|
|
1625
|
+
255,
|
|
1626
|
+
16,
|
|
1627
|
+
132,
|
|
1628
|
+
4,
|
|
1629
|
+
142,
|
|
1630
|
+
123,
|
|
1631
|
+
216,
|
|
1632
|
+
219,
|
|
1633
|
+
233,
|
|
1634
|
+
248,
|
|
1635
|
+
89
|
|
1636
|
+
];
|
|
1637
|
+
};
|
|
1638
|
+
};
|
|
1639
|
+
},
|
|
1640
|
+
{
|
|
1641
|
+
"name": "admin";
|
|
1642
|
+
"writable": true;
|
|
1643
|
+
"signer": true;
|
|
1644
|
+
},
|
|
1645
|
+
{
|
|
1646
|
+
"name": "tokenProgram";
|
|
1647
|
+
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
|
|
1648
|
+
},
|
|
1649
|
+
{
|
|
1650
|
+
"name": "systemProgram";
|
|
1651
|
+
"address": "11111111111111111111111111111111";
|
|
1652
|
+
},
|
|
1653
|
+
{
|
|
1654
|
+
"name": "instructions";
|
|
1655
|
+
"address": "Sysvar1nstructions1111111111111111111111111";
|
|
1656
|
+
}
|
|
1657
|
+
];
|
|
1658
|
+
"args": [
|
|
1659
|
+
{
|
|
1660
|
+
"name": "chainId";
|
|
1661
|
+
"type": "u64";
|
|
1662
|
+
},
|
|
1663
|
+
{
|
|
1664
|
+
"name": "requestId";
|
|
1665
|
+
"type": "u64";
|
|
1666
|
+
},
|
|
1667
|
+
{
|
|
1668
|
+
"name": "amount";
|
|
1669
|
+
"type": "u64";
|
|
1670
|
+
}
|
|
1671
|
+
];
|
|
1672
|
+
},
|
|
1087
1673
|
{
|
|
1088
1674
|
"name": "batchExecuteWithdrawalSol";
|
|
1089
1675
|
"discriminator": [
|
|
@@ -4400,6 +4986,106 @@ export type Escrow = {
|
|
|
4400
4986
|
}
|
|
4401
4987
|
];
|
|
4402
4988
|
},
|
|
4989
|
+
{
|
|
4990
|
+
"name": "setAdminWithdrawThreshold";
|
|
4991
|
+
"docs": [
|
|
4992
|
+
"Sets the single, global admin-withdrawal execution threshold (mirrors EVM's",
|
|
4993
|
+
"setAdminTokenMultisigThreshold). DEFAULT_ADMIN-only."
|
|
4994
|
+
];
|
|
4995
|
+
"discriminator": [
|
|
4996
|
+
125,
|
|
4997
|
+
10,
|
|
4998
|
+
239,
|
|
4999
|
+
123,
|
|
5000
|
+
136,
|
|
5001
|
+
236,
|
|
5002
|
+
104,
|
|
5003
|
+
144
|
|
5004
|
+
];
|
|
5005
|
+
"accounts": [
|
|
5006
|
+
{
|
|
5007
|
+
"name": "escrowConfig";
|
|
5008
|
+
"pda": {
|
|
5009
|
+
"seeds": [
|
|
5010
|
+
{
|
|
5011
|
+
"kind": "const";
|
|
5012
|
+
"value": [
|
|
5013
|
+
101,
|
|
5014
|
+
115,
|
|
5015
|
+
99,
|
|
5016
|
+
114,
|
|
5017
|
+
111,
|
|
5018
|
+
119,
|
|
5019
|
+
45,
|
|
5020
|
+
99,
|
|
5021
|
+
111,
|
|
5022
|
+
110,
|
|
5023
|
+
102,
|
|
5024
|
+
105,
|
|
5025
|
+
103,
|
|
5026
|
+
45,
|
|
5027
|
+
118,
|
|
5028
|
+
50
|
|
5029
|
+
];
|
|
5030
|
+
}
|
|
5031
|
+
];
|
|
5032
|
+
};
|
|
5033
|
+
},
|
|
5034
|
+
{
|
|
5035
|
+
"name": "adminWithdrawConfig";
|
|
5036
|
+
"writable": true;
|
|
5037
|
+
"pda": {
|
|
5038
|
+
"seeds": [
|
|
5039
|
+
{
|
|
5040
|
+
"kind": "const";
|
|
5041
|
+
"value": [
|
|
5042
|
+
97,
|
|
5043
|
+
100,
|
|
5044
|
+
109,
|
|
5045
|
+
105,
|
|
5046
|
+
110,
|
|
5047
|
+
45,
|
|
5048
|
+
119,
|
|
5049
|
+
105,
|
|
5050
|
+
116,
|
|
5051
|
+
104,
|
|
5052
|
+
100,
|
|
5053
|
+
114,
|
|
5054
|
+
97,
|
|
5055
|
+
119,
|
|
5056
|
+
45,
|
|
5057
|
+
99,
|
|
5058
|
+
111,
|
|
5059
|
+
110,
|
|
5060
|
+
102,
|
|
5061
|
+
105,
|
|
5062
|
+
103
|
|
5063
|
+
];
|
|
5064
|
+
}
|
|
5065
|
+
];
|
|
5066
|
+
};
|
|
5067
|
+
},
|
|
5068
|
+
{
|
|
5069
|
+
"name": "admin";
|
|
5070
|
+
"writable": true;
|
|
5071
|
+
"signer": true;
|
|
5072
|
+
},
|
|
5073
|
+
{
|
|
5074
|
+
"name": "systemProgram";
|
|
5075
|
+
"address": "11111111111111111111111111111111";
|
|
5076
|
+
}
|
|
5077
|
+
];
|
|
5078
|
+
"args": [
|
|
5079
|
+
{
|
|
5080
|
+
"name": "managerRequired";
|
|
5081
|
+
"type": "u8";
|
|
5082
|
+
},
|
|
5083
|
+
{
|
|
5084
|
+
"name": "executiveRequired";
|
|
5085
|
+
"type": "u8";
|
|
5086
|
+
}
|
|
5087
|
+
];
|
|
5088
|
+
},
|
|
4403
5089
|
{
|
|
4404
5090
|
"name": "setFundingWallet";
|
|
4405
5091
|
"discriminator": [
|
|
@@ -6127,6 +6813,32 @@ export type Escrow = {
|
|
|
6127
6813
|
}
|
|
6128
6814
|
];
|
|
6129
6815
|
"accounts": [
|
|
6816
|
+
{
|
|
6817
|
+
"name": "adminWithdrawConfig";
|
|
6818
|
+
"discriminator": [
|
|
6819
|
+
213,
|
|
6820
|
+
66,
|
|
6821
|
+
12,
|
|
6822
|
+
39,
|
|
6823
|
+
88,
|
|
6824
|
+
172,
|
|
6825
|
+
14,
|
|
6826
|
+
255
|
|
6827
|
+
];
|
|
6828
|
+
},
|
|
6829
|
+
{
|
|
6830
|
+
"name": "adminWithdrawalUsed";
|
|
6831
|
+
"discriminator": [
|
|
6832
|
+
195,
|
|
6833
|
+
177,
|
|
6834
|
+
31,
|
|
6835
|
+
159,
|
|
6836
|
+
77,
|
|
6837
|
+
197,
|
|
6838
|
+
190,
|
|
6839
|
+
217
|
|
6840
|
+
];
|
|
6841
|
+
},
|
|
6130
6842
|
{
|
|
6131
6843
|
"name": "escrowConfig";
|
|
6132
6844
|
"discriminator": [
|
|
@@ -6285,6 +6997,19 @@ export type Escrow = {
|
|
|
6285
6997
|
26
|
|
6286
6998
|
];
|
|
6287
6999
|
},
|
|
7000
|
+
{
|
|
7001
|
+
"name": "adminPullWithdrawEvent";
|
|
7002
|
+
"discriminator": [
|
|
7003
|
+
76,
|
|
7004
|
+
105,
|
|
7005
|
+
32,
|
|
7006
|
+
75,
|
|
7007
|
+
3,
|
|
7008
|
+
121,
|
|
7009
|
+
252,
|
|
7010
|
+
169
|
|
7011
|
+
];
|
|
7012
|
+
},
|
|
6288
7013
|
{
|
|
6289
7014
|
"name": "adminWithdraw";
|
|
6290
7015
|
"discriminator": [
|
|
@@ -6298,6 +7023,19 @@ export type Escrow = {
|
|
|
6298
7023
|
171
|
|
6299
7024
|
];
|
|
6300
7025
|
},
|
|
7026
|
+
{
|
|
7027
|
+
"name": "adminWithdrawThresholdConfiguredEvent";
|
|
7028
|
+
"discriminator": [
|
|
7029
|
+
192,
|
|
7030
|
+
107,
|
|
7031
|
+
62,
|
|
7032
|
+
233,
|
|
7033
|
+
204,
|
|
7034
|
+
248,
|
|
7035
|
+
176,
|
|
7036
|
+
209
|
|
7037
|
+
];
|
|
7038
|
+
},
|
|
6301
7039
|
{
|
|
6302
7040
|
"name": "depositSolEvent";
|
|
6303
7041
|
"discriminator": [
|
|
@@ -6690,6 +7428,11 @@ export type Escrow = {
|
|
|
6690
7428
|
"code": 6033;
|
|
6691
7429
|
"name": "invalidGovernanceGroup";
|
|
6692
7430
|
"msg": "Unknown governance group";
|
|
7431
|
+
},
|
|
7432
|
+
{
|
|
7433
|
+
"code": 6034;
|
|
7434
|
+
"name": "adminWithdrawConfigNotSet";
|
|
7435
|
+
"msg": "Admin withdrawal threshold is not configured";
|
|
6693
7436
|
}
|
|
6694
7437
|
];
|
|
6695
7438
|
"types": [
|
|
@@ -6729,6 +7472,52 @@ export type Escrow = {
|
|
|
6729
7472
|
];
|
|
6730
7473
|
};
|
|
6731
7474
|
},
|
|
7475
|
+
{
|
|
7476
|
+
"name": "adminPullWithdrawEvent";
|
|
7477
|
+
"docs": [
|
|
7478
|
+
"Emitted by `admin_withdraw_sol_v2`/`admin_withdraw_spl_v2`. Distinct from the legacy",
|
|
7479
|
+
"`AdminWithdraw` event (emitted by the untouched `admin_withdraw_sol`/`admin_withdraw_spl`) so",
|
|
7480
|
+
"downstream consumers can tell the two paths apart. Carries `request_id` so a future event",
|
|
7481
|
+
"listener/worker can match by identity rather than guessing from tx logs."
|
|
7482
|
+
];
|
|
7483
|
+
"type": {
|
|
7484
|
+
"kind": "struct";
|
|
7485
|
+
"fields": [
|
|
7486
|
+
{
|
|
7487
|
+
"name": "chainId";
|
|
7488
|
+
"type": "u64";
|
|
7489
|
+
},
|
|
7490
|
+
{
|
|
7491
|
+
"name": "requestId";
|
|
7492
|
+
"type": "u64";
|
|
7493
|
+
},
|
|
7494
|
+
{
|
|
7495
|
+
"name": "recipient";
|
|
7496
|
+
"type": "pubkey";
|
|
7497
|
+
},
|
|
7498
|
+
{
|
|
7499
|
+
"name": "token";
|
|
7500
|
+
"type": "pubkey";
|
|
7501
|
+
},
|
|
7502
|
+
{
|
|
7503
|
+
"name": "amount";
|
|
7504
|
+
"type": "u64";
|
|
7505
|
+
},
|
|
7506
|
+
{
|
|
7507
|
+
"name": "admin";
|
|
7508
|
+
"type": "pubkey";
|
|
7509
|
+
},
|
|
7510
|
+
{
|
|
7511
|
+
"name": "slot";
|
|
7512
|
+
"type": "u64";
|
|
7513
|
+
},
|
|
7514
|
+
{
|
|
7515
|
+
"name": "timestamp";
|
|
7516
|
+
"type": "i64";
|
|
7517
|
+
}
|
|
7518
|
+
];
|
|
7519
|
+
};
|
|
7520
|
+
},
|
|
6732
7521
|
{
|
|
6733
7522
|
"name": "adminWithdraw";
|
|
6734
7523
|
"type": {
|
|
@@ -6761,6 +7550,94 @@ export type Escrow = {
|
|
|
6761
7550
|
];
|
|
6762
7551
|
};
|
|
6763
7552
|
},
|
|
7553
|
+
{
|
|
7554
|
+
"name": "adminWithdrawConfig";
|
|
7555
|
+
"docs": [
|
|
7556
|
+
"Single, global (not per-token) execution threshold for the interim pull-based admin withdrawal",
|
|
7557
|
+
"(mirrors EVM's `adminTokenThresholdSettings` — one fixed level, no amount bands). Signatures are",
|
|
7558
|
+
"verified against the existing `TreasuryConfig` roster (the same managers/executives who approve",
|
|
7559
|
+
"regular withdrawals) rather than a separate admin-only roster — see the plan doc for why this is",
|
|
7560
|
+
"a deliberate scope simplification vs EVM's distinct ADMIN_TREASURY_MANAGER/EXECUTIVE roles.",
|
|
7561
|
+
"",
|
|
7562
|
+
"PDA seeds: `[b\"admin-withdraw-config\"]`."
|
|
7563
|
+
];
|
|
7564
|
+
"type": {
|
|
7565
|
+
"kind": "struct";
|
|
7566
|
+
"fields": [
|
|
7567
|
+
{
|
|
7568
|
+
"name": "managerRequired";
|
|
7569
|
+
"type": "u8";
|
|
7570
|
+
},
|
|
7571
|
+
{
|
|
7572
|
+
"name": "executiveRequired";
|
|
7573
|
+
"type": "u8";
|
|
7574
|
+
},
|
|
7575
|
+
{
|
|
7576
|
+
"name": "isSet";
|
|
7577
|
+
"type": "bool";
|
|
7578
|
+
}
|
|
7579
|
+
];
|
|
7580
|
+
};
|
|
7581
|
+
},
|
|
7582
|
+
{
|
|
7583
|
+
"name": "adminWithdrawThresholdConfiguredEvent";
|
|
7584
|
+
"docs": [
|
|
7585
|
+
"Emitted when the admin-withdrawal execution threshold is set (mirrors EVM",
|
|
7586
|
+
"ConfigureAdminMultisig, but this is Solana-only global state — see AdminWithdrawConfig)."
|
|
7587
|
+
];
|
|
7588
|
+
"type": {
|
|
7589
|
+
"kind": "struct";
|
|
7590
|
+
"fields": [
|
|
7591
|
+
{
|
|
7592
|
+
"name": "managerRequired";
|
|
7593
|
+
"type": "u8";
|
|
7594
|
+
},
|
|
7595
|
+
{
|
|
7596
|
+
"name": "executiveRequired";
|
|
7597
|
+
"type": "u8";
|
|
7598
|
+
},
|
|
7599
|
+
{
|
|
7600
|
+
"name": "sender";
|
|
7601
|
+
"type": "pubkey";
|
|
7602
|
+
},
|
|
7603
|
+
{
|
|
7604
|
+
"name": "slot";
|
|
7605
|
+
"type": "u64";
|
|
7606
|
+
},
|
|
7607
|
+
{
|
|
7608
|
+
"name": "timestamp";
|
|
7609
|
+
"type": "i64";
|
|
7610
|
+
}
|
|
7611
|
+
];
|
|
7612
|
+
};
|
|
7613
|
+
},
|
|
7614
|
+
{
|
|
7615
|
+
"name": "adminWithdrawalUsed";
|
|
7616
|
+
"docs": [
|
|
7617
|
+
"Anti-replay marker for the interim pull-based admin withdrawal",
|
|
7618
|
+
"(`admin_withdraw_sol_v2`/`admin_withdraw_spl_v2`). One PDA per `request_id`, created via `init`",
|
|
7619
|
+
"(which fails automatically if the account already exists) and never closed — the withdrawal is",
|
|
7620
|
+
"a direct, single-shot transfer with no schedule/claim step, so unlike `WithdrawalCommitment`",
|
|
7621
|
+
"there is nothing to clean up on completion. Admin withdrawals are low-volume (occasional treasury",
|
|
7622
|
+
"management, not a user-facing high-throughput path), so a dedicated account per request is",
|
|
7623
|
+
"simpler and clearer here than the `WithdrawalBitmap` scheme used for regular withdrawals.",
|
|
7624
|
+
"",
|
|
7625
|
+
"PDA seeds: `[b\"admin-withdrawal-used\", request_id.to_le_bytes()]`."
|
|
7626
|
+
];
|
|
7627
|
+
"type": {
|
|
7628
|
+
"kind": "struct";
|
|
7629
|
+
"fields": [
|
|
7630
|
+
{
|
|
7631
|
+
"name": "requestId";
|
|
7632
|
+
"type": "u64";
|
|
7633
|
+
},
|
|
7634
|
+
{
|
|
7635
|
+
"name": "timestamp";
|
|
7636
|
+
"type": "i64";
|
|
7637
|
+
}
|
|
7638
|
+
];
|
|
7639
|
+
};
|
|
7640
|
+
},
|
|
6764
7641
|
{
|
|
6765
7642
|
"name": "depositSolEvent";
|
|
6766
7643
|
"type": {
|