Skip to content
Snippets Groups Projects
  1. Sep 24, 2024
  2. Sep 22, 2024
  3. Sep 20, 2024
    • Javier Viola's avatar
      add runtime_upgrade for releaychain (#259) · 6af6177b
      Javier Viola authored
      Added:
        - Helper to perform a runtime upgrade on the relaychain
       
      ```rust
          let wasm = "file_path__or__url_to_*.compact.compressed.wasm";
          network
              .relaychain()
              .runtime_upgrade(RuntimeUpgradeOptions::new(wasm.into()))
              .await?;
      ```
  4. Sep 12, 2024
  5. Aug 28, 2024
  6. Aug 20, 2024
  7. Aug 15, 2024
  8. Aug 13, 2024
    • Frank Bell's avatar
      fix(chain-spec): adjust hrmp channels json structure (#244) · b1aac0ea
      Frank Bell authored
      When testing `zombienet-sdk` with cross-chain calls with Asset Hub, we
      found that the hrmp channels passed to the chainspec caused the
      following issue:
      
      `Error: "Invalid JSON blob: invalid type: map, expected a tuple of size
      4 at line 1 column 2794"`
      
      This is because the values of `HrmpChannelConfig` serialise to a map
      instead of a tuple, as expected by
      https://github.com/paritytech/polkadot-sdk/blob/fc906d5d0fb7796ef54ba670101cf37b0aad6794/polkadot/runtime/parachains/src/hrmp.rs#L492.
      Tests were updated accordingly to facilitate this fix.
      
      Additional commits were also added to enable some of Asset Hub on
      Polkadot functionality observed in the classic Zombienet repo, so that
      we are able to launch a local Polkadot network with Asset Hub should
      anyone require. Example configuration files can be found at the bottom
      of https://github.com/r0gue-io/pop-cli/pull/278/files for anyone
      interested, although that PR is still a work in progress and dependent
      on this one being accepted.
      
      PS - I added tests where I could, but additional tests might require
      some minor refactoring to make it easier to test only the logic that is
      changed by this PR, which I am not sure what the appetite is? An example
      would be refactoring the file name generation in `keystore.rs` into its
      own function to more easily test the outputs without the `scoped_fs`.
  9. Jul 20, 2024
  10. Jul 16, 2024
  11. Jun 22, 2024
  12. Jun 21, 2024
  13. Jun 14, 2024
  14. Jun 10, 2024
  15. Jun 08, 2024
  16. Jun 05, 2024
  17. Jun 04, 2024
  18. Jun 03, 2024
  19. May 23, 2024
    • Javier Viola's avatar
      Feat: Allow to set `base_dir` (#219) · 2ad235c0
      Javier Viola authored
      This pr introduce the ability to set the `base_dir` used by the
      `namespace`. This allow users to reuse the same node's directories
      (config and database) and re-start the network from the latest state in
      sequential runs.
      
      Thx!
      
      fix #218
  20. May 16, 2024
  21. May 14, 2024
    • Frank Bell's avatar
      feat: enhance public api (#209) · 11ea1254
      Frank Bell authored
      Firstly, thank you for an amazing library! The original zombienet is a
      Polkadot staple and now being able to use it completely from Rust is a
      game changer for us: as you may be aware, we have integrated
      zombienet-sdk with
      [pop-cli](https://github.com/paritytech/zombienet-sdk).
      
      In doing so, we needed to add a few getters to the public api to be able
      to present certain information to the user, as well we expose a little
      more of the inner errors. This PR simply upstreams these changes.
      
      It also includes two additional fixes, which may be better implemented
      based on your guidance:
      - collator args werent working for us when specified in a config file,
      which seemed to be due to missing `--` in the args list provided by
      calling functions.
      - artifact path wasnt set when trying to build a chain spec. This may no
      longer be required based on the changes in
      https://github.com/paritytech/zombienet-sdk/commit/c7ce50c0
      
      I am happy to add tests if you are open to these changes. :slight_smile:
  22. May 08, 2024
  23. May 04, 2024
  24. Apr 30, 2024
  25. Apr 26, 2024
  26. Apr 19, 2024
  27. Apr 15, 2024
  28. Mar 29, 2024
  29. Mar 26, 2024
  30. Mar 21, 2024
  31. Mar 16, 2024
  32. Mar 13, 2024
    • Loris Moulin's avatar
      Feat/available args (#184) · 1b124e59
      Loris Moulin authored
      Fix https://github.com/paritytech/zombienet-sdk/issues/169
      
      - Add logic to retrieve available args from node before spawning the
      full network using the output of the command with --help
  33. Mar 08, 2024
    • s0me0ne-unkn0wn's avatar
      Fix argument passing (#186) · 68cf9c1e
      s0me0ne-unkn0wn authored
      
      Concatenating the command line option and its value doesn't really work.
      The shell treats `--opt val` as a single argument `--opt val` instead of
      `--opt` `val` and fails to execute. This PR fixes that by separating
      options from their values.
      
      Error example:
      ```
      error: unexpected argument '--workers-path ~/.cargo/bin/workers-1.6' found
      
        tip: a similar argument exists: '--workers-path'
      ```
      
      Co-authored-by: default avatarJavier Viola <363911+pepoviola@users.noreply.github.com>
  34. Mar 07, 2024
  35. Mar 05, 2024
  36. Mar 03, 2024
  37. Feb 26, 2024