@ocap/client 1.30.2 → 1.30.3

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/encode.d.ts ADDED
@@ -0,0 +1,62 @@
1
+ export interface EncodeTxParams {
2
+ /** Transaction type name, e.g. 'TransferV2Tx' */
3
+ type: string;
4
+ /** Transaction data — same shape as client.encodeXxxTx({ tx }) */
5
+ tx: {
6
+ itx: any;
7
+ from?: string;
8
+ pk?: string;
9
+ nonce?: number;
10
+ chainId?: string;
11
+ signature?: Uint8Array | Buffer;
12
+ signatures?: any[];
13
+ signaturesList?: any[];
14
+ delegator?: string;
15
+ };
16
+ /** Wallet { address, publicKey|pk } */
17
+ wallet: { address: string; publicKey?: string; pk?: string };
18
+ /** Delegator address */
19
+ delegator?: string;
20
+ /** Chain ID (from getChainInfo) */
21
+ chainId?: string;
22
+ /** Fee config [{ typeUrl, fee }] (from getForgeState) */
23
+ feeConfig?: Array<{ typeUrl: string; fee: string }>;
24
+ }
25
+
26
+ export interface EncodeTxResult {
27
+ object: Record<string, any>;
28
+ buffer: Buffer;
29
+ }
30
+
31
+ export interface ChainContext {
32
+ chainId: string;
33
+ txFee: Array<{ typeUrl: string; fee: string }>;
34
+ }
35
+
36
+ export type TxEncoder = (params: {
37
+ type: string;
38
+ data: any;
39
+ wallet: any;
40
+ chainHost: string;
41
+ }) => Promise<Buffer>;
42
+
43
+ /**
44
+ * Encode a transaction to protobuf binary.
45
+ * Pure function — no network IO.
46
+ */
47
+ export function encodeTx(params: EncodeTxParams): EncodeTxResult;
48
+
49
+ /**
50
+ * Create a TxEncoder compatible with WalletAuthenticator.txEncoder.
51
+ * Automatically fetches and caches chain context per endpoint.
52
+ */
53
+ export function createTxEncoder(): TxEncoder;
54
+
55
+ /**
56
+ * Fetch minimal chain context (chainId + fee config) from an endpoint.
57
+ * Results are cached — call clearContextCache() to invalidate.
58
+ */
59
+ export function fetchContext(chainHost: string): Promise<ChainContext>;
60
+
61
+ /** Clear the context cache. */
62
+ export function clearContextCache(): void;
package/encode.js ADDED
@@ -0,0 +1 @@
1
+ module.exports = require('./lib/encode');
package/lib/encode.js ADDED
@@ -0,0 +1,157 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * Lightweight transaction encoder — only depends on @ocap/message.
5
+ *
6
+ * Cuts out @ocap/asset (~11 MB), @arcblock/did-util, graphql, @arcblock/sdk-util,
7
+ * and the full client/extension.js dependency tree.
8
+ *
9
+ * Unavoidable: @ocap/message → @ocap/proto (~1.7 MB) + google-protobuf (~800 KB).
10
+ *
11
+ * @module @ocap/client/encode
12
+ */
13
+ const { createMessage, toTypeUrl } = require('@ocap/message');
14
+
15
+ /**
16
+ * Normalize wallet to { address, publicKey }.
17
+ * Handles @ocap/wallet instances, plain objects with pk or publicKey.
18
+ */
19
+ function normalizeWallet(wallet) {
20
+ if (!wallet) return { address: '', publicKey: '' };
21
+ if (typeof wallet.toAddress === 'function') {
22
+ return { address: wallet.address, publicKey: wallet.publicKey };
23
+ }
24
+ return {
25
+ address: wallet.address,
26
+ publicKey: wallet.pk || wallet.publicKey || ''
27
+ };
28
+ }
29
+
30
+ /**
31
+ * Encode a transaction to protobuf binary.
32
+ *
33
+ * Pure function — no network IO, no side effects.
34
+ * Logic extracted from extension.js txEncodeFn for standalone use.
35
+ *
36
+ * @param {object} params
37
+ * @param {string} params.type - Transaction type name, e.g. 'TransferV2Tx'
38
+ * @param {object} params.tx - Transaction data (same shape as client.encodeXxxTx({ tx }))
39
+ * @param {object} params.wallet - Wallet { address, publicKey|pk }
40
+ * @param {string} [params.delegator=''] - Delegator address
41
+ * @param {string} [params.chainId=''] - Chain ID (from getChainInfo)
42
+ * @param {Array} [params.feeConfig=[]] - Fee config [{ typeUrl, fee }] (from getForgeState)
43
+ * @returns {{ object: object, buffer: Buffer }}
44
+ */
45
+ function encodeTx({ type, tx, wallet, delegator = '', chainId = '', feeConfig = [] }) {
46
+ const w = normalizeWallet(wallet);
47
+ const address = tx.from || w.address;
48
+ const pk = tx.pk || w.publicKey;
49
+ const nonce = typeof tx.nonce === 'undefined' ? Date.now() : tx.nonce;
50
+ const resolvedChainId = tx.chainId || chainId;
51
+
52
+ let signatures = [];
53
+ if (Array.isArray(tx.signatures)) {
54
+ signatures = tx.signatures;
55
+ }
56
+ if (Array.isArray(tx.signaturesList)) {
57
+ signatures = tx.signaturesList;
58
+ }
59
+
60
+ // biome-ignore lint/complexity/useOptionalChain: Babel 6 does not support optional chaining
61
+ const itx = tx.itx && tx.itx.typeUrl && tx.itx.value ? tx.itx : { type, value: tx.itx };
62
+
63
+ const typeUrl = itx.typeUrl || toTypeUrl(itx.type);
64
+ const fee = feeConfig.find(t => t.typeUrl === typeUrl);
65
+
66
+ const txObj = createMessage('Transaction', {
67
+ from: tx.delegator ? address : delegator || address,
68
+ nonce,
69
+ pk,
70
+ chainId: resolvedChainId,
71
+ signature: tx.signature || Buffer.from([]),
72
+ signatures,
73
+ delegator: tx.delegator || (delegator ? address : ''),
74
+ itx,
75
+ serviceFee: fee ? fee.fee : '0'
76
+ });
77
+
78
+ const bytes = txObj.serializeBinary();
79
+ return { object: txObj.toObject(), buffer: Buffer.from(bytes) };
80
+ }
81
+
82
+ // ---- Context fetcher (lightweight replacement for client.getContext) ----
83
+
84
+ const contextCache = new Map();
85
+
86
+ /**
87
+ * Fetch minimal chain context (chainId + fee config) via raw HTTP.
88
+ * Cached per endpoint — call clearContextCache() to invalidate.
89
+ *
90
+ * @param {string} chainHost - Chain RPC endpoint URL
91
+ * @returns {Promise<{ chainId: string, txFee: Array }>}
92
+ */
93
+ async function fetchContext(chainHost) {
94
+ if (contextCache.has(chainHost)) {
95
+ return contextCache.get(chainHost);
96
+ }
97
+
98
+ const post = async query => {
99
+ const res = await fetch(chainHost, {
100
+ method: 'POST',
101
+ headers: { 'content-type': 'application/json' },
102
+ body: JSON.stringify({ query })
103
+ });
104
+ if (!res.ok) {
105
+ throw new Error(`fetchContext: HTTP ${res.status} from ${chainHost}`);
106
+ }
107
+ return (await res.json()).data;
108
+ };
109
+
110
+ const [info, state] = await Promise.all([post('{ getChainInfo { code info { network } } }'), post('{ getForgeState { code state { txConfig { txFee { fee typeUrl } } } } }')]);
111
+
112
+ // biome-ignore lint/complexity/useOptionalChain: Babel 6 does not support optional chaining
113
+ const chainInfo = info && info.getChainInfo && info.getChainInfo.info;
114
+ // biome-ignore lint/complexity/useOptionalChain: Babel 6 does not support optional chaining
115
+ const txConfig = state && state.getForgeState && state.getForgeState.state && state.getForgeState.state.txConfig;
116
+
117
+ const context = {
118
+ // biome-ignore lint/complexity/useOptionalChain: Babel 6 does not support optional chaining
119
+ chainId: chainInfo && chainInfo.network || '',
120
+ // biome-ignore lint/complexity/useOptionalChain: Babel 6 does not support optional chaining
121
+ txFee: txConfig && txConfig.txFee || []
122
+ };
123
+
124
+ contextCache.set(chainHost, context);
125
+ return context;
126
+ }
127
+
128
+ function clearContextCache() {
129
+ contextCache.clear();
130
+ }
131
+
132
+ /**
133
+ * Create a TxEncoder function compatible with @arcblock/did-connect-js WalletAuthenticator.
134
+ *
135
+ * Usage:
136
+ * const { createTxEncoder } = require('@ocap/client/encode');
137
+ * const authenticator = new WalletAuthenticator({ txEncoder: createTxEncoder(), ... });
138
+ *
139
+ * @returns {function} async ({ type, data, wallet, chainHost }) => Buffer
140
+ */
141
+ function createTxEncoder() {
142
+ return async ({ type, data, wallet, chainHost }) => {
143
+ const context = await fetchContext(chainHost);
144
+ const { buffer } = encodeTx({
145
+ type,
146
+ tx: data,
147
+ wallet,
148
+ // biome-ignore lint/complexity/useOptionalChain: Babel 6 does not support optional chaining
149
+ chainId: data && data.chainId || context.chainId,
150
+ feeConfig: context.txFee
151
+ });
152
+ return buffer;
153
+ };
154
+ }
155
+
156
+ module.exports = { encodeTx, createTxEncoder, fetchContext, clearContextCache };
157
+ //# sourceMappingURL=encode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/encode.js"],"names":["createMessage","toTypeUrl","require","normalizeWallet","wallet","address","publicKey","toAddress","pk","encodeTx","type","tx","delegator","chainId","feeConfig","w","from","nonce","Date","now","resolvedChainId","signatures","Array","isArray","signaturesList","itx","typeUrl","value","fee","find","t","txObj","signature","Buffer","serviceFee","bytes","serializeBinary","object","toObject","buffer","contextCache","Map","fetchContext","chainHost","has","get","post","query","res","fetch","method","headers","body","JSON","stringify","ok","Error","status","json","data","info","state","Promise","all","chainInfo","getChainInfo","txConfig","getForgeState","context","network","txFee","set","clearContextCache","clear","createTxEncoder","module","exports"],"mappings":";;AAAA;;;;;;;;;;AAUA,MAAM,EAAEA,aAAF,EAAiBC,SAAjB,KAA+BC,QAAQ,eAAR,CAArC;;AAEA;;;;AAIA,SAASC,eAAT,CAAyBC,MAAzB,EAAiC;AAC/B,MAAI,CAACA,MAAL,EAAa,OAAO,EAAEC,SAAS,EAAX,EAAeC,WAAW,EAA1B,EAAP;AACb,MAAI,OAAOF,OAAOG,SAAd,KAA4B,UAAhC,EAA4C;AAC1C,WAAO,EAAEF,SAASD,OAAOC,OAAlB,EAA2BC,WAAWF,OAAOE,SAA7C,EAAP;AACD;AACD,SAAO;AACLD,aAASD,OAAOC,OADX;AAELC,eAAWF,OAAOI,EAAP,IAAaJ,OAAOE,SAApB,IAAiC;AAFvC,GAAP;AAID;;AAED;;;;;;;;;;;;;;;AAeA,SAASG,QAAT,CAAkB,EAAEC,IAAF,EAAQC,EAAR,EAAYP,MAAZ,EAAoBQ,YAAY,EAAhC,EAAoCC,UAAU,EAA9C,EAAkDC,YAAY,EAA9D,EAAlB,EAAsF;AACpF,QAAMC,IAAIZ,gBAAgBC,MAAhB,CAAV;AACA,QAAMC,UAAUM,GAAGK,IAAH,IAAWD,EAAEV,OAA7B;AACA,QAAMG,KAAKG,GAAGH,EAAH,IAASO,EAAET,SAAtB;AACA,QAAMW,QAAQ,OAAON,GAAGM,KAAV,KAAoB,WAApB,GAAkCC,KAAKC,GAAL,EAAlC,GAA+CR,GAAGM,KAAhE;AACA,QAAMG,kBA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A2B;AACzB,SAAO,OAAO,EAAEhE,IAAF,EAAQiD,IAAR,EAAcvD,MAAd,EAAsBuC,SAAtB,EAAP,KAA6C;AAClD,UAAMyB,UAAU,MAAM1B,aAAaC,SAAb,CAAtB;AACA,UAAM,EAAEJ,MAAF,KAAa9B,SAAS;AAC1BC,UAD0B;AAE1BC,UAAIgD,IAFsB;AAG1BvD,YAH0B;AAI1B;AACAS,eAAU8C,QAAQA,KAAK9C,OAAd,IAA0BuD,QAAQvD,OALjB;AAM1BC,iBAAWsD,QAAQE;AANO,KAAT,CAAnB;AAQA,WAAO/B,MAAP;AACD,GAXD;AAYD;;AAEDoC,OAAOC,OAAP,GAAiB,EAAEnE,QAAF,EAAYiE,eAAZ,EAA6BhC,YAA7B,EAA2C8B,iBAA3C,EAAjB","file":"encode.js","sourcesContent":["/**\n * Lightweight transaction encoder — only depends on @ocap/message.\n *\n * Cuts out @ocap/asset (~11 MB), @arcblock/did-util, graphql, @arcblock/sdk-util,\n * and the full client/extension.js dependency tree.\n *\n * Unavoidable: @ocap/message → @ocap/proto (~1.7 MB) + google-protobuf (~800 KB).\n *\n * @module @ocap/client/encode\n */\nconst { createMessage, toTypeUrl } = require('@ocap/message');\n\n/**\n * Normalize wallet to { address, publicKey }.\n * Handles @ocap/wallet instances, plain objects with pk or publicKey.\n */\nfunction normalizeWallet(wallet) {\n if (!wallet) return { address: '', publicKey: '' };\n if (typeof wallet.toAddress === 'function') {\n return { address: wallet.address, publicKey: wallet.publicKey };\n }\n return {\n address: wallet.address,\n publicKey: wallet.pk || wallet.publicKey || '',\n };\n}\n\n/**\n * Encode a transaction to protobuf binary.\n *\n * Pure function — no network IO, no side effects.\n * Logic extracted from extension.js txEncodeFn for standalone use.\n *\n * @param {object} params\n * @param {string} params.type - Transaction type name, e.g. 'TransferV2Tx'\n * @param {object} params.tx - Transaction data (same shape as client.encodeXxxTx({ tx }))\n * @param {object} params.wallet - Wallet { address, publicKey|pk }\n * @param {string} [params.delegator=''] - Delegator address\n * @param {string} [params.chainId=''] - Chain ID (from getChainInfo)\n * @param {Array} [params.feeConfig=[]] - Fee config [{ typeUrl, fee }] (from getForgeState)\n * @returns {{ object: object, buffer: Buffer }}\n */\nfunction encodeTx({ type, tx, wallet, delegator = '', chainId = '', feeConfig = [] }) {\n const w = normalizeWallet(wallet);\n const address = tx.from || w.address;\n const pk = tx.pk || w.publicKey;\n const nonce = typeof tx.nonce === 'undefined' ? Date.now() : tx.nonce;\n const resolvedChainId = tx.chainId || chainId;\n\n let signatures = [];\n if (Array.isArray(tx.signatures)) {\n signatures = tx.signatures;\n }\n if (Array.isArray(tx.signaturesList)) {\n signatures = tx.signaturesList;\n }\n\n // biome-ignore lint/complexity/useOptionalChain: Babel 6 does not support optional chaining\n const itx = tx.itx && tx.itx.typeUrl && tx.itx.value ? tx.itx : { type, value: tx.itx };\n\n const typeUrl = itx.typeUrl || toTypeUrl(itx.type);\n const fee = feeConfig.find((t) => t.typeUrl === typeUrl);\n\n const txObj = createMessage('Transaction', {\n from: tx.delegator ? address : delegator || address,\n nonce,\n pk,\n chainId: resolvedChainId,\n signature: tx.signature || Buffer.from([]),\n signatures,\n delegator: tx.delegator || (delegator ? address : ''),\n itx,\n serviceFee: fee ? fee.fee : '0',\n });\n\n const bytes = txObj.serializeBinary();\n return { object: txObj.toObject(), buffer: Buffer.from(bytes) };\n}\n\n// ---- Context fetcher (lightweight replacement for client.getContext) ----\n\nconst contextCache = new Map();\n\n/**\n * Fetch minimal chain context (chainId + fee config) via raw HTTP.\n * Cached per endpoint — call clearContextCache() to invalidate.\n *\n * @param {string} chainHost - Chain RPC endpoint URL\n * @returns {Promise<{ chainId: string, txFee: Array }>}\n */\nasync function fetchContext(chainHost) {\n if (contextCache.has(chainHost)) {\n return contextCache.get(chainHost);\n }\n\n const post = async (query) => {\n const res = await fetch(chainHost, {\n method: 'POST',\n headers: { 'content-type': 'application/json' },\n body: JSON.stringify({ query }),\n });\n if (!res.ok) {\n throw new Error(`fetchContext: HTTP ${res.status} from ${chainHost}`);\n }\n return (await res.json()).data;\n };\n\n const [info, state] = await Promise.all([\n post('{ getChainInfo { code info { network } } }'),\n post('{ getForgeState { code state { txConfig { txFee { fee typeUrl } } } } }'),\n ]);\n\n // biome-ignore lint/complexity/useOptionalChain: Babel 6 does not support optional chaining\n const chainInfo = info && info.getChainInfo && info.getChainInfo.info;\n // biome-ignore lint/complexity/useOptionalChain: Babel 6 does not support optional chaining\n const txConfig = state && state.getForgeState && state.getForgeState.state && state.getForgeState.state.txConfig;\n\n const context = {\n // biome-ignore lint/complexity/useOptionalChain: Babel 6 does not support optional chaining\n chainId: (chainInfo && chainInfo.network) || '',\n // biome-ignore lint/complexity/useOptionalChain: Babel 6 does not support optional chaining\n txFee: (txConfig && txConfig.txFee) || [],\n };\n\n contextCache.set(chainHost, context);\n return context;\n}\n\nfunction clearContextCache() {\n contextCache.clear();\n}\n\n/**\n * Create a TxEncoder function compatible with @arcblock/did-connect-js WalletAuthenticator.\n *\n * Usage:\n * const { createTxEncoder } = require('@ocap/client/encode');\n * const authenticator = new WalletAuthenticator({ txEncoder: createTxEncoder(), ... });\n *\n * @returns {function} async ({ type, data, wallet, chainHost }) => Buffer\n */\nfunction createTxEncoder() {\n return async ({ type, data, wallet, chainHost }) => {\n const context = await fetchContext(chainHost);\n const { buffer } = encodeTx({\n type,\n tx: data,\n wallet,\n // biome-ignore lint/complexity/useOptionalChain: Babel 6 does not support optional chaining\n chainId: (data && data.chainId) || context.chainId,\n feeConfig: context.txFee,\n });\n return buffer;\n };\n}\n\nmodule.exports = { encodeTx, createTxEncoder, fetchContext, clearContextCache };\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ocap/client",
3
- "version": "1.30.2",
3
+ "version": "1.30.3",
4
4
  "description": "graphql client to read/write data on arcblock blockchain",
5
5
  "keywords": [
6
6
  "graphql",
@@ -27,20 +27,22 @@
27
27
  "docs",
28
28
  "examples",
29
29
  "dist",
30
- "lib"
30
+ "lib",
31
+ "encode.js",
32
+ "encode.d.ts"
31
33
  ],
32
34
  "dependencies": {
33
- "@arcblock/did": "1.30.2",
34
- "@arcblock/did-util": "1.30.2",
35
- "@arcblock/jwt": "1.30.2",
36
- "@arcblock/sdk-util": "^0.36.3",
37
- "@arcblock/ws": "1.30.2",
38
- "@ocap/asset": "1.30.2",
39
- "@ocap/mcrypto": "1.30.2",
40
- "@ocap/message": "1.30.2",
41
- "@ocap/proto": "1.30.2",
42
- "@ocap/util": "1.30.2",
43
- "@ocap/wallet": "1.30.2",
35
+ "@arcblock/did": "1.30.3",
36
+ "@arcblock/did-util": "1.30.3",
37
+ "@arcblock/jwt": "1.30.3",
38
+ "@arcblock/sdk-util": "^0.36.4",
39
+ "@arcblock/ws": "1.30.3",
40
+ "@ocap/asset": "1.30.3",
41
+ "@ocap/mcrypto": "1.30.3",
42
+ "@ocap/message": "1.30.3",
43
+ "@ocap/proto": "1.30.3",
44
+ "@ocap/util": "1.30.3",
45
+ "@ocap/wallet": "1.30.3",
44
46
  "blueimp-md5": "^2.19.0",
45
47
  "buffer": "6.0.3",
46
48
  "debug": "^4.4.3",