Nerif Docs
  • Quickstart
  • Tutorials
    • Lottery Tutorial
      • Step 1. Configure your account
      • Step 2. Add a smart contract
      • Step 3. Create a new automation workflow
      • Step 4. Build your automation workflow
      • Step 5. Test workflow execution
    • Bridge Tutorial
      • Step 1. Configure your account
      • Step 2. Add smart contracts
      • Step 3. Create a new automation workflow
      • Step 4. Build your automation workflow
      • Step 5. Test workflow execution
    • Price Feed Tutorial
      • Step 1. Configure your account
      • Step 2. Add smart contract
      • Step 3. Create a new automation workflow
      • Step 4. Build your automation workflow
  • 1. What is Nerif Network?
    • Our Mission
    • Our Vision
    • Terms
  • 2. Architecture
    • Core components
    • Validators
      • Networking
        • Bootnode
        • Joining the network
        • Leaving the network
        • Slashing
      • Consensus
        • Epoch & Rounds
        • Automation workflow
          • Triggers
          • Actions
          • Condition
    • Contracts
      • System Contracts
      • Operational Contracts
    • Security
      • DKG
      • Threshold ECDSA
      • Security checks
  • 3. How it works
    • Introduction
    • Nerif App
    • Login
    • Account Configuration
      • 1. Deploy a Gateway Contract
        • 1.1 Create a new gateway
        • 1.2. Use existing gateway contract
        • 1.3.What if I want to update my gateway contract?
      • 2. Top up your balance
        • 2.1. Topping up your balance on Polygon Mumbai
        • 2.2. Topping up your balance on Ethereum Goerli
    • Fees
    • User balance
      • 1. Topping up the balance
        • 1.1 Top up your balance via Nerif App
        • 1.2 Top up your balance directly via Registry smart contract
      • 2. Withdraw from balance
        • 2.1 Withdraw via Nerif App
        • 2.2 Withdraw directly via Registry smart contract
    • API
      • Off-chain APIs
      • On-chain APIs
    • SDK
  • 5. Nerif DAO
    • Governance
    • Treasury
    • Proposal process
  • 6. Support
Powered by GitBook
On this page
  1. 3. How it works
  2. Account Configuration

1. Deploy a Gateway Contract

PreviousAccount ConfigurationNext1.1 Create a new gateway

Last updated 1 year ago

The gateway contract serves as a secure entry point for all transactions originating from the registry to the customer contract. It ensures that each transaction is associated with the designated workflow belonging to a trusted user before forwarding it to the customer contract.

Note that registering a gateway contract is only required when performing transaction-related actions on a selected chain in your automation workflows. Other actions that do not provide for sending transactions, such as eth_call, do not require registering a gateway contract.

The responsibility of deploying and registering the gateway contract per registry lies with the network user themselves. Nerif App offers a user-friendly interface, simplifying the deployment and registration process for seamless integration into the automation workflow.

Feel free to use gateway contracts provided by Nerif Network:

How does one deploy & register a gateway contract?

It’s very simple!

We’ll need to set up a gateway on those chains that are going to be used for sending transactions within workflows.

Choosing a blockchain network is pretty straightforward - just click on “Chains” select a network you’ll be using. In the example below, we are selecting Polygon Mumbai.

Next, click on “Set up Gateway” in a box with the desired chain.

After that, you’ll be presented with two options to set up a gateway:

  1. Use Existing

  2. New Gateway

https://github.com/nerifnetwork/contracts/blob/main/contracts/operational/Gateway.sol
https://github.com/nerifnetwork/contracts/blob/main/contracts/interfaces/IGateway.sol