@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.
@@ -878,11 +878,7 @@ function validateOneUri(chunks, path, errors) {
878
878
  const uri = reconstructed.uri;
879
879
  if (uri.includes("#")) {
880
880
  errors.push(
881
- issue(
882
- "INVALID_URI",
883
- path,
884
- "URI contains a fragment identifier ('#'), which is forbidden"
885
- )
881
+ issue("INVALID_URI", path, "URI contains a fragment identifier ('#'), which is forbidden")
886
882
  );
887
883
  return;
888
884
  }
@@ -912,21 +908,13 @@ function validateOneUri(chunks, path, errors) {
912
908
  const cid = slashIdx === -1 ? rest : rest.slice(0, slashIdx);
913
909
  if (!validateCidProfile(cid)) {
914
910
  errors.push(
915
- issue(
916
- "INVALID_URI",
917
- path,
918
- "ipfs:// URI is not a valid CID under the CIP-309 profile"
919
- )
911
+ issue("INVALID_URI", path, "ipfs:// URI is not a valid CID under the CIP-309 profile")
920
912
  );
921
913
  }
922
914
  return;
923
915
  }
924
916
  errors.push(
925
- issue(
926
- "INVALID_URI",
927
- path,
928
- "unsupported URI scheme; v1 PoE URI set is {ar://, ipfs://}"
929
- )
917
+ issue("INVALID_URI", path, "unsupported URI scheme; v1 PoE URI set is {ar://, ipfs://}")
930
918
  );
931
919
  }
932
920
  function checkItemEnc(item, idx, errors) {
@@ -3292,7 +3280,9 @@ async function tryDecryptions(args) {
3292
3280
  let plaintext = null;
3293
3281
  let failure = null;
3294
3282
  if (reqHasSecret) {
3295
- const envelope = sealedEnvelopeFromParsed(enc);
3283
+ const envelope = sealedEnvelopeFromParsed(
3284
+ enc
3285
+ );
3296
3286
  if (envelope === null) {
3297
3287
  out.push({
3298
3288
  item_index: idx,
@@ -4420,7 +4410,8 @@ function decodeTxSummary(txBodyBytes, witnessSetBytes, network) {
4420
4410
  else if (typeof invalidBefore === "bigint") summary.invalid_before = Number(invalidBefore);
4421
4411
  const invalidHereafter = body.get(BODY_KEY_INVALID_HEREAFTER);
4422
4412
  if (typeof invalidHereafter === "number") summary.invalid_hereafter = invalidHereafter;
4423
- else if (typeof invalidHereafter === "bigint") summary.invalid_hereafter = Number(invalidHereafter);
4413
+ else if (typeof invalidHereafter === "bigint")
4414
+ summary.invalid_hereafter = Number(invalidHereafter);
4424
4415
  if (requiredSigners.length > 0) summary.required_signer_key_hashes = requiredSigners;
4425
4416
  const networkId = body.get(BODY_KEY_NETWORK_ID);
4426
4417
  if (typeof networkId === "number") summary.network_id = networkId;
@@ -4632,7 +4623,16 @@ async function verifyResolved(input) {
4632
4623
  return report;
4633
4624
  }
4634
4625
  async function verifyResolvedRecord(args) {
4635
- const { input, metadataBytes, txCbor, numConfirmations, blockTime, blockSlot, httpCalls, fetchFn } = args;
4626
+ const {
4627
+ input,
4628
+ metadataBytes,
4629
+ txCbor,
4630
+ numConfirmations,
4631
+ blockTime,
4632
+ blockSlot,
4633
+ httpCalls,
4634
+ fetchFn
4635
+ } = args;
4636
4636
  const profile = input.profile ?? DEFAULT_PROFILE;
4637
4637
  const threshold = input.confirmationDepthThreshold ?? CONFIRMATION_DEPTH_THRESHOLD_DEFAULT;
4638
4638
  const txDescription = txCbor !== void 0 ? decodeTxDescription(txCbor, input) : {};