Clear all signers from all registered domains.
Resolves the address of a Signer on a domain (or undefined, if no Signer)
A domain name or number.
A Promise for the address of the registered signer (if any)
Get the BridgeContracts for a given domain (or undefined)
A domain name or number.
a BridgeContracts object (or undefined)
Returns the most privileged connection registered to a domain. E.g. this function will attempt to return a Signer, then attempt to return the Provider (if no Signer is registered). If neither Signer nor Provider is registered for a domain, it will return undefined
A domain name or number.
A Signer (if any), otherwise a Provider (if any), otherwise undefined
Get the {@link CoreContracts} for a given domain (or undefined)
A domain name or number.
a {@link CoreContracts} object (or undefined)
Get the registered {@link Domain} object (if any)
A domain name or number.
A {@link Domain} (if the domain has been registered)
Get the Provider associated with a doman (if any)
A domain name or number.
The currently registered Provider (or none)
Resolve the replica for the Home domain on the Remote domain (if any).
WARNING: do not hold references to this contract, as it will not be reconnected in the event the chain connection changes.
the sending domain
the receiving domain
An interface for the Replica (if any)
Return the signer registered to a domain (if any).
A domain name or number.
The registered signer (or undefined)
Discovers the governor domain of this nomad deployment and returns the associated Core.
The identifier of the governing domain
Check whether the {@link MultiProvider} is aware of a domain.
A domain name or number.
true if the {@link Domain} has been registered, else false.
Get the BridgeContracts for a given domain (or throw an error)
A domain name or number.
a BridgeContracts object
Get the Connection associated with a doman (or error)
A domain name or number.
A Signer
Get the {@link CoreContracts} for a given domain (or throw an error)
A domain name or number.
a {@link CoreContracts} object
Get the registered {@link Domain} object (or error)
A domain name or number.
A {@link Domain}
Get the Provider associated with a doman (or error)
A domain name or number.
A Provider
Resolve the replica for the Home domain on the Remote domain (or throws).
WARNING: do not hold references to this contract, as it will not be reconnected in the event the chain connection changes.
the sending domain
the receiving domain
An interface for the Replica
Get the Signer associated with a doman (or error)
A domain name or number.
A Signer
Ensure that the contracts on a given domain are connected to the currently-registered signer or provider.
Resgister a domain with the MultiProvider. This allows the multiprovider to resolves tha domain info, and reference it by name or number.
The Domain object to register.
Register an ethers Provider for a specified domain.
A domain name or number.
An ethers Provider to be used by requests to that domain.
Shortcut to register a provider by its HTTP RPC URL.
A domain name or number.
The HTTP RPC Url
Register an ethers Signer for a specified domain.
A domain name or number.
An ethers Signer to be used by requests to that domain.
A shortcut for registering a basic local privkey signer on a domain.
A domain name or number.
A private key string passed to ethers.Wallet
Resolve the canonical domain and identifier for a representation on some domain.
The domain hosting the representation
The address of the representation on that domain
The domain and ID for the canonical token
Resolve an interface for the canonical token corresponding to a representation on some domain.
The domain hosting the representation
The address of the representation on that domain
An interface for that token
Resolve a domain name (or number) to the canonical number.
This function is used extensively to disambiguate domains.
A domain name or number.
The canonical domain number.
Resolve the name of a registered {@link Domain}, from its name or number.
Similar to resolveDomain
.
A domain name or number.
The name
Resolve the local representation of a token on some domain. E.g. find the deployed Celo address of Ethereum's Sushi Token.
WARNING: do not hold references to this contract, as it will not be reconnected in the event the chain connection changes.
the target domain, which hosts the representation
The token to locate on that domain
An interface for that token (if it has been deployed on that domain)
Resolve the local representation of a token on ALL known domain. E.g. find ALL deployed addresses of Ethereum's Sushi Token, on all registered domains.
WARNING: do not hold references to these contracts, as they will not be reconnected in the event the chain connection changes.
The token to locate on ALL domains
A ResolvedTokenInfo object with representation addresses
Send tokens from one domain to another. Approves the bridge if necessary.
The domain to send from
The domain to send to
The canonical token to send (details from originating chain)
The amount (in smallest unit) to send
The identifier to send to on the to
domain
TRUE to enable fast liquidity; FALSE to require no fast liquidity
Any tx overrides (e.g. gas price)
a TransferMessage object representing the in-flight transfer
Send a chain's native asset from one chain to another using the
EthHelper
contract.
The domain to send from
The domain to send to
The amount (in smallest unit) to send
The identifier to send to on the to
domain
TRUE to enable fast liquidity; FALSE to require no fast liquidity
Any tx overrides (e.g. gas price)
a TransferMessage object representing the in-flight transfer
Remove the registered ethers Signer from a domain. This function will attempt to preserve any Provider that was previously connected to this domain.
A domain name or number.
Generated using TypeDoc
The BridgeContext manages connections to Nomad Bridge contracts. It inherits from the {@link MultiProvider} and {@link NomadContext} and ensures that its contracts always use the latest registered providers and signers.