diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-02-08 23:23:20 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-02-08 23:23:20 +0800 |
commit | 1233c33116a389f34ac90768c5ef43c8bbfbf514 (patch) | |
tree | 4dfee164683df09ea26c761a90938d773a954859 /packages/website/ts/blockchain.ts | |
parent | 8fba0477a69317c19b3446c76a17cb3adbf447d7 (diff) | |
download | dexon-0x-contracts-1233c33116a389f34ac90768c5ef43c8bbfbf514.tar.gz dexon-0x-contracts-1233c33116a389f34ac90768c5ef43c8bbfbf514.tar.zst dexon-0x-contracts-1233c33116a389f34ac90768c5ef43c8bbfbf514.zip |
Address feedback
Diffstat (limited to 'packages/website/ts/blockchain.ts')
-rw-r--r-- | packages/website/ts/blockchain.ts | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/packages/website/ts/blockchain.ts b/packages/website/ts/blockchain.ts index 697ff4f10..ae79651d5 100644 --- a/packages/website/ts/blockchain.ts +++ b/packages/website/ts/blockchain.ts @@ -39,7 +39,6 @@ import { ProviderType, Side, SideToAssetToken, - SignatureData, Token, TokenByAddress, } from 'ts/types'; @@ -289,39 +288,6 @@ export class Blockchain { }), ); } - public portalOrderToSignedOrder( - maker: string, - taker: string, - makerTokenAddress: string, - takerTokenAddress: string, - makerTokenAmount: BigNumber, - takerTokenAmount: BigNumber, - makerFee: BigNumber, - takerFee: BigNumber, - expirationUnixTimestampSec: BigNumber, - feeRecipient: string, - ecSignature: ECSignature, - salt: BigNumber, - ): SignedOrder { - const exchangeContractAddress = this.getExchangeContractAddressIfExists(); - const takerOrNullAddress = _.isEmpty(taker) ? constants.NULL_ADDRESS : taker; - const signedOrder = { - ecSignature, - exchangeContractAddress, - expirationUnixTimestampSec, - feeRecipient, - maker, - makerFee, - makerTokenAddress, - makerTokenAmount, - salt, - taker: takerOrNullAddress, - takerFee, - takerTokenAddress, - takerTokenAmount, - }; - return signedOrder; - } public async fillOrderAsync(signedOrder: SignedOrder, fillTakerTokenAmount: BigNumber): Promise<BigNumber> { utils.assert(this._doesUserAddressExist(), BlockchainCallErrs.UserHasNoAssociatedAddresses); |