Installation

This guide will help you set up the IU2U Protocol for development and integration.

Prerequisites

Before you begin, ensure you have the following installed:

  • Node.js (v16 or higher)

  • npm or yarn

  • Git

  • Hardhat (for smart contract development)

Environment Setup

1. Clone the Repository

git clone https://github.com/DINetworks/DI-U2U-Contracts.git
cd DI-U2U-Contracts

2. Install Dependencies

npm install
# or
yarn install

3. Environment Configuration

Create a .env file in the project root:

Configure your environment variables:

Package Installation

NPM Package

Install the IU2U SDK for frontend integration:

Smart Contract Dependencies

The contracts use OpenZeppelin and other standard libraries:

Network Configuration

Supported Networks

The IU2U Protocol is deployed on the following networks:

Network
Chain ID
RPC URL

Ethereum

1

https://mainnet.infura.io/v3/YOUR_PROJECT_ID

BSC

56

https://bsc-dataseed1.binance.org/

Polygon

137

https://polygon-mainnet.infura.io/v3/YOUR_PROJECT_ID

Avalanche

43114

https://api.avax.network/ext/bc/C/rpc

Arbitrum

42161

https://arb1.arbitrum.io/rpc

Optimism

10

https://mainnet.optimism.io

Base

8453

https://mainnet.base.org

Hardhat Configuration

Update your hardhat.config.js:

Verification

Test Installation

Run the test suite to verify everything is working:

Compile Contracts

Compile the smart contracts:

Local Deployment

Deploy to local Hardhat network:

IDE Setup

VS Code Extensions

Recommended VS Code extensions:

  • Solidity by Juan Blanco

  • Hardhat for Visual Studio Code

  • GitBook (for documentation editing)

  • Prettier - Code formatter

  • ESLint

VS Code Settings

Add to your settings.json:

Next Steps

Now that you have IU2U installed, you can:

  1. Learn Core Concepts to understand the protocol

  2. Explore Examples for integration patterns

Troubleshooting

Common Issues

Node.js Version

Dependencies

Hardhat Compilation

Getting Help

If you encounter issues:

  1. Search existing GitHub Issues

  2. Create a new issue with detailed information

Last updated