pyre-world-kit 1.0.7 → 1.0.8
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/actions.d.ts +5 -0
- package/dist/actions.js +9 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -2
- package/package.json +1 -1
- package/src/actions.ts +9 -0
- package/src/index.ts +1 -0
package/dist/actions.d.ts
CHANGED
|
@@ -81,3 +81,8 @@ export declare function confirmAction(connection: Connection, signature: string,
|
|
|
81
81
|
export { createEphemeralAgent } from 'torchsdk';
|
|
82
82
|
/** Get the Raydium pool state PDA for an ascended faction's DEX pool */
|
|
83
83
|
export declare function getDexPool(mint: string): PublicKey;
|
|
84
|
+
/** Get Raydium pool vault addresses for an ascended faction */
|
|
85
|
+
export declare function getDexVaults(mint: string): {
|
|
86
|
+
solVault: string;
|
|
87
|
+
tokenVault: string;
|
|
88
|
+
};
|
package/dist/actions.js
CHANGED
|
@@ -46,6 +46,7 @@ exports.convertTithe = convertTithe;
|
|
|
46
46
|
exports.verifyAgent = verifyAgent;
|
|
47
47
|
exports.confirmAction = confirmAction;
|
|
48
48
|
exports.getDexPool = getDexPool;
|
|
49
|
+
exports.getDexVaults = getDexVaults;
|
|
49
50
|
const web3_js_1 = require("@solana/web3.js");
|
|
50
51
|
const bs58_1 = __importDefault(require("bs58"));
|
|
51
52
|
const torchsdk_1 = require("torchsdk");
|
|
@@ -433,3 +434,11 @@ function getDexPool(mint) {
|
|
|
433
434
|
const { poolState } = (0, torchsdk_1.getRaydiumMigrationAccounts)(new web3_js_1.PublicKey(mint));
|
|
434
435
|
return poolState;
|
|
435
436
|
}
|
|
437
|
+
/** Get Raydium pool vault addresses for an ascended faction */
|
|
438
|
+
function getDexVaults(mint) {
|
|
439
|
+
const accts = (0, torchsdk_1.getRaydiumMigrationAccounts)(new web3_js_1.PublicKey(mint));
|
|
440
|
+
return {
|
|
441
|
+
solVault: (accts.isWsolToken0 ? accts.token0Vault : accts.token1Vault).toString(),
|
|
442
|
+
tokenVault: (accts.isWsolToken0 ? accts.token1Vault : accts.token0Vault).toString(),
|
|
443
|
+
};
|
|
444
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* so agents think in factions, not tokens.
|
|
7
7
|
*/
|
|
8
8
|
export type { FactionStatus, FactionTier, Strategy, AgentHealth, FactionSummary, FactionDetail, Stronghold, AgentLink, Comms, WarChest, WarLoan, WarLoanWithAgent, Member, FactionListResult, MembersResult, CommsResult, AllWarLoansResult, LaunchFactionParams, JoinFactionParams, DirectJoinFactionParams, DefectParams, RallyParams, RequestWarLoanParams, RepayWarLoanParams, SiegeParams, TradeOnDexParams, ClaimSpoilsParams, CreateStrongholdParams, FundStrongholdParams, WithdrawFromStrongholdParams, RecruitAgentParams, ExileAgentParams, CoupParams, WithdrawAssetsParams, AscendParams, RazeParams, TitheParams, ConvertTitheParams, JoinFactionResult, LaunchFactionResult, TransactionResult, EphemeralAgent, SaidVerification, ConfirmResult, FactionSortOption, FactionStatusFilter, FactionListParams, FactionPower, AllianceCluster, RivalFaction, AgentProfile, AgentFactionPosition, WorldEventType, WorldEvent, WorldStats, } from './types';
|
|
9
|
-
export { getFactions, getFaction, getMembers, getComms, getJoinQuote, getDefectQuote, getStronghold, getStrongholdForAgent, getAgentLink, getWarChest, getWarLoan, getAllWarLoans, launchFaction, joinFaction, directJoinFaction, defect, rally, requestWarLoan, repayWarLoan, tradeOnDex, claimSpoils, createStronghold, fundStronghold, withdrawFromStronghold, recruitAgent, exileAgent, coup, withdrawAssets, siege, ascend, raze, tithe, convertTithe, verifyAgent, confirmAction, createEphemeralAgent, getDexPool, } from './actions';
|
|
9
|
+
export { getFactions, getFaction, getMembers, getComms, getJoinQuote, getDefectQuote, getStronghold, getStrongholdForAgent, getAgentLink, getWarChest, getWarLoan, getAllWarLoans, launchFaction, joinFaction, directJoinFaction, defect, rally, requestWarLoan, repayWarLoan, tradeOnDex, claimSpoils, createStronghold, fundStronghold, withdrawFromStronghold, recruitAgent, exileAgent, coup, withdrawAssets, siege, ascend, raze, tithe, convertTithe, verifyAgent, confirmAction, createEphemeralAgent, getDexPool, getDexVaults, } from './actions';
|
|
10
10
|
export { getFactionPower, getFactionLeaderboard, detectAlliances, getFactionRivals, getAgentProfile, getAgentFactions, getWorldFeed, getWorldStats, } from './intel';
|
|
11
11
|
export { isPyreMint, grindPyreMint } from './vanity';
|
|
12
12
|
export { PROGRAM_ID, LAMPORTS_PER_SOL, TOKEN_MULTIPLIER, TOTAL_SUPPLY } from 'torchsdk';
|
package/dist/index.js
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* so agents think in factions, not tokens.
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.
|
|
11
|
-
exports.TOTAL_SUPPLY = void 0;
|
|
10
|
+
exports.LAMPORTS_PER_SOL = exports.PROGRAM_ID = exports.grindPyreMint = exports.isPyreMint = exports.getWorldStats = exports.getWorldFeed = exports.getAgentFactions = exports.getAgentProfile = exports.getFactionRivals = exports.detectAlliances = exports.getFactionLeaderboard = exports.getFactionPower = exports.getDexVaults = exports.getDexPool = exports.createEphemeralAgent = exports.confirmAction = exports.verifyAgent = exports.convertTithe = exports.tithe = exports.raze = exports.ascend = exports.siege = exports.withdrawAssets = exports.coup = exports.exileAgent = exports.recruitAgent = exports.withdrawFromStronghold = exports.fundStronghold = exports.createStronghold = exports.claimSpoils = exports.tradeOnDex = exports.repayWarLoan = exports.requestWarLoan = exports.rally = exports.defect = exports.directJoinFaction = exports.joinFaction = exports.launchFaction = exports.getAllWarLoans = exports.getWarLoan = exports.getWarChest = exports.getAgentLink = exports.getStrongholdForAgent = exports.getStronghold = exports.getDefectQuote = exports.getJoinQuote = exports.getComms = exports.getMembers = exports.getFaction = exports.getFactions = void 0;
|
|
11
|
+
exports.TOTAL_SUPPLY = exports.TOKEN_MULTIPLIER = void 0;
|
|
12
12
|
// ─── Actions ───────────────────────────────────────────────────────
|
|
13
13
|
var actions_1 = require("./actions");
|
|
14
14
|
// Read operations
|
|
@@ -54,6 +54,7 @@ Object.defineProperty(exports, "confirmAction", { enumerable: true, get: functio
|
|
|
54
54
|
// Utility
|
|
55
55
|
Object.defineProperty(exports, "createEphemeralAgent", { enumerable: true, get: function () { return actions_1.createEphemeralAgent; } });
|
|
56
56
|
Object.defineProperty(exports, "getDexPool", { enumerable: true, get: function () { return actions_1.getDexPool; } });
|
|
57
|
+
Object.defineProperty(exports, "getDexVaults", { enumerable: true, get: function () { return actions_1.getDexVaults; } });
|
|
57
58
|
// ─── Intel ─────────────────────────────────────────────────────────
|
|
58
59
|
var intel_1 = require("./intel");
|
|
59
60
|
Object.defineProperty(exports, "getFactionPower", { enumerable: true, get: function () { return intel_1.getFactionPower; } });
|
package/package.json
CHANGED
package/src/actions.ts
CHANGED
|
@@ -659,3 +659,12 @@ export function getDexPool(mint: string): PublicKey {
|
|
|
659
659
|
const { poolState } = getRaydiumMigrationAccounts(new PublicKey(mint));
|
|
660
660
|
return poolState;
|
|
661
661
|
}
|
|
662
|
+
|
|
663
|
+
/** Get Raydium pool vault addresses for an ascended faction */
|
|
664
|
+
export function getDexVaults(mint: string): { solVault: string; tokenVault: string } {
|
|
665
|
+
const accts = getRaydiumMigrationAccounts(new PublicKey(mint));
|
|
666
|
+
return {
|
|
667
|
+
solVault: (accts.isWsolToken0 ? accts.token0Vault : accts.token1Vault).toString(),
|
|
668
|
+
tokenVault: (accts.isWsolToken0 ? accts.token1Vault : accts.token0Vault).toString(),
|
|
669
|
+
};
|
|
670
|
+
}
|