Skip to main content
The One-Time Actions 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

registryType
RegistryType
required
An enum representing the type of previously initialized component.
base
Address
required
The address of the base implementation your component was cloned from. You can either use Component.bases[chainId] or getBaseImplementation to retrieve this.
deployer
Address
required
The address of the user that initialized the clone.
displayName
string
required
The display name used when initializing the clone
parameters
Omit<wagmi.ReadContractParameters, 'address' | 'args' | 'functionName' | 'abi'>
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

id
Promise<Hex>
required
Returns the clone’s unique identifier

getClone

Retrieves an initialized clone given its identifier.

Parameters

identifier
Hex
required
The clone’s unique identifier, which can be ascertained with registry.getCloneIdentifier
parameters
Omit<wagmi.ReadContractParameters, 'address' | 'args' | 'functionName' | 'abi'>
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

clone
Promise<Clone>
required
Returns the clone

getClones

Retrieves the identifiers for all clones initialized by a given address.

Parameters

deployer
Address
required
The address of the clones’ deployer
parameters
Omit<wagmi.ReadContractParameters, 'address' | 'args' | 'functionName' | 'abi'>
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

identifiers
Promise<Array<Hex>>
required
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

identifier
Hex
required
The clone’s unique identifier, which can be ascertained with registry.getCloneIdentifier
parameters
Omit<wagmi.ReadContractParameters, 'address' | 'args' | 'functionName' | 'abi'>
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

address
Promise<Address>
required
Returns the address of the clone’s base implementation.