39 lines
1.1 KiB
Markdown
39 lines
1.1 KiB
Markdown
# MycoCraft
|
|
|
|
Short `Myco` is Rust e-commerce design for possibility to have monolith or microservices, fast, safe, cheap and extensible with plugins e-commerce.
|
|
|
|
Origin of the name is Myco-heterotrophy which is symbiotic relationship between fungus and plans which benefits both.
|
|
|
|
### Order life cycle
|
|
|
|
<img src="./assets/order-lifecycle.svg" alt="order lifecycle">
|
|
|
|
## Adapters
|
|
|
|
### API
|
|
|
|
|
|
|
|
#### Building adapters
|
|
|
|
Repository contains script which will build all adapters and copy wasm files to `./adapters` directory
|
|
|
|
This script will treat all crates which starts with `payment_adapter_` as a payment adapter
|
|
|
|
```bash
|
|
mkdir -p adapters
|
|
./scripts/build-adapters
|
|
```
|
|
|
|
##### `init`
|
|
|
|
| Argument | Result |
|
|
|-----------------------------------------|--------------------------|
|
|
| payment_argument::PaymentProviderConfig | payment_argument::Status |
|
|
|
|
* `create_payment`
|
|
|
|
| Argument | Result |
|
|
|--------------------------------|-------------------------------|
|
|
| payment_adapter::CreatePayment | payment_adapter::OrderCreated |
|