Skip to content
Merged
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
21 changes: 21 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ LOCAL_PLATFORM=${LOCAL_OS}/${LOCAL_ARCH}

BUILD_DIR=build
BIN_DIR=${BUILD_DIR}/${VERSION}/bin
TOOLS_DIR=${BUILD_DIR}/${VERSION}/tools

CLI_TARGET_OOS:=linux darwin
ARCHS:=arm64 amd64
Expand Down Expand Up @@ -93,6 +94,8 @@ ${BUILD_DIR}:
mkdir -p ${BUILD_DIR}
${BIN_DIR}:
mkdir -p ${BIN_DIR}
${TOOLS_DIR}:
mkdir -p ${TOOLS_DIR}

$(foreach oos,$(CLI_TARGET_OOS),$(foreach arch,$(ARCHS),$(eval $(call rocketpool-cli-template,$(oos),$(arch)))))

Expand All @@ -114,6 +117,24 @@ else
${local_build_cmd_arm64} -o $@ ./treegen/.
endif

# amd64 state-cli build
.PHONY: ${TOOLS_DIR}/state-cli-linux-amd64
${TOOLS_DIR}/state-cli-linux-amd64: ${bin_deps}
ifndef NO_DOCKER
${docker_build_cmd_amd64} -o $@ ./shared/services/state/cli/.
else
${local_build_cmd_amd64} -o $@ ./shared/services/state/cli/.
endif

# arm64 state-cli build
.PHONY: ${TOOLS_DIR}/state-cli-linux-arm64
${TOOLS_DIR}/state-cli-linux-arm64: ${bin_deps}
ifndef NO_DOCKER
${docker_build_cmd_arm64} -o $@ ./shared/services/state/cli/.
else
${local_build_cmd_arm64} -o $@ ./shared/services/state/cli/.
endif

# Multiarch builder
${BUILD_DIR}/docker-buildx-builder: ${BUILD_DIR}
docker buildx create --name smartnode-builder --driver docker-container --platform linux/amd64,linux/arm64 || true
Expand Down
20 changes: 10 additions & 10 deletions bindings/utils/state/minipool.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,16 @@ type NativeMinipoolDetails struct {
UserShareOfBeaconBalance *big.Int `json:"user_share_of_beacon_balance"`

// Atlas
UserDistributed bool
Slashed bool
IsVacant bool
LastBondReductionTime *big.Int
LastBondReductionPrevValue *big.Int
LastBondReductionPrevNodeFee *big.Int
ReduceBondTime *big.Int
ReduceBondCancelled bool
ReduceBondValue *big.Int
PreMigrationBalance *big.Int
UserDistributed bool `json:"user_distributed"`
Slashed bool `json:"slashed"`
IsVacant bool `json:"is_vacant"`
LastBondReductionTime *big.Int `json:"last_bond_reduction_time"`
LastBondReductionPrevValue *big.Int `json:"last_bond_reduction_prev_value"`
LastBondReductionPrevNodeFee *big.Int `json:"last_bond_reduction_prev_node_fee"`
ReduceBondTime *big.Int `json:"reduce_bond_time"`
ReduceBondCancelled bool `json:"reduce_bond_cancelled"`
ReduceBondValue *big.Int `json:"reduce_bond_value"`
PreMigrationBalance *big.Int `json:"pre_migration_balance"`
}

var sixteenEth = big.NewInt(0).Mul(big.NewInt(16), oneEth)
Expand Down
Binary file not shown.
Loading