Skip to content

Commit

Permalink
Merge pull request #563 from ava-labs/staking-rename
Browse files Browse the repository at this point in the history
Staking rename
  • Loading branch information
iansuvak authored Sep 19, 2024
2 parents c1de7d3 + f01daad commit 4b2e326
Show file tree
Hide file tree
Showing 35 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion contracts/mocks/ExampleERC20.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
ERC20Burnable,
ERC20
} from "@openzeppelin/[email protected]/token/ERC20/extensions/ERC20Burnable.sol";
import {IERC20Mintable} from "../staking/interfaces/IERC20Mintable.sol";
import {IERC20Mintable} from "../validator-manager/interfaces/IERC20Mintable.sol";

contract ExampleERC20 is ERC20Burnable, IERC20Mintable {
string private constant _TOKEN_NAME = "Mock Token";
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,8 +6,8 @@ import (

"github.com/ava-labs/avalanchego/ids"
"github.com/ava-labs/subnet-evm/accounts/abi/bind"
nativetokenstakingmanager "github.com/ava-labs/teleporter/abi-bindings/go/staking/NativeTokenStakingManager"
poavalidatormanager "github.com/ava-labs/teleporter/abi-bindings/go/staking/PoAValidatorManager"
nativetokenstakingmanager "github.com/ava-labs/teleporter/abi-bindings/go/validator-manager/NativeTokenStakingManager"
poavalidatormanager "github.com/ava-labs/teleporter/abi-bindings/go/validator-manager/PoAValidatorManager"
"github.com/ava-labs/teleporter/tests/interfaces"
"github.com/ava-labs/teleporter/tests/utils"
"github.com/ethereum/go-ethereum/crypto"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/ava-labs/avalanchego/ids"
"github.com/ava-labs/avalanchego/utils/crypto/bls"
"github.com/ava-labs/subnet-evm/accounts/abi/bind"
poavalidatormanager "github.com/ava-labs/teleporter/abi-bindings/go/staking/PoAValidatorManager"
poavalidatormanager "github.com/ava-labs/teleporter/abi-bindings/go/validator-manager/PoAValidatorManager"
"github.com/ava-labs/teleporter/tests/interfaces"
"github.com/ava-labs/teleporter/tests/utils"
"github.com/ethereum/go-ethereum/crypto"
Expand Down
14 changes: 7 additions & 7 deletions tests/local/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"testing"

"github.com/ava-labs/teleporter/tests/flows/governance"
"github.com/ava-labs/teleporter/tests/flows/staking"
"github.com/ava-labs/teleporter/tests/flows/teleporter"
"github.com/ava-labs/teleporter/tests/flows/teleporter/registry"
validatorManager "github.com/ava-labs/teleporter/tests/flows/validator-manager"
deploymentUtils "github.com/ava-labs/teleporter/utils/deployment-utils"
"github.com/ethereum/go-ethereum/log"
"github.com/onsi/ginkgo/v2"
Expand Down Expand Up @@ -200,31 +200,31 @@ var _ = ginkgo.Describe("[Teleporter integration tests]", func() {
ginkgo.It("Native token staking manager",
ginkgo.Label(validatorManagerLabel),
func() {
staking.NativeTokenStakingManager(LocalNetworkInstance)
validatorManager.NativeTokenStakingManager(LocalNetworkInstance)
})
ginkgo.It("ERC20 token staking manager",
ginkgo.Label(validatorManagerLabel),
func() {
staking.ERC20TokenStakingManager(LocalNetworkInstance)
validatorManager.ERC20TokenStakingManager(LocalNetworkInstance)
})
ginkgo.It("PoA validator manager",
ginkgo.Label(validatorManagerLabel),
func() {
staking.PoAValidatorManager(LocalNetworkInstance)
validatorManager.PoAValidatorManager(LocalNetworkInstance)
})
ginkgo.It("ERC20 delegation",
ginkgo.Label(validatorManagerLabel),
func() {
staking.ERC20Delegation(LocalNetworkInstance)
validatorManager.ERC20Delegation(LocalNetworkInstance)
})
ginkgo.It("Native token delegation",
ginkgo.Label(validatorManagerLabel),
func() {
staking.NativeDelegation(LocalNetworkInstance)
validatorManager.NativeDelegation(LocalNetworkInstance)
})
ginkgo.It("PoA migration to PoS",
ginkgo.Label(validatorManagerLabel),
func() {
staking.PoAMigrationToPoS(LocalNetworkInstance)
validatorManager.PoAMigrationToPoS(LocalNetworkInstance)
})
})
8 changes: 4 additions & 4 deletions tests/utils/staking.go → tests/utils/validator_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ import (
"github.com/ava-labs/subnet-evm/precompile/contracts/warp"
predicateutils "github.com/ava-labs/subnet-evm/predicate"
exampleerc20 "github.com/ava-labs/teleporter/abi-bindings/go/mocks/ExampleERC20"
erc20tokenstakingmanager "github.com/ava-labs/teleporter/abi-bindings/go/staking/ERC20TokenStakingManager"
examplerewardcalculator "github.com/ava-labs/teleporter/abi-bindings/go/staking/ExampleRewardCalculator"
nativetokenstakingmanager "github.com/ava-labs/teleporter/abi-bindings/go/staking/NativeTokenStakingManager"
poavalidatormanager "github.com/ava-labs/teleporter/abi-bindings/go/staking/PoAValidatorManager"
erc20tokenstakingmanager "github.com/ava-labs/teleporter/abi-bindings/go/validator-manager/ERC20TokenStakingManager"
examplerewardcalculator "github.com/ava-labs/teleporter/abi-bindings/go/validator-manager/ExampleRewardCalculator"
nativetokenstakingmanager "github.com/ava-labs/teleporter/abi-bindings/go/validator-manager/NativeTokenStakingManager"
poavalidatormanager "github.com/ava-labs/teleporter/abi-bindings/go/validator-manager/PoAValidatorManager"
"github.com/ava-labs/teleporter/tests/interfaces"
"github.com/ethereum/go-ethereum/common"

Expand Down

0 comments on commit 4b2e326

Please sign in to comment.