Mirroring https://github.com/pyth-network/pyth-crosschain
|
|
4 년 전 | |
|---|---|---|
| .run | 5 년 전 | |
| bridge | 4 년 전 | |
| dashboards | 4 년 전 | |
| design | 4 년 전 | |
| devnet | 4 년 전 | |
| docs | 4 년 전 | |
| ethereum | 4 년 전 | |
| explorer | 4 년 전 | |
| nix | 4 년 전 | |
| proto | 4 년 전 | |
| scripts | 4 년 전 | |
| solana | 4 년 전 | |
| terra | 4 년 전 | |
| third_party | 4 년 전 | |
| tilt_modules | 4 년 전 | |
| tools | 4 년 전 | |
| web | 4 년 전 | |
| .envrc | 4 년 전 | |
| .gitignore | 5 년 전 | |
| CONTRIBUTING.md | 4 년 전 | |
| DEVELOP.md | 4 년 전 | |
| Dockerfile.agent | 4 년 전 | |
| LICENSE | 5 년 전 | |
| Makefile | 4 년 전 | |
| README.md | 4 년 전 | |
| Tiltfile | 4 년 전 | |
| buf.yml | 5 년 전 | |
| codereview.cfg | 4 년 전 | |
| dev-install.sh | 4 년 전 | |
| generate-abi.sh | 4 년 전 | |
| generate-protos.sh | 4 년 전 | |
| shell.nix | 4 년 전 |
See DEVELOP.md for instructions on how to set up a local devnet, and CONTRIBUTING.md for instructions on how to contribute to this project.
See docs/operations.md for node operator instructions.
⚠ This software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Or plainly spoken - this is a very complex piece of software which targets a bleeding-edge, experimental smart contract runtime. Mistakes happen, and no matter how hard you try and whether you pay someone to audit it, it may eat your tokens, set your printer on fire or startle your cat. Cryptocurrencies are a high-risk investment, no matter how fancy.
Much of the Solana ecosystem uses wrapped assets issued by a centralized bridge operated by FTX (the "Sollet bridge"). Markets on Serum or Raydium are using those centralized assets rather than Wormhole wrapped assets. These have names like "Wrapped BTC" or "Wrapped ETH". Wormhole is going to replace the FTX bridge eventually, but this will take some time - meanwhile, Wormhole wrapped assets aren't terribly useful yet since there're no market for them.
Other tokens on Solana like USDC and USDT are centralized native tokens issued on multiple chains. If you transfer USDT from Ethereum to Solana, you will get "Wormhole Wrapped USDT" (wwUSDT), rather than native USDT.
Solana's SPL tokens have no on-chain metadata. Wormhole can't know the name of the token when you transfer assets to Ethereum. All tokens are therefore named "WWT" plus the address of the SPL token. The reverse is also true - Wormhole knows the name of the ERC20 token, but there's no way to store it on Solana. There's an off-chain name registry that some block explorers use, but if you transfer an uncommon token to Solana, it may not show with a name on block explorers.
bridge/ — The guardian node which connects to both chains, observes data and submits VAAs. Written in pure Go.
ethereum/ — Ethereum wormhole contract, tests and fixtures.
solana/ — Solana sidecar agent, contract and CLI.
terra/ — Terra-side smart contracts.
proto/ — Protocol Buffer definitions for the P2P network and the local Solana agent RPC. These are heavily commented and a good intro.
third_party/ — Build machinery and tooling for third party applications we use.
docs/ — Operator documentation and project specs.
design/ — Design documents/RfC for changes to the protocol.
web/ — User interface for cross-chain transfers. Not yet wired into the local devnet. Uses Metamask and Web3.js to initiate transfers from a browser. Watch this video as an introduction.
tools/ — Reproducible builds for local development tooling like buf and protoc-gen-go.
dashboards/ — Example Grafana dashboards for the Prometheus metrics exposed by guardiand.
Tiltfile, tilt_modules, devnet/ and various Dockerfiles — deployment code and fixtures for local development. Deploys a deterministic devnet with an Ethereum devnet, Solana devnet, and a variably sized guardian set that can be used to simulate full cross-chain transfers. The Dockerfiles are carefully designed for fast incremental builds with local caching, and require a recent Docker version with Buildkit support.
generate-abi.sh and generate-protos.sh — Helper scripts to (re-)build generated code. The Eth ABI is committed to the repo, so you only need to run this script if the Wormhole.sol interface changes. The protobuf libraries are not committed and will be regenerated automatically by the Tiltfile.