Type alias FactionEnlistment

FactionEnlistment: {
    accounts: [{
        name: "PlayerFactionData";
        type: {
            fields: [{
                name: "owner";
                type: "publicKey";
            }, {
                name: "enlistedAtTimestamp";
                type: "i64";
            }, {
                name: "factionId";
                type: "u8";
            }, {
                name: "bump";
                type: "u8";
            }, {
                name: "padding";
                type: {
                    array: ["u64", 5];
                };
            }];
            kind: "struct";
        };
    }];
    errors: [{
        code: 300;
        msg: "Faction ID must be 0, 1, or 2.";
        name: "FactionTypeError";
    }];
    instructions: [{
        accounts: [{
            isMut: true;
            isSigner: false;
            name: "playerFactionAccount";
        }, {
            isMut: false;
            isSigner: true;
            name: "playerAccount";
        }, {
            isMut: false;
            isSigner: false;
            name: "systemProgram";
        }, {
            isMut: false;
            isSigner: false;
            name: "clock";
        }];
        args: [{
            name: "bump";
            type: "u8";
        }, {
            name: "factionId";
            type: "u8";
        }];
        name: "processEnlistPlayer";
    }];
    metadata: {};
    name: "enlist_to_faction";
    version: "0.0.0";
}

Type declaration

  • accounts: [{
        name: "PlayerFactionData";
        type: {
            fields: [{
                name: "owner";
                type: "publicKey";
            }, {
                name: "enlistedAtTimestamp";
                type: "i64";
            }, {
                name: "factionId";
                type: "u8";
            }, {
                name: "bump";
                type: "u8";
            }, {
                name: "padding";
                type: {
                    array: ["u64", 5];
                };
            }];
            kind: "struct";
        };
    }]
  • errors: [{
        code: 300;
        msg: "Faction ID must be 0, 1, or 2.";
        name: "FactionTypeError";
    }]
  • instructions: [{
        accounts: [{
            isMut: true;
            isSigner: false;
            name: "playerFactionAccount";
        }, {
            isMut: false;
            isSigner: true;
            name: "playerAccount";
        }, {
            isMut: false;
            isSigner: false;
            name: "systemProgram";
        }, {
            isMut: false;
            isSigner: false;
            name: "clock";
        }];
        args: [{
            name: "bump";
            type: "u8";
        }, {
            name: "factionId";
            type: "u8";
        }];
        name: "processEnlistPlayer";
    }]
  • metadata: {}
    • name: "enlist_to_faction"
    • version: "0.0.0"