Skip to content

Commit

Permalink
Merge branch 'main' into chore/new-network-path
Browse files Browse the repository at this point in the history
  • Loading branch information
Pantani authored Nov 22, 2024
2 parents 890777f + eaba5cf commit c81813c
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 36 deletions.
24 changes: 12 additions & 12 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
queue_rules:
- name: default
conditions:
queue_conditions:
- "#approved-reviews-by>1"
- base=main
merge_conditions:
- "#approved-reviews-by>1"
merge_method: squash
commit_message_template: |
{{ title }} (#{{ number }})
{{ body }}
pull_request_rules:
- name: automerge to main with label automerge and branch protection passing
conditions:
- "#approved-reviews-by>1"
- base=main
actions:
queue:
name: default
method: squash
commit_message_template: |
{{ title }} (#{{ number }})
{{ body }}
- name: backport patches to v28.x.y branch
conditions:
- base=main
Expand All @@ -31,3 +27,7 @@ pull_request_rules:
backport:
branches:
- release/v29.x.y
- name: refactored queue action rule
conditions: []
actions:
queue:
2 changes: 1 addition & 1 deletion docs/docs/03-CLI-Commands/01-cli-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -3755,7 +3755,7 @@ Each validator's bonded stake can be adjusted according to your testing needs, p

The multi-node command not only initializes these nodes but also gives you control over starting, stopping individual nodes. This level of control ensures you can test and iterate rapidly without needing to reinitialize the entire network each time a change is made. This makes it ideal for experimenting with validator behavior, network dynamics, and the impact of various configurations.

All initialized nodes will be stored under the `.ignite/local-chains/<appd>/testnet/` directory, which allows easy access and management.
All initialized nodes will be stored under the `.ignite/local-chains/<app>/testnet/` directory, which allows easy access and management.


Usage
Expand Down
8 changes: 0 additions & 8 deletions docs/docs/08-references/01-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -3265,12 +3265,6 @@ ignite scaffold type NAME [field:type] ... [flags]

Start a testnet local

**Synopsis**

Start a testnet local



**Options**

```
Expand Down Expand Up @@ -3344,8 +3338,6 @@ Initialize the test network with the number of nodes and bonded from the config.



```
ignite testnet multi-node [flags]
```
Expand Down
6 changes: 3 additions & 3 deletions docs/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3273,9 +3273,9 @@ cross-fetch@^3.1.5:
node-fetch "2.6.7"

cross-spawn@^7.0.3:
version "7.0.3"
resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz"
integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==
version "7.0.6"
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.6.tgz#8a58fe78f00dcd70c370451759dfbfaf03e8ee9f"
integrity sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==
dependencies:
path-key "^3.1.0"
shebang-command "^2.0.0"
Expand Down
9 changes: 3 additions & 6 deletions ignite/cmd/testnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,9 @@ import (
// NewTestnet returns a command that groups scaffolding related sub commands.
func NewTestnet() *cobra.Command {
c := &cobra.Command{
Use: "testnet [command]",
Short: "Start a testnet local",
Long: `Start a testnet local
`,
Aliases: []string{"s"},
Use: "testnet [command]",
Short: "Start a testnet local",
Aliases: []string{"t"},
Args: cobra.ExactArgs(1),
}

Expand Down
5 changes: 2 additions & 3 deletions ignite/cmd/testnet_multi_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package ignitecmd

import (
"os"
"path"
"strconv"
"time"

Expand Down Expand Up @@ -47,8 +48,6 @@ func NewTestnetMultiNode() *cobra.Command {
Usage:
ignite testnet multi-node [flags]
`,
Args: cobra.NoArgs,
RunE: testnetMultiNodeHandler,
Expand Down Expand Up @@ -108,7 +107,7 @@ func testnetMultiNode(cmd *cobra.Command, session *cliui.Session) error {
}
nodeDirPrefix, _ := cmd.Flags().GetString(flagNodeDirPrefix)

outputDir, err := xfilepath.Join(igcfg.DirPath, xfilepath.Path("local-chains/"+c.Name()+"d/"+"testnet/"))()
outputDir, err := xfilepath.Join(igcfg.DirPath, xfilepath.Path(path.Join("local-chains", c.Name(), "testnet")))()
if err != nil {
return err
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"

<%= if (dependencies.Contains("Staking")) { %>"cosmossdk.io/core/address"
stakingtypes "cosmossdk.io/x/staking/types"<% } %>
<% } %>
sdk "github.com/cosmos/cosmos-sdk/types"
<%= if (dependencies.Contains("Authz")) { %>"cosmossdk.io/x/authz"<% } %>
)
Expand All @@ -16,7 +16,7 @@ import (
// StakingKeeper defines the expected interface for the Staking module.
type StakingKeeper interface {
ConsensusAddressCodec() address.Codec
ValidatorByConsAddr(context.Context, sdk.ConsAddress) (stakingtypes.ValidatorI, error)
ValidatorByConsAddr(context.Context, sdk.ConsAddress) (sdk.ValidatorI, error)
// Methods imported from account should be defined here
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func SimulateMsgDelete<%= TypeName.UpperCamel %>(
var (
simAccount = simtypes.Account{}
<%= TypeName.LowerCamel %> = types.<%= TypeName.UpperCamel %>{}
msg = &types.MsgUpdate<%= TypeName.UpperCamel %>{}
msg = &types.MsgDelete<%= TypeName.UpperCamel %>{}
found = false
)

Expand Down

0 comments on commit c81813c

Please sign in to comment.