@meshsdk/core-cst 1.9.0-beta.93 → 1.9.0-beta.94

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/index.cjs CHANGED
@@ -4115,16 +4115,16 @@ var import_crypto4 = require("@cardano-sdk/crypto");
4115
4115
  var import_util2 = require("@cardano-sdk/util");
4116
4116
  var import_hash = __toESM(require_hash(), 1);
4117
4117
  var import_common4 = require("@meshsdk/common");
4118
- var buildBaseAddress = (networkId, paymentKeyHash, stakeKeyHash) => {
4118
+ var buildBaseAddress = (networkId, paymentKeyHash, stakeKeyHash, paymentCredType = CredentialType.KeyHash, stakeCredType = CredentialType.KeyHash) => {
4119
4119
  return BaseAddress.fromCredentials(
4120
4120
  networkId,
4121
4121
  {
4122
4122
  hash: paymentKeyHash,
4123
- type: CredentialType.KeyHash
4123
+ type: paymentCredType
4124
4124
  },
4125
4125
  {
4126
4126
  hash: stakeKeyHash,
4127
- type: CredentialType.KeyHash
4127
+ type: stakeCredType
4128
4128
  }
4129
4129
  );
4130
4130
  };
package/dist/index.d.cts CHANGED
@@ -336,7 +336,7 @@ declare class CardanoSDKSerializer implements IMeshTxSerializer {
336
336
  parser: ITxParser;
337
337
  }
338
338
 
339
- declare const buildBaseAddress: (networkId: number, paymentKeyHash: Hash28ByteBase16, stakeKeyHash: Hash28ByteBase16) => BaseAddress;
339
+ declare const buildBaseAddress: (networkId: number, paymentKeyHash: Hash28ByteBase16, stakeKeyHash: Hash28ByteBase16, paymentCredType?: CredentialType, stakeCredType?: CredentialType) => BaseAddress;
340
340
  declare const buildEnterpriseAddress: (networkId: number, paymentKeyHash: Hash28ByteBase16) => EnterpriseAddress;
341
341
  declare const clampScalar: (scalar: Buffer) => Buffer;
342
342
  declare const buildBip32PrivateKey: (entropy: string, password?: string) => Bip32PrivateKey;
package/dist/index.d.ts CHANGED
@@ -336,7 +336,7 @@ declare class CardanoSDKSerializer implements IMeshTxSerializer {
336
336
  parser: ITxParser;
337
337
  }
338
338
 
339
- declare const buildBaseAddress: (networkId: number, paymentKeyHash: Hash28ByteBase16, stakeKeyHash: Hash28ByteBase16) => BaseAddress;
339
+ declare const buildBaseAddress: (networkId: number, paymentKeyHash: Hash28ByteBase16, stakeKeyHash: Hash28ByteBase16, paymentCredType?: CredentialType, stakeCredType?: CredentialType) => BaseAddress;
340
340
  declare const buildEnterpriseAddress: (networkId: number, paymentKeyHash: Hash28ByteBase16) => EnterpriseAddress;
341
341
  declare const clampScalar: (scalar: Buffer) => Buffer;
342
342
  declare const buildBip32PrivateKey: (entropy: string, password?: string) => Bip32PrivateKey;
package/dist/index.js CHANGED
@@ -3941,16 +3941,16 @@ import { pbkdf2Sync } from "crypto";
3941
3941
  import { blake2b as blake2b4 } from "@cardano-sdk/crypto";
3942
3942
  import { HexBlob as HexBlob2 } from "@cardano-sdk/util";
3943
3943
  import { HARDENED_KEY_START } from "@meshsdk/common";
3944
- var buildBaseAddress = (networkId, paymentKeyHash, stakeKeyHash) => {
3944
+ var buildBaseAddress = (networkId, paymentKeyHash, stakeKeyHash, paymentCredType = CredentialType.KeyHash, stakeCredType = CredentialType.KeyHash) => {
3945
3945
  return BaseAddress.fromCredentials(
3946
3946
  networkId,
3947
3947
  {
3948
3948
  hash: paymentKeyHash,
3949
- type: CredentialType.KeyHash
3949
+ type: paymentCredType
3950
3950
  },
3951
3951
  {
3952
3952
  hash: stakeKeyHash,
3953
- type: CredentialType.KeyHash
3953
+ type: stakeCredType
3954
3954
  }
3955
3955
  );
3956
3956
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meshsdk/core-cst",
3
- "version": "1.9.0-beta.93",
3
+ "version": "1.9.0-beta.94",
4
4
  "description": "Types and utilities functions between Mesh and cardano-js-sdk",
5
5
  "main": "./dist/index.cjs",
6
6
  "browser": "./dist/index.js",
@@ -44,7 +44,7 @@
44
44
  "@harmoniclabs/plutus-data": "1.2.6",
45
45
  "@harmoniclabs/uplc": "1.4.1",
46
46
  "@harmoniclabs/pair": "^1.0.0",
47
- "@meshsdk/common": "1.9.0-beta.93",
47
+ "@meshsdk/common": "1.9.0-beta.94",
48
48
  "@types/base32-encoding": "^1.0.2",
49
49
  "base32-encoding": "^1.0.0",
50
50
  "bech32": "^2.0.0",