Skip to content

Commit

Permalink
Updated package structure
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaszslabon committed May 2, 2024
1 parent abad9ad commit 9b1786a
Show file tree
Hide file tree
Showing 15 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pkg/chain/ethereum/tbtc.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ import (
"github.com/keep-network/keep-core/pkg/internal/byteutils"
"github.com/keep-network/keep-core/pkg/operator"
"github.com/keep-network/keep-core/pkg/protocol/group"
"github.com/keep-network/keep-core/pkg/protocol/inactivity"
"github.com/keep-network/keep-core/pkg/subscription"
"github.com/keep-network/keep-core/pkg/tbtc"
"github.com/keep-network/keep-core/pkg/tecdsa/dkg"
"github.com/keep-network/keep-core/pkg/tecdsa/inactivity"
)

// Definitions of contract names.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"google.golang.org/protobuf/proto"

"github.com/keep-network/keep-core/pkg/protocol/group"
"github.com/keep-network/keep-core/pkg/tecdsa/inactivity/gen/pb"
"github.com/keep-network/keep-core/pkg/protocol/inactivity/gen/pb"
)

func validateMemberIndex(protoIndex uint32) error {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion pkg/tbtc/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (
"github.com/keep-network/keep-core/pkg/chain"
"github.com/keep-network/keep-core/pkg/operator"
"github.com/keep-network/keep-core/pkg/protocol/group"
"github.com/keep-network/keep-core/pkg/protocol/inactivity"
"github.com/keep-network/keep-core/pkg/sortition"
"github.com/keep-network/keep-core/pkg/subscription"
"github.com/keep-network/keep-core/pkg/tecdsa/dkg"
"github.com/keep-network/keep-core/pkg/tecdsa/inactivity"
)

type DKGState int
Expand Down
2 changes: 1 addition & 1 deletion pkg/tbtc/chain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import (
"github.com/keep-network/keep-core/pkg/chain/local_v1"
"github.com/keep-network/keep-core/pkg/operator"
"github.com/keep-network/keep-core/pkg/protocol/group"
"github.com/keep-network/keep-core/pkg/protocol/inactivity"
"github.com/keep-network/keep-core/pkg/subscription"
"github.com/keep-network/keep-core/pkg/tecdsa/dkg"
"github.com/keep-network/keep-core/pkg/tecdsa/inactivity"
)

const localChainOperatorID = chain.OperatorID(1)
Expand Down
3 changes: 1 addition & 2 deletions pkg/tbtc/inactivity.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/keep-network/keep-core/pkg/generator"
"github.com/keep-network/keep-core/pkg/net"
"github.com/keep-network/keep-core/pkg/protocol/group"
"github.com/keep-network/keep-core/pkg/tecdsa/inactivity"
"github.com/keep-network/keep-core/pkg/protocol/inactivity"
)

const (
Expand Down Expand Up @@ -47,7 +47,6 @@ type inactivityClaimExecutor struct {
waitForBlockFn waitForBlockFn
}

// TODO Consider moving all inactivity-related code to pkg/protocol/inactivity.
func newInactivityClaimExecutor(
chain Chain,
signers []*signer,
Expand Down
2 changes: 1 addition & 1 deletion pkg/tbtc/inactivity_submit.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/ipfs/go-log/v2"
"github.com/keep-network/keep-core/pkg/bitcoin"
"github.com/keep-network/keep-core/pkg/protocol/group"
"github.com/keep-network/keep-core/pkg/tecdsa/inactivity"
"github.com/keep-network/keep-core/pkg/protocol/inactivity"
)

// inactivityClaimSigner is responsible for signing the inactivity claim and
Expand Down
2 changes: 1 addition & 1 deletion pkg/tbtc/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"github.com/keep-network/keep-core/pkg/net"
"github.com/keep-network/keep-core/pkg/protocol/announcer"
"github.com/keep-network/keep-core/pkg/protocol/group"
"github.com/keep-network/keep-core/pkg/tecdsa/inactivity"
"github.com/keep-network/keep-core/pkg/protocol/inactivity"
"github.com/keep-network/keep-core/pkg/tecdsa/signing"
)

Expand Down

0 comments on commit 9b1786a

Please sign in to comment.