@pooflabs/core 0.0.37 → 0.0.38

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/dist/types.d.ts CHANGED
@@ -41,6 +41,8 @@ export interface SolTransaction {
41
41
  lutKey: PublicKey | null;
42
42
  network: string;
43
43
  preInstructions: TransactionInstruction[];
44
+ /** Base64-encoded VersionedTransaction co-signed by the attestation server (when CPI tx_data is present). */
45
+ signedTransaction?: string;
44
46
  }
45
47
  export interface TransactionResult {
46
48
  transactionSignature?: any;
@@ -446,7 +446,16 @@ export type Tarobase = {
446
446
  "address": "11111111111111111111111111111111";
447
447
  }
448
448
  ];
449
- "args": [];
449
+ "args": [
450
+ {
451
+ "name": "appId";
452
+ "type": "string";
453
+ },
454
+ {
455
+ "name": "genericPath";
456
+ "type": "string";
457
+ }
458
+ ];
450
459
  },
451
460
  {
452
461
  "name": "createUpdateAuthorityPermit";
@@ -1353,143 +1362,138 @@ export type Tarobase = {
1353
1362
  "errors": [
1354
1363
  {
1355
1364
  "code": 6000;
1356
- "name": "missingTypeTag";
1357
- "msg": "Missing type tag for literal";
1365
+ "name": "invalidAccountLength";
1366
+ "msg": "The number of provided new accounts does not match the number of documents.";
1358
1367
  },
1359
1368
  {
1360
1369
  "code": 6001;
1361
- "name": "notEnoughBytes";
1362
- "msg": "Not enough bytes";
1370
+ "name": "invalidPda";
1371
+ "msg": "The provided account does not match the expected PDA.";
1363
1372
  },
1364
1373
  {
1365
1374
  "code": 6002;
1366
- "name": "invalidFieldId";
1367
- "msg": "Invalid field ID";
1375
+ "name": "simulate2";
1376
+ "msg": "Simulate mode.";
1368
1377
  },
1369
1378
  {
1370
1379
  "code": 6003;
1371
- "name": "stackUnderflow";
1372
- "msg": "Stack underflow";
1380
+ "name": "accountTooLarge";
1381
+ "msg": "The account size would exceed the maximum allowed size of 10240 bytes.";
1373
1382
  },
1374
1383
  {
1375
1384
  "code": 6004;
1376
- "name": "typeMismatch";
1377
- "msg": "Type mismatch in operation";
1385
+ "name": "pathInBothDeleteAndUpdate";
1386
+ "msg": "The same path cannot appear in both delete_paths and documents";
1378
1387
  },
1379
1388
  {
1380
1389
  "code": 6005;
1381
- "name": "invalidArgument";
1382
- "msg": "Invalid argument";
1390
+ "name": "invalidOperation";
1391
+ "msg": "Invalid operation.";
1383
1392
  },
1384
1393
  {
1385
1394
  "code": 6006;
1386
- "name": "invalidConversion";
1387
- "msg": "Invalid conversion";
1395
+ "name": "missingRequiredFields";
1396
+ "msg": "Missing required fields.";
1388
1397
  },
1389
1398
  {
1390
1399
  "code": 6007;
1391
- "name": "unknownLiteralType";
1392
- "msg": "Unknown literal type";
1400
+ "name": "fieldAlreadyExists";
1401
+ "msg": "The same field cannot appear in more than one operation.";
1393
1402
  },
1394
1403
  {
1395
1404
  "code": 6008;
1396
- "name": "invalidOpcode";
1397
- "msg": "Invalid opcode";
1405
+ "name": "fieldReadOnly";
1406
+ "msg": "The field is read only.";
1398
1407
  },
1399
1408
  {
1400
1409
  "code": 6009;
1401
- "name": "invalidTimeTag";
1402
- "msg": "Invalid time tag";
1410
+ "name": "invalidFieldType";
1411
+ "msg": "The provided field is not of the expected type.";
1403
1412
  },
1404
1413
  {
1405
1414
  "code": 6010;
1406
- "name": "functionNotImplemented";
1407
- "msg": "Function not implemented";
1415
+ "name": "unsupportedOperation";
1416
+ "msg": "The provided option is not supported.";
1408
1417
  },
1409
1418
  {
1410
1419
  "code": 6011;
1411
- "name": "invalidFunctionType";
1412
- "msg": "Invalid function type";
1420
+ "name": "invalidIncrementType";
1421
+ "msg": "The increment type is invalid.";
1413
1422
  },
1414
1423
  {
1415
1424
  "code": 6012;
1416
- "name": "invalidFieldType";
1417
- "msg": "Invalid field type";
1425
+ "name": "invalidType";
1426
+ "msg": "The type is invalid.";
1418
1427
  },
1419
1428
  {
1420
1429
  "code": 6013;
1421
- "name": "missingSystemProgram";
1422
- "msg": "Missing or invalid system program in accounts";
1430
+ "name": "missingValue";
1431
+ "msg": "The value is missing.";
1423
1432
  },
1424
1433
  {
1425
1434
  "code": 6014;
1426
- "name": "missingTokenProgram";
1427
- "msg": "Missing or invalid token program in accounts";
1435
+ "name": "invalidTypeForTimestamp";
1436
+ "msg": "The type is invalid for timestamp.";
1428
1437
  },
1429
1438
  {
1430
1439
  "code": 6015;
1431
- "name": "missingSourceWallet";
1432
- "msg": "Missing or invalid source wallet account in accounts (for signing)";
1440
+ "name": "fieldNotFound";
1441
+ "msg": "The field was not found.";
1433
1442
  },
1434
1443
  {
1435
1444
  "code": 6016;
1436
- "name": "missingDestWallet";
1437
- "msg": "Missing or invalid destination wallet account in accounts (for signing)";
1445
+ "name": "documentDataMissingFromMap";
1446
+ "msg": "The document data was missing from the map.";
1438
1447
  },
1439
1448
  {
1440
1449
  "code": 6017;
1441
- "name": "missingSourceAta";
1442
- "msg": "Missing or invalid derived source ATA in accounts";
1450
+ "name": "streamAlreadyActive";
1451
+ "msg": "A bytecode stream is already active for this account.";
1443
1452
  },
1444
1453
  {
1445
1454
  "code": 6018;
1446
- "name": "missingDestAta";
1447
- "msg": "Missing or invalid derived destination ATA in accounts";
1455
+ "name": "noActiveStream";
1456
+ "msg": "No bytecode stream is currently active.";
1448
1457
  },
1449
1458
  {
1450
1459
  "code": 6019;
1451
- "name": "noMatchingTokenAccount";
1452
- "msg": "Could not find a matching token account for the given address/mint.";
1460
+ "name": "wrongFinalSize";
1461
+ "msg": "Chunk upload finished but size does not match expected_len.";
1453
1462
  },
1454
1463
  {
1455
1464
  "code": 6020;
1456
- "name": "missingSysvarRent";
1457
- "msg": "Missing sysvar rent account in accounts";
1465
+ "name": "invalidBytecodeIndex";
1466
+ "msg": "Bytecode index must be 0-5";
1458
1467
  },
1459
1468
  {
1460
1469
  "code": 6021;
1461
- "name": "missingProgram";
1462
- "msg": "Missing program";
1470
+ "name": "missingEd25519VerifyIx";
1471
+ "msg": "Missing or invalid Ed25519 verify instruction.";
1463
1472
  },
1464
1473
  {
1465
1474
  "code": 6022;
1466
- "name": "missingAccount";
1467
- "msg": "Missing account in remaining_accounts";
1475
+ "name": "permitExpired";
1476
+ "msg": "Permit has expired.";
1468
1477
  },
1469
1478
  {
1470
1479
  "code": 6023;
1471
- "name": "invalidAccountAddress";
1472
- "msg": "Invalid account address";
1480
+ "name": "invalidSignature";
1481
+ "msg": "Invalid signature.";
1473
1482
  },
1474
1483
  {
1475
1484
  "code": 6024;
1476
- "name": "randomnessRequestPending";
1477
- "msg": "Randomness request is still pending";
1485
+ "name": "invalidSigner";
1486
+ "msg": "Invalid signer.";
1478
1487
  },
1479
1488
  {
1480
1489
  "code": 6025;
1481
- "name": "invalidPriceAccount";
1482
- "msg": "Invalid price account";
1490
+ "name": "invalidMessage";
1491
+ "msg": "Invalid message.";
1483
1492
  },
1484
1493
  {
1485
1494
  "code": 6026;
1486
- "name": "stalePrice";
1487
- "msg": "stale price";
1488
- },
1489
- {
1490
- "code": 6027;
1491
- "name": "numericalOverflow";
1492
- "msg": "Numerical overflow";
1495
+ "name": "failedToParse";
1496
+ "msg": "Failed to parse.";
1493
1497
  }
1494
1498
  ];
1495
1499
  "types": [
@@ -446,7 +446,16 @@ export type Tarobase = {
446
446
  "address": "11111111111111111111111111111111";
447
447
  }
448
448
  ];
449
- "args": [];
449
+ "args": [
450
+ {
451
+ "name": "appId";
452
+ "type": "string";
453
+ },
454
+ {
455
+ "name": "genericPath";
456
+ "type": "string";
457
+ }
458
+ ];
450
459
  },
451
460
  {
452
461
  "name": "createUpdateAuthorityPermit";
@@ -1353,143 +1362,78 @@ export type Tarobase = {
1353
1362
  "errors": [
1354
1363
  {
1355
1364
  "code": 6000;
1356
- "name": "missingTypeTag";
1357
- "msg": "Missing type tag for literal";
1365
+ "name": "unauthorized";
1366
+ "msg": "Unauthorized: Only the owner can perform this action.";
1358
1367
  },
1359
1368
  {
1360
1369
  "code": 6001;
1361
- "name": "notEnoughBytes";
1362
- "msg": "Not enough bytes";
1370
+ "name": "unauthorizedUpdate";
1371
+ "msg": "Unauthorized: Failed policy check to update this document.";
1363
1372
  },
1364
1373
  {
1365
1374
  "code": 6002;
1366
- "name": "invalidFieldId";
1367
- "msg": "Invalid field ID";
1375
+ "name": "unauthorizedDelete";
1376
+ "msg": "Unauthorized: Failed policy check to delete this document.";
1368
1377
  },
1369
1378
  {
1370
1379
  "code": 6003;
1371
- "name": "stackUnderflow";
1372
- "msg": "Stack underflow";
1380
+ "name": "unauthorizedCreate";
1381
+ "msg": "Unauthorized: Failed policy check to create document at this path.";
1373
1382
  },
1374
1383
  {
1375
1384
  "code": 6004;
1376
- "name": "typeMismatch";
1377
- "msg": "Type mismatch in operation";
1385
+ "name": "constraintMismatch";
1386
+ "msg": "Constraint mismatch: provided values do not match stored document values.";
1378
1387
  },
1379
1388
  {
1380
1389
  "code": 6005;
1381
- "name": "invalidArgument";
1382
- "msg": "Invalid argument";
1390
+ "name": "cannotDeleteFieldsFromNonexistentAccount";
1391
+ "msg": "Cannot delete fields from a nonexistent account.";
1383
1392
  },
1384
1393
  {
1385
1394
  "code": 6006;
1386
- "name": "invalidConversion";
1387
- "msg": "Invalid conversion";
1395
+ "name": "fieldNotFound";
1396
+ "msg": "Field not found: Cannot delete a field that doesn't exist.";
1388
1397
  },
1389
1398
  {
1390
1399
  "code": 6007;
1391
- "name": "unknownLiteralType";
1392
- "msg": "Unknown literal type";
1400
+ "name": "createHookFailed";
1401
+ "msg": "Create hook failed: Document creation was rejected by hook.";
1393
1402
  },
1394
1403
  {
1395
1404
  "code": 6008;
1396
- "name": "invalidOpcode";
1397
- "msg": "Invalid opcode";
1405
+ "name": "updateHookFailed";
1406
+ "msg": "Update hook failed: Document update was rejected by hook.";
1398
1407
  },
1399
1408
  {
1400
1409
  "code": 6009;
1401
- "name": "invalidTimeTag";
1402
- "msg": "Invalid time tag";
1410
+ "name": "deleteHookFailed";
1411
+ "msg": "Delete hook failed: Document deletion was rejected by hook.";
1403
1412
  },
1404
1413
  {
1405
1414
  "code": 6010;
1406
- "name": "functionNotImplemented";
1407
- "msg": "Function not implemented";
1415
+ "name": "executionDataUpdating";
1416
+ "msg": "GenericPathExecutionData is currently being updated.";
1408
1417
  },
1409
1418
  {
1410
1419
  "code": 6011;
1411
- "name": "invalidFunctionType";
1412
- "msg": "Invalid function type";
1420
+ "name": "appIsNotInitialized";
1421
+ "msg": "App is not initialized";
1413
1422
  },
1414
1423
  {
1415
1424
  "code": 6012;
1416
- "name": "invalidFieldType";
1417
- "msg": "Invalid field type";
1425
+ "name": "invalidAuthorityPermit";
1426
+ "msg": "Invalid authority permit.";
1418
1427
  },
1419
1428
  {
1420
1429
  "code": 6013;
1421
- "name": "missingSystemProgram";
1422
- "msg": "Missing or invalid system program in accounts";
1430
+ "name": "accountMissing";
1431
+ "msg": "Account is missing.";
1423
1432
  },
1424
1433
  {
1425
1434
  "code": 6014;
1426
- "name": "missingTokenProgram";
1427
- "msg": "Missing or invalid token program in accounts";
1428
- },
1429
- {
1430
- "code": 6015;
1431
- "name": "missingSourceWallet";
1432
- "msg": "Missing or invalid source wallet account in accounts (for signing)";
1433
- },
1434
- {
1435
- "code": 6016;
1436
- "name": "missingDestWallet";
1437
- "msg": "Missing or invalid destination wallet account in accounts (for signing)";
1438
- },
1439
- {
1440
- "code": 6017;
1441
- "name": "missingSourceAta";
1442
- "msg": "Missing or invalid derived source ATA in accounts";
1443
- },
1444
- {
1445
- "code": 6018;
1446
- "name": "missingDestAta";
1447
- "msg": "Missing or invalid derived destination ATA in accounts";
1448
- },
1449
- {
1450
- "code": 6019;
1451
- "name": "noMatchingTokenAccount";
1452
- "msg": "Could not find a matching token account for the given address/mint.";
1453
- },
1454
- {
1455
- "code": 6020;
1456
- "name": "missingSysvarRent";
1457
- "msg": "Missing sysvar rent account in accounts";
1458
- },
1459
- {
1460
- "code": 6021;
1461
- "name": "missingProgram";
1462
- "msg": "Missing program";
1463
- },
1464
- {
1465
- "code": 6022;
1466
- "name": "missingAccount";
1467
- "msg": "Missing account in remaining_accounts";
1468
- },
1469
- {
1470
- "code": 6023;
1471
- "name": "invalidAccountAddress";
1472
- "msg": "Invalid account address";
1473
- },
1474
- {
1475
- "code": 6024;
1476
- "name": "randomnessRequestPending";
1477
- "msg": "Randomness request is still pending";
1478
- },
1479
- {
1480
- "code": 6025;
1481
- "name": "invalidPriceAccount";
1482
- "msg": "Invalid price account";
1483
- },
1484
- {
1485
- "code": 6026;
1486
- "name": "stalePrice";
1487
- "msg": "stale price";
1488
- },
1489
- {
1490
- "code": 6027;
1491
1435
  "name": "numericalOverflow";
1492
- "msg": "Numerical overflow";
1436
+ "msg": "numericalOverflow";
1493
1437
  }
1494
1438
  ];
1495
1439
  "types": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pooflabs/core",
3
- "version": "0.0.37",
3
+ "version": "0.0.38",
4
4
  "description": "Core functionality for Poof SDK",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",