A mini-dex demo project to show signing and verfication of digitcal exchange in go.
dex-go/
│
├── main.go # Entry point
├── go.mod
├── go.sum
├── config/
│ └── config.go # Blockchain keys, test RPC URLs
├── handlers/
│ ├── transaction.go # API endpoints for signing/verifying
│ └── event.go # API endpoints for events / analytics
├── models/
│ └── transaction.go # Transaction struct
├── services/
│ └── signer.go # Sign / verify logic
├── utils/
│ └── helpers.go # Helpers like ETH→wei conversion
└── storage/
└── eventstore.go # In-memory storage of events
- Could enhance event storage to be more generic to support various type of events and event store
- Implement a wallet workflow from a React App
- Actually RPC call some solidity smart contracts to fetch prices
- Integrate with live Order Logic