Skip to main content

Introduction

The only tools needed to get you started


The Quick Start is designed with the presumption that you are not a novice developer and have some basic understanding or experience. The Quick Start also anticipates that you seek a straightforward initiation into setting up a remote development environment.

Autonomys nutzt EVM (Ethereum Virtual Machine), sodass jedes für die Ethereum-Entwicklung verfügbare Tool mit Autonomys kompatibel ist.

Setup a MetaMask Wallet (or any other EVM-compatible wallet) and connect it to our custom EVM


Netzwerkname: Autonomys EVM
Neue RPC-URL: https://nova-0.gemini-3h.subspace.network/ws
Ketten-ID: 490000
Währungssymbol: TSSC

Get tokens to your wallet using our faucet


Follow the instructions here to use our Faucet to get some TSSC.

Test and deploy your smart contract


You can use Remix, Foundry or any other tool familiar to you for testing and deploying your smart contracts. Just make sure to use our custom EVM domain and you're all set.

If anything above sounds unfamiliar, you can always fall back to our full guide.


Wichtiger Hinweis zum Einreichen einer Transaktion

Please avoid attempting to accelerate a transaction by including a tip alongside the gas fees. The transaction queue operates differently with Autonomys, leading to the possibility of two transactions sharing the same nonce. This could result in dual charges for gas fees - once for the execution and storage in the first transaction, and solely for storage in the second transaction. To prevent this scenario, ensure that you refrain from adding a tip in an attempt to speed the transaction up.


Problem mit der Schätzung der Gebühren

Bei der Bereitstellung von Smart Contracts auf unserer EVM-kompatiblen Domain Nova kann es zu einem Fehler im Zusammenhang mit der Schätzung der Gebühren kommen, der sich typischerweise wie folgt darstellt:

„Kein manueller Gebühren Grenzwert eingestellt“ oder „Schätzung der Gebühren fehlgeschlagen“.

This issue often occurs because development tools like Foundry simulate transactions and use calculated or hardcoded gas estimation instead of querying the RPC (Remote Procedure Call) for it. Nova may require different gas amounts for certain operations compared to other EVM-compatible chains like Ethereum's testnets.

note

We have submitted an upstream PR to fix this issue with Foundry. Described below are the workarounds, until the issue is resolved by the Foundry team.

Lösungen

Wenn dieses Problem auftritt, versuchen Sie die folgenden Lösungsansätze:

  • Simulation überspringen: Verwenden Sie bei der Bereitstellung mit Foundry das Flag „--skip-simulation“, um die integrierte Simulation zu umgehen und sich bei der Gebührenschätzung auf RPC zu verlassen.

  • Manuelles Gaslimit festlegen: Geben Sie manuell in Ihrem Bereitstellungsbefehl oder auf der Benutzeroberfläche ein höheres Gaslimit an.

  • Passen Sie das Bereitstellungsskript an: Ändern Sie Ihr Skript so, dass es benutzerdefinierte Gaseinstellungen enthält, oder implementieren Sie „Try/Catch“-Blöcke zur Behandlung von Bereitstellungsfehlern.

  • Web3-Anbieter verwenden: Wenn Sie Remix IDE verwenden, wechseln Sie zur „Injected Web3“-Umgebung, um externe Web3-Anbieter wie MetaMask zu nutzen.

  • Benutzerdefinierte Bereitstellungsfunktion: Erstellen Sie eine Bereitstellungsfunktion mit einstellbaren Gasparametern.

Lösungsbeispiele

Foundry

  1. Versuchen Sie es mit „--skip-simulation“: „forge script path/to/your/script.s.sol --rpc-url your_rpc_url --private-key your_private_key --broadcast --skip-simulation“.

  2. Versuchen Sie, das Gaslimit manuell festzulegen: „forge script path/to/your/script.s.sol --rpc-url your_rpc_url --private-key your_private_key --broadcast --gas-limit 300000“.

Adjust the gas limit value as needed. Start with a higher value and gradually lower it to find the optimal limit.

Remix IDE

  1. Try settiing gas limit manually: In the Deploy & Run Transactions panel, expand the Advanced section. Set a higher value in the Gas Limit field. Try starting with 300000 and adjust as needed.

  2. Versuchen Sie, den Gaspreis anzupassen: Im gleichen Abschnitt Erweitert können Sie bei Bedarf auch den Gaspreis anpassen.

  3. Try switching to the Injected Web3 environment in the Deploy & Run Transactions panel. This will use your browser's Web3 provider (like MetaMask) which might handle gas estimation better for the network.

  4. Wenn die oben genannten Schritte nicht funktionieren, können Sie eine benutzerdefinierte Bereitstellungsfunktion erstellen, die Gasparameter enthält:

    function deployWithCustomGas(uint256 gasLimit, uint256 gasPrice) public returns (address) {
    return address(new YourContract{gas: gasLimit, gasPrice: gasPrice}());
    }

Andere mögliche Lösung

  1. Ändern Sie Ihr Bereitstellungsskript und überschreiben Sie die Standardgaseinstellungen:

    vm.txGasPrice(uint256 gasPrice);
    vm.txGasLimit(uint256 gasLimit);
  2. Implementieren Sie einen Try/Catch-Block in Ihrem Skript, um Fehler bei der Gasschätzung zu behandeln:

    Probieren Sie yourContract.deploy{gas: 300000}(constructorArgs) aus (YourContract bereitgestellt) {
    // Bereitstellung erfolgreich
    } Fehler abfangen(String-Speichergrund) {
    console.log("Bereitstellung fehlgeschlagen:", Grund);
    }

Have any questions? Feel free to post them on our forum or in our Developer-chat on Discord.


In order to get access to the role-gated developer chat:

  1. Join our Discord

  2. Klicken Sie oben links auf Autonomys Network und wählen Sie Verknüpfte Rollen.

    Discord-1

  3. Link your GitHub account to get a developer role and gain access to developer-chat. Discord-2