@qntx/wallet-engine 0.7.0 → 0.8.1

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.
@@ -1 +1,183 @@
1
- export { a as BITCOIN_NETWORKS, l as ESPLORA_ROUTES, C as EVM_RPC_METHODS, _ as GATEWAY_ERRORS, v as INSTALL_ID_HEADER, o as NETWORKS, y as PROVIDERS_HEADER, w as RPC_BATCH_MAX, s as SOLANA_NETWORKS, T as SOLANA_RPC_METHODS, P as accepts, b as caip2, F as endpoint, u as esploraBasePath, d as esploraGet, f as esploraPathAllowed, p as esploraPost, E as evmRpcRequest, x as gatewayError, m as health, h as healthRequest, g as healthResponse, S as installId, D as jsonRpcId, O as jsonRpcResponse, c as networkById, t as networksPath, I as parseWith, k as rpc, A as rpcPath, j as rpcRequest, M as rpcResponse, n as servedNetworks, r as servedNetworksRequest, i as servedNetworksResponse, N as solanaRpcRequest } from "./contract-CEsgLme3.mjs";
1
+ import { i as networkById, n as NETWORKS, r as SOLANA_NETWORKS, t as BITCOIN_NETWORKS } from "./registry-CHiAn88k.mjs";
2
+ import * as z from "zod/mini";
3
+ // src/gateway/contract/endpoint.ts
4
+ /** One gateway route: its verb, versioned path template, and request/response schemas. */
5
+ function endpoint(method, path, request, response) {
6
+ return {
7
+ method,
8
+ path,
9
+ request,
10
+ response
11
+ };
12
+ }
13
+ /** `value` typed by `schema`, or `undefined` when it does not satisfy it. */
14
+ function parseWith(schema, value) {
15
+ const result = z.safeParse(schema, value);
16
+ return result.success ? result.data : void 0;
17
+ }
18
+ /** Whether `value` satisfies `schema` — lets consumers validate without importing zod. */
19
+ function accepts(schema, value) {
20
+ return z.safeParse(schema, value).success;
21
+ }
22
+ // src/gateway/contract/rpc.ts
23
+ /** One JSON-RPC call plus nothing else: batches may carry at most this many entries. */
24
+ const RPC_BATCH_MAX = 20;
25
+ /** Read-only EVM methods plus `eth_sendRawTransaction`. Anything not listed is rejected. */
26
+ const EVM_RPC_METHODS = [
27
+ "eth_blobBaseFee",
28
+ "eth_blockNumber",
29
+ "eth_call",
30
+ "eth_chainId",
31
+ "eth_createAccessList",
32
+ "eth_estimateGas",
33
+ "eth_feeHistory",
34
+ "eth_gasPrice",
35
+ "eth_getBalance",
36
+ "eth_getBlockByHash",
37
+ "eth_getBlockByNumber",
38
+ "eth_getBlockReceipts",
39
+ "eth_getBlockTransactionCountByHash",
40
+ "eth_getBlockTransactionCountByNumber",
41
+ "eth_getCode",
42
+ "eth_getProof",
43
+ "eth_getStorageAt",
44
+ "eth_getTransactionByBlockHashAndIndex",
45
+ "eth_getTransactionByBlockNumberAndIndex",
46
+ "eth_getTransactionByHash",
47
+ "eth_getTransactionCount",
48
+ "eth_getTransactionReceipt",
49
+ "eth_maxPriorityFeePerGas",
50
+ "eth_sendRawTransaction",
51
+ "net_version",
52
+ "web3_clientVersion"
53
+ ];
54
+ /** Read-only Solana methods plus `sendTransaction`. Anything not listed is rejected. */
55
+ const SOLANA_RPC_METHODS = [
56
+ "getAccountInfo",
57
+ "getBalance",
58
+ "getBlock",
59
+ "getBlockHeight",
60
+ "getBlockTime",
61
+ "getEpochInfo",
62
+ "getFeeForMessage",
63
+ "getGenesisHash",
64
+ "getLatestBlockhash",
65
+ "getMinimumBalanceForRentExemption",
66
+ "getMultipleAccounts",
67
+ "getRecentPrioritizationFees",
68
+ "getSignatureStatuses",
69
+ "getSignaturesForAddress",
70
+ "getSlot",
71
+ "getTokenAccountBalance",
72
+ "getTokenAccountsByOwner",
73
+ "getTokenSupply",
74
+ "getTransaction",
75
+ "getVersion",
76
+ "isBlockhashValid",
77
+ "sendTransaction",
78
+ "simulateTransaction"
79
+ ];
80
+ const jsonRpcId = z.union([
81
+ z.string(),
82
+ z.number(),
83
+ z.null()
84
+ ]);
85
+ const jsonRpcParams = z.optional(z.union([z.array(z.unknown()), z.record(z.string(), z.unknown())]));
86
+ const callSchema = (method) => z.object({
87
+ jsonrpc: z.literal("2.0"),
88
+ id: jsonRpcId,
89
+ method,
90
+ params: jsonRpcParams
91
+ });
92
+ const bodySchema = (call) => z.union([call, z.array(call).check(z.minLength(1), z.maxLength(20))]);
93
+ /** Method-agnostic wire shape of a call or batch (the gateway narrows by family). */
94
+ const rpcRequest = bodySchema(callSchema(z.string()));
95
+ const evmRpcRequest = bodySchema(callSchema(z.enum(EVM_RPC_METHODS)));
96
+ const solanaRpcRequest = bodySchema(callSchema(z.enum(SOLANA_RPC_METHODS)));
97
+ const successResponse = z.object({
98
+ jsonrpc: z.literal("2.0"),
99
+ id: jsonRpcId,
100
+ result: z.unknown()
101
+ });
102
+ const errorResponse = z.object({
103
+ jsonrpc: z.literal("2.0"),
104
+ id: jsonRpcId,
105
+ error: z.object({
106
+ code: z.int(),
107
+ message: z.string(),
108
+ data: z.optional(z.unknown())
109
+ })
110
+ });
111
+ const jsonRpcResponse = z.union([successResponse, errorResponse]);
112
+ const rpcResponse = z.union([jsonRpcResponse, z.array(jsonRpcResponse)]);
113
+ const rpc = endpoint("POST", "/v1/rpc/:caip2", rpcRequest, rpcResponse);
114
+ /** The JSON-RPC URL path for one network. */
115
+ const rpcPath = (caip2) => rpc.path.replace(":caip2", caip2);
116
+ // src/gateway/contract/primitives.ts
117
+ const INSTALL_ID_HEADER = "x-install-id";
118
+ const PROVIDERS_HEADER = "x-gateway-providers";
119
+ /** 128 random bits as lowercase hex — generated once per install, unrelated to wallet secrets. */
120
+ const installId = z.string().check(z.regex(/^[0-9a-f]{32}$/));
121
+ /** CAIP-2 chain id: `namespace:reference`. */
122
+ const caip2 = z.string().check(z.regex(/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/));
123
+ const GATEWAY_ERRORS = [
124
+ "invalid-request",
125
+ "unknown-network",
126
+ "not-found",
127
+ "rate-limited",
128
+ "unavailable",
129
+ "internal"
130
+ ];
131
+ const gatewayError = z.object({ error: z.enum(GATEWAY_ERRORS) });
132
+ // src/gateway/contract/health.ts
133
+ const healthRequest = z.undefined();
134
+ const healthResponse = z.object({ status: z.literal("ok") });
135
+ const health = endpoint("GET", "/v1/health", healthRequest, healthResponse);
136
+ // src/gateway/contract/esplora.ts
137
+ const HEX64 = "[0-9a-f]{64}";
138
+ /** The Esplora surface the engine uses; every other path is rejected. */
139
+ const ESPLORA_ROUTES = [
140
+ {
141
+ method: "GET",
142
+ pattern: /^\/block-height\/\d{1,10}$/
143
+ },
144
+ {
145
+ method: "GET",
146
+ pattern: /^\/fee-estimates$/
147
+ },
148
+ {
149
+ method: "GET",
150
+ pattern: new RegExp(`^/scripthash/${HEX64}/txs$`)
151
+ },
152
+ {
153
+ method: "GET",
154
+ pattern: new RegExp(`^/scripthash/${HEX64}/utxo$`)
155
+ },
156
+ {
157
+ method: "GET",
158
+ pattern: new RegExp(`^/tx/${HEX64}/hex$`)
159
+ },
160
+ {
161
+ method: "GET",
162
+ pattern: new RegExp(`^/tx/${HEX64}/status$`)
163
+ },
164
+ {
165
+ method: "POST",
166
+ pattern: /^\/tx$/
167
+ }
168
+ ];
169
+ /** `path` is the Esplora path after `/v1/esplora/:caip2`, with a leading slash and no query. */
170
+ const esploraPathAllowed = (method, path) => ESPLORA_ROUTES.some((route) => route.method === method && route.pattern.test(path));
171
+ const esploraGet = endpoint("GET", "/v1/esplora/:caip2/*", z.undefined(), z.unknown());
172
+ /** The Esplora base path for one network; allow-listed paths are appended to it. */
173
+ const esploraBasePath = (caip2) => esploraGet.path.replace(":caip2", caip2).replace(/\/\*$/, "");
174
+ const esploraPost = endpoint("POST", "/v1/esplora/:caip2/tx", z.string(), z.string());
175
+ // src/gateway/contract/served.ts
176
+ const servedNetworksRequest = z.undefined();
177
+ /** The networks the gateway actually serves, in its configured order. */
178
+ const servedNetworksResponse = z.object({ networks: z.array(caip2) });
179
+ const servedNetworks = endpoint("GET", "/v1/networks", servedNetworksRequest, servedNetworksResponse);
180
+ const networksPath = servedNetworks.path;
181
+ export { BITCOIN_NETWORKS, ESPLORA_ROUTES, EVM_RPC_METHODS, GATEWAY_ERRORS, INSTALL_ID_HEADER, NETWORKS, PROVIDERS_HEADER, RPC_BATCH_MAX, SOLANA_NETWORKS, SOLANA_RPC_METHODS, accepts, caip2, endpoint, esploraBasePath, esploraGet, esploraPathAllowed, esploraPost, evmRpcRequest, gatewayError, health, healthRequest, healthResponse, installId, jsonRpcId, jsonRpcResponse, networkById, networksPath, parseWith, rpc, rpcPath, rpcRequest, rpcResponse, servedNetworks, servedNetworksRequest, servedNetworksResponse, solanaRpcRequest };
182
+
183
+ //# sourceMappingURL=gateway-contract.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gateway-contract.mjs","names":[],"sources":["../src/gateway/contract/endpoint.ts","../src/gateway/contract/rpc.ts","../src/gateway/contract/primitives.ts","../src/gateway/contract/health.ts","../src/gateway/contract/esplora.ts","../src/gateway/contract/served.ts"],"sourcesContent":["import * as z from \"zod/mini\";\n\nexport type HttpMethod = \"GET\" | \"POST\" | \"DELETE\";\n\nexport type Endpoint<Req extends z.ZodMiniType, Res extends z.ZodMiniType> = {\n readonly method: HttpMethod;\n readonly path: string;\n readonly request: Req;\n readonly response: Res;\n};\n\n/** One gateway route: its verb, versioned path template, and request/response schemas. */\nexport function endpoint<Req extends z.ZodMiniType, Res extends z.ZodMiniType>(\n method: HttpMethod,\n path: `/v1/${string}`,\n request: Req,\n response: Res,\n): Endpoint<Req, Res> {\n return { method, path, request, response };\n}\n\n/** `value` typed by `schema`, or `undefined` when it does not satisfy it. */\nexport function parseWith<S extends z.ZodMiniType>(\n schema: S,\n value: unknown,\n): z.output<S> | undefined {\n const result = z.safeParse(schema, value);\n return result.success ? result.data : undefined;\n}\n\n/** Whether `value` satisfies `schema` — lets consumers validate without importing zod. */\nexport function accepts(schema: z.ZodMiniType, value: unknown): boolean {\n return z.safeParse(schema, value).success;\n}\n","import * as z from \"zod/mini\";\n\nimport { endpoint } from \"./endpoint.ts\";\n\n/** One JSON-RPC call plus nothing else: batches may carry at most this many entries. */\nexport const RPC_BATCH_MAX = 20;\n\n/** Read-only EVM methods plus `eth_sendRawTransaction`. Anything not listed is rejected. */\nexport const EVM_RPC_METHODS = [\n \"eth_blobBaseFee\",\n \"eth_blockNumber\",\n \"eth_call\",\n \"eth_chainId\",\n \"eth_createAccessList\",\n \"eth_estimateGas\",\n \"eth_feeHistory\",\n \"eth_gasPrice\",\n \"eth_getBalance\",\n \"eth_getBlockByHash\",\n \"eth_getBlockByNumber\",\n \"eth_getBlockReceipts\",\n \"eth_getBlockTransactionCountByHash\",\n \"eth_getBlockTransactionCountByNumber\",\n \"eth_getCode\",\n \"eth_getProof\",\n \"eth_getStorageAt\",\n \"eth_getTransactionByBlockHashAndIndex\",\n \"eth_getTransactionByBlockNumberAndIndex\",\n \"eth_getTransactionByHash\",\n \"eth_getTransactionCount\",\n \"eth_getTransactionReceipt\",\n \"eth_maxPriorityFeePerGas\",\n \"eth_sendRawTransaction\",\n \"net_version\",\n \"web3_clientVersion\",\n] as const;\n\n/** Read-only Solana methods plus `sendTransaction`. Anything not listed is rejected. */\nexport const SOLANA_RPC_METHODS = [\n \"getAccountInfo\",\n \"getBalance\",\n \"getBlock\",\n \"getBlockHeight\",\n \"getBlockTime\",\n \"getEpochInfo\",\n \"getFeeForMessage\",\n \"getGenesisHash\",\n \"getLatestBlockhash\",\n \"getMinimumBalanceForRentExemption\",\n \"getMultipleAccounts\",\n \"getRecentPrioritizationFees\",\n \"getSignatureStatuses\",\n \"getSignaturesForAddress\",\n \"getSlot\",\n \"getTokenAccountBalance\",\n \"getTokenAccountsByOwner\",\n \"getTokenSupply\",\n \"getTransaction\",\n \"getVersion\",\n \"isBlockhashValid\",\n \"sendTransaction\",\n \"simulateTransaction\",\n] as const;\n\nexport type EvmRpcMethod = (typeof EVM_RPC_METHODS)[number];\nexport type SolanaRpcMethod = (typeof SOLANA_RPC_METHODS)[number];\n\nexport const jsonRpcId = z.union([z.string(), z.number(), z.null()]);\n\nconst jsonRpcParams = z.optional(\n z.union([z.array(z.unknown()), z.record(z.string(), z.unknown())]),\n);\n\nconst callSchema = <M extends z.ZodMiniType<string>>(method: M) =>\n z.object({ jsonrpc: z.literal(\"2.0\"), id: jsonRpcId, method, params: jsonRpcParams });\n\nconst bodySchema = <C extends z.ZodMiniType>(call: C) =>\n z.union([call, z.array(call).check(z.minLength(1), z.maxLength(RPC_BATCH_MAX))]);\n\n/** Method-agnostic wire shape of a call or batch (the gateway narrows by family). */\nexport const rpcRequest = bodySchema(callSchema(z.string()));\n\nexport const evmRpcRequest = bodySchema(callSchema(z.enum(EVM_RPC_METHODS)));\nexport const solanaRpcRequest = bodySchema(callSchema(z.enum(SOLANA_RPC_METHODS)));\n\nconst successResponse = z.object({\n jsonrpc: z.literal(\"2.0\"),\n id: jsonRpcId,\n result: z.unknown(),\n});\nconst errorResponse = z.object({\n jsonrpc: z.literal(\"2.0\"),\n id: jsonRpcId,\n error: z.object({ code: z.int(), message: z.string(), data: z.optional(z.unknown()) }),\n});\n\nexport const jsonRpcResponse = z.union([successResponse, errorResponse]);\nexport const rpcResponse = z.union([jsonRpcResponse, z.array(jsonRpcResponse)]);\n\nexport const rpc = endpoint(\"POST\", \"/v1/rpc/:caip2\", rpcRequest, rpcResponse);\n\n/** The JSON-RPC URL path for one network. */\nexport const rpcPath = (caip2: string): string => rpc.path.replace(\":caip2\", caip2);\n","import * as z from \"zod/mini\";\n\nexport const INSTALL_ID_HEADER = \"x-install-id\";\nexport const PROVIDERS_HEADER = \"x-gateway-providers\";\n\n/** 128 random bits as lowercase hex — generated once per install, unrelated to wallet secrets. */\nexport const installId = z.string().check(z.regex(/^[0-9a-f]{32}$/));\n\n/** CAIP-2 chain id: `namespace:reference`. */\nexport const caip2 = z.string().check(z.regex(/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/));\n\nexport type Caip2 = z.infer<typeof caip2>;\nexport type InstallId = z.infer<typeof installId>;\n\nexport const GATEWAY_ERRORS = [\n \"invalid-request\",\n \"unknown-network\",\n \"not-found\",\n \"rate-limited\",\n \"unavailable\",\n \"internal\",\n] as const;\n\nexport const gatewayError = z.object({ error: z.enum(GATEWAY_ERRORS) });\n\nexport type GatewayErrorCode = (typeof GATEWAY_ERRORS)[number];\n","import * as z from \"zod/mini\";\n\nimport { endpoint } from \"./endpoint.ts\";\n\nexport const healthRequest = z.undefined();\nexport const healthResponse = z.object({ status: z.literal(\"ok\") });\n\nexport const health = endpoint(\"GET\", \"/v1/health\", healthRequest, healthResponse);\n","import * as z from \"zod/mini\";\n\nimport { endpoint } from \"./endpoint.ts\";\n\nconst HEX64 = \"[0-9a-f]{64}\";\n\ntype EsploraRoute = { readonly method: \"GET\" | \"POST\"; readonly pattern: RegExp };\n\n/** The Esplora surface the engine uses; every other path is rejected. */\nexport const ESPLORA_ROUTES: ReadonlyArray<EsploraRoute> = [\n { method: \"GET\", pattern: /^\\/block-height\\/\\d{1,10}$/ },\n { method: \"GET\", pattern: /^\\/fee-estimates$/ },\n { method: \"GET\", pattern: new RegExp(`^/scripthash/${HEX64}/txs$`) },\n { method: \"GET\", pattern: new RegExp(`^/scripthash/${HEX64}/utxo$`) },\n { method: \"GET\", pattern: new RegExp(`^/tx/${HEX64}/hex$`) },\n { method: \"GET\", pattern: new RegExp(`^/tx/${HEX64}/status$`) },\n { method: \"POST\", pattern: /^\\/tx$/ },\n];\n\n/** `path` is the Esplora path after `/v1/esplora/:caip2`, with a leading slash and no query. */\nexport const esploraPathAllowed = (method: string, path: string): boolean =>\n ESPLORA_ROUTES.some((route) => route.method === method && route.pattern.test(path));\n\nexport const esploraGet = endpoint(\"GET\", \"/v1/esplora/:caip2/*\", z.undefined(), z.unknown());\n\n/** The Esplora base path for one network; allow-listed paths are appended to it. */\nexport const esploraBasePath = (caip2: string): string =>\n esploraGet.path.replace(\":caip2\", caip2).replace(/\\/\\*$/, \"\");\nexport const esploraPost = endpoint(\"POST\", \"/v1/esplora/:caip2/tx\", z.string(), z.string());\n","import * as z from \"zod/mini\";\n\nimport { endpoint } from \"./endpoint.ts\";\nimport { caip2 } from \"./primitives.ts\";\n\nexport const servedNetworksRequest = z.undefined();\n/** The networks the gateway actually serves, in its configured order. */\nexport const servedNetworksResponse = z.object({ networks: z.array(caip2) });\n\nexport const servedNetworks = endpoint(\n \"GET\",\n \"/v1/networks\",\n servedNetworksRequest,\n servedNetworksResponse,\n);\n\nexport const networksPath: string = servedNetworks.path;\n"],"mappings":";;;;AAYA,SAAgB,SACd,QACA,MACA,SACA,UACoB;CACpB,OAAO;EAAE;EAAQ;EAAM;EAAS;CAAS;AAC3C;;AAGA,SAAgB,UACd,QACA,OACyB;CACzB,MAAM,SAAS,EAAE,UAAU,QAAQ,KAAK;CACxC,OAAO,OAAO,UAAU,OAAO,OAAO,KAAA;AACxC;;AAGA,SAAgB,QAAQ,QAAuB,OAAyB;CACtE,OAAO,EAAE,UAAU,QAAQ,KAAK,CAAC,CAAC;AACpC;;;AC5BA,MAAa,gBAAgB;;AAG7B,MAAa,kBAAkB;CAC7B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;;AAGA,MAAa,qBAAqB;CAChC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAKA,MAAa,YAAY,EAAE,MAAM;CAAC,EAAE,OAAO;CAAG,EAAE,OAAO;CAAG,EAAE,KAAK;AAAC,CAAC;AAEnE,MAAM,gBAAgB,EAAE,SACtB,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CACnE;AAEA,MAAM,cAA+C,WACnD,EAAE,OAAO;CAAE,SAAS,EAAE,QAAQ,KAAK;CAAG,IAAI;CAAW;CAAQ,QAAQ;AAAc,CAAC;AAEtF,MAAM,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