-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(test-tooling): add Stellar test ledger
- Add a Stellar test ledger class that can be used in integration tests to start and stop a Stellar test network based on the Stellar quickstart docker image: https://github.com/stellar/quickstart - Inclues the following services for fetching ledger state, executing classic transactions and also soroban smart contracts transactions. - Stellar Core - Horizon API - Soroban RPC - Friendbot Fixes #3239 Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com> Signed-off-by: Fabricius Zatti <fazzatti@gmail.com>
- Loading branch information
Showing
9 changed files
with
737 additions
and
202 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
packages/cactus-test-tooling/src/main/typescript/stellar/network.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// | ||
// List of supported networks to connect | ||
// when the test ledger image is pulled up. | ||
// | ||
export enum Network { | ||
LOCAL = "local", // (Default) pull up a new pristine network image locally. | ||
FUTURENET = "futurenet", // pull up an image to connect to futurenet. Can take several minutes to sync the ledger state. | ||
TESTNET = "testnet", // pull up an image to connect to testnet Can take several minutes to sync the ledger state. | ||
} |
12 changes: 12 additions & 0 deletions
12
packages/cactus-test-tooling/src/main/typescript/stellar/resource-limits.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// | ||
// Define the resource limits set to Soroban transactions | ||
// when pulling up a local network. This defines how smart contract | ||
// transactions are limited in terms of resources during execution. | ||
// | ||
// Transactions that exceed these limits will be rejected. | ||
// | ||
export enum ResourceLimits { | ||
TESTNET = "testnet", // (Default) sets the limits to match those used on testnet. | ||
DEFAULT = "default", // leaves resource limits set extremely low as per Stellar's core default configuration | ||
UNLIMITED = "unlimited", // set limits to maximum resources that can be configured | ||
} |
Oops, something went wrong.