import { Address , Log , UInt } from "../../../types/common" ; import * as ABIDecoder from "abi-decoder" ; import * as BigNumber from "bignumber.js" ; import * as LogUtils from "./log_utils" ; export function LogTransfer ( contract , from , to , tokenId ) { return { address : contract , events : LogUtils . getParams ( [ [ "_from" , from ] , [ "_to" , to ] , [ "_tokenId" , tokenId ] ] ) , name : "Transfer" , } ; } export function LogApproval ( contract , owner , approved , tokenId ) { return { address : contract , events : LogUtils . getParams ( [ [ "_owner" , owner ] , [ "_approved" , approved ] , [ "_tokenId" , tokenId ] , ] ) , name : "Approval" , } ; } export function LogApprovalForAll ( contract , owner , operator , approved ) { return { address : contract , events : LogUtils . getParams ( [ [ "_owner" , owner ] , [ "_operator" , operator ] , [ "_approved" , approved ] , ] ) , name : "ApprovalForAll" , } ; }