pub enum CompositionError {
Show 21 variants
NoContract,
NoAssignmentType,
NoAssignmentState,
UnknownContract,
InsufficientState,
InvoiceExpired,
InvalidSchema,
InvoiceBeneficiaryWrongChainNet(ChainNet, ChainNet),
Unsupported,
Construction(ConstructionError),
Contract(ContractError),
Embed(EmbedError),
NoExtraOrChange(AssignmentType),
NoOutputForTapretCommitment,
NoBeneficiaryOutput,
BeneficiaryVout,
TooManyExtras,
Builder(BuilderError),
Stock(String),
UnsupportedCloseMethod(String),
Unexpected(String),
}Variants§
NoContract
invoice doesn’t specify a contract.
NoAssignmentType
invoice doesn’t provide information about the assignment type and it’s impossible to derive which assignment type should be used from the schema.
NoAssignmentState
invoice doesn’t provide information about the assignment state
UnknownContract
invoice specifies an unknown contract.
InsufficientState
state provided via PSBT inputs is not sufficient to cover invoice state requirements.
InvoiceExpired
the invoice has expired.
InvalidSchema
invoice specifies a schema which is not valid for the specified contract.
InvoiceBeneficiaryWrongChainNet(ChainNet, ChainNet)
invoice requesting chain-network pair {0} but contract commits to a different one ({1})
Unsupported
non-fungible state is not yet supported by the invoices.
Construction(ConstructionError)
Contract(ContractError)
Embed(EmbedError)
NoExtraOrChange(AssignmentType)
no outputs available to store state of type {0}
NoOutputForTapretCommitment
cannot find an output where to put the tapret commitment.
NoBeneficiaryOutput
the provided PSBT doesn’t pay any sats to the RGB beneficiary address.
BeneficiaryVout
beneficiary output number is given when secret seal is used.
TooManyExtras
the operation produces too many extra state transitions which can’t fit the container requirements.
Builder(BuilderError)
Stock(String)
UnsupportedCloseMethod(String)
unsupported close method: {0}
Unexpected(String)
unexpected error: {0}