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(stellar): add deployment script for testing #428

Open
wants to merge 37 commits into
base: main
Choose a base branch
from

Conversation

hydrobeam
Copy link
Contributor

@hydrobeam hydrobeam commented Nov 7, 2024

closes AXE-5754

Summary

  • The script was adapted from test-sui.yaml. It executes the things that can be done via the stellar/*.js files.
    • currently missing testing for approve under gateway.js
    • and missing testing for execute under operators.js
    • refund won't work due to a missing gas service contract
    • also --estimate-cost for the operators contract currently doesn't work:
cpu_instructions: Number(response.cost.cpuInsns),                                               
TypeError: Cannot read properties of undefined (reading 'cpuInsns')
  • To enable connecting to http networks, allowHttp needed to be specified in various locations throughout the js files.
  • Also corrected an instance of pulling the wrong network password (STANDALONE is correct, not SANDBOX)
  • manually fetching the stellar-cli binary because the compilation process was very long. tried using cargo binstall to avoid the wget + curl business, but there appears to be some upstream issue:
cargo binstall stellar-cli
 INFO resolve: Resolving package: 'stellar-cli'
ERROR resolve: When resolving stellar-cli bin soroban is not found. This binary is not optional so it must be included in the archive, please contact with upstream to fix this issue.
 WARN resolve: Error while downloading and extracting from fetcher github.com: failed to find or install binaries: bin file /Users/aqua/.cargo/bin/cargo-binstallEtlI8N/bin-stellar-cli-aarch64-apple-darwin-GhCrateMeta/soroban not found
ERROR resolve: When resolving stellar-cli bin soroban is not found. This binary is not optional so it must be included in the archive, please contact with upstream to fix this issue.
 WARN resolve: Error while downloading and extracting from fetcher github.com: failed to find or install binaries: bin file /Users/aqua/.cargo/bin/cargo-binstallEtlI8N/bin-stellar-cli-x86_64-apple-darwin-GhCrateMeta/soroban not found
 WARN The package stellar-cli v21.5.3 will be installed from source (with cargo)
Do you wish to continue? [yes]/no

note: the wallet step can't be setup immediately after spinning up the network, otherwise you encounter timing errors

@hydrobeam hydrobeam requested a review from a team as a code owner November 7, 2024 16:09
@hydrobeam hydrobeam marked this pull request as draft November 7, 2024 19:08
@hydrobeam hydrobeam marked this pull request as ready for review November 7, 2024 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant