Skip to content

Commit

Permalink
Merge branch 'develop' into feature/BCI-2996-local-finality-violation
Browse files Browse the repository at this point in the history
# Conflicts:
#	common/client/mocks/config.go
#	common/client/multi_node.go
#	common/client/node.go
#	core/chains/evm/client/config_builder.go
  • Loading branch information
dhaidashenko committed Jun 10, 2024
2 parents 003efd0 + 3151a1f commit 0108734
Show file tree
Hide file tree
Showing 148 changed files with 3,617 additions and 1,682 deletions.
5 changes: 5 additions & 0 deletions .changeset/chilly-ladybugs-visit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": patch
---

Cleanup txm tests #internal
5 changes: 5 additions & 0 deletions .changeset/cool-turtles-think.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": patch
---

#internal return hashed capability ids
5 changes: 5 additions & 0 deletions .changeset/four-knives-stare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": patch
---

#internal [Keystone] Merge version field with ID
5 changes: 5 additions & 0 deletions .changeset/happy-oranges-heal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": patch
---

#internal Add workflow validation
5 changes: 5 additions & 0 deletions .changeset/healthy-shoes-lie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": patch
---

#internal [Keystone] Add remote target to syncer
5 changes: 5 additions & 0 deletions .changeset/moody-dogs-begin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": patch
---

#internal update error message when node does not exist
5 changes: 5 additions & 0 deletions .changeset/olive-experts-matter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": patch
---

#db_update Add account_address_public_key to feeds_manager_chain_configs
5 changes: 5 additions & 0 deletions .changeset/popular-cycles-divide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": minor
---

#bugfix use correct internal id in workflow auto-approval
5 changes: 5 additions & 0 deletions .changeset/rotten-hats-search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": minor
---

Move chaintype #internal
5 changes: 5 additions & 0 deletions .changeset/shy-deers-hope.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": patch
---

#internal
11 changes: 1 addition & 10 deletions common/client/mocks/config.go
Original file line number Diff line number Diff line change
@@ -1,23 +1,14 @@
package mocks

import (
"time"

commonconfig "github.com/smartcontractkit/chainlink/v2/common/config"
)
import "time"

type ChainConfig struct {
IsFinalityTagEnabled bool
FinalityDepthVal uint32
NoNewHeadsThresholdVal time.Duration
ChainTypeVal commonconfig.ChainType
FinalizedBlockOffsetVal uint32
}

func (t ChainConfig) ChainType() commonconfig.ChainType {
return t.ChainTypeVal
}

func (t ChainConfig) NodeNoNewHeadsThreshold() time.Duration {
return t.NoNewHeadsThresholdVal
}
Expand Down
13 changes: 0 additions & 13 deletions common/client/multi_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import (
"github.com/smartcontractkit/chainlink-common/pkg/services"
"github.com/smartcontractkit/chainlink-common/pkg/utils"

"github.com/smartcontractkit/chainlink/v2/common/config"
feetypes "github.com/smartcontractkit/chainlink/v2/common/fee/types"
"github.com/smartcontractkit/chainlink/v2/common/types"
)
Expand Down Expand Up @@ -73,7 +72,6 @@ type MultiNode[

BatchCallContextAll(ctx context.Context, b []BATCH_ELEM) error
ConfiguredChainID() CHAIN_ID
IsL2() bool
}

type multiNode[
Expand All @@ -95,7 +93,6 @@ type multiNode[
nodes []Node[CHAIN_ID, HEAD, RPC_CLIENT]
sendonlys []SendOnlyNode[CHAIN_ID, RPC_CLIENT]
chainID CHAIN_ID
chainType config.ChainType
lggr logger.SugaredLogger
selectionMode string
noNewHeadsThreshold time.Duration
Expand Down Expand Up @@ -138,7 +135,6 @@ func NewMultiNode[
nodes []Node[CHAIN_ID, HEAD, RPC_CLIENT],
sendonlys []SendOnlyNode[CHAIN_ID, RPC_CLIENT],
chainID CHAIN_ID,
chainType config.ChainType,
chainFamily string,
classifySendTxError func(tx TX, err error) SendTxReturnCode,
sendTxSoftTimeout time.Duration,
Expand All @@ -154,7 +150,6 @@ func NewMultiNode[
nodes: nodes,
sendonlys: sendonlys,
chainID: chainID,
chainType: chainType,
lggr: logger.Sugared(lggr).Named("MultiNode").With("chainID", chainID.String()),
selectionMode: selectionMode,
noNewHeadsThreshold: noNewHeadsThreshold,
Expand Down Expand Up @@ -524,10 +519,6 @@ func (c *multiNode[CHAIN_ID, SEQ, ADDR, BLOCK_HASH, TX, TX_HASH, EVENT, EVENT_OP
return n.RPC().ChainID(ctx)
}

func (c *multiNode[CHAIN_ID, SEQ, ADDR, BLOCK_HASH, TX, TX_HASH, EVENT, EVENT_OPS, TX_RECEIPT, FEE, HEAD, RPC_CLIENT, BATCH_ELEM]) ChainType() config.ChainType {
return c.chainType
}

func (c *multiNode[CHAIN_ID, SEQ, ADDR, BLOCK_HASH, TX, TX_HASH, EVENT, EVENT_OPS, TX_RECEIPT, FEE, HEAD, RPC_CLIENT, BATCH_ELEM]) CodeAt(ctx context.Context, account ADDR, blockNumber *big.Int) (code []byte, err error) {
n, err := c.selectNode()
if err != nil {
Expand Down Expand Up @@ -556,10 +547,6 @@ func (c *multiNode[CHAIN_ID, SEQ, ADDR, BLOCK_HASH, TX, TX_HASH, EVENT, EVENT_OP
return n.RPC().FilterEvents(ctx, query)
}

func (c *multiNode[CHAIN_ID, SEQ, ADDR, BLOCK_HASH, TX, TX_HASH, EVENT, EVENT_OPS, TX_RECEIPT, FEE, HEAD, RPC_CLIENT, BATCH_ELEM]) IsL2() bool {
return c.ChainType().IsL2()
}

func (c *multiNode[CHAIN_ID, SEQ, ADDR, BLOCK_HASH, TX, TX_HASH, EVENT, EVENT_OPS, TX_RECEIPT, FEE, HEAD, RPC_CLIENT, BATCH_ELEM]) LatestBlockHeight(ctx context.Context) (h *big.Int, err error) {
n, err := c.selectNode()
if err != nil {
Expand Down
4 changes: 1 addition & 3 deletions common/client/multi_node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import (
"github.com/smartcontractkit/chainlink-common/pkg/logger"
"github.com/smartcontractkit/chainlink-common/pkg/utils/tests"

"github.com/smartcontractkit/chainlink/v2/common/config"
"github.com/smartcontractkit/chainlink/v2/common/types"
)

Expand All @@ -37,7 +36,6 @@ type multiNodeOpts struct {
nodes []Node[types.ID, types.Head[Hashable], multiNodeRPCClient]
sendonlys []SendOnlyNode[types.ID, multiNodeRPCClient]
chainID types.ID
chainType config.ChainType
chainFamily string
classifySendTxError func(tx any, err error) SendTxReturnCode
sendTxSoftTimeout time.Duration
Expand All @@ -51,7 +49,7 @@ func newTestMultiNode(t *testing.T, opts multiNodeOpts) testMultiNode {
result := NewMultiNode[types.ID, *big.Int, Hashable, Hashable, any, Hashable, any, any,
types.Receipt[Hashable, Hashable], Hashable, types.Head[Hashable], multiNodeRPCClient, any](opts.logger,
opts.selectionMode, opts.leaseDuration, opts.noNewHeadsThreshold, opts.nodes, opts.sendonlys,
opts.chainID, opts.chainType, opts.chainFamily, opts.classifySendTxError, opts.sendTxSoftTimeout)
opts.chainID, opts.chainFamily, opts.classifySendTxError, opts.sendTxSoftTimeout)
return testMultiNode{
result.(*multiNode[types.ID, *big.Int, Hashable, Hashable, any, Hashable, any, any,
types.Receipt[Hashable, Hashable], Hashable, types.Head[Hashable], multiNodeRPCClient, any]),
Expand Down
2 changes: 0 additions & 2 deletions common/client/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
"github.com/smartcontractkit/chainlink-common/pkg/logger"
"github.com/smartcontractkit/chainlink-common/pkg/services"

commonconfig "github.com/smartcontractkit/chainlink/v2/common/config"
"github.com/smartcontractkit/chainlink/v2/common/types"
)

Expand Down Expand Up @@ -51,7 +50,6 @@ type ChainConfig interface {
NodeNoNewHeadsThreshold() time.Duration
FinalityDepth() uint32
FinalityTagEnabled() bool
ChainType() commonconfig.ChainType
FinalizedBlockOffset() uint32
}

Expand Down
5 changes: 5 additions & 0 deletions contracts/.changeset/long-jars-protect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@chainlink/contracts': patch
---

update error message when node does not exist
5 changes: 5 additions & 0 deletions contracts/.changeset/new-bugs-draw.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@chainlink/contracts': patch
---

#internal
5 changes: 5 additions & 0 deletions contracts/.changeset/swift-ads-stare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@chainlink/contracts': patch
---

return hashed capability ids
Loading

0 comments on commit 0108734

Please sign in to comment.