@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.
@@ -380,6 +380,11 @@ var abi = [
380
380
  ],
381
381
  name: "appendMerkleLeaf",
382
382
  outputs: [
383
+ {
384
+ internalType: "uint256",
385
+ name: "",
386
+ type: "uint256"
387
+ }
383
388
  ],
384
389
  stateMutability: "nonpayable",
385
390
  type: "function"
@@ -403,6 +408,25 @@ var abi = [
403
408
  stateMutability: "view",
404
409
  type: "function"
405
410
  },
411
+ {
412
+ inputs: [
413
+ {
414
+ internalType: "bytes32",
415
+ name: "_noteCommitment",
416
+ type: "bytes32"
417
+ }
418
+ ],
419
+ name: "getCommitmentIndex",
420
+ outputs: [
421
+ {
422
+ internalType: "uint256",
423
+ name: "",
424
+ type: "uint256"
425
+ }
426
+ ],
427
+ stateMutability: "view",
428
+ type: "function"
429
+ },
406
430
  {
407
431
  inputs: [
408
432
  ],
@@ -566,9 +590,9 @@ var abi = [
566
590
  name: "noteCommitmentsCreated",
567
591
  outputs: [
568
592
  {
569
- internalType: "bool",
570
- name: "created",
571
- type: "bool"
593
+ internalType: "uint256",
594
+ name: "commitmentIndex",
595
+ type: "uint256"
572
596
  }
573
597
  ],
574
598
  stateMutability: "view",
@@ -755,6 +779,11 @@ var abi = [
755
779
  internalType: "bytes32",
756
780
  name: "commitment",
757
781
  type: "bytes32"
782
+ },
783
+ {
784
+ internalType: "uint256",
785
+ name: "indexOffset",
786
+ type: "uint256"
758
787
  }
759
788
  ],
760
789
  name: "setNoteCommitmentCreated",
@@ -2386,16 +2415,16 @@ function getNoteOnChainStatus(_x, _x2, _x3) {
2386
2415
  }
2387
2416
  function _getNoteOnChainStatus() {
2388
2417
  _getNoteOnChainStatus = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(darkSwap, note, nullifier) {
2389
- var contract, isCreated, isSpent, isLocked;
2418
+ var contract, isNotCreated, isSpent, isLocked;
2390
2419
  return _regenerator().w(function (_context) {
2391
2420
  while (1) switch (_context.n) {
2392
2421
  case 0:
2393
2422
  contract = getContract(darkSwap.contracts.merkleTreeOperator, darkSwap);
2394
2423
  _context.n = 1;
2395
- return contract.noteCommitmentsCreated(note);
2424
+ return contract.noteIsNotCreated(note);
2396
2425
  case 1:
2397
- isCreated = _context.v;
2398
- if (isCreated) {
2426
+ isNotCreated = _context.v;
2427
+ if (!isNotCreated) {
2399
2428
  _context.n = 2;
2400
2429
  break;
2401
2430
  }