{
  "address": "vestZ96ovTKZ47kMv2zpSodonPjFhKr6dRJrHCRgCDN",
  "metadata": {
    "name": "abyss_vesting",
    "version": "0.1.0",
    "spec": "0.1.0",
    "description": "Abyss dev-allocation vesting (Pinocchio)"
  },
  "instructions": [
    {
      "name": "initialize",
      "discriminator": [
        0
      ],
      "accounts": [
        {
          "name": "payer",
          "writable": true,
          "signer": true
        },
        {
          "name": "state",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": "vesting"
              },
              {
                "kind": "account",
                "path": "launch"
              }
            ]
          }
        },
        {
          "name": "launch",
          "signer": true
        },
        {
          "name": "beneficiary"
        },
        {
          "name": "vault"
        },
        {
          "name": "system_program",
          "address": "11111111111111111111111111111111"
        }
      ],
      "args": [
        {
          "name": "total",
          "type": "u64"
        },
        {
          "name": "start_ts",
          "type": "u64",
          "docs": [
            "unix seconds"
          ]
        },
        {
          "name": "cliff_secs",
          "type": "u64",
          "docs": [
            "seconds"
          ]
        },
        {
          "name": "end_ts",
          "type": "u64",
          "docs": [
            "unix seconds"
          ]
        }
      ],
      "docs": [
        "launch must sign: the state PDA is derived from it, so only its owner (the curve program) can open the vesting."
      ]
    },
    {
      "name": "claim",
      "discriminator": [
        1
      ],
      "accounts": [
        {
          "name": "beneficiary",
          "signer": true
        },
        {
          "name": "state",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": "vesting"
              },
              {
                "kind": "account",
                "path": "launch"
              }
            ]
          }
        },
        {
          "name": "launch"
        },
        {
          "name": "vault",
          "writable": true
        },
        {
          "name": "dst",
          "writable": true
        },
        {
          "name": "mint"
        },
        {
          "name": "token_program"
        }
      ],
      "args": [],
      "remaining_accounts": "Mints with the transfer hook: append 4 remaining accounts [sender_taint (writable), recipient_taint (writable), hook_program, extra_metas]. taint = hook PDA ['taint', token_account] of the source / destination token account; extra_metas = hook PDA ['extra-account-metas', mint]. The destination's taint PDA must be opened first (hook.open_taint): vested tokens arrive tainted."
    }
  ],
  "accounts": [
    {
      "name": "VestingState"
    }
  ],
  "types": [
    {
      "name": "VestingState",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "beneficiary",
            "type": "pubkey"
          },
          {
            "name": "vault",
            "type": "pubkey"
          },
          {
            "name": "total",
            "type": "u64"
          },
          {
            "name": "released",
            "type": "u64"
          },
          {
            "name": "start_ts",
            "type": "u64"
          },
          {
            "name": "cliff_secs",
            "type": "u64"
          },
          {
            "name": "end_ts",
            "type": "u64"
          },
          {
            "name": "bump",
            "type": "u8"
          }
        ]
      }
    }
  ]
}
