Skip to content

Commit d3fa200

Browse files
committed
Merge branch 'development' into rates-single-recipient
2 parents 43b7085 + 1f3b0d4 commit d3fa200

File tree

19 files changed

+413
-366
lines changed

19 files changed

+413
-366
lines changed

.github/mergify.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,11 @@ pull_request_rules:
1313
backport:
1414
branches:
1515
- v1.1.x
16+
- name: backport to release/3 branch
17+
conditions:
18+
- base=development
19+
- label=backport/release/3
20+
actions:
21+
backport:
22+
branches:
23+
- release/3

.github/workflows/build.yml

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,25 @@
11
name: Build Contracts & Schemas
2-
32
on:
43
pull_request:
54
branches: [main, development]
65
workflow_dispatch:
6+
inputs:
7+
network:
8+
description: "Network to deploy to"
9+
required: true
10+
type: string
11+
kernel_address:
12+
description: "Kernel address"
13+
required: false
14+
type: string
15+
deploy_os:
16+
description: "Deploy OS"
17+
required: false
18+
type: boolean
19+
contracts:
20+
description: "Contracts to deploy"
21+
required: false
22+
type: string
723

824
jobs:
925
build:
@@ -51,3 +67,30 @@ jobs:
5167
name: schema
5268
path: ./schemas/
5369
if-no-files-found: error
70+
71+
trigger-deploy:
72+
needs: [build, build-schemas]
73+
if: github.event_name == 'workflow_dispatch'
74+
runs-on: ubuntu-latest
75+
steps:
76+
- name: Trigger Deploy Workflow
77+
uses: actions/github-script@v7
78+
with:
79+
github-token: ${{ secrets.CI_PAT }}
80+
script: |
81+
try {
82+
await github.rest.actions.createWorkflowDispatch({
83+
owner: context.repo.owner,
84+
repo: context.repo.repo,
85+
workflow_id: 'deploy.yml',
86+
ref: github.ref,
87+
inputs: {
88+
network: '${{ inputs.network }}',
89+
kernel_address: '${{ inputs.kernel_address }}',
90+
deploy_os: '${{ inputs.deploy_os }}',
91+
contracts: '${{ inputs.contracts }}'
92+
}
93+
});
94+
} catch (error) {
95+
core.setFailed(`Failed to trigger deploy workflow: ${error.message}`);
96+
}

.github/workflows/deploy.yml

Lines changed: 101 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
name: Deploy OS
2-
32
on:
43
workflow_dispatch:
54
inputs:
@@ -16,7 +15,7 @@ on:
1615
required: false
1716
type: boolean
1817
contracts:
19-
description: "Contracts to deploy (e.g. splitter, validator-staking)"
18+
description: "Contracts to deploy"
2019
required: false
2120
type: string
2221

@@ -26,16 +25,45 @@ jobs:
2625
runs-on: ubuntu-latest
2726
steps:
2827
- uses: actions/checkout@v4
28+
- name: Set up Rust toolchain
29+
uses: dtolnay/rust-toolchain@stable
30+
with:
31+
toolchain: stable
2932
- name: Build Contracts
3033
run: |
31-
sudo make version-map
34+
make version-map
3235
make build
3336
- name: Upload Artifacts
3437
uses: actions/upload-artifact@v4
3538
with:
3639
name: contracts
3740
path: ./artifacts/
3841
if-no-files-found: error
42+
43+
44+
build_schemas:
45+
if: contains('["crnbarr93", "SlayerAnsh", "joemonem", "DimitrijeDragasevic", "cowboy0015"]', github.actor)
46+
runs-on: ubuntu-latest
47+
outputs:
48+
schema_url: ${{ steps.upload-schemas.outputs.artifact-url }}
49+
steps:
50+
- uses: actions/checkout@v4
51+
- name: Build Schemas
52+
run: |
53+
set -eo pipefail
54+
make schemas || {
55+
echo "Schema build failed"
56+
exit 1
57+
}
58+
- name: Upload Schemas to Temp
59+
id: upload-schemas
60+
uses: actions/upload-artifact@v4
61+
with:
62+
name: temp-schemas
63+
path: ./schemas/
64+
retention-days: 1
65+
if-no-files-found: error
66+
3967
build_deploy_script:
4068
if: contains('["crnbarr93", "SlayerAnsh", "joemonem", "DimitrijeDragasevic", "cowboy0015"]', github.actor)
4169
runs-on: ubuntu-latest
@@ -49,9 +77,10 @@ jobs:
4977
name: deploy
5078
path: ./target/release/andromeda-deploy
5179
if-no-files-found: error
80+
5281
deploy:
5382
runs-on: ubuntu-latest
54-
needs: [build_contracts, build_deploy_script]
83+
needs: [build_contracts, build_schemas, build_deploy_script]
5584
env:
5685
DEPLOYMENT_CHAIN: ${{ inputs.network }}
5786
DEPLOYMENT_KERNEL_ADDRESS: ${{ inputs.kernel_address }}
@@ -80,9 +109,71 @@ jobs:
80109
run: |
81110
chmod +x ./andromeda-deploy
82111
./andromeda-deploy
83-
- name: Upload Deployment Report
84-
uses: actions/upload-artifact@v4
85-
with:
86-
name: deployment-report
87-
path: ./deployment-reports/
88-
if-no-files-found: error
112+
113+
trigger-schema-parser:
114+
needs: [deploy, build_schemas]
115+
runs-on: ubuntu-latest
116+
steps:
117+
- name: Set Branch Based on Kernel
118+
id: check-kernel
119+
run: |
120+
KERNEL_ADDRESS="${{ inputs.kernel_address }}"
121+
TESTNET_KERNELS="${{ vars.TESTNET_KERNELS }}"
122+
TESTNET_STAGING_KERNELS="${{ vars.TESTNET_STAGING_KERNELS }}"
123+
124+
if [[ "${KERNEL_ADDRESS}" == "${TESTNET_KERNELS}" ]]; then
125+
echo "branch=develop" >> $GITHUB_OUTPUT
126+
elif [[ "${KERNEL_ADDRESS}" == "${TESTNET_STAGING_KERNELS}" ]]; then
127+
echo "branch=testnet-staging" >> $GITHUB_OUTPUT
128+
else
129+
echo "Error: Kernel not found in known configurations"
130+
exit 1
131+
fi
132+
133+
- name: Checkout Schema Parser
134+
uses: actions/checkout@v4
135+
with:
136+
repository: andromedaprotocol/schema-parser
137+
ref: ${{ steps.check-kernel.outputs.branch }}
138+
token: ${{ secrets.CI_PAT }}
139+
140+
- name: Download Schemas
141+
uses: actions/download-artifact@v4
142+
with:
143+
name: temp-schemas
144+
path: "packages/schema-parser/schema"
145+
146+
- uses: pnpm/action-setup@v4
147+
with:
148+
version: 8
149+
150+
- uses: actions/setup-node@v4
151+
with:
152+
node-version: '18'
153+
cache: 'pnpm'
154+
155+
- name: Process Schema
156+
working-directory: packages/schema-parser
157+
run: |
158+
set -eo pipefail
159+
echo "Installing dependencies..."
160+
pnpm install
161+
echo "Processing schema..."
162+
npm run start
163+
echo "Flattening schema..."
164+
npm run flatten
165+
echo "Exporting schema..."
166+
npm run export
167+
168+
- name: Commit and Push Changes
169+
run: |
170+
git config --global user.name 'github-actions[bot]'
171+
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
172+
173+
if [[ -n $(git status --porcelain) ]]; then
174+
git add .
175+
git commit -m "chore: Update schema for kernel: ${{ inputs.kernel_address }}"
176+
git push
177+
else
178+
echo "No changes to commit"
179+
fi

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Release Contracts
33
on:
44
push:
55
tags:
6-
- "v[0-9]+.[0-9]+.[0-9]+"
6+
- "release/[0-9]+"
77

88
jobs:
99
optimize:

CHANGELOG.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Added
1111

12-
- Added Curve ADO [(#515)](https://github.com/andromedaprotocol/andromeda-core/pull/515)
12+
### Changed
13+
14+
### Fixed
15+
16+
## Release 3
17+
18+
### Added
19+
1320
- Added IBC Registry ADO [(#566)](https://github.com/andromedaprotocol/andromeda-core/pull/566)
1421
- Added Denom Validation in IBC Registry ADO [(#571)](https://github.com/andromedaprotocol/andromeda-core/pull/571)
1522
- Added Kernel ICS20 Transfer with Optional ExecuteMsg [(#577)](https://github.com/andromedaprotocol/andromeda-core/pull/577)
1623
- Added IBC Denom Wrap/Unwrap [(#579)](https://github.com/andromedaprotocol/andromeda-core/pull/579)
1724
- Added deployment script/CI workflow for OS [(#616)](https://github.com/andromedaprotocol/andromeda-core/pull/616)
1825
- Added deployable interfaces to all ADOs [(#620)](https://github.com/andromedaprotocol/andromeda-core/pull/620)
1926
- Added MultiSig ADO [(#619)](https://github.com/andromedaprotocol/andromeda-core/pull/619)
27+
- Added Validator Staking ADO [(#330)](https://github.com/andromedaprotocol/andromeda-core/pull/330)
28+
- Added Restake and Redelegate to Validator Staking [(#622)](https://github.com/andromedaprotocol/andromeda-core/pull/622)
2029

2130
### Changed
2231

@@ -35,7 +44,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3544

3645
### Added
3746

38-
- Added Validator Staking ADO [(#330)](https://github.com/andromedaprotocol/andromeda-core/pull/330)
3947
- Added `Asset` enum [(#415)](https://github.com/andromedaprotocol/andromeda-core/pull/415)
4048
- Added `ADOBaseVersion` query to all ADOs [(#416)](https://github.com/andromedaprotocol/andromeda-core/pull/416)
4149
- Staking: Added ability to remove/replace reward token [(#418)](https://github.com/andromedaprotocol/andromeda-core/pull/418)
@@ -54,7 +62,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5462
- Added BuyNow option for Auction [(#533)](https://github.com/andromedaprotocol/andromeda-core/pull/533)
5563
- Include ADOBase Version in Schema [(#574)](https://github.com/andromedaprotocol/andromeda-core/pull/574)
5664
- Added multi-hop support for IBC [(#604)](https://github.com/andromedaprotocol/andromeda-core/pull/604)
57-
- Added Restake and Redelegate to Validator Staking [(#622)](https://github.com/andromedaprotocol/andromeda-core/pull/622)
5865

5966
### Changed
6067

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

contracts/finance/andromeda-validator-staking/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "andromeda-validator-staking"
3-
version = "0.3.0-b.1"
3+
version = "0.3.0"
44
edition = "2021"
55
rust-version = "1.75.0"
66

@@ -30,4 +30,4 @@ chrono = "0.3"
3030
cw-multi-test = { workspace = true, optional = true }
3131
andromeda-testing = { workspace = true }
3232
cw-orch = { workspace = true }
33-
cw-orch-daemon = "0.24.2"
33+
cw-orch-daemon = "0.24.2"

contracts/finance/andromeda-vesting/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "andromeda-vesting"
3-
version = "3.0.4-b.1"
3+
version = "3.0.4"
44
edition = "2021"
55
rust-version = "1.75.0"
66

0 commit comments

Comments
 (0)