Skip to content

Commit cbdf07a

Browse files
committed
Add workflows dir
1 parent ba8dac5 commit cbdf07a

7 files changed

Lines changed: 95 additions & 2 deletions

File tree

MODULE.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ go_deps.gazelle_default_attributes(
3535
use_repo(
3636
go_deps,
3737
"com_github_doyensec_safeurl",
38+
"com_github_ethereum_go_ethereum",
3839
"com_github_go_co_op_gocron_v2",
3940
"com_github_google_uuid",
4041
"com_github_hashicorp_go_plugin",

go.work

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ use (
1616
./p2psigner
1717
./readcontract
1818
./workflowevent
19-
// ./workflows
20-
// ./workflows/readbalancesgen/cmd
19+
./workflows
20+
./workflows/readbalancesgen/cmd
2121
)

workflows/BUILD.bazel

Whitespace-only changes.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
load("@rules_go//go:def.bzl", "go_binary", "go_library")
2+
3+
go_library(
4+
name = "cmd_lib",
5+
srcs = ["main.go"],
6+
importpath = "github.com/smartcontractkit/capabilities/workflows/fetchtrueusd/cmd",
7+
visibility = ["//visibility:private"],
8+
deps = [
9+
"@com_github_smartcontractkit_chainlink_common//pkg/capabilities/consensus/ocr3/aggregators",
10+
"@com_github_smartcontractkit_chainlink_common//pkg/capabilities/consensus/ocr3/ocr3cap",
11+
"@com_github_smartcontractkit_chainlink_common//pkg/capabilities/targets/chainwriter",
12+
"@com_github_smartcontractkit_chainlink_common//pkg/capabilities/triggers/cron",
13+
"@com_github_smartcontractkit_chainlink_common//pkg/workflows/sdk",
14+
"@com_github_smartcontractkit_chainlink_common//pkg/workflows/wasm",
15+
],
16+
)
17+
18+
go_binary(
19+
name = "cmd",
20+
embed = [":cmd_lib"],
21+
visibility = ["//visibility:public"],
22+
)
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
load("@rules_go//go:def.bzl", "go_binary", "go_library")
2+
3+
go_library(
4+
name = "cmd_lib",
5+
srcs = ["main.go"],
6+
importpath = "github.com/smartcontractkit/capabilities/workflows/readbalances-with-config/cmd",
7+
visibility = ["//visibility:private"],
8+
deps = [
9+
"@com_github_smartcontractkit_chainlink_common//pkg/capabilities/actions/readcontract",
10+
"@com_github_smartcontractkit_chainlink_common//pkg/capabilities/consensus/ocr3/aggregators",
11+
"@com_github_smartcontractkit_chainlink_common//pkg/capabilities/consensus/ocr3/ocr3cap",
12+
"@com_github_smartcontractkit_chainlink_common//pkg/capabilities/targets/chainwriter",
13+
"@com_github_smartcontractkit_chainlink_common//pkg/capabilities/triggers/cron",
14+
"@com_github_smartcontractkit_chainlink_common//pkg/workflows/sdk",
15+
"@com_github_smartcontractkit_chainlink_common//pkg/workflows/wasm",
16+
],
17+
)
18+
19+
go_binary(
20+
name = "cmd",
21+
embed = [":cmd_lib"],
22+
visibility = ["//visibility:public"],
23+
)
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
load("@rules_go//go:def.bzl", "go_binary", "go_library")
2+
3+
go_library(
4+
name = "cmd_lib",
5+
srcs = ["main.go"],
6+
importpath = "github.com/smartcontractkit/capabilities/workflows/readbalances/cmd",
7+
visibility = ["//visibility:private"],
8+
deps = [
9+
"@com_github_smartcontractkit_chainlink_common//pkg/capabilities/actions/readcontract",
10+
"@com_github_smartcontractkit_chainlink_common//pkg/capabilities/consensus/ocr3/aggregators",
11+
"@com_github_smartcontractkit_chainlink_common//pkg/capabilities/consensus/ocr3/ocr3cap",
12+
"@com_github_smartcontractkit_chainlink_common//pkg/capabilities/targets/chainwriter",
13+
"@com_github_smartcontractkit_chainlink_common//pkg/capabilities/triggers/cron",
14+
"@com_github_smartcontractkit_chainlink_common//pkg/workflows/sdk",
15+
"@com_github_smartcontractkit_chainlink_common//pkg/workflows/wasm",
16+
],
17+
)
18+
19+
go_binary(
20+
name = "cmd",
21+
embed = [":cmd_lib"],
22+
visibility = ["//visibility:public"],
23+
)
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
load("@rules_go//go:def.bzl", "go_binary", "go_library")
2+
3+
go_library(
4+
name = "cmd_lib",
5+
srcs = ["main.go"],
6+
importpath = "github.com/smartcontractkit/capabilities/workflows/readbalancesgen/cmd",
7+
visibility = ["//visibility:private"],
8+
deps = [
9+
"@com_github_ethereum_go_ethereum//common",
10+
"@com_github_smartcontractkit_chainlink_common//pkg/capabilities/actions/readcontract",
11+
"@com_github_smartcontractkit_chainlink_common//pkg/capabilities/consensus/ocr3/aggregators",
12+
"@com_github_smartcontractkit_chainlink_common//pkg/capabilities/consensus/ocr3/ocr3cap",
13+
"@com_github_smartcontractkit_chainlink_common//pkg/capabilities/targets/chainwriter",
14+
"@com_github_smartcontractkit_chainlink_common//pkg/capabilities/triggers/cron",
15+
"@com_github_smartcontractkit_chainlink_common//pkg/workflows/sdk",
16+
"@com_github_smartcontractkit_chainlink_common//pkg/workflows/wasm",
17+
],
18+
)
19+
20+
go_binary(
21+
name = "cmd",
22+
embed = [":cmd_lib"],
23+
visibility = ["//visibility:public"],
24+
)

0 commit comments

Comments
 (0)