{
  "address": "pytcD8uUjPxSLMsNqoVnm9dXQw9tKJJf3CQnGwa8oL7",
  "metadata": {
    "name": "publisher_caps",
    "version": "1.0.0",
    "spec": "0.1.0",
    "description": "Created with Anchor"
  },
  "instructions": [
    {
      "name": "close_publisher_caps",
      "discriminator": [36, 234, 184, 214, 76, 203, 153, 144],
      "accounts": [
        {
          "name": "write_authority",
          "signer": true,
          "relations": ["publisher_caps"]
        },
        {
          "name": "publisher_caps",
          "writable": true
        }
      ],
      "args": []
    },
    {
      "name": "init_publisher_caps",
      "discriminator": [193, 208, 32, 97, 144, 247, 246, 168],
      "accounts": [
        {
          "name": "signer",
          "signer": true
        },
        {
          "name": "publisher_caps",
          "writable": true
        }
      ],
      "args": []
    },
    {
      "name": "verify_publisher_caps",
      "discriminator": [13, 139, 213, 135, 4, 154, 93, 138],
      "accounts": [
        {
          "name": "signer",
          "signer": true
        },
        {
          "name": "publisher_caps",
          "writable": true
        },
        {
          "name": "encoded_vaa",
          "docs": ["which is the recommended way"]
        }
      ],
      "args": [
        {
          "name": "proof",
          "type": {
            "vec": {
              "array": ["u8", 20]
            }
          }
        }
      ]
    },
    {
      "name": "write_publisher_caps",
      "discriminator": [142, 26, 237, 82, 9, 200, 27, 97],
      "accounts": [
        {
          "name": "write_authority",
          "signer": true,
          "relations": ["publisher_caps"]
        },
        {
          "name": "publisher_caps",
          "writable": true
        }
      ],
      "args": [
        {
          "name": "index",
          "type": "u32"
        },
        {
          "name": "data",
          "type": "bytes"
        }
      ]
    }
  ],
  "accounts": [
    {
      "name": "PublisherCaps",
      "discriminator": [5, 87, 155, 44, 121, 90, 35, 134]
    }
  ],
  "errors": [
    {
      "code": 6000,
      "name": "InvalidWormholeMessage"
    },
    {
      "code": 6001,
      "name": "InvalidMerkleProof"
    },
    {
      "code": 6002,
      "name": "CantMutateVerifiedPublisherCaps"
    },
    {
      "code": 6003,
      "name": "DataOverflow"
    },
    {
      "code": 6004,
      "name": "WrongVaaOwner"
    },
    {
      "code": 6005,
      "name": "WrongWriteAuthority"
    },
    {
      "code": 6006,
      "name": "WrongEmitterAddress"
    },
    {
      "code": 6007,
      "name": "WrongEmitterChain"
    },
    {
      "code": 6008,
      "name": "WrongDiscriminator"
    }
  ],
  "types": [
    {
      "name": "PublisherCaps",
      "serialization": "bytemuck",
      "repr": {
        "kind": "c"
      },
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "write_authority",
            "type": "pubkey"
          },
          {
            "name": "is_verified",
            "type": "u8"
          },
          {
            "name": "padding",
            "type": {
              "array": ["u8", 4]
            }
          },
          {
            "name": "publisher_caps_message_buffer",
            "type": {
              "array": ["u8", 40971]
            }
          }
        ]
      }
    }
  ]
}
