Function createEVMBridger
- createEVMBridger(p): Raw<{
chainType: ChainTypes;
chains: Computed<BridgeChain[]>;
isInitialized: Ref<boolean>;
provider: IProvider;
approve(token, operator) => Promise<void | TransactionResponse>;
approveIfNeeded(token, operator, amount?) => Promise<void | TransactionResponse>;
getChainById(id) => void | BridgeChain;
getDestinationTx(sourceChain, sourceTxHash) => Promise<DestinationTransaction>;
getSupportedChains(kind?) => Promise<BridgeChain[]>;
init() => Promise<void>;
isApproveRequired(token, operator, amount?) => Promise<boolean>;
}>
-
Returns Raw<{
chainType: ChainTypes;
chains: Computed<BridgeChain[]>;
isInitialized: Ref<boolean>;
provider: IProvider;
approve(token, operator) => Promise<void | TransactionResponse>;
approveIfNeeded(token, operator, amount?) => Promise<void | TransactionResponse>;
getChainById(id) => void | BridgeChain;
getDestinationTx(sourceChain, sourceTxHash) => Promise<DestinationTransaction>;
getSupportedChains(kind?) => Promise<BridgeChain[]>;
init() => Promise<void>;
isApproveRequired(token, operator, amount?) => Promise<boolean>;
}>