import * as ABIDecoder from "abi-decoder" ; import * as BigNumber from "bignumber.js" ; import * as LogUtils from "./log_utils" ; import { Address , Bytes32 , UInt } from "../../../types/common" ; export function CollateralLocked ( contract , agreementID , token , amount ) { return { address : contract , events : LogUtils . getParams ( [ [ "agreementID" , agreementID ] , [ "token" , token ] , [ "amount" , amount ] , ] ) , name : "CollateralLocked" , } ; } export function ERC721CollateralLocked ( contract , agreementID , erc721Contract , tokenId ) { return { address : contract , events : LogUtils . getParams ( [ [ "agreementID" , agreementID ] , [ "erc721Contract" , erc721Contract ] , [ "tokenID" , tokenId ] , ] ) , name : "CollateralLocked" , } ; } export function CollateralReturned ( contract , agreementID , collateralizer , token , amount ) { return { address : contract , events : LogUtils . getParams ( [ [ "agreementID" , agreementID ] , [ "collateralizer" , collateralizer ] , [ "token" , token ] , [ "amount" , amount ] , ] ) , name : "CollateralReturned" , } ; } export function CollateralSeized ( contract , agreementID , beneficiary , token , amount ) { return { address : contract , events : LogUtils . getParams ( [ [ "agreementID" , agreementID ] , [ "beneficiary" , beneficiary ] , [ "token" , token ] , [ "amount" , amount ] , ] ) , name : "CollateralSeized" , } ; } export function ERC721CollateralReturned ( contract , agreementID , debtor , erc721Contract , tokenId ) { return { address : contract , events : LogUtils . getParams ( [ [ "agreementID" , agreementID ] , [ "debtor" , debtor ] , [ "erc721Contract" , erc721Contract ] , [ "tokenID" , tokenId ] , ] ) , name : "CollateralReturned" , } ; } export function ERC721CollateralSeized ( contract , agreementID , beneficiary , erc721Contract , tokenId ) { return { address : contract , events : LogUtils . getParams ( [ [ "agreementID" , agreementID ] , [ "beneficiary" , beneficiary ] , [ "erc721Contract" , erc721Contract ] , [ "tokenID" , tokenId ] , ] ) , name : "CollateralSeized" , } ; }