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
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ recover:

.PHONY: ioctl
ioctl:
$(GOBUILD) -ldflags "$(PackageFlags)" -o ./bin/$(BUILD_TARGET_IOCTL) -v ./tools/ioctl
$(GOBUILD) -tags $(BUILD_TAGS) -ldflags "$(PackageFlags)" -o ./bin/$(BUILD_TARGET_IOCTL) -v ./tools/ioctl

.PHONY: newioctl
newioctl:
Expand Down
5 changes: 5 additions & 0 deletions action/protocol/staking/contractstake_indexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (

"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/iotexproject/iotex-address/address"

"github.com/iotexproject/iotex-core/v2/action"
"github.com/iotexproject/iotex-core/v2/action/protocol"
"github.com/iotexproject/iotex-core/v2/action/protocol/staking/contractstaking"
Expand Down Expand Up @@ -64,6 +65,10 @@ type (
LoadStakeView(context.Context, protocol.StateReader) (ContractStakeView, error)
// CreateEventProcessor creates a new event processor
CreateEventProcessor(context.Context, EventHandler) EventProcessor
// ContractStakingBuckets returns all the contract staking buckets
ContractStakingBuckets() (uint64, map[uint64]*contractstaking.Bucket, error)

BucketReader
}
// ContractStakingIndexerWithBucketType defines the interface of contract staking reader with bucket type
ContractStakingIndexerWithBucketType interface {
Expand Down
62 changes: 62 additions & 0 deletions action/protocol/staking/contractstake_indexer_mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

223 changes: 223 additions & 0 deletions action/protocol/staking/contractstakeview_mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion action/protocol/staking/contractstaking/bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type (
StakedDuration uint64 // in seconds if timestamped, in block number if not
// CreatedAt is the time when the bucket was created.
CreatedAt uint64 // in unix timestamp if timestamped, in block height if not
// UnlockedAt is the time when the bucket can be unlocked.
// UnlockedAt is the time when the bucket was unlocked.
UnlockedAt uint64 // in unix timestamp if timestamped, in block height if not
// UnstakedAt is the time when the bucket was unstaked.
UnstakedAt uint64 // in unix timestamp if timestamped, in block height if not
Expand Down
Loading