aboutsummaryrefslogblamecommitdiffstats
path: root/packages/asset-buyer/src/utils/asset_data_utils.ts
blob: 70f6469020a58e7f7f8155df7fa6081af0400cce (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                                         

                            

                               


                                                                                                 

                                   
  
import { ContractWrappers } from '@0x/contract-wrappers';
import { assetDataUtils as sharedAssetDataUtils } from '@0x/order-utils';
import * as _ from 'lodash';

export const assetDataUtils = {
    ...sharedAssetDataUtils,
    getEtherTokenAssetData(contractWrappers: ContractWrappers): string {
        const etherTokenAddress = contractWrappers.forwarder.etherTokenAddress;
        const etherTokenAssetData = sharedAssetDataUtils.encodeERC20AssetData(etherTokenAddress);
        return etherTokenAssetData;
    },
};