Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 2 additions & 1 deletion shared/utils/stader/merkle-proof-download.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ package stader
import (
"encoding/json"
"fmt"
"net/http"

"github.com/ethereum/go-ethereum/common"
"github.com/stader-labs/stader-node/shared/services"
stader_backend "github.com/stader-labs/stader-node/shared/types/stader-backend"
"github.com/stader-labs/stader-node/shared/utils/net"
"github.com/urfave/cli"
"net/http"
)

func GetAllMerkleProofsForOperator(c *cli.Context, operator common.Address) ([]*stader_backend.CycleMerkleProofs, error) {
Expand Down
5 changes: 3 additions & 2 deletions shared/utils/stdr/validator-state.go
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
package stdr

import (
"math/big"
"time"

"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"
"github.com/stader-labs/stader-node/shared/services/beacon"
"github.com/stader-labs/stader-node/stader-lib/contracts"
"github.com/stader-labs/stader-node/stader-lib/node"
"github.com/stader-labs/stader-node/stader-lib/stader"
"github.com/stader-labs/stader-node/stader-lib/types"
"math/big"
"time"
)

var ValidatorState = map[uint8]string{
Expand Down
1 change: 1 addition & 0 deletions stader-cli/node/download-sp-merkle-proofs.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package node

import (
"fmt"

"github.com/stader-labs/stader-node/shared/services/stader"
cliutils "github.com/stader-labs/stader-node/shared/utils/cli"
"github.com/urfave/cli"
Expand Down
1 change: 1 addition & 0 deletions stader-cli/node/update-operator-name.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package node

import (
"fmt"

"github.com/stader-labs/stader-node/shared/services/gas"
"github.com/stader-labs/stader-node/shared/services/stader"
cliutils "github.com/stader-labs/stader-node/shared/utils/cli"
Expand Down
1 change: 1 addition & 0 deletions stader-cli/validator/exit-validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package validator

import (
"fmt"

"github.com/stader-labs/stader-node/shared/services/stader"
cliutils "github.com/stader-labs/stader-node/shared/utils/cli"
"github.com/stader-labs/stader-node/stader-lib/types"
Expand Down
3 changes: 2 additions & 1 deletion stader-cli/validator/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ package validator
import (
"encoding/csv"
"fmt"
"os"

"github.com/stader-labs/stader-node/shared/services/stader"
cliutils "github.com/stader-labs/stader-node/shared/utils/cli"
"github.com/stader-labs/stader-node/shared/utils/log"
"github.com/stader-labs/stader-node/shared/utils/math"
"github.com/stader-labs/stader-node/stader-lib/types"
"github.com/stader-labs/stader-node/stader-lib/utils/eth"
"github.com/urfave/cli"
"os"
)

func exportValidatorStatus(c *cli.Context) error {
Expand Down
3 changes: 2 additions & 1 deletion stader-lib/penalty-tracker/penalty-tracker.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package penalty_tracker

import (
"math/big"

"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/stader-labs/stader-node/stader-lib/stader"
"github.com/stader-labs/stader-node/stader-lib/types"
"math/big"
)

func GetCumulativeValidatorPenalty(pt *stader.PenaltyTrackerContractManager, validatorPubKey types.ValidatorPubkey, opts *bind.CallOpts) (*big.Int, error) {
Expand Down
3 changes: 2 additions & 1 deletion stader-lib/pool-utils/pool-utils.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package pool_utils

import (
"math/big"

"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"
"github.com/stader-labs/stader-node/stader-lib/stader"
"github.com/stader-labs/stader-node/stader-lib/types"
"math/big"
)

func CalculateRewardShare(pool_utils *stader.PoolUtilsContractManager, poolId uint8, totalRewards *big.Int, opts *bind.CallOpts) (types.RewardShare, error) {
Expand Down
3 changes: 2 additions & 1 deletion stader-lib/stake-pool-manager/stake-pool-manager.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package stake_pool_manager

import (
"math/big"

"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/stader-labs/stader-node/stader-lib/stader"
"math/big"
)

func GetTotalAssets(spm *stader.StakePoolManagerContractManager, opts *bind.CallOpts) (*big.Int, error) {
Expand Down
3 changes: 2 additions & 1 deletion stader-lib/tokens/native.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package tokens

import (
"context"
"math/big"

"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"
"github.com/stader-labs/stader-node/stader-lib/stader"
"math/big"
)

func GetEthBalance(client stader.ExecutionClient, address common.Address, opts *bind.CallOpts) (*big.Int, error) {
Expand Down
3 changes: 2 additions & 1 deletion stader-lib/types/validator.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package types

import (
"github.com/ethereum/go-ethereum/common"
"math/big"

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

type ValidatorContractInfo struct {
Expand Down
1 change: 1 addition & 0 deletions stader/api/node/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package node

import (
"fmt"

"github.com/ethereum/go-ethereum/common"
pool_utils "github.com/stader-labs/stader-node/stader-lib/pool-utils"
stader_config "github.com/stader-labs/stader-node/stader-lib/stader-config"
Expand Down
3 changes: 2 additions & 1 deletion stader/api/node/send-el-rewards.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package node

import (
"math/big"

"github.com/stader-labs/stader-node/shared/services"
"github.com/stader-labs/stader-node/shared/types/api"
"github.com/stader-labs/stader-node/stader-lib/node"
pool_utils "github.com/stader-labs/stader-node/stader-lib/pool-utils"
"github.com/stader-labs/stader-node/stader-lib/tokens"
"github.com/urfave/cli"
"math/big"
)

func CanSendElRewards(c *cli.Context) (*api.CanSendElRewardsResponse, error) {
Expand Down
1 change: 1 addition & 0 deletions stader/api/node/update-socialize-el.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package node

import (
"fmt"

"github.com/stader-labs/stader-node/shared/services"
"github.com/stader-labs/stader-node/shared/types/api"
"github.com/stader-labs/stader-node/shared/utils/eth1"
Expand Down
3 changes: 2 additions & 1 deletion stader/node/merkle-proofs-download.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ package node
import (
"encoding/json"
"fmt"
"os"

"github.com/mitchellh/go-homedir"
"github.com/stader-labs/stader-node/shared/services"
"github.com/stader-labs/stader-node/shared/services/config"
"github.com/stader-labs/stader-node/shared/services/wallet"
"github.com/stader-labs/stader-node/shared/utils/log"
"github.com/stader-labs/stader-node/shared/utils/stader"
"github.com/urfave/cli"
"os"
)

type MerkleProofsDownloader struct {
Expand Down