import { Address , Log } from 'set-protocol-utils' ; import { BigNumber } from 'bignumber.js' ; export function LogTradingPoolCreated ( trader , allocator , tradingPool , startingAllocation , contractAddress ) { return [ { event : 'TradingPoolCreated' , address : contractAddress , args : { trader , allocator , tradingPool , startingAllocation , } , } ] ; } export function LogAllocationUpdate ( tradingPool , oldAllocation , newAllocation , contractAddress ) { return [ { event : 'AllocationUpdate' , address : contractAddress , args : { tradingPool , oldAllocation , newAllocation , } , } ] ; } export function LogNewTrader ( tradingPool , oldTrader , newTrader , contractAddress ) { return [ { event : 'NewTrader' , address : contractAddress , args : { tradingPool , oldTrader , newTrader , } , } ] ; }