patex-network

module
v0.0.0-...-23d24bf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2024 License: MIT

README




Patex is a low-cost and lightning-fast Ethereum L2 blockchain.


What is Patex?

Patex is a low-cost and lightning-fast Ethereum L2 blockchain, but it's also so much more than that.

Patex is the technical foundation for the Patex Collective, a band of communities, companies, and citizens united by a mutually beneficial pact to adhere to the axiom of impact=profit — the principle that positive impact to the collective should be rewarded with profit to the individual. We're trying to solve some of the most critical coordination failures facing the crypto ecosystem today. We're particularly focused on creating a sustainable funding stream for the public goods and infrastructure upon which the ecosystem so heavily relies but has so far been unable to adequately reward. We'd love for you to check out The Patex Vision to understand more about why we do what we do.

Documentation

If you want to build on top of Patex, take a look at the extensive documentation on the Patex Community Hub. If you want to build Patex, check out the Protocol Specs.

Community

General discussion happens most frequently on the Patex discord. Governance discussion can also be found on the Patex Governance Forum.

Contributing

Read through CONTRIBUTING.md for a general overview of our contribution process. Use the Developer Quick Start to get your development environment set up to start working on the Patex Monorepo. Then check out our list of good first issues to find something fun to work on!

Security Policy and Vulnerability Reporting

Please refer to our canonical Security Policy document for detailed information about how to report vulnerabilities in this codebase. Bounty hunters are encouraged to check out our Immunefi bug bounty program.

Directory Structure

~~ Production ~~
├── packages
│   ├── contracts: L1 and L2 smart contracts for Patex
│   ├── hardhat-deploy-config: simple plugin that adds support for global deploy configuration values
│   ├── core-utils: Low-level utilities that make building Patex easier
│   └── sdk: provides a set of tools for interacting with Patex
├── integration-tests: Various integration tests for the Patex network
├── proxyd: Configurable RPC request router and proxy
├── technical-documents: audits and post-mortem documents

~~ BEDROCK ~~
├── packages
│   └── contracts-bedrock: Bedrock smart contracts. To be merged with ./packages/contracts.
├── pt-bindings: Go bindings for Bedrock smart contracts.
├── pt-batcher: L2-Batch Submitter, submits bundles of batches to L1
├── pt-node: rollup consensus-layer client.
├── pt-proposer: L2-Output Submitter, submits proposals to L1
├── ops-bedrock: Bedrock devnet work
└── specs: Specs of the rollup starting at the Bedrock upgrade

Branching Model

Active Branches

Branch Status
main Main branch

Overview

We generally follow this Git branching model. Please read the linked post if you're planning to make frequent PRs into this repository (e.g., people working at/with Patex).

Production branch

Our production branch is main. The main branch contains the code for our latest "stable" releases.

Changes to contracts within packages/contracts/contracts are usually NOT considered backwards compatible and SHOULD be made against a release candidate branch. Some exceptions to this rule exist for cases in which we absolutely must deploy some new contract after a release candidate branch has already been fully deployed. If you're changing or adding a contract and you're unsure about which branch to make a PR into, default to using the latest release candidate branch. See below for info about release candidate branches.

Release candidate branches

Branches marked release/X.X.X are release candidate branches. Changes that are not backwards compatible and all changes to contracts within packages/contracts/contracts MUST be directed towards a release candidate branch. Release candidates are merged into develop and then into master once they've been fully deployed. We may sometimes have more than one active release/X.X.X branch if we're in the middle of a deployment. See table in the Active Branches section above to find the right branch to target.

Releases

Changesets

We use changesets to mark packages for new releases.

To add a changeset, run the command yarn changeset in the root of this monorepo. You will be presented with a small prompt to select the packages to be released, the scope of the release (major, minor, or patch), and the reason for the release. Comments within changeset files will be automatically included in the changelog of the package.

License

All other files within this repository are licensed under the MIT License unless stated otherwise.

Directories

Path Synopsis
pt-batcher
cmd
rpc
ast
gen
pt-chain-ops
db
eof
pt-e2e
cmd
eth
heartbeat
Package heartbeat provides a service for sending heartbeats to a server.
Package heartbeat provides a service for sending heartbeats to a server.
metrics
Package metrics provides a set of metrics for the pt-node.
Package metrics provides a set of metrics for the pt-node.
p2p
rollup/derive
Package derive provides the data transformation functions that take L1 data and turn it into L2 blocks and results.
Package derive provides the data transformation functions that take L1 data and turn it into L2 blocks and results.
rollup/sync
Package sync is responsible for reconciling L1 and L2.
Package sync is responsible for reconciling L1 and L2.
sources
Package sources exports a number of clients used to access ethereum chain data.
Package sources exports a number of clients used to access ethereum chain data.
testlog
Package testlog provides a log handler for unit tests.
Package testlog provides a log handler for unit tests.
pt-proposer
cmd
clock
Package clock provides an abstraction for time to enable testing of functionality that uses time as an input.
Package clock provides an abstraction for time to enable testing of functionality that uses time as an input.
log
rpc
tls
This file contains CLI and env TLS configurations that can be used by clients or servers
This file contains CLI and env TLS configurations that can be used by clients or servers
tls/certman
Package certman provides live reloading of the certificate and key files used by the standard library http.Server.
Package certman provides live reloading of the certificate and key files used by the standard library http.Server.
pt-signer

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL