This repository contains a set of examples that demonstrate how to use the main features of OmniTransactionBuilder.
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.
- Simple encoding
- Simple encoding passing args
- Simple encoding with signature
- Simple signing
- Signing with propagation