@cardanowall/sdk-ts 0.0.0 → 0.1.0

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.
@@ -900,11 +900,7 @@ function validateOneUri(chunks, path, errors) {
900
900
  const uri = reconstructed.uri;
901
901
  if (uri.includes("#")) {
902
902
  errors.push(
903
- issue(
904
- "INVALID_URI",
905
- path,
906
- "URI contains a fragment identifier ('#'), which is forbidden"
907
- )
903
+ issue("INVALID_URI", path, "URI contains a fragment identifier ('#'), which is forbidden")
908
904
  );
909
905
  return;
910
906
  }
@@ -934,21 +930,13 @@ function validateOneUri(chunks, path, errors) {
934
930
  const cid = slashIdx === -1 ? rest : rest.slice(0, slashIdx);
935
931
  if (!validateCidProfile(cid)) {
936
932
  errors.push(
937
- issue(
938
- "INVALID_URI",
939
- path,
940
- "ipfs:// URI is not a valid CID under the CIP-309 profile"
941
- )
933
+ issue("INVALID_URI", path, "ipfs:// URI is not a valid CID under the CIP-309 profile")
942
934
  );
943
935
  }
944
936
  return;
945
937
  }
946
938
  errors.push(
947
- issue(
948
- "INVALID_URI",
949
- path,
950
- "unsupported URI scheme; v1 PoE URI set is {ar://, ipfs://}"
951
- )
939
+ issue("INVALID_URI", path, "unsupported URI scheme; v1 PoE URI set is {ar://, ipfs://}")
952
940
  );
953
941
  }
954
942
  function checkItemEnc(item, idx, errors) {
@@ -3314,7 +3302,9 @@ async function tryDecryptions(args) {
3314
3302
  let plaintext = null;
3315
3303
  let failure = null;
3316
3304
  if (reqHasSecret) {
3317
- const envelope = sealedEnvelopeFromParsed(enc);
3305
+ const envelope = sealedEnvelopeFromParsed(
3306
+ enc
3307
+ );
3318
3308
  if (envelope === null) {
3319
3309
  out.push({
3320
3310
  item_index: idx,
@@ -4442,7 +4432,8 @@ function decodeTxSummary(txBodyBytes, witnessSetBytes, network) {
4442
4432
  else if (typeof invalidBefore === "bigint") summary.invalid_before = Number(invalidBefore);
4443
4433
  const invalidHereafter = body.get(BODY_KEY_INVALID_HEREAFTER);
4444
4434
  if (typeof invalidHereafter === "number") summary.invalid_hereafter = invalidHereafter;
4445
- else if (typeof invalidHereafter === "bigint") summary.invalid_hereafter = Number(invalidHereafter);
4435
+ else if (typeof invalidHereafter === "bigint")
4436
+ summary.invalid_hereafter = Number(invalidHereafter);
4446
4437
  if (requiredSigners.length > 0) summary.required_signer_key_hashes = requiredSigners;
4447
4438
  const networkId = body.get(BODY_KEY_NETWORK_ID);
4448
4439
  if (typeof networkId === "number") summary.network_id = networkId;
@@ -4654,7 +4645,16 @@ async function verifyResolved(input) {
4654
4645
  return report;
4655
4646
  }
4656
4647
  async function verifyResolvedRecord(args) {
4657
- const { input, metadataBytes, txCbor, numConfirmations, blockTime, blockSlot, httpCalls, fetchFn } = args;
4648
+ const {
4649
+ input,
4650
+ metadataBytes,
4651
+ txCbor,
4652
+ numConfirmations,
4653
+ blockTime,
4654
+ blockSlot,
4655
+ httpCalls,
4656
+ fetchFn
4657
+ } = args;
4658
4658
  const profile = input.profile ?? DEFAULT_PROFILE;
4659
4659
  const threshold = input.confirmationDepthThreshold ?? CONFIRMATION_DEPTH_THRESHOLD_DEFAULT;
4660
4660
  const txDescription = txCbor !== void 0 ? decodeTxDescription(txCbor, input) : {};