|
1 | | -name: Withdraw Fees Transaction |
| 1 | +name: Build Withdraw Fees Transaction |
2 | 2 |
|
3 | 3 | on: |
4 | | - workflow_dispatch: |
5 | | - inputs: |
6 | | - withdrawal_type: |
7 | | - description: "Select what to withdraw" |
8 | | - type: choice |
9 | | - options: |
10 | | - - Withdraw Protocol Fees |
11 | | - - Withdraw Coverage Fees |
12 | | - - Withdraw DEEP Reserves |
13 | | - tickets: |
14 | | - description: "Comma-separated list of Ticket Object IDs (e.g. 0x123..., 0xabc...)" |
15 | | - required: true |
16 | | - type: string |
| 4 | + workflow_dispatch: |
| 5 | + inputs: |
| 6 | + withdrawal_type: |
| 7 | + description: "Select what to withdraw" |
| 8 | + type: choice |
| 9 | + options: |
| 10 | + - Withdraw Protocol Fees |
| 11 | + - Withdraw Coverage Fees |
| 12 | + - Withdraw DEEP Reserves |
| 13 | + tickets: |
| 14 | + description: "Comma-separated list of Ticket Object IDs (e.g. 0x123..., 0xabc...)" |
| 15 | + required: true |
| 16 | + type: string |
17 | 17 |
|
18 | 18 | jobs: |
19 | | - build-withdraw-tx: |
20 | | - runs-on: ubuntu-latest |
21 | | - env: |
22 | | - # Multisig specific config (can be secrets or vars) |
23 | | - MULTISIG_ADDRESS: ${{ vars.MULTISIG_ADDRESS }} |
24 | | - MULTISIG_SIGNERS_BASE64_PUBKEYS: ${{ vars.MULTISIG_SIGNERS_BASE64_PUBKEYS }} |
25 | | - MULTISIG_THRESHOLD: ${{ vars.MULTISIG_THRESHOLD }} |
26 | | - MULTISIG_WEIGHTS: ${{ vars.MULTISIG_WEIGHTS }} |
27 | | - |
28 | | - # Dynamic Inputs |
29 | | - TICKETS: ${{ inputs.tickets }} |
30 | | - steps: |
31 | | - - name: Checkout Code |
32 | | - uses: actions/checkout@v4 |
33 | | - |
34 | | - - name: Setup Node.js |
35 | | - uses: actions/setup-node@v4 |
36 | | - with: |
37 | | - node-version: 20 |
38 | | - |
39 | | - - name: Install Dependencies |
40 | | - run: npm ci |
41 | | - |
42 | | - - name: Build Protocol Fees Withdrawal |
43 | | - if: ${{ inputs.withdrawal_type == 'Withdraw Protocol Fees' }} |
44 | | - run: npx tsx examples/ticket/admin-withdraw-protocol-fee.ts |
45 | | - |
46 | | - - name: Build Coverage Fees Withdrawal |
47 | | - if: ${{ inputs.withdrawal_type == 'Withdraw Coverage Fees' }} |
48 | | - run: npx tsx examples/ticket/admin-withdraw-all-coins-coverage-fee.ts |
49 | | - |
50 | | - - name: Build DEEP Reserves Withdrawal |
51 | | - if: ${{ inputs.withdrawal_type == 'Withdraw DEEP Reserves' }} |
52 | | - run: npx tsx examples/ticket/admin-withdraw-all-deep-reserves.ts |
| 19 | + build-withdraw-tx: |
| 20 | + runs-on: ubuntu-latest |
| 21 | + env: |
| 22 | + # Multisig specific config (can be secrets or vars) |
| 23 | + MULTISIG_ADDRESS: ${{ vars.MULTISIG_ADDRESS }} |
| 24 | + MULTISIG_SIGNERS_BASE64_PUBKEYS: ${{ vars.MULTISIG_SIGNERS_BASE64_PUBKEYS }} |
| 25 | + MULTISIG_THRESHOLD: ${{ vars.MULTISIG_THRESHOLD }} |
| 26 | + MULTISIG_WEIGHTS: ${{ vars.MULTISIG_WEIGHTS }} |
| 27 | + |
| 28 | + # Dynamic Inputs |
| 29 | + TICKETS: ${{ inputs.tickets }} |
| 30 | + steps: |
| 31 | + - name: Checkout Code |
| 32 | + uses: actions/checkout@v4 |
| 33 | + |
| 34 | + - name: Setup Node.js |
| 35 | + uses: actions/setup-node@v4 |
| 36 | + with: |
| 37 | + node-version: 20 |
| 38 | + |
| 39 | + - name: Install Dependencies |
| 40 | + run: npm ci |
| 41 | + |
| 42 | + - name: Build Protocol Fees Withdrawal |
| 43 | + if: ${{ inputs.withdrawal_type == 'Withdraw Protocol Fees' }} |
| 44 | + run: npx tsx examples/ticket/admin-withdraw-protocol-fee.ts |
| 45 | + |
| 46 | + - name: Build Coverage Fees Withdrawal |
| 47 | + if: ${{ inputs.withdrawal_type == 'Withdraw Coverage Fees' }} |
| 48 | + run: npx tsx examples/ticket/admin-withdraw-all-coins-coverage-fee.ts |
| 49 | + |
| 50 | + - name: Build DEEP Reserves Withdrawal |
| 51 | + if: ${{ inputs.withdrawal_type == 'Withdraw DEEP Reserves' }} |
| 52 | + run: npx tsx examples/ticket/admin-withdraw-all-deep-reserves.ts |
0 commit comments