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. Tutorials
  2. Bridge Tutorial

Step 2. Add smart contracts

PreviousStep 1. Configure your accountNextStep 3. Create a new automation workflow

Last updated 1 year ago

To simplify setting up a new automation workflow, we will add 3 smart contracts within Nerif App:

  1. Ethereum NerifBridge smart contract

  2. Polygon NerifBridge smart contract

  3. TestReceiver smart contract.

We’ll be using the code published on Nerif Network’s Github:

We suggest using the above code as a base to deploy your own smart contracts using Remix or any other preferred tool.

Let’s see how to add smart contracts in the example for Ethereum NerifBridge smart contract.

To add a deployed smart contract with the Nerif App, just click on “Contracts” and paste in the contract address, select the respective network (Etherem Goerli), and add a name to it. Picking a name is optional, but for convenience, we named the contract deployed to Ethereum Goerli “Ethereum NerifBridge”.

Also, note that if the name is not specified and the contract is verified on etherscan, the verified name will be applied.

Finally, allow Nerif App to automatically determine contract ABI (subject to a contract being verified). If the contract is not publicly verified on Etherscan, you’ll need to specify contract ABI manually.

Press “Create Contract” to complete the process.

Repeat the above process for 2 remaining smart contracts for Polygon NerifBridge smart contract and TestReceiver smart contract:

https://github.com/nerifnetwork/bridge
https://github.com/nerifnetwork/bridge