import { keccak256 } from "ethers/lib/utils" ; import { BigNumber } from "ethers" ; export const addressToData = ( address ) => address . replace ( "0x" , "000000000000000000000000" ) ; export const bigNumberToData = ( number ) => number . toHexString ( ) . replace ( "0x" , "" ) . padStart ( 64 , "0" ) ; export const hashAdapterName = ( name ) => keccak256 ( new Buffer ( name ) ) ;