@0xbow/privacy-pools-core-sdk 1.1.0 → 1.1.1

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.
Files changed (20) hide show
  1. package/dist/esm/{fetchArtifacts.esm-B6qveiM8.js → fetchArtifacts.esm-DbVRphob.js} +2 -2
  2. package/dist/esm/{fetchArtifacts.esm-B6qveiM8.js.map → fetchArtifacts.esm-DbVRphob.js.map} +1 -1
  3. package/dist/esm/{fetchArtifacts.node-BPQQPsnb.js → fetchArtifacts.node-D-fJGtzV.js} +2 -2
  4. package/dist/esm/{fetchArtifacts.node-BPQQPsnb.js.map → fetchArtifacts.node-D-fJGtzV.js.map} +1 -1
  5. package/dist/esm/{index-CRtEyHEf.js → index-DkNRxKxP.js} +9 -6
  6. package/dist/esm/{index-CRtEyHEf.js.map → index-DkNRxKxP.js.map} +1 -1
  7. package/dist/esm/index.mjs +1 -1
  8. package/dist/node/{fetchArtifacts.esm-z-KXbilc.js → fetchArtifacts.esm-BIT-b_1_.js} +2 -2
  9. package/dist/node/{fetchArtifacts.esm-z-KXbilc.js.map → fetchArtifacts.esm-BIT-b_1_.js.map} +1 -1
  10. package/dist/node/{fetchArtifacts.node-DvqhqpW9.js → fetchArtifacts.node-CKwwU50E.js} +2 -2
  11. package/dist/node/{fetchArtifacts.node-DvqhqpW9.js.map → fetchArtifacts.node-CKwwU50E.js.map} +1 -1
  12. package/dist/node/{index-BsmEKESv.js → index-C3RV9Cri.js} +9 -6
  13. package/dist/node/{index-BsmEKESv.js.map → index-C3RV9Cri.js.map} +1 -1
  14. package/dist/node/index.mjs +1 -1
  15. package/dist/types/{fetchArtifacts.esm-DF01Zpo3.js → fetchArtifacts.esm-DT5RuODl.js} +1 -1
  16. package/dist/types/{fetchArtifacts.node-BO6FBCAw.js → fetchArtifacts.node-D_iVIPqW.js} +1 -1
  17. package/dist/types/{index-CH7gk4sK.js → index-CHy3YamH.js} +8 -5
  18. package/dist/types/index.js +1 -1
  19. package/package.json +1 -1
  20. package/src/core/data.service.ts +2 -1
@@ -1,4 +1,4 @@
1
- export { o as AccountError, A as AccountService, B as BlockchainProvider, p as CircuitName, k as Circuits, C as CommitmentService, n as ContractError, l as ContractInteractionsService, a as DEFAULT_LOG_FETCH_CONFIG, D as DataService, E as ErrorCode, I as InvalidRpcUrl, P as PrivacyPoolSDK, m as ProofError, S as SDKError, W as WithdrawalService, f as bigintToHash, i as bigintToHex, j as calculateContext, b as generateDepositSecrets, g as generateMasterKeys, e as generateMerkleProof, c as generateWithdrawalSecrets, d as getCommitment, h as hashPrecommitment } from './index-CRtEyHEf.js';
1
+ export { o as AccountError, A as AccountService, B as BlockchainProvider, p as CircuitName, k as Circuits, C as CommitmentService, n as ContractError, l as ContractInteractionsService, a as DEFAULT_LOG_FETCH_CONFIG, D as DataService, E as ErrorCode, I as InvalidRpcUrl, P as PrivacyPoolSDK, m as ProofError, S as SDKError, W as WithdrawalService, f as bigintToHash, i as bigintToHex, j as calculateContext, b as generateDepositSecrets, g as generateMasterKeys, e as generateMerkleProof, c as generateWithdrawalSecrets, d as getCommitment, h as hashPrecommitment } from './index-DkNRxKxP.js';
2
2
  import 'viem/accounts';
3
3
  import 'buffer';
4
4
  import 'assert';
@@ -1,4 +1,4 @@
1
- import { F as FetchArtifact } from './index-BsmEKESv.js';
1
+ import { F as FetchArtifact } from './index-C3RV9Cri.js';
2
2
  import 'viem/accounts';
3
3
  import 'buffer';
4
4
  import 'http';
@@ -32,4 +32,4 @@ async function fetchVersionedArtifact(artifactUrl) {
32
32
  }
33
33
 
34
34
  export { fetchVersionedArtifact };
35
- //# sourceMappingURL=fetchArtifacts.esm-z-KXbilc.js.map
35
+ //# sourceMappingURL=fetchArtifacts.esm-BIT-b_1_.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetchArtifacts.esm-z-KXbilc.js","sources":["../../src/circuits/fetchArtifacts.esm.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAEO,eAAe,sBAAsB,CAC1C,WAAgB,EAAA;AAEhB,IAAA,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,WAAW,CAAC;AACpC,IAAA,IAAI,GAAG,CAAC,MAAM,KAAK,GAAG,EAAE;AACtB,QAAA,MAAM,IAAI,aAAa,CAAC,WAAW,CAAC;;AAEtC,IAAA,MAAM,IAAI,GAAG,MAAM,GAAG,CAAC,WAAW,EAAE;AACpC,IAAA,OAAO,IAAI,UAAU,CAAC,IAAI,CAAC;AAC7B;;;;"}
1
+ {"version":3,"file":"fetchArtifacts.esm-BIT-b_1_.js","sources":["../../src/circuits/fetchArtifacts.esm.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAEO,eAAe,sBAAsB,CAC1C,WAAgB,EAAA;AAEhB,IAAA,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,WAAW,CAAC;AACpC,IAAA,IAAI,GAAG,CAAC,MAAM,KAAK,GAAG,EAAE;AACtB,QAAA,MAAM,IAAI,aAAa,CAAC,WAAW,CAAC;;AAEtC,IAAA,MAAM,IAAI,GAAG,MAAM,GAAG,CAAC,WAAW,EAAE;AACpC,IAAA,OAAO,IAAI,UAAU,CAAC,IAAI,CAAC;AAC7B;;;;"}
@@ -1,4 +1,4 @@
1
- import { F as FetchArtifact } from './index-BsmEKESv.js';
1
+ import { F as FetchArtifact } from './index-C3RV9Cri.js';
2
2
  import 'viem/accounts';
3
3
  import 'buffer';
4
4
  import 'http';
@@ -45,4 +45,4 @@ async function fetchVersionedArtifact(artifactUrl) {
45
45
  }
46
46
 
47
47
  export { fetchVersionedArtifact };
48
- //# sourceMappingURL=fetchArtifacts.node-DvqhqpW9.js.map
48
+ //# sourceMappingURL=fetchArtifacts.node-CKwwU50E.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetchArtifacts.node-DvqhqpW9.js","sources":["../../src/circuits/fetchArtifacts.node.ts"],"sourcesContent":[null],"names":[],"mappings":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ACF,QAAA,MAAM,GAAG,GAAG,MAAM,WAAW;AAC7B,QAAA,OAAO,IAAI,UAAU,CAAC,GAAG,CAAC;;IAC1B,OAAO,KAAK,EAAE;AACd,QAAA,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC;AACpB,QAAA,MAAM,IAAI,aAAa,CAAC,WAAW,CAAC;;AAExC;;;;"}
@@ -51082,10 +51082,10 @@ const circuitToAsset = {
51082
51082
 
51083
51083
  async function importFetchVersionedArtifact(isBrowser) {
51084
51084
  if (isBrowser) {
51085
- return import('./fetchArtifacts.esm-z-KXbilc.js');
51085
+ return import('./fetchArtifacts.esm-BIT-b_1_.js');
51086
51086
  }
51087
51087
  else {
51088
- return import('./fetchArtifacts.node-DvqhqpW9.js');
51088
+ return import('./fetchArtifacts.node-CKwwU50E.js');
51089
51089
  }
51090
51090
  }
51091
51091
 
@@ -79546,9 +79546,11 @@ class AccountService {
79546
79546
  });
79547
79547
  }
79548
79548
  else {
79549
- events.set(result.reason.details?.scope, {
79549
+ const errorWithDetails = result.reason;
79550
+ const scope = errorWithDetails.details?.scope;
79551
+ events.set(scope, {
79550
79552
  reason: result.reason.message,
79551
- scope: result.reason.details?.scope,
79553
+ scope: scope,
79552
79554
  });
79553
79555
  }
79554
79556
  }
@@ -80030,7 +80032,8 @@ class DataService {
80030
80032
  throw DataError.invalidLog("withdrawal", "missing args");
80031
80033
  }
80032
80034
  const { _value: value, _spentNullifier: spentNullifier, _newCommitment: newCommitment, } = typedLog.args;
80033
- if (!value ||
80035
+ if (value === undefined ||
80036
+ value === null ||
80034
80037
  !spentNullifier ||
80035
80038
  !newCommitment ||
80036
80039
  !typedLog.blockNumber ||
@@ -80205,4 +80208,4 @@ class DataService {
80205
80208
  }
80206
80209
 
80207
80210
  export { AccountService as A, BlockchainProvider as B, CommitmentService as C, DataService as D, ErrorCode as E, FetchArtifact as F, InvalidRpcUrl as I, PrivacyPoolSDK as P, SDKError as S, WithdrawalService as W, DEFAULT_LOG_FETCH_CONFIG as a, generateDepositSecrets as b, generateWithdrawalSecrets as c, getCommitment as d, generateMerkleProof as e, bigintToHash as f, generateMasterKeys as g, hashPrecommitment as h, bigintToHex as i, calculateContext as j, Circuits as k, ContractInteractionsService as l, ProofError as m, ContractError as n, AccountError as o, CircuitName as p };
80208
- //# sourceMappingURL=index-BsmEKESv.js.map
80211
+ //# sourceMappingURL=index-C3RV9Cri.js.map