Remove unused imports and methods
MODIFY
src/index.js
src/index.js
@@ -4,12 +4,6 @@ import Web3 from 'web3'
import utils from 'ethereumjs-util'
import queryString from 'query-string'
-import {
- verifyTxProof,
- verifyReceiptProof,
- verifyHeaderProof,
-} from './helpers/proofs'
-
import RootChainArtifacts from '../artifacts/RootChain'
import ChildERC20Artifacts from '../artifacts/ChildERC20'
import ChildERC721Artifacts from '../artifacts/ChildERC721'
@@ -470,10 +464,6 @@ export default class Matic {
return txProof
}
- verifyTxProof(txProof) {
- return verifyTxProof(txProof)
- }
-
async getReceiptProof(txId) {
const { proof: receiptProof } = await this._apiCall({
url: `${this._syncerUrl}/tx/${txId}/receipt/proof`,
@@ -482,10 +472,6 @@ export default class Matic {
return receiptProof
}
- verifyReceiptProof(receiptProof) {
- return verifyReceiptProof(receiptProof)
- }
-
getHeaderObject(blockNumber) {
return this._apiCall({
url: `${this._watcherUrl}/header/included/${blockNumber}`,
@@ -504,10 +490,6 @@ export default class Matic {
return headerProof
}
- verifyHeaderProof(headerProof) {
- return verifyHeaderProof(headerProof)
- }
-
async withdraw(txId, options = {}) {
// fetch trancation & receipt proof
const [txProof, receiptProof] = await Promise.all([

Remove unused imports and methods