Skip to content

Commit

Permalink
support cosmos as LOOP Plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
jmank88 committed Jan 21, 2025
1 parent 852a4a6 commit 4c0a860
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 18 deletions.
2 changes: 1 addition & 1 deletion core/scripts/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ require (
github.com/smartcontractkit/chain-selectors v1.0.36 // indirect
github.com/smartcontractkit/chainlink-ccip v0.0.0-20250120130359-cc025272bbff // indirect
github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20250103152858-8973fd0c912b // indirect
github.com/smartcontractkit/chainlink-cosmos v0.5.2-0.20241202195413-82468150ac1e // indirect
github.com/smartcontractkit/chainlink-cosmos v0.5.2-0.20250121004409-173751e0df94 // indirect

Check failure on line 320 in core/scripts/go.mod

View workflow job for this annotation

GitHub Actions / Validate go.mod dependencies

[./core/scripts/go.mod] dependency github.com/smartcontractkit/[email protected] // indirect not on default branch (develop). Version(commit): 173751e0df94 Tree: https://github.com/smartcontractkit/chainlink-cosmos/tree/173751e0df94 Commit: https://github.com/smartcontractkit/chainlink-cosmos/commit/173751e0df94
github.com/smartcontractkit/chainlink-feeds v0.1.1 // indirect
github.com/smartcontractkit/chainlink-framework/multinode v0.0.0-20250115203616-a2ea5e50b260 // indirect
github.com/smartcontractkit/chainlink-protos/job-distributor v0.6.0 // indirect
Expand Down
4 changes: 2 additions & 2 deletions core/scripts/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1174,8 +1174,8 @@ github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20250103152858-8
github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20250103152858-8973fd0c912b/go.mod h1:Bmwq4lNb5tE47sydN0TKetcLEGbgl+VxHEWp4S0LI60=
github.com/smartcontractkit/chainlink-common v0.4.2-0.20250120234027-b107f5b7f03d h1:GVLCIxZDTwrxYoKq4NBZ8pMKlKtY1q/N9s15Qu4Kuio=
github.com/smartcontractkit/chainlink-common v0.4.2-0.20250120234027-b107f5b7f03d/go.mod h1:V3BHfvLnQNBUoZ4bGjD29ZPhyzPE++DkYkhvPb9tcRs=
github.com/smartcontractkit/chainlink-cosmos v0.5.2-0.20241202195413-82468150ac1e h1:PRoeby6ZlTuTkv2f+7tVU4+zboTfRzI+beECynF4JQ0=
github.com/smartcontractkit/chainlink-cosmos v0.5.2-0.20241202195413-82468150ac1e/go.mod h1:mUh5/woemsVaHgTorA080hrYmO3syBCmPdnWc/5dOqk=
github.com/smartcontractkit/chainlink-cosmos v0.5.2-0.20250121004409-173751e0df94 h1:yHtfNM+btEBfhqQCYG8hYj3R7bMCmSnAiZ7kzKMVa/U=
github.com/smartcontractkit/chainlink-cosmos v0.5.2-0.20250121004409-173751e0df94/go.mod h1:w2mT+MIiZ2w9d/yb2GfsDKgOuF1kmMcFZ18NTtGECnE=
github.com/smartcontractkit/chainlink-data-streams v0.1.1-0.20250115135646-ac859d85e7e3 h1:GcPYNVFYjB065CNq0h8nK/VeU08nUkHgBX0cJIEpuHY=
github.com/smartcontractkit/chainlink-data-streams v0.1.1-0.20250115135646-ac859d85e7e3/go.mod h1:pDZagSGjs9U+l4YIFhveDznMHqxuuz+5vRxvVgpbdr8=
github.com/smartcontractkit/chainlink-feeds v0.1.1 h1:JzvUOM/OgGQA1sOqTXXl52R6AnNt+Wg64sVG+XSA49c=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ func setupNodeCCIP(
},
CSAETHKeystore: simEthKeyStore,
}
loopRegistry := plugins.NewLoopRegistry(lggr.Named("LoopRegistry"), config.Tracing(), config.Telemetry(), nil, "")
loopRegistry := plugins.NewLoopRegistry(lggr.Named("LoopRegistry"), config.Database(), config.Tracing(), config.Telemetry(), nil, "")
relayerFactory := chainlink.RelayerFactory{
Logger: lggr,
LoopRegistry: loopRegistry,
Expand Down Expand Up @@ -490,7 +490,7 @@ func setupNodeCCIP(
RestrictedHTTPClient: &http.Client{},
AuditLogger: audit.NoopLogger,
MailMon: mailMon,
LoopRegistry: plugins.NewLoopRegistry(lggr, config.Tracing(), config.Telemetry(), nil, ""),
LoopRegistry: plugins.NewLoopRegistry(lggr, config.Database(), config.Tracing(), config.Telemetry(), nil, ""),
})
ctx := testutils.Context(t)
require.NoError(t, err)
Expand Down
2 changes: 1 addition & 1 deletion core/services/pg/locked_db.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func (l *lockedDb) Open(ctx context.Context) (err error) {
}
revert := func() {
// Let Open() return the actual error, while l.Close() error is just logged.
if err2 := l.close(); err2 != nil {
if err2 := l.Close(); err2 != nil {
l.lggr.Errorf("failed to cleanup LockedDB: %v", err2)
}
}
Expand Down
2 changes: 1 addition & 1 deletion deployment/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ require (
github.com/shopspring/decimal v1.4.0 // indirect
github.com/sirupsen/logrus v1.9.3 // indirect
github.com/smartcontractkit/chainlink-automation v0.8.1 // indirect
github.com/smartcontractkit/chainlink-cosmos v0.5.2-0.20241202195413-82468150ac1e // indirect
github.com/smartcontractkit/chainlink-cosmos v0.5.2-0.20250121004409-173751e0df94 // indirect

Check failure on line 421 in deployment/go.mod

View workflow job for this annotation

GitHub Actions / Validate go.mod dependencies

[./deployment/go.mod] dependency github.com/smartcontractkit/[email protected] // indirect not on default branch (develop). Version(commit): 173751e0df94 Tree: https://github.com/smartcontractkit/chainlink-cosmos/tree/173751e0df94 Commit: https://github.com/smartcontractkit/chainlink-cosmos/commit/173751e0df94
github.com/smartcontractkit/chainlink-data-streams v0.1.1-0.20250115135646-ac859d85e7e3 // indirect
github.com/smartcontractkit/chainlink-feeds v0.1.1 // indirect
github.com/smartcontractkit/chainlink-framework/multinode v0.0.0-20250115203616-a2ea5e50b260 // indirect
Expand Down
4 changes: 2 additions & 2 deletions deployment/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1400,8 +1400,8 @@ github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20250103152858-8
github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20250103152858-8973fd0c912b/go.mod h1:Bmwq4lNb5tE47sydN0TKetcLEGbgl+VxHEWp4S0LI60=
github.com/smartcontractkit/chainlink-common v0.4.2-0.20250120234027-b107f5b7f03d h1:GVLCIxZDTwrxYoKq4NBZ8pMKlKtY1q/N9s15Qu4Kuio=
github.com/smartcontractkit/chainlink-common v0.4.2-0.20250120234027-b107f5b7f03d/go.mod h1:V3BHfvLnQNBUoZ4bGjD29ZPhyzPE++DkYkhvPb9tcRs=
github.com/smartcontractkit/chainlink-cosmos v0.5.2-0.20241202195413-82468150ac1e h1:PRoeby6ZlTuTkv2f+7tVU4+zboTfRzI+beECynF4JQ0=
github.com/smartcontractkit/chainlink-cosmos v0.5.2-0.20241202195413-82468150ac1e/go.mod h1:mUh5/woemsVaHgTorA080hrYmO3syBCmPdnWc/5dOqk=
github.com/smartcontractkit/chainlink-cosmos v0.5.2-0.20250121004409-173751e0df94 h1:yHtfNM+btEBfhqQCYG8hYj3R7bMCmSnAiZ7kzKMVa/U=
github.com/smartcontractkit/chainlink-cosmos v0.5.2-0.20250121004409-173751e0df94/go.mod h1:w2mT+MIiZ2w9d/yb2GfsDKgOuF1kmMcFZ18NTtGECnE=
github.com/smartcontractkit/chainlink-data-streams v0.1.1-0.20250115135646-ac859d85e7e3 h1:GcPYNVFYjB065CNq0h8nK/VeU08nUkHgBX0cJIEpuHY=
github.com/smartcontractkit/chainlink-data-streams v0.1.1-0.20250115135646-ac859d85e7e3/go.mod h1:pDZagSGjs9U+l4YIFhveDznMHqxuuz+5vRxvVgpbdr8=
github.com/smartcontractkit/chainlink-feeds v0.1.1 h1:JzvUOM/OgGQA1sOqTXXl52R6AnNt+Wg64sVG+XSA49c=
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ require (
github.com/smartcontractkit/chainlink-automation v0.8.1
github.com/smartcontractkit/chainlink-ccip v0.0.0-20250120130359-cc025272bbff
github.com/smartcontractkit/chainlink-common v0.4.2-0.20250120234027-b107f5b7f03d

Check failure on line 82 in go.mod

View workflow job for this annotation

GitHub Actions / Validate go.mod dependencies

[./go.mod] dependency github.com/smartcontractkit/[email protected] not on default branch (main). Version(commit): b107f5b7f03d Tree: https://github.com/smartcontractkit/chainlink-common/tree/b107f5b7f03d Commit: https://github.com/smartcontractkit/chainlink-common/commit/b107f5b7f03d
github.com/smartcontractkit/chainlink-cosmos v0.5.2-0.20241202195413-82468150ac1e
github.com/smartcontractkit/chainlink-cosmos v0.5.2-0.20250121004409-173751e0df94

Check failure on line 83 in go.mod

View workflow job for this annotation

GitHub Actions / Validate go.mod dependencies

[./go.mod] dependency github.com/smartcontractkit/[email protected] not on default branch (develop). Version(commit): 173751e0df94 Tree: https://github.com/smartcontractkit/chainlink-cosmos/tree/173751e0df94 Commit: https://github.com/smartcontractkit/chainlink-cosmos/commit/173751e0df94
github.com/smartcontractkit/chainlink-data-streams v0.1.1-0.20250115135646-ac859d85e7e3
github.com/smartcontractkit/chainlink-feeds v0.1.1
github.com/smartcontractkit/chainlink-framework/multinode v0.0.0-20250115203616-a2ea5e50b260
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1156,8 +1156,8 @@ github.com/smartcontractkit/chainlink-ccip v0.0.0-20250120130359-cc025272bbff h1
github.com/smartcontractkit/chainlink-ccip v0.0.0-20250120130359-cc025272bbff/go.mod h1:JJZMCB75aVSAiPNW032F9WUKTlLztTd8bbQB5MEaZa4=
github.com/smartcontractkit/chainlink-common v0.4.2-0.20250120234027-b107f5b7f03d h1:GVLCIxZDTwrxYoKq4NBZ8pMKlKtY1q/N9s15Qu4Kuio=
github.com/smartcontractkit/chainlink-common v0.4.2-0.20250120234027-b107f5b7f03d/go.mod h1:V3BHfvLnQNBUoZ4bGjD29ZPhyzPE++DkYkhvPb9tcRs=
github.com/smartcontractkit/chainlink-cosmos v0.5.2-0.20241202195413-82468150ac1e h1:PRoeby6ZlTuTkv2f+7tVU4+zboTfRzI+beECynF4JQ0=
github.com/smartcontractkit/chainlink-cosmos v0.5.2-0.20241202195413-82468150ac1e/go.mod h1:mUh5/woemsVaHgTorA080hrYmO3syBCmPdnWc/5dOqk=
github.com/smartcontractkit/chainlink-cosmos v0.5.2-0.20250121004409-173751e0df94 h1:yHtfNM+btEBfhqQCYG8hYj3R7bMCmSnAiZ7kzKMVa/U=
github.com/smartcontractkit/chainlink-cosmos v0.5.2-0.20250121004409-173751e0df94/go.mod h1:w2mT+MIiZ2w9d/yb2GfsDKgOuF1kmMcFZ18NTtGECnE=
github.com/smartcontractkit/chainlink-data-streams v0.1.1-0.20250115135646-ac859d85e7e3 h1:GcPYNVFYjB065CNq0h8nK/VeU08nUkHgBX0cJIEpuHY=
github.com/smartcontractkit/chainlink-data-streams v0.1.1-0.20250115135646-ac859d85e7e3/go.mod h1:pDZagSGjs9U+l4YIFhveDznMHqxuuz+5vRxvVgpbdr8=
github.com/smartcontractkit/chainlink-feeds v0.1.1 h1:JzvUOM/OgGQA1sOqTXXl52R6AnNt+Wg64sVG+XSA49c=
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ require (
github.com/sirupsen/logrus v1.9.3 // indirect
github.com/smartcontractkit/ccip-owner-contracts v0.0.0-salt-fix // indirect
github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20250103152858-8973fd0c912b // indirect
github.com/smartcontractkit/chainlink-cosmos v0.5.2-0.20241202195413-82468150ac1e // indirect
github.com/smartcontractkit/chainlink-cosmos v0.5.2-0.20250121004409-173751e0df94 // indirect

Check failure on line 436 in integration-tests/go.mod

View workflow job for this annotation

GitHub Actions / Validate go.mod dependencies

[./integration-tests/go.mod] dependency github.com/smartcontractkit/[email protected] // indirect not on default branch (develop). Version(commit): 173751e0df94 Tree: https://github.com/smartcontractkit/chainlink-cosmos/tree/173751e0df94 Commit: https://github.com/smartcontractkit/chainlink-cosmos/commit/173751e0df94
github.com/smartcontractkit/chainlink-data-streams v0.1.1-0.20250115135646-ac859d85e7e3 // indirect
github.com/smartcontractkit/chainlink-feeds v0.1.1 // indirect
github.com/smartcontractkit/chainlink-framework/multinode v0.0.0-20250115203616-a2ea5e50b260 // indirect
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1424,8 +1424,8 @@ github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20250103152858-8
github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20250103152858-8973fd0c912b/go.mod h1:Bmwq4lNb5tE47sydN0TKetcLEGbgl+VxHEWp4S0LI60=
github.com/smartcontractkit/chainlink-common v0.4.2-0.20250120234027-b107f5b7f03d h1:GVLCIxZDTwrxYoKq4NBZ8pMKlKtY1q/N9s15Qu4Kuio=
github.com/smartcontractkit/chainlink-common v0.4.2-0.20250120234027-b107f5b7f03d/go.mod h1:V3BHfvLnQNBUoZ4bGjD29ZPhyzPE++DkYkhvPb9tcRs=
github.com/smartcontractkit/chainlink-cosmos v0.5.2-0.20241202195413-82468150ac1e h1:PRoeby6ZlTuTkv2f+7tVU4+zboTfRzI+beECynF4JQ0=
github.com/smartcontractkit/chainlink-cosmos v0.5.2-0.20241202195413-82468150ac1e/go.mod h1:mUh5/woemsVaHgTorA080hrYmO3syBCmPdnWc/5dOqk=
github.com/smartcontractkit/chainlink-cosmos v0.5.2-0.20250121004409-173751e0df94 h1:yHtfNM+btEBfhqQCYG8hYj3R7bMCmSnAiZ7kzKMVa/U=
github.com/smartcontractkit/chainlink-cosmos v0.5.2-0.20250121004409-173751e0df94/go.mod h1:w2mT+MIiZ2w9d/yb2GfsDKgOuF1kmMcFZ18NTtGECnE=
github.com/smartcontractkit/chainlink-data-streams v0.1.1-0.20250115135646-ac859d85e7e3 h1:GcPYNVFYjB065CNq0h8nK/VeU08nUkHgBX0cJIEpuHY=
github.com/smartcontractkit/chainlink-data-streams v0.1.1-0.20250115135646-ac859d85e7e3/go.mod h1:pDZagSGjs9U+l4YIFhveDznMHqxuuz+5vRxvVgpbdr8=
github.com/smartcontractkit/chainlink-feeds v0.1.1 h1:JzvUOM/OgGQA1sOqTXXl52R6AnNt+Wg64sVG+XSA49c=
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/load/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ require (
github.com/smartcontractkit/chain-selectors v1.0.36 // indirect
github.com/smartcontractkit/chainlink-automation v0.8.1 // indirect
github.com/smartcontractkit/chainlink-ccip v0.0.0-20250120130359-cc025272bbff // indirect
github.com/smartcontractkit/chainlink-cosmos v0.5.2-0.20241202195413-82468150ac1e // indirect
github.com/smartcontractkit/chainlink-cosmos v0.5.2-0.20250121004409-173751e0df94 // indirect

Check failure on line 419 in integration-tests/load/go.mod

View workflow job for this annotation

GitHub Actions / Validate go.mod dependencies

[./integration-tests/load/go.mod] dependency github.com/smartcontractkit/[email protected] // indirect not on default branch (develop). Version(commit): 173751e0df94 Tree: https://github.com/smartcontractkit/chainlink-cosmos/tree/173751e0df94 Commit: https://github.com/smartcontractkit/chainlink-cosmos/commit/173751e0df94
github.com/smartcontractkit/chainlink-data-streams v0.1.1-0.20250115135646-ac859d85e7e3 // indirect
github.com/smartcontractkit/chainlink-feeds v0.1.1 // indirect
github.com/smartcontractkit/chainlink-framework/multinode v0.0.0-20250115203616-a2ea5e50b260 // indirect
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/load/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1409,8 +1409,8 @@ github.com/smartcontractkit/chainlink-ccip v0.0.0-20250120130359-cc025272bbff h1
github.com/smartcontractkit/chainlink-ccip v0.0.0-20250120130359-cc025272bbff/go.mod h1:JJZMCB75aVSAiPNW032F9WUKTlLztTd8bbQB5MEaZa4=
github.com/smartcontractkit/chainlink-common v0.4.2-0.20250120234027-b107f5b7f03d h1:GVLCIxZDTwrxYoKq4NBZ8pMKlKtY1q/N9s15Qu4Kuio=
github.com/smartcontractkit/chainlink-common v0.4.2-0.20250120234027-b107f5b7f03d/go.mod h1:V3BHfvLnQNBUoZ4bGjD29ZPhyzPE++DkYkhvPb9tcRs=
github.com/smartcontractkit/chainlink-cosmos v0.5.2-0.20241202195413-82468150ac1e h1:PRoeby6ZlTuTkv2f+7tVU4+zboTfRzI+beECynF4JQ0=
github.com/smartcontractkit/chainlink-cosmos v0.5.2-0.20241202195413-82468150ac1e/go.mod h1:mUh5/woemsVaHgTorA080hrYmO3syBCmPdnWc/5dOqk=
github.com/smartcontractkit/chainlink-cosmos v0.5.2-0.20250121004409-173751e0df94 h1:yHtfNM+btEBfhqQCYG8hYj3R7bMCmSnAiZ7kzKMVa/U=
github.com/smartcontractkit/chainlink-cosmos v0.5.2-0.20250121004409-173751e0df94/go.mod h1:w2mT+MIiZ2w9d/yb2GfsDKgOuF1kmMcFZ18NTtGECnE=
github.com/smartcontractkit/chainlink-data-streams v0.1.1-0.20250115135646-ac859d85e7e3 h1:GcPYNVFYjB065CNq0h8nK/VeU08nUkHgBX0cJIEpuHY=
github.com/smartcontractkit/chainlink-data-streams v0.1.1-0.20250115135646-ac859d85e7e3/go.mod h1:pDZagSGjs9U+l4YIFhveDznMHqxuuz+5vRxvVgpbdr8=
github.com/smartcontractkit/chainlink-feeds v0.1.1 h1:JzvUOM/OgGQA1sOqTXXl52R6AnNt+Wg64sVG+XSA49c=
Expand Down
1 change: 1 addition & 0 deletions plugins/loop_registry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"github.com/stretchr/testify/require"

"github.com/smartcontractkit/chainlink-common/pkg/loop"

"github.com/smartcontractkit/chainlink/v2/core/config"
"github.com/smartcontractkit/chainlink/v2/core/logger"
)
Expand Down

0 comments on commit 4c0a860

Please sign in to comment.