Skip to content

Commit 685798c

Browse files
authored
Migrate /create-fee-bump endpoint from REST to GraphQL (#294)
1 parent 073467a commit 685798c

File tree

17 files changed

+1138
-603
lines changed

17 files changed

+1138
-603
lines changed

internal/serve/graphql/generated/generated.go

Lines changed: 376 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/serve/graphql/generated/models_gen.go

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// GraphQL resolver error message constants
2+
package resolvers
3+
4+
// Error message constants
5+
const (
6+
// RegisterAccount errors
7+
ErrMsgAccountAlreadyExists = "Account is already registered"
8+
ErrMsgInvalidAddress = "Invalid address: must be a valid Stellar public key or contract address"
9+
ErrMsgAccountRegistrationFailed = "Failed to register account: %s"
10+
11+
// DeregisterAccount errors
12+
ErrMsgAccountNotFound = "Account not found"
13+
ErrMsgAccountDeregistrationFailed = "Failed to deregister account: %s"
14+
ErrMsgAccountDeregisteredSuccess = "Account deregistered successfully"
15+
16+
// BuildTransaction errors
17+
ErrMsgInvalidOperations = "Invalid operations: %s"
18+
ErrMsgInvalidTransactionData = "Invalid TransactionData: %s"
19+
ErrMsgTransactionBuildFailed = "Failed to build transaction"
20+
ErrMsgChannelAccountUnavailable = "unable to assign a channel account"
21+
22+
// CreateFeeBumpTransaction errors
23+
ErrMsgCouldNotParseTransactionEnvelope = "Could not parse transaction envelope."
24+
ErrMsgCannotWrapFeeBumpTransaction = "Cannot wrap a fee-bump transaction into another fee-bump transaction"
25+
ErrMsgInvalidTransaction = "Transaction is not a valid transaction"
26+
ErrMsgFeeBumpCreationFailed = "Failed to create fee bump transaction: %s"
27+
)

internal/serve/graphql/resolvers/mutations.resolvers.go

Lines changed: 85 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)