-
Notifications
You must be signed in to change notification settings - Fork 7
Remove tx/create-sponsored-account
endpoint
#267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: graphql-main
Are you sure you want to change the base?
Conversation
f2a025a
to
a413f8f
Compare
a413f8f
to
830dd18
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Please remove the reference from openapi yaml before merging.
|
||
return txe, s.ChannelAccountSignatureClient.NetworkPassphrase(), nil | ||
} | ||
|
||
// WrapTransaction wraps a stellar transaction with a fee bump transaction with the configured distribution account as the fee account. | ||
func (s *accountSponsorshipService) WrapTransaction(ctx context.Context, tx *txnbuild.Transaction) (string, string, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should move WrapTransaction
from here since its only used for creating fee-bump txns. Will leave it up to you to do it in this PR or the create-fee-bump
one, and then completely delete this file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good callout! I agree that it would be ideal to move WrapTransaction
, and remove account_sponsorship_service
.
I was planning on moving it into it's own service (i.e. feeBumpService
), with create-fee-bump
but doing it in this PR will be cleaner/easier to review as create-fee-bump
will also include the migration logic.
@@ -8,63 +8,16 @@ import ( | |||
"github.com/stellar/go/txnbuild" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should also remove the endpoint from the openapi/main.yaml
file
830dd18
to
883d48e
Compare
What
This PR removes:
- Removes
SponsorAccountCreation
method fromAccountHandler
- Removes route definition
- Removes
SponsorAccountCreationRequest
struct- Removes
SponsorAccountCreationTransaction
method from the interface and implementation- Removes unused constants:
ErrAccountAlreadyExists
,ErrSponsorshipLimitExceeded
,CreateAccountTxnTimeBounds
,CreateAccountTxnTimeBoundsSafetyMargin
- Removes
TestAccountHandlerSponsorAccountCreation
from account_handler_test.go- Removes
TestAccountSponsorshipServiceSponsorAccountCreationTransaction
from account_sponsorship_service_test.go- Updates remaining test to use simplified service options
- Removes method from
AccountSponsorshipServiceMock
- Clean up imports
- Removes unused variables and struct fields
Why
[TODO: Why this change is being made. Include any context required to understand the why.]
Known limitations
N/A
Issue that this PR addresses
#233
Checklist
PR Structure
all
if the changes are broad or impact many packages.Thoroughness
Release