KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
contract-test-suite
★ 19
Open GitHub ↗
Contract Test Suite
Download README (.md)
Explore Similar Repositories
msx-stevedore
:
Stevedore is an MSX videogame. © theNestruo & Wonder 2020
PyScanCf
:
Converts individual sweeps from IMD radars to Cf-Radial1 radar data.
Tools
:
A comprehensive toolkit of shell scripts and utilities for managing network services, Docker deployments, file synchronization, and common server automation tasks.
aipdw
:
Golang 高德IP定位库
protobuf-net-v2-for-ILRuntime
:
No description available.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
contract-test-suite
?
Download (.md)
# Contract Test Suite [](https://circleci.com/gh/maple-labs/contract-test-suite/tree/main) [](https://www.gnu.org/licenses/agpl-3.0) This repository is used to test new smart contract code against external mainnet contracts, including previously deployed Maple protocol contracts that are currently in production. This codebase is actively being developed and improved, to ensure maximum test coverage and security of contracts before deployment. ## Testing and Development #### Setup ```sh git clone git@github.com:maple-labs/contract-test-suite.git cd contract-test-suite make init ``` #### Running Tests - To run all tests: `make test` (runs `./test.sh`) - To run a specific test function: `./test.sh -t <test_name>` (e.g., `./test.sh -t test_endToEndLoan`) - To run tests with a specified number of fuzz runs: `./test.sh -r <runs>` (e.g., `./test.sh -t test_endToEndLoan -r 10000`) This project was built using [dapptools](https://github.com/dapphub/dapptools). #### Mainnet State Caching To improve testing performance, mainnet state is cached and added to a github repository cts-cache, that is used as a submodule. This allows a first time developer to access cached state. If a new test is added that accesses new mainnet state that is not in the cache, the test will fail and will require that the cache be updated. This can be done with `make update`. ## About Maple [Maple Finance](https://maple.finance) is a decentralized corporate credit market. Maple provides capital to institutional borrowers through globally accessible fixed-income yield opportunities. For all technical documentation related to the currently deployed Maple protocol, please refer to the maple-core GitHub [wiki](https://github.com/maple-labs/maple-core/wiki). For all technical documentation related to contracts currently in development, please refer to the LoanV2 GitHub [wiki](https://github.com/maple-labs/loan/wiki). --- <p align="center"> <img src="https://user-images.githubusercontent.com/44272939/116272804-33e78d00-a74f-11eb-97ab-77b7e13dc663.png" height="100" /> </p>