bazzar/README.md

35 lines
846 B
Markdown
Raw Normal View History

2022-04-14 08:07:59 +02:00
# Bazzar
### 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 |