import { Address , Bytes32 , UInt } from "../../../types/common" ; import * as ABIDecoder from "abi-decoder" ; import { BigNumber } from "bignumber.js" ; import * as LogUtils from "./log_utils" ; export function LogDebtIssuance ( contract , agreementId ) { return { address : contract , events : LogUtils . getParams ( [ [ "_agreementId" , agreementId ] ] ) , name : "LogDebtIssuance" , } ; } export function LogTermBegin ( contract , agreementId , unixTimestampSec , blockNumber ) { return { address : contract , events : LogUtils . getParams ( [ [ "_agreementId" , agreementId ] , [ "_unixTimestampSec" , new BigNumber ( unixTimestampSec ) ] , [ "_blockNumber" , new BigNumber ( blockNumber ) ] , ] ) , name : "LogTermBegin" , } ; } export function LogDebtOrderFilled ( contract , agreementId , principal , principalToken , underwriter , underwriterFee , relayer , relayerFee ) { return { address : contract , events : LogUtils . getParams ( [ [ "_agreementId" , agreementId ] , [ "_principal" , principal ] , [ "_principalToken" , principalToken ] , [ "_underwriter" , underwriter ] , [ "_underwriterFee" , underwriterFee ] , [ "_relayer" , relayer ] , [ "_relayerFee" , relayerFee ] , ] ) , name : "LogDebtOrderFilled" , } ; } export function LogIssuanceCancelled ( contract , agreementId , cancelledBy ) { return { address : contract , events : LogUtils . getParams ( [ [ "_agreementId" , agreementId ] , [ "_cancelledBy" , cancelledBy ] ] ) , name : "LogIssuanceCancelled" , } ; } export function LogDebtOrderCancelled ( contract , debtOrderHash , cancelledBy ) { return { address : contract , events : LogUtils . getParams ( [ [ "_debtOrderHash" , debtOrderHash ] , [ "_cancelledBy" , cancelledBy ] , ] ) , name : "LogDebtOrderCancelled" , } ; } export function LogError ( contract , errorId , orderHash ) { return { address : contract , events : LogUtils . getParams ( [ [ "_errorId" , errorId ] , [ "_orderHash" , orderHash ] ] , [ "uint8" , "bytes32" ] ) , name : "LogError" , } ; }