-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
bindings typescript
-generated libs (#11)
* build: add bindings-ts github workflow * fix: update bindings to use new soroban-client and ContractSpec class * Need to enable base64 in stellar-xdr --------- Co-authored-by: Willem Wyndham <willem@ahalabs.dev> * feat(CLI): add dotenv so directories can now set CLI args * fix: don't fail if wasm already exists and log associated error as debug * fix: update to use use .env and store standalone in local config * fix: add standalone * fix: return to src Was a temp try to get cargo run to work, but isn't needed any more * build: test generated lib for test-wasms/hello_world * build: add auth test * build: add signing to test wallet * fix: parse returnValue * build: update comment and typecheck * rust: appease clippy and fmt with after new Rust release (stellar#899) * fix: update soroban-client --------- Co-authored-by: Willem Wyndham <willem@ahalabs.dev>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: bindings typescript | ||
|
||
on: [push] | ||
|
||
jobs: | ||
test: | ||
name: test generated libraries | ||
runs-on: ubuntu-20.04 | ||
services: | ||
rpc: | ||
image: stellar/quickstart:soroban-dev@sha256:a6b03cf6b0433c99f2f799b719f0faadbb79684b1b763e7674ba749fb0f648ee | ||
ports: | ||
- 8000:8000 | ||
env: | ||
ENABLE_LOGS: true | ||
NETWORK: standalone | ||
ENABLE_SOROBAN_RPC: true | ||
options: >- | ||
--health-cmd "curl -X POST \"http://localhost:8000/soroban/rpc\"" | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
steps: | ||
- run: echo $CARGO_TARGET_DIR | ||
- uses: actions/checkout@v3 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cargo/bin/ | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
target/ | ||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
- run: rustup update | ||
- run: cargo build | ||
- run: rustup target add wasm32-unknown-unknown | ||
- run: make build-test-wasms | ||
- run: npm ci && npm run test | ||
working-directory: cmd/crates/soroban-spec-typescript/ts-tests |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
target/ | ||
.soroban/ | ||
!test.toml | ||
|
||
cmd/crates/soroban-spec-typescript/fixtures/ts/package-lock.json |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
SOROBAN_NETWORK=standalone |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
build | ||
node_modules | ||
yarn.lock | ||
yarn.lock | ||
!.soroban/network/standalone.toml | ||
contract-id-*.txt |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
rpc_url = "http://localhost:8000/soroban/rpc" | ||
network_passphrase = "Standalone Network ; February 2017" |