Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: port the existing router to Golang #11

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions best_swap_route.go

This file was deleted.

100 changes: 0 additions & 100 deletions core/alpha_router.go

This file was deleted.

9 changes: 0 additions & 9 deletions core/alpha_router_config.go

This file was deleted.

4 changes: 0 additions & 4 deletions core/alpha_router_params.go

This file was deleted.

4 changes: 0 additions & 4 deletions core/best_swap_route.go

This file was deleted.

8 changes: 0 additions & 8 deletions core/constants.go

This file was deleted.

37 changes: 0 additions & 37 deletions core/currency/base_currency.go

This file was deleted.

6 changes: 0 additions & 6 deletions core/currency/currency.go

This file was deleted.

9 changes: 0 additions & 9 deletions core/currency/native_currency.go

This file was deleted.

10 changes: 0 additions & 10 deletions core/currency/token.go

This file was deleted.

8 changes: 0 additions & 8 deletions core/portion_provider.go

This file was deleted.

15 changes: 0 additions & 15 deletions core/router.go

This file was deleted.

17 changes: 0 additions & 17 deletions core/tokens/gnot.go

This file was deleted.

10 changes: 10 additions & 0 deletions database/database.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package database

import "context"

type Database interface {
GetPools() []PoolV0
GetTokens() []TokenV0
Query(ctx context.Context, sql string) (interface{}, error) // 제너릭 타입은 Go에서 다루기 복잡하므로 interface{} 사용
Commit(ctx context.Context, sql string, data [][]interface{}) (bool, error)
}
5 changes: 5 additions & 0 deletions database/gnoswap_db.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package database

type GnoswapDB struct {
Database
}
Loading
Loading