rename exit manager to exitUtil
MODIFY
src/interfaces/plasma_helper_contract.ts
src/interfaces/plasma_helper_contract.ts
import { RegistryContract } from "../plasma/registry";
import { WithdrawManager } from "../plasma/withdraw_manager";
-import { ExitManager } from "../pos/exit_manager";
+import { ExitUtil } from "../pos/exit_util";
import { DepositManager } from "../plasma/deposit_manager";
export interface IPlasmaContracts {
depositManager: DepositManager;
registry: RegistryContract;
- exitManager: ExitManager;
+ exitManager: ExitUtil;
withdrawManager: WithdrawManager;
}
\ No newline at end of file

MODIFY
src/plasma/index.ts
src/plasma/index.ts
@@ -4,7 +4,7 @@ import { BridgeClient, Web3SideChainClient } from "../utils";
import { IPlasmaClientConfig, IPlasmaContracts, ITransactionOption } from "../interfaces";
import { DepositManager } from "./deposit_manager";
import { RegistryContract } from "./registry";
-import { ExitManager, RootChain } from "../pos";
+import { ExitUtil, RootChain } from "../pos";
import { WithdrawManager } from "./withdraw_manager";
import { MATIC_TOKEN_ADDRESS_ON_POLYGON } from "../constant";
import { TYPE_AMOUNT } from "../types";
@@ -56,7 +56,7 @@ export class PlasmaClient extends BridgeClient {
client.config.depositManager
);
- this.exitManager = new ExitManager(
+ this.exitManager = new ExitUtil(
client.child,
this.rootChain,
config.requestConcurrency

MODIFY
src/pos/erc20.ts
src/pos/erc20.ts
@@ -3,7 +3,7 @@ import { RootChainManager } from "./root_chain_manager";
import { Converter, Web3SideChainClient } from "../utils";
import { POSToken } from "./pos_token";
import { TYPE_AMOUNT } from "../types";
-import { ExitManager } from "./exit_manager";
+import { ExitUtil } from "./exit_util";
import { Log_Event_Signature, ERROR_TYPE } from "../enums";
import { MAX_AMOUNT } from "..";
@@ -15,7 +15,7 @@ export class ERC20 extends POSToken {
isParent: boolean,
client: Web3SideChainClient,
rootChainManager: RootChainManager,
- exitManager: ExitManager
+ exitManager: ExitUtil
) {
super({
isParent,

MODIFY
src/pos/erc721.ts
src/pos/erc721.ts
@@ -3,7 +3,7 @@ import { RootChainManager } from "./root_chain_manager";
import { Converter, Web3SideChainClient } from "../utils";
import { POSToken } from "./pos_token";
import { TYPE_AMOUNT } from "../types";
-import { ExitManager } from "./exit_manager";
+import { ExitUtil } from "./exit_util";
import { Log_Event_Signature } from "../enums";
export class ERC721 extends POSToken {
@@ -14,7 +14,7 @@ export class ERC721 extends POSToken {
isParent: boolean,
client: Web3SideChainClient,
rootChainManager: RootChainManager,
- exitManager: ExitManager
+ exitManager: ExitUtil
) {
super({
isParent,

RENAME
src/pos/exit_manager.ts
src/pos/exit_util.ts
@@ -19,7 +19,7 @@ interface IRootBlockInfo {
blockNumber: BN;
}
-export class ExitManager {
+export class ExitUtil {
private maticClient_: BaseWeb3Client;
rootChain: RootChain;

MODIFY
src/pos/index.ts
src/pos/index.ts
@@ -2,12 +2,12 @@ import { ERC20 } from "./erc20";
import { RootChainManager } from "./root_chain_manager";
import { BaseToken, BridgeClient, Web3SideChainClient } from "../utils";
import { IPOSClientConfig, ITransactionOption } from "../interfaces";
-import { ExitManager } from "./exit_manager";
+import { ExitUtil } from "./exit_util";
import { RootChain } from "./root_chain";
import { ERC721 } from "./erc721";
import { TYPE_AMOUNT } from "../types";
-export * from "./exit_manager";
+export * from "./exit_util";
export * from "./root_chain_manager";
export * from "./root_chain";
@@ -49,7 +49,7 @@ export class POSClient extends BridgeClient {
config.rootChain,
);
- this.exitManager = new ExitManager(
+ this.exitManager = new ExitUtil(
this.client_.child,
this.rootChain,
config.requestConcurrency

MODIFY
src/pos/pos_token.ts
src/pos/pos_token.ts
import { BaseToken, Web3SideChainClient, promiseResolve } from "../utils";
import { IContractInitParam } from "../interfaces";
import { RootChainManager } from "./root_chain_manager";
-import { ExitManager } from "./exit_manager";
+import { ExitUtil } from "./exit_util";
export class POSToken extends BaseToken {
@@ -11,7 +11,7 @@ export class POSToken extends BaseToken {
contractParam: IContractInitParam,
client: Web3SideChainClient,
protected rootChainManager: RootChainManager,
- protected exitManager: ExitManager
+ protected exitManager: ExitUtil
) {
super(contractParam, client);
}

MODIFY
src/utils/bridge_client.ts
src/utils/bridge_client.ts
-import { ExitManager } from "../pos";
+import { ExitUtil } from "../pos";
export class BridgeClient {
- exitManager: ExitManager;
+ exitManager: ExitUtil;
/**
* check whether a txHash is checkPointed

rename exit manager to exitUtil