dotnet-stellar-sdk icon indicating copy to clipboard operation
dotnet-stellar-sdk copied to clipboard

Enhance RevokeSponsorshipOperation.Builder

Open duckmatt opened this issue 4 years ago • 0 comments

Is your feature request related to a problem? Please describe.

At the moment the revoke sponsorship operations are quite difficult to use, for example RevokeSponsorshipOperation.Builder only takes an xdr object (RevokeSponsorshipOp)

Describe the solution you'd like

Have an operation class for each of the different revoke sponsorship types:

image

This is the approach the Java sdk takes, for example they have the classes:

  • RevokeAccountSponsorshipOperation
  • RevokeClaimableBalanceSponsorshipOperation
  • RevokeDataSponsorshipOperation
  • RevokeOfferSponsorshipOperation
  • RevokeSignerSponsorshipOperation
  • RevokeTrustlineSponsorshipOperation

Describe alternatives you've considered

Enhance the existing builder to support the various attributes of a revoke sponsorship rather than take an xdr object

duckmatt avatar Jan 08 '21 00:01 duckmatt