Steer Protocol
Learn

First Registered Issuer Demo

Walk a testnet issuer flow from attestation material to a signed swap payload.

This tutorial is for the first time you want to see the registered issuer path end to end. It uses the same local command surface operators use later, but the goal here is learning the shape: request issuer material, build hook data, and submit a small swap against the deployed Sepolia manifest.

What You Will Prove

By the end, you should have three artifacts:

  • a live runtime manifest loaded from deployments/manifests/11155111-registered-issuer-m1-staging-active.json.
  • a registered issuer payload written by script/testing/build-registered-issuer-payload.mjs.
  • a live swap result written by script/testing/run-registered-issuer-live-swap.mjs.

Preconditions

Install dependencies first:

make install

Then validate the local Sepolia runtime without printing secrets:

make env-check

The command reads the manifest selected by MANIFEST, defaulting to the registered issuer Sepolia manifest.

Request Issuer Material

For M1 testnet material, request the attestation and permit package:

make m1-request AMOUNT=1000000 OUT=.runtime/m1-request.json

If you want the tutorial to submit the broker deposit as well, use:

make m1-deposit AMOUNT=1000000 OUT=.runtime/m1-deposit.json

Build Signed Hook Data

Build the payload the swap path will use:

make registered-issuer-payload AMOUNT=1000000 OUT=.runtime/registered-issuer-payload.json

The script reads the manifest, resolves the deployed registered issuer contracts, and signs the payload through the same SDK path app integrations use.

Submit A Small Swap

Run a deliberately small Sepolia swap:

make live-swap AMOUNT=1000000 OUT=.runtime/live-swap-result.json

Verify

Check the result file, the transaction hash, and the market address against the manifest. A successful tutorial proves local credentials, manifest wiring, SDK payload construction, and the deployed controller path all agree.

Source Files

  • Makefile
  • script/testing/request-usdm1-test-tokens.mjs
  • script/testing/build-registered-issuer-payload.mjs
  • script/testing/run-registered-issuer-live-swap.mjs
  • deployments/manifests/11155111-registered-issuer-m1-staging-active.json

On this page