bazzar/README.md

39 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

2023-06-20 07:03:15 +02:00
# 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.
2022-04-14 08:07:59 +02:00
### Order life cycle
<img src="./assets/order-lifecycle.svg" alt="order lifecycle">
2022-12-08 18:36:46 +01:00
## 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
```
2022-12-09 16:33:35 +01:00
##### `init`
| Argument | Result |
|-----------------------------------------|--------------------------|
| payment_argument::PaymentProviderConfig | payment_argument::Status |
* `create_payment`
| Argument | Result |
|--------------------------------|-------------------------------|
| payment_adapter::CreatePayment | payment_adapter::OrderCreated |