paralith-mcp 0.4.2 → 0.4.4
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/dist/chains.json +8 -8
- package/dist/client.mjs +14 -6
- package/dist/graph.json +22 -22
- package/package.json +1 -1
package/dist/chains.json
CHANGED
|
@@ -63,11 +63,11 @@
|
|
|
63
63
|
"action": "FRESH"
|
|
64
64
|
},
|
|
65
65
|
"pusd": {
|
|
66
|
-
"id": "
|
|
67
|
-
"version": "sha256:
|
|
68
|
-
"localHash": "sha256:
|
|
69
|
-
"deployedAt": "2026-10-
|
|
70
|
-
"tx": "
|
|
66
|
+
"id": "2y0mZRBMYa1WuEgBKCO21348246bthwdw__Tl9pB2eM",
|
|
67
|
+
"version": "sha256:625b574846134ad163ea54c8bc87b428379f86bf1a8b24ade2f88db9eeb17fd0",
|
|
68
|
+
"localHash": "sha256:625b574846134ad163ea54c8bc87b428379f86bf1a8b24ade2f88db9eeb17fd0",
|
|
69
|
+
"deployedAt": "2026-10-13T17:21:19.832Z",
|
|
70
|
+
"tx": "2y0mZRBMYa1WuEgBKCO21348246bthwdw__Tl9pB2eM",
|
|
71
71
|
"action": "FRESH"
|
|
72
72
|
},
|
|
73
73
|
"base": {
|
|
@@ -87,14 +87,14 @@
|
|
|
87
87
|
"action": "FRESH"
|
|
88
88
|
},
|
|
89
89
|
"lastRun": {
|
|
90
|
-
"at": "2026-10-
|
|
91
|
-
"startedAt": "2026-10-
|
|
90
|
+
"at": "2026-10-13T17:21:31.153Z",
|
|
91
|
+
"startedAt": "2026-10-13T17:15:44.744Z",
|
|
92
92
|
"steps": [
|
|
93
93
|
{
|
|
94
94
|
"component": "pusd",
|
|
95
95
|
"action": "FRESH",
|
|
96
96
|
"status": "done",
|
|
97
|
-
"tx": "
|
|
97
|
+
"tx": "2y0mZRBMYa1WuEgBKCO21348246bthwdw__Tl9pB2eM"
|
|
98
98
|
},
|
|
99
99
|
{
|
|
100
100
|
"component": "tokens",
|
package/dist/client.mjs
CHANGED
|
@@ -195,7 +195,7 @@ function localWallet(stored) {
|
|
|
195
195
|
async disconnect() {
|
|
196
196
|
},
|
|
197
197
|
async getActiveAddress() {
|
|
198
|
-
return stored.address;
|
|
198
|
+
return actingFor ?? stored.address;
|
|
199
199
|
},
|
|
200
200
|
async getActivePublicKey() {
|
|
201
201
|
if (!stored.jwk.n) throw new Error("The wallet has no public key.");
|
|
@@ -205,7 +205,8 @@ function localWallet(stored) {
|
|
|
205
205
|
return [...PERMISSIONS];
|
|
206
206
|
},
|
|
207
207
|
async signDataItem(input) {
|
|
208
|
-
|
|
208
|
+
const tags3 = actingFor ? [...input.tags ?? [], { name: "Principal", value: actingFor }] : input.tags;
|
|
209
|
+
return signDataItemWithJwk(stored.jwk, { ...input, tags: tags3 });
|
|
209
210
|
},
|
|
210
211
|
async signature(message, algorithm) {
|
|
211
212
|
const key = await importPrivateKey(stored.jwk);
|
|
@@ -279,7 +280,7 @@ async function restoreWallet() {
|
|
|
279
280
|
if (!stored) return null;
|
|
280
281
|
selectedWallet = localWallet(stored);
|
|
281
282
|
selectedProvider = "local";
|
|
282
|
-
return { address: stored.address, provider: "local", providerName: "Browser wallet" };
|
|
283
|
+
return { address: actingFor ?? stored.address, provider: "local", providerName: "Browser wallet" };
|
|
283
284
|
}
|
|
284
285
|
if (preferred === "permaweb") {
|
|
285
286
|
const wallet2 = await waitForPermawebWallet();
|
|
@@ -310,7 +311,7 @@ async function restoreWallet() {
|
|
|
310
311
|
async function activeAddress() {
|
|
311
312
|
return (await restoreWallet())?.address ?? null;
|
|
312
313
|
}
|
|
313
|
-
var PERMISSIONS, DB_NAME, DB_VERSION, STORE, LOCAL_KEY, PROVIDER_KEY, selectedWallet, selectedProvider, inBrowser, importPrivateKey;
|
|
314
|
+
var PERMISSIONS, DB_NAME, DB_VERSION, STORE, LOCAL_KEY, PROVIDER_KEY, selectedWallet, selectedProvider, inBrowser, importPrivateKey, actingFor;
|
|
314
315
|
var init_wallet = __esm({
|
|
315
316
|
"../../products/runerealm-ui/src/lib/wallet.ts"() {
|
|
316
317
|
"use strict";
|
|
@@ -329,6 +330,7 @@ var init_wallet = __esm({
|
|
|
329
330
|
name: "RSA-PSS",
|
|
330
331
|
hash: "SHA-256"
|
|
331
332
|
}, false, ["sign"]);
|
|
333
|
+
actingFor = null;
|
|
332
334
|
}
|
|
333
335
|
});
|
|
334
336
|
|
|
@@ -401,7 +403,7 @@ var init_slot_settle = __esm({
|
|
|
401
403
|
var graph_default;
|
|
402
404
|
var init_graph = __esm({
|
|
403
405
|
"runerealm-graph:C:\\REPO\\paralith-mono\\products\\runerealm-ui\\src\\lib\\graph.json"() {
|
|
404
|
-
graph_default = { node: "https://hyperbeam.tylerw.ai", owner: "DA9qhP25ZPz6MHIhO-7aNHDN3LsTAL7yCKYIkqr13Z8", deployedAt: "", processes: { game: "
|
|
406
|
+
graph_default = { node: "https://hyperbeam.tylerw.ai", owner: "DA9qhP25ZPz6MHIhO-7aNHDN3LsTAL7yCKYIkqr13Z8", deployedAt: "", processes: { game: "mZXrRQk5c7ZVHuGonNFoZJS0glzPbVPXppXxf-Yvnss", rune: "rSQ-RU0kLN4hH_XpBmHr27raBONz-Q555FE-UHfH3Z0", pusd: "syBuQpeY4zxo5-fZlQIeJJca95sNrIXm1cSaxhG1MEc", dao: "yAPcE8Iequ6O5RLodmt68y0-wBuZMTb4QrABk-nR-_E", elements: { earth: "kA8euZS-JoR2_0F2gG9J1PKv1Gb7LvHAPn5ZqDvN2c0", air: "RwfJbVBJPTFO-glxA7pPt5UH_jGJrN_w4IYtgyQ89_M", fire: "SmJamo7AoHy-a1OMwznZmAvsySkea9wZpB6zo1Htn04", water: "bQprta3SB56X7qc-Sy-H9TtWyBn3FYr5LZNWr06ZZWU" }, internalVenue: "aYGC95bN3yFXtXzsdpMf5efZwLAxrDz_9wAC3Md2pJs", externalVenue: "aqEd7Ves2Aa3ZOVXy2GLFsQH1wDFnbdzeKeqRkc82xQ", hunt: "V_csdk4nEQekdAscno-53hyPbWpXAcoTUoZC326psfA", huntWorkers: ["V_csdk4nEQekdAscno-53hyPbWpXAcoTUoZC326psfA", "OYUhLOOCv633Ym4vMDqIaZ6_ejy_8u-BMm_FuKGqCoQ", "Su4QofBGiPe23owGtRowQddSHvQwosOerUYWXNUpI14", "pOT2ZlH2RaJXBfed-xPXsSy9w4I0ecLgz6oFtigAY7U", "s_6G3N3aYuiia5imSVoC_r9N99qNn3L-0NH4L35C4yE"], battleWorkers: ["igzqx4cU8RUy2JPISRKgIuTlDnZRdrOl1nVocZUtZpU", "QhpuInPUTWi9iSfZbap5dt8ndyuuBjms7ol7cFeSYOg", "LDOQ4MuVfPMg65Zn0pUbImfJxM3kA5Dj6Kc6BXmrEGY", "B_Xe8Y0NcKxGdMq_xEJcJ0mqQi1Su0DIlnDd9bWLBh4", "2SRdbVgZAlmjnZup4aB8kVB12Zgq_OwngJmRRMokcRM"] }, huntNode: "https://hyperbeam.tylerw.ai", marketNode: "https://hyperbeam.tylerw.ai", venueNode: "https://hyperbeam.tylerw.ai" };
|
|
405
407
|
}
|
|
406
408
|
});
|
|
407
409
|
|
|
@@ -9229,6 +9231,7 @@ __export(game_exports, {
|
|
|
9229
9231
|
feed: () => feed,
|
|
9230
9232
|
findRatedMatch: () => findRatedMatch,
|
|
9231
9233
|
forfeitBattle: () => forfeitBattle,
|
|
9234
|
+
grantDelegate: () => grantDelegate,
|
|
9232
9235
|
huntRouteReleased: () => huntRouteReleased,
|
|
9233
9236
|
isFleetBattle: () => isFleetBattle,
|
|
9234
9237
|
joinFaction: () => joinFaction,
|
|
@@ -9270,6 +9273,7 @@ __export(game_exports, {
|
|
|
9270
9273
|
recoverPassAccount: () => recoverPassAccount,
|
|
9271
9274
|
reopenFleetBattle: () => reopenFleetBattle,
|
|
9272
9275
|
retrieveMonster: () => retrieveMonster,
|
|
9276
|
+
revokeDelegate: () => revokeDelegate,
|
|
9273
9277
|
sendToVenue: () => sendToVenue,
|
|
9274
9278
|
setActiveMonster: () => setActiveMonster,
|
|
9275
9279
|
setPassRecovery: () => setPassRecovery,
|
|
@@ -10035,7 +10039,7 @@ function adminSnapshot({ force = false } = {}) {
|
|
|
10035
10039
|
});
|
|
10036
10040
|
return adminSnapshotInFlight;
|
|
10037
10041
|
}
|
|
10038
|
-
var constantKey, where, catalogCache, monsterIndexCache, flatMovesFrom, flatMoves, flatEntriesFrom, flatEntries, COLLECTION_ART, COLLECTION_BERRY, readGameJSON, adminSnapshotCache, adminSnapshotInFlight, economyActionSeq, economyActionId, LEGACY_ADMIN_PROCESSES, adminSnapshotMode, write, STAMPED_ACTIONS, tracksActivity, LATE_CONFIRM_MS, LATE_POLL_MS, stampSeen, fleetRoutes, fleetPlayers, battleFleetConfigPromise, FLEET_PROTOCOL, PROCESS_ID, OPAQUE_ID, fleetSide, readAuthorityPlayer, readBattle, isFleetBattle, readPlayer, readAccess, readFactions, readLeaderboard, readBattleFleet, fleetActionId, ARWEAVE_GATEWAY, readCatalog, readMonsterIndex, readChallenges, readArenaTiers, login, joinFaction, adopt, feed, startPlay, startQuest, claim, levelUp, learnMove, claimDaily, openLootbox, huntRunOpened, beginHunt, huntRouteReleased, enterArena, fleetRouteCleared, fleetBattleOpened, challenge, acceptChallenge, findRatedMatch, cancelRatedMatch, withdrawChallenge, attackMonolith, battleInfo, readMintVault, readAssetRegistry, mint, depositAsset, spriteUpdate, storeMonster, retrieveMonster, setActiveMonster, transferMonster, readMarketHistory, readMarketStats, EMPTY_BOOK, readEconomy, orderTags, placeGoldOrder, amendGoldOrder, cancelGoldOrder, cancelGoldOrders, maintainGoldOrders, sendToVenue, OWN_FILL_LIMIT, tradeGameShop, setPassRecovery, claimPromisedPass, recoverPassAccount, bondPassRune, beginPassUnbond, completePassUnbond, listMonster, cancelListing, buyListing, runeTokenId, readWithdrawals, readCheckins, readMetrics, adminUnlock, adminLock, adminGrant, adminSetStats, adminRemove, adminUpdateMonsterIndex, legacyItems, legacyFactions, usesLegacyAdminApi, adminAdjustInventory, adminUpdatePlayer, adminReleaseBattle, adminSyncEconomy, adminPreviewEconomyPolicy, adminProposeEconomyPolicy, adminApplyEconomyPolicy, adminEmergencyPauseEconomy, adminPauseEconomyDesk, adminObserveRuneSupply, adminReleaseGold, adminFundPlayer, adminFundPlayerQueued, adminObserveGoldPolicy, adminConfigureGenesisPasses, adminAdjustAll;
|
|
10042
|
+
var constantKey, where, catalogCache, monsterIndexCache, flatMovesFrom, flatMoves, flatEntriesFrom, flatEntries, COLLECTION_ART, COLLECTION_BERRY, readGameJSON, adminSnapshotCache, adminSnapshotInFlight, economyActionSeq, economyActionId, LEGACY_ADMIN_PROCESSES, adminSnapshotMode, write, STAMPED_ACTIONS, tracksActivity, LATE_CONFIRM_MS, LATE_POLL_MS, stampSeen, fleetRoutes, fleetPlayers, battleFleetConfigPromise, FLEET_PROTOCOL, PROCESS_ID, OPAQUE_ID, fleetSide, readAuthorityPlayer, readBattle, isFleetBattle, readPlayer, readAccess, readFactions, readLeaderboard, readBattleFleet, fleetActionId, ARWEAVE_GATEWAY, readCatalog, readMonsterIndex, readChallenges, readArenaTiers, login, joinFaction, adopt, feed, startPlay, startQuest, claim, levelUp, learnMove, claimDaily, grantDelegate, revokeDelegate, openLootbox, huntRunOpened, beginHunt, huntRouteReleased, enterArena, fleetRouteCleared, fleetBattleOpened, challenge, acceptChallenge, findRatedMatch, cancelRatedMatch, withdrawChallenge, attackMonolith, battleInfo, readMintVault, readAssetRegistry, mint, depositAsset, spriteUpdate, storeMonster, retrieveMonster, setActiveMonster, transferMonster, readMarketHistory, readMarketStats, EMPTY_BOOK, readEconomy, orderTags, placeGoldOrder, amendGoldOrder, cancelGoldOrder, cancelGoldOrders, maintainGoldOrders, sendToVenue, OWN_FILL_LIMIT, tradeGameShop, setPassRecovery, claimPromisedPass, recoverPassAccount, bondPassRune, beginPassUnbond, completePassUnbond, listMonster, cancelListing, buyListing, runeTokenId, readWithdrawals, readCheckins, readMetrics, adminUnlock, adminLock, adminGrant, adminSetStats, adminRemove, adminUpdateMonsterIndex, legacyItems, legacyFactions, usesLegacyAdminApi, adminAdjustInventory, adminUpdatePlayer, adminReleaseBattle, adminSyncEconomy, adminPreviewEconomyPolicy, adminProposeEconomyPolicy, adminApplyEconomyPolicy, adminEmergencyPauseEconomy, adminPauseEconomyDesk, adminObserveRuneSupply, adminReleaseGold, adminFundPlayer, adminFundPlayerQueued, adminObserveGoldPolicy, adminConfigureGenesisPasses, adminAdjustAll;
|
|
10039
10043
|
var init_game = __esm({
|
|
10040
10044
|
"../../products/runerealm-ui/src/lib/game.ts"() {
|
|
10041
10045
|
"use strict";
|
|
@@ -10220,6 +10224,8 @@ var init_game = __esm({
|
|
|
10220
10224
|
...replace ? { Replace: replace } : {}
|
|
10221
10225
|
});
|
|
10222
10226
|
claimDaily = () => write({ Action: "Daily.Claim" });
|
|
10227
|
+
grantDelegate = (key, label, scopes) => write({ Action: "Delegate.Grant", Delegate: key, Days: "30", Scopes: scopes.join(","), Label: label });
|
|
10228
|
+
revokeDelegate = (key) => write({ Action: "Delegate.Revoke", Delegate: key });
|
|
10223
10229
|
openLootbox = (rarity) => write({
|
|
10224
10230
|
Action: "Lootbox.Open",
|
|
10225
10231
|
...rarity ? { Rarity: String(rarity) } : {}
|
|
@@ -12121,6 +12127,7 @@ export {
|
|
|
12121
12127
|
forfeitBattle,
|
|
12122
12128
|
formatUnits,
|
|
12123
12129
|
fundVenueVault,
|
|
12130
|
+
grantDelegate,
|
|
12124
12131
|
attack2 as huntAttack,
|
|
12125
12132
|
capture as huntCapture,
|
|
12126
12133
|
declineCapture as huntDeclineCapture,
|
|
@@ -12191,6 +12198,7 @@ export {
|
|
|
12191
12198
|
reopenFleetBattle,
|
|
12192
12199
|
resetReadObservations as resetSettleObservations,
|
|
12193
12200
|
retrieveMonster,
|
|
12201
|
+
revokeDelegate,
|
|
12194
12202
|
sendToVenue,
|
|
12195
12203
|
setActiveMonster,
|
|
12196
12204
|
setComposedWrites,
|
package/dist/graph.json
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
{
|
|
2
2
|
"node": "https://hyperbeam.tylerw.ai",
|
|
3
3
|
"owner": "DA9qhP25ZPz6MHIhO-7aNHDN3LsTAL7yCKYIkqr13Z8",
|
|
4
|
-
"deployedAt": "2026-10-
|
|
4
|
+
"deployedAt": "2026-10-13T20:32:44.269Z",
|
|
5
5
|
"processes": {
|
|
6
|
-
"game": "
|
|
7
|
-
"rune": "
|
|
8
|
-
"pusd": "
|
|
9
|
-
"dao": "
|
|
6
|
+
"game": "mZXrRQk5c7ZVHuGonNFoZJS0glzPbVPXppXxf-Yvnss",
|
|
7
|
+
"rune": "rSQ-RU0kLN4hH_XpBmHr27raBONz-Q555FE-UHfH3Z0",
|
|
8
|
+
"pusd": "syBuQpeY4zxo5-fZlQIeJJca95sNrIXm1cSaxhG1MEc",
|
|
9
|
+
"dao": "yAPcE8Iequ6O5RLodmt68y0-wBuZMTb4QrABk-nR-_E",
|
|
10
10
|
"elements": {
|
|
11
|
-
"earth": "
|
|
12
|
-
"air": "
|
|
13
|
-
"fire": "
|
|
14
|
-
"water": "
|
|
11
|
+
"earth": "kA8euZS-JoR2_0F2gG9J1PKv1Gb7LvHAPn5ZqDvN2c0",
|
|
12
|
+
"air": "RwfJbVBJPTFO-glxA7pPt5UH_jGJrN_w4IYtgyQ89_M",
|
|
13
|
+
"fire": "SmJamo7AoHy-a1OMwznZmAvsySkea9wZpB6zo1Htn04",
|
|
14
|
+
"water": "bQprta3SB56X7qc-Sy-H9TtWyBn3FYr5LZNWr06ZZWU"
|
|
15
15
|
},
|
|
16
|
-
"internalVenue": "
|
|
17
|
-
"externalVenue": "
|
|
18
|
-
"hunt": "
|
|
16
|
+
"internalVenue": "aYGC95bN3yFXtXzsdpMf5efZwLAxrDz_9wAC3Md2pJs",
|
|
17
|
+
"externalVenue": "aqEd7Ves2Aa3ZOVXy2GLFsQH1wDFnbdzeKeqRkc82xQ",
|
|
18
|
+
"hunt": "V_csdk4nEQekdAscno-53hyPbWpXAcoTUoZC326psfA",
|
|
19
19
|
"huntWorkers": [
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
20
|
+
"V_csdk4nEQekdAscno-53hyPbWpXAcoTUoZC326psfA",
|
|
21
|
+
"OYUhLOOCv633Ym4vMDqIaZ6_ejy_8u-BMm_FuKGqCoQ",
|
|
22
|
+
"Su4QofBGiPe23owGtRowQddSHvQwosOerUYWXNUpI14",
|
|
23
|
+
"pOT2ZlH2RaJXBfed-xPXsSy9w4I0ecLgz6oFtigAY7U",
|
|
24
|
+
"s_6G3N3aYuiia5imSVoC_r9N99qNn3L-0NH4L35C4yE"
|
|
25
25
|
],
|
|
26
26
|
"battleWorkers": [
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
27
|
+
"igzqx4cU8RUy2JPISRKgIuTlDnZRdrOl1nVocZUtZpU",
|
|
28
|
+
"QhpuInPUTWi9iSfZbap5dt8ndyuuBjms7ol7cFeSYOg",
|
|
29
|
+
"LDOQ4MuVfPMg65Zn0pUbImfJxM3kA5Dj6Kc6BXmrEGY",
|
|
30
|
+
"B_Xe8Y0NcKxGdMq_xEJcJ0mqQi1Su0DIlnDd9bWLBh4",
|
|
31
|
+
"2SRdbVgZAlmjnZup4aB8kVB12Zgq_OwngJmRRMokcRM"
|
|
32
32
|
]
|
|
33
33
|
},
|
|
34
34
|
"huntNode": "https://hyperbeam.tylerw.ai",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "paralith-mcp",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"description": "MCP server for Paralith on AO: an AI with one 24-word phrase plays Rune Realm, trades and bridges PUSD; plus paralith-bridge, the bridge operator CLI (TEST deployment).",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"homepage": "https://docs.paralithmarkets.com/ai/mcp",
|