Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

Commit

Permalink
update TODO description
Browse files Browse the repository at this point in the history
  • Loading branch information
shun-tak committed Apr 19, 2020
1 parent cac006d commit 4821768
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import org.web3j.protocol.http.HttpService
@SchedulableFlow
class EventWatchFlow(private val stateRef: StateRef) : FlowLogic<String>() {
companion object {
// TODO Some ethereum parameters should be imported by .env
// TODO Use Node Configuration https://github.com/LayerXcom/cordage/issues/20
private const val ETHEREUM_RPC_URL = "http://localhost:8545"
val web3: Web3j = Web3j.build(HttpService(ETHEREUM_RPC_URL))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import java.math.BigInteger
@StartableByRPC
class StartEventWatchFlow(private val proposalStateLinearId: UniqueIdentifier) : FlowLogic<Unit>() {
companion object {
// TODO Some ethereum parameters should be imported by .env
// TODO Use Node Configuration https://github.com/LayerXcom/cordage/issues/20
private const val ETHEREUM_RPC_URL = "http://localhost:8545"
private const val ETHEREUM_NETWORK_ID = "5777"
const val EVENT_NAME = "Locked"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import java.math.BigInteger

class CustomValidatingNotaryFlow(otherSide: FlowSession, service: CustomValidatingNotaryService) : ValidatingNotaryFlow(otherSide, service) {
companion object {
// TODO Use Node Configuration https://github.com/LayerXcom/cordage/issues/20
private const val ETHEREUM_RPC_URL = "http://localhost:8545"
private const val ETHEREUM_NETWORK_ID = "5777"
private const val ETHEREUM_PRIVATE_KEY = "0x646f1ce2fdad0e6deeeb5c7e8e5543bdde65e86029e2fd9fc169899c440a7913"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class CustomValidatingNotaryFlow(otherSide: FlowSession, service: CustomValidati
val data = "Terminate: " + agreement.agreementBody

// Add custom verification logic
// TODO Use Node Configuration https://github.com/LayerXcom/cordage/issues/20
val ETHEREUM_RPC_URL = "http://localhost:8545"
val web3 = Web3j.build(HttpService(ETHEREUM_RPC_URL))
val tx = Transaction.createFunctionCallTransaction(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class EventWatchFlow(private val stateRef: StateRef) : FlowLogic<String>() {
companion object {
private const val ETHEREUM_RPC_URL = "http://localhost:8545"
val web3: Web3j = Web3j.build(HttpService(ETHEREUM_RPC_URL))
// TODO credentials should be imported by .env
// TODO Use Node Configuration https://github.com/LayerXcom/cordage/issues/20
val credentials: Credentials = Credentials.create("0x4f3edf983ac636a65a842ce7c78d9aa706d3b113bce9c46f30d7d21715b23b1d")
val eventMapping = mapOf<String, Event>("Set" to SimpleStorage.SET_EVENT)
object CREATING_WATCHERSTATE: ProgressTracker.Step("Creating new WatcherState.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import java.math.BigInteger
@StartableByRPC
class StartEventWatchFlow(private val searchId: Int) : FlowLogic<Unit>() {
companion object {
// TODO Some ethereum parameters should be imported by .env
// TODO Use Node Configuration https://github.com/LayerXcom/cordage/issues/20
private const val ETHEREUM_RPC_URL = "http://localhost:8545"
private const val ETHEREUM_NETWORK_ID = "5777"
const val EVENT_NAME = "Set"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import org.web3j.protocol.core.methods.request.Transaction
import org.web3j.protocol.http.HttpService
import java.math.BigInteger

// TODO Use Node Configuration https://github.com/LayerXcom/cordage/issues/20
const val ETHEREUM_RPC_URL = "http://localhost:8545"

@InitiatingFlow
Expand Down

0 comments on commit 4821768

Please sign in to comment.