This repository contains a set of examples that demonstrate how to use the main features of the Omni Transaction library and OmniBox.
To run an example, use the command just run <example name>
.
For example:
$ just run evm-simple-encoding
Each example contains a Near smart contract with unit tests and an integration test located in the tests
folder.
The structure of each example is as follows:
- src
- lib.rs # the Near contract
- tests
- test_contract.rs # the integration test
The recommendation is to go thought each example and read the annotated integration test.
- Encoding
- Encoding passing args
- Encoding with signature
- Local signing with propagation
- Remote (MPC) signing with propagation
- Encoding (P2PKH and P2WPKH)
- Signing (segwit)
- Signing (segwit) multiple UTXOs
- Signing with propagation (segwit)
- Signing with propagation (legacy)
- Signing with propagation advanced (legacy)
- Signing with propagation using a Rust client (legacy)
- Signing with testnet propagation and local signing
- Signing with testnet propagation and remote signing (MPC)
- Runes Etching
- Ordinals inscriptions