Skip to content

Commit

Permalink
Functional flow.json
Browse files Browse the repository at this point in the history
  • Loading branch information
lealobanov committed Jul 13, 2024
1 parent 44641ed commit b769cd9
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 46 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci-kotlin-examples-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ jobs:
id: start_emulator
if: ${{ steps.build.outcome == 'success' }}
run: |
flow init
nohup flow emulator start -v > flow-emulator.log 2>&1 &
- name: Wait for emulator to start
Expand Down
18 changes: 4 additions & 14 deletions flow.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,10 @@
"serviceAccount": "emulator-account"
}
},
"contracts": {},
"networks": {
"emulator": {
"host": "127.0.0.1:3569",
"chain": "flow-emulator"
},
"mainnet": {
"host": "access.mainnet.nodes.onflow.org:9000",
"chain": "flow-mainnet"
},
"testnet": {
"host": "access.devnet.nodes.onflow.org:9000",
"chain": "flow-testnet"
}
"emulator": "127.0.0.1:3569",
"mainnet": "access.mainnet.nodes.onflow.org:9000",
"testnet": "access.devnet.nodes.onflow.org:9000"
},
"accounts": {
"emulator-account": {
Expand All @@ -28,4 +18,4 @@
}
},
"deployments": {}
}
}
19 changes: 19 additions & 0 deletions java-example/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Java Flow Client Example

Example Java application using the [Flow JVM SDK](https://github.com/onflow/flow-jvm-sdk) to interact with Flow blockchain.

## Usage

First, install the [Flow CLI](https://docs.onflow.org/flow-cli).

Start the [Flow Emulator](https://docs.onflow.org/emulator) in the main directory of this repository:

```sh
flow emulator start -v
```

Then, in a separate terminal, run the application with Gradle:

```sh
./gradlew test -i
```
31 changes: 0 additions & 31 deletions kotlin-example/flow.json

This file was deleted.

0 comments on commit b769cd9

Please sign in to comment.