Skip to content

Commit f445bfd

Browse files
willemnealchadohpsellestellar-scaffold[bot]
authored
feat(registry-cli): add download, create-alias, upgrade commands (#176)
* feat(registry-cli): add fetch and upgrade commands This allows users to fetch the bytes of a publish Wasm and to upgrade deployed contracts. * fix: default deploy's function to __constructor * fix: clippy * Update mod.rs Co-authored-by: Chad Ostrowski <221614+chadoh@users.noreply.github.com> * fix: deploy and fetch * fix: don't use default cli features for registry-cli * fix: initial test * feat!: rename install -> create-alias, fetch -> download * chore: fmt * fix: tests * chore: fmt * fix: tests and improve upgrade errors * fix: clippy after upgrading rustc * feat: updating soroban_sdk * fix: registry CD * feat: add publish test and add gitignore; fix internal name in contract * fix: clippy * fix: fmt * fix: clippy * fix: update github links * feat: try isolating tests * chore: compile first * chore: try building with package directly and add verbose * fix: remove space * fix: don't expect key location * fix: fmt * fix: set config home in tests to local dir * chore: try to consolidate the config * fix: integration tests * fix: fmt * fix: localhost * fix: clippy * fix: ensure caches are saved to speed up testing * fix: ignore watch test for now * feat: allow overwriting the STELLAR_RPC_URL * Upgrade dependencies for building * fix: move to a local `.config` to follow convention * fix: ensure that all commands use same config dir * fix: fmt * fix: use same rpc * fix: rpc error and actually parse config dir * fix: remove extra line * fix: build registry cli and run its test first * fix: ensure stellar cli is in sync * fix: use empty test env and generate Alice manually * chore: use xl runner to speed up testing * fix: fmt * chore: try ubuntu large * fix: revert to normal so we don't need to wait in queue * fix: consolidate the wasms & ensure correct contract err when publishing * fix: randomize wasms for registry tests * fix: also randomize registry itself * Fix clippy warning * fix: use fund cmd directly * fix: ensure that the config dir is correct * chore(stellar-scaffold-cli): release v0.0.13 * fix: fmt * fix: also ensure build command * fix: clippy --------- Co-authored-by: Chad Ostrowski <221614+chadoh@users.noreply.github.com> Co-authored-by: Pam Selle <pamela.selle@gmail.com> Co-authored-by: stellar-scaffold[bot] <211513279+stellar-scaffold[bot]@users.noreply.github.com>
1 parent fde5b73 commit f445bfd

File tree

39 files changed

+1836
-589
lines changed

39 files changed

+1836
-589
lines changed

.config/nextest.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[[profile.default.overrides]]
2-
filter = 'package(stellar-scaffold-cli) | package(stellar-registry-cli)'
2+
filter = 'package(stellar-scaffold-cli) | package(stellar-registry-cli) | package(registry)'
33
slow-timeout = { period = "90s", terminate-after = 4 }
44
retry = 3

.github/workflows/cd-registry-cli.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
push:
99
tags:
1010
- "stellar-registry-cli-v[0-9]+.[0-9]+.[0-9]+*"
11+
pull_request:
12+
paths:
13+
- crates/stellar-registry-cli/CHANGELOG.md
1114
env:
1215
CARGO_INCREMENTAL: 0
1316
CARGO_NET_GIT_FETCH_WITH_CLI: true
@@ -81,6 +84,7 @@ jobs:
8184
zip: windows
8285
archive: $tag-$target
8386
token: ${{ secrets.GITHUB_TOKEN }}
87+
dry-run: ${{ github.event_name == 'pull_request' }}
8488
env:
8589
OPENSSL_STATIC: ${{ env.OPENSSL_STATIC }}
8690
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc

.github/workflows/rust.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ jobs:
1313
name: Check
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v3
17-
- uses: actions/cache@v3
16+
- uses: actions/checkout@v4
17+
- name: Restore cache
18+
id: cache-restore
19+
uses: actions/cache/restore@v4
1820
with:
1921
path: |
2022
~/.cargo/bin/
@@ -42,3 +44,15 @@ jobs:
4244
run: cargo clippy --all
4345
- name: Unit Tests
4446
run: just test
47+
- name: Always Save Cache
48+
id: cache-save
49+
if: always() && steps.cache-restore.outputs.cache-hit != 'true'
50+
uses: actions/cache/save@v4
51+
with:
52+
path: |
53+
~/.cargo/bin/
54+
~/.cargo/registry/index/
55+
~/.cargo/registry/cache/
56+
~/.cargo/git/db/
57+
target/
58+
key: ${{ steps.cache-restore.outputs.cache-primary-key }}

.github/workflows/tests.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ jobs:
3434
run: |
3535
sudo apt-get update
3636
sudo apt-get install -y libdbus-1-dev pkg-config libudev-dev
37-
- uses: actions/cache@v3
37+
- name: Restore cache
38+
id: cache-restore
39+
uses: actions/cache/restore@v4
3840
with:
3941
path: |
4042
~/.cargo/bin/
@@ -52,3 +54,16 @@ jobs:
5254
- run: just setup
5355
- run: just create
5456
- run: just test-integration
57+
- name: Always Save Cache
58+
id: cache-save
59+
if: always() && steps.cache-restore.outputs.cache-hit != 'true'
60+
uses: actions/cache/save@v4
61+
with:
62+
path: |
63+
~/.cargo/bin/
64+
~/.cargo/registry/index/
65+
~/.cargo/registry/cache/
66+
~/.cargo/git/db/
67+
crates/stellar-scaffold-test/fixtures/soroban-init-boilerplate/target/
68+
target/
69+
key: ${{ steps.cache-restore.outputs.cache-primary-key }}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ target/
22
.soroban/
33
.env
44
test_snapshots/
5-
.stellar/
5+
.stellar/
6+
.vscode/

0 commit comments

Comments
 (0)