Skip to content

docs(bindings): add usage example to attestation-registry README - #292

Merged
ink-mami merged 1 commit into
Lafiya-xyz:mainfrom
lekescrew22:docs/attestation-registry-usage-example
Sep 3, 2026
Merged

docs(bindings): add usage example to attestation-registry README#292
ink-mami merged 1 commit into
Lafiya-xyz:mainfrom
lekescrew22:docs/attestation-registry-usage-example

Conversation

@lekescrew22

@lekescrew22 lekescrew22 commented Aug 27, 2026

Copy link
Copy Markdown

Closes #224
Closes #225
Closes #226
Closes #227

Summary

Adds a Usage section to bindings/attestation-registry/README.md with a short, clearly-illustrative TypeScript example. Downstream consumers wanting to call attest or get_attestation from TypeScript previously had no starting point beyond reading the generated source directly.

Changes

  • Appended a # Usage section to bindings/attestation-registry/README.md
  • Sample demonstrates the full flow:
    1. Constructing the Contract from the exported networks constant
    2. Calling attest() with { attester, record_hash } and submitting via signAndSend()
    3. Reading the result back with get_attestation()
  • Example is explicitly marked as illustrative (placeholder RPC URL, addresses, and record hash)

Why

The generated binding README walked through editor-based discovery (contract.|) but gave no concrete callable example. This mirrors the API surface in src/index.tsattester: string, record_hash: Buffer, and results surfaced on the returned AssembledTransaction — so consumers can copy a working starting point.

Testing

  • Documentation-only change; no code or build artifacts modified.
  • Verified the snippet against the generated client signatures in bindings/attestation-registry/src/index.ts.

Downstream consumers had no starting point for calling attest or
get_attestation beyond reading the generated source. Add an
illustrative TypeScript snippet showing the full flow: constructing the
Contract, submitting an attestation, then reading it back.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
@drips-wave

drips-wave Bot commented Aug 27, 2026

Copy link
Copy Markdown

@lekescrew22 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@ink-mami
ink-mami merged commit ff28cb5 into Lafiya-xyz:main Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants