From dafb7f5d5bd9de05a807ef73b3c0e755553d8754 Mon Sep 17 00:00:00 2001 From: Seth Landry Date: Sun, 12 Jan 2025 10:45:28 -0600 Subject: [PATCH] Create README.md --- README.md | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..94aacba --- /dev/null +++ b/README.md @@ -0,0 +1,39 @@ +
+ 1inch Logo +
+ +# 1inch Token + +## Introduction + +This repository contains the smart contract code for the 1inch token, a utility token used within the 1inch network. The repository includes Solidity contracts and JavaScript tools for testing and project management. + +## Features + +- **Smart Contracts**: Solidity contracts for the 1inch token. +- **JavaScript Tools**: Tools for testing, documentation, and project management. +- **Optimizations**: Various utilities and optimizations to improve contract efficiency. + +## Installation + +### NPM + +```bash +npm install 1inch-token +yarn add 1inch-token +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.0; + +import "@1inch/1inch-token/contracts/1inchToken.sol"; + +contract Example { + 1inchToken public token; + + constructor(address _tokenAddress) { + token = 1inchToken(_tokenAddress); + } + + function transferTokens(address recipient, uint256 amount) public { + token.transfer(recipient, amount); + } +}