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)
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 CoreContracts for a given domain (or undefined)
A domain name or number.
a 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 Connection associated with a doman (or error)
A domain name or number.
A Signer
Get the CoreContracts for a given domain (or throw an error)
A domain name or number.
a 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 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
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 NomadContext manages connections to Nomad core and Bridge contracts. It inherits from the {@link MultiProvider}, and ensures that its contracts always use the latest registered providers and signers.
For convenience, we've pre-constructed contexts for mainnet and testnet deployments. These can be imported directly.
// Set up mainnet and then access contracts as below: let router = mainnet.mustGetBridge('celo').bridgeRouter;