Cloned Components
The Boost V2 Docs are under active development and will be subject to changes.
Once you’ve initialized a component through the Boost Registry, there are several methods to help you keep track of what you’ve deployed.
API
getCloneIdentifier
Retrieves the unique identifier for a previously initialized clone.
Parameters
An enum representing the type of previously initialized component.
The address of the base implementation your component was cloned from. You can either use Component.bases[chainId] or getBaseImplementation to retrieve this.
The address of the user that initialized the clone.
The display name used when initializing the clone
Optional parameters to pass to the underlying readContract
method. Checkout wagmi’s documentation for more information. address
, args
, functionName
, abi
are handled for you under the hood.
Returns
Returns the clone’s unique identifier
getClone
Retrieves an initialized clone given its identifier.
Parameters
The clone’s unique identifier, which can be ascertained with registry.getCloneIdentifier
Optional parameters to pass to the underlying readContract
method. Checkout wagmi’s documentation for more information. address
, args
, functionName
, abi
are handled for you under the hood.
Returns
Returns the clone
getClones
Retrieves the identifiers for all clones initialized by a given address.
Parameters
The address of the clones’ deployer
Optional parameters to pass to the underlying readContract
method. Checkout wagmi’s documentation for more information. address
, args
, functionName
, abi
are handled for you under the hood.
Returns
Returns a list of hex strings that can be used with registry.getClone
getBaseImplementation
Retrieves the address of an initialized clone’s base implementation. This is a low-level API, and base addresses are managed for you under the hood if using Boost components provided through the SDK.
Parameters
The clone’s unique identifier, which can be ascertained with registry.getCloneIdentifier
Optional parameters to pass to the underlying readContract
method. Checkout wagmi’s documentation for more information. address
, args
, functionName
, abi
are handled for you under the hood.
Returns
Returns the address of the clone’s base implementation.