Problem
An integrating gateway currently has to hand-roll contract invocation from the
raw interface. That is friction at exactly the point where adoption is decided,
and every integrator will build a slightly different, slightly wrong version of
the same code.
What to do
- Generate bindings with
stellar contract bindings typescript as part of the
release process, so they cannot drift from the deployed interface.
- Publish to npm under an org scope, versioned in step with contract releases.
- Layer a thin ergonomic wrapper over the generated output: typed errors rather
than raw codes, and network presets carrying the deployed addresses.
- Include a runnable example that attests and reads back, in under twenty lines.
- Document the compatibility matrix: which SDK version works with which
deployed contract version.
Acceptance criteria
Notes
The frontend and backend should consume this package too. If it is good enough
for our own code it is probably good enough for an integrator, and dogfooding
is what keeps it honest.
Problem
An integrating gateway currently has to hand-roll contract invocation from the
raw interface. That is friction at exactly the point where adoption is decided,
and every integrator will build a slightly different, slightly wrong version of
the same code.
What to do
stellar contract bindings typescriptas part of therelease process, so they cannot drift from the deployed interface.
than raw codes, and network presets carrying the deployed addresses.
deployed contract version.
Acceptance criteria
Notes
The frontend and backend should consume this package too. If it is good enough
for our own code it is probably good enough for an integrator, and dogfooding
is what keeps it honest.