feat: add Algorand and Voi as native payment methods#402
Open
chopmob-cloud wants to merge 1 commit intotempoxyz:mainfrom
Open
feat: add Algorand and Voi as native payment methods#402chopmob-cloud wants to merge 1 commit intotempoxyz:mainfrom
chopmob-cloud wants to merge 1 commit intotempoxyz:mainfrom
Conversation
Adds ALGORAND_PAYMENT and VOI_PAYMENT as first-class payment method
constants, and registers AlgoVoi's MCP gateway as a live reference
service using native ALGO (ASA ID 0, 6 decimals = microALGO).
Changes to schemas/services.ts:
- Add ALGO_NATIVE = "0" and VOI_NATIVE = "0" constants
(native ALGO / VOI — ASA ID 0, 6 decimal places)
- Add ALGORAND_PAYMENT: PaymentDefaults { method: "algorand", currency: "0", decimals: 6 }
- Add VOI_PAYMENT: PaymentDefaults { method: "voi", currency: "0", decimals: 6 }
- Add "algovoi" service entry — Algorand/Voi blockchain gateway + MCP tools,
4 endpoints (account, asset, transactions, MCP tool calls), 1000 microALGO base
Regenerated discovery.json (55 services, 627 endpoints).
Why native token:
Algorand and Voi use native coins (ALGO/VOI) as primary micropayment
currency. Native = ASA ID 0, 6 decimals. A stablecoin variant (USDCa
ASA 31566704) can follow once the base method identifiers are merged.
Reference client implementation:
AlgoVoi Chrome Extension (open-source AVM wallet) accepts method:
"algorand" and method: "voi" in HTTP 402 challenge responses, builds
and signs AVM transactions in-browser, and waits for on-chain
confirmation before returning the payment proof header.
https://github.com/chopmob-cloud/AlgoVoi
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
@chopmob-cloud is attempting to deploy a commit to the Tempo Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
ALGORAND_PAYMENTandVOI_PAYMENTas native payment method constants, alongside a reference service entry for the Algorand/Voi blockchain gateway.New constants in
schemas/services.ts:ALGO_NATIVE = "0"— native ALGO, ASA ID 0, 6 decimals (microALGO)VOI_NATIVE = "0"— native VOI, ASA ID 0, 6 decimals (microVOI)ALGORAND_PAYMENT: PaymentDefaults—{ method: "algorand", currency: "0", decimals: 6 }VOI_PAYMENT: PaymentDefaults—{ method: "voi", currency: "0", decimals: 6 }New service entry:
algovoi— Algorand/Voi blockchain MCP gateway, 4 endpoints, priced in microALGO.discovery.jsonregenerated (55 services, 627 endpoints). All tests pass.