@staratlas/profile-faction
Advanced tools
Comparing version 0.2.4 to 0.3.0
@@ -12,3 +12,3 @@ import { Coder, Provider } from '@project-serum/anchor'; | ||
export type ProfileFactionIDLAccounts = ProfileFactionTypes['Accounts']; | ||
export type ProfileFactionData = ProfileFactionIDLAccounts['profileFactionAccount']; | ||
export type ProfileFactionData = ProfileFactionIDLAccounts['playerFaction']; | ||
export declare const profileFactionErrorMap: import("@staratlas/data-source").ErrorMap<ProfileFactionIDL>; | ||
@@ -15,0 +15,0 @@ export type ProfileFactionAccounts = { |
export type ProfileFaction = { | ||
version: '0.6.0'; | ||
version: '0.3.0'; | ||
name: 'profile_faction'; | ||
@@ -55,4 +55,4 @@ instructions: [ | ||
{ | ||
name: 'profileFactionAccount'; | ||
docs: ["Stores a profile's enlisted faction on-chain."]; | ||
name: 'playerFaction'; | ||
docs: ["Stores a player's enlisted faction on-chain."]; | ||
type: { | ||
@@ -59,0 +59,0 @@ kind: 'struct'; |
@@ -5,3 +5,3 @@ "use strict"; | ||
exports.IDL = { | ||
version: '0.6.0', | ||
version: '0.3.0', | ||
name: 'profile_faction', | ||
@@ -59,4 +59,4 @@ instructions: [ | ||
{ | ||
name: 'profileFactionAccount', | ||
docs: ["Stores a profile's enlisted faction on-chain."], | ||
name: 'playerFaction', | ||
docs: ["Stores a player's enlisted faction on-chain."], | ||
type: { | ||
@@ -63,0 +63,0 @@ kind: 'struct', |
@@ -42,3 +42,3 @@ /// <reference types="bn.js" /> | ||
* @param keyIndex - The Index of the `key` in the profile's permission list | ||
* @returns the instruction(s) to choose the new faction and the profileFactionAccount account address | ||
* @returns the instruction(s) to choose the new faction and the playerFaction account address | ||
*/ | ||
@@ -54,3 +54,3 @@ static chooseFactionBareBones(program: ProfileFactionIDLProgram, key: AsyncSigner, profile: PublicKey, faction: Exclude<Faction, Faction.Unaligned>, keyIndex: number): { | ||
* @param faction - The faction to change to. Must not be unaligned. | ||
* @returns the instruction(s) to choose the new faction and the profileFactionAccount account address | ||
* @returns the instruction(s) to choose the new faction and the playerFaction account address | ||
*/ | ||
@@ -57,0 +57,0 @@ static chooseFaction(program: ProfileFactionIDLProgram, keyInput: ProfileKeyInput<FactionPermissions, AsyncSigner>, faction: Exclude<Faction, Faction.Unaligned>): { |
@@ -64,3 +64,3 @@ "use strict"; | ||
* @param keyIndex - The Index of the `key` in the profile's permission list | ||
* @returns the instruction(s) to choose the new faction and the profileFactionAccount account address | ||
* @returns the instruction(s) to choose the new faction and the playerFaction account address | ||
*/ | ||
@@ -93,3 +93,3 @@ static chooseFactionBareBones(program, key, profile, faction, keyIndex) { | ||
* @param faction - The faction to change to. Must not be unaligned. | ||
* @returns the instruction(s) to choose the new faction and the profileFactionAccount account address | ||
* @returns the instruction(s) to choose the new faction and the playerFaction account address | ||
*/ | ||
@@ -111,3 +111,3 @@ static chooseFaction(program, keyInput, faction) { | ||
}; | ||
ProfileFactionAccount.ACCOUNT_NAME = 'profileFactionAccount'; | ||
ProfileFactionAccount.ACCOUNT_NAME = 'playerFaction'; | ||
ProfileFactionAccount.MIN_DATA_SIZE = 8 + // discriminator | ||
@@ -114,0 +114,0 @@ 1 + // version |
{ | ||
"name": "@staratlas/profile-faction", | ||
"version": "0.2.4", | ||
"version": "0.3.0", | ||
"description": "> TODO: description", | ||
@@ -24,6 +24,6 @@ "author": "Bryan Zierk <bryan@staratlas.com>", | ||
"@solana/web3.js": "^1.74.0", | ||
"@staratlas/data-source": "^0.5.0", | ||
"@staratlas/player-profile": "^0.7.3" | ||
"@staratlas/data-source": "^0.6.0", | ||
"@staratlas/player-profile": "^0.8.0" | ||
}, | ||
"gitHead": "65238481865c08162649a892883bf46d0f0de124" | ||
"gitHead": "2c8459bbb79a178c9fa7ed9d3abc62ce5fadcea7" | ||
} |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40568
+ Added@staratlas/data-source@0.6.7(transitive)
+ Added@staratlas/player-profile@0.8.7(transitive)
- Removed@staratlas/data-source@0.5.9(transitive)
- Removed@staratlas/player-profile@0.7.3(transitive)