-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (40 loc) · 1.35 KB
/
build-manage-version-tx.yml
File metadata and controls
47 lines (40 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Build Protocol Version Transaction
on:
workflow_dispatch:
inputs:
action_type:
description: "Select action"
type: choice
options:
- Enable Version
- Disable Version
target_version:
description: "Protocol Version Number (e.g., 1, 2, etc.)"
required: true
type: string
jobs:
build-version-tx:
runs-on: ubuntu-latest
env:
# Multisig specific config (can be secrets or vars)
MULTISIG_ADDRESS: ${{ vars.MULTISIG_ADDRESS }}
MULTISIG_SIGNERS_BASE64_PUBKEYS: ${{ vars.MULTISIG_SIGNERS_BASE64_PUBKEYS }}
MULTISIG_THRESHOLD: ${{ vars.MULTISIG_THRESHOLD }}
MULTISIG_WEIGHTS: ${{ vars.MULTISIG_WEIGHTS }}
# Dynamic Inputs
PROTOCOL_VERSION: ${{ inputs.target_version }}
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install Dependencies
run: npm ci
- name: Build Enable Version Transaction
if: ${{ inputs.action_type == 'Enable Version' }}
run: npx tsx examples/treasury/versions/enable-version.ts
- name: Build Disable Version Transaction
if: ${{ inputs.action_type == 'Disable Version' }}
run: npx tsx examples/treasury/versions/disable-version.ts