import { PaymentGateway } from '@gracelab/core';
export async function settle(tx: Transaction) {
const valid = await verifySignature(tx);
if (!valid) throw new Error('signature invalide');
return ledger.commit(tx); // règlement instantané
}
// Smart contract — Solidity
contract Escrow is ReentrancyGuard {
function release() external onlyOwner { ... }
}
$ docker build -t gracelab/api .
$ kubectl rollout status deploy/api
✓ déploiement réussi — 0 erreur
✓ tests : 128 passed
import { PaymentGateway } from '@gracelab/core';
export async function settle(tx: Transaction) {
const valid = await verifySignature(tx);
if (!valid) throw new Error('signature invalide');
return ledger.commit(tx); // règlement instantané
}
// Smart contract — Solidity
contract Escrow is ReentrancyGuard {
function release() external onlyOwner { ... }
}
$ docker build -t gracelab/api .
$ kubectl rollout status deploy/api
✓ déploiement réussi — 0 erreur
✓ tests : 128 passed