name: Devnet Proposal

on:
  push:
    branches:
      - master
env:
  SOLANA_CLI_VERSION: 1.10.29
  NODE_VERSION: 17.0.1

jobs:
  create-bonding-proposal:
    name: Create Bonding Proposal
    runs-on: ubuntu-18.04
    steps:
      - uses: actions/checkout@v2
      - uses: ./.github/actions/deploy-with-gov-proposal/
        id: deploy
        with:
          program: spl_token_bonding
          program-id: 8qQkpoVeKuqRhhJWaAN5Q2CyWcavVidDC81tm7J5Qw9v
          network: https://devnet.genesysgo.net/
          keypair: ${{ secrets.DEPLOY_KEYPAIR }}
          governance: HDkW3MrrvqT9FPvuFBAVnSag1BLDx767MD2VXKfpCoCe
          name: Deploy Token Bonding ${{ github.ref_name }}
          description: https://github.com/StrataFoundation/strata/tree/${{ github.ref_name }}

  create-collective-proposal:
    name: Create Collective Proposal
    runs-on: ubuntu-18.04
    steps:
      - uses: actions/checkout@v2
      - uses: ./.github/actions/deploy-with-gov-proposal/
        id: deploy
        with:
          program: spl_token_collective
          program-id: 4NGSagpHoW35MAb15ZQgpDDHxVfneuSZZm3D1GjLZvLB
          network: https://devnet.genesysgo.net/
          keypair: ${{ secrets.DEPLOY_KEYPAIR }}
          governance: 6yc2jb7LCjYXD3hbRKjYkpx13j4VXYcCBzYsZbmntdVk
          name: Deploy Token Collective ${{ github.ref_name }}
          description: https://github.com/StrataFoundation/strata/tree/${{ github.ref_name }}

  create-fungible-entangler-proposal:
    name: Create Fungible Entangler Proposal
    runs-on: ubuntu-18.04
    steps:
      - uses: actions/checkout@v2
      - uses: ./.github/actions/deploy-with-gov-proposal/
        id: deploy
        with:
          program: fungible_entangler
          program-id: fent99TYZcj9PGbeooaZXEMQzMd7rz8vYFiudd8HevB
          network: https://devnet.genesysgo.net/
          keypair: ${{ secrets.DEPLOY_KEYPAIR }}
          governance: C2QmGPr3qFHUXYZdBJn8NEoNz2kcxBm9mwMoGMn2QFdq
          name: Deploy Fungible Entangler ${{ github.ref_name }}
          description: https://github.com/StrataFoundation/strata/tree/${{ github.ref_name }}
