-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(connector-stellar): add a deploy contract endpoint
- Add a Stellar Connector plugin following the same pattern as the **Besu Connector plugin**. - Add a deploy contract endpoint to the Stellar Connector plugin. **Initialization remarks:** Supports a network configuration object to define all integration services that seamlessly integrate with the Stellar test ledger within the Cacti test tooling. **Deploy remarks:** The deploy process supports both the compiled smart contract WASM as well as the on-chain WASM hash as inputs. This follows the smart contract deployment design on Soroban (Stellar's smart contract platform). Refer to the Stellar documentation at: https://developers.stellar.org/docs/learn/fundamentals/stellar-data-structures/contracts for further detail on this process. More details can be found in the `README.md` file under the connector root directory. Signed-off-by: Fabricius Zatti <[email protected]>
- Loading branch information
Showing
21 changed files
with
1,246 additions
and
265 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -39,6 +39,7 @@ jobs: | |
plugin-ledger-connector-ethereum-changed: ${{ steps.changes.outputs.plugin-ledger-connector-ethereum-changed }} | ||
plugin-ledger-connector-iroha2-changed: ${{ steps.changes.outputs.plugin-ledger-connector-iroha2-changed }} | ||
plugin-ledger-connector-quorum-changed: ${{ steps.changes.outputs.plugin-ledger-connector-quorum-changed }} | ||
plugin-ledger-connector-stellar-changed: ${{ steps.changes.outputs.plugin-ledger-connector-stellar-changed }} | ||
plugin-htlc-coordinator-besu-changed: ${{ steps.changes.outputs.plugin-htlc-coordinator-besu-changed }} | ||
test-tooling-changed: ${{ steps.changes.outputs.test-tooling-changed }} | ||
ghcr-corda-all-in-one-obligation-changed: ${{ steps.changes.outputs.ghcr-corda-all-in-one-obligation-changed }} | ||
|
@@ -134,6 +135,15 @@ jobs: | |
- './packages/cactus-plugin-keychain-memory/**' | ||
# - './.github/workflows/ci.yaml' | ||
plugin-ledger-connector-stellar-changed: | ||
- './packages/cacti-plugin-ledger-connector-stellar/**' | ||
- './packages/cactus-common/**' | ||
- './packages/cactus-core/**' | ||
- './packages/cactus-core-api/**' | ||
- './packages/cactus-test-tooling/**' | ||
- './packages/cactus-plugin-keychain-memory/**' | ||
# - './.github/workflows/ci.yaml' | ||
test-tooling-changed: | ||
- './packages/cactus-test-tooling/**' | ||
- './packages/cactus-common/**' | ||
|
@@ -1105,6 +1115,36 @@ jobs: | |
restore-keys: | | ||
${{ runner.os }}-yarn-${{ hashFiles('./yarn.lock') }} | ||
- run: ./tools/ci.sh | ||
|
||
cpl-connector-stellar: | ||
continue-on-error: false | ||
needs: | ||
- build-dev | ||
- compute_changed_packages | ||
if: needs.compute_changed_packages.outputs.plugin-ledger-connector-stellar-changed == 'true' | ||
env: | ||
FULL_BUILD_DISABLED: true | ||
JEST_TEST_PATTERN: packages/cacti-plugin-ledger-connector-stellar/src/test/typescript/(unit|integration|benchmark)/.*/*.test.ts | ||
JEST_TEST_RUNNER_DISABLED: false | ||
TAPE_TEST_RUNNER_DISABLED: true | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Use Node.js ${{ env.NODEJS_VERSION }} | ||
uses: actions/[email protected] | ||
with: | ||
node-version: ${{ env.NODEJS_VERSION }} | ||
- uses: actions/[email protected] | ||
|
||
- id: yarn-cache | ||
name: Restore Yarn Cache | ||
uses: actions/[email protected] | ||
with: | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('./yarn.lock') }} | ||
path: ./.yarn/ | ||
restore-keys: | | ||
${{ runner.os }}-yarn-${{ hashFiles('./yarn.lock') }} | ||
- run: ./tools/ci.sh | ||
|
||
|
||
plc-fabric-0: | ||
needs: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
{ | ||
"name": "@hyperledger/cacti-plugin-ledger-connector-stellar", | ||
"version": "2.0.0-alpha.2", | ||
"private": true, | ||
"description": "Allows Cacti nodes to connect to a Stellar ledger.", | ||
"keywords": [ | ||
"Hyperledger", | ||
|
@@ -34,6 +33,11 @@ | |
"name": "Peter Somogyvari", | ||
"email": "[email protected]", | ||
"url": "https://accenture.com" | ||
}, | ||
{ | ||
"name": "Fabricius Zatti", | ||
"email": "[email protected]", | ||
"url": "https://oififo.com" | ||
} | ||
], | ||
"main": "dist/lib/main/typescript/index.js", | ||
|
@@ -67,6 +71,7 @@ | |
"run-time-error-cjs": "1.4.0", | ||
"rxjs": "7.8.1", | ||
"socket.io-client-fixed-types": "4.5.4", | ||
"stellar-plus": "0.8.4", | ||
"typescript-optional": "2.0.1" | ||
}, | ||
"devDependencies": { | ||
|
@@ -86,7 +91,7 @@ | |
"npm": ">=8" | ||
}, | ||
"publishConfig": { | ||
"access": "restricted" | ||
"access": "public" | ||
}, | ||
"browserMinified": "dist/cacti-plugin-ledger-connector-stellar.web.umd.min.js", | ||
"mainMinified": "dist/cacti-plugin-ledger-connector-stellar.node.umd.min.js", | ||
|
Oops, something went wrong.