Refactored the analysis dirs
This commit is contained in:
parent
a2a6428bee
commit
29e2d87ec3
|
@ -4,9 +4,9 @@
|
|||
|
||||
- Wallet Router
|
||||
- I've analysed the main components of the wallet router, see here:
|
||||
- [wallet/Router file analysis](./analysis/wallet_router.md)
|
||||
- [wallet/Router struct usage](./analysis/wallet_router_usage.md)
|
||||
- [wallet/Router `newSuggestedRoutes()`](./analysis/wallet_router_newSuggestedRoutes.md)
|
||||
- [wallet/Router file analysis](./analysis/wallet/Router/overview.md)
|
||||
- [wallet/Router struct usage](./analysis/wallet/Router/usage.md)
|
||||
- [wallet/Router `newSuggestedRoutes()`](./analysis/wallet/Router/newSuggestedRoutes.md)
|
||||
|
||||
## Schedule
|
||||
- I raised an axe to the crew meetings, swung hard and true. Toppled and prostrate they settled motionless. Tonight we revel in the light of their embers!
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
- Represents a transaction path including details like from/to networks, fees, and estimated costs.
|
||||
- `Router`
|
||||
- Manages routing of transactions using different bridges defined for various transaction types.
|
||||
- [Usage analysis](./wallet_router_usage.md)
|
||||
- [Usage analysis](./usage.md)
|
||||
- **Functions:**
|
||||
- `requireApproval()`
|
||||
- Determines if token approval is required before executing a transaction over a bridge.
|
||||
|
@ -30,7 +30,7 @@
|
|||
- Determines if a specified blockchain network's Chain ID is present within a given list of Chain IDs
|
||||
- `newSuggestedRoutes()`
|
||||
- newSuggestedRoutes function is a crucial part of the route selection and optimization process routing transactions across potentially complex network paths.
|
||||
- [Detailed Analysis of `newSuggestedRoutes()`](./wallet_router_newSuggestedRoutes.md)
|
||||
- [Detailed Analysis of `newSuggestedRoutes()`](./newSuggestedRoutes.md)
|
||||
|
||||
# Transaction Handling
|
||||
- The code handles transactions through various bridges which abstract the different transaction types.
|
|
@ -1,5 +1,7 @@
|
|||
# Initialisation
|
||||
The `Router` struct is only initialised in one place in the application, in `wallet/api.go`:
|
||||
The `Router` struct is only initialised in one place in the application, in `wallet/api.go`.
|
||||
|
||||
The consumption complexity is very low:
|
||||
|
||||
```go
|
||||
func NewAPI(s *Service) *API {
|
Loading…
Reference in New Issue