@thesingularitynetwork/darkswap-sdk 0.1.26 → 0.1.28

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.
@@ -376,6 +376,11 @@ var abi = [
376
376
  ],
377
377
  name: "appendMerkleLeaf",
378
378
  outputs: [
379
+ {
380
+ internalType: "uint256",
381
+ name: "",
382
+ type: "uint256"
383
+ }
379
384
  ],
380
385
  stateMutability: "nonpayable",
381
386
  type: "function"
@@ -399,6 +404,25 @@ var abi = [
399
404
  stateMutability: "view",
400
405
  type: "function"
401
406
  },
407
+ {
408
+ inputs: [
409
+ {
410
+ internalType: "bytes32",
411
+ name: "_noteCommitment",
412
+ type: "bytes32"
413
+ }
414
+ ],
415
+ name: "getCommitmentIndex",
416
+ outputs: [
417
+ {
418
+ internalType: "uint256",
419
+ name: "",
420
+ type: "uint256"
421
+ }
422
+ ],
423
+ stateMutability: "view",
424
+ type: "function"
425
+ },
402
426
  {
403
427
  inputs: [
404
428
  ],
@@ -562,9 +586,9 @@ var abi = [
562
586
  name: "noteCommitmentsCreated",
563
587
  outputs: [
564
588
  {
565
- internalType: "bool",
566
- name: "created",
567
- type: "bool"
589
+ internalType: "uint256",
590
+ name: "commitmentIndex",
591
+ type: "uint256"
568
592
  }
569
593
  ],
570
594
  stateMutability: "view",
@@ -751,6 +775,11 @@ var abi = [
751
775
  internalType: "bytes32",
752
776
  name: "commitment",
753
777
  type: "bytes32"
778
+ },
779
+ {
780
+ internalType: "uint256",
781
+ name: "indexOffset",
782
+ type: "uint256"
754
783
  }
755
784
  ],
756
785
  name: "setNoteCommitmentCreated",
@@ -2383,16 +2412,16 @@ function getNoteOnChainStatus(_x, _x2, _x3) {
2383
2412
  }
2384
2413
  function _getNoteOnChainStatus() {
2385
2414
  _getNoteOnChainStatus = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(darkSwap, note, nullifier) {
2386
- var contract, isCreated, isSpent, isLocked;
2415
+ var contract, isNotCreated, isSpent, isLocked;
2387
2416
  return _regenerator().w(function (_context) {
2388
2417
  while (1) switch (_context.n) {
2389
2418
  case 0:
2390
2419
  contract = getContract(darkSwap.contracts.merkleTreeOperator, darkSwap);
2391
2420
  _context.n = 1;
2392
- return contract.noteCommitmentsCreated(note);
2421
+ return contract.noteIsNotCreated(note);
2393
2422
  case 1:
2394
- isCreated = _context.v;
2395
- if (isCreated) {
2423
+ isNotCreated = _context.v;
2424
+ if (!isNotCreated) {
2396
2425
  _context.n = 2;
2397
2426
  break;
2398
2427
  }