From 7d26b96d42f2594ba88954f9c56a791a77b7f31d Mon Sep 17 00:00:00 2001 From: Amir Bandeali Date: Sun, 22 Apr 2018 18:53:13 -0700 Subject: Rename proxyUtils => assetProxyUtils --- packages/contracts/src/utils/asset_proxy_utils.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'packages/contracts/src') diff --git a/packages/contracts/src/utils/asset_proxy_utils.ts b/packages/contracts/src/utils/asset_proxy_utils.ts index 29e50a860..1a7a312dd 100644 --- a/packages/contracts/src/utils/asset_proxy_utils.ts +++ b/packages/contracts/src/utils/asset_proxy_utils.ts @@ -4,7 +4,7 @@ import ethUtil = require('ethereumjs-util'); import { AssetProxyId } from './types'; -export const proxyUtils = { +export const assetProxyUtils = { encodeAssetProxyId(assetProxyId: AssetProxyId): Buffer { return ethUtil.toBuffer(assetProxyId); }, @@ -21,16 +21,16 @@ export const proxyUtils = { return encodedValue; }, encodeERC20ProxyData(tokenAddress: string): string { - const encodedAssetProxyId = proxyUtils.encodeAssetProxyId(AssetProxyId.ERC20); - const encodedAddress = proxyUtils.encodeAddress(tokenAddress); + const encodedAssetProxyId = assetProxyUtils.encodeAssetProxyId(AssetProxyId.ERC20); + const encodedAddress = assetProxyUtils.encodeAddress(tokenAddress); const encodedMetadata = Buffer.concat([encodedAssetProxyId, encodedAddress]); const encodedMetadataHex = ethUtil.bufferToHex(encodedMetadata); return encodedMetadataHex; }, encodeERC721ProxyData(tokenAddress: string, tokenId: BigNumber): string { - const encodedAssetProxyId = proxyUtils.encodeAssetProxyId(AssetProxyId.ERC721); - const encodedAddress = proxyUtils.encodeAddress(tokenAddress); - const encodedTokenId = proxyUtils.encodeUint256(tokenId); + const encodedAssetProxyId = assetProxyUtils.encodeAssetProxyId(AssetProxyId.ERC721); + const encodedAddress = assetProxyUtils.encodeAddress(tokenAddress); + const encodedTokenId = assetProxyUtils.encodeUint256(tokenId); const encodedMetadata = Buffer.concat([encodedAssetProxyId, encodedAddress, encodedTokenId]); const encodedMetadataHex = ethUtil.bufferToHex(encodedMetadata); return encodedMetadataHex; -- cgit v1.2.3