Skip to content

QA Engineering Challenge - RaylsToken tests and devnet setup#3

Open
clebergrunge87 wants to merge 2 commits intoraylsnetwork:mainfrom
clebergrunge87:main
Open

QA Engineering Challenge - RaylsToken tests and devnet setup#3
clebergrunge87 wants to merge 2 commits intoraylsnetwork:mainfrom
clebergrunge87:main

Conversation

@clebergrunge87
Copy link

@clebergrunge87 clebergrunge87 commented Feb 2, 2026

QA Engineering Challenge Entrega

Repositório: https://github.com/clebergrunge87/rayls-example-hardhat

Pré-requisitos

  • Node.js 20+
  • npm

Setup (rodar na raiz do projeto)

1) Instalar dependências

npm install
  1. Configurar variáveis de ambiente (Não commitar .env)

O repositório possui o template .env.example.

Crie o .env localmente (ele já¡ estão no .gitignore) e preencha com os valores solicitados sem commitar chaves.

Exemplo (Windows PowerShell):

Copy-Item .env.example .env -Force
notepad .env

Preencher no .env local:

RPC_URL=https://devnet-rpc.rayls.com

CHAIN_ID=123123

PRIVATE_KEY_OWNER=

PRIVATE_KEY_USER_A=

PRIVATE_KEY_USER_B=

  1. Rodar testes localmente (Hardhat local)
npx hardhat test
  1. Rodar testes na Rayls Devnet
npx hardhat test --network rayls_devnet

Observação de instabilidade do RPC (devnet)

Ao executar na devnet, podem ocorrer falhas intermitentes do endpoint RPC (ex.: 521/522),
resultando em erros como:

HH110: Invalid JSON-RPC response...

Evidências:

notas/RPC_ISSUE.md

notas/RPC_ISSUE_522.md

Arquivos principais

Contrato: contracts/RaylsToken.sol

Testes: test/RaylsToken.test.ts

Config: hardhat.config.ts

Template env: .env.example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant