Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/contracts/DrandCaller.sol
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ contract DrandCaller is LilypadCallerInterface {

function lilypadCancelled(
address _from,
uint _jobId,
uint,
string calldata _errorMsg
) external override {
) external override view {
require(_from == address(bridge));
console.log(_errorMsg);
}
Expand Down
77 changes: 43 additions & 34 deletions examples/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
"hardhat": "^2.12.7"
},
"dependencies": {
"@openzeppelin/contracts": "^4.8.2",
"@openzeppelin/contracts-upgradeable": "^4.8.2",
"lilypad": "file:../hardhat"
}
}
6 changes: 5 additions & 1 deletion pkg/bridge/bacalhau.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package bridge
import (
"context"
"fmt"
"os"
"time"

"github.com/filecoin-project/bacalhau/pkg/job"
Expand Down Expand Up @@ -182,7 +183,10 @@ var _ JobRunner = (*bacalhauRunner)(nil)
// Returns a real job runner that will make real requests against the Bacalhau network.
func NewJobRunner() JobRunner {
apiPort := 1234
apiHost := "35.245.115.191"
apiHost := os.Getenv("BACALHAU_API_HOST")
if apiHost == "" {
apiHost = "35.245.115.191"
}
client := publicapi.NewRequesterAPIClient(fmt.Sprintf("http://%s:%d", apiHost, apiPort))
return &bacalhauRunner{Client: client}
}