@1shotapi/ows-types
v0.5.1
Published
Shared OWS TypeScript types and error classes for host, wallet, and signer SDKs
Readme
@1shotapi/ows-types
Shared TypeScript types and error classes for the Open Wallet Standard (OWS) SDKs.
Contents
- Host ↔ Branding RPC — Postmate callback envelopes, JSON-RPC error codes, serde helpers
- Host ↔ Branding analytics —
OWS_ANALYTICS_EVENT,IOWSAnalyticsEvent/OWSAnalyticsEvent(required base; branding extends the class; extras passthrough on the wire) - Branding ↔ Signing RPC — Signing Layer wire protocol types
- Errors —
OwsRpcError/OwsSignerErrorhierarchies used by@1shotapi/ows-provider,@1shotapi/ows-wallet-utils, and@1shotapi/ows-signer-utils
Usage
import {
OwsRpcError,
OwsUserRejectedError,
OWS_RPC_CALLBACK_EVENT,
type RpcRequestEnvelope,
} from "@1shotapi/ows-types";