shinjuku-shielded 0.3.33 → 0.3.34
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/manifest.json +3 -3
- package/package.json +3 -3
- package/shinjuku-wallet.mjs +6 -2
package/manifest.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": "carbon-shielded-wallet/bundle-manifest/v1",
|
|
3
3
|
"file": "shinjuku-wallet.mjs",
|
|
4
|
-
"sha256": "
|
|
5
|
-
"bytes":
|
|
6
|
-
"sourceCommit": "
|
|
4
|
+
"sha256": "b22ae0f772097b698eba694cfec8b31061921a38948c11702df3653881361e9f",
|
|
5
|
+
"bytes": 11185132,
|
|
6
|
+
"sourceCommit": "164420d7b29522db79b23d11ae14bc10ec26ce8f",
|
|
7
7
|
"sourceDirty": false,
|
|
8
8
|
"installRecordMatchesLockfile": true,
|
|
9
9
|
"releaseRule": "valid only when two fresh npm ci --ignore-scripts builds on different OSes give the same sha256; installRecordMatchesLockfile true means every entry npm installed equals its package-lock.json entry and every entry not marked optional, devOptional included, is installed: an optional entry (a package for another platform) may be absent",
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shinjuku-shielded",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.34",
|
|
4
4
|
"mcpName": "io.github.ShinjukuStaition/shinjuku-mcp",
|
|
5
5
|
"description": "Shinjuku Shielded, the private x402 facilitator on Solana: the self-custody wallet CLI and its MCP server. Shield, pay, and unshield USDC from any MCP agent, under caps you set.",
|
|
6
|
-
"shinjukuRelease": "
|
|
7
|
-
"shinjukuSha256": "
|
|
6
|
+
"shinjukuRelease": "b22ae0f7",
|
|
7
|
+
"shinjukuSha256": "b22ae0f772097b698eba694cfec8b31061921a38948c11702df3653881361e9f",
|
|
8
8
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
9
9
|
"author": "Shinjuku Shielded",
|
|
10
10
|
"homepage": "https://github.com/ShinjukuStaition/shinjuku-mcp#readme",
|
package/shinjuku-wallet.mjs
CHANGED
|
@@ -56322,7 +56322,6 @@ async function loadWalletP03History(args) {
|
|
|
56322
56322
|
}
|
|
56323
56323
|
if (runKey !== void 0 && recentScope.getStore() === true && strictScope.getStore() !== true && args.forceRead !== true) {
|
|
56324
56324
|
const recent = recentLoads.get(runKey);
|
|
56325
|
-
recentLoads.delete(runKey);
|
|
56326
56325
|
if (recent !== void 0 && Date.now() - recent.startedAt <= HISTORY_PREWARM_JOIN_MS) {
|
|
56327
56326
|
PREWARMED_REPORTS.add(recent.report);
|
|
56328
56327
|
markPhase("walk-recent");
|
|
@@ -56534,7 +56533,7 @@ function reportHistoryRpc(split5, source, result, crossChecked) {
|
|
|
56534
56533
|
writeStderr(`history: ${who} answered ${list(split5.history)}; your own RPC answered ${list(split5.own)} (the pool account the history must match, and the cross-check)${window2}${integrity}
|
|
56535
56534
|
`);
|
|
56536
56535
|
}
|
|
56537
|
-
var strictScope, withStrictHistorySource, recentScope, withRecentWalletHistory, recentLoads, historyCacheKey, HISTORY_PREWARM_JOIN_MS, prewarmedWalks, PREWARMED_REPORTS, isPrewarmedWalletHistory, COMPACT_BEHIND_RETRY_MS, lastRunReports, writeStderr, announcedSources;
|
|
56536
|
+
var strictScope, withStrictHistorySource, recentScope, withRecentWalletHistory, recentLoads, forgetRecentWalletHistory, historyCacheKey, HISTORY_PREWARM_JOIN_MS, prewarmedWalks, PREWARMED_REPORTS, isPrewarmedWalletHistory, COMPACT_BEHIND_RETRY_MS, lastRunReports, writeStderr, announcedSources;
|
|
56538
56537
|
var init_walletHistory = __esm({
|
|
56539
56538
|
"wallet/src/history/walletHistory.mjs"() {
|
|
56540
56539
|
"use strict";
|
|
@@ -56551,6 +56550,9 @@ var init_walletHistory = __esm({
|
|
|
56551
56550
|
recentScope = new AsyncLocalStorage2();
|
|
56552
56551
|
withRecentWalletHistory = (fn) => recentScope.run(true, fn);
|
|
56553
56552
|
recentLoads = /* @__PURE__ */ new Map();
|
|
56553
|
+
forgetRecentWalletHistory = () => {
|
|
56554
|
+
recentLoads.clear();
|
|
56555
|
+
};
|
|
56554
56556
|
historyCacheKey = (store) => createHmac5("sha256", Buffer.from(store.state.seedHex, "hex")).update("carbon-shielded-wallet/history-cache-key/v1").digest("hex");
|
|
56555
56557
|
HISTORY_PREWARM_JOIN_MS = 1e4;
|
|
56556
56558
|
prewarmedWalks = /* @__PURE__ */ new Map();
|
|
@@ -72034,6 +72036,7 @@ async function prepareRecoveredPayment({
|
|
|
72034
72036
|
quoteCommitment: witnessQuote.quoteCommitment,
|
|
72035
72037
|
amountAtomic: witnessQuote.amountAtomic
|
|
72036
72038
|
});
|
|
72039
|
+
forgetRecentWalletHistory();
|
|
72037
72040
|
return {
|
|
72038
72041
|
replayed: false,
|
|
72039
72042
|
walName: walName2,
|
|
@@ -72223,6 +72226,7 @@ async function prepareRecoveredPayment({
|
|
|
72223
72226
|
if (persisted !== void 0 && persisted.requestHash !== requestHash2) {
|
|
72224
72227
|
fail15("wal_request_binding_mismatch");
|
|
72225
72228
|
}
|
|
72229
|
+
forgetRecentWalletHistory();
|
|
72226
72230
|
const proved = await (deps.provePayment ?? proveRecoveredP03Payment)({ request, tools: proofTools });
|
|
72227
72231
|
const binding = {
|
|
72228
72232
|
poolDomain: request.poolDomain,
|