@dynamic-labs-wallet/core 0.0.13 → 0.0.15

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/index.cjs.js CHANGED
@@ -124,6 +124,11 @@ const MPC_CONFIG = {
124
124
  dynamicServerThreshold: 2
125
125
  }
126
126
  };
127
+ var CreateRoomPartiesOptions = /*#__PURE__*/ function(CreateRoomPartiesOptions) {
128
+ CreateRoomPartiesOptions["THRESHOLD"] = "threshold";
129
+ CreateRoomPartiesOptions["FULL"] = "full";
130
+ return CreateRoomPartiesOptions;
131
+ }({});
127
132
  const getTSSConfig = (thresholdSignatureScheme)=>{
128
133
  const { threshold, numberOfParties } = MPC_CONFIG[thresholdSignatureScheme];
129
134
  return {
@@ -236,6 +241,7 @@ class DynamicApiClient extends BaseClient {
236
241
  }
237
242
 
238
243
  exports.BITCOIN_DERIVATION_PATHS = BITCOIN_DERIVATION_PATHS;
244
+ exports.CreateRoomPartiesOptions = CreateRoomPartiesOptions;
239
245
  exports.DYNAMIC_AUTH_PREPROD_BASE_API_URL = DYNAMIC_AUTH_PREPROD_BASE_API_URL;
240
246
  exports.DYNAMIC_AUTH_PROD_BASE_API_URL = DYNAMIC_AUTH_PROD_BASE_API_URL;
241
247
  exports.DYNAMIC_CLIENT_RELAY_PREPROD_BASE_API_URL = DYNAMIC_CLIENT_RELAY_PREPROD_BASE_API_URL;
package/index.esm.js CHANGED
@@ -122,6 +122,11 @@ const MPC_CONFIG = {
122
122
  dynamicServerThreshold: 2
123
123
  }
124
124
  };
125
+ var CreateRoomPartiesOptions = /*#__PURE__*/ function(CreateRoomPartiesOptions) {
126
+ CreateRoomPartiesOptions["THRESHOLD"] = "threshold";
127
+ CreateRoomPartiesOptions["FULL"] = "full";
128
+ return CreateRoomPartiesOptions;
129
+ }({});
125
130
  const getTSSConfig = (thresholdSignatureScheme)=>{
126
131
  const { threshold, numberOfParties } = MPC_CONFIG[thresholdSignatureScheme];
127
132
  return {
@@ -233,4 +238,4 @@ class DynamicApiClient extends BaseClient {
233
238
  }
234
239
  }
235
240
 
236
- export { BITCOIN_DERIVATION_PATHS, DYNAMIC_AUTH_PREPROD_BASE_API_URL, DYNAMIC_AUTH_PROD_BASE_API_URL, DYNAMIC_CLIENT_RELAY_PREPROD_BASE_API_URL, DYNAMIC_CLIENT_RELAY_PROD_BASE_API_URL, DynamicApiClient, MPC_CHAIN_CONFIG, MPC_CONFIG, MPC_RELAY_PREPROD_API_URL, MPC_RELAY_PROD_API_URL, SigningAlgorithm, ThresholdSignatureScheme, getClientThreshold, getDynamicServerThreshold, getMPCChainConfig, getTSSConfig };
241
+ export { BITCOIN_DERIVATION_PATHS, CreateRoomPartiesOptions, DYNAMIC_AUTH_PREPROD_BASE_API_URL, DYNAMIC_AUTH_PROD_BASE_API_URL, DYNAMIC_CLIENT_RELAY_PREPROD_BASE_API_URL, DYNAMIC_CLIENT_RELAY_PROD_BASE_API_URL, DynamicApiClient, MPC_CHAIN_CONFIG, MPC_CONFIG, MPC_RELAY_PREPROD_API_URL, MPC_RELAY_PROD_API_URL, SigningAlgorithm, ThresholdSignatureScheme, getClientThreshold, getDynamicServerThreshold, getMPCChainConfig, getTSSConfig };
package/package.json CHANGED
@@ -1,12 +1,9 @@
1
1
  {
2
2
  "name": "@dynamic-labs-wallet/core",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "dependencies": {
5
5
  "axios": "1.7.9"
6
6
  },
7
- "publishConfig": {
8
- "access": "restricted"
9
- },
10
7
  "nx": {
11
8
  "sourceRoot": "packages/core/src",
12
9
  "projectType": "library",
@@ -41,6 +41,10 @@ export declare const MPC_CONFIG: {
41
41
  dynamicServerThreshold: number;
42
42
  };
43
43
  };
44
+ export declare enum CreateRoomPartiesOptions {
45
+ THRESHOLD = "threshold",
46
+ FULL = "full"
47
+ }
44
48
  export declare const getTSSConfig: (thresholdSignatureScheme: ThresholdSignatureScheme) => {
45
49
  threshold: number;
46
50
  numberOfParties: number;
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/mpc/constants.ts"],"names":[],"mappings":"AAAA,oBAAY,gBAAgB;IAC1B,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,MAAM,WAAW;CAClB;AAED,eAAO,MAAM,wBAAwB;;;;CAMpC,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,MAAM,CACnC,MAAM,EACN;IAAE,cAAc,EAAE,MAAM,EAAE,CAAC;IAAC,gBAAgB,EAAE,gBAAgB,CAAA;CAAE,CA2BjE,CAAC;AAEF,eAAO,MAAM,iBAAiB,cAAe,MAAM;oBA7B/B,MAAM,EAAE;sBAAoB,gBAAgB;CAmC/D,CAAC;AAEF,oBAAY,wBAAwB;IAClC,UAAU,eAAe;IACzB,YAAY,iBAAiB;IAC7B,aAAa,kBAAkB;CAChC;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;CAmBtB,CAAC;AAEF,eAAO,MAAM,YAAY,6BACG,wBAAwB;;;CAInD,CAAC;AAEF,eAAO,MAAM,kBAAkB,6BACH,wBAAwB,WAGnD,CAAC;AAEF,eAAO,MAAM,yBAAyB,6BACV,wBAAwB,WAGnD,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/mpc/constants.ts"],"names":[],"mappings":"AAAA,oBAAY,gBAAgB;IAC1B,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,MAAM,WAAW;CAClB;AAED,eAAO,MAAM,wBAAwB;;;;CAMpC,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,MAAM,CACnC,MAAM,EACN;IAAE,cAAc,EAAE,MAAM,EAAE,CAAC;IAAC,gBAAgB,EAAE,gBAAgB,CAAA;CAAE,CA2BjE,CAAC;AAEF,eAAO,MAAM,iBAAiB,cAAe,MAAM;oBA7B/B,MAAM,EAAE;sBAAoB,gBAAgB;CAmC/D,CAAC;AAEF,oBAAY,wBAAwB;IAClC,UAAU,eAAe;IACzB,YAAY,iBAAiB;IAC7B,aAAa,kBAAkB;CAChC;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;CAmBtB,CAAC;AAEF,oBAAY,wBAAwB;IAClC,SAAS,cAAc;IACvB,IAAI,SAAS;CACd;AAED,eAAO,MAAM,YAAY,6BACG,wBAAwB;;;CAInD,CAAC;AAEF,eAAO,MAAM,kBAAkB,6BACH,wBAAwB,WAGnD,CAAC;AAEF,eAAO,MAAM,yBAAyB,6BACV,wBAAwB,WAGnD,CAAC"}