periphery
所属分类:区块链开发
开发工具:Rust
文件大小:113KB
下载次数:0
上传日期:2023-02-28 14:31:12
上 传 者:
sh-1993
说明: 将在火星中心部署外围智能合约
(Peripheral smart contracts to be deployed on Mars Hub)
文件列表:
Cargo.lock (17424, 2023-02-28)
Cargo.toml (774, 2023-02-28)
LICENSE (35149, 2023-02-28)
Makefile.toml (1188, 2023-02-28)
codecov.yml (140, 2023-02-28)
contracts (0, 2023-02-28)
contracts\delegator (0, 2023-02-28)
contracts\delegator\Cargo.toml (793, 2023-02-28)
contracts\delegator\examples (0, 2023-02-28)
contracts\delegator\examples\schema.rs (307, 2023-02-28)
contracts\delegator\src (0, 2023-02-28)
contracts\delegator\src\contract.rs (1562, 2023-02-28)
contracts\delegator\src\error.rs (1443, 2023-02-28)
contracts\delegator\src\execute.rs (3912, 2023-02-28)
contracts\delegator\src\lib.rs (161, 2023-02-28)
contracts\delegator\src\migrations (0, 2023-02-28)
contracts\delegator\src\migrations\mod.rs (14, 2023-02-28)
contracts\delegator\src\migrations\v1_1.rs (4218, 2023-02-28)
contracts\delegator\src\msg.rs (1324, 2023-02-28)
contracts\delegator\src\query.rs (167, 2023-02-28)
contracts\delegator\src\state.rs (107, 2023-02-28)
contracts\delegator\src\types.rs (593, 2023-02-28)
contracts\delegator\tests (0, 2023-02-28)
contracts\delegator\tests\tests.rs (7234, 2023-02-28)
contracts\vesting (0, 2023-02-28)
contracts\vesting\Cargo.toml (830, 2023-02-28)
contracts\vesting\examples (0, 2023-02-28)
contracts\vesting\examples\schema.rs (224, 2023-02-28)
contracts\vesting\src (0, 2023-02-28)
contracts\vesting\src\contract.rs (10683, 2023-02-28)
... ...
# Mars Periphery
Peripheral smart contracts to be deployed on Mars Hub.
## Bug bounty
A bug bounty is currently open for Mars Hub and peripheral contracts. See details [here](https://immunefi.com/bounty/mars/).
## Audits
See reports [here](https://github.com/mars-protocol/mars-audits/tree/main/periphery).
## How to use
Compile the contracts:
```bash
cargo make rust-optimizer
```
At tag `v1.2.0`, the following SHA-256 checksums should be produced:
```plain
4285db3268c4a18b506d62110b9dd320c56685e34bc61b938***257cfe5265b*** mars_delegator.wasm
d68c1cc68a2c782e***a346eee7332bf8220ff6201ee1677fb953d5b59f4cba37 mars_vesting.wasm
```
Generate schemas:
```bash
cargo make generate-all-schemas
```
Generate TypeScript code from schemas:
```bash
cd scripts
yarn generate-types
```
## License
Contents of this repository are open source under [GNU General Public License v3](./LICENSE) or later.
近期下载者:
相关文件:
收藏者: