oneie 3.6.39 → 3.6.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/commands/deploy.md +187 -17
- package/.claude/commands/media-upload.md +186 -0
- package/.claude/hooks/.last-news-context +1 -1
- package/.claude/hooks/__pycache__/todo.cpython-312.pyc +0 -0
- package/one/README.md +1 -2
- package/one/knowledge/one-protocol-ai-agents.md +892 -0
- package/one/knowledge/one-protocol-executive-report.md +617 -0
- package/one/knowledge/one-protocol-standard.md +869 -0
- package/one/knowledge/one-protocol-whitepaper.md +756 -0
- package/one/knowledge/ontology-education-game.md +1654 -0
- package/one/knowledge/ontology-v2.md +4449 -0
- package/one/knowledge/ontology.md +1 -1
- package/one/things/contracts/Move.toml +12 -0
- package/one/things/contracts/README.md +288 -0
- package/one/things/contracts/one.move +762 -0
- package/one/things/contracts/sdk.ts +578 -0
- package/one/things/crypto/FEATURES.md +78 -0
- package/one/things/crypto/ONECORE.md +62 -0
- package/one/things/crypto/ONECOREFAQ.md +22 -0
- package/one/things/crypto/ONECOREHOW.md +46 -0
- package/one/things/crypto/ONEENTERPRISE.md +64 -0
- package/one/things/crypto/ONEENTERPRISEFAQ.md +64 -0
- package/one/things/crypto/ONEENTERPRISEHOW.md +53 -0
- package/one/things/crypto/ONEPRO.md +60 -0
- package/one/things/crypto/ONEPROFAQ.md +22 -0
- package/one/things/crypto/ONEPROHOW.md +53 -0
- package/one/things/crypto/READMEAGENCY.md +64 -0
- package/one/things/crypto/VSL.md +45 -0
- package/one/things/crypto/WebsiteCopy.md +176 -0
- package/one/things/design-system.md +832 -0
- package/one/things/pay.one.ie.md +53 -0
- package/one/things/plans/one-protocol-and-payone-usage.md +82 -0
- package/one/things/plans/plan-connect-to-api.md +146 -0
- package/one/things/plans-u.md +905 -0
- package/one/things/products/Blockchain Products.md +6278 -0
- package/one/things/scripts-clean-mac.sh +409 -0
- package/one/things/todo-release.md +654 -0
- package/one/things/todo.md +9 -642
- package/one/things/video-script-backup.md +318 -0
- package/one/things/video-script-demo.md +382 -0
- package/one/things/video-script-ontology.md +0 -1
- package/one/things/video-script.md +361 -0
- package/package.json +6 -5
- package/.claude/hooks/__pycache__/done.cpython-313.pyc +0 -0
- package/.claude/hooks/__pycache__/todo.cpython-311.pyc +0 -0
- package/llms.txt +0 -257
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
Here's what
|
|
2
|
+
it can do:
|
|
3
|
+
|
|
4
|
+
What pay.one.ie Can Do
|
|
5
|
+
|
|
6
|
+
Core Payment Processing
|
|
7
|
+
|
|
8
|
+
- Accept payments from customers across multiple blockchains (EVM, Sui, Solana, Bitcoin)
|
|
9
|
+
- Process cryptocurrency transactions and verify on-chain claims
|
|
10
|
+
- Generate payment links for products and services
|
|
11
|
+
- Multi-token payments (accept various cryptocurrencies)
|
|
12
|
+
|
|
13
|
+
Merchant Dashboard Features
|
|
14
|
+
|
|
15
|
+
Wallet Management
|
|
16
|
+
- View merchant wallets across different blockchains
|
|
17
|
+
- Import/generate new wallets
|
|
18
|
+
- Display balance with USD conversion
|
|
19
|
+
- QR codes for sharing addresses
|
|
20
|
+
- Sweep functionality for derived wallets
|
|
21
|
+
|
|
22
|
+
Token Management
|
|
23
|
+
- List deployed tokens (ERC-20, SPL, Move contracts)
|
|
24
|
+
- Display token metadata (name, symbol, supply, decimals)
|
|
25
|
+
- View token holders
|
|
26
|
+
- Burn/mint operations
|
|
27
|
+
- Token contract verification
|
|
28
|
+
|
|
29
|
+
Smart Contracts
|
|
30
|
+
- Connect and manage deployed smart contracts
|
|
31
|
+
- ABI explorer for smart contract functions
|
|
32
|
+
- Call contract functions directly
|
|
33
|
+
- Contract interaction interface
|
|
34
|
+
|
|
35
|
+
Product Management
|
|
36
|
+
- Create product catalog
|
|
37
|
+
- Set pricing for products
|
|
38
|
+
- Link products to payment processing
|
|
39
|
+
- Inventory tracking
|
|
40
|
+
- Sales analytics
|
|
41
|
+
|
|
42
|
+
Transaction History
|
|
43
|
+
- Complete payment history tracking
|
|
44
|
+
- Filter by status (pending, confirmed, failed)
|
|
45
|
+
- Filter by blockchain
|
|
46
|
+
- Search by transaction hash
|
|
47
|
+
- Export to CSV/JSON
|
|
48
|
+
|
|
49
|
+
Account Features
|
|
50
|
+
- Merchant account settings
|
|
51
|
+
- API key management
|
|
52
|
+
- Webhook configuration
|
|
53
|
+
- Team role management (owner, admin, user)
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# one-protocol & pay.one usage audit — /u area
|
|
2
|
+
|
|
3
|
+
Date: 2025-12-07
|
|
4
|
+
|
|
5
|
+
Goal
|
|
6
|
+
----
|
|
7
|
+
List everywhere in the Universal Wallet (`/u`) area and related components where the pay.one API is already in use, where the one-protocol SDK is already used, and where neither is used (local/demo-only). This helps us plan a consistent migration and determine where to prefer one-protocol vs pay.one.
|
|
8
|
+
|
|
9
|
+
Summary
|
|
10
|
+
-------
|
|
11
|
+
We scanned the `web/src/components/u` and `web/src/pages/u` code and documented the following:
|
|
12
|
+
|
|
13
|
+
- pay.one (pay.one.ie) is already used for payments, payment links, pricing conversions, and payment tracking in multiple UI places.
|
|
14
|
+
- one-protocol SDK is used for wallet operations in some places (WalletProtocol.ts + UDashboard), but many components still use local, demo-only implementations for wallets, tokens, transactions, people, and keys.
|
|
15
|
+
|
|
16
|
+
Detailed file-by-file usage
|
|
17
|
+
---------------------------
|
|
18
|
+
Legend: [PAY] = pay.one used (API/PayService), [SDK] = one-protocol SDK used, [LOCAL] = local/demo-only (localStorage or mock).
|
|
19
|
+
|
|
20
|
+
Top-level UA components (web/src/components/u)
|
|
21
|
+
- UDashboard.tsx — [SDK] Wallet generation uses `generateWallet` from `lib/WalletProtocol.ts` (one-protocol). (Also uses localStorage for display & caching.)
|
|
22
|
+
- WalletProtocol.ts — [SDK] Contains `generateWallet`, `deriveWallet`, and helpers using `one-protocol` imports (wallet_generate, wallet_derive, AddressSchema). (SDK present and used here.)
|
|
23
|
+
- PayService.ts — [PAY] Centralized pay.one wrappers. Provides payment link helpers, convertCurrency, generateWallet helper that talks to pay.one endpoints. (API integration exists here.)
|
|
24
|
+
- PaymentStatusTracker.ts — [PAY] Tracks pay.one payments and local `u_payments` storage logic.
|
|
25
|
+
- WalletCard.tsx — [PAY] Uses `PayService` helpers (getPaymentUrl, getPaymentQRUrl, openPaymentWindow) and directly opens pay.one URLs for send/swap/export.
|
|
26
|
+
- EnhancedWalletCard.tsx — [PAY + LOCAL] Uses `convertCurrency` (pay.one) for USD conversions, but saves transactions and sample operations to localStorage (`u_transactions`).
|
|
27
|
+
- WalletOnboardingCarousel.tsx — [LOCAL] reads `u_keys` from localStorage (onboarding contexts) — local-only.
|
|
28
|
+
- GenerateWalletDialog.tsx — [LOCAL / SDK through consumer] UI only; onGenerate passed by parent (UDashboard uses SDK, WalletsPage uses local implementation). So dialog is neutral but behavior depends on parent.
|
|
29
|
+
- MobileOnboarding.tsx — [SDK / LOCAL mixed] calls onGenerate which may be SDK-based in UDashboard.
|
|
30
|
+
|
|
31
|
+
Pages under web/src/components/u/pages
|
|
32
|
+
- WalletsPage.tsx — [LOCAL] Local-only generation (generateAddress/generatePrivateKey), stores in `u_wallets` and `u_keys` localStorage. No pay.one, no one-protocol SDK usage.
|
|
33
|
+
- WalletDetailPage.tsx — [LOCAL] Reads `u_wallets` and `u_transactions` from localStorage; UI only.
|
|
34
|
+
- KeysPage.tsx — [LOCAL] Local-only key storage `u_keys` and UI warnings.
|
|
35
|
+
- PeoplePage.tsx — [LOCAL] Local-only `u_profile`, `u_contacts` storage and operations (no pay.one or SDK person_* use).
|
|
36
|
+
- SendPage.tsx — [LOCAL + PAY links] Uses local prefill `u_send_prefill` etc; but can open pay.one send links (payment via pay.one). Not using one-protocol SDK.
|
|
37
|
+
- ReceivePage.tsx / ReceiveDetailPage.tsx — [PAY + LOCAL] Receive UI reads local `u_wallets` but uses pay.one links (to/qr link generation).
|
|
38
|
+
- ProductsPage.tsx — [PAY] Generates payment links via pay.one (PAY_WORKER_URL = https://pay.one.ie). Uses localStorage `u_products` as products but uses pay.one for checkout links.
|
|
39
|
+
- ProductDetailPage.tsx — [PAY + LOCAL] Builds pay.one payment links and passes wallets list to pay.one; product data stored locally in `u_products`.
|
|
40
|
+
- TokensPage.tsx — [LOCAL] Local-only token creation & storage in `u_tokens` with TODO to integrate deployment service (pay.one or others).
|
|
41
|
+
- TransactionsPage.tsx — [LOCAL] Stores `u_transactions` in localStorage; generates sample data when empty.
|
|
42
|
+
- ContractsPage.tsx — [LOCAL] contract templates and AI-powered flows; uses secure storage but contract deployment integration is not implemented (may use pay.one in future). Contains local model usage and prompts.
|
|
43
|
+
|
|
44
|
+
Other U utilities & small components
|
|
45
|
+
- ReceiveSheet.tsx — [PAY] Generates pay.one link `https://pay.one.ie/to/${address}` (PAY usage).
|
|
46
|
+
- sheets/SwapSheet.tsx, SendSheet.tsx — [LOCAL] UI for swap/trade actions; mostly mock/placeholder.
|
|
47
|
+
- Hooks (useCurrencyConversion.ts) — [PAY] may call PayService or use convert functions; confirm if used elsewhere.
|
|
48
|
+
|
|
49
|
+
Server / API endpoints referencing pay.one
|
|
50
|
+
- web/src/pages/api/v1/resource.ts — [PAY] Example resource using pay.one endpoints (demo / discovery text present).
|
|
51
|
+
- web/src/pages/api/v1/agent/sync.ts — [PAY] Example agent sync payload referencing pay.one tutor/stream, create_url `https://pay.one.ie/pay/create`.
|
|
52
|
+
|
|
53
|
+
Where the one-protocol SDK is used outside /u
|
|
54
|
+
- `web/src/AGENTS.md`, `web/CLAUDE.md`, and various docs reference `one-protocol` SDK usage for schemas, registry, etc.
|
|
55
|
+
- The repo includes `apps/one-core/packages/one-protocol` which is the SDK source and is present in package.json dependencies for web.
|
|
56
|
+
|
|
57
|
+
High-level observations
|
|
58
|
+
-----------------------
|
|
59
|
+
- Payments (checkout flow, payment links, price conversion, tracking) already use pay.one across multiple components (PayService, PaymentsTracker, Product pages, wallet quick-actions). Good coverage.
|
|
60
|
+
- Wallet generation is inconsistent:
|
|
61
|
+
- UDashboard and some onboarding flows use the `one-protocol` SDK via `WalletProtocol.generateWallet` (SDK-based) — ideal.
|
|
62
|
+
- WalletsPage and some lower-level utilities still use ad-hoc local mock generation (generateAddress/generatePrivateKey) — we should consolidate to `one-protocol` SDK across all wallet creation paths.
|
|
63
|
+
- Identity (people/profile) is local-only but pay.one provides person_* and identity endpoints. We should decide whether to mirror contacts to pay.one (opt-in) and/or use one-protocol `person_*` schemas for validation.
|
|
64
|
+
- Tokens, contracts, and transactions are largely local/demo-only. pay.one and one-protocol have tools to deploy tokens, manage contracts, token history and on-chain operations — we should plan to integrate these progressively.
|
|
65
|
+
|
|
66
|
+
Recommended next steps
|
|
67
|
+
----------------------
|
|
68
|
+
1. Standardize wallet generation:
|
|
69
|
+
- Replace WalletsPage local generation with `WalletProtocol.generateWallet` or call `PayService.generateWallet` if cloud-backed generation is desired. Prefer `one-protocol` SDK for local, deterministic generation unless user opts for server-backed wallets.
|
|
70
|
+
2. Keep keys local by default; add an *explicit, secure* cloud backup option using pay.one (opt-in + E2E encryption if we accept mnemonics).
|
|
71
|
+
3. Connect token deployment & management (TokensPage) to pay.one token deployment APIs or one-protocol tooling instead of local mock data.
|
|
72
|
+
4. Migrate transactions & payments to use PaymentStatusTracker -> pay.one webhooks or API polling (remove sample tx generation where appropriate).
|
|
73
|
+
5. Consider syncing PeoplePage contacts to pay.one `person_*` endpoints as opt-in backup, using one-protocol schema for validation.
|
|
74
|
+
6. Update UDashboard & WalletsPage to share common Wallet API (adapter to choose one-protocol local vs pay.one cloud) for a consistent UX.
|
|
75
|
+
|
|
76
|
+
If you'd like I can now:
|
|
77
|
+
- Create a one-line PR scaffolding `web/src/lib/PayService.ts` (if it doesn't already exist) or normalize `WalletProtocol` usage across wallet pages.
|
|
78
|
+
- Implement replacing WalletsPage's local generation with a call to `WalletProtocol.generateWallet` and add migration UI to preserve existing local wallets.
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
File generated by automated scan on 2025-12-07.
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
# Plan: Connect /u features to pay.one.ie API
|
|
2
|
+
|
|
3
|
+
Status: Draft
|
|
4
|
+
|
|
5
|
+
Summary
|
|
6
|
+
-------
|
|
7
|
+
We found that many pages under `web/src/pages/u/*` (and their components) store demo or local data in localStorage (keys like `u_wallets`, `u_tokens`, `u_products`, `u_transactions`, `u_contacts`, `u_profile`, `u_keys`, `u_payments`, etc.). The pay.one.ie API exposes a wide set of protocols for payments, wallets, identity, prices, and access control which are a natural fit to replace local/demo data and power these features.
|
|
8
|
+
|
|
9
|
+
Goal
|
|
10
|
+
----
|
|
11
|
+
Replace local/demo flows in `/u` with production API calls to `https://pay.one.ie` (or `https://api.pay.one.ie`) via a small, testable PayService + client wrappers and a migration strategy so existing local storage is respected until users opt-in.
|
|
12
|
+
|
|
13
|
+
Findings (quick)
|
|
14
|
+
----------------
|
|
15
|
+
- Pages & components using local/demo storage (non-exhaustive):
|
|
16
|
+
- UDashboard: `u_wallets`, `u_tokens`, `u_products`, `u_transactions`, `u_keys`
|
|
17
|
+
- PeoplePage: `u_profile`, `u_contacts`, `u_payment_requests`
|
|
18
|
+
- WalletsPage / WalletDetailPage: `u_wallets`, `u_keys`, `u_transactions`
|
|
19
|
+
- TokensPage: `u_tokens`
|
|
20
|
+
- ProductsPage / ProductDetailPage: `u_products`
|
|
21
|
+
- TransactionsPage: `u_transactions`
|
|
22
|
+
- ContractsPage: `u_contracts`
|
|
23
|
+
- Send/Receive: `u_recent_recipients`, `u_send_prefill`
|
|
24
|
+
- Payment tracker libraries: `u_payments` (PaymentStatusTracker)
|
|
25
|
+
|
|
26
|
+
- pay.one.ie capabilities discovered (via `GET https://pay.one.ie` and other endpoints):
|
|
27
|
+
- Wallets: `wallet_generate`, `wallet_derive`, `wallet_recover`, `faucet_request`, `faucet_list`
|
|
28
|
+
- Payments: `x402_quote`, `x402_claim`, `payment_link_create`, `payment_link_quote`, `payment_link_claim`
|
|
29
|
+
- Identity & profile: `person_create`, `person_get`, `merchant_config`, `thing_create`, `thing_list`
|
|
30
|
+
- Prices: `prices_get`, `prices_convert`
|
|
31
|
+
- Access control / gating: `gatekeeper_check`, `gatekeeper_tier`, `access_sign`, `access_verify`
|
|
32
|
+
- Subscriptions & credits: `subscription_*`, `credits_*`
|
|
33
|
+
|
|
34
|
+
Mapping: local/demo features -> pay.one protocols
|
|
35
|
+
-------------------------------------------------
|
|
36
|
+
- Wallets & keys
|
|
37
|
+
- Local: `u_wallets`, `u_keys`
|
|
38
|
+
- API: `wallet_derive` (deterministic agent wallets), `wallet_generate` (server-side generation), `wallet_recover`, `faucet_request` / `faucet_list` (testnet funding)
|
|
39
|
+
- UI change: provide option to "Store locally" or "Back up to pay.one" for cloud-backed storage (opt-in)
|
|
40
|
+
|
|
41
|
+
- Tokens & balances
|
|
42
|
+
- Local: `u_tokens`, token lists in UDashboard
|
|
43
|
+
- API: `token_history`, `prices_get`, `prices_convert` to show USD values and histories
|
|
44
|
+
|
|
45
|
+
- Products and payments
|
|
46
|
+
- Local: `u_products` used as sample shop items and local product detail
|
|
47
|
+
- API: `payment_link_create` to generate pay.one.ie payment links and Cloudflare Worker endpoints (create_url `/pay/create`), `x402_quote` for agent purchases
|
|
48
|
+
- Payment flows: product -> create payment link via PayService -> redirect to `https://pay.one.ie/pay/create` or `pay.one.ie/qr` -> listen for webhook/claim
|
|
49
|
+
|
|
50
|
+
- Transactions and payments tracking
|
|
51
|
+
- Local: `u_transactions`, `u_payments`
|
|
52
|
+
- API: use pay.one webhook & `payment_link_claim` / `x402_claim` to confirm payments; poll `https://api.pay.one.ie` (or subscribe to webhooks) and update local UI. PaymentStatusTracker should call the pay.one endpoints to reflect real status.
|
|
53
|
+
|
|
54
|
+
- People & identity
|
|
55
|
+
- Local: `u_profile`, `u_contacts`
|
|
56
|
+
- API: `person_create`, `person_get`, `person_update` to store contacts on pay.one (optionally), or mirror to local if user wants local-only
|
|
57
|
+
|
|
58
|
+
- Contracts / deployed artifacts
|
|
59
|
+
- Local: `u_contracts` used in demo
|
|
60
|
+
- API: use pay.one endpoints / agent indexing to record contract metadata, or call chain-specific tooling via pay.one's RPC and wallet services (e.g., merchant_config)
|
|
61
|
+
|
|
62
|
+
Technical Approach (high-level)
|
|
63
|
+
-------------------------------
|
|
64
|
+
1. Introduce a lightweight `PayService` client in `web/src/lib` or `web/src/components/u/lib/PayService.ts` (there is already a stub) that encapsulates:
|
|
65
|
+
- base URL(s): `https://pay.one.ie` and `https://api.pay.one.ie`
|
|
66
|
+
- auth handling (API keys / JWT) — local dev uses environment variables or a dev test API token
|
|
67
|
+
- helpers: protocolRequest(protocolName, data) → POST { protocol: "name", data }
|
|
68
|
+
- dedicated helpers: createPaymentLink, quoteX402, claimX402, walletGenerate, walletDerive, pricesGet, personCreate, etc.
|
|
69
|
+
2. Wrap existing UI to call PayService instead of localStorage for live flows; keep a local toggle or progressive migration so previously stored local records remain available.
|
|
70
|
+
3. Data modelling: map pay.one responses to our UI interfaces (Wallet, Token, Product, Transaction, Person). Add thin adapters in `components/u/adapters/*`.
|
|
71
|
+
4. Sync strategy:
|
|
72
|
+
- Read-first: if the user has local data, show it and surface a "Sync to pay.one (backup)" action
|
|
73
|
+
- For newly created data, prefer pay.one API and mirror results locally for offline UX and speed
|
|
74
|
+
- Where user privacy matters, provide explicit opt-in to upload personal keys/profile
|
|
75
|
+
5. Offline & fallback:
|
|
76
|
+
- Keep localStorage as an offline cache.
|
|
77
|
+
- Use optimistic updates in the UI and verify via pay.one responses or webhooks.
|
|
78
|
+
6. Security & keys
|
|
79
|
+
- Never send raw mnemonics or private keys to pay.one unless the user explicitly opts in and the feature is designed for cloud backup (with end-to-end encryption).
|
|
80
|
+
- For agent wallets and hosted wallets, use `wallet_derive` to produce deterministic agent wallets server-side.
|
|
81
|
+
7. Rate limiting & caching
|
|
82
|
+
- Cache price responses for 60–300s, cache small identity lookups, and use exponential back-off.
|
|
83
|
+
8. Backward-compatible API
|
|
84
|
+
- Provide a short-term polyfill layer so components can use either localStorage or PayService with minimal changes.
|
|
85
|
+
|
|
86
|
+
Implementation Plan & Milestones
|
|
87
|
+
--------------------------------
|
|
88
|
+
Phase 0 — Design & Discovery (0.5 day)
|
|
89
|
+
- Inventory all localStorage keys & flows (we've started this)
|
|
90
|
+
- Verify pay.one API contracts & auth (API tokens) for staging
|
|
91
|
+
- Create `one/things/plans/plan-connect-to-api` (this file)
|
|
92
|
+
|
|
93
|
+
Phase 1 — PayService & Adapters (1–2 days)
|
|
94
|
+
- Create `web/src/lib/PayService.ts` wrapping endpoints & discovery
|
|
95
|
+
- Add adapters for Wallet, Token, Product, Transaction, Person
|
|
96
|
+
- Add unit tests & mock responses
|
|
97
|
+
|
|
98
|
+
Phase 2 — Integrate feature-by-feature (2–4 days)
|
|
99
|
+
- Wallet flows: enable wallet_generate / wallet_derive / faucet_list
|
|
100
|
+
- Products / Payments: createPaymentLink — update ProductsPage/ProductDetailPage
|
|
101
|
+
- Prices: replace local price manipulation with prices_get
|
|
102
|
+
- Transactions & tracking: hook PaymentStatusTracker to pay.one webhooks or API polling
|
|
103
|
+
- People: add optional cloud-backed person_create / person_get
|
|
104
|
+
|
|
105
|
+
Phase 3 — Migration & QA (1–2 days)
|
|
106
|
+
- Provide in-app migration UI (Backup to pay.one / Restore from pay.one)
|
|
107
|
+
- End-to-end tests (payments and wallet flows)
|
|
108
|
+
- Observability and logging
|
|
109
|
+
|
|
110
|
+
Phase 4 — Rollout
|
|
111
|
+
- Feature flag release, beta test, full rollout. Provide admin dashboards & metrics.
|
|
112
|
+
|
|
113
|
+
Testing & QA
|
|
114
|
+
------------
|
|
115
|
+
- Unit tests for PayService request/response adapters
|
|
116
|
+
- Integration tests (mock pay.one responses via VCR or nock)
|
|
117
|
+
- End-to-end smoke test for full payment link flow (create link → simulate webhook → confirm claim)
|
|
118
|
+
|
|
119
|
+
Next actionable tasks (short)
|
|
120
|
+
----------------------------
|
|
121
|
+
1. Create `web/src/lib/PayService.ts` with a `protocolRequest(protocol, data)` wrapper and small helpers.
|
|
122
|
+
2. Replace `ProductsPage.tsx` payment-link generation to use PayService.createPaymentLink (TEST-mode first) and verify `ProductDetailPage` logic.
|
|
123
|
+
3. Add `Prices` adapter and update `EnhancedWalletCard` + `UDashboard` to call `prices_get` for USD values.
|
|
124
|
+
4. Implement `PaymentStatusTracker` integration to query pay.one and update `u_payments`.
|
|
125
|
+
5. Add a migration UI for `UDashboard` to allow exporting local data to pay.one (opt-in).
|
|
126
|
+
|
|
127
|
+
References & Useful Endpoints
|
|
128
|
+
----------------------------
|
|
129
|
+
- Discovery: POST https://pay.one.ie { protocol: "system_discovery" } or GET https://pay.one.ie (returns protocol list / info)
|
|
130
|
+
- Example agent endpoint: https://api.pay.one.ie/api/v1/agent/sync
|
|
131
|
+
- Payment pages: https://pay.one.ie/pay/create, https://pay.one.ie/qr, https://pay.one.ie/to/{address}
|
|
132
|
+
- OpenAPI / plugin manifest (if available): https://pay.one.ie/openapi.yaml, https://pay.one.ie/.well-known/ai-plugin.json
|
|
133
|
+
|
|
134
|
+
Security notes
|
|
135
|
+
--------------
|
|
136
|
+
- Ensure E2E encryption/user consent for any key uploads.
|
|
137
|
+
- Keep the default UX local-first — cloud backup only via clear opt-in.
|
|
138
|
+
|
|
139
|
+
Ownership & PR plan
|
|
140
|
+
-------------------
|
|
141
|
+
- Implement PayService + tests (owner: frontend engineer)
|
|
142
|
+
- Product/Payments integration (owner: frontend + backend for webhook support)
|
|
143
|
+
- QA & rollout (owner: product engineering)
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
-- End of draft plan --
|