Bootstrap copied BFF and local accounts with public Sendico contracts (#34)
This commit is contained in:
1 parent
67dc5b5b1e
commit
7062672a87
556 files changed
+42291
-777
No files matched your search
@@ -0,0 +1,21 @@
|
||||
package merrors
|
||||
|
||||
import "strings"
|
||||
|
||||
const (
|
||||
ReasonChainExecutionSigningUnavailable = "chain_execution.signing_unavailable"
|
||||
ReasonChainExecutionUnsupportedCapability = "chain_execution.unsupported_capability"
|
||||
ReasonChainExecutionInsufficientBalance = "chain_execution.insufficient_balance"
|
||||
ReasonChainExecutionInsufficientNativeResources = "chain_execution.insufficient_native_resources"
|
||||
ReasonChainExecutionDestinationIneligible = "chain_execution.destination_ineligible"
|
||||
)
|
||||
|
||||
// ChainExecutionPrecondition creates a typed, reason-bearing permanent
|
||||
// preparation failure. Callers can classify it with both errors.Is and Reason.
|
||||
func ChainExecutionPrecondition(reason, message string) error {
|
||||
return classifiedError{
|
||||
base: ErrFailedPrecondition,
|
||||
msg: strings.TrimSpace(message),
|
||||
reason: strings.TrimSpace(reason),
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user