@velora-dex/sdk 9.4.1-dev.1 → 9.4.1-dev.2

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/dist/sdk.esm.js CHANGED
@@ -4927,6 +4927,16 @@ function produceExternalOrderHash(typedData) {
4927
4927
  });
4928
4928
  }
4929
4929
 
4930
+ // for same-chain Orders, all 0 params
4931
+ var DEFAULT_BRIDGE = {
4932
+ protocolSelector: '0x00000000',
4933
+ // 4 bytes
4934
+ destinationChainId: 0,
4935
+ outputToken: ZERO_ADDRESS,
4936
+ scalingFactor: 0,
4937
+ protocolData: '0x'
4938
+ };
4939
+
4930
4940
  var BRIDGE_EIP_712_TYPE = [{
4931
4941
  name: 'protocolSelector',
4932
4942
  type: 'bytes4'
@@ -5170,7 +5180,10 @@ var constructBuildTWAPDeltaOrder = function constructBuildTWAPDeltaOrder(options
5170
5180
  metadata: params.metadata,
5171
5181
  interval: params.interval,
5172
5182
  numSlices: params.numSlices,
5173
- bridge: params.deltaPrice.bridge,
5183
+ bridge: _extends({}, params.deltaPrice.bridge, {
5184
+ // TWAP child orders get their bridge data at execution time
5185
+ protocolData: DEFAULT_BRIDGE.protocolData
5186
+ }),
5174
5187
  chainId: chainId,
5175
5188
  paraswapDeltaAddress: ParaswapDelta,
5176
5189
  partnerAddress: partnerAddress,
@@ -5603,16 +5616,6 @@ var constructCancelDeltaOrder = function constructCancelDeltaOrder(options) {
5603
5616
  };
5604
5617
  };
5605
5618
 
5606
- // for same-chain Orders, all 0 params
5607
- var DEFAULT_BRIDGE = {
5608
- protocolSelector: '0x00000000',
5609
- // 4 bytes
5610
- destinationChainId: 0,
5611
- outputToken: ZERO_ADDRESS,
5612
- scalingFactor: 0,
5613
- protocolData: '0x'
5614
- };
5615
-
5616
5619
  var DeltaTokenModuleAbi = [{
5617
5620
  type: 'function',
5618
5621
  name: 'cancelAndWithdraw',