@staratlas/faction-enlistment
Advanced tools
Comparing version 0.4.6 to 0.5.0
@@ -0,7 +1,7 @@ | ||
import { Coder } from '@project-serum/anchor'; | ||
import { AnchorTypes, ExtractArrayType, ListenProgram, ProgramMethods } from '@staratlas/data-source'; | ||
import { FactionEnlistment as FactionEnlistmentIDL } from './idl/faction_enlistment'; | ||
import { AnchorTypes, ExtractArrayType, ListenProgram, ProgramMethods } from '@staratlas/data-source'; | ||
import { Coder } from '@project-serum/anchor'; | ||
import { PlayerFactionData } from './playerFactionData'; | ||
export { IDL as ENLIST_TO_FACTION_IDL } from './idl/faction_enlistment'; | ||
export type { FactionEnlistment as EnlistToFactionIDL } from './idl/faction_enlistment'; | ||
export { IDL as ENLIST_TO_FACTION_IDL } from './idl/faction_enlistment'; | ||
export type FactionAccountsArray = ExtractArrayType<FactionEnlistmentIDL['accounts']>['name']; | ||
@@ -8,0 +8,0 @@ export type FactionEnlistmentIDLProgram = ProgramMethods<FactionEnlistmentIDL>; |
export * from './constants'; | ||
export * from './instructions'; | ||
export * from './playerFactionData'; | ||
export * from './instructions'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -18,4 +18,4 @@ "use strict"; | ||
__exportStar(require("./constants"), exports); | ||
__exportStar(require("./instructions"), exports); | ||
__exportStar(require("./playerFactionData"), exports); | ||
__exportStar(require("./instructions"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -0,4 +1,4 @@ | ||
import { AsyncSigner, InstructionReturn } from '@staratlas/data-source'; | ||
import { FactionEnlistmentIDLProgram } from '../constants'; | ||
import { AsyncSigner, InstructionReturn } from '@staratlas/data-source'; | ||
export declare function processEnlistPlayer(program: FactionEnlistmentIDLProgram, playerAccount: AsyncSigner, factionId: number): InstructionReturn; | ||
//# sourceMappingURL=enlistFaction.d.ts.map |
@@ -13,4 +13,4 @@ "use strict"; | ||
exports.processEnlistPlayer = void 0; | ||
const anchor_1 = require("@project-serum/anchor"); | ||
const web3_js_1 = require("@solana/web3.js"); | ||
const anchor_1 = require("@project-serum/anchor"); | ||
const playerFactionData_1 = require("../playerFactionData"); | ||
@@ -17,0 +17,0 @@ function processEnlistPlayer(program, playerAccount, factionId) { |
@@ -0,5 +1,5 @@ | ||
import { KeyedAccountInfo, PublicKey } from '@solana/web3.js'; | ||
import { Account, DecodedAccountData } from '@staratlas/data-source'; | ||
import { EnlistToFactionIDL } from '.'; | ||
import { PlayerFactionDataAccount, FactionEnlistmentIDLProgram } from './constants'; | ||
import { KeyedAccountInfo, PublicKey } from '@solana/web3.js'; | ||
import { FactionEnlistmentIDLProgram, PlayerFactionDataAccount } from './constants'; | ||
export declare function playerFactionDataEquals(factionData1: PlayerFactionDataAccount, factionData2: PlayerFactionDataAccount): boolean; | ||
@@ -6,0 +6,0 @@ export declare const FACTION_DATA_SIZE: number; |
@@ -14,4 +14,4 @@ "use strict"; | ||
exports.PlayerFactionData = exports.FACTION_DATA_SIZE = exports.playerFactionDataEquals = void 0; | ||
const web3_js_1 = require("@solana/web3.js"); | ||
const data_source_1 = require("@staratlas/data-source"); | ||
const web3_js_1 = require("@solana/web3.js"); | ||
function playerFactionDataEquals(factionData1, factionData2) { | ||
@@ -18,0 +18,0 @@ return (factionData1.enlistedAtTimestamp == factionData2.enlistedAtTimestamp && |
{ | ||
"name": "@staratlas/faction-enlistment", | ||
"version": "0.4.6", | ||
"version": "0.5.0", | ||
"description": "> TODO: description", | ||
@@ -23,4 +23,5 @@ "author": "Brett Etter <brett.etter@staratlas.com>", | ||
"@solana/web3.js": "^1.74.0", | ||
"@staratlas/data-source": "^0.4.6" | ||
} | ||
"@staratlas/data-source": "^0.5.0" | ||
}, | ||
"gitHead": "e5891955cc4a9ba5445460cba45db65a406b324c" | ||
} |
@@ -1,2 +0,2 @@ | ||
import { FactionEnlistment as FactionEnlistmentIDL } from './idl/faction_enlistment'; | ||
import { Coder } from '@project-serum/anchor'; | ||
import { | ||
@@ -8,7 +8,7 @@ AnchorTypes, | ||
} from '@staratlas/data-source'; | ||
import { Coder } from '@project-serum/anchor'; | ||
import { FactionEnlistment as FactionEnlistmentIDL } from './idl/faction_enlistment'; | ||
import { PlayerFactionData } from './playerFactionData'; | ||
export { IDL as ENLIST_TO_FACTION_IDL } from './idl/faction_enlistment'; | ||
export type { FactionEnlistment as EnlistToFactionIDL } from './idl/faction_enlistment'; | ||
export { IDL as ENLIST_TO_FACTION_IDL } from './idl/faction_enlistment'; | ||
@@ -15,0 +15,0 @@ export type FactionAccountsArray = ExtractArrayType< |
export * from './constants'; | ||
export * from './instructions'; | ||
export * from './playerFactionData'; | ||
export * from './instructions'; |
@@ -0,5 +1,5 @@ | ||
import { web3 } from '@project-serum/anchor'; | ||
import { SystemProgram } from '@solana/web3.js'; | ||
import { AsyncSigner, InstructionReturn } from '@staratlas/data-source'; | ||
import { FactionEnlistmentIDLProgram } from '../constants'; | ||
import { AsyncSigner, InstructionReturn } from '@staratlas/data-source'; | ||
import { SystemProgram } from '@solana/web3.js'; | ||
import { web3 } from '@project-serum/anchor'; | ||
import { PlayerFactionData } from '../playerFactionData'; | ||
@@ -6,0 +6,0 @@ |
@@ -0,1 +1,2 @@ | ||
import { KeyedAccountInfo, PublicKey } from '@solana/web3.js'; | ||
import { | ||
@@ -10,6 +11,5 @@ Account, | ||
import { | ||
FactionEnlistmentIDLProgram, | ||
PlayerFactionDataAccount, | ||
FactionEnlistmentIDLProgram, | ||
} from './constants'; | ||
import { KeyedAccountInfo, PublicKey } from '@solana/web3.js'; | ||
@@ -16,0 +16,0 @@ export function playerFactionDataEquals( |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
44216
34
1
+ Added@staratlas/data-source@0.5.9(transitive)
+ Addedneverthrow@6.2.2(transitive)
- Removed@staratlas/data-source@0.4.6(transitive)
- Removed@types/bs58@4.0.4(transitive)
- Removed@types/lodash@4.17.15(transitive)
- Removed@types/node@22.13.5(transitive)
- Removedundici-types@6.20.0(transitive)