Skip to content

Releases: stellar/stellar-cli

0.7.1

05 Apr 11:02
01cdac0
Compare
Choose a tag to compare

See Changelog for 0.7.0 for changes in soroban-rpc, and soroban-cli.

Soroban-Test

  • Include a README.md, so the cargo publish works

0.7.0

03 Apr 21:05
75f45cf
Compare
Choose a tag to compare

General

  • Support the new xdr.ScVal types, to simplify contract interactions
  • Testing infrastructure improvements throughout

Soroban-CLI

Changed

  • When using invoke, contract function names now come after the --.

    Old vs new:

    -soroban contract invoke [options] --fn hello -- --to World
    +soroban contract invoke [options] -- hello --to World

    This comes with contract-level --help, which lists all functions in a contract:

    soroban contract invoke [options] -- --help
    

    It also works nicely with aliases in your shell:

    alias hello="soroban contract invoke [options] --"
    hello --help
    
  • Replaced --identity, --secret-key, and --account flags with single --source-account (alias: --source)

    Old vs new:

     soroban config identity generate alice
    -soroban contract deploy --identity alice
    +soroban contract deploy --source alice
    -soroban contract deploy --secret-key SC36…
    +soroban contract deploy --source SC36…

    The old --account option accepted a public key, and only worked in sandbox. This has been removed, since a public key can be derived from a secret key or seed phrase.

    You could not use a seed phrase before, but now you can:

    +soroban contract deploy --source "kite urban…"

    Note: don't do this! Including seed phrases and private keys in CLI commands puts them in your shell history file, which can be read by other system processes. It has been included for backwards-compatibility. It is safer to use an identity.

    The default identity is the one given by soroban config identity generate --default-seed.

    You can still set this using the environment variable SOROBAN_ACCOUNT.

Added

  • When using invoke ... -- [contract] [method] --help, you'll now get better docs and examples for each argument (by @willemneal in #465)
  • Automatic comprehensive docs; more extensive long help with --help; shorter help available with -h (by @chadoh in #518)
  • Added soroban --version
  • Better errors, replacing Unknown (#469)
  • Refactor, so that the cli can be imported via the new soroban-test crate. This makes testing and using soroban-cli as a library easier.
  • Update to Clap v4 by @chadoh in #491
  • Support for new diagnostic type events

Fixed

Soroban-RPC

Changed

  • Set a maximum ledger latency in /health method by @2opremio in #461
  • Add resultMetaXdr and envelopeXdr back to getTransaction() response by @tamirms in #467
  • Support for new diagnostic contract events.
    • soroban-rpc: Add filtering support for diagnostic events by @2opremio in #530
    • soroban-rpc: Ingest diagnostic events by @tamirms in #536
  • Remove 'soroban serve' subcommand (#486)
  • Limit preflight-computation concurrency through a worker pool (#488, #489, and #517)
  • Miscellaneous fixes by @2opremio in #492
  • General improvements to compilation and testing
  • Add contract events to simulateTransaction's response by @2opremio in #534

Full Changelog: v0.6.2...v0.7.0

0.6.0

15 Feb 04:02
7421c13
Compare
Choose a tag to compare

Soroban-CLI

What's Changed

  • Add option for running contract with unlimited budget
  • Add support for AuthNext
  • Add config command
  • Add getNetwork support
  • Reorganize CLI commands

Soroban-RPC

What's Changed

  • Configure default limit, update cursor / startLedger validation, and include latest ledger for getEvents
  • Add support for AuthNext
  • Fix rollback error in logs
  • Add getNetwork command
  • Implement event storage
  • Implement ledger entry storage
  • Refactor db and ingestion packages, add ingestion of LedgerCloseMeta
  • Implement simulateTransaction using rust instead of preflight
  • Simplify topic matching for events search

Full Changelog: v0.4.0...v0.6.0

0.5.0

14 Feb 03:17
f0c4664
Compare
Choose a tag to compare

Soroban-CLI

What's Changed

  • Add option for running contract with unlimited budget
  • Add support for AuthNext
  • Add config command
  • Add getNetwork support
  • Reorganize CLI commands

Soroban-RPC

What's Changed

  • Configure default limit, update cursor / startLedger validation, and include latest ledger for getEvents
  • Add support for AuthNext
  • Fix rollback error in logs
  • Add getNetwork command
  • Implement event storage
  • Implement ledger entry storage
  • Refactor db and ingestion packages, add ingestion of LedgerCloseMeta
  • Implement simulateTransaction using rust instead of preflight
  • Simplify topic matching for events search

Full Changelog: v0.4.0...v0.5.0

0.4.0

06 Jan 00:37
9e680fa
Compare
Choose a tag to compare

Soroban-CLI

What's Changed

  • Update rust version
  • StrValError --> Error and implemented using thiserror
  • Use soroban-ledger-snapshot for managing ledger.json
  • Use LedgerSnapshot::update to update snapshot instead of unpacking the host and updating ledger info and entries separately.
  • Add events subcommand for local and remote event viewing
  • Deprecate token create command

Soroban-RPC

What's Changed

  • Add GitHub linting for GO code

Full Changelog: v0.3.3...v0.4.0

0.3.3

08 Dec 01:20
Compare
Choose a tag to compare

Soroban-CLI

What's Changed

Soroban-RPC

No changes.

Full Changelog: v0.3.2...v0.3.3

0.3.2

08 Dec 00:49
Compare
Choose a tag to compare

Soroban-CLI

What's Changed

Soroban-RPC

No changes.

Full Changelog: v0.3.1...v0.3.2

0.3.1

06 Dec 17:36
42b2030
Compare
Choose a tag to compare

Soroban-CLI

What's Changed

  • Fix up readmes to fix up rust publish by @paulbellamy in #295
  • Bump version to 0.3.1 by @github-actions in #297

Soroban-RPC

No changes.

Full Changelog: v0.3.0...v0.3.1

0.3.0

06 Dec 16:03
46e72d8
Compare
Choose a tag to compare

Full Changelog: v0.2.1...v0.3.0

Soroban-CLI

  • Added type description to errors when using --arg by @waldmatias in #263
  • Additional CLI support for the contract deployment changes. by @dmkozh in #286
    • Adds support for soroban deploy --wasm-hash ..., as well as soroban install --wasm ...
  • Add xdr and env version to version subcommand output by @leighmcculloch in #293

General code cleanup, repository restructuring, and bugfixes

Soroban-RPC

  • Add soroban-rpc version subcommand by @tsachiherman in #272 and #273
  • Add a new getLedgerEntry jsonrpc method by @paulbellamy in #274
    • This will deprecate and replace getContractData. The new endpoint allows you to fetch any ledger entry (not just contract data ledger entries).
    • Current API Docs
  • Added new getEvents method (Currently backed by horizon) by @paulbellamy in #270
    • getEvents lets you fetch and filter a range of events emitted by contract transactions.
    • Current API Docs

Deprecations

  • getContractData jsonrpc method is deprecated in favor of the new getLedgerEntry, and will be removed in the next release.

Moved this command into this repo from https://github.com/stellar/go

Code cleanup & testing

  • Separate the daemon from the main function by @tsachiherman in #267
  • Run soroban-rpc tests on ubuntu focal so stellar-core can install by @paulbellamy in #289
  • updated soroban core version for integration tests by @sreuland in #283

0.2.1

04 Nov 23:00
2a065ee
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.2.0...v0.2.1