@ercworldio/blockchain-shared 1.0.5-dev.8-PLAT134.2 → 1.0.5-dev.8-PLAT134.6
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 +1206 -32
- package/build/services/solana/escrow/types/escrow.d.ts +1205 -31
- 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
|
@@ -918,6 +918,101 @@ export type Escrow = {
|
|
|
918
918
|
}
|
|
919
919
|
];
|
|
920
920
|
},
|
|
921
|
+
{
|
|
922
|
+
"name": "addTreasuryReceiver";
|
|
923
|
+
"docs": [
|
|
924
|
+
"Whitelists a receiver for admin withdrawals (mirrors EVM grantRole TREASURY_RECEIVER_ROLE)."
|
|
925
|
+
];
|
|
926
|
+
"discriminator": [
|
|
927
|
+
218,
|
|
928
|
+
173,
|
|
929
|
+
230,
|
|
930
|
+
27,
|
|
931
|
+
126,
|
|
932
|
+
71,
|
|
933
|
+
202,
|
|
934
|
+
54
|
|
935
|
+
];
|
|
936
|
+
"accounts": [
|
|
937
|
+
{
|
|
938
|
+
"name": "escrowConfig";
|
|
939
|
+
"pda": {
|
|
940
|
+
"seeds": [
|
|
941
|
+
{
|
|
942
|
+
"kind": "const";
|
|
943
|
+
"value": [
|
|
944
|
+
101,
|
|
945
|
+
115,
|
|
946
|
+
99,
|
|
947
|
+
114,
|
|
948
|
+
111,
|
|
949
|
+
119,
|
|
950
|
+
45,
|
|
951
|
+
99,
|
|
952
|
+
111,
|
|
953
|
+
110,
|
|
954
|
+
102,
|
|
955
|
+
105,
|
|
956
|
+
103,
|
|
957
|
+
45,
|
|
958
|
+
118,
|
|
959
|
+
50
|
|
960
|
+
];
|
|
961
|
+
}
|
|
962
|
+
];
|
|
963
|
+
};
|
|
964
|
+
},
|
|
965
|
+
{
|
|
966
|
+
"name": "treasuryReceiver";
|
|
967
|
+
"writable": true;
|
|
968
|
+
"pda": {
|
|
969
|
+
"seeds": [
|
|
970
|
+
{
|
|
971
|
+
"kind": "const";
|
|
972
|
+
"value": [
|
|
973
|
+
116,
|
|
974
|
+
114,
|
|
975
|
+
101,
|
|
976
|
+
97,
|
|
977
|
+
115,
|
|
978
|
+
117,
|
|
979
|
+
114,
|
|
980
|
+
121,
|
|
981
|
+
45,
|
|
982
|
+
114,
|
|
983
|
+
101,
|
|
984
|
+
99,
|
|
985
|
+
101,
|
|
986
|
+
105,
|
|
987
|
+
118,
|
|
988
|
+
101,
|
|
989
|
+
114
|
|
990
|
+
];
|
|
991
|
+
},
|
|
992
|
+
{
|
|
993
|
+
"kind": "arg";
|
|
994
|
+
"path": "receiver";
|
|
995
|
+
}
|
|
996
|
+
];
|
|
997
|
+
};
|
|
998
|
+
},
|
|
999
|
+
{
|
|
1000
|
+
"name": "admin";
|
|
1001
|
+
"writable": true;
|
|
1002
|
+
"signer": true;
|
|
1003
|
+
},
|
|
1004
|
+
{
|
|
1005
|
+
"name": "systemProgram";
|
|
1006
|
+
"address": "11111111111111111111111111111111";
|
|
1007
|
+
}
|
|
1008
|
+
];
|
|
1009
|
+
"args": [
|
|
1010
|
+
{
|
|
1011
|
+
"name": "receiver";
|
|
1012
|
+
"type": "pubkey";
|
|
1013
|
+
}
|
|
1014
|
+
];
|
|
1015
|
+
},
|
|
921
1016
|
{
|
|
922
1017
|
"name": "adminDepositSol";
|
|
923
1018
|
"docs": [
|
|
@@ -1031,53 +1126,704 @@ export type Escrow = {
|
|
|
1031
1126
|
119,
|
|
1032
1127
|
45,
|
|
1033
1128
|
99,
|
|
1034
|
-
111,
|
|
1035
|
-
110,
|
|
1036
|
-
102,
|
|
1129
|
+
111,
|
|
1130
|
+
110,
|
|
1131
|
+
102,
|
|
1132
|
+
105,
|
|
1133
|
+
103,
|
|
1134
|
+
45,
|
|
1135
|
+
118,
|
|
1136
|
+
50
|
|
1137
|
+
];
|
|
1138
|
+
}
|
|
1139
|
+
];
|
|
1140
|
+
};
|
|
1141
|
+
},
|
|
1142
|
+
{
|
|
1143
|
+
"name": "vaultAuthority";
|
|
1144
|
+
"writable": true;
|
|
1145
|
+
"pda": {
|
|
1146
|
+
"seeds": [
|
|
1147
|
+
{
|
|
1148
|
+
"kind": "const";
|
|
1149
|
+
"value": [
|
|
1150
|
+
101,
|
|
1151
|
+
115,
|
|
1152
|
+
99,
|
|
1153
|
+
114,
|
|
1154
|
+
111,
|
|
1155
|
+
119
|
|
1156
|
+
];
|
|
1157
|
+
}
|
|
1158
|
+
];
|
|
1159
|
+
};
|
|
1160
|
+
},
|
|
1161
|
+
{
|
|
1162
|
+
"name": "recipient";
|
|
1163
|
+
"writable": true;
|
|
1164
|
+
},
|
|
1165
|
+
{
|
|
1166
|
+
"name": "admin";
|
|
1167
|
+
"writable": true;
|
|
1168
|
+
"signer": true;
|
|
1169
|
+
},
|
|
1170
|
+
{
|
|
1171
|
+
"name": "systemProgram";
|
|
1172
|
+
"address": "11111111111111111111111111111111";
|
|
1173
|
+
}
|
|
1174
|
+
];
|
|
1175
|
+
"args": [
|
|
1176
|
+
{
|
|
1177
|
+
"name": "amount";
|
|
1178
|
+
"type": "u64";
|
|
1179
|
+
}
|
|
1180
|
+
];
|
|
1181
|
+
},
|
|
1182
|
+
{
|
|
1183
|
+
"name": "adminWithdrawSolV2";
|
|
1184
|
+
"docs": [
|
|
1185
|
+
"Pull-based admin withdrawal of native SOL, multisig-aware (mirrors EVM adminWithdraw)."
|
|
1186
|
+
];
|
|
1187
|
+
"discriminator": [
|
|
1188
|
+
76,
|
|
1189
|
+
84,
|
|
1190
|
+
255,
|
|
1191
|
+
156,
|
|
1192
|
+
101,
|
|
1193
|
+
7,
|
|
1194
|
+
49,
|
|
1195
|
+
42
|
|
1196
|
+
];
|
|
1197
|
+
"accounts": [
|
|
1198
|
+
{
|
|
1199
|
+
"name": "escrowConfig";
|
|
1200
|
+
"pda": {
|
|
1201
|
+
"seeds": [
|
|
1202
|
+
{
|
|
1203
|
+
"kind": "const";
|
|
1204
|
+
"value": [
|
|
1205
|
+
101,
|
|
1206
|
+
115,
|
|
1207
|
+
99,
|
|
1208
|
+
114,
|
|
1209
|
+
111,
|
|
1210
|
+
119,
|
|
1211
|
+
45,
|
|
1212
|
+
99,
|
|
1213
|
+
111,
|
|
1214
|
+
110,
|
|
1215
|
+
102,
|
|
1216
|
+
105,
|
|
1217
|
+
103,
|
|
1218
|
+
45,
|
|
1219
|
+
118,
|
|
1220
|
+
50
|
|
1221
|
+
];
|
|
1222
|
+
}
|
|
1223
|
+
];
|
|
1224
|
+
};
|
|
1225
|
+
},
|
|
1226
|
+
{
|
|
1227
|
+
"name": "treasuryConfig";
|
|
1228
|
+
"pda": {
|
|
1229
|
+
"seeds": [
|
|
1230
|
+
{
|
|
1231
|
+
"kind": "const";
|
|
1232
|
+
"value": [
|
|
1233
|
+
116,
|
|
1234
|
+
114,
|
|
1235
|
+
101,
|
|
1236
|
+
97,
|
|
1237
|
+
115,
|
|
1238
|
+
117,
|
|
1239
|
+
114,
|
|
1240
|
+
121,
|
|
1241
|
+
45,
|
|
1242
|
+
99,
|
|
1243
|
+
111,
|
|
1244
|
+
110,
|
|
1245
|
+
102,
|
|
1246
|
+
105,
|
|
1247
|
+
103
|
|
1248
|
+
];
|
|
1249
|
+
}
|
|
1250
|
+
];
|
|
1251
|
+
};
|
|
1252
|
+
},
|
|
1253
|
+
{
|
|
1254
|
+
"name": "adminWithdrawConfig";
|
|
1255
|
+
"pda": {
|
|
1256
|
+
"seeds": [
|
|
1257
|
+
{
|
|
1258
|
+
"kind": "const";
|
|
1259
|
+
"value": [
|
|
1260
|
+
97,
|
|
1261
|
+
100,
|
|
1262
|
+
109,
|
|
1263
|
+
105,
|
|
1264
|
+
110,
|
|
1265
|
+
45,
|
|
1266
|
+
119,
|
|
1267
|
+
105,
|
|
1268
|
+
116,
|
|
1269
|
+
104,
|
|
1270
|
+
100,
|
|
1271
|
+
114,
|
|
1272
|
+
97,
|
|
1273
|
+
119,
|
|
1274
|
+
45,
|
|
1275
|
+
99,
|
|
1276
|
+
111,
|
|
1277
|
+
110,
|
|
1278
|
+
102,
|
|
1279
|
+
105,
|
|
1280
|
+
103
|
|
1281
|
+
];
|
|
1282
|
+
}
|
|
1283
|
+
];
|
|
1284
|
+
};
|
|
1285
|
+
},
|
|
1286
|
+
{
|
|
1287
|
+
"name": "adminWithdrawalUsed";
|
|
1288
|
+
"docs": [
|
|
1289
|
+
"Anti-replay marker — `init` fails if `request_id` was already used."
|
|
1290
|
+
];
|
|
1291
|
+
"writable": true;
|
|
1292
|
+
"pda": {
|
|
1293
|
+
"seeds": [
|
|
1294
|
+
{
|
|
1295
|
+
"kind": "const";
|
|
1296
|
+
"value": [
|
|
1297
|
+
97,
|
|
1298
|
+
100,
|
|
1299
|
+
109,
|
|
1300
|
+
105,
|
|
1301
|
+
110,
|
|
1302
|
+
45,
|
|
1303
|
+
119,
|
|
1304
|
+
105,
|
|
1305
|
+
116,
|
|
1306
|
+
104,
|
|
1307
|
+
100,
|
|
1308
|
+
114,
|
|
1309
|
+
97,
|
|
1310
|
+
119,
|
|
1311
|
+
97,
|
|
1312
|
+
108,
|
|
1313
|
+
45,
|
|
1314
|
+
117,
|
|
1315
|
+
115,
|
|
1316
|
+
101,
|
|
1317
|
+
100
|
|
1318
|
+
];
|
|
1319
|
+
},
|
|
1320
|
+
{
|
|
1321
|
+
"kind": "arg";
|
|
1322
|
+
"path": "requestId";
|
|
1323
|
+
}
|
|
1324
|
+
];
|
|
1325
|
+
};
|
|
1326
|
+
},
|
|
1327
|
+
{
|
|
1328
|
+
"name": "vaultAuthority";
|
|
1329
|
+
"writable": true;
|
|
1330
|
+
"pda": {
|
|
1331
|
+
"seeds": [
|
|
1332
|
+
{
|
|
1333
|
+
"kind": "const";
|
|
1334
|
+
"value": [
|
|
1335
|
+
101,
|
|
1336
|
+
115,
|
|
1337
|
+
99,
|
|
1338
|
+
114,
|
|
1339
|
+
111,
|
|
1340
|
+
119
|
|
1341
|
+
];
|
|
1342
|
+
}
|
|
1343
|
+
];
|
|
1344
|
+
};
|
|
1345
|
+
},
|
|
1346
|
+
{
|
|
1347
|
+
"name": "recipient";
|
|
1348
|
+
"writable": true;
|
|
1349
|
+
},
|
|
1350
|
+
{
|
|
1351
|
+
"name": "treasuryReceiver";
|
|
1352
|
+
"docs": [
|
|
1353
|
+
"Mirrors EVM's onlyTreasuryReceiver(receiver) — the payout target must be whitelisted."
|
|
1354
|
+
];
|
|
1355
|
+
"pda": {
|
|
1356
|
+
"seeds": [
|
|
1357
|
+
{
|
|
1358
|
+
"kind": "const";
|
|
1359
|
+
"value": [
|
|
1360
|
+
116,
|
|
1361
|
+
114,
|
|
1362
|
+
101,
|
|
1363
|
+
97,
|
|
1364
|
+
115,
|
|
1365
|
+
117,
|
|
1366
|
+
114,
|
|
1367
|
+
121,
|
|
1368
|
+
45,
|
|
1369
|
+
114,
|
|
1370
|
+
101,
|
|
1371
|
+
99,
|
|
1372
|
+
101,
|
|
1373
|
+
105,
|
|
1374
|
+
118,
|
|
1375
|
+
101,
|
|
1376
|
+
114
|
|
1377
|
+
];
|
|
1378
|
+
},
|
|
1379
|
+
{
|
|
1380
|
+
"kind": "account";
|
|
1381
|
+
"path": "recipient";
|
|
1382
|
+
}
|
|
1383
|
+
];
|
|
1384
|
+
};
|
|
1385
|
+
},
|
|
1386
|
+
{
|
|
1387
|
+
"name": "admin";
|
|
1388
|
+
"writable": true;
|
|
1389
|
+
"signer": true;
|
|
1390
|
+
},
|
|
1391
|
+
{
|
|
1392
|
+
"name": "systemProgram";
|
|
1393
|
+
"address": "11111111111111111111111111111111";
|
|
1394
|
+
},
|
|
1395
|
+
{
|
|
1396
|
+
"name": "instructions";
|
|
1397
|
+
"address": "Sysvar1nstructions1111111111111111111111111";
|
|
1398
|
+
}
|
|
1399
|
+
];
|
|
1400
|
+
"args": [
|
|
1401
|
+
{
|
|
1402
|
+
"name": "chainId";
|
|
1403
|
+
"type": "u64";
|
|
1404
|
+
},
|
|
1405
|
+
{
|
|
1406
|
+
"name": "requestId";
|
|
1407
|
+
"type": "u64";
|
|
1408
|
+
},
|
|
1409
|
+
{
|
|
1410
|
+
"name": "amount";
|
|
1411
|
+
"type": "u64";
|
|
1412
|
+
}
|
|
1413
|
+
];
|
|
1414
|
+
},
|
|
1415
|
+
{
|
|
1416
|
+
"name": "adminWithdrawSplV2";
|
|
1417
|
+
"docs": [
|
|
1418
|
+
"Pull-based admin withdrawal of an SPL token, multisig-aware (mirrors EVM adminWithdraw)."
|
|
1419
|
+
];
|
|
1420
|
+
"discriminator": [
|
|
1421
|
+
174,
|
|
1422
|
+
14,
|
|
1423
|
+
175,
|
|
1424
|
+
111,
|
|
1425
|
+
48,
|
|
1426
|
+
41,
|
|
1427
|
+
185,
|
|
1428
|
+
32
|
|
1429
|
+
];
|
|
1430
|
+
"accounts": [
|
|
1431
|
+
{
|
|
1432
|
+
"name": "escrowConfig";
|
|
1433
|
+
"pda": {
|
|
1434
|
+
"seeds": [
|
|
1435
|
+
{
|
|
1436
|
+
"kind": "const";
|
|
1437
|
+
"value": [
|
|
1438
|
+
101,
|
|
1439
|
+
115,
|
|
1440
|
+
99,
|
|
1441
|
+
114,
|
|
1442
|
+
111,
|
|
1443
|
+
119,
|
|
1444
|
+
45,
|
|
1445
|
+
99,
|
|
1446
|
+
111,
|
|
1447
|
+
110,
|
|
1448
|
+
102,
|
|
1449
|
+
105,
|
|
1450
|
+
103,
|
|
1451
|
+
45,
|
|
1452
|
+
118,
|
|
1453
|
+
50
|
|
1454
|
+
];
|
|
1455
|
+
}
|
|
1456
|
+
];
|
|
1457
|
+
};
|
|
1458
|
+
},
|
|
1459
|
+
{
|
|
1460
|
+
"name": "mint";
|
|
1461
|
+
},
|
|
1462
|
+
{
|
|
1463
|
+
"name": "treasuryConfig";
|
|
1464
|
+
"pda": {
|
|
1465
|
+
"seeds": [
|
|
1466
|
+
{
|
|
1467
|
+
"kind": "const";
|
|
1468
|
+
"value": [
|
|
1469
|
+
116,
|
|
1470
|
+
114,
|
|
1471
|
+
101,
|
|
1472
|
+
97,
|
|
1473
|
+
115,
|
|
1474
|
+
117,
|
|
1475
|
+
114,
|
|
1476
|
+
121,
|
|
1477
|
+
45,
|
|
1478
|
+
99,
|
|
1479
|
+
111,
|
|
1480
|
+
110,
|
|
1481
|
+
102,
|
|
1482
|
+
105,
|
|
1483
|
+
103
|
|
1484
|
+
];
|
|
1485
|
+
}
|
|
1486
|
+
];
|
|
1487
|
+
};
|
|
1488
|
+
},
|
|
1489
|
+
{
|
|
1490
|
+
"name": "adminWithdrawConfig";
|
|
1491
|
+
"pda": {
|
|
1492
|
+
"seeds": [
|
|
1493
|
+
{
|
|
1494
|
+
"kind": "const";
|
|
1495
|
+
"value": [
|
|
1496
|
+
97,
|
|
1497
|
+
100,
|
|
1498
|
+
109,
|
|
1499
|
+
105,
|
|
1500
|
+
110,
|
|
1501
|
+
45,
|
|
1502
|
+
119,
|
|
1503
|
+
105,
|
|
1504
|
+
116,
|
|
1505
|
+
104,
|
|
1506
|
+
100,
|
|
1507
|
+
114,
|
|
1508
|
+
97,
|
|
1509
|
+
119,
|
|
1510
|
+
45,
|
|
1511
|
+
99,
|
|
1512
|
+
111,
|
|
1513
|
+
110,
|
|
1514
|
+
102,
|
|
1515
|
+
105,
|
|
1516
|
+
103
|
|
1517
|
+
];
|
|
1518
|
+
}
|
|
1519
|
+
];
|
|
1520
|
+
};
|
|
1521
|
+
},
|
|
1522
|
+
{
|
|
1523
|
+
"name": "adminWithdrawalUsed";
|
|
1524
|
+
"docs": [
|
|
1525
|
+
"Anti-replay marker — `init` fails if `request_id` was already used."
|
|
1526
|
+
];
|
|
1527
|
+
"writable": true;
|
|
1528
|
+
"pda": {
|
|
1529
|
+
"seeds": [
|
|
1530
|
+
{
|
|
1531
|
+
"kind": "const";
|
|
1532
|
+
"value": [
|
|
1533
|
+
97,
|
|
1534
|
+
100,
|
|
1535
|
+
109,
|
|
1536
|
+
105,
|
|
1537
|
+
110,
|
|
1538
|
+
45,
|
|
1539
|
+
119,
|
|
1540
|
+
105,
|
|
1541
|
+
116,
|
|
1542
|
+
104,
|
|
1543
|
+
100,
|
|
1544
|
+
114,
|
|
1545
|
+
97,
|
|
1546
|
+
119,
|
|
1547
|
+
97,
|
|
1548
|
+
108,
|
|
1549
|
+
45,
|
|
1550
|
+
117,
|
|
1551
|
+
115,
|
|
1552
|
+
101,
|
|
1553
|
+
100
|
|
1554
|
+
];
|
|
1555
|
+
},
|
|
1556
|
+
{
|
|
1557
|
+
"kind": "arg";
|
|
1558
|
+
"path": "requestId";
|
|
1559
|
+
}
|
|
1560
|
+
];
|
|
1561
|
+
};
|
|
1562
|
+
},
|
|
1563
|
+
{
|
|
1564
|
+
"name": "vaultAuthority";
|
|
1565
|
+
"pda": {
|
|
1566
|
+
"seeds": [
|
|
1567
|
+
{
|
|
1568
|
+
"kind": "const";
|
|
1569
|
+
"value": [
|
|
1570
|
+
101,
|
|
1571
|
+
115,
|
|
1572
|
+
99,
|
|
1573
|
+
114,
|
|
1574
|
+
111,
|
|
1575
|
+
119
|
|
1576
|
+
];
|
|
1577
|
+
}
|
|
1578
|
+
];
|
|
1579
|
+
};
|
|
1580
|
+
},
|
|
1581
|
+
{
|
|
1582
|
+
"name": "vaultTokenAccount";
|
|
1583
|
+
"writable": true;
|
|
1584
|
+
"pda": {
|
|
1585
|
+
"seeds": [
|
|
1586
|
+
{
|
|
1587
|
+
"kind": "account";
|
|
1588
|
+
"path": "vaultAuthority";
|
|
1589
|
+
},
|
|
1590
|
+
{
|
|
1591
|
+
"kind": "const";
|
|
1592
|
+
"value": [
|
|
1593
|
+
6,
|
|
1594
|
+
221,
|
|
1595
|
+
246,
|
|
1596
|
+
225,
|
|
1597
|
+
215,
|
|
1598
|
+
101,
|
|
1599
|
+
161,
|
|
1600
|
+
147,
|
|
1601
|
+
217,
|
|
1602
|
+
203,
|
|
1603
|
+
225,
|
|
1604
|
+
70,
|
|
1605
|
+
206,
|
|
1606
|
+
235,
|
|
1607
|
+
121,
|
|
1608
|
+
172,
|
|
1609
|
+
28,
|
|
1610
|
+
180,
|
|
1611
|
+
133,
|
|
1612
|
+
237,
|
|
1613
|
+
95,
|
|
1614
|
+
91,
|
|
1615
|
+
55,
|
|
1616
|
+
145,
|
|
1617
|
+
58,
|
|
1618
|
+
140,
|
|
1619
|
+
245,
|
|
1620
|
+
133,
|
|
1621
|
+
126,
|
|
1622
|
+
255,
|
|
1623
|
+
0,
|
|
1624
|
+
169
|
|
1625
|
+
];
|
|
1626
|
+
},
|
|
1627
|
+
{
|
|
1628
|
+
"kind": "account";
|
|
1629
|
+
"path": "mint";
|
|
1630
|
+
}
|
|
1631
|
+
];
|
|
1632
|
+
"program": {
|
|
1633
|
+
"kind": "const";
|
|
1634
|
+
"value": [
|
|
1635
|
+
140,
|
|
1636
|
+
151,
|
|
1637
|
+
37,
|
|
1638
|
+
143,
|
|
1639
|
+
78,
|
|
1640
|
+
36,
|
|
1641
|
+
137,
|
|
1642
|
+
241,
|
|
1643
|
+
187,
|
|
1644
|
+
61,
|
|
1645
|
+
16,
|
|
1646
|
+
41,
|
|
1647
|
+
20,
|
|
1648
|
+
142,
|
|
1649
|
+
13,
|
|
1650
|
+
131,
|
|
1651
|
+
11,
|
|
1652
|
+
90,
|
|
1653
|
+
19,
|
|
1654
|
+
153,
|
|
1655
|
+
218,
|
|
1656
|
+
255,
|
|
1657
|
+
16,
|
|
1658
|
+
132,
|
|
1659
|
+
4,
|
|
1660
|
+
142,
|
|
1661
|
+
123,
|
|
1662
|
+
216,
|
|
1663
|
+
219,
|
|
1664
|
+
233,
|
|
1665
|
+
248,
|
|
1666
|
+
89
|
|
1667
|
+
];
|
|
1668
|
+
};
|
|
1669
|
+
};
|
|
1670
|
+
},
|
|
1671
|
+
{
|
|
1672
|
+
"name": "recipient";
|
|
1673
|
+
},
|
|
1674
|
+
{
|
|
1675
|
+
"name": "treasuryReceiver";
|
|
1676
|
+
"docs": [
|
|
1677
|
+
"Mirrors EVM's onlyTreasuryReceiver(receiver) — the payout target must be whitelisted."
|
|
1678
|
+
];
|
|
1679
|
+
"pda": {
|
|
1680
|
+
"seeds": [
|
|
1681
|
+
{
|
|
1682
|
+
"kind": "const";
|
|
1683
|
+
"value": [
|
|
1684
|
+
116,
|
|
1685
|
+
114,
|
|
1686
|
+
101,
|
|
1687
|
+
97,
|
|
1688
|
+
115,
|
|
1689
|
+
117,
|
|
1690
|
+
114,
|
|
1691
|
+
121,
|
|
1692
|
+
45,
|
|
1693
|
+
114,
|
|
1694
|
+
101,
|
|
1695
|
+
99,
|
|
1696
|
+
101,
|
|
1037
1697
|
105,
|
|
1038
|
-
103,
|
|
1039
|
-
45,
|
|
1040
1698
|
118,
|
|
1041
|
-
|
|
1699
|
+
101,
|
|
1700
|
+
114
|
|
1042
1701
|
];
|
|
1702
|
+
},
|
|
1703
|
+
{
|
|
1704
|
+
"kind": "account";
|
|
1705
|
+
"path": "recipient";
|
|
1043
1706
|
}
|
|
1044
1707
|
];
|
|
1045
1708
|
};
|
|
1046
1709
|
},
|
|
1047
1710
|
{
|
|
1048
|
-
"name": "
|
|
1711
|
+
"name": "recipientTokenAccount";
|
|
1049
1712
|
"writable": true;
|
|
1050
1713
|
"pda": {
|
|
1051
1714
|
"seeds": [
|
|
1715
|
+
{
|
|
1716
|
+
"kind": "account";
|
|
1717
|
+
"path": "recipient";
|
|
1718
|
+
},
|
|
1052
1719
|
{
|
|
1053
1720
|
"kind": "const";
|
|
1054
1721
|
"value": [
|
|
1722
|
+
6,
|
|
1723
|
+
221,
|
|
1724
|
+
246,
|
|
1725
|
+
225,
|
|
1726
|
+
215,
|
|
1055
1727
|
101,
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1728
|
+
161,
|
|
1729
|
+
147,
|
|
1730
|
+
217,
|
|
1731
|
+
203,
|
|
1732
|
+
225,
|
|
1733
|
+
70,
|
|
1734
|
+
206,
|
|
1735
|
+
235,
|
|
1736
|
+
121,
|
|
1737
|
+
172,
|
|
1738
|
+
28,
|
|
1739
|
+
180,
|
|
1740
|
+
133,
|
|
1741
|
+
237,
|
|
1742
|
+
95,
|
|
1743
|
+
91,
|
|
1744
|
+
55,
|
|
1745
|
+
145,
|
|
1746
|
+
58,
|
|
1747
|
+
140,
|
|
1748
|
+
245,
|
|
1749
|
+
133,
|
|
1750
|
+
126,
|
|
1751
|
+
255,
|
|
1752
|
+
0,
|
|
1753
|
+
169
|
|
1061
1754
|
];
|
|
1755
|
+
},
|
|
1756
|
+
{
|
|
1757
|
+
"kind": "account";
|
|
1758
|
+
"path": "mint";
|
|
1062
1759
|
}
|
|
1063
1760
|
];
|
|
1761
|
+
"program": {
|
|
1762
|
+
"kind": "const";
|
|
1763
|
+
"value": [
|
|
1764
|
+
140,
|
|
1765
|
+
151,
|
|
1766
|
+
37,
|
|
1767
|
+
143,
|
|
1768
|
+
78,
|
|
1769
|
+
36,
|
|
1770
|
+
137,
|
|
1771
|
+
241,
|
|
1772
|
+
187,
|
|
1773
|
+
61,
|
|
1774
|
+
16,
|
|
1775
|
+
41,
|
|
1776
|
+
20,
|
|
1777
|
+
142,
|
|
1778
|
+
13,
|
|
1779
|
+
131,
|
|
1780
|
+
11,
|
|
1781
|
+
90,
|
|
1782
|
+
19,
|
|
1783
|
+
153,
|
|
1784
|
+
218,
|
|
1785
|
+
255,
|
|
1786
|
+
16,
|
|
1787
|
+
132,
|
|
1788
|
+
4,
|
|
1789
|
+
142,
|
|
1790
|
+
123,
|
|
1791
|
+
216,
|
|
1792
|
+
219,
|
|
1793
|
+
233,
|
|
1794
|
+
248,
|
|
1795
|
+
89
|
|
1796
|
+
];
|
|
1797
|
+
};
|
|
1064
1798
|
};
|
|
1065
1799
|
},
|
|
1066
|
-
{
|
|
1067
|
-
"name": "recipient";
|
|
1068
|
-
"writable": true;
|
|
1069
|
-
},
|
|
1070
1800
|
{
|
|
1071
1801
|
"name": "admin";
|
|
1072
1802
|
"writable": true;
|
|
1073
1803
|
"signer": true;
|
|
1074
1804
|
},
|
|
1805
|
+
{
|
|
1806
|
+
"name": "tokenProgram";
|
|
1807
|
+
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
|
|
1808
|
+
},
|
|
1075
1809
|
{
|
|
1076
1810
|
"name": "systemProgram";
|
|
1077
1811
|
"address": "11111111111111111111111111111111";
|
|
1812
|
+
},
|
|
1813
|
+
{
|
|
1814
|
+
"name": "instructions";
|
|
1815
|
+
"address": "Sysvar1nstructions1111111111111111111111111";
|
|
1078
1816
|
}
|
|
1079
1817
|
];
|
|
1080
1818
|
"args": [
|
|
1819
|
+
{
|
|
1820
|
+
"name": "chainId";
|
|
1821
|
+
"type": "u64";
|
|
1822
|
+
},
|
|
1823
|
+
{
|
|
1824
|
+
"name": "requestId";
|
|
1825
|
+
"type": "u64";
|
|
1826
|
+
},
|
|
1081
1827
|
{
|
|
1082
1828
|
"name": "amount";
|
|
1083
1829
|
"type": "u64";
|
|
@@ -4327,7 +5073,153 @@ export type Escrow = {
|
|
|
4327
5073
|
110,
|
|
4328
5074
|
102,
|
|
4329
5075
|
105,
|
|
4330
|
-
103
|
|
5076
|
+
103
|
|
5077
|
+
];
|
|
5078
|
+
}
|
|
5079
|
+
];
|
|
5080
|
+
};
|
|
5081
|
+
},
|
|
5082
|
+
{
|
|
5083
|
+
"name": "admin";
|
|
5084
|
+
"writable": true;
|
|
5085
|
+
"signer": true;
|
|
5086
|
+
}
|
|
5087
|
+
];
|
|
5088
|
+
"args": [
|
|
5089
|
+
{
|
|
5090
|
+
"name": "pubkey";
|
|
5091
|
+
"type": "pubkey";
|
|
5092
|
+
}
|
|
5093
|
+
];
|
|
5094
|
+
},
|
|
5095
|
+
{
|
|
5096
|
+
"name": "removeTreasuryReceiver";
|
|
5097
|
+
"docs": [
|
|
5098
|
+
"Revokes a receiver's admin-withdrawal whitelist entry (mirrors EVM revokeRole TREASURY_RECEIVER_ROLE)."
|
|
5099
|
+
];
|
|
5100
|
+
"discriminator": [
|
|
5101
|
+
94,
|
|
5102
|
+
45,
|
|
5103
|
+
107,
|
|
5104
|
+
230,
|
|
5105
|
+
200,
|
|
5106
|
+
85,
|
|
5107
|
+
152,
|
|
5108
|
+
15
|
|
5109
|
+
];
|
|
5110
|
+
"accounts": [
|
|
5111
|
+
{
|
|
5112
|
+
"name": "escrowConfig";
|
|
5113
|
+
"pda": {
|
|
5114
|
+
"seeds": [
|
|
5115
|
+
{
|
|
5116
|
+
"kind": "const";
|
|
5117
|
+
"value": [
|
|
5118
|
+
101,
|
|
5119
|
+
115,
|
|
5120
|
+
99,
|
|
5121
|
+
114,
|
|
5122
|
+
111,
|
|
5123
|
+
119,
|
|
5124
|
+
45,
|
|
5125
|
+
99,
|
|
5126
|
+
111,
|
|
5127
|
+
110,
|
|
5128
|
+
102,
|
|
5129
|
+
105,
|
|
5130
|
+
103,
|
|
5131
|
+
45,
|
|
5132
|
+
118,
|
|
5133
|
+
50
|
|
5134
|
+
];
|
|
5135
|
+
}
|
|
5136
|
+
];
|
|
5137
|
+
};
|
|
5138
|
+
},
|
|
5139
|
+
{
|
|
5140
|
+
"name": "treasuryReceiver";
|
|
5141
|
+
"writable": true;
|
|
5142
|
+
"pda": {
|
|
5143
|
+
"seeds": [
|
|
5144
|
+
{
|
|
5145
|
+
"kind": "const";
|
|
5146
|
+
"value": [
|
|
5147
|
+
116,
|
|
5148
|
+
114,
|
|
5149
|
+
101,
|
|
5150
|
+
97,
|
|
5151
|
+
115,
|
|
5152
|
+
117,
|
|
5153
|
+
114,
|
|
5154
|
+
121,
|
|
5155
|
+
45,
|
|
5156
|
+
114,
|
|
5157
|
+
101,
|
|
5158
|
+
99,
|
|
5159
|
+
101,
|
|
5160
|
+
105,
|
|
5161
|
+
118,
|
|
5162
|
+
101,
|
|
5163
|
+
114
|
|
5164
|
+
];
|
|
5165
|
+
},
|
|
5166
|
+
{
|
|
5167
|
+
"kind": "arg";
|
|
5168
|
+
"path": "receiver";
|
|
5169
|
+
}
|
|
5170
|
+
];
|
|
5171
|
+
};
|
|
5172
|
+
},
|
|
5173
|
+
{
|
|
5174
|
+
"name": "admin";
|
|
5175
|
+
"writable": true;
|
|
5176
|
+
"signer": true;
|
|
5177
|
+
}
|
|
5178
|
+
];
|
|
5179
|
+
"args": [
|
|
5180
|
+
{
|
|
5181
|
+
"name": "receiver";
|
|
5182
|
+
"type": "pubkey";
|
|
5183
|
+
}
|
|
5184
|
+
];
|
|
5185
|
+
},
|
|
5186
|
+
{
|
|
5187
|
+
"name": "setAdmin";
|
|
5188
|
+
"discriminator": [
|
|
5189
|
+
251,
|
|
5190
|
+
163,
|
|
5191
|
+
0,
|
|
5192
|
+
52,
|
|
5193
|
+
91,
|
|
5194
|
+
194,
|
|
5195
|
+
187,
|
|
5196
|
+
92
|
|
5197
|
+
];
|
|
5198
|
+
"accounts": [
|
|
5199
|
+
{
|
|
5200
|
+
"name": "escrowConfig";
|
|
5201
|
+
"writable": true;
|
|
5202
|
+
"pda": {
|
|
5203
|
+
"seeds": [
|
|
5204
|
+
{
|
|
5205
|
+
"kind": "const";
|
|
5206
|
+
"value": [
|
|
5207
|
+
101,
|
|
5208
|
+
115,
|
|
5209
|
+
99,
|
|
5210
|
+
114,
|
|
5211
|
+
111,
|
|
5212
|
+
119,
|
|
5213
|
+
45,
|
|
5214
|
+
99,
|
|
5215
|
+
111,
|
|
5216
|
+
110,
|
|
5217
|
+
102,
|
|
5218
|
+
105,
|
|
5219
|
+
103,
|
|
5220
|
+
45,
|
|
5221
|
+
118,
|
|
5222
|
+
50
|
|
4331
5223
|
];
|
|
4332
5224
|
}
|
|
4333
5225
|
];
|
|
@@ -4335,33 +5227,35 @@ export type Escrow = {
|
|
|
4335
5227
|
},
|
|
4336
5228
|
{
|
|
4337
5229
|
"name": "admin";
|
|
4338
|
-
"writable": true;
|
|
4339
5230
|
"signer": true;
|
|
4340
5231
|
}
|
|
4341
5232
|
];
|
|
4342
5233
|
"args": [
|
|
4343
5234
|
{
|
|
4344
|
-
"name": "
|
|
5235
|
+
"name": "newAdmin";
|
|
4345
5236
|
"type": "pubkey";
|
|
4346
5237
|
}
|
|
4347
5238
|
];
|
|
4348
5239
|
},
|
|
4349
5240
|
{
|
|
4350
|
-
"name": "
|
|
5241
|
+
"name": "setAdminWithdrawThreshold";
|
|
5242
|
+
"docs": [
|
|
5243
|
+
"Sets the single, global admin-withdrawal execution threshold (mirrors EVM's",
|
|
5244
|
+
"setAdminTokenMultisigThreshold). DEFAULT_ADMIN-only."
|
|
5245
|
+
];
|
|
4351
5246
|
"discriminator": [
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
5247
|
+
125,
|
|
5248
|
+
10,
|
|
5249
|
+
239,
|
|
5250
|
+
123,
|
|
5251
|
+
136,
|
|
5252
|
+
236,
|
|
5253
|
+
104,
|
|
5254
|
+
144
|
|
4360
5255
|
];
|
|
4361
5256
|
"accounts": [
|
|
4362
5257
|
{
|
|
4363
5258
|
"name": "escrowConfig";
|
|
4364
|
-
"writable": true;
|
|
4365
5259
|
"pda": {
|
|
4366
5260
|
"seeds": [
|
|
4367
5261
|
{
|
|
@@ -4388,15 +5282,58 @@ export type Escrow = {
|
|
|
4388
5282
|
];
|
|
4389
5283
|
};
|
|
4390
5284
|
},
|
|
5285
|
+
{
|
|
5286
|
+
"name": "adminWithdrawConfig";
|
|
5287
|
+
"writable": true;
|
|
5288
|
+
"pda": {
|
|
5289
|
+
"seeds": [
|
|
5290
|
+
{
|
|
5291
|
+
"kind": "const";
|
|
5292
|
+
"value": [
|
|
5293
|
+
97,
|
|
5294
|
+
100,
|
|
5295
|
+
109,
|
|
5296
|
+
105,
|
|
5297
|
+
110,
|
|
5298
|
+
45,
|
|
5299
|
+
119,
|
|
5300
|
+
105,
|
|
5301
|
+
116,
|
|
5302
|
+
104,
|
|
5303
|
+
100,
|
|
5304
|
+
114,
|
|
5305
|
+
97,
|
|
5306
|
+
119,
|
|
5307
|
+
45,
|
|
5308
|
+
99,
|
|
5309
|
+
111,
|
|
5310
|
+
110,
|
|
5311
|
+
102,
|
|
5312
|
+
105,
|
|
5313
|
+
103
|
|
5314
|
+
];
|
|
5315
|
+
}
|
|
5316
|
+
];
|
|
5317
|
+
};
|
|
5318
|
+
},
|
|
4391
5319
|
{
|
|
4392
5320
|
"name": "admin";
|
|
5321
|
+
"writable": true;
|
|
4393
5322
|
"signer": true;
|
|
5323
|
+
},
|
|
5324
|
+
{
|
|
5325
|
+
"name": "systemProgram";
|
|
5326
|
+
"address": "11111111111111111111111111111111";
|
|
4394
5327
|
}
|
|
4395
5328
|
];
|
|
4396
5329
|
"args": [
|
|
4397
5330
|
{
|
|
4398
|
-
"name": "
|
|
4399
|
-
"type": "
|
|
5331
|
+
"name": "managerRequired";
|
|
5332
|
+
"type": "u8";
|
|
5333
|
+
},
|
|
5334
|
+
{
|
|
5335
|
+
"name": "executiveRequired";
|
|
5336
|
+
"type": "u8";
|
|
4400
5337
|
}
|
|
4401
5338
|
];
|
|
4402
5339
|
},
|
|
@@ -6127,6 +7064,32 @@ export type Escrow = {
|
|
|
6127
7064
|
}
|
|
6128
7065
|
];
|
|
6129
7066
|
"accounts": [
|
|
7067
|
+
{
|
|
7068
|
+
"name": "adminWithdrawConfig";
|
|
7069
|
+
"discriminator": [
|
|
7070
|
+
213,
|
|
7071
|
+
66,
|
|
7072
|
+
12,
|
|
7073
|
+
39,
|
|
7074
|
+
88,
|
|
7075
|
+
172,
|
|
7076
|
+
14,
|
|
7077
|
+
255
|
|
7078
|
+
];
|
|
7079
|
+
},
|
|
7080
|
+
{
|
|
7081
|
+
"name": "adminWithdrawalUsed";
|
|
7082
|
+
"discriminator": [
|
|
7083
|
+
195,
|
|
7084
|
+
177,
|
|
7085
|
+
31,
|
|
7086
|
+
159,
|
|
7087
|
+
77,
|
|
7088
|
+
197,
|
|
7089
|
+
190,
|
|
7090
|
+
217
|
|
7091
|
+
];
|
|
7092
|
+
},
|
|
6130
7093
|
{
|
|
6131
7094
|
"name": "escrowConfig";
|
|
6132
7095
|
"discriminator": [
|
|
@@ -6244,6 +7207,19 @@ export type Escrow = {
|
|
|
6244
7207
|
41
|
|
6245
7208
|
];
|
|
6246
7209
|
},
|
|
7210
|
+
{
|
|
7211
|
+
"name": "treasuryReceiver";
|
|
7212
|
+
"discriminator": [
|
|
7213
|
+
160,
|
|
7214
|
+
74,
|
|
7215
|
+
145,
|
|
7216
|
+
140,
|
|
7217
|
+
88,
|
|
7218
|
+
105,
|
|
7219
|
+
185,
|
|
7220
|
+
168
|
|
7221
|
+
];
|
|
7222
|
+
},
|
|
6247
7223
|
{
|
|
6248
7224
|
"name": "withdrawNonce";
|
|
6249
7225
|
"discriminator": [
|
|
@@ -6285,6 +7261,19 @@ export type Escrow = {
|
|
|
6285
7261
|
26
|
|
6286
7262
|
];
|
|
6287
7263
|
},
|
|
7264
|
+
{
|
|
7265
|
+
"name": "adminPullWithdrawEvent";
|
|
7266
|
+
"discriminator": [
|
|
7267
|
+
76,
|
|
7268
|
+
105,
|
|
7269
|
+
32,
|
|
7270
|
+
75,
|
|
7271
|
+
3,
|
|
7272
|
+
121,
|
|
7273
|
+
252,
|
|
7274
|
+
169
|
|
7275
|
+
];
|
|
7276
|
+
},
|
|
6288
7277
|
{
|
|
6289
7278
|
"name": "adminWithdraw";
|
|
6290
7279
|
"discriminator": [
|
|
@@ -6298,6 +7287,19 @@ export type Escrow = {
|
|
|
6298
7287
|
171
|
|
6299
7288
|
];
|
|
6300
7289
|
},
|
|
7290
|
+
{
|
|
7291
|
+
"name": "adminWithdrawThresholdConfiguredEvent";
|
|
7292
|
+
"discriminator": [
|
|
7293
|
+
192,
|
|
7294
|
+
107,
|
|
7295
|
+
62,
|
|
7296
|
+
233,
|
|
7297
|
+
204,
|
|
7298
|
+
248,
|
|
7299
|
+
176,
|
|
7300
|
+
209
|
|
7301
|
+
];
|
|
7302
|
+
},
|
|
6301
7303
|
{
|
|
6302
7304
|
"name": "depositSolEvent";
|
|
6303
7305
|
"discriminator": [
|
|
@@ -6690,6 +7692,16 @@ export type Escrow = {
|
|
|
6690
7692
|
"code": 6033;
|
|
6691
7693
|
"name": "invalidGovernanceGroup";
|
|
6692
7694
|
"msg": "Unknown governance group";
|
|
7695
|
+
},
|
|
7696
|
+
{
|
|
7697
|
+
"code": 6034;
|
|
7698
|
+
"name": "adminWithdrawConfigNotSet";
|
|
7699
|
+
"msg": "Admin withdrawal threshold is not configured";
|
|
7700
|
+
},
|
|
7701
|
+
{
|
|
7702
|
+
"code": 6035;
|
|
7703
|
+
"name": "receiverNotWhitelisted";
|
|
7704
|
+
"msg": "Receiver is not whitelisted for admin withdrawals";
|
|
6693
7705
|
}
|
|
6694
7706
|
];
|
|
6695
7707
|
"types": [
|
|
@@ -6729,6 +7741,52 @@ export type Escrow = {
|
|
|
6729
7741
|
];
|
|
6730
7742
|
};
|
|
6731
7743
|
},
|
|
7744
|
+
{
|
|
7745
|
+
"name": "adminPullWithdrawEvent";
|
|
7746
|
+
"docs": [
|
|
7747
|
+
"Emitted by `admin_withdraw_sol_v2`/`admin_withdraw_spl_v2`. Distinct from the legacy",
|
|
7748
|
+
"`AdminWithdraw` event (emitted by the untouched `admin_withdraw_sol`/`admin_withdraw_spl`) so",
|
|
7749
|
+
"downstream consumers can tell the two paths apart. Carries `request_id` so a future event",
|
|
7750
|
+
"listener/worker can match by identity rather than guessing from tx logs."
|
|
7751
|
+
];
|
|
7752
|
+
"type": {
|
|
7753
|
+
"kind": "struct";
|
|
7754
|
+
"fields": [
|
|
7755
|
+
{
|
|
7756
|
+
"name": "chainId";
|
|
7757
|
+
"type": "u64";
|
|
7758
|
+
},
|
|
7759
|
+
{
|
|
7760
|
+
"name": "requestId";
|
|
7761
|
+
"type": "u64";
|
|
7762
|
+
},
|
|
7763
|
+
{
|
|
7764
|
+
"name": "recipient";
|
|
7765
|
+
"type": "pubkey";
|
|
7766
|
+
},
|
|
7767
|
+
{
|
|
7768
|
+
"name": "token";
|
|
7769
|
+
"type": "pubkey";
|
|
7770
|
+
},
|
|
7771
|
+
{
|
|
7772
|
+
"name": "amount";
|
|
7773
|
+
"type": "u64";
|
|
7774
|
+
},
|
|
7775
|
+
{
|
|
7776
|
+
"name": "admin";
|
|
7777
|
+
"type": "pubkey";
|
|
7778
|
+
},
|
|
7779
|
+
{
|
|
7780
|
+
"name": "slot";
|
|
7781
|
+
"type": "u64";
|
|
7782
|
+
},
|
|
7783
|
+
{
|
|
7784
|
+
"name": "timestamp";
|
|
7785
|
+
"type": "i64";
|
|
7786
|
+
}
|
|
7787
|
+
];
|
|
7788
|
+
};
|
|
7789
|
+
},
|
|
6732
7790
|
{
|
|
6733
7791
|
"name": "adminWithdraw";
|
|
6734
7792
|
"type": {
|
|
@@ -6761,6 +7819,94 @@ export type Escrow = {
|
|
|
6761
7819
|
];
|
|
6762
7820
|
};
|
|
6763
7821
|
},
|
|
7822
|
+
{
|
|
7823
|
+
"name": "adminWithdrawConfig";
|
|
7824
|
+
"docs": [
|
|
7825
|
+
"Single, global (not per-token) execution threshold for the interim pull-based admin withdrawal",
|
|
7826
|
+
"(mirrors EVM's `adminTokenThresholdSettings` — one fixed level, no amount bands). Signatures are",
|
|
7827
|
+
"verified against the existing `TreasuryConfig` roster (the same managers/executives who approve",
|
|
7828
|
+
"regular withdrawals) rather than a separate admin-only roster — see the plan doc for why this is",
|
|
7829
|
+
"a deliberate scope simplification vs EVM's distinct ADMIN_TREASURY_MANAGER/EXECUTIVE roles.",
|
|
7830
|
+
"",
|
|
7831
|
+
"PDA seeds: `[b\"admin-withdraw-config\"]`."
|
|
7832
|
+
];
|
|
7833
|
+
"type": {
|
|
7834
|
+
"kind": "struct";
|
|
7835
|
+
"fields": [
|
|
7836
|
+
{
|
|
7837
|
+
"name": "managerRequired";
|
|
7838
|
+
"type": "u8";
|
|
7839
|
+
},
|
|
7840
|
+
{
|
|
7841
|
+
"name": "executiveRequired";
|
|
7842
|
+
"type": "u8";
|
|
7843
|
+
},
|
|
7844
|
+
{
|
|
7845
|
+
"name": "isSet";
|
|
7846
|
+
"type": "bool";
|
|
7847
|
+
}
|
|
7848
|
+
];
|
|
7849
|
+
};
|
|
7850
|
+
},
|
|
7851
|
+
{
|
|
7852
|
+
"name": "adminWithdrawThresholdConfiguredEvent";
|
|
7853
|
+
"docs": [
|
|
7854
|
+
"Emitted when the admin-withdrawal execution threshold is set (mirrors EVM",
|
|
7855
|
+
"ConfigureAdminMultisig, but this is Solana-only global state — see AdminWithdrawConfig)."
|
|
7856
|
+
];
|
|
7857
|
+
"type": {
|
|
7858
|
+
"kind": "struct";
|
|
7859
|
+
"fields": [
|
|
7860
|
+
{
|
|
7861
|
+
"name": "managerRequired";
|
|
7862
|
+
"type": "u8";
|
|
7863
|
+
},
|
|
7864
|
+
{
|
|
7865
|
+
"name": "executiveRequired";
|
|
7866
|
+
"type": "u8";
|
|
7867
|
+
},
|
|
7868
|
+
{
|
|
7869
|
+
"name": "sender";
|
|
7870
|
+
"type": "pubkey";
|
|
7871
|
+
},
|
|
7872
|
+
{
|
|
7873
|
+
"name": "slot";
|
|
7874
|
+
"type": "u64";
|
|
7875
|
+
},
|
|
7876
|
+
{
|
|
7877
|
+
"name": "timestamp";
|
|
7878
|
+
"type": "i64";
|
|
7879
|
+
}
|
|
7880
|
+
];
|
|
7881
|
+
};
|
|
7882
|
+
},
|
|
7883
|
+
{
|
|
7884
|
+
"name": "adminWithdrawalUsed";
|
|
7885
|
+
"docs": [
|
|
7886
|
+
"Anti-replay marker for the interim pull-based admin withdrawal",
|
|
7887
|
+
"(`admin_withdraw_sol_v2`/`admin_withdraw_spl_v2`). One PDA per `request_id`, created via `init`",
|
|
7888
|
+
"(which fails automatically if the account already exists) and never closed — the withdrawal is",
|
|
7889
|
+
"a direct, single-shot transfer with no schedule/claim step, so unlike `WithdrawalCommitment`",
|
|
7890
|
+
"there is nothing to clean up on completion. Admin withdrawals are low-volume (occasional treasury",
|
|
7891
|
+
"management, not a user-facing high-throughput path), so a dedicated account per request is",
|
|
7892
|
+
"simpler and clearer here than the `WithdrawalBitmap` scheme used for regular withdrawals.",
|
|
7893
|
+
"",
|
|
7894
|
+
"PDA seeds: `[b\"admin-withdrawal-used\", request_id.to_le_bytes()]`."
|
|
7895
|
+
];
|
|
7896
|
+
"type": {
|
|
7897
|
+
"kind": "struct";
|
|
7898
|
+
"fields": [
|
|
7899
|
+
{
|
|
7900
|
+
"name": "requestId";
|
|
7901
|
+
"type": "u64";
|
|
7902
|
+
},
|
|
7903
|
+
{
|
|
7904
|
+
"name": "timestamp";
|
|
7905
|
+
"type": "i64";
|
|
7906
|
+
}
|
|
7907
|
+
];
|
|
7908
|
+
};
|
|
7909
|
+
},
|
|
6764
7910
|
{
|
|
6765
7911
|
"name": "depositSolEvent";
|
|
6766
7912
|
"type": {
|
|
@@ -7162,6 +8308,9 @@ export type Escrow = {
|
|
|
7162
8308
|
},
|
|
7163
8309
|
{
|
|
7164
8310
|
"name": "timelockExecutive";
|
|
8311
|
+
},
|
|
8312
|
+
{
|
|
8313
|
+
"name": "treasuryReceiver";
|
|
7165
8314
|
}
|
|
7166
8315
|
];
|
|
7167
8316
|
};
|
|
@@ -7522,6 +8671,31 @@ export type Escrow = {
|
|
|
7522
8671
|
];
|
|
7523
8672
|
};
|
|
7524
8673
|
},
|
|
8674
|
+
{
|
|
8675
|
+
"name": "treasuryReceiver";
|
|
8676
|
+
"docs": [
|
|
8677
|
+
"Whitelist entry for a single admin-withdrawal receiver (mirrors EVM's TREASURY_RECEIVER_ROLE).",
|
|
8678
|
+
"Existence with `is_whitelisted = true` means `admin_withdraw_sol_v2`/`admin_withdraw_spl_v2`",
|
|
8679
|
+
"may pay out to this address; anything else (account missing, since `remove_treasury_receiver`",
|
|
8680
|
+
"closes it rather than flipping a flag) is rejected.",
|
|
8681
|
+
"",
|
|
8682
|
+
"A dedicated PDA per receiver rather than a roster `Vec` (like `TreasuryConfig`'s managers/",
|
|
8683
|
+
"executives) — this whitelist can grow much larger than the manager/executive rosters and is",
|
|
8684
|
+
"checked per-withdrawal, so an O(1) PDA lookup keyed by the receiver's own address is a better",
|
|
8685
|
+
"fit than deserializing and scanning a list on every withdrawal.",
|
|
8686
|
+
"",
|
|
8687
|
+
"PDA seeds: `[b\"treasury-receiver\", receiver]`."
|
|
8688
|
+
];
|
|
8689
|
+
"type": {
|
|
8690
|
+
"kind": "struct";
|
|
8691
|
+
"fields": [
|
|
8692
|
+
{
|
|
8693
|
+
"name": "isWhitelisted";
|
|
8694
|
+
"type": "bool";
|
|
8695
|
+
}
|
|
8696
|
+
];
|
|
8697
|
+
};
|
|
8698
|
+
},
|
|
7525
8699
|
{
|
|
7526
8700
|
"name": "withdrawNonce";
|
|
7527
8701
|
"type": {
|