Skip to content

@stellarforge-protocol/sdk 0.3.0

Latest

Choose a tag to compare

@promisszn promisszn released this 14 Sep 20:42
a9835e4

What's new

  • Operator methods (#49). RwaAssetClient gains setIssuer, setPaused, updateMetadata and setCompliance, plus admin, complianceContract and minComplianceLevel reads. ComplianceClient gains setKyc, revokeKyc, getKyc and admin. Each write has a build*Tx form for a wallet and a submitting form.
  • Sponsored writes (#50). One account can source and pay for a write that another address authorizes, so an issuer can cover its holders' fees. Build with a buildSponsored*Tx method, sign the authorization entries with authorizeEntries (possibly on another machine), then submit with submitSponsoredTx. Signed entries are checked before submission, and their expiry must fall between 40 and 17,280 ledgers ahead.
  • buildTransferAdminTx on every client makes handing over an admin role possible from the SDK. The contract requires both the current and the incoming admin to authorize.

Worth knowing

An account that authorizes a sponsored write must already exist on the network, even though it pays no fee. So holder accounts still need creating, for example sponsored by the issuer; only the ongoing fees can be covered.

Upgrading from 0.2.0

No changes are needed. Nothing was removed or changed incompatibly.

The read and write smoke tests pass on testnet against this release, including every operator method, a sponsored transfer and a sponsored admin handover (#52). The full list is in CHANGELOG.md.