Type alias ProfileFactionIDL
ProfileFactionIDL: {
accounts: [{
docs: ["Stores a profile's enlisted faction on-chain."];
name: "profileFactionAccount";
type: {
fields: [{
docs: ["The data version of this account."];
name: "version";
type: "u8";
}, {
docs: ["The profile this faction enlistment is for."];
name: "profile";
type: "publicKey";
}, {
docs: ["The faction of the profile."];
name: "faction";
type: "u8";
}, {
docs: ["The bump for this account."];
name: "bump";
type: "u8";
}];
kind: "struct";
};
}];
instructions: [{
accounts: [{
docs: ["The key with auth permissions."];
isMut: false;
isSigner: true;
name: "key";
}, {
docs: ["The funder for the transaction."];
isMut: true;
isSigner: true;
name: "funder";
}, {
docs: ["The profile to change faction for."];
isMut: false;
isSigner: false;
name: "profile";
}, {
docs: ["The faction to change to."];
isMut: true;
isSigner: false;
name: "faction";
}, {
docs: ["The system program."];
isMut: false;
isSigner: false;
name: "systemProgram";
}];
args: [{
name: "keyIndex";
type: "u16";
}, {
name: "faction";
type: {
defined: "Faction";
};
}];
name: "chooseFaction";
}];
name: "profile_faction";
types: [{
docs: ["A faction that a player can belong to."];
name: "Faction";
type: {
kind: "enum";
variants: [{
name: "Unaligned";
}, {
name: "MUD";
}, {
name: "ONI";
}, {
name: "Ustur";
}];
};
}];
version: "0.7.1";
}
Type declaration
-
accounts: [{
docs: ["Stores a profile's enlisted faction on-chain."];
name: "profileFactionAccount";
type: {
fields: [{
docs: ["The data version of this account."];
name: "version";
type: "u8";
}, {
docs: ["The profile this faction enlistment is for."];
name: "profile";
type: "publicKey";
}, {
docs: ["The faction of the profile."];
name: "faction";
type: "u8";
}, {
docs: ["The bump for this account."];
name: "bump";
type: "u8";
}];
kind: "struct";
};
}]
-
instructions: [{
accounts: [{
docs: ["The key with auth permissions."];
isMut: false;
isSigner: true;
name: "key";
}, {
docs: ["The funder for the transaction."];
isMut: true;
isSigner: true;
name: "funder";
}, {
docs: ["The profile to change faction for."];
isMut: false;
isSigner: false;
name: "profile";
}, {
docs: ["The faction to change to."];
isMut: true;
isSigner: false;
name: "faction";
}, {
docs: ["The system program."];
isMut: false;
isSigner: false;
name: "systemProgram";
}];
args: [{
name: "keyIndex";
type: "u16";
}, {
name: "faction";
type: {
defined: "Faction";
};
}];
name: "chooseFaction";
}]
-
name: "profile_faction"
-
types: [{
docs: ["A faction that a player can belong to."];
name: "Faction";
type: {
kind: "enum";
variants: [{
name: "Unaligned";
}, {
name: "MUD";
}, {
name: "ONI";
}, {
name: "Ustur";
}];
};
}]
-
version: "0.7.1"