@thesingularitynetwork/darkswap-sdk 0.2.3 → 0.2.4

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.
@@ -11519,7 +11519,7 @@ var BridgeCreateOrderService = /*#__PURE__*/function () {
11519
11519
  return _regenerator().w(function (_context5) {
11520
11520
  while (1) switch (_context5.n) {
11521
11521
  case 0:
11522
- if (!(!context || !context.callData || !context.orderNote || !context.swapInNote || !context.address || context.feeAmount === undefined || !context.signature || !context.sourceChainId || !context.destChainId || !context.sourceAsset || !context.sourceAmount || context.bridgeFeeAmount === undefined)) {
11522
+ if (!(!context || !context.callData || !context.orderNote || !context.swapInNote || !context.address || context.feeAmount === undefined || !context.signature || !context.sourceChainId || !context.destChainId || !context.sourceAsset || context.bridgeFeeAmount === undefined)) {
11523
11523
  _context5.n = 1;
11524
11524
  break;
11525
11525
  }
@@ -11533,7 +11533,7 @@ var BridgeCreateOrderService = /*#__PURE__*/function () {
11533
11533
  currentNonce = _context5.v;
11534
11534
  context.nonce = currentNonce;
11535
11535
  packedData = ethers.solidityPacked(["bytes", "address", "bytes32", "address", "address", "bytes32", "bytes32", "bytes32", "bytes32", "bytes32" // _computeCallDataHash(call)
11536
- ], [_DOMAIN_PREFIX, this._darkSwapOfSourceChain.contracts.synaraBridge, context.canonicalId, this._darkSwapOfSourceChain.contracts.synaraDarkSwapOnBridgeAssetManager, context.address, hexlify32(context.sourceAmount), hexlify32(context.destChainId), hexlify32(context.nonce), hexlify32(context.sourceChainId), context.callDataHash]);
11536
+ ], [_DOMAIN_PREFIX, this._darkSwapOfSourceChain.contracts.synaraBridge, context.canonicalId, this._darkSwapOfSourceChain.contracts.synaraDarkSwapOnBridgeAssetManager, context.address, hexlify32(context.orderNote.amount), hexlify32(context.destChainId), hexlify32(context.nonce), hexlify32(context.sourceChainId), context.callDataHash]);
11537
11537
  depositCommitment = ethers.keccak256(packedData);
11538
11538
  return _context5.a(2, depositCommitment);
11539
11539
  }
@@ -11572,7 +11572,7 @@ var BridgeCreateOrderService = /*#__PURE__*/function () {
11572
11572
  return _regenerator().w(function (_context7) {
11573
11573
  while (1) switch (_context7.n) {
11574
11574
  case 0:
11575
- if (!(!context || !context.orderNote || !context.swapInNote || !context.address || !context.destChainId || !context.sourceAsset || context.bridgeFeeAmount === undefined || !context.sourceAmount || !context.proof || !context.attestationDetails)) {
11575
+ if (!(!context || !context.orderNote || !context.swapInNote || !context.address || !context.destChainId || !context.sourceAsset || context.bridgeFeeAmount === undefined || !context.proof || !context.attestationDetails)) {
11576
11576
  _context7.n = 1;
11577
11577
  break;
11578
11578
  }
@@ -11587,7 +11587,7 @@ var BridgeCreateOrderService = /*#__PURE__*/function () {
11587
11587
  depositOutNoteFooter: context.proof.depositFooter,
11588
11588
  outAssetSource: context.sourceAsset,
11589
11589
  outAssetDest: context.orderNote.address,
11590
- outAmount: context.sourceAmount,
11590
+ outAmount: context.orderNote.amount,
11591
11591
  feeRatio: context.orderNote.feeRatio,
11592
11592
  inNote: hexlify32(context.swapInNote.note),
11593
11593
  inNoteFooter: context.proof.swapInNoteFooter,