Skip to content

Commit

Permalink
preview 10 release branch (#704)
Browse files Browse the repository at this point in the history
* update go dep xdr for preview 10

* update

* soroban-rpc: update code to latest XDR auth and single-function changes (#703)

* WIP

* WIP

* WIP

* Add clarification about events

* Moar progress

* Last compilation fixes

* progress

* Fix another test

* small cleanup

* Fix last test

* Fix more tests

* Fix more tests

* Fix another test

* Update to a working (if not the absolute latest) xdr

* updating xdr in preflight for fees & auth

* pass the min entry expiration into preflight

* rawval and set updates

* Fix udt test wasm

* rustfmt

* Updating txresult move

* use simon's core image build

* Get all rpc unit tests compiling (but not passing)

* fix up cargo toml rs-soroban-sdk import

* Fix ledgerentry test

* Fix getEvents test

* Fix GetTransactionTest

* Upgrade core version for integration tests

* Clean up integration tests

* Change the simulateTransactionResponse API back to make the changeover simpler for now

* Update integration tests expectations for simulateTransaction

* Missed one

---------

Co-authored-by: Paul Bellamy <[email protected]>

* merge with main, and update the go monorepo link.

* soroban-rpc: Adapt Go and Rust code to the latest XDR changes (#724)

* Sync code with the latest XDR changes

* Bump rust and Core dependencies

* Update Rust code to the new sdk and env versions

* Fix test

* Fix ledgerentry tests for new xdr (#725)

* preview10: soroban-cli xdr updates (#722)

* StorageType support

* Fix VecM max lengths

* Fix LedgerKeyNonce conversion

* partial ScStatus -> ScError updates

* Working on updating for new contract code and entry storage

* updating for new xdr

* update rs-soroban-sdk to commit e90db9f8009280516375df6b3ee43a65ff524577

* Updating xdr again

* New token spec location

* Cargo fmt

* Fix binding-generators

* Dig out the new invokeHostFunction return value

* Fix up last of the build

* Clippy shenanigans

* use symbol_short macro

* Set signature_expiration_ledger for sandbox

* fixup! use symbol_short macro

* fixup! Set signature_expiration_ledger for sandbox

* Clean up a vague error

* set expiration on contract codes in sandbox

* Set expiration on contract instances on sandbox

* Handle expired contract code ledger entries in the sandbox

* Include temporary entries from contract read subcommand

* Implement ledger entry expiration bumps in sandbox

* cargo md-gen

* Fix rpc simulateTransaction client tests

* Merge origin/main into soroban-xdr-next (#728)

* soroban-rpc: bug workaround and test fixes (#726)

* updated rs-env and mono repo versions (#741)

* updated rs-env for 0.9. and mono repo with latest xdr gen updates

* review feedback, fix go ref to soroban-xdr-next-next

* update all workspace rs-sdk refs to same in toml

* updated the cargo ver to match the gh ref

* included cargo.lock and deps check fix

* soroban-rpc: Implement preflighting of BumpFootprintExpiration and RestoreFootprint operations (#730)

* sync with main (#744)

* Fix check-dependencies typos (#723)

* Add lab token id command (#693)

* Add lab token id command

* fix doc

* Keep only the strkey id

* refactoring

---------

Co-authored-by: Paul Bellamy <[email protected]>

* fix(bindings-ts): don't delete existing dirs (#733)

* fix(bindings-ts): don't delete existing dirs

- Rename `root-dir` to `output-dir` to clarify the intent
- If `output-dir` already exists, use `output-dir/contract-name` instead

* docs: update auto-generated

* Upgrade wasm-opt to 0.113 (#736)

* fix

* fix

* update

* cargo fmt

---------

Co-authored-by: Alfonso Acosta <[email protected]>
Co-authored-by: Vincent Amouret <[email protected]>
Co-authored-by: Paul Bellamy <[email protected]>
Co-authored-by: Chad Ostrowski <[email protected]>
Co-authored-by: Brian Anderson <[email protected]>

* Fix bug loading contract spec in sandbox when not deployed (#745)

* Fix check-dependencies typos (#723)

* Add lab token id command (#693)

* Add lab token id command

* fix doc

* Keep only the strkey id

* refactoring

---------

Co-authored-by: Paul Bellamy <[email protected]>

* fix(bindings-ts): don't delete existing dirs (#733)

* fix(bindings-ts): don't delete existing dirs

- Rename `root-dir` to `output-dir` to clarify the intent
- If `output-dir` already exists, use `output-dir/contract-name` instead

* docs: update auto-generated

* Upgrade wasm-opt to 0.113 (#736)

* fix

* fix

* update

* cargo fmt

* Fix bug loading contract spec in sandbox when not deployed

* Make fmt

* No more 'set' type to test

* remove unused import

* Fix sandbox contract invoke

* Make test invoke quiet so it doesn't spit out events

* Set default state expiries in the sandbox

* Add a note about a crappy test

---------

Co-authored-by: Alfonso Acosta <[email protected]>
Co-authored-by: Vincent Amouret <[email protected]>
Co-authored-by: Chad Ostrowski <[email protected]>
Co-authored-by: Brian Anderson <[email protected]>
Co-authored-by: Tsachi Herman <[email protected]>

* soroban-rpc: State Expiration (#695)

* Update go for new xdr

* WIP -- working on extensions

* Implement ExtendLedgerEntry

* Disallow access to expired ledgerEntries

* update go dep

* Include current ledger in expiry

* update ledgerEntry tests for new xdr

* Add unit test for ExtendEntry

* Add test for extending a non-existent ledger entry

* Add tests for expired contract entries

* Test creating and extending in the same batch

* Show expired ledger entries now that core will autobump

* Revert "Show expired ledger entries now that core will autobump"

This reverts commit b1426a7.

* Refactor expiry checking

* Replace assert.NotNil with require.NotNil

* Clearer naming

* better test error checking

* Add validation on upserting ledger entrys that the key matches

* Simplify UpsertLedgerEntry since key is derived from the entry

* Update go dependency to 3f69f56e3743bbd520e4c25f44b8fc49b1b81936

* soroban-rpc: Fix integration test phrasing (#747)

* soroban-rpc: Fix phrasing in an integration test

* fix typo

* Fix: error, enum, union types (#731)

* StorageType support

* Fix VecM max lengths

* Fix LedgerKeyNonce conversion

* partial ScStatus -> ScError updates

* Working on updating for new contract code and entry storage

* updating for new xdr

* update rs-soroban-sdk to commit e90db9f8009280516375df6b3ee43a65ff524577

* Updating xdr again

* New token spec location

* Cargo fmt

* Fix binding-generators

* Dig out the new invokeHostFunction return value

* Fix up last of the build

* Clippy shenanigans

* use symbol_short macro

* Set signature_expiration_ledger for sandbox

* fixup! use symbol_short macro

* fixup! Set signature_expiration_ledger for sandbox

* Clean up a vague error

* set expiration on contract codes in sandbox

* Set expiration on contract instances on sandbox

* Handle expired contract code ledger entries in the sandbox

* Include temporary entries from contract read subcommand

* Implement ledger entry expiration bumps in sandbox

* cargo md-gen

* Fix rpc simulateTransaction client tests

* fix: tuples and enums/unions and new Error type

* chore: pr review

* pull in some fixes

* tuples are friends not food

* fix: update example inputs to instruct a tuple struct

* feat: add tuple struct support

* fix: update to use new bindings out-dir

---------

Co-authored-by: Paul Bellamy <[email protected]>
Co-authored-by: Tyler van der Hoeven <[email protected]>

* cargo fmt

* compile: disable the fetch test (#750)

* disable the fetch test, since it's testing it against futurenet.

* update boilerplate test.

* Fix bug in cli lab xdr decode --type parsing (#751)

* soroban-cli: Verify the network passphrase provided matches the server (#754)

* soroban-cli: fix contract deploy (#755)

* Fix return type parsing from soroban-rpc

* soroban-cli: Fix how contract code hashes are calculated

* Fix integration test

* Bump version to 0.9.0 (#758)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* soroban-rpc: Add bump footprint test (#746)

* Bump Core version (#759)

* update (#760)

* soroban-rpc: Restore footprint fixes (#761)

* update e2e tests (#762)

* update

* update

* update package.json to use the official js-soroban-client tag instead of an arbitrary commit hash..

* rollback package changes.

* really rollback.

* soroban-cli: Add super basic `contract bump` and `contract restore` subcommands (#748)

* add contract read --durability filter

* Add soroban contract bump subcommand

* Add soroban contract restore command

* Add support for restoring multiple keys at once

* cargo md-gen

* Clean up an unused error

* Need to increment the account sequence for bump+restore

* no --ledgers-to-expire for restore command

* Support bump+restore commands in preflight+transaction::assemble

* rust fmt

* cargo md-gen

* Require --durability for bump because the default is confusing

* Fix clippy

* cargo md-gen

* soroban-cli: Implement soroban contract read with real rpc support (#756)

* add contract read --durability filter

* Add soroban contract bump subcommand

* Add soroban contract restore command

* Add support for restoring multiple keys at once

* cargo md-gen

* implement soroban contract read with a real network

* Clean up an unused error

* Make fmt

* cargo md-gen

* getLedgerEntries.results can be null

* Need to increment the account sequence for bump+restore

* no --ledgers-to-expire for restore command

* Support bump+restore commands in preflight+transaction::assemble

* rust fmt

* cargo md-gen

* Require --durability for bump because the default is confusing

* Fix clippy

* cargo md-gen

---------

Co-authored-by: Tsachi Herman <[email protected]>

* update e2e tests (#765)

* update

* update hash -> 0.9.0

---------

Co-authored-by: Tsachi Herman <[email protected]>
Co-authored-by: Alfonso Acosta <[email protected]>
Co-authored-by: shawn <[email protected]>
Co-authored-by: Vincent Amouret <[email protected]>
Co-authored-by: Chad Ostrowski <[email protected]>
Co-authored-by: Brian Anderson <[email protected]>
Co-authored-by: Willem Wyndham <[email protected]>
Co-authored-by: Tyler van der Hoeven <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
11 people authored Jul 12, 2023
1 parent 2b343d3 commit 34da8d6
Show file tree
Hide file tree
Showing 120 changed files with 6,965 additions and 1,763 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ jobs:
runs-on: ubuntu-latest-4-cores
env:
# the gh tag of system-test repo version to run
SYSTEM_TEST_GIT_REF: v1.0.15
SYSTEM_TEST_GIT_REF: v1.0.16

# the soroban tools source code to compile and run from system test
# refers to checked out source of current git hub ref context
SYSTEM_TEST_SOROBAN_TOOLS_REF: ${{ github.workspace }}/soroban-tools

# core git ref should be latest commit for stable soroban functionality
# the core bin can either be compiled in-line here as part of ci,
SYSTEM_TEST_CORE_GIT_REF: https://github.com/stellar/stellar-core.git#soroban-preview-9-May22
SYSTEM_TEST_CORE_GIT_REF: https://github.com/stellar/stellar-core.git#875f47e247cefc25c8a4b3982ee65610e6a620e3
SYSTEM_TEST_CORE_COMPILE_CONFIGURE_FLAGS: "--disable-tests --enable-next-protocol-version-unsafe-for-production"
# or can use option to pull a pre-compiled image instead
# SYSTEM_TEST_CORE_IMAGE:
Expand All @@ -32,17 +32,17 @@ jobs:
SYSTEM_TEST_RUST_TOOLCHAIN_VERSION: stable

# sets the version of soroban-js-client used by tests
SYSTEM_TEST_JS_SOROBAN_CLIENT_NPM_VERSION: "0.8.1"
SYSTEM_TEST_JS_SOROBAN_CLIENT_NPM_VERSION: "0.9.0"

# system test will build quickstart image internally to use for running the service stack
# configured in standalone network mode(core, rpc)
SYSTEM_TEST_QUICKSTART_GIT_REF: https://github.com/stellar/quickstart.git#7153d3fb02e26a63b767b1f544f918febc63ca69
SYSTEM_TEST_QUICKSTART_GIT_REF: https://github.com/stellar/quickstart.git#df8303380d5869272852ddb45c39abfeb7d4c938

# triggers system test to log out details from quickstart's logs and test steps
SYSTEM_TEST_VERBOSE_OUTPUT: "true"

# the soroban test cases will compile various contracts from the examples repo
SYSTEM_TEST_SOROBAN_EXAMPLES_GIT_HASH: "v0.8.1"
SYSTEM_TEST_SOROBAN_EXAMPLES_GIT_HASH: "0bb7e11db3ddf9ed88c56c05c22e14503f97824a"
SYSTEM_TEST_SOROBAN_EXAMPLES_GIT_REPO: "https://github.com/stellar/soroban-examples.git"
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/soroban-rpc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ jobs:
env:
SOROBAN_RPC_INTEGRATION_TESTS_ENABLED: true
SOROBAN_RPC_INTEGRATION_TESTS_CAPTIVE_CORE_BIN: /usr/bin/stellar-core
PROTOCOL_20_CORE_DEBIAN_PKG_VERSION: 19.10.1-1310.6649f5173.focal~soroban
PROTOCOL_20_CORE_DEBIAN_PKG_VERSION: 19.11.1-1373.875f47e24.focal~soroban
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
target/
.soroban/
!test.toml

cmd/crates/soroban-spec-typescript/fixtures/ts/package-lock.json
Loading

0 comments on commit 34da8d6

Please sign in to comment.