Registers a new program in the repository.
The program to register.
Optional
overrides: booleanWhether to register and prioritize
the given program even if a program with the same
public key already exists. Defaults to true
.
Gets all programs from the repository matching the given cluster filter. Defaults to getting all programs from the current cluster.
Optional
clusterFilter: ClusterFilterThe cluster filter to apply. Defaults to "current"
.
Creates a binding between a name and a program identifier. This can be used to create redirections or aliases when resolving programs.
The name of the binding.
The identifier this binding should resolve to.
Creates a cloned instance of the repository.
A new repository instance with the same programs and bindings.
Gets a program from the repository. Throws an error if the program is not found.
The name or public key of the program to retrieve.
Optional
clusterFilter: ClusterFilterThe cluster filter to apply. Defaults to "current"
.
Gets the public key of a program from the repository, with an optional fallback public key.
Throws an error if the program is not found and no fallback is provided.
The name or public key of the program to retrieve.
Optional
fallback: PublicKeyInput<string>The fallback public key to use if the program is not found. Defaults to not using a fallback public key.
Optional
clusterFilter: ClusterFilterThe cluster filter to apply. Defaults to "current"
.
Whether a given program is registered in the repository.
The name or public key of the program to check.
Optional
clusterFilter: ClusterFilterThe cluster filter to apply. Defaults to "current"
.
Resolves a custom program error from a transaction error.
The resolved program error, or null
if the error cannot be resolved.
The raw error to resolve containing the program logs.
The transaction that caused the error.
Generated using TypeDoc
Defines the interface for a program repository. It allows us to register and retrieve programs when needed.