Skip to content

Commit

Permalink
Add DeFi Lama column to rollup (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky authored Dec 13, 2024
1 parent 82512ed commit fe01c99
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/api/handler/rollup_auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ type createRollupRequest struct {
Twitter string `json:"twitter" validate:"omitempty,url"`
Logo string `json:"logo" validate:"omitempty,url"`
L2Beat string `json:"l2_beat" validate:"omitempty,url"`
DeFiLama string `json:"defi_lama" validate:"omitempty"`
Bridge string `json:"bridge" validate:"omitempty,eth_addr"`
Explorer string `json:"explorer" validate:"omitempty,url"`
Stack string `json:"stack" validate:"omitempty"`
Expand Down Expand Up @@ -89,6 +90,7 @@ func (handler RollupAuthHandler) createRollup(ctx context.Context, req *createRo
Twitter: req.Twitter,
Logo: req.Logo,
L2Beat: req.L2Beat,
DeFiLama: req.DeFiLama,
Explorer: req.Explorer,
BridgeContract: req.Bridge,
Stack: req.Stack,
Expand Down Expand Up @@ -159,6 +161,7 @@ type updateRollupRequest struct {
Twitter string `json:"twitter" validate:"omitempty,url"`
Logo string `json:"logo" validate:"omitempty,url"`
L2Beat string `json:"l2_beat" validate:"omitempty,url"`
DeFiLama string `json:"defi_lama" validate:"omitempty"`
Bridge string `json:"bridge" validate:"omitempty,eth_addr"`
Explorer string `json:"explorer" validate:"omitempty,url"`
Stack string `json:"stack" validate:"omitempty"`
Expand Down Expand Up @@ -204,6 +207,7 @@ func (handler RollupAuthHandler) updateRollup(ctx context.Context, req *updateRo
Twitter: req.Twitter,
Logo: req.Logo,
L2Beat: req.L2Beat,
DeFiLama: req.DeFiLama,
Explorer: req.Explorer,
BridgeContract: req.Bridge,
Stack: req.Stack,
Expand Down
1 change: 1 addition & 0 deletions internal/storage/rollup.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ type Rollup struct {
Slug string `bun:"slug,unique:rollup_slug" comment:"Rollup slug"`
BridgeContract string `bun:"bridge_contract" comment:"Link to bridge contract"`
L2Beat string `bun:"l2_beat" comment:"Link to L2 Beat"`
DeFiLama string `bun:"defi_lama" comment:"DeFi Lama chain name"`
Explorer string `bun:"explorer" comment:"Link to chain explorer"`
Stack string `bun:"stack" comment:"Underlaying stack"`
Compression string `bun:"compression" comment:"Compression"`
Expand Down

0 comments on commit fe01c99

Please sign in to comment.