Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ashutoshvarma/ink-cross-contract-example-no-circular-dep


https://github.com/ashutoshvarma/ink-cross-contract-example-no-circular-dep

Last synced: 9 days ago
JSON representation

Awesome Lists containing this project

README

        

# Example Cross Contract (to-and-fro) - ink!

Two ink! smart contract call each other without directly importing each other.

## Project Structure
```
├── contracts // contracts, individual cargo crates
│ ├── one
│ └── two
├── traits // common traits definitions
│ ├── mod.rs
│ ├── one.rs
│ └── two.rs
├── .gitignore
├── Cargo.lock
├── Cargo.toml
├── README.md
└── lib.rs // root project to export traits
```

Learn more about how to organize ink!-openbrush projects - https://docs.openbrush.io/smart-contracts/example/setup_project