Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: sync solana branch with upstream #15

Merged
merged 28 commits into from
Apr 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
508ee5c
feat(minor-multisig-prover)!: idempotent resigning of workerset updat…
cjcobb23 Apr 2, 2024
d72e0dd
docs: add explanatory comment to sensible range of unbonding period (…
cgorenflo Apr 2, 2024
53624c5
chore: include monitoring contract into release pipeline (#330)
haiyizxx Apr 2, 2024
c3703d5
feat: register chain and prover contract with monitoring (#325)
maancham Apr 2, 2024
2a7fb8b
feat(minor-voting-verifier)!: allow dynamic updates of voting thresho…
cjcobb23 Apr 3, 2024
e8b1a6b
fix: get_outgoing_messages in the gateway returns error if msgs are m…
cgorenflo Apr 3, 2024
c886279
chore(multisig): test PublicKey is validated to represent a valid poi…
eguajardo Apr 4, 2024
d9c76ce
feat(service-registry): add chains_per_worker map to service registry…
maancham Apr 5, 2024
d276394
feat: compile and push ampd contracts to CF r2 bucket (#335)
maancham Apr 5, 2024
eae620b
feat(ampd): validate finalizer on startup (#319)
fish-sammy Apr 10, 2024
801b61f
refactor(connection-router): remove mock contracts from tests (#340)
eguajardo Apr 10, 2024
a52afe8
feat(minor-connection-router): paginated chains query (#326)
haiyizxx Apr 10, 2024
af22fee
chore: reduce unused dependencies from Cargo.toml files (#341)
cgorenflo Apr 11, 2024
5b33bfd
chore: fixing cosmwasm-std to v1.3.4 (#343)
cgorenflo Apr 11, 2024
43a5a7f
refactor: reduce wait durations during unit tests for faster executio…
cgorenflo Apr 11, 2024
f6b9c2e
refactor(client): add the client package and migrate for the aggregat…
fish-sammy Apr 11, 2024
3a79588
feat(minor-multisig-prover)!: allow dynamic update of signing thresho…
cjcobb23 Apr 11, 2024
4d5fb8f
feat(multisig-prover)!: add monitoring field to prover instantiation …
maancham Apr 11, 2024
1a0bad2
feat: add trait for message id (#337)
cjcobb23 Apr 12, 2024
5deb21d
refactor(voting-verifier): cleanup unit tests (#346)
eguajardo Apr 12, 2024
1be790a
fix(patch-service-registry): pass params in correct order (#348)
haiyizxx Apr 12, 2024
6624d39
fix(minor-voting-verifier)!: remove error thrown when worker set alre…
eguajardo Apr 16, 2024
7e65688
feat(service-registry): jail worker (#349)
haiyizxx Apr 16, 2024
3329113
feat(minor-ampd): add initial healthcheck endpoint (#344)
eloylp Apr 17, 2024
d360ea4
fix(minor-nexus-gateway)!: make msg id consistent with evm chains (#350)
cjcobb23 Apr 18, 2024
54be045
fix(minor-voting-verifier)!: remove unused response data (#353)
eguajardo Apr 18, 2024
07bc88f
feat(multisig-prover): allow governance to update workerset and docum…
cjcobb23 Apr 18, 2024
e56482a
Merge remote-tracking branch 'origin/main' into solana-sync-1904
eloylp Apr 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .cargo/config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[alias]
wasm = "build --release --lib --target wasm32-unknown-unknown --locked --workspace --exclude ampd"
wasm = "build --release --lib --target wasm32-unknown-unknown --locked --workspace --exclude ampd --exclude integration-tests"
unit-test = "test --lib"

[build]
Expand Down
61 changes: 61 additions & 0 deletions .github/workflows/build-ampd-and-push-to-r2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Upload ampd contracts to Cloudflare R2 bucket

on:
push:
branches:
- main
workflow_dispatch:
inputs:
branch:
description: Github branch to checkout for compilation
required: true
default: main
type: string


jobs:
compile-and-upload:
name: Compile contracts and push to R2
runs-on: ubuntu-22.04
permissions:
contents: write
packages: write
id-token: write
steps:
- name: Determine branch
id: get-branch-name
run: |
if [ "${{ github.event_name }}" == "push" ]; then
branch="main"
else
branch="${{ inputs.branch }}"
fi
echo "branch=$branch" >> $GITHUB_OUTPUT

- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: "0"
path: axelar-amplifier
submodules: recursive
ref: ${{ steps.get-branch-name.outputs.branch }}

- name: Compile amplifier contracts
id: compile-contracts
run: |
cd axelar-amplifier
docker run --rm -v "$(pwd)":/code --mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry cosmwasm/rust-optimizer:0.15.1
commit_hash=$(git rev-parse --short HEAD)
cd ..
mkdir -p ./artifacts/$commit_hash/
sudo mv axelar-amplifier/artifacts/*.wasm ./artifacts/$commit_hash/
echo "wasm-directory=./artifacts" >> $GITHUB_OUTPUT

- uses: ryand56/r2-upload-action@latest
with:
r2-account-id: ${{ secrets.R2_ACCOUNT_ID }}
r2-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_CF }}
r2-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_CF }}
r2-bucket: ${{ secrets.R2_BUCKET }}
source-dir: ${{ steps.compile-contracts.outputs.wasm-directory }}
destination-dir: ./pre-releases/ampd/contracts/
2 changes: 2 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ on:
- rewards
- service-registry
- voting-verifier
- monitoring
dry-run:
description: Dry run
type: boolean
Expand Down Expand Up @@ -48,6 +49,7 @@ jobs:
["rewards"]="rewards,/(major-rewards)|(major-contracts)/,/(minor-rewards)|(minor-contracts)/,contracts/rewards packages"
["service-registry"]="service-registry,/(major-service-registry)|(major-contracts)/,/(minor-service-registry)|(minor-contracts)/,contracts/service-registry packages"
["voting-verifier"]="voting-verifier,/(major-voting-verifier)|(major-contracts)/,/(minor-voting-verifier)|(minor-contracts)/,contracts/voting-verifier packages"
["monitoring"]="monitoring,/(major-monitoring)|(major-contracts)/,/(minor-monitoring)|(minor-contracts)/,contracts/monitoring packages"
)

if [[ -n "${binaries_data[$binary]}" ]]; then
Expand Down
Loading
Loading