# Class Bridge__factory

#### Hierarchy

- ContractFactory
  - Bridge__factory

- Defined in platforms/evm/protocols/tokenBridge/src/ethers-contracts/factories/Bridge__factory.ts:1236

#####
Index

### Constructors

constructor

### Properties

abi
bytecode

### Methods

connect
deploy
getDeployTransaction
connect
createInterface

## Constructors

### constructor

- new Bridge__factory(...args): Bridge__factory

- #### Parameters

  - ##### `Rest` ...args: BridgeConstructorParams

  #### Returns Bridge__factory

  Overrides ContractFactory.constructor

  - Defined in platforms/evm/protocols/tokenBridge/src/ethers-contracts/factories/Bridge__factory.ts:1237

## Properties

### `Static` `Readonly` abi

abi: readonly [{
anonymous: false;
inputs: readonly [{
indexed: false;
internalType: "address";
name: "previousAdmin";
type: "address";
}, {
indexed: false;
internalType: "address";
name: "newAdmin";
type: "address";
}];
name: "AdminChanged";
type: "event";
}, {
anonymous: false;
inputs: readonly [{
indexed: true;
internalType: "address";
name: "beacon";
type: "address";
}];
name: "BeaconUpgraded";
type: "event";
}, {
anonymous: false;
inputs: readonly [{
indexed: true;
internalType: "address";
name: "oldContract";
type: "address";
}, {
indexed: true;
internalType: "address";
name: "newContract";
type: "address";
}];
name: "ContractUpgraded";
type: "event";
}, {
anonymous: false;
inputs: readonly [{
indexed: true;
internalType: "uint16";
name: "emitterChainId";
type: "uint16";
}, {
indexed: true;
internalType: "bytes32";
name: "emitterAddress";
type: "bytes32";
}, {
indexed: true;
internalType: "uint64";
name: "sequence";
type: "uint64";
}];
name: "TransferRedeemed";
type: "event";
}, {
anonymous: false;
inputs: readonly [{
indexed: true;
internalType: "address";
name: "implementation";
type: "address";
}];
name: "Upgraded";
type: "event";
}, {
inputs: readonly [];
name: "WETH";
outputs: readonly [{
internalType: "contract IWETH";
name: "";
type: "address";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "bytes";
name: "encoded";
type: "bytes";
}];
name: "_parseTransferCommon";
outputs: readonly [{
components: readonly [{
internalType: "uint8";
name: "payloadID";
type: "uint8";
}, {
internalType: "uint256";
name: "amount";
type: "uint256";
}, {
internalType: "bytes32";
name: "tokenAddress";
type: "bytes32";
}, {
internalType: "uint16";
name: "tokenChain";
type: "uint16";
}, {
internalType: "bytes32";
name: "to";
type: "bytes32";
}, {
internalType: "uint16";
name: "toChain";
type: "uint16";
}, {
internalType: "uint256";
name: "fee";
type: "uint256";
}];
internalType: "struct BridgeStructs.Transfer";
name: "transfer";
type: "tuple";
}];
stateMutability: "pure";
type: "function";
}, {
inputs: readonly [{
internalType: "address";
name: "tokenAddress";
type: "address";
}, {
internalType: "uint32";
name: "nonce";
type: "uint32";
}];
name: "attestToken";
outputs: readonly [{
internalType: "uint64";
name: "sequence";
type: "uint64";
}];
stateMutability: "payable";
type: "function";
}, {
inputs: readonly [{
internalType: "uint16";
name: "chainId_";
type: "uint16";
}];
name: "bridgeContracts";
outputs: readonly [{
internalType: "bytes32";
name: "";
type: "bytes32";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [];
name: "chainId";
outputs: readonly [{
internalType: "uint16";
name: "";
type: "uint16";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "bytes";
name: "encodedVm";
type: "bytes";
}];
name: "completeTransfer";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
internalType: "bytes";
name: "encodedVm";
type: "bytes";
}];
name: "completeTransferAndUnwrapETH";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
internalType: "bytes";
name: "encodedVm";
type: "bytes";
}];
name: "completeTransferAndUnwrapETHWithPayload";
outputs: readonly [{
internalType: "bytes";
name: "";
type: "bytes";
}];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
internalType: "bytes";
name: "encodedVm";
type: "bytes";
}];
name: "completeTransferWithPayload";
outputs: readonly [{
internalType: "bytes";
name: "";
type: "bytes";
}];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
internalType: "bytes";
name: "encodedVm";
type: "bytes";
}];
name: "createWrapped";
outputs: readonly [{
internalType: "address";
name: "token";
type: "address";
}];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
components: readonly [{
internalType: "uint8";
name: "payloadID";
type: "uint8";
}, {
internalType: "bytes32";
name: "tokenAddress";
type: "bytes32";
}, {
internalType: "uint16";
name: "tokenChain";
type: "uint16";
}, {
internalType: "uint8";
name: "decimals";
type: "uint8";
}, {
internalType: "bytes32";
name: "symbol";
type: "bytes32";
}, {
internalType: "bytes32";
name: "name";
type: "bytes32";
}];
internalType: "struct BridgeStructs.AssetMeta";
name: "meta";
type: "tuple";
}];
name: "encodeAssetMeta";
outputs: readonly [{
internalType: "bytes";
name: "encoded";
type: "bytes";
}];
stateMutability: "pure";
type: "function";
}, {
inputs: readonly [{
components: readonly [{
internalType: "uint8";
name: "payloadID";
type: "uint8";
}, {
internalType: "uint256";
name: "amount";
type: "uint256";
}, {
internalType: "bytes32";
name: "tokenAddress";
type: "bytes32";
}, {
internalType: "uint16";
name: "tokenChain";
type: "uint16";
}, {
internalType: "bytes32";
name: "to";
type: "bytes32";
}, {
internalType: "uint16";
name: "toChain";
type: "uint16";
}, {
internalType: "uint256";
name: "fee";
type: "uint256";
}];
internalType: "struct BridgeStructs.Transfer";
name: "transfer";
type: "tuple";
}];
name: "encodeTransfer";
outputs: readonly [{
internalType: "bytes";
name: "encoded";
type: "bytes";
}];
stateMutability: "pure";
type: "function";
}, {
inputs: readonly [{
components: readonly [{
internalType: "uint8";
name: "payloadID";
type: "uint8";
}, {
internalType: "uint256";
name: "amount";
type: "uint256";
}, {
internalType: "bytes32";
name: "tokenAddress";
type: "bytes32";
}, {
internalType: "uint16";
name: "tokenChain";
type: "uint16";
}, {
internalType: "bytes32";
name: "to";
type: "bytes32";
}, {
internalType: "uint16";
name: "toChain";
type: "uint16";
}, {
internalType: "bytes32";
name: "fromAddress";
type: "bytes32";
}, {
internalType: "bytes";
name: "payload";
type: "bytes";
}];
internalType: "struct BridgeStructs.TransferWithPayload";
name: "transfer";
type: "tuple";
}];
name: "encodeTransferWithPayload";
outputs: readonly [{
internalType: "bytes";
name: "encoded";
type: "bytes";
}];
stateMutability: "pure";
type: "function";
}, {
inputs: readonly [];
name: "evmChainId";
outputs: readonly [{
internalType: "uint256";
name: "";
type: "uint256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [];
name: "finality";
outputs: readonly [{
internalType: "uint8";
name: "";
type: "uint8";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "bytes32";
name: "hash";
type: "bytes32";
}];
name: "governanceActionIsConsumed";
outputs: readonly [{
internalType: "bool";
name: "";
type: "bool";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [];
name: "governanceChainId";
outputs: readonly [{
internalType: "uint16";
name: "";
type: "uint16";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [];
name: "governanceContract";
outputs: readonly [{
internalType: "bytes32";
name: "";
type: "bytes32";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [];
name: "isFork";
outputs: readonly [{
internalType: "bool";
name: "";
type: "bool";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "address";
name: "impl";
type: "address";
}];
name: "isInitialized";
outputs: readonly [{
internalType: "bool";
name: "";
type: "bool";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "bytes32";
name: "hash";
type: "bytes32";
}];
name: "isTransferCompleted";
outputs: readonly [{
internalType: "bool";
name: "";
type: "bool";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "address";
name: "token";
type: "address";
}];
name: "isWrappedAsset";
outputs: readonly [{
internalType: "bool";
name: "";
type: "bool";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "address";
name: "token";
type: "address";
}];
name: "outstandingBridged";
outputs: readonly [{
internalType: "uint256";
name: "";
type: "uint256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "bytes";
name: "encoded";
type: "bytes";
}];
name: "parseAssetMeta";
outputs: readonly [{
components: readonly [{
internalType: "uint8";
name: "payloadID";
type: "uint8";
}, {
internalType: "bytes32";
name: "tokenAddress";
type: "bytes32";
}, {
internalType: "uint16";
name: "tokenChain";
type: "uint16";
}, {
internalType: "uint8";
name: "decimals";
type: "uint8";
}, {
internalType: "bytes32";
name: "symbol";
type: "bytes32";
}, {
internalType: "bytes32";
name: "name";
type: "bytes32";
}];
internalType: "struct BridgeStructs.AssetMeta";
name: "meta";
type: "tuple";
}];
stateMutability: "pure";
type: "function";
}, {
inputs: readonly [{
internalType: "bytes";
name: "encoded";
type: "bytes";
}];
name: "parsePayloadID";
outputs: readonly [{
internalType: "uint8";
name: "payloadID";
type: "uint8";
}];
stateMutability: "pure";
type: "function";
}, {
inputs: readonly [{
internalType: "bytes";
name: "encodedRecoverChainId";
type: "bytes";
}];
name: "parseRecoverChainId";
outputs: readonly [{
components: readonly [{
internalType: "bytes32";
name: "module";
type: "bytes32";
}, {
internalType: "uint8";
name: "action";
type: "uint8";
}, {
internalType: "uint256";
name: "evmChainId";
type: "uint256";
}, {
internalType: "uint16";
name: "newChainId";
type: "uint16";
}];
internalType: "struct BridgeStructs.RecoverChainId";
name: "rci";
type: "tuple";
}];
stateMutability: "pure";
type: "function";
}, {
inputs: readonly [{
internalType: "bytes";
name: "encoded";
type: "bytes";
}];
name: "parseRegisterChain";
outputs: readonly [{
components: readonly [{
internalType: "bytes32";
name: "module";
type: "bytes32";
}, {
internalType: "uint8";
name: "action";
type: "uint8";
}, {
internalType: "uint16";
name: "chainId";
type: "uint16";
}, {
internalType: "uint16";
name: "emitterChainID";
type: "uint16";
}, {
internalType: "bytes32";
name: "emitterAddress";
type: "bytes32";
}];
internalType: "struct BridgeStructs.RegisterChain";
name: "chain";
type: "tuple";
}];
stateMutability: "pure";
type: "function";
}, {
inputs: readonly [{
internalType: "bytes";
name: "encoded";
type: "bytes";
}];
name: "parseTransfer";
outputs: readonly [{
components: readonly [{
internalType: "uint8";
name: "payloadID";
type: "uint8";
}, {
internalType: "uint256";
name: "amount";
type: "uint256";
}, {
internalType: "bytes32";
name: "tokenAddress";
type: "bytes32";
}, {
internalType: "uint16";
name: "tokenChain";
type: "uint16";
}, {
internalType: "bytes32";
name: "to";
type: "bytes32";
}, {
internalType: "uint16";
name: "toChain";
type: "uint16";
}, {
internalType: "uint256";
name: "fee";
type: "uint256";
}];
internalType: "struct BridgeStructs.Transfer";
name: "transfer";
type: "tuple";
}];
stateMutability: "pure";
type: "function";
}, {
inputs: readonly [{
internalType: "bytes";
name: "encoded";
type: "bytes";
}];
name: "parseTransferWithPayload";
outputs: readonly [{
components: readonly [{
internalType: "uint8";
name: "payloadID";
type: "uint8";
}, {
internalType: "uint256";
name: "amount";
type: "uint256";
}, {
internalType: "bytes32";
name: "tokenAddress";
type: "bytes32";
}, {
internalType: "uint16";
name: "tokenChain";
type: "uint16";
}, {
internalType: "bytes32";
name: "to";
type: "bytes32";
}, {
internalType: "uint16";
name: "toChain";
type: "uint16";
}, {
internalType: "bytes32";
name: "fromAddress";
type: "bytes32";
}, {
internalType: "bytes";
name: "payload";
type: "bytes";
}];
internalType: "struct BridgeStructs.TransferWithPayload";
name: "transfer";
type: "tuple";
}];
stateMutability: "pure";
type: "function";
}, {
inputs: readonly [{
internalType: "bytes";
name: "encoded";
type: "bytes";
}];
name: "parseUpgrade";
outputs: readonly [{
components: readonly [{
internalType: "bytes32";
name: "module";
type: "bytes32";
}, {
internalType: "uint8";
name: "action";
type: "uint8";
}, {
internalType: "uint16";
name: "chainId";
type: "uint16";
}, {
internalType: "bytes32";
name: "newContract";
type: "bytes32";
}];
internalType: "struct BridgeStructs.UpgradeContract";
name: "chain";
type: "tuple";
}];
stateMutability: "pure";
type: "function";
}, {
inputs: readonly [{
internalType: "bytes";
name: "encodedVM";
type: "bytes";
}];
name: "registerChain";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
internalType: "bytes";
name: "encodedVM";
type: "bytes";
}];
name: "submitRecoverChainId";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [];
name: "tokenImplementation";
outputs: readonly [{
internalType: "address";
name: "";
type: "address";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "address";
name: "token";
type: "address";
}, {
internalType: "uint256";
name: "amount";
type: "uint256";
}, {
internalType: "uint16";
name: "recipientChain";
type: "uint16";
}, {
internalType: "bytes32";
name: "recipient";
type: "bytes32";
}, {
internalType: "uint256";
name: "arbiterFee";
type: "uint256";
}, {
internalType: "uint32";
name: "nonce";
type: "uint32";
}];
name: "transferTokens";
outputs: readonly [{
internalType: "uint64";
name: "sequence";
type: "uint64";
}];
stateMutability: "payable";
type: "function";
}, {
inputs: readonly [{
internalType: "address";
name: "token";
type: "address";
}, {
internalType: "uint256";
name: "amount";
type: "uint256";
}, {
internalType: "uint16";
name: "recipientChain";
type: "uint16";
}, {
internalType: "bytes32";
name: "recipient";
type: "bytes32";
}, {
internalType: "uint32";
name: "nonce";
type: "uint32";
}, {
internalType: "bytes";
name: "payload";
type: "bytes";
}];
name: "transferTokensWithPayload";
outputs: readonly [{
internalType: "uint64";
name: "sequence";
type: "uint64";
}];
stateMutability: "payable";
type: "function";
}, {
inputs: readonly [{
internalType: "bytes";
name: "encodedVm";
type: "bytes";
}];
name: "updateWrapped";
outputs: readonly [{
internalType: "address";
name: "token";
type: "address";
}];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
internalType: "bytes";
name: "encodedVM";
type: "bytes";
}];
name: "upgrade";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [];
name: "wormhole";
outputs: readonly [{
internalType: "contract IWormhole";
name: "";
type: "address";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "uint16";
name: "recipientChain";
type: "uint16";
}, {
internalType: "bytes32";
name: "recipient";
type: "bytes32";
}, {
internalType: "uint256";
name: "arbiterFee";
type: "uint256";
}, {
internalType: "uint32";
name: "nonce";
type: "uint32";
}];
name: "wrapAndTransferETH";
outputs: readonly [{
internalType: "uint64";
name: "sequence";
type: "uint64";
}];
stateMutability: "payable";
type: "function";
}, {
inputs: readonly [{
internalType: "uint16";
name: "recipientChain";
type: "uint16";
}, {
internalType: "bytes32";
name: "recipient";
type: "bytes32";
}, {
internalType: "uint32";
name: "nonce";
type: "uint32";
}, {
internalType: "bytes";
name: "payload";
type: "bytes";
}];
name: "wrapAndTransferETHWithPayload";
outputs: readonly [{
internalType: "uint64";
name: "sequence";
type: "uint64";
}];
stateMutability: "payable";
type: "function";
}, {
inputs: readonly [{
internalType: "uint16";
name: "tokenChainId";
type: "uint16";
}, {
internalType: "bytes32";
name: "tokenAddress";
type: "bytes32";
}];
name: "wrappedAsset";
outputs: readonly [{
internalType: "address";
name: "";
type: "address";
}];
stateMutability: "view";
type: "function";
}, {
stateMutability: "payable";
type: "receive";
}] = _abi

- Defined in platforms/evm/protocols/tokenBridge/src/ethers-contracts/factories/Bridge__factory.ts:1262

### `Static` `Readonly` bytecode

bytecode: " " = _bytecode

- Defined in platforms/evm/protocols/tokenBridge/src/ethers-contracts/factories/Bridge__factory.ts:1261

## Methods

### connect

- connect(runner): Bridge__factory

- #### Parameters

  - ##### runner: ContractRunner

  #### Returns Bridge__factory

  Overrides ContractFactory.connect

  - Defined in platforms/evm/protocols/tokenBridge/src/ethers-contracts/factories/Bridge__factory.ts:1257

### deploy

- deploy(overrides?): Promise<TokenBridgeContract & {
  deploymentTransaction() => ContractTransactionResponse;
  }>

- #### Parameters

  - ##### `Optional` overrides: NonPayableOverrides & {
    from?: string;
    }

  #### Returns Promise<TokenBridgeContract & {
  deploymentTransaction() => ContractTransactionResponse;
  }>

  Overrides ContractFactory.deploy

  - Defined in platforms/evm/protocols/tokenBridge/src/ethers-contracts/factories/Bridge__factory.ts:1250

### getDeployTransaction

- getDeployTransaction(overrides?): Promise<ContractDeployTransaction>

- #### Parameters

  - ##### `Optional` overrides: NonPayableOverrides & {
    from?: string;
    }

  #### Returns Promise<ContractDeployTransaction>

  Overrides ContractFactory.getDeployTransaction

  - Defined in platforms/evm/protocols/tokenBridge/src/ethers-contracts/factories/Bridge__factory.ts:1245

### `Static` connect

- connect(address, runner?): TokenBridgeContract

- #### Parameters

  - ##### address: string

  - ##### `Optional` runner: ContractRunner

  #### Returns TokenBridgeContract

  - Defined in platforms/evm/protocols/tokenBridge/src/ethers-contracts/factories/Bridge__factory.ts:1266

### `Static` createInterface

- createInterface(): BridgeInterface

- #### Returns BridgeInterface

  - Defined in platforms/evm/protocols/tokenBridge/src/ethers-contracts/factories/Bridge__factory.ts:1263

Generated using TypeDoc