remove withdrawManager usage
MODIFY
README.md
README.md
@@ -34,9 +34,6 @@ const matic = new Matic({
// Set rootchain contract. See below for more information
rootChainAddress: <root-contract-address>,
- // Set withdraw-manager Address. See below for more information
- withdrawManagerAddress: <withdraw-manager-address>,
-
// Set matic network's WETH address. See below for more information
maticWethAddress: <matic-weth-address>,

MODIFY
examples/node/config.js
examples/node/config.js
@@ -2,8 +2,6 @@ module.exports = {
MATIC_PROVIDER: 'http://68.183.166.5:8545/',
PARENT_PROVIDER: 'https://ropsten.infura.io/matic',
ROOTCHAIN_ADDRESS: '0xc76a925ca7fc8bc9fccf3e8fc4481b95c7b519d5',
- WITHDRAWMANAGER_ADDRESS: '0xaac5836efaf18c2b0a8cdd35034876daf657535b',
- DEPOSITMANAGER_ADDRESS: '0xe5d6b6591f9be0adb7b2547c03bc080e6a7e1289',
SYNCER_URL: 'https://matic-syncer.api.matic.network/api/v1',
WATCHER_URL: 'https://ropsten-watcher.api.matic.network/api/v1',
MATICWETH_ADDRESS: '0xd27Ba7002CAa42C220F1Aa8aC8b9AD648E8301b0',

MODIFY
examples/node/depositEther.js
examples/node/depositEther.js
@@ -11,7 +11,6 @@ const matic = new Matic({
rootChainAddress: config.ROOTCHAIN_ADDRESS,
syncerUrl: config.SYNCER_URL,
watcherUrl: config.WATCHER_URL,
- withdrawManagerAddress: config.WITHDRAWMANAGER_ADDRESS,
})
matic.wallet = config.PRIVATE_KEY // prefix with `0x`

MODIFY
examples/node/withdraw.js
examples/node/withdraw.js
@@ -12,7 +12,6 @@ const matic = new Matic({
rootChainAddress: config.ROOTCHAIN_ADDRESS,
syncerUrl: config.SYNCER_URL,
watcherUrl: config.WATCHER_URL,
- withdrawManagerAddress: config.WITHDRAWMANAGER_ADDRESS,
})
matic.wallet = config.PRIVATE_KEY // prefix with `0x`

MODIFY
examples/node/withdraw721.js
examples/node/withdraw721.js
@@ -12,7 +12,6 @@ const matic = new Matic({
rootChainAddress: config.ROOTCHAIN_ADDRESS,
syncerUrl: config.SYNCER_URL,
watcherUrl: config.WATCHER_URL,
- withdrawManagerAddress: config.WITHDRAWMANAGER_ADDRESS,
})
matic.wallet = config.PRIVATE_KEY // prefix with `0x`

MODIFY
src/index.js
src/index.js
@@ -20,7 +20,6 @@ import RootChainArtifacts from '../artifacts/RootChain'
import ChildERC20Artifacts from '../artifacts/ChildERC20'
import ChildERC721Artifacts from '../artifacts/ChildERC721'
import StandardTokenArtifacts from '../artifacts/StandardToken'
-import WithdrawManagerArtifacts from '../artifacts/WithdrawManager'
const rlp = utils.rlp
@@ -37,7 +36,6 @@ export default class Matic {
this._watcherUrl = options.watcherUrl
this._rootChainAddress = options.rootChainAddress
this._maticWethAddress = options.maticWethAddress
- this._withdrawManagerAddress = options.withdrawManagerAddress
// create rootchain contract
this._rootChainContract = new this._parentWeb3.eth.Contract(
@@ -45,12 +43,6 @@ export default class Matic {
this._rootChainAddress
)
- // create withdraw manager contract
- this._withdrawManagerContract = new this._parentWeb3.eth.Contract(
- WithdrawManagerArtifacts.abi,
- this._withdrawManagerAddress
- )
-
// internal cache
this._tokenCache = {}
this._tokenMappedCache = {}

remove withdrawManager usage