Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block range guarantees #9022

Merged
merged 34 commits into from
Jun 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
5f71330
Support libocr in-protocol block range guarantees
vyzaldysanchez Apr 20, 2023
d696ee5
scripts go.mod
samsondav Jun 6, 2023
fd707c6
test
samsondav Jun 6, 2023
50be897
Update core/web/presenters/ocr_keys.go
samsondav Jun 6, 2023
7935735
remove commented useless code
samsondav Jun 6, 2023
291cb53
Remove panics'
samsondav Jun 6, 2023
e4671ee
imports
samsondav Jun 6, 2023
f61fc96
Merge branch 'develop' into feature/MERC-114/block-range-guarantee
samsondav Jun 6, 2023
03dae83
Bump libocr to go get github.com/smartcontractkit/libocr@232b0d24bb3c…
samsondav Jun 6, 2023
b2375fb
lint
samsondav Jun 6, 2023
5c97c6b
Merge branch 'develop' into feature/MERC-114/block-range-guarantee
samsondav Jun 6, 2023
212a6fa
bump libocr to 3c336ffb2acf2b4ef261f5f7d52e9a9628985207
samsondav Jun 6, 2023
4791b25
go get github.com/smartcontractkit/chainlink-relay@7a0cfc835c3fcead61…
samsondav Jun 6, 2023
81b5546
gomodtidy
samsondav Jun 6, 2023
1103b09
Merge remote-tracking branch 'origin/develop' into feature/MERC-114/b…
samsondav Jun 6, 2023
e4adea5
Fix lint
samsondav Jun 6, 2023
8693472
Merge branch 'develop' into feature/MERC-114/block-range-guarantee
samsondav Jun 6, 2023
f314470
fix merge conflict
samsondav Jun 6, 2023
a0181c4
Merge remote-tracking branch 'origin/develop' into feature/MERC-114/b…
samsondav Jun 6, 2023
04cb288
Merge branch 'develop' into feature/MERC-114/block-range-guarantee
samsondav Jun 6, 2023
73e523b
libocr => 82b910bef5c1c95cc7a886091ccfc1895bde76f5
samsondav Jun 6, 2023
f13722e
Merge remote-tracking branch 'origin/feature/MERC-114/block-range-gua…
samsondav Jun 6, 2023
bcb7c6a
Merge remote-tracking branch 'origin/develop' into feature/MERC-114/b…
samsondav Jun 6, 2023
31b1773
Merge branch 'develop' into feature/MERC-114/block-range-guarantee
samsondav Jun 6, 2023
ff19c45
no longer experimental
samsondav Jun 6, 2023
ddbc8ec
latest ocr2vrf
samsondav Jun 7, 2023
64e45e6
Merge remote-tracking branch 'origin/feature/MERC-114/block-range-gua…
samsondav Jun 7, 2023
4cdf532
Merge remote-tracking branch 'origin/develop' into feature/MERC-114/b…
samsondav Jun 7, 2023
59ebe85
Merge branch 'develop' into feature/MERC-114/block-range-guarantee
samsondav Jun 7, 2023
63004f3
Merge remote-tracking branch 'origin/develop' into feature/MERC-114/b…
samsondav Jun 7, 2023
347629d
Fix conflicts
samsondav Jun 7, 2023
e1edcaa
rename InitialValidFromBlockNumber to InitialBlockNumber
samsondav Jun 7, 2023
a548fae
Merge branch 'develop' into feature/MERC-114/block-range-guarantee
samsondav Jun 7, 2023
b493f4a
Merge branch 'develop' into feature/MERC-114/block-range-guarantee
samsondav Jun 7, 2023
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
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
golang 1.20.4
mockery 2.28.1
nodejs 16.13.2
nodejs 16.16.0
postgres 13.3
helm 3.10.3
zig 0.10.1
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ If you do end up modifying the migrations for the database, you will need to rer
7. Run tests:

```bash
go test -tags test ./
go test -tags test ./...
```

#### Notes
Expand Down
1 change: 1 addition & 0 deletions core/chains/evm/logpoller/log_poller.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ func (lp *logPoller) Filter(from, to *big.Int, bh *common.Hash) ethereum.FilterQ
// is already in progress, the replay will continue and ErrReplayInProgress will be returned. If the client needs a
// guarantee that the replay is complete before proceeding, it should either avoid cancelling or retry until nil is returned
func (lp *logPoller) Replay(ctx context.Context, fromBlock int64) error {
lp.lggr.Debugf("Replaying from block %d", fromBlock)
latest, err := lp.ec.HeadByNumber(ctx, nil)
if err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion core/cmd/csa_keys_commands_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func TestShell_ListCSAKeys(t *testing.T) {
assert.Nil(t, client.ListCSAKeys(cltest.EmptyCLIContext()))
require.Equal(t, 1, len(r.Renders))
keys := *r.Renders[0].(*cmd.CSAKeyPresenters)
assert.Equal(t, key.PublicKeyString(), keys[0].PubKey)
assert.Equal(t, fmt.Sprintf("csa_%s", key.PublicKeyString()), keys[0].PubKey)
}

func TestShell_CreateCSAKey(t *testing.T) {
Expand Down
22 changes: 16 additions & 6 deletions core/internal/features/ocr2/features_ocr2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import (
"github.com/smartcontractkit/libocr/commontypes"
"github.com/smartcontractkit/libocr/gethwrappers2/ocr2aggregator"
testoffchainaggregator2 "github.com/smartcontractkit/libocr/gethwrappers2/testocr2aggregator"
confighelper2 "github.com/smartcontractkit/libocr/offchainreporting2/confighelper"
ocrtypes2 "github.com/smartcontractkit/libocr/offchainreporting2/types"
confighelper2 "github.com/smartcontractkit/libocr/offchainreporting2plus/confighelper"
ocrtypes2 "github.com/smartcontractkit/libocr/offchainreporting2plus/types"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"golang.org/x/exp/maps"
Expand Down Expand Up @@ -295,6 +295,7 @@ fromBlock = %d
"0": {}, "10": {}, "20": {}, "30": {},
}
for i := 0; i < 4; i++ {
s := i
err = apps[i].Start(testutils.Context(t))
require.NoError(t, err)

Expand All @@ -305,7 +306,9 @@ fromBlock = %d
_, err := res.Write([]byte(`{"data":10}`))
require.NoError(t, err)
}))
t.Cleanup(slowServers[i].Close)
t.Cleanup(func() {
slowServers[s].Close()
})
servers[i] = httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) {
b, err := io.ReadAll(req.Body)
require.NoError(t, err)
Expand All @@ -320,7 +323,9 @@ fromBlock = %d
_, err = res.Write([]byte(`{"data":10}`))
require.NoError(t, err)
}))
t.Cleanup(servers[i].Close)
t.Cleanup(func() {
servers[s].Close()
})
u, _ := url.Parse(servers[i].URL)
require.NoError(t, apps[i].BridgeORM().CreateBridgeType(&bridges.BridgeType{
Name: bridges.BridgeName(fmt.Sprintf("bridge%d", i)),
Expand Down Expand Up @@ -559,6 +564,7 @@ chainID = 1337
"0": {}, "10": {}, "20": {}, "30": {},
}
for i := 0; i < 4; i++ {
s := i
err = apps[i].Start(testutils.Context(t))
require.NoError(t, err)

Expand All @@ -569,7 +575,9 @@ chainID = 1337
_, err := res.Write([]byte(`{"data":10}`))
require.NoError(t, err)
}))
t.Cleanup(slowServers[i].Close)
t.Cleanup(func() {
slowServers[s].Close()
})
servers[i] = httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) {
b, err := io.ReadAll(req.Body)
require.NoError(t, err)
Expand All @@ -584,7 +592,9 @@ chainID = 1337
_, err = res.Write([]byte(`{"data":10}`))
require.NoError(t, err)
}))
t.Cleanup(servers[i].Close)
t.Cleanup(func() {
servers[s].Close()
})
u, _ := url.Parse(servers[i].URL)
require.NoError(t, apps[i].BridgeORM().CreateBridgeType(&bridges.BridgeType{
Name: bridges.BridgeName(fmt.Sprintf("bridge%d", i)),
Expand Down
4 changes: 2 additions & 2 deletions core/scripts/chaincli/handler/keeper_deployer.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
ocr2config "github.com/smartcontractkit/libocr/offchainreporting2/confighelper"
ocr2types "github.com/smartcontractkit/libocr/offchainreporting2/types"
ocr2config "github.com/smartcontractkit/libocr/offchainreporting2plus/confighelper"
ocr2types "github.com/smartcontractkit/libocr/offchainreporting2plus/types"
ocr2keepers "github.com/smartcontractkit/ocr2keepers/pkg/types"
"github.com/umbracle/ethgo/abi"

Expand Down
2 changes: 1 addition & 1 deletion core/scripts/chaincli/handler/ocr2_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/olekukonko/tablewriter"
"github.com/smartcontractkit/libocr/offchainreporting2/confighelper"
"github.com/smartcontractkit/libocr/offchainreporting2plus/confighelper"
plugintypes "github.com/smartcontractkit/ocr2keepers/pkg/types"

"github.com/smartcontractkit/chainlink/v2/core/gethwrappers/generated/keeper_registry_wrapper2_0"
Expand Down
2 changes: 1 addition & 1 deletion core/scripts/chaincli/handler/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/rpc"
"github.com/olekukonko/tablewriter"
ocrtypes "github.com/smartcontractkit/libocr/offchainreporting2/types"
ocrtypes "github.com/smartcontractkit/libocr/offchainreporting2plus/types"
"github.com/smartcontractkit/ocr2keepers/pkg/chain"
plugintypes "github.com/smartcontractkit/ocr2keepers/pkg/types"

Expand Down
4 changes: 2 additions & 2 deletions core/scripts/functions/src/generate_ocr2_config_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (

"github.com/ethereum/go-ethereum/common"

"github.com/smartcontractkit/libocr/offchainreporting2/confighelper"
"github.com/smartcontractkit/libocr/offchainreporting2/types"
"github.com/smartcontractkit/libocr/offchainreporting2plus/confighelper"
"github.com/smartcontractkit/libocr/offchainreporting2plus/types"

helpers "github.com/smartcontractkit/chainlink/core/scripts/common"
"github.com/smartcontractkit/chainlink/v2/core/services/ocr2/plugins/functions/config"
Expand Down
10 changes: 5 additions & 5 deletions core/scripts/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ require (
github.com/pelletier/go-toml/v2 v2.0.8
github.com/shopspring/decimal v1.3.1
github.com/smartcontractkit/chainlink/v2 v2.0.0-00010101000000-000000000000
github.com/smartcontractkit/libocr v0.0.0-20230525150148-a75f6e244bb3
github.com/smartcontractkit/ocr2keepers v0.6.15
github.com/smartcontractkit/ocr2vrf v0.0.0-20230605190626-969219bf1df9
github.com/smartcontractkit/libocr v0.0.0-20230606215712-82b910bef5c1
github.com/smartcontractkit/ocr2keepers v0.6.16-0.20230607110245-0809f2a4a41d
github.com/smartcontractkit/ocr2vrf v0.0.0-20230607140106-3de6d0aed120
github.com/smartcontractkit/sqlx v1.3.5-0.20210805004948-4be295aacbeb
github.com/spf13/cobra v1.6.0
github.com/spf13/viper v1.14.0
Expand Down Expand Up @@ -286,10 +286,10 @@ require (
github.com/scylladb/go-reflectx v1.0.1 // indirect
github.com/shirou/gopsutil v3.21.11+incompatible // indirect
github.com/shirou/gopsutil/v3 v3.22.12 // indirect
github.com/sirupsen/logrus v1.9.0 // indirect
github.com/sirupsen/logrus v1.9.3 // indirect
github.com/smartcontractkit/caigo v0.0.0-20230530082629-53a5a4bdb25e // indirect
github.com/smartcontractkit/chainlink-cosmos v0.4.1-0.20230525203711-20bed74ac906 // indirect
github.com/smartcontractkit/chainlink-relay v0.1.7-0.20230606192102-72eb65f16e5e // indirect
github.com/smartcontractkit/chainlink-relay v0.1.7-0.20230606234201-cca3103bf8a6 // indirect
github.com/smartcontractkit/chainlink-solana v1.0.3-0.20230531071550-c058f7c3964f // indirect
github.com/smartcontractkit/chainlink-starknet/relayer v0.0.0-20230601080524-3d8186742482 // indirect
github.com/smartcontractkit/wsrpc v0.7.2 // indirect
Expand Down
20 changes: 10 additions & 10 deletions core/scripts/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1379,24 +1379,24 @@ github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMB
github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0=
github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0=
github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0=
github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ=
github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
github.com/smartcontractkit/caigo v0.0.0-20230530082629-53a5a4bdb25e h1:XY8DncHICYQ1WDVpoXM7Tv3tztNHa1/DctDlSmqgU10=
github.com/smartcontractkit/caigo v0.0.0-20230530082629-53a5a4bdb25e/go.mod h1:2QuJdEouTWjh5BDy5o/vgGXQtR4Gz8yH1IYB5eT7u4M=
github.com/smartcontractkit/chainlink-cosmos v0.4.1-0.20230525203711-20bed74ac906 h1:u7Lw7oqLEjADlJPJQnzlCLNSbj038QttaKY0lCa3V78=
github.com/smartcontractkit/chainlink-cosmos v0.4.1-0.20230525203711-20bed74ac906/go.mod h1:MH+MRJaG4SZAbRq5g7//AFY9H9sg5+lLDQnm85aHP6A=
github.com/smartcontractkit/chainlink-relay v0.1.7-0.20230606192102-72eb65f16e5e h1:wgVIpUakH0bwHVK2TnPxIXLU70X8iwyXzRvVVCtQHnE=
github.com/smartcontractkit/chainlink-relay v0.1.7-0.20230606192102-72eb65f16e5e/go.mod h1:mCOS1RSmUcQwbxEChrNrOa2N/93rVU0WRP+JGfuPtPc=
github.com/smartcontractkit/chainlink-relay v0.1.7-0.20230606234201-cca3103bf8a6 h1:dQG7RYxvMk9b/oJZ7sPDdm8oloFnH+YO6qLvto4Y7Nc=
github.com/smartcontractkit/chainlink-relay v0.1.7-0.20230606234201-cca3103bf8a6/go.mod h1:MfZBUifutkv3aK7abyw5YmTJbqt8iFwcQDFikrxC/uI=
github.com/smartcontractkit/chainlink-solana v1.0.3-0.20230531071550-c058f7c3964f h1:XtumoxAyCO4JnDbhUjD+BT3H3NohfpVG3IOLKWE5m+k=
github.com/smartcontractkit/chainlink-solana v1.0.3-0.20230531071550-c058f7c3964f/go.mod h1:km46XAo6xebV4Q+WyRFfo3E2t80YqTkegJM4FEfo5/Y=
github.com/smartcontractkit/chainlink-starknet/relayer v0.0.0-20230601080524-3d8186742482 h1:ZblU/X27pIHAZ7c/37TZf7ykZ4jkfVUmvIcchyO2rnw=
github.com/smartcontractkit/chainlink-starknet/relayer v0.0.0-20230601080524-3d8186742482/go.mod h1:bQmQtng05ueHYaLRKtAr1/LCaUWvOaE5ch008u5yJ+M=
github.com/smartcontractkit/libocr v0.0.0-20230525150148-a75f6e244bb3 h1:/Gel/U5eIZ/BGGr25OrHaXiVDTAJ5DYX5+UlXp3q7Gg=
github.com/smartcontractkit/libocr v0.0.0-20230525150148-a75f6e244bb3/go.mod h1:5JnCHuYgmIP9ZyXzgAfI5Iwu0WxBtBKp+ApeT5o1Cjw=
github.com/smartcontractkit/ocr2keepers v0.6.15 h1:dFhg+qT+tc6b3G8N4qnAHuHe8N0m8CSA8g4YGSeTGPo=
github.com/smartcontractkit/ocr2keepers v0.6.15/go.mod h1:gqIksJFzdXFsHfGdCWm1uTxbwvAltgcwcaqIgAStC1A=
github.com/smartcontractkit/ocr2vrf v0.0.0-20230605190626-969219bf1df9 h1:qLzqm5g2fzkvaDRE3LB75t9a0BRo+5a8yabawoBxlMA=
github.com/smartcontractkit/ocr2vrf v0.0.0-20230605190626-969219bf1df9/go.mod h1:AZbOisIoA3cOUku8suZ+KWBnzbRiafmhi7UKiXoezrk=
github.com/smartcontractkit/libocr v0.0.0-20230606215712-82b910bef5c1 h1:caG9BWjnCxN/HPBA5ltDGadDraZAsjGIct4S8lh8D5c=
github.com/smartcontractkit/libocr v0.0.0-20230606215712-82b910bef5c1/go.mod h1:2lyRkw/qLQgUWlrWWmq5nj0y90rWeO6Y+v+fCakRgb0=
github.com/smartcontractkit/ocr2keepers v0.6.16-0.20230607110245-0809f2a4a41d h1:AVpFTCA9lyB0qdBP/kADxMka6QBHUtqL6PkeA7mtLK0=
github.com/smartcontractkit/ocr2keepers v0.6.16-0.20230607110245-0809f2a4a41d/go.mod h1:ueL+ADZm47x+UpfHAY9bd0soStL9YDwbUN265AJF788=
github.com/smartcontractkit/ocr2vrf v0.0.0-20230607140106-3de6d0aed120 h1:iG9aRJxfZRxlPNKPqbUioEHyfvHvp1B1V11Fo+BK4pc=
github.com/smartcontractkit/ocr2vrf v0.0.0-20230607140106-3de6d0aed120/go.mod h1:AT1OrDDOCd8vzmMsCnA70N+tZdq9AbdZAiAw+gQq260=
github.com/smartcontractkit/sqlx v1.3.5-0.20210805004948-4be295aacbeb h1:OMaBUb4X9IFPLbGbCHsMU+kw/BPCrewaVwWGIBc0I4A=
github.com/smartcontractkit/sqlx v1.3.5-0.20210805004948-4be295aacbeb/go.mod h1:HNUu4cJekUdsJbwRBCiOybtkPJEfGRELQPe2tkoDEyk=
github.com/smartcontractkit/wsrpc v0.7.2 h1:iBXzMeg7vc5YoezIQBq896y25BARw7OKbhrb6vPbtRQ=
Expand Down
48 changes: 0 additions & 48 deletions core/scripts/mercury/mercury.go

This file was deleted.

4 changes: 2 additions & 2 deletions core/scripts/ocr2vrf/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import (
"github.com/ethereum/go-ethereum/common"
gethtypes "github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/ethclient"
"github.com/smartcontractkit/libocr/offchainreporting2/confighelper"
"github.com/smartcontractkit/libocr/offchainreporting2/types"
"github.com/smartcontractkit/libocr/offchainreporting2plus/confighelper"
"github.com/smartcontractkit/libocr/offchainreporting2plus/types"
"github.com/smartcontractkit/ocr2vrf/altbn_128"
"github.com/smartcontractkit/ocr2vrf/dkg"
"github.com/smartcontractkit/ocr2vrf/ocr2vrf"
Expand Down
4 changes: 2 additions & 2 deletions core/services/keystore/keys/ocr2key/cosmos_keyring.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"github.com/hdevalence/ed25519consensus"
"github.com/pkg/errors"
"github.com/smartcontractkit/libocr/offchainreporting2/chains/evmutil"
ocrtypes "github.com/smartcontractkit/libocr/offchainreporting2/types"
"github.com/smartcontractkit/libocr/offchainreporting2plus/chains/evmutil"
ocrtypes "github.com/smartcontractkit/libocr/offchainreporting2plus/types"
"golang.org/x/crypto/blake2s"

"github.com/smartcontractkit/chainlink/v2/core/utils"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/stretchr/testify/assert"

ocrtypes "github.com/smartcontractkit/libocr/offchainreporting2/types"
ocrtypes "github.com/smartcontractkit/libocr/offchainreporting2plus/types"
"github.com/stretchr/testify/require"
)

Expand Down
4 changes: 2 additions & 2 deletions core/services/keystore/keys/ocr2key/evm_keyring.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/crypto"
"github.com/smartcontractkit/libocr/offchainreporting2/chains/evmutil"
ocrtypes "github.com/smartcontractkit/libocr/offchainreporting2/types"
"github.com/smartcontractkit/libocr/offchainreporting2plus/chains/evmutil"
ocrtypes "github.com/smartcontractkit/libocr/offchainreporting2plus/types"
)

var _ ocrtypes.OnchainKeyring = &evmKeyring{}
Expand Down
2 changes: 1 addition & 1 deletion core/services/keystore/keys/ocr2key/evm_keyring_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

ocrtypes "github.com/smartcontractkit/libocr/offchainreporting2/types"
ocrtypes "github.com/smartcontractkit/libocr/offchainreporting2plus/types"
)

func TestEVMKeyring_SignVerify(t *testing.T) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"io"

"github.com/pkg/errors"
ocrtypes "github.com/smartcontractkit/libocr/offchainreporting2/types"
ocrtypes "github.com/smartcontractkit/libocr/offchainreporting2plus/types"

"github.com/smartcontractkit/chainlink/v2/core/services/keystore/chaintype"
"github.com/smartcontractkit/chainlink/v2/core/store/models"
Expand Down
2 changes: 1 addition & 1 deletion core/services/keystore/keys/ocr2key/key_bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"io"

"github.com/ethereum/go-ethereum/crypto/secp256k1"
ocrtypes "github.com/smartcontractkit/libocr/offchainreporting2/types"
ocrtypes "github.com/smartcontractkit/libocr/offchainreporting2plus/types"

"github.com/smartcontractkit/chainlink/v2/core/services/keystore/chaintype"
"github.com/smartcontractkit/chainlink/v2/core/services/keystore/keys/starkkey"
Expand Down
2 changes: 1 addition & 1 deletion core/services/keystore/keys/ocr2key/offchain_keyring.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

"golang.org/x/crypto/curve25519"

ocrtypes "github.com/smartcontractkit/libocr/offchainreporting2/types"
ocrtypes "github.com/smartcontractkit/libocr/offchainreporting2plus/types"
)

var _ ocrtypes.OffchainKeyring = &OffchainKeyring{}
Expand Down
4 changes: 2 additions & 2 deletions core/services/keystore/keys/ocr2key/solana_keyring.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"io"

"github.com/ethereum/go-ethereum/crypto"
"github.com/smartcontractkit/libocr/offchainreporting2/chains/evmutil"
ocrtypes "github.com/smartcontractkit/libocr/offchainreporting2/types"
"github.com/smartcontractkit/libocr/offchainreporting2plus/chains/evmutil"
ocrtypes "github.com/smartcontractkit/libocr/offchainreporting2plus/types"
)

var _ ocrtypes.OnchainKeyring = &solanaKeyring{}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

ocrtypes "github.com/smartcontractkit/libocr/offchainreporting2/types"
ocrtypes "github.com/smartcontractkit/libocr/offchainreporting2plus/types"
)

func TestSolanaKeyring_Sign_Verify(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions core/services/keystore/keys/starkkey/ocr2key.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"github.com/pkg/errors"

"github.com/smartcontractkit/caigo"
"github.com/smartcontractkit/libocr/offchainreporting2/chains/evmutil"
"github.com/smartcontractkit/libocr/offchainreporting2/types"
"github.com/smartcontractkit/libocr/offchainreporting2plus/chains/evmutil"
"github.com/smartcontractkit/libocr/offchainreporting2plus/types"
)

var _ types.OnchainKeyring = &OCR2Key{}
Expand Down
2 changes: 1 addition & 1 deletion core/services/keystore/keys/starkkey/ocr2key_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

caigotypes "github.com/smartcontractkit/caigo/types"

ocrtypes "github.com/smartcontractkit/libocr/offchainreporting2/types"
ocrtypes "github.com/smartcontractkit/libocr/offchainreporting2plus/types"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
Loading