Function vaultDataEquals

  • Checks if two instances of ProfileVaultAccount are equal.

    Parameters

    • profileVault1: AnchorTypeDef<{
          docs: ["An authority over vaults for a profile"];
          name: "vaultAuthority";
          type: {
              fields: [{
                  docs: ["The data version of this account."];
                  name: "version";
                  type: "u8";
              }, {
                  docs: ["The profile the authority is for"];
                  name: "profile";
                  type: "publicKey";
              }, {
                  docs: ["The seed of this authority"];
                  name: "vaultSeed";
                  type: "publicKey";
              }, {
                  docs: ["The bump for this authority"];
                  name: "vaultBump";
                  type: "u8";
              }];
              kind: "struct";
          };
      } & {
          name: "vaultAuthority";
      }, AnchorDefined<ProfileVaultIDL, Record<string, never>>>

      Data for first StakingVarsAccount

    • profileVault2: AnchorTypeDef<{
          docs: ["An authority over vaults for a profile"];
          name: "vaultAuthority";
          type: {
              fields: [{
                  docs: ["The data version of this account."];
                  name: "version";
                  type: "u8";
              }, {
                  docs: ["The profile the authority is for"];
                  name: "profile";
                  type: "publicKey";
              }, {
                  docs: ["The seed of this authority"];
                  name: "vaultSeed";
                  type: "publicKey";
              }, {
                  docs: ["The bump for this authority"];
                  name: "vaultBump";
                  type: "u8";
              }];
              kind: "struct";
          };
      } & {
          name: "vaultAuthority";
      }, AnchorDefined<ProfileVaultIDL, Record<string, never>>>

      Data for second StakingVarsAccount

    Returns boolean

    InstructionReturnboolean

Generated using TypeDoc