neonevm / proxy-model.py

Neon Proxy for Solana
https://neon-labs.org
Other
17 stars 19 forks source link
evm solana

Python prototype for Solana MetaMask proxy

Built on https://github.com/abhinavsingh/proxy.py.git

Requirements (for Ubuntu 18.04):

To run internal implementation for Ethereum tokens, start the proxy with:

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python3 -m proxy --hostname 127.0.0.1 --port 9090 --enable-web-server --plugins proxy.plugin.NeonRpcApiPlugin --num-workers=1

Then add network http://localhost:9090/solana into MetaMask

The repository contains sources for several services with similar logic:

GasTank is a service that analyzes transactions with NeonEVM instructions and looks for liquidity transfers into Neon accounts. The service provides users that make such transfers with gas-less transactions.

The service is configured via environment variables. Further to the common proxy environment, the service accepts the following variables:

A comma-separated list of Common ERC20 Bridge contracts.

An allowlist of tokens whose transfer triggers the providing of gas-less transactions. This set should contain ERC20 addresses separated by a comma. Alt: provide the ANY value to accept any token.

Gotchas