Skip to content

gluexprotocol/gluex_router_contract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

23 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

GlueX Router Contracts

Welcome to the GlueX Router Contract public repository!

This repository serves as a central hub for all versions of the GlueX Router smart contract; a modular smart contract that facilitates user to perform complex, multi-step interactions atomically. Each version is organized into its own directory, offering clear modularity, versioning, and history tracking for ongoing development and upgrades.


πŸ“ Repository Structure

Each folder in the root directory represents a specific version of the router contracts. Inside each version folder, you will find:

β”œβ”€β”€ router_v1/
β”‚   β”œβ”€β”€ base/
β”‚   β”‚   └── RouterStructs.sol
β”‚   β”œβ”€β”€ interfaces/
β”‚   β”‚   └── IDaiLikePermit.sol
β”‚   β”‚   └── IERC20.sol
β”‚   β”‚   └── IERC20Permit.sol
β”‚   β”‚   └── IExecutor.sol
β”‚   β”‚   └── IPermit2.sol
β”‚   β”‚   └── IWrappedNativeToken.sol
β”‚   β”œβ”€β”€ lib/
β”‚   β”‚   └── RevertReasonForwarder.sol
β”‚   β”‚   └── SafeERC20.sol
β”‚   β”œβ”€β”€ utils/
β”‚   β”‚   └── EthReceiver.sol
β”‚   └── Router.sol
...

πŸ›  Getting Started

To get started with this repository:

  1. Clone the repo:
git clone https://github.com/gluexprotocol/gluex_router_contracts.git
cd gluex_router_contracts
  1. Explore the codebase: Start with router_v1/ Router.sol to understand the base implementation.

πŸ§‘β€πŸ’» Contributing

We welcome community contributions! Follow the guidelines below to make the PR process smooth and effective.

βœ… How to Contribute

  1. Fork the repository.
  2. Create a new branch for your changes
  3. Target one issue per PR.
    • Avoid combining fixes or features for multiple issues in a single pull request.
  4. Include a summary of the change in the PR description:
    • What does it fix or add?
    • Link to the issue number.
  5. Add screenshots or code snippets as needed.
    • Visual clarity helps reviewers understand your intent faster.

πŸ“Œ Issues

  1. Create an issue before submitting a PR unless it's a trivial fix.
  2. Be descriptive:
    • What’s the problem?
    • Steps to reproduce?
    • Expected vs actual?
    • Add relevant labels (bug, feature, enhancement) if possible.

🚨 Code Standards

  • Follow Solidity best practices and the project’s style guidelines.
  • Keep contracts modular and well-documented.
  • Use comments and NatSpec annotations where helpful.

About

GlueX Router smart contract

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •