Skip to content

mccallofthewild/1inch-widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

54 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Bruce Logo

The DEX Swap Widget that
Packs a Punch ๐Ÿ‘Š

https://brucecrypto.vercel.app/

๐Ÿฅ‹ Inspiration

1inch.exchange was born from the philosophy of Bruce Leeโ€™s world renowned one inch punch, a Martial Arts pinnacle of speed, vigor and efficiency. The Bruce swap widget aims to embody this same idea: a simple interface with powerful results. Shapeshift attempted this years ago, but was ultimately strangled by the bureaucracy that centralized systems invariably beckon. 1inch poises an opportunity to decentralize and simplify any-to-any token transactions. The purpose of this project is to capture that opportunity in an easy-to-use interface that anyone can share on their website.

๐ŸŠโ€โ™€๏ธ Product Deepdive

Video Demo

Features:

  • Over 2300 Tokens
  • Automatic fiat conversions via stablecoin quotes
  • Static Output Token
    • Allows Token organizations to designate a single token for the widget to output
  • Trade pair inversion (ETH-DAI to DAI-ETH in one click)
  • Auto-generated token logos for non-standard tokens
  • Illustrative UX animations
  • Ready-on-load thanks to preloaded SSR data

โฐ Upcoming:

  • CHI gas token support

Tech

๐Ÿฆบ Type Safe API's

  • 1inch Swagger V2:
    • Typescript libraries generated via OpenAPI Tools
  • 1inch Subgraph GraphQL:
    • Typescript interfaces generated via GraphQL Codegen
  • Contracts: OneSplit & ERC20:
    • Typescript interfaces generated from ABI's using TypeChain

๐Ÿฅž Stack

  • Typescript
  • React
  • Next.js - Static generated with tokens & leading token logos pre-loaded for instant embedded rendering
  • Web3React - Enabling wallet interconnectivity
  • Ethers - Ethereum network interaction

๐Ÿš€ Usage & Deployment

Requirements

  • Metamask (or other web3-compatible browser extension)
  • Node.js >=v10.1.0
  • NPM or Yarn
  • Git

โฌ‡๏ธ Clone the repository

git clone https://github.com/mccallofthewild/1inch-widget.git

โฌ‡๏ธ Install the node_modules

yarn

or

npm i

๐Ÿ’ฐ Start Server

yarn dev

๐Ÿจ Host

Deploy to Vercel, or your static host of choice.

About

The DEX Swap Widget that packs a punch ๐Ÿ‘Š

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published