1. Apr 09, 2024
  2. Apr 02, 2024
  3. Mar 08, 2024
  4. Feb 23, 2024
  5. Feb 22, 2024
  6. Feb 08, 2024
  7. Nov 29, 2023
    • Frank Bell's avatar
      feat: delayed finalization (#214) · 813d99f4
      Frank Bell authored
      Adds `--finalize-delay-sec` cli argument, based on the great work by
      @shunsukew at https://github.com/inkdevhub/swanky-node/pull/61.
      
      Manual testing by starting node with/without option, along with example
      contract upload:
      ```shell
      # build example contract
      cargo contract build --manifest-path=../ink-examples/erc20/Cargo.toml
      
      # start node
      cargo run
      
      # upload contract
      cargo contract upload --suri //Alice --execute --manifest-path=../ink-examples/erc20/Cargo.toml
      # check finalized head remains at genesis
      sleep 1
      test $(curl -sH "Content-Type: application/json" -d '{"id":"1", "jsonrpc":"2.0", "method": "chainHead_unstable_genesisHash", "params":[]}' http://localhost:9944 | jq .result) \
        = $(curl -sH "Content-Type: application/json" -d '{"id":"1", "jsonrpc":"2.0", "method": "chain_getFinalizedHead", "params":[]}' http://localhost:9944 | jq .result) && echo PASS || echo FAIL
      
      
      # start node (with delayed finalization)
      cargo run -- --finalize-delay-sec 1
      
      # upload contract
      cargo contract upload --suri //Alice --execute --manifest-path=../ink-examples/erc20/Cargo.toml
      # check finalized head matches chain head
      sleep 1
      test $(curl -sH "Content-Type: application/json" -d '{"id":"1", "jsonrpc":"2.0", "method": "chain_getHead", "params":[]}' http://localhost:9944 | jq .result) \
        = $(curl -sH "Content-Type: application/json" -d '{"id":"1", "jsonrpc":"2.0", "method": "chain_getFinalizedHead", "params":[]}' http://localhost:9944 | jq .result) && echo PASS || echo FAIL
      
      ```
      
      Closes #160
      813d99f4
  8. Nov 28, 2023
  9. Nov 16, 2023
  10. Nov 15, 2023
  11. Nov 14, 2023
  12. Nov 08, 2023
    • Yuri Volkov's avatar
      Fixing gitspiegel trigger workflow (#215) · 9c508f0c
      Yuri Volkov authored
      The first attept to use a workflow to protect GitLab CI from untrusted
      contributors failed, because GitHub doesn't pass secrets to workflows
      for PRs that originate from forks.
       
      This uses a different approach: instead of triggerring gitspiegel API
      directly from the workflow, we're just spawning an empty workflow with a
      specific path, and gitspiegel listens for `workflow_run` event to start
      mirroring.
      
      The idea is the same: for the first-time contributors, running workflows
      would require manual aciton and that would block mirroring. But this
      time, we don't need any secrets to make it work.
      9c508f0c
  13. Nov 06, 2023
    • PG Herveou's avatar
      Enable parachain mode (#212) · a7733f85
      PG Herveou authored
      This PR update the current code to use the parachain-template-code.
      The template code has been modified to allow continued use of a solo
      node, preserving existing behaviors by default.
      
      when launched using the --chain "contracts-parachain-local", it will now
      starts a parachain instead.
      a7733f85
  14. Nov 02, 2023
    • Yuri Volkov's avatar
      Adding gitspiegel-trigger workflow (#213) · 4e2d3488
      Yuri Volkov authored
      Using a workflow to trigger mirroring instead of a webhook allows us to
      reuse "Approving workflow runs from public forks" GitHub feature to
      somewhat protect us from malicious PRs
      4e2d3488
  15. Oct 18, 2023
  16. Oct 05, 2023
  17. Sep 05, 2023
  18. Sep 01, 2023
  19. Aug 06, 2023
  20. Jul 26, 2023
  21. Jul 25, 2023
  22. Jul 24, 2023
  23. Jun 22, 2023
  24. Jun 08, 2023
  25. Jun 06, 2023
  26. May 30, 2023
  27. May 29, 2023
  28. May 26, 2023
  29. May 22, 2023
  30. May 05, 2023
  31. Feb 22, 2023
  32. Feb 07, 2023
  33. Jan 31, 2023
  34. Jan 25, 2023