Skip to content

pushchain/push-chain-gateway-contracts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

617 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Push Chain Gateway Contracts

This repository contains the gateway smart contracts that connect Push Chain to external blockchain ecosystems. The system enables bidirectional bridging of funds, gas abstraction, and cross-chain payload execution between Push Chain and supported external chains.

The gateway is implemented for two ecosystems:

  • EVM Gateway (contracts/evm-gateway/) — Solidity contracts for Ethereum and EVM-compatible chains (Foundry)
  • SVM Gateway (contracts/svm-gateway/) — Anchor programs for Solana (Anchor)

Getting Started

EVM Gateway

Dependencies: Foundry

cd contracts/evm-gateway
forge build
forge test -vv                                                 # all tests
forge test --match-path test/gateway/1_adminActions.t.sol -vv  # single file
forge test --match-test testFunctionName -vv                   # single test
forge test -vvvv                                               # full traces
forge test --gas-report                                        # gas report
forge coverage --ir-minimum                                    # coverage

SVM Gateway

Dependencies: Rust + Cargo, Solana CLI, Anchor CLI 0.31.1, Node.js 20+

cd contracts/svm-gateway
npm install
anchor build
anchor test                                        # all tests
TEST_FILE=tests/execute.test.ts anchor test        # single file
npm run test:execute                               # convenience script
# also: test:withdraw, test:admin, test:rate-limit, test:universal-tx,
#        test:rescue, test:cea-to-uea, test:execute-heavy

Docs and Tooling

EVM Gateway

SVM Gateway

Cross-Chain

Deployed Addresses

Push Chain


License

MIT (EVM) / ISC (SVM)

About

A collection of all universal contracts ( deployed on multiple chains ) that provides for multi-chain support for Push Chain features like fee abstraction and multi-chain tx flow.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors