diff options
author | Brandon Millman <brandon@0xproject.com> | 2018-08-06 05:47:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-06 05:47:42 +0800 |
commit | 47fef1f8ff583879fa83a7a44086b14f69c09e21 (patch) | |
tree | 333f93d99e32e75739e3f76bbaa8c393249f71ff /packages/fill-scenarios | |
parent | 9f7f61085c1a6989b79df575beb0b5d8f2b3652d (diff) | |
parent | 3cb955c136bf47b5f40cdbc44bcc4d19ec6d6453 (diff) | |
download | dexon-sol-tools-47fef1f8ff583879fa83a7a44086b14f69c09e21.tar dexon-sol-tools-47fef1f8ff583879fa83a7a44086b14f69c09e21.tar.gz dexon-sol-tools-47fef1f8ff583879fa83a7a44086b14f69c09e21.tar.bz2 dexon-sol-tools-47fef1f8ff583879fa83a7a44086b14f69c09e21.tar.lz dexon-sol-tools-47fef1f8ff583879fa83a7a44086b14f69c09e21.tar.xz dexon-sol-tools-47fef1f8ff583879fa83a7a44086b14f69c09e21.tar.zst dexon-sol-tools-47fef1f8ff583879fa83a7a44086b14f69c09e21.zip |
Merge pull request #936 from 0xProject/feature/contract-wrappers/forwader-optimizations
ForwarderWrapper order optimizations
Diffstat (limited to 'packages/fill-scenarios')
-rw-r--r-- | packages/fill-scenarios/CHANGELOG.json | 10 | ||||
-rw-r--r-- | packages/fill-scenarios/src/fill_scenarios.ts | 24 |
2 files changed, 23 insertions, 11 deletions
diff --git a/packages/fill-scenarios/CHANGELOG.json b/packages/fill-scenarios/CHANGELOG.json index 954803462..04e076203 100644 --- a/packages/fill-scenarios/CHANGELOG.json +++ b/packages/fill-scenarios/CHANGELOG.json @@ -1,5 +1,15 @@ [ { + "version": "1.0.1-rc.3", + "changes": [ + { + "note": + "Updated to use latest orderFactory interface, fixed `feeRecipient` spelling error in public interface", + "pr": 936 + } + ] + }, + { "version": "1.0.1-rc.2", "changes": [ { diff --git a/packages/fill-scenarios/src/fill_scenarios.ts b/packages/fill-scenarios/src/fill_scenarios.ts index 8f2766e24..1a1adb326 100644 --- a/packages/fill-scenarios/src/fill_scenarios.ts +++ b/packages/fill-scenarios/src/fill_scenarios.ts @@ -61,7 +61,7 @@ export class FillScenarios { makerAddress: string, takerAddress: string, fillableAmount: BigNumber, - feeRecepientAddress: string, + feeRecipientAddress: string, expirationTimeSeconds?: BigNumber, ): Promise<SignedOrder> { return this._createAsymmetricFillableSignedOrderWithFeesAsync( @@ -73,7 +73,7 @@ export class FillScenarios { takerAddress, fillableAmount, fillableAmount, - feeRecepientAddress, + feeRecipientAddress, expirationTimeSeconds, ); } @@ -88,7 +88,7 @@ export class FillScenarios { ): Promise<SignedOrder> { const makerFee = new BigNumber(0); const takerFee = new BigNumber(0); - const feeRecepientAddress = constants.NULL_ADDRESS; + const feeRecipientAddress = constants.NULL_ADDRESS; return this._createAsymmetricFillableSignedOrderWithFeesAsync( makerAssetData, takerAssetData, @@ -98,7 +98,7 @@ export class FillScenarios { takerAddress, makerFillableAmount, takerFillableAmount, - feeRecepientAddress, + feeRecipientAddress, expirationTimeSeconds, ); } @@ -148,7 +148,7 @@ export class FillScenarios { takerAddress: string, makerFillableAmount: BigNumber, takerFillableAmount: BigNumber, - feeRecepientAddress: string, + feeRecipientAddress: string, expirationTimeSeconds?: BigNumber, ): Promise<SignedOrder> { const decodedMakerAssetData = assetDataUtils.decodeAssetDataOrThrow(makerAssetData); @@ -194,17 +194,19 @@ export class FillScenarios { const signedOrder = await orderFactory.createSignedOrderAsync( this._web3Wrapper.getProvider(), makerAddress, - takerAddress, - senderAddress, - makerFee, - takerFee, makerFillableAmount, makerAssetData, takerFillableAmount, takerAssetData, this._exchangeAddress, - feeRecepientAddress, - expirationTimeSeconds, + { + takerAddress, + senderAddress, + makerFee, + takerFee, + feeRecipientAddress, + expirationTimeSeconds, + }, ); return signedOrder; } |