Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
379 changes: 376 additions & 3 deletions internal/serve/graphql/generated/generated.go

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions internal/serve/graphql/generated/models_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions internal/serve/graphql/resolvers/errors.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// GraphQL resolver error message constants
package resolvers

// Error message constants
const (
// RegisterAccount errors
ErrMsgAccountAlreadyExists = "Account is already registered"
ErrMsgInvalidAddress = "Invalid address: must be a valid Stellar public key or contract address"
ErrMsgAccountRegistrationFailed = "Failed to register account: %s"

// DeregisterAccount errors
ErrMsgAccountNotFound = "Account not found"
ErrMsgAccountDeregistrationFailed = "Failed to deregister account: %s"
ErrMsgAccountDeregisteredSuccess = "Account deregistered successfully"

// BuildTransaction errors
ErrMsgInvalidOperations = "Invalid operations: %s"
ErrMsgInvalidTransactionData = "Invalid TransactionData: %s"
ErrMsgTransactionBuildFailed = "Failed to build transaction"
ErrMsgChannelAccountUnavailable = "unable to assign a channel account"

// CreateFeeBumpTransaction errors
ErrMsgCouldNotParseTransactionEnvelope = "Could not parse transaction envelope."
ErrMsgCannotWrapFeeBumpTransaction = "Cannot wrap a fee-bump transaction into another fee-bump transaction"
ErrMsgInvalidTransaction = "Transaction is not a valid transaction"
ErrMsgFeeBumpCreationFailed = "Failed to create fee bump transaction: %s"
)
95 changes: 85 additions & 10 deletions internal/serve/graphql/resolvers/mutations.resolvers.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading