• Stars
    star
    162
  • Rank 232,284 (Top 5 %)
  • Language
    Solidity
  • License
    MIT License
  • Created almost 4 years ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

FxPortal for Polygon (Previously Matic) chain. No mapping. Seamless.

fx-portal(Flexible portal)

FxPortal for Polygon(prev Matic)Chain. No mapping. Seamless communication with Ethereum Network.

Audits

What is Fx bridge (fx-portal)?

It is a powerful yet simple implementation Polygon state sync mechanism. Polygon PoS bridge is based on it. The code in the examples folder are examples of the usage of this methodology. You can use these examples to build your own implementations or own custom bridge.

In short, it's Meta bridge. This bridge allows any state-syncs without mapping.

Some use-cases of Fx-portal

What about PoS portal?

PoS Portal is another bridge, but it works only for few ERC standards and requires mappings. It is more developer-friendly, allows customization without much headache.

While Fx-portal focuses on permissionless-ness and flexibility, a developer might have to write more code but more customizable than PoS Portal. It requires no mapping.

Can I build my bridge?

Yes. You can check docs here: https://wiki.polygon.technology/docs/develop/l1-l2-communication/ethereum-to-matic/ https://wiki.polygon.technology/docs/develop/l1-l2-communication/matic-to-ethereum/

What are FxChild and FxRoot?

FxChild (FxChild.sol) and FxRoot (FxRoot.sol) are main contracts on which mapping-less bridge works. It calls and passes data to user-defined methods on another chain without mapping.

Mumbai

Contract Deployed address
FxRoot (Goerli) 0x3d1d3E34f7fB6D26245E6640E1c50710eFFf15bA
FxChild (Mumbai) 0xCf73231F28B7331BBe3124B907840A94851f9f11

Mainnet

Contract Deployed address
FxRoot (Ethereum Mainnet) 0xfe5e5D361b2ad62c541bAb87C45a0B9B018389a2
FxChild (Matic Mainnnet) 0x8397259c983751DAf40400790063935a11afa28a

You can deploy your own FxChild and FxRoot, but no need. Except you want to have some fun and have extra ETH to throw away.

What can I build with it?

  • Arbitrary state bridge (examples/state-transfer)
  • Normal ERC20 bridge (examples/erc2-transfer)
  • ERC20 token generator bridge (example/mintable-erc20-transfer)

More Repositories

1

polygon-edge

A Framework for Building Ethereum-compatible Blockchain Networks
Go
1,008
star
2

chain-indexer-framework

Chain-indexer-framework
TypeScript
122
star
3

polygon-docs

Polygon Technical Docs
HTML
118
star
4

cdk-data-availability

Go
85
star
5

static

Static file server
JavaScript
81
star
6

polygon-cli

A Swiss Army knife of blockchain tools
Go
60
star
7

account-binary-search-tree

Solidity
47
star
8

account-abstraction-invoker

Modular account abstraction with EIP-3074.
TypeScript
46
star
9

kurtosis-cdk

A Kurtosis package that deploys a private, portable, and modular Polygon CDK devnet
Starlark
41
star
10

staking-contracts

The smart contracts used in the IBFT PoS implementation
TypeScript
35
star
11

pbft-consensus

Practical Byzantium Fault Tolerant (PBFT) algorithm
Go
34
star
12

pol-token

Set of contracts proposed in PIP-17, notably Polygon Ecosystem Token meant as an upgrade to Matic Token.
Solidity
32
star
13

edge-contracts

Solidity
31
star
14

storage-delta

⟁ Audit storage layout changes during contract upgrades.
JavaScript
28
star
15

maticjs-fxportal

Library for interacting with fx-portal bridge.
TypeScript
22
star
16

polygon-edge-docs

The Official documentation for Polygon Edge
JavaScript
21
star
17

dapp-launchpad

dApp Launchpad is a CLI tool to quickly initialise a fully-integrated EVM-compatible dApp, create a development environment, and deploy everything to production.
TypeScript
21
star
18

go-ibft

A minimal and compact IBFT 2.0 implementation, written in Go
Go
18
star
19

proof-generation-api

JavaScript
17
star
20

pos-contracts

JavaScript
15
star
21

zkevm-data-streamer

Go implementation of a generic fast data streamer library.
Go
14
star
22

wiki

The official documentation of 0xPolygon.
JavaScript
12
star
23

forge-chronicles

JavaScript
11
star
24

agglayer

Go
9
star
25

deployer-kit

JavaScript
9
star
26

polygon2.0-economic-model

polygon2.0-economic-model
Jupyter Notebook
8
star
27

eth-state-transition

Ethereum state transition
Go
6
star
28

foundry-template

Contracts team, template repo
Solidity
6
star
29

staking-hub

Solidity
6
star
30

eth-event-tracker

Tracker of Ethereum events
Go
4
star
31

polygon-edge-assm

Helper program for bootstrapping Polygon Edge deployments utilizing AWS Session Manager
Go
4
star
32

cdk-contracts-tooling

Tools to interact with CDK smart contracts and Go bindings
Go
4
star
33

devrel-docs

Shell
3
star
34

zkevm-wrapper

Solidity
2
star
35

auto-claim-service

TypeScript
2
star
36

zkevm-ethtx-manager

zkevm-ethtx-manager
Go
2
star
37

eth-jsonrpc-server

Ethereum JSON-RPC server implementation
Go
2
star
38

go-profile-chart-generator

Python
2
star
39

cdk

CDK Node core repo
Go
2
star
40

lxly.js

TypeScript
1
star
41

zkevm-pool-manager

zkEVM Pool Manager
Go
1
star
42

bnsnark1

Go
1
star
43

contracts

Solidity
1
star