From 07939455ed1d73707501fff93b054570a6e59b9d Mon Sep 17 00:00:00 2001 From: Henrique Marlon Date: Sun, 13 Oct 2024 02:11:20 -0300 Subject: [PATCH] feat: add multi-stage build and fix db instance problem --- Makefile | 2 +- build/Dockerfile.machine | 63 +- cmd/dapp/dapp.go | 38 +- cmd/dapp/dapp_test.go | 779 +----- cmd/dapp/lib/.gitignore | 2 + cmd/dapp/lib/.gitkeep | 0 cmd/dapp/lib/Cargo.toml | 8 + cmd/dapp/lib/src/lib.rs | 4 + cmd/dapp/wire.go | 20 +- cmd/dapp/wire_gen.go | 38 +- configs/sqlite.go | 19 +- coverage.md | 2216 +++++++---------- go.mod | 2 +- internal/domain/entity/auction.go | 35 +- internal/domain/entity/auction_test.go | 2 +- internal/domain/entity/bid.go | 1 + .../auction_advance_handlers.go | 2 +- .../advance_handler/bid_advance_handlers.go | 4 +- .../contract_advance_handler.go | 2 +- .../advance_handler/user_advance_handler.go | 4 +- internal/infra/cartesi/middleware/rbac.go | 2 +- internal/infra/cartesi/middleware/tlsn.go | 18 +- .../repository/auction_repository_sqlite.go | 2 +- .../usecase/auction_usecase/create_auction.go | 39 +- .../auction_usecase/find_all_auctions.go | 16 +- .../auction_usecase/find_auction_by_id.go | 2 +- .../usecase/auction_usecase/finish_auction.go | 54 +- .../usecase/auction_usecase/general_dto.go | 18 +- internal/usecase/bid_usecase/create_bid.go | 8 +- 29 files changed, 1191 insertions(+), 2209 deletions(-) create mode 100644 cmd/dapp/lib/.gitignore delete mode 100644 cmd/dapp/lib/.gitkeep create mode 100644 cmd/dapp/lib/Cargo.toml create mode 100644 cmd/dapp/lib/src/lib.rs diff --git a/Makefile b/Makefile index 184c84f..101ad67 100644 --- a/Makefile +++ b/Makefile @@ -36,7 +36,7 @@ bidings: .PHONY: test test: - @go test -p 1 ./... -coverprofile=./coverage.md -v + @go test ./... -coverprofile=./coverage.md -v .PHONY: coverage coverage: test diff --git a/build/Dockerfile.machine b/build/Dockerfile.machine index e468351..11a3565 100644 --- a/build/Dockerfile.machine +++ b/build/Dockerfile.machine @@ -1,27 +1,52 @@ +# syntax=docker/dockerfile:1 + +# Comments are provided throughout this file to help you get started. +# If you need more help, visit the Dockerfile reference guide at +# https://docs.docker.com/go/dockerfile-reference/ + +# Want to help us make this template better? Share your feedback here: https://forms.gle/ybq9Krt8jtBL3iCk7 + +ARG RUST_VERSION=1.81.0 +ARG APP_NAME=verifier + ################################################################################ -# cross build stage -FROM ubuntu:22.04 as build-stage +# Create a stage for building the application. -ARG DEBIAN_FRONTEND=noninteractive -RUN < + +int32_t add_numbers(int32_t a, int32_t b); +*/ import ( + "C" "log" - + "github.com/tribeshq/tribes/configs" "github.com/tribeshq/tribes/pkg/router" ) func NewDApp() *router.Router { + //////////////////////// Setup Database ////////////////////////// + db, err := configs.SetupSQlite() + if err != nil { + log.Fatalf("Failed to setup sqlite database: %v", err) + } + //////////////////////// Setup Handlers ////////////////////////// - ah, err := NewAdvanceHandlers() + ah, err := NewAdvanceHandlers(db) if err != nil { log.Fatalf("Failed to initialize advance handlers from wire: %v", err) } - ih, err := NewInspectHandlers() + ih, err := NewInspectHandlers(db) if err != nil { log.Fatalf("Failed to initialize inspect handlers from wire: %v", err) } - ms, err := NewMiddlewares() + ms, err := NewMiddlewares(db) if err != nil { log.Fatalf("Failed to initialize middlewares from wire: %v", err) } @@ -36,14 +51,12 @@ func NewDApp() *router.Router { app.HandleAdvance("createAuction", ms.TLSN.Middleware(ah.AuctionAdvanceHandlers.CreateAuctionHandler)) app.HandleAdvance("finishAuction", ah.AuctionAdvanceHandlers.FinishAuctionHandler) - // app.HandleAdvance("withdrawApp", ms.RBAC.Middleware(ah.UserAdvanceHandlers.WithdrawAppHandler, "admin")) app.HandleAdvance("withdraw", ah.UserAdvanceHandlers.WithdrawHandler) app.HandleAdvance("createUser", ms.RBAC.Middleware(ah.UserAdvanceHandlers.CreateUserHandler, "admin")) app.HandleAdvance("deleteUser", ms.RBAC.Middleware(ah.UserAdvanceHandlers.DeleteUserByAddressHandler, "admin")) //////////////////////// Inspect ////////////////////////// - app.HandleInspect("auction", ih.AuctionInspectHandlers.FindAllAuctionsHandler) app.HandleInspect("auction/{id}", ih.AuctionInspectHandlers.FindAuctionByIdHandler) @@ -62,18 +75,24 @@ func NewDApp() *router.Router { } func NewDAppMemory() *router.Router { + //////////////////////// Setup Database ////////////////////////// + db, err := configs.SetupSQliteMemory() + if err != nil { + log.Fatalf("Failed to initialize database: %v", err) + } + //////////////////////// Setup Handlers ////////////////////////// - ah, err := NewAdvanceHandlersMemory() + ah, err := NewAdvanceHandlersMemory(db) if err != nil { log.Fatalf("Failed to initialize advance handlers from wire: %v", err) } - ih, err := NewInspectHandlersMemory() + ih, err := NewInspectHandlersMemory(db) if err != nil { log.Fatalf("Failed to initialize inspect handlers from wire: %v", err) } - ms, err := NewMiddlewaresMemory() + ms, err := NewMiddlewaresMemory(db) if err != nil { log.Fatalf("Failed to initialize middlewares from wire: %v", err) } @@ -91,7 +110,6 @@ func NewDAppMemory() *router.Router { app.HandleAdvance("createAuction", ms.TLSN.Middleware(ah.AuctionAdvanceHandlers.CreateAuctionHandler)) app.HandleAdvance("finishAuction", ah.AuctionAdvanceHandlers.FinishAuctionHandler) - // app.HandleAdvance("withdrawApp", ms.RBAC.Middleware(ah.UserAdvanceHandlers.WithdrawAppHandler, "admin")) app.HandleAdvance("withdraw", ah.UserAdvanceHandlers.WithdrawHandler) app.HandleAdvance("createUser", ms.RBAC.Middleware(ah.UserAdvanceHandlers.CreateUserHandler, "admin")) diff --git a/cmd/dapp/dapp_test.go b/cmd/dapp/dapp_test.go index a4e4930..785768e 100644 --- a/cmd/dapp/dapp_test.go +++ b/cmd/dapp/dapp_test.go @@ -1,680 +1,109 @@ package main -// import ( -// "fmt" -// "math/big" -// "testing" -// "time" - -// "github.com/ethereum/go-ethereum/common" -// "github.com/rollmelette/rollmelette" -// "github.com/stretchr/testify/suite" -// ) - -// func TestAppSuite(t *testing.T) { -// suite.Run(t, new(AppSuite)) -// } - -// type AppSuite struct { -// suite.Suite -// tester *rollmelette.Tester -// } - -// func (s *AppSuite) SetupTest() { -// app := NewDAppMemory() -// s.tester = rollmelette.NewTester(app) -// } +import ( + "fmt" + "math/big" + "testing" + "time" + + "github.com/ethereum/go-ethereum/common" + "github.com/rollmelette/rollmelette" + "github.com/stretchr/testify/suite" +) + +func TestAppSuite(t *testing.T) { + suite.Run(t, new(AppSuite)) +} + +type AppSuite struct { + suite.Suite + tester *rollmelette.Tester +} + +func (s *AppSuite) SetupTest() { + app := NewDAppMemory() + s.tester = rollmelette.NewTester(app) +} // ////////////// User /////////////////// -// func (s *AppSuite) TestItCreateUser() { -// admin := common.HexToAddress("0x0142f501EE21f4446009C3505c51d0043feC5c68") -// input := []byte(`{"path":"createUser","payload":{"address":"0x70997970C51812dc3A010C7d01b50e0d17dc79C8","role":"admin"}}`) -// expectedOutput := fmt.Sprintf(`created user - {"id":3,"role":"admin","address":"0x70997970C51812dc3A010C7d01b50e0d17dc79C8","created_at":%d}`, time.Now().Unix()) -// result := s.tester.Advance(admin, input) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) -// } - -// func (s *AppSuite) TestItCreateUserWithoutPermissions() { -// admin := common.HexToAddress("0x1234567890abcdef1234567890abcdef12345678") -// input := []byte(`{"path":"createUser","payload":{"address":"0x70997970C51812dc3A010C7d01b50e0d17dc79C8","role":"admin"}}`) -// expectedOutput := `failed to find user by address 0x1234567890AbcdEF1234567890aBcdef12345678: record not found` -// result := s.tester.Advance(admin, input) -// s.ErrorContains(result.Err, expectedOutput) -// } - -// func (s *AppSuite) TestItCreateUserWithInvalidData() { -// admin := common.HexToAddress("0x0142f501EE21f4446009C3505c51d0043feC5c68") -// input := []byte(`{"path":"createUser","payload":{"address":"","role":""}}`) -// expectedOutput := `invalid user` -// result := s.tester.Advance(admin, input) -// s.ErrorContains(result.Err, expectedOutput) -// } - -// func (s *AppSuite) TestItDeleteUser() { -// admin := common.HexToAddress("0x0142f501EE21f4446009C3505c51d0043feC5c68") - -// createUserInput := []byte(`{"path":"createUser","payload":{"address":"0x70997970C51812dc3A010C7d01b50e0d17dc79C8","role":"admin"}}`) -// expectedOutput := fmt.Sprintf(`created user - {"id":3,"role":"admin","address":"0x70997970C51812dc3A010C7d01b50e0d17dc79C8","created_at":%d}`, time.Now().Unix()) -// result := s.tester.Advance(admin, createUserInput) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// deleteUserInput := []byte(`{"path":"deleteUser","payload":{"address":"0x70997970C51812dc3A010C7d01b50e0d17dc79C8"}}`) -// expectedOutput = `deleted user with - {"address":"0x70997970C51812dc3A010C7d01b50e0d17dc79C8"}` -// result = s.tester.Advance(admin, deleteUserInput) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) -// } - -// func (s *AppSuite) TestItDeleteUserWithoutPermissions() { -// sender := common.HexToAddress("0x1234567890abcdef1234567890abcdef12345678") -// input := []byte(`{"path":"deleteUser","payload":{"address":"0x70997970C51812dc3A010C7d01b50e0d17dc79C8"}}`) -// expectedOutput := `failed to find user by address 0x1234567890AbcdEF1234567890aBcdef12345678: record not found` -// result := s.tester.Advance(sender, input) -// s.ErrorContains(result.Err, expectedOutput) -// } - -// func (s *AppSuite) TestItDeleteNonExistentUser() { -// admin := common.HexToAddress("0x0142f501EE21f4446009C3505c51d0043feC5c68") -// input := []byte(`{"path":"deleteUser","payload":{"address":"0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65"}}`) -// expectedOutput := `user not found` -// result := s.tester.Advance(admin, input) -// s.ErrorContains(result.Err, expectedOutput) -// } - -// /////////////////////////// Withdraw //////////////////////////// - -// func (s *AppSuite) TestItWithdrawVolt() { -// admin := common.HexToAddress("0x0142f501EE21f4446009C3505c51d0043feC5c68") -// sender := common.HexToAddress("0x9965507D1a55bcC2695C58ba16FB37d819B0A4dc") - -// createContractInput := []byte(`{"path":"createContract","payload":{"symbol":"VOLT","address":"0x0000000000000000000000000000000000000001"}}`) -// expectedOutput := fmt.Sprintf(`created contract - {"id":1,"symbol":"VOLT","address":"0x0000000000000000000000000000000000000001","created_at":%d}`, time.Now().Unix()) -// result := s.tester.Advance(admin, createContractInput) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// s.tester.DepositERC20(common.HexToAddress("0x0000000000000000000000000000000000000001"), sender, big.NewInt(10000), []byte("")) - -// withdrawInput := []byte(`{"path":"withdrawVolt"}`) - -// expectedNoticePayload := `withdrawn VOLT and 10000 from 0x9965507D1a55bcC2695C58ba16FB37d819B0A4dc with voucher index: 1` -// expectedWithdrawVoucherPayload := make([]byte, 0, 4+32+32) -// expectedWithdrawVoucherPayload = append(expectedWithdrawVoucherPayload, 0xa9, 0x05, 0x9c, 0xbb) -// expectedWithdrawVoucherPayload = append(expectedWithdrawVoucherPayload, make([]byte, 12)...) -// expectedWithdrawVoucherPayload = append(expectedWithdrawVoucherPayload, sender[:]...) -// expectedWithdrawVoucherPayload = append(expectedWithdrawVoucherPayload, big.NewInt(10000).FillBytes(make([]byte, 32))...) -// withdrawResult := s.tester.Advance(sender, withdrawInput) -// s.Len(withdrawResult.Notices, 1) -// s.Len(withdrawResult.Vouchers, 1) -// s.Equal(expectedWithdrawVoucherPayload, withdrawResult.Vouchers[0].Payload) -// s.Equal(common.HexToAddress("0x0000000000000000000000000000000000000001"), withdrawResult.Vouchers[0].Destination) -// s.Equal(expectedNoticePayload, string(withdrawResult.Notices[0].Payload)) -// } - -// func (s *AppSuite) TestItWithdrawVoltWithInsuficientBalance() { -// admin := common.HexToAddress("0x0142f501EE21f4446009C3505c51d0043feC5c68") -// sender := common.HexToAddress("0x9965507D1a55bcC2695C58ba16FB37d819B0A4dc") - -// createContractInput := []byte(`{"path":"createContract","payload":{"symbol":"VOLT","address":"0x0000000000000000000000000000000000000001"}}`) -// expectedOutput := fmt.Sprintf(`created contract - {"id":1,"symbol":"VOLT","address":"0x0000000000000000000000000000000000000001","created_at":%d}`, time.Now().Unix()) -// result := s.tester.Advance(admin, createContractInput) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// input := []byte(`{"path":"withdrawVolt"}`) -// expectedOutput = `no balance of VOLT to withdraw` -// result = s.tester.Advance(sender, input) -// s.ErrorContains(result.Err, expectedOutput) -// } - -// func (s *AppSuite) TestItWithdrawStablecoin() { -// admin := common.HexToAddress("0x0142f501EE21f4446009C3505c51d0043feC5c68") -// sender := common.HexToAddress("0x9965507D1a55bcC2695C58ba16FB37d819B0A4dc") - -// createContractInput := []byte(`{"path":"createContract","payload":{"symbol":"STABLECOIN","address":"0x0000000000000000000000000000000000000001"}}`) -// expectedOutput := fmt.Sprintf(`created contract - {"id":1,"symbol":"STABLECOIN","address":"0x0000000000000000000000000000000000000001","created_at":%d}`, time.Now().Unix()) -// result := s.tester.Advance(admin, createContractInput) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// s.tester.DepositERC20(common.HexToAddress("0x0000000000000000000000000000000000000001"), sender, big.NewInt(10000), []byte("")) - -// input := []byte(`{"path":"withdrawStablecoin"}`) -// expectedNoticePayload := `withdrawn STABLECOIN and 10000 from 0x9965507D1a55bcC2695C58ba16FB37d819B0A4dc with voucher index: 1` -// expectedWithdrawVoucherPayload := make([]byte, 0, 4+32+32) -// expectedWithdrawVoucherPayload = append(expectedWithdrawVoucherPayload, 0xa9, 0x05, 0x9c, 0xbb) -// expectedWithdrawVoucherPayload = append(expectedWithdrawVoucherPayload, make([]byte, 12)...) -// expectedWithdrawVoucherPayload = append(expectedWithdrawVoucherPayload, sender[:]...) -// expectedWithdrawVoucherPayload = append(expectedWithdrawVoucherPayload, big.NewInt(10000).FillBytes(make([]byte, 32))...) -// withdrawResult := s.tester.Advance(sender, input) -// s.Len(withdrawResult.Notices, 1) -// s.Len(withdrawResult.Vouchers, 1) -// s.Equal(expectedWithdrawVoucherPayload, withdrawResult.Vouchers[0].Payload) -// s.Equal(common.HexToAddress("0x0000000000000000000000000000000000000001"), withdrawResult.Vouchers[0].Destination) -// s.Equal(expectedNoticePayload, string(withdrawResult.Notices[0].Payload)) -// } - -// func (s *AppSuite) TestItWithdrawStablecoinWithInsuficientBalance() { -// admin := common.HexToAddress("0x0142f501EE21f4446009C3505c51d0043feC5c68") -// sender := common.HexToAddress("0x9965507D1a55bcC2695C58ba16FB37d819B0A4dc") - -// createContractInput := []byte(`{"path":"createContract","payload":{"symbol":"STABLECOIN","address":"0x0000000000000000000000000000000000000001"}}`) -// expectedOutput := fmt.Sprintf(`created contract - {"id":1,"symbol":"STABLECOIN","address":"0x0000000000000000000000000000000000000001","created_at":%d}`, time.Now().Unix()) -// result := s.tester.Advance(admin, createContractInput) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// input := []byte(`{"path":"withdrawStablecoin"}`) - -// expectedOutput = `no balance of STABLECOIN to withdraw` -// result = s.tester.Advance(sender, input) -// s.ErrorContains(result.Err, expectedOutput) -// } - -// ///////////////// Contract /////////////////// - -// func (s *AppSuite) TestItCreateContract() { -// admin := common.HexToAddress("0x0142f501EE21f4446009C3505c51d0043feC5c68") -// input := []byte(`{"path":"createContract","payload":{"symbol":"VOLT","address":"0x0000000000000000000000000000000000000001"}}`) -// expectedOutput := fmt.Sprintf(`created contract - {"id":1,"symbol":"VOLT","address":"0x0000000000000000000000000000000000000001","created_at":%d}`, time.Now().Unix()) -// result := s.tester.Advance(admin, input) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) -// } - -// func (s *AppSuite) TestItCreateContractWithoutPermissions() { -// admin := common.HexToAddress("0x0142f501EE21f4446009C3505c51d0043feC5c68") -// sender := common.HexToAddress("0x1234567890abcdef1234567890abcdef12345678") - -// createContractInput := []byte(`{"path":"createContract","payload":{"symbol":"VOLT","address":"0x0000000000000000000000000000000000000001"}}`) -// expectedOutput := fmt.Sprintf(`created contract - {"id":1,"symbol":"VOLT","address":"0x0000000000000000000000000000000000000001","created_at":%d}`, time.Now().Unix()) -// result := s.tester.Advance(admin, createContractInput) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// input := []byte(`{"path":"updateContract","payload":{"symbol":"VOLT","address":"0x0000000000000000000000000000000000000002"}}`) -// result = s.tester.Advance(admin, input) -// s.Len(result.Notices, 1) -// expectedOutput = `failed to find user by address 0x1234567890AbcdEF1234567890aBcdef12345678: record not found` -// result = s.tester.Advance(sender, input) -// s.ErrorContains(result.Err, expectedOutput) -// } - -// func (s *AppSuite) TestItCreateContractWithInvalidData() { -// sender := common.HexToAddress("0x0142f501EE21f4446009C3505c51d0043feC5c68") -// input := []byte(`{"path":"createContract","payload":{"symbol":"","address":""}}`) -// expectedOutput := `invalid contract` -// result := s.tester.Advance(sender, input) -// s.ErrorContains(result.Err, expectedOutput) -// } - -// func (s *AppSuite) TestItDeleteContract() { -// admin := common.HexToAddress("0x0142f501EE21f4446009C3505c51d0043feC5c68") - -// createContractInput := []byte(`{"path":"createContract","payload":{"symbol":"VOLT","address":"0x0000000000000000000000000000000000000001"}}`) -// expectedOutput := fmt.Sprintf(`created contract - {"id":1,"symbol":"VOLT","address":"0x0000000000000000000000000000000000000001","created_at":%d}`, time.Now().Unix()) -// result := s.tester.Advance(admin, createContractInput) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// input := []byte(`{"path":"deleteContract","payload":{"symbol":"VOLT"}}`) -// expectedOutput = `deleted contract with - {"Symbol":"VOLT"}` -// result = s.tester.Advance(admin, input) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) -// } - -// func (s *AppSuite) TestItDeleteContractWithoutPermissions() { -// admin := common.HexToAddress("0x0142f501EE21f4446009C3505c51d0043feC5c68") -// sender := common.HexToAddress("0x1234567890abcdef1234567890abcdef12345678") - -// createContractInput := []byte(`{"path":"createContract","payload":{"symbol":"VOLT","address":"0x0000000000000000000000000000000000000001"}}`) -// expectedOutput := fmt.Sprintf(`created contract - {"id":1,"symbol":"VOLT","address":"0x0000000000000000000000000000000000000001","created_at":%d}`, time.Now().Unix()) -// result := s.tester.Advance(admin, createContractInput) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// input := []byte(`{"path":"deleteContract","payload":{"symbol":"VOLT"}}`) -// expectedOutput = `failed to find user by address 0x1234567890AbcdEF1234567890aBcdef12345678: record not found` -// result = s.tester.Advance(sender, input) -// s.ErrorContains(result.Err, expectedOutput) -// } - -// func (s *AppSuite) TestItDeleteNonExistentContract() { -// admin := common.HexToAddress("0x0142f501EE21f4446009C3505c51d0043feC5c68") -// input := []byte(`{"path":"deleteContract","payload":{"symbol":"NONEXISTENT"}}`) -// expectedOutput := `contract not found` -// result := s.tester.Advance(admin, input) -// s.ErrorContains(result.Err, expectedOutput) -// } - -// func (s *AppSuite) TestItUpdateContract() { -// admin := common.HexToAddress("0x0142f501EE21f4446009C3505c51d0043feC5c68") - -// createContractInput := []byte(`{"path":"createContract","payload":{"symbol":"VOLT","address":"0x0000000000000000000000000000000000000001"}}`) -// expectedOutput := fmt.Sprintf(`created contract - {"id":1,"symbol":"VOLT","address":"0x0000000000000000000000000000000000000001","created_at":%d}`, time.Now().Unix()) -// result := s.tester.Advance(admin, createContractInput) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// input := []byte(`{"path":"updateContract","payload":{"symbol":"VOLT","address":"0x0000000000000000000000000000000000000002"}}`) -// expectedOutput = fmt.Sprintf(`updated contract - {"id":1,"symbol":"VOLT","address":"0x0000000000000000000000000000000000000002","created_at":%d,"updated_at":%d}`, time.Now().Unix(), time.Now().Unix()) -// result = s.tester.Advance(admin, input) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) -// } - -// func (s *AppSuite) TestItUpdateContractWithoutPermissions() { -// admin := common.HexToAddress("0x0142f501EE21f4446009C3505c51d0043feC5c68") -// sender := common.HexToAddress("0x1234567890abcdef1234567890abcdef12345678") - -// createContractInput := []byte(`{"path":"createContract","payload":{"symbol":"VOLT","address":"0x0000000000000000000000000000000000000001"}}`) -// expectedOutput := fmt.Sprintf(`created contract - {"id":1,"symbol":"VOLT","address":"0x0000000000000000000000000000000000000001","created_at":%d}`, time.Now().Unix()) -// result := s.tester.Advance(admin, createContractInput) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// input := []byte(`{"path":"updateContract","payload":{"symbol":"VOLT","address":"0x0000000000000000000000000000000000000003"}}`) -// expectedOutput = `record not found` -// result = s.tester.Advance(sender, input) -// s.ErrorContains(result.Err, expectedOutput) -// } - -// func (s *AppSuite) TestItUpdateNonExistentContract() { -// sender := common.HexToAddress("0x0142f501EE21f4446009C3505c51d0043feC5c68") -// input := []byte(`{"path":"updateContract","payload":{"symbol":"VOLT","address":"0x0000000000000000000000000000000000000002"}}`) -// expectedOutput := `contract not found` -// result := s.tester.Advance(sender, input) -// s.ErrorContains(result.Err, expectedOutput) -// } - -// ///////////////// Station /////////////////// - -// func (s *AppSuite) TestItCreateStation() { -// admin := common.HexToAddress("0x0142f501EE21f4446009C3505c51d0043feC5c68") -// input := []byte(`{"path":"createStation","payload":{"owner":"0x70997970C51812dc3A010C7d01b50e0d17dc79C8","consumption":100,"interest_rate":50,"latitude":40.7128,"longitude":-74.0060}}`) -// expectedOutput := fmt.Sprintf(`created station - {"id":1,"owner":"0x70997970C51812dc3A010C7d01b50e0d17dc79C8","state":"active","consumption":"100","interest_rate":"50","latitude":40.7128,"longitude":-74.006,"created_at":%d}`, time.Now().Unix()) -// result := s.tester.Advance(admin, input) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) -// } - -// func (s *AppSuite) TestItCreateStationWithoutPermissions() { -// sender := common.HexToAddress("0x1234567890abcdef1234567890abcdef12345678") -// input := []byte(`{"path":"createStation","payload":{"owner":"0x70997970C51812dc3A010C7d01b50e0d17dc79C8","consumption":100,"interest_rate":50,"latitude":40.7128,"longitude":-74.0060}}`) -// expectedOutput := `failed to find user by address 0x1234567890AbcdEF1234567890aBcdef12345678: record not found` -// result := s.tester.Advance(sender, input) -// s.ErrorContains(result.Err, expectedOutput) -// } - -// func (s *AppSuite) TestItCreateStationWithInvalidData() { -// sender := common.HexToAddress("0x0142f501EE21f4446009C3505c51d0043feC5c68") -// input := []byte(`{"path":"createStation","payload":{"owner":"","consumption":-100,"interest_rate":-50,"latitude":91.0000,"longitude":181.0000}}`) -// expectedOutput := `invalid station` -// result := s.tester.Advance(sender, input) -// s.ErrorContains(result.Err, expectedOutput) -// } - -// func (s *AppSuite) TestItUpdateStation() { -// admin := common.HexToAddress("0x0142f501EE21f4446009C3505c51d0043feC5c68") - -// createStationInput := []byte(`{"path":"createStation","payload":{"owner":"0x70997970C51812dc3A010C7d01b50e0d17dc79C8","consumption":100,"interest_rate":50,"latitude":40.7128,"longitude":-74.0060}}`) -// expectedOutput := fmt.Sprintf(`created station - {"id":1,"owner":"0x70997970C51812dc3A010C7d01b50e0d17dc79C8","state":"active","consumption":"100","interest_rate":"50","latitude":40.7128,"longitude":-74.006,"created_at":%d}`, time.Now().Unix()) -// result := s.tester.Advance(admin, createStationInput) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// input := []byte(`{"path":"updateStation","payload":{"id":1, "owner": "0x1234567890abcdef1234567890abcdef12345678", "consumption": 150, "interest_rate": 75, "state": "active", "latitude": 34.0522, "longitude": -118.2437}}`) -// expectedOutput = fmt.Sprintf(`updated station - {"id":1,"consumption":"150","owner":"0x1234567890AbcdEF1234567890aBcdef12345678","interest_rate":"75","state":"active","latitude":34.0522,"longitude":-118.2437,"created_at":%d,"updated_at":%d}`, time.Now().Unix(), time.Now().Unix()) -// result = s.tester.Advance(admin, input) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) -// } - -// func (s *AppSuite) TestItUpdateStationWithoutPermissions() { -// sender := common.HexToAddress("0x1234567890abcdef1234567890abcdef12345678") // Not an admin -// input := []byte(`{"path":"updateStation","payload":{"id":1, "owner": "0x1234567890abcdef1234567890abcdef12345678", "consumption": 150, "interest_rate": 75, "latitude": 34.0522, "longitude": -118.2437}}`) -// expectedOutput := `failed to find user by address 0x1234567890AbcdEF1234567890aBcdef12345678: record not found` -// result := s.tester.Advance(sender, input) -// s.ErrorContains(result.Err, expectedOutput) -// } - -// func (s *AppSuite) TestItUpdateNonExistentStation() { -// sender := common.HexToAddress("0x0142f501EE21f4446009C3505c51d0043feC5c68") -// input := []byte(`{"path":"updateStation","payload":{"id":10, "owner": "0x1234567890abcdef1234567890abcdef12345678", "consumption": 150, "interest_rate": 75, "latitude": 34.0522, "longitude": -118.2437}}`) -// expectedOutput := `station not found` -// result := s.tester.Advance(sender, input) -// s.ErrorContains(result.Err, expectedOutput) -// } - -// func (s *AppSuite) TestItDeleteStation() { -// admin := common.HexToAddress("0x0142f501EE21f4446009C3505c51d0043feC5c68") - -// createStationInput := []byte(`{"path":"createStation","payload":{"owner":"0x70997970C51812dc3A010C7d01b50e0d17dc79C8","consumption":100,"interest_rate":50,"latitude":40.7128,"longitude":-74.0060}}`) -// expectedOutput := fmt.Sprintf(`created station - {"id":1,"owner":"0x70997970C51812dc3A010C7d01b50e0d17dc79C8","state":"active","consumption":"100","interest_rate":"50","latitude":40.7128,"longitude":-74.006,"created_at":%d}`, time.Now().Unix()) -// result := s.tester.Advance(admin, createStationInput) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// input := []byte(`{"path":"deleteStation","payload":{"id":1}}`) -// expectedOutput = `deleted station with - {"id":1}` -// result = s.tester.Advance(admin, input) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) -// } - -// func (s *AppSuite) TestItDeleteStationWithoutPermissions() { -// sender := common.HexToAddress("0x1234567890abcdef1234567890abcdef12345678") // Not an admin -// input := []byte(`{"path":"deleteStation","payload":{"id":1}}`) -// expectedOutput := `failed to find user by address 0x1234567890AbcdEF1234567890aBcdef12345678: record not found` -// result := s.tester.Advance(sender, input) -// s.ErrorContains(result.Err, expectedOutput) -// } - -// func (s *AppSuite) TestItDeleteNonExistentStation() { -// sender := common.HexToAddress("0x0142f501EE21f4446009C3505c51d0043feC5c68") -// input := []byte(`{"path":"deleteStation","payload":{"id":10}}`) -// expectedOutput := `station not found` -// result := s.tester.Advance(sender, input) -// s.ErrorContains(result.Err, expectedOutput) -// } - -// ///////////////// Order /////////////////// - -// func (s *AppSuite) TestItCreateOrder() { -// admin := common.HexToAddress("0x0142f501EE21f4446009C3505c51d0043feC5c68") -// sender := common.HexToAddress("0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65") - -// appAddressResult := s.tester.RelayAppAddress(common.HexToAddress("0xdadadadadadadadadadadadadadadadadadadada")) -// s.Nil(appAddressResult.Err) - -// createContractInput := []byte(`{"path":"createContract","payload":{"symbol":"STABLECOIN","address":"0x0000000000000000000000000000000000000002"}}`) -// expectedOutput := fmt.Sprintf(`created contract - {"id":1,"symbol":"STABLECOIN","address":"0x0000000000000000000000000000000000000002","created_at":%d}`, time.Now().Unix()) -// result := s.tester.Advance(admin, createContractInput) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// createStationInput := []byte(`{"path":"createStation","payload":{"owner":"0x70997970C51812dc3A010C7d01b50e0d17dc79C8","consumption":100,"interest_rate":50,"latitude":40.7128,"longitude":-74.0060}}`) -// expectedOutput = fmt.Sprintf(`created station - {"id":1,"owner":"0x70997970C51812dc3A010C7d01b50e0d17dc79C8","state":"active","consumption":"100","interest_rate":"50","latitude":40.7128,"longitude":-74.006,"created_at":%d}`, time.Now().Unix()) -// result = s.tester.Advance(admin, createStationInput) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// createOrderPayload := []byte(`{"path":"createOrder","payload":{"station_id":1}}`) -// result = s.tester.DepositERC20(common.HexToAddress("0x0000000000000000000000000000000000000002"), sender, big.NewInt(10000), createOrderPayload) -// expectedOutput = fmt.Sprintf(`created order - {"id":1,"buyer":"0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65","amount":"200","station_id":1,"station_owner":"0x70997970C51812dc3A010C7d01b50e0d17dc79C8","interest_rate":"50","created_at":%d}`, time.Now().Unix()) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) -// } - -// func (s *AppSuite) TestItCreateOrderWithInvalidData() { -// admin := common.HexToAddress("0x0142f501EE21f4446009C3505c51d0043feC5c68") -// sender := common.HexToAddress("0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65") - -// appAddressResult := s.tester.RelayAppAddress(common.HexToAddress("0xdadadadadadadadadadadadadadadadadadadada")) -// s.Nil(appAddressResult.Err) - -// createContractInput := []byte(`{"path":"createContract","payload":{"symbol":"STABLECOIN","address":"0x0000000000000000000000000000000000000002"}}`) -// expectedOutput := fmt.Sprintf(`created contract - {"id":1,"symbol":"STABLECOIN","address":"0x0000000000000000000000000000000000000002","created_at":%d}`, time.Now().Unix()) -// result := s.tester.Advance(admin, createContractInput) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// createStationInput := []byte(`{"path":"createStation","payload":{"owner":"0x70997970C51812dc3A010C7d01b50e0d17dc79C8","consumption":100,"interest_rate":50,"latitude":40.7128,"longitude":-74.0060}}`) -// expectedOutput = fmt.Sprintf(`created station - {"id":1,"owner":"0x70997970C51812dc3A010C7d01b50e0d17dc79C8","state":"active","consumption":"100","interest_rate":"50","latitude":40.7128,"longitude":-74.006,"created_at":%d}`, time.Now().Unix()) -// result = s.tester.Advance(admin, createStationInput) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// createOrderPayload := []byte(`{"path":"createOrder","payload":{"station_id":1}}`) -// result = s.tester.DepositERC20(common.HexToAddress("0x0000000000000000000000000000000000000002"), sender, big.NewInt(0), createOrderPayload) -// expectedOutput = "invalid order" -// s.ErrorContains(result.Err, expectedOutput) -// } - -// ////////////// Auction ////////////////// - -// func (s *AppSuite) TestItCreateAuctionAndFinishAuctionWithoutPartialSelling() { -// admin := common.HexToAddress("0x0142f501EE21f4446009C3505c51d0043feC5c68") -// sender := common.HexToAddress("0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65") -// stationOwner01 := common.HexToAddress("0x70997970C51812dc3A010C7d01b50e0d17dc79C8") -// stationOwner02 := common.HexToAddress("0x3C44CdDdB6a9008054Ea72dBa55dDb1D8EDd895D") -// bidder01 := common.HexToAddress("0x0000000000000000000000000000000000000003") -// bidder02 := common.HexToAddress("0x0000000000000000000000000000000000000004") -// bidder03 := common.HexToAddress("0x0000000000000000000000000000000000000005") -// bidder04 := common.HexToAddress("0x0000000000000000000000000000000000000006") - -// appAddressResult := s.tester.RelayAppAddress(common.HexToAddress("0xdadadadadadadadadadadadadadadadadadadada")) -// s.Nil(appAddressResult.Err) - -// createContractInput := []byte(`{"path":"createContract","payload":{"symbol":"VOLT","address":"0x0000000000000000000000000000000000000001"}}`) -// expectedOutput := fmt.Sprintf(`created contract - {"id":1,"symbol":"VOLT","address":"0x0000000000000000000000000000000000000001","created_at":%d}`, time.Now().Unix()) -// result := s.tester.Advance(admin, createContractInput) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// createContractInput = []byte(`{"path":"createContract","payload":{"symbol":"STABLECOIN","address":"0x0000000000000000000000000000000000000002"}}`) -// expectedOutput = fmt.Sprintf(`created contract - {"id":2,"symbol":"STABLECOIN","address":"0x0000000000000000000000000000000000000002","created_at":%d}`, time.Now().Unix()) -// result = s.tester.Advance(admin, createContractInput) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// createStationInput := []byte(fmt.Sprintf(`{"path":"createStation","payload":{"owner":"%v","consumption":100,"interest_rate":50,"latitude":40.7128,"longitude":-74.0060}}`, stationOwner01)) -// expectedOutput = fmt.Sprintf(`created station - {"id":1,"owner":"%v","state":"active","consumption":"100","interest_rate":"50","latitude":40.7128,"longitude":-74.006,"created_at":%d}`, stationOwner01, time.Now().Unix()) -// result = s.tester.Advance(admin, createStationInput) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// createStationInput = []byte(fmt.Sprintf(`{"path":"createStation","payload":{"owner":"%v","consumption":100,"interest_rate":10,"latitude":40.7128,"longitude":-74.0060}}`, stationOwner02)) -// expectedOutput = fmt.Sprintf(`created station - {"id":2,"owner":"%v","state":"active","consumption":"100","interest_rate":"10","latitude":40.7128,"longitude":-74.006,"created_at":%d}`, stationOwner02, time.Now().Unix()) -// result = s.tester.Advance(admin, createStationInput) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// createOrderInput := []byte(`{"path":"createOrder","payload":{"station_id":1}}`) -// result = s.tester.DepositERC20(common.HexToAddress("0x0000000000000000000000000000000000000002"), sender, big.NewInt(10000), createOrderInput) -// expectedOutput = fmt.Sprintf(`created order - {"id":1,"buyer":"0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65","amount":"200","station_id":1,"station_owner":"%v","interest_rate":"50","created_at":%d}`, stationOwner01, time.Now().Unix()) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// createOrderInput = []byte(`{"path":"createOrder","payload":{"station_id":2}}`) -// result = s.tester.DepositERC20(common.HexToAddress("0x0000000000000000000000000000000000000002"), sender, big.NewInt(100), createOrderInput) -// expectedOutput = fmt.Sprintf(`created order - {"id":2,"buyer":"0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65","amount":"10","station_id":2,"station_owner":"%v","interest_rate":"10","created_at":%d}`, stationOwner02, time.Now().Unix()) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// createOrderInput = []byte(`{"path":"createOrder","payload":{"station_id":1}}`) -// result = s.tester.DepositERC20(common.HexToAddress("0x0000000000000000000000000000000000000002"), sender, big.NewInt(50000), createOrderInput) -// expectedOutput = fmt.Sprintf(`created order - {"id":3,"buyer":"0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65","amount":"1000","station_id":1,"station_owner":"%v","interest_rate":"50","created_at":%d}`, stationOwner01, time.Now().Unix()) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// createOrderInput = []byte(`{"path":"createOrder","payload":{"station_id":2}}`) -// result = s.tester.DepositERC20(common.HexToAddress("0x0000000000000000000000000000000000000002"), sender, big.NewInt(100), createOrderInput) -// expectedOutput = fmt.Sprintf(`created order - {"id":4,"buyer":"0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65","amount":"10","station_id":2,"station_owner":"%v","interest_rate":"10","created_at":%d}`, stationOwner02, time.Now().Unix()) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// createOrderInput = []byte(`{"path":"createOrder","payload":{"station_id":1}}`) -// result = s.tester.DepositERC20(common.HexToAddress("0x0000000000000000000000000000000000000002"), sender, big.NewInt(20000), createOrderInput) -// expectedOutput = fmt.Sprintf(`created order - {"id":5,"buyer":"0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65","amount":"400","station_id":1,"station_owner":"%v","interest_rate":"50","created_at":%d}`, stationOwner01, time.Now().Unix()) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// createAuctionInput := []byte(fmt.Sprintf(`{"path":"createAuction","payload":{"interest_rate":"1000","expires_at":%d,"debt_issued":%d}}`, time.Now().Add(5*time.Second).Unix(), 2)) -// result = s.tester.Advance(admin, createAuctionInput) -// expectedOutput = fmt.Sprintf(`created auction - {"id":1,"debt_issued":"1620","interest_rate":"1000","state":"ongoing","expires_at":%d,"created_at":%d}`, time.Now().Add(5*time.Second).Unix(), time.Now().Unix()) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// createBidInput := []byte(`{"path": "createBid", "payload": {"interest_rate":"100"}}`) -// result = s.tester.DepositERC20(common.HexToAddress("0x0000000000000000000000000000000000000001"), bidder01, big.NewInt(600), createBidInput) -// expectedOutput = fmt.Sprintf(`created bid - {"id":1,"auction_id":1,"bidder":"0x0000000000000000000000000000000000000003","amount":"600","interest_rate":"100","state":"pending","created_at":%d}`, time.Now().Unix()) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// createBidInput = []byte(`{"path": "createBid", "payload": {"interest_rate":"500"}}`) -// result = s.tester.DepositERC20(common.HexToAddress("0x0000000000000000000000000000000000000001"), bidder02, big.NewInt(520), createBidInput) -// expectedOutput = fmt.Sprintf(`created bid - {"id":2,"auction_id":1,"bidder":"0x0000000000000000000000000000000000000004","amount":"520","interest_rate":"500","state":"pending","created_at":%d}`, time.Now().Unix()) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// createBidInput = []byte(`{"path": "createBid", "payload": {"interest_rate":"200"}}`) -// result = s.tester.DepositERC20(common.HexToAddress("0x0000000000000000000000000000000000000001"), bidder03, big.NewInt(200), createBidInput) -// expectedOutput = fmt.Sprintf(`created bid - {"id":3,"auction_id":1,"bidder":"0x0000000000000000000000000000000000000005","amount":"200","interest_rate":"200","state":"pending","created_at":%d}`, time.Now().Unix()) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// createBidInput = []byte(`{"path": "createBid", "payload": {"interest_rate":"300"}}`) -// result = s.tester.DepositERC20(common.HexToAddress("0x0000000000000000000000000000000000000001"), bidder04, big.NewInt(300), createBidInput) -// expectedOutput = fmt.Sprintf(`created bid - {"id":4,"auction_id":1,"bidder":"0x0000000000000000000000000000000000000006","amount":"300","interest_rate":"300","state":"pending","created_at":%d}`, time.Now().Unix()) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// time.Sleep(5 * time.Second) - -// finishAuctionInput := []byte(`{"path":"finishAuction"}`) -// result = s.tester.Advance(admin, finishAuctionInput) -// expectedOutput = `finished auction with - id: 1, required amount: 1620 and price limit per credit: 1000` -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// offSetStationConsumptionInput := []byte(`{"path":"offSetStationConsumption", "payload": {"id": 1, "amount_to_be_offset": 1600}}`) -// result = s.tester.Advance(stationOwner01, offSetStationConsumptionInput) -// expectedOutput = fmt.Sprintf(`offSet Amount from station: 1 by msg_sender: %v`, stationOwner01) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// offSetStationConsumptionInput = []byte(`{"path":"offSetStationConsumption", "payload": {"id": 2, "amount_to_be_offset": 20}}`) -// result = s.tester.Advance(stationOwner02, offSetStationConsumptionInput) -// expectedOutput = fmt.Sprintf(`offSet Amount from station: 2 by msg_sender: %v`, stationOwner02) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) -// } - -// func (s *AppSuite) TestItCreateAuctionAndFinishAuctionWithPartialSelling() { -// admin := common.HexToAddress("0x0142f501EE21f4446009C3505c51d0043feC5c68") -// sender := common.HexToAddress("0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65") -// stationOwner01 := common.HexToAddress("0x70997970C51812dc3A010C7d01b50e0d17dc79C8") -// stationOwner02 := common.HexToAddress("0x3C44CdDdB6a9008054Ea72dBa55dDb1D8EDd895D") -// bidder01 := common.HexToAddress("0x0000000000000000000000000000000000000003") -// bidder02 := common.HexToAddress("0x0000000000000000000000000000000000000004") -// bidder03 := common.HexToAddress("0x0000000000000000000000000000000000000005") -// bidder04 := common.HexToAddress("0x0000000000000000000000000000000000000006") -// bidder05 := common.HexToAddress("0x0000000000000000000000000000000000000007") - -// appAddressResult := s.tester.RelayAppAddress(common.HexToAddress("0xdadadadadadadadadadadadadadadadadadadada")) -// s.Nil(appAddressResult.Err) - -// createContractInput := []byte(`{"path":"createContract","payload":{"symbol":"VOLT","address":"0x0000000000000000000000000000000000000001"}}`) -// expectedOutput := fmt.Sprintf(`created contract - {"id":1,"symbol":"VOLT","address":"0x0000000000000000000000000000000000000001","created_at":%d}`, time.Now().Unix()) -// result := s.tester.Advance(admin, createContractInput) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// createContractInput = []byte(`{"path":"createContract","payload":{"symbol":"STABLECOIN","address":"0x0000000000000000000000000000000000000002"}}`) -// expectedOutput = fmt.Sprintf(`created contract - {"id":2,"symbol":"STABLECOIN","address":"0x0000000000000000000000000000000000000002","created_at":%d}`, time.Now().Unix()) -// result = s.tester.Advance(admin, createContractInput) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// createStationInput := []byte(fmt.Sprintf(`{"path":"createStation","payload":{"owner":"%v","consumption":100,"interest_rate":50,"latitude":40.7128,"longitude":-74.0060}}`, stationOwner01)) -// expectedOutput = fmt.Sprintf(`created station - {"id":1,"owner":"%v","state":"active","consumption":"100","interest_rate":"50","latitude":40.7128,"longitude":-74.006,"created_at":%d}`, stationOwner01, time.Now().Unix()) -// result = s.tester.Advance(admin, createStationInput) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// createStationInput = []byte(fmt.Sprintf(`{"path":"createStation","payload":{"owner":"%v","consumption":100,"interest_rate":10,"latitude":40.7128,"longitude":-74.0060}}`, stationOwner02)) -// expectedOutput = fmt.Sprintf(`created station - {"id":2,"owner":"%v","state":"active","consumption":"100","interest_rate":"10","latitude":40.7128,"longitude":-74.006,"created_at":%d}`, stationOwner02, time.Now().Unix()) -// result = s.tester.Advance(admin, createStationInput) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// createOrderInput := []byte(`{"path":"createOrder","payload":{"station_id":1}}`) -// result = s.tester.DepositERC20(common.HexToAddress("0x0000000000000000000000000000000000000002"), sender, big.NewInt(10000), createOrderInput) -// expectedOutput = fmt.Sprintf(`created order - {"id":1,"buyer":"0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65","amount":"200","station_id":1,"station_owner":"%v","interest_rate":"50","created_at":%d}`, stationOwner01, time.Now().Unix()) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// createOrderInput = []byte(`{"path":"createOrder","payload":{"station_id":2}}`) -// result = s.tester.DepositERC20(common.HexToAddress("0x0000000000000000000000000000000000000002"), sender, big.NewInt(100), createOrderInput) -// expectedOutput = fmt.Sprintf(`created order - {"id":2,"buyer":"0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65","amount":"10","station_id":2,"station_owner":"%v","interest_rate":"10","created_at":%d}`, stationOwner02, time.Now().Unix()) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// createOrderInput = []byte(`{"path":"createOrder","payload":{"station_id":1}}`) -// result = s.tester.DepositERC20(common.HexToAddress("0x0000000000000000000000000000000000000002"), sender, big.NewInt(50000), createOrderInput) -// expectedOutput = fmt.Sprintf(`created order - {"id":3,"buyer":"0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65","amount":"1000","station_id":1,"station_owner":"%v","interest_rate":"50","created_at":%d}`, stationOwner01, time.Now().Unix()) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// createOrderInput = []byte(`{"path":"createOrder","payload":{"station_id":2}}`) -// result = s.tester.DepositERC20(common.HexToAddress("0x0000000000000000000000000000000000000002"), sender, big.NewInt(100), createOrderInput) -// expectedOutput = fmt.Sprintf(`created order - {"id":4,"buyer":"0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65","amount":"10","station_id":2,"station_owner":"%v","interest_rate":"10","created_at":%d}`, stationOwner02, time.Now().Unix()) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// createOrderInput = []byte(`{"path":"createOrder","payload":{"station_id":1}}`) -// result = s.tester.DepositERC20(common.HexToAddress("0x0000000000000000000000000000000000000002"), sender, big.NewInt(20000), createOrderInput) -// expectedOutput = fmt.Sprintf(`created order - {"id":5,"buyer":"0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65","amount":"400","station_id":1,"station_owner":"%v","interest_rate":"50","created_at":%d}`, stationOwner01, time.Now().Unix()) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// createAuctionInput := []byte(fmt.Sprintf(`{"path":"createAuction","payload":{"interest_rate":"1000","expires_at":%d,"debt_issued":%d}}`, time.Now().Add(5*time.Second).Unix(), 2)) -// result = s.tester.Advance(admin, createAuctionInput) -// expectedOutput = fmt.Sprintf(`created auction - {"id":1,"debt_issued":"1620","interest_rate":"1000","state":"ongoing","expires_at":%d,"created_at":%d}`, time.Now().Add(5*time.Second).Unix(), time.Now().Unix()) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// createBidInput := []byte(`{"path": "createBid", "payload": {"interest_rate":"100"}}`) -// result = s.tester.DepositERC20(common.HexToAddress("0x0000000000000000000000000000000000000001"), bidder01, big.NewInt(600), createBidInput) -// expectedOutput = fmt.Sprintf(`created bid - {"id":1,"auction_id":1,"bidder":"0x0000000000000000000000000000000000000003","amount":"600","interest_rate":"100","state":"pending","created_at":%d}`, time.Now().Unix()) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// createBidInput = []byte(`{"path": "createBid", "payload": {"interest_rate":"500"}}`) -// result = s.tester.DepositERC20(common.HexToAddress("0x0000000000000000000000000000000000000001"), bidder02, big.NewInt(520), createBidInput) -// expectedOutput = fmt.Sprintf(`created bid - {"id":2,"auction_id":1,"bidder":"0x0000000000000000000000000000000000000004","amount":"520","interest_rate":"500","state":"pending","created_at":%d}`, time.Now().Unix()) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// createBidInput = []byte(`{"path": "createBid", "payload": {"interest_rate":"200"}}`) -// result = s.tester.DepositERC20(common.HexToAddress("0x0000000000000000000000000000000000000001"), bidder03, big.NewInt(150), createBidInput) -// expectedOutput = fmt.Sprintf(`created bid - {"id":3,"auction_id":1,"bidder":"0x0000000000000000000000000000000000000005","amount":"150","interest_rate":"200","state":"pending","created_at":%d}`, time.Now().Unix()) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// createBidInput = []byte(`{"path": "createBid", "payload": {"interest_rate":"300"}}`) -// result = s.tester.DepositERC20(common.HexToAddress("0x0000000000000000000000000000000000000001"), bidder04, big.NewInt(300), createBidInput) -// expectedOutput = fmt.Sprintf(`created bid - {"id":4,"auction_id":1,"bidder":"0x0000000000000000000000000000000000000006","amount":"300","interest_rate":"300","state":"pending","created_at":%d}`, time.Now().Unix()) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// createBidInput = []byte(`{"path": "createBid", "payload": {"interest_rate":"200"}}`) -// result = s.tester.DepositERC20(common.HexToAddress("0x0000000000000000000000000000000000000001"), bidder05, big.NewInt(150), createBidInput) -// expectedOutput = fmt.Sprintf(`created bid - {"id":5,"auction_id":1,"bidder":"0x0000000000000000000000000000000000000007","amount":"150","interest_rate":"200","state":"pending","created_at":%d}`, time.Now().Unix()) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// time.Sleep(5 * time.Second) - -// finishAuctionInput := []byte(`{"path":"finishAuction"}`) -// result = s.tester.Advance(admin, finishAuctionInput) -// expectedOutput = `finished auction with - id: 1, required amount: 1620 and price limit per credit: 1000` -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// offSetStationConsumptionInput := []byte(`{"path":"offSetStationConsumption", "payload": {"id": 1, "amount_to_be_offset": 1600}}`) -// result = s.tester.Advance(stationOwner01, offSetStationConsumptionInput) -// expectedOutput = fmt.Sprintf(`offSet Amount from station: 1 by msg_sender: %v`, stationOwner01) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) - -// offSetStationConsumptionInput = []byte(`{"path":"offSetStationConsumption", "payload": {"id": 2, "amount_to_be_offset": 20}}`) -// result = s.tester.Advance(stationOwner02, offSetStationConsumptionInput) -// expectedOutput = fmt.Sprintf(`offSet Amount from station: 2 by msg_sender: %v`, stationOwner02) -// s.Len(result.Notices, 1) -// s.Equal(expectedOutput, string(result.Notices[0].Payload)) -// } +func (s *AppSuite) TestItCreateUser() { + admin := common.HexToAddress("0x0142f501EE21f4446009C3505c51d0043feC5c68") + input := []byte(`{"path":"createUser","payload":{"address":"0x70997970C51812dc3A010C7d01b50e0d17dc79C8","role":"admin","username":"vitalik"}}`) + expectedOutput := fmt.Sprintf(`user created - {"id":3,"role":"admin","username":"vitalik","address":"0x70997970C51812dc3A010C7d01b50e0d17dc79C8","created_at":%d}`, time.Now().Unix()) + result := s.tester.Advance(admin, input) + s.Len(result.Notices, 1) + s.Equal(expectedOutput, string(result.Notices[0].Payload)) +} + +////////////// Auction ////////////////// + +func (s *AppSuite) TestItCreateAuctionAndFinishAuctionWithoutPartialSellingAndPayingAllBidder() { + admin := common.HexToAddress("0x0142f501EE21f4446009C3505c51d0043feC5c68") + creator := common.HexToAddress("0x0000000000000000000000000000000000000007") + bidder01 := common.HexToAddress("0x0000000000000000000000000000000000000001") + bidder02 := common.HexToAddress("0x0000000000000000000000000000000000000002") + bidder03 := common.HexToAddress("0x0000000000000000000000000000000000000003") + bidder04 := common.HexToAddress("0x0000000000000000000000000000000000000004") + bidder05 := common.HexToAddress("0x0000000000000000000000000000000000000005") + + appAddressResult := s.tester.RelayAppAddress(common.HexToAddress("0xdadadadadadadadadadadadadadadadadadadada")) + s.Nil(appAddressResult.Err) + + createUserInput := []byte(fmt.Sprintf(`{"path":"createUser","payload":{"address":"%s","role":"creator","username":"vitalik"}}`, creator)) + expectedOutput := fmt.Sprintf(`user created - {"id":3,"role":"creator","username":"vitalik","address":"0x0000000000000000000000000000000000000007","created_at":%d}`, time.Now().Unix()) + result := s.tester.Advance(admin, createUserInput) + s.Len(result.Notices, 1) + s.Equal(expectedOutput, string(result.Notices[0].Payload)) + + createContractInput := []byte(`{"path":"createContract","payload":{"symbol":"STABLECOIN","address":"0x0000000000000000000000000000000000000009"}}`) + expectedOutput = fmt.Sprintf(`contract created - {"id":1,"symbol":"STABLECOIN","address":"0x0000000000000000000000000000000000000009","created_at":%d}`, time.Now().Unix()) + result = s.tester.Advance(admin, createContractInput) + s.Len(result.Notices, 1) + s.Equal(expectedOutput, string(result.Notices[0].Payload)) + + createAuctionInput := []byte(fmt.Sprintf(`{"path":"createAuction","payload":{"max_interest_rate":"10","expires_at":%d,"debt_issued":%d}}`, time.Now().Add(5*time.Second).Unix(), 2020)) + result = s.tester.Advance(creator, createAuctionInput) + expectedOutput = fmt.Sprintf(`created auction - {"id":1,"creator":"0x0000000000000000000000000000000000000007","debt_issued":"2020","max_interest_rate":"10","state":"ongoing","expires_at":%d,"created_at":%d}`, time.Now().Add(5*time.Second).Unix(), time.Now().Unix()) + s.Len(result.Notices, 1) + s.Equal(expectedOutput, string(result.Notices[0].Payload)) + + createBidInput := []byte(`{"path": "createBid", "payload": {"interest_rate":"9"}}`) + result = s.tester.DepositERC20(common.HexToAddress("0x0000000000000000000000000000000000000009"), bidder01, big.NewInt(600), createBidInput) + expectedOutput = fmt.Sprintf(`bid created - {"id":1,"auction_id":1,"bidder":"0x0000000000000000000000000000000000000001","amount":"600","interest_rate":"9","state":"pending","created_at":%d}`, time.Now().Unix()) + s.Len(result.Notices, 1) + s.Equal(expectedOutput, string(result.Notices[0].Payload)) + + createBidInput = []byte(`{"path": "createBid", "payload": {"interest_rate":"8"}}`) + result = s.tester.DepositERC20(common.HexToAddress("0x0000000000000000000000000000000000000009"), bidder02, big.NewInt(520), createBidInput) + expectedOutput = fmt.Sprintf(`bid created - {"id":2,"auction_id":1,"bidder":"0x0000000000000000000000000000000000000002","amount":"520","interest_rate":"8","state":"pending","created_at":%d}`, time.Now().Unix()) + s.Len(result.Notices, 1) + s.Equal(expectedOutput, string(result.Notices[0].Payload)) + + createBidInput = []byte(`{"path": "createBid", "payload": {"interest_rate":"4"}}`) + result = s.tester.DepositERC20(common.HexToAddress("0x0000000000000000000000000000000000000009"), bidder03, big.NewInt(200), createBidInput) + expectedOutput = fmt.Sprintf(`bid created - {"id":3,"auction_id":1,"bidder":"0x0000000000000000000000000000000000000003","amount":"200","interest_rate":"4","state":"pending","created_at":%d}`, time.Now().Unix()) + s.Len(result.Notices, 1) + s.Equal(expectedOutput, string(result.Notices[0].Payload)) + + createBidInput = []byte(`{"path": "createBid", "payload": {"interest_rate":"6"}}`) + result = s.tester.DepositERC20(common.HexToAddress("0x0000000000000000000000000000000000000009"), bidder04, big.NewInt(300), createBidInput) + expectedOutput = fmt.Sprintf(`bid created - {"id":4,"auction_id":1,"bidder":"0x0000000000000000000000000000000000000004","amount":"300","interest_rate":"6","state":"pending","created_at":%d}`, time.Now().Unix()) + s.Len(result.Notices, 1) + s.Equal(expectedOutput, string(result.Notices[0].Payload)) + + createBidInput = []byte(`{"path": "createBid", "payload": {"interest_rate":"4"}}`) + result = s.tester.DepositERC20(common.HexToAddress("0x0000000000000000000000000000000000000009"), bidder05, big.NewInt(400), createBidInput) + expectedOutput = fmt.Sprintf(`bid created - {"id":5,"auction_id":1,"bidder":"0x0000000000000000000000000000000000000005","amount":"400","interest_rate":"4","state":"pending","created_at":%d}`, time.Now().Unix()) + s.Len(result.Notices, 1) + s.Equal(expectedOutput, string(result.Notices[0].Payload)) + + time.Sleep(5 * time.Second) + + finishAuctionInput := []byte(`{"path":"finishAuction"}`) + result = s.tester.Advance(admin, finishAuctionInput) + expectedOutput = `finished auction with - id: 1, required amount: 2020 and max interest rate: 10` + s.Len(result.Notices, 1) + s.Equal(expectedOutput, string(result.Notices[0].Payload)) + +} diff --git a/cmd/dapp/lib/.gitignore b/cmd/dapp/lib/.gitignore new file mode 100644 index 0000000..cb117fd --- /dev/null +++ b/cmd/dapp/lib/.gitignore @@ -0,0 +1,2 @@ +Cargo.lock +target \ No newline at end of file diff --git a/cmd/dapp/lib/.gitkeep b/cmd/dapp/lib/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/cmd/dapp/lib/Cargo.toml b/cmd/dapp/lib/Cargo.toml new file mode 100644 index 0000000..190ff13 --- /dev/null +++ b/cmd/dapp/lib/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "verifier" +version = "0.1.0" +edition = "2021" + +[lib] +name = "verifier" +crate-type = ["staticlib"] \ No newline at end of file diff --git a/cmd/dapp/lib/src/lib.rs b/cmd/dapp/lib/src/lib.rs new file mode 100644 index 0000000..a1971c2 --- /dev/null +++ b/cmd/dapp/lib/src/lib.rs @@ -0,0 +1,4 @@ +#[no_mangle] +pub extern "C" fn add_numbers(a: i32, b: i32) -> i32 { + a + b +} \ No newline at end of file diff --git a/cmd/dapp/wire.go b/cmd/dapp/wire.go index 09e274f..b58385c 100644 --- a/cmd/dapp/wire.go +++ b/cmd/dapp/wire.go @@ -5,12 +5,12 @@ package main import ( "github.com/google/wire" - "github.com/tribeshq/tribes/configs" "github.com/tribeshq/tribes/internal/domain/entity" "github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler" "github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler" "github.com/tribeshq/tribes/internal/infra/cartesi/middleware" db "github.com/tribeshq/tribes/internal/infra/repository" + "gorm.io/gorm" ) var setBidRepositoryDependency = wire.NewSet( @@ -52,9 +52,8 @@ var setMiddleware = wire.NewSet( middleware.NewRBACMiddleware, ) -func NewMiddlewares() (*Middlewares, error) { +func NewMiddlewares(gormDB *gorm.DB) (*Middlewares, error) { wire.Build( - configs.SetupSQlite, setUserRepositoryDependency, setMiddleware, wire.Struct(new(Middlewares), "*"), @@ -62,9 +61,8 @@ func NewMiddlewares() (*Middlewares, error) { return nil, nil } -func NewMiddlewaresMemory() (*Middlewares, error) { +func NewMiddlewaresMemory(gormDB *gorm.DB) (*Middlewares, error) { wire.Build( - configs.SetupSQliteMemory, setUserRepositoryDependency, setMiddleware, wire.Struct(new(Middlewares), "*"), @@ -72,9 +70,8 @@ func NewMiddlewaresMemory() (*Middlewares, error) { return nil, nil } -func NewAdvanceHandlers() (*AdvanceHandlers, error) { +func NewAdvanceHandlers(gormDB *gorm.DB) (*AdvanceHandlers, error) { wire.Build( - configs.SetupSQlite, setBidRepositoryDependency, setUserRepositoryDependency, setAuctionRepositoryDependency, @@ -85,9 +82,8 @@ func NewAdvanceHandlers() (*AdvanceHandlers, error) { return nil, nil } -func NewAdvanceHandlersMemory() (*AdvanceHandlers, error) { +func NewAdvanceHandlersMemory(gormDB *gorm.DB) (*AdvanceHandlers, error) { wire.Build( - configs.SetupSQliteMemory, setBidRepositoryDependency, setUserRepositoryDependency, setAuctionRepositoryDependency, @@ -98,9 +94,8 @@ func NewAdvanceHandlersMemory() (*AdvanceHandlers, error) { return nil, nil } -func NewInspectHandlers() (*InspectHandlers, error) { +func NewInspectHandlers(gormDB *gorm.DB) (*InspectHandlers, error) { wire.Build( - configs.SetupSQlite, setBidRepositoryDependency, setUserRepositoryDependency, setAuctionRepositoryDependency, @@ -111,9 +106,8 @@ func NewInspectHandlers() (*InspectHandlers, error) { return nil, nil } -func NewInspectHandlersMemory() (*InspectHandlers, error) { +func NewInspectHandlersMemory(gormDB *gorm.DB) (*InspectHandlers, error) { wire.Build( - configs.SetupSQliteMemory, setBidRepositoryDependency, setUserRepositoryDependency, setAuctionRepositoryDependency, diff --git a/cmd/dapp/wire_gen.go b/cmd/dapp/wire_gen.go index 9153769..28b8164 100644 --- a/cmd/dapp/wire_gen.go +++ b/cmd/dapp/wire_gen.go @@ -8,21 +8,17 @@ package main import ( "github.com/google/wire" - "github.com/tribeshq/tribes/configs" "github.com/tribeshq/tribes/internal/domain/entity" "github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler" "github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler" "github.com/tribeshq/tribes/internal/infra/cartesi/middleware" "github.com/tribeshq/tribes/internal/infra/repository" + "gorm.io/gorm" ) // Injectors from wire.go: -func NewMiddlewares() (*Middlewares, error) { - gormDB, err := configs.SetupSQlite() - if err != nil { - return nil, err - } +func NewMiddlewares(gormDB *gorm.DB) (*Middlewares, error) { userRepositorySqlite := db.NewUserRepositorySqlite(gormDB) tlsnMiddleware := middleware.NewTLSNMiddleware(userRepositorySqlite) rbacMiddleware := middleware.NewRBACMiddleware(userRepositorySqlite) @@ -33,11 +29,7 @@ func NewMiddlewares() (*Middlewares, error) { return middlewares, nil } -func NewMiddlewaresMemory() (*Middlewares, error) { - gormDB, err := configs.SetupSQliteMemory() - if err != nil { - return nil, err - } +func NewMiddlewaresMemory(gormDB *gorm.DB) (*Middlewares, error) { userRepositorySqlite := db.NewUserRepositorySqlite(gormDB) tlsnMiddleware := middleware.NewTLSNMiddleware(userRepositorySqlite) rbacMiddleware := middleware.NewRBACMiddleware(userRepositorySqlite) @@ -48,11 +40,7 @@ func NewMiddlewaresMemory() (*Middlewares, error) { return middlewares, nil } -func NewAdvanceHandlers() (*AdvanceHandlers, error) { - gormDB, err := configs.SetupSQlite() - if err != nil { - return nil, err - } +func NewAdvanceHandlers(gormDB *gorm.DB) (*AdvanceHandlers, error) { bidRepositorySqlite := db.NewBidRepositorySqlite(gormDB) userRepositorySqlite := db.NewUserRepositorySqlite(gormDB) contractRepositorySqlite := db.NewContractRepositorySqlite(gormDB) @@ -70,11 +58,7 @@ func NewAdvanceHandlers() (*AdvanceHandlers, error) { return advanceHandlers, nil } -func NewAdvanceHandlersMemory() (*AdvanceHandlers, error) { - gormDB, err := configs.SetupSQliteMemory() - if err != nil { - return nil, err - } +func NewAdvanceHandlersMemory(gormDB *gorm.DB) (*AdvanceHandlers, error) { bidRepositorySqlite := db.NewBidRepositorySqlite(gormDB) userRepositorySqlite := db.NewUserRepositorySqlite(gormDB) contractRepositorySqlite := db.NewContractRepositorySqlite(gormDB) @@ -92,11 +76,7 @@ func NewAdvanceHandlersMemory() (*AdvanceHandlers, error) { return advanceHandlers, nil } -func NewInspectHandlers() (*InspectHandlers, error) { - gormDB, err := configs.SetupSQlite() - if err != nil { - return nil, err - } +func NewInspectHandlers(gormDB *gorm.DB) (*InspectHandlers, error) { bidRepositorySqlite := db.NewBidRepositorySqlite(gormDB) bidInspectHandlers := inspect_handler.NewBidInspectHandlers(bidRepositorySqlite) userRepositorySqlite := db.NewUserRepositorySqlite(gormDB) @@ -114,11 +94,7 @@ func NewInspectHandlers() (*InspectHandlers, error) { return inspectHandlers, nil } -func NewInspectHandlersMemory() (*InspectHandlers, error) { - gormDB, err := configs.SetupSQliteMemory() - if err != nil { - return nil, err - } +func NewInspectHandlersMemory(gormDB *gorm.DB) (*InspectHandlers, error) { bidRepositorySqlite := db.NewBidRepositorySqlite(gormDB) bidInspectHandlers := inspect_handler.NewBidInspectHandlers(bidRepositorySqlite) userRepositorySqlite := db.NewUserRepositorySqlite(gormDB) diff --git a/configs/sqlite.go b/configs/sqlite.go index 2127852..6df9fcd 100644 --- a/configs/sqlite.go +++ b/configs/sqlite.go @@ -4,7 +4,6 @@ import ( "fmt" "log" "os" - "sync" "time" "github.com/ethereum/go-ethereum/common" @@ -15,19 +14,7 @@ import ( "gorm.io/gorm/logger" ) -var setupDbOnce = sync.OnceValues(setupSQlite) - func SetupSQlite() (*gorm.DB, error) { - return setupDbOnce() -} - -var setupOnceMemory = sync.OnceValues(setupSQliteMemory) - -func SetupSQliteMemory() (*gorm.DB, error) { - return setupOnceMemory() -} - -func setupSQlite() (*gorm.DB, error) { logger := logger.New( log.New(os.Stdout, "\r\n", log.LstdFlags), // io writer logger.Config{ @@ -52,12 +39,14 @@ func setupSQlite() (*gorm.DB, error) { db.Create(&entity.User{ Role: "admin", + Username: "admin", Address: custom_type.NewAddress(common.HexToAddress("0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266")), CreatedAt: 0, }) db.Create(&entity.User{ Role: "auctioneer", + Username: "auctioneer", Address: custom_type.NewAddress(common.HexToAddress("0xf49Fc2E6478982F125c0F38d38f67B32772604B4")), CreatedAt: 0, }) @@ -68,7 +57,7 @@ func setupSQlite() (*gorm.DB, error) { return db, nil } -func setupSQliteMemory() (*gorm.DB, error) { +func SetupSQliteMemory() (*gorm.DB, error) { logger := logger.New( log.New(os.Stdout, "\r\n", log.LstdFlags), // io writer logger.Config{ @@ -93,12 +82,14 @@ func setupSQliteMemory() (*gorm.DB, error) { db.Create(&entity.User{ Role: "admin", + Username: "admin", Address: custom_type.NewAddress(common.HexToAddress("0x0142f501EE21f4446009C3505c51d0043feC5c68")), CreatedAt: 0, }) db.Create(&entity.User{ Role: "auctioneer", + Username: "auctioneer", Address: custom_type.NewAddress(common.HexToAddress("0xf49Fc2E6478982F125c0F38d38f67B32772604B4")), CreatedAt: 0, }) diff --git a/coverage.md b/coverage.md index ec8d2dd..834d141 100644 --- a/coverage.md +++ b/coverage.md @@ -1,225 +1,317 @@ mode: set -github.com/tribeshq/tribes/cmd/dapp/dapp.go:8.31,11.16 2 0 -github.com/tribeshq/tribes/cmd/dapp/dapp.go:11.16,13.3 1 0 -github.com/tribeshq/tribes/cmd/dapp/dapp.go:15.2,16.16 2 0 -github.com/tribeshq/tribes/cmd/dapp/dapp.go:16.16,18.3 1 0 -github.com/tribeshq/tribes/cmd/dapp/dapp.go:20.2,21.16 2 0 -github.com/tribeshq/tribes/cmd/dapp/dapp.go:21.16,23.3 1 0 -github.com/tribeshq/tribes/cmd/dapp/dapp.go:26.2,75.12 34 0 -github.com/tribeshq/tribes/cmd/dapp/dapp.go:78.37,81.16 2 1 -github.com/tribeshq/tribes/cmd/dapp/dapp.go:81.16,83.3 1 0 -github.com/tribeshq/tribes/cmd/dapp/dapp.go:85.2,86.16 2 1 -github.com/tribeshq/tribes/cmd/dapp/dapp.go:86.16,88.3 1 0 -github.com/tribeshq/tribes/cmd/dapp/dapp.go:90.2,91.16 2 1 -github.com/tribeshq/tribes/cmd/dapp/dapp.go:91.16,93.3 1 0 -github.com/tribeshq/tribes/cmd/dapp/dapp.go:96.2,144.12 34 1 -github.com/tribeshq/tribes/cmd/dapp/main.go:9.13,18.16 6 0 -github.com/tribeshq/tribes/cmd/dapp/main.go:18.16,20.3 1 0 -github.com/tribeshq/tribes/cmd/dapp/wire_gen.go:21.45,23.16 2 0 -github.com/tribeshq/tribes/cmd/dapp/wire_gen.go:23.16,25.3 1 0 -github.com/tribeshq/tribes/cmd/dapp/wire_gen.go:26.2,31.25 4 0 -github.com/tribeshq/tribes/cmd/dapp/wire_gen.go:34.51,36.16 2 1 -github.com/tribeshq/tribes/cmd/dapp/wire_gen.go:36.16,38.3 1 0 -github.com/tribeshq/tribes/cmd/dapp/wire_gen.go:39.2,44.25 4 1 -github.com/tribeshq/tribes/cmd/dapp/wire_gen.go:47.53,49.16 2 0 -github.com/tribeshq/tribes/cmd/dapp/wire_gen.go:49.16,51.3 1 0 -github.com/tribeshq/tribes/cmd/dapp/wire_gen.go:52.2,72.29 14 0 -github.com/tribeshq/tribes/cmd/dapp/wire_gen.go:75.59,77.16 2 1 -github.com/tribeshq/tribes/cmd/dapp/wire_gen.go:77.16,79.3 1 0 -github.com/tribeshq/tribes/cmd/dapp/wire_gen.go:80.2,100.29 14 1 -github.com/tribeshq/tribes/cmd/dapp/wire_gen.go:103.53,105.16 2 0 -github.com/tribeshq/tribes/cmd/dapp/wire_gen.go:105.16,107.3 1 0 -github.com/tribeshq/tribes/cmd/dapp/wire_gen.go:108.2,128.29 14 0 -github.com/tribeshq/tribes/cmd/dapp/wire_gen.go:131.59,133.16 2 1 -github.com/tribeshq/tribes/cmd/dapp/wire_gen.go:133.16,135.3 1 0 -github.com/tribeshq/tribes/cmd/dapp/wire_gen.go:136.2,156.29 14 1 github.com/tribeshq/tribes/configs/sqlite.go:17.38,30.16 3 0 github.com/tribeshq/tribes/configs/sqlite.go:30.16,32.3 1 0 -github.com/tribeshq/tribes/configs/sqlite.go:33.2,54.16 4 0 -github.com/tribeshq/tribes/configs/sqlite.go:54.16,56.3 1 0 -github.com/tribeshq/tribes/configs/sqlite.go:57.2,57.16 1 0 -github.com/tribeshq/tribes/configs/sqlite.go:60.44,73.16 3 1 -github.com/tribeshq/tribes/configs/sqlite.go:73.16,75.3 1 0 -github.com/tribeshq/tribes/configs/sqlite.go:76.2,97.16 4 1 -github.com/tribeshq/tribes/configs/sqlite.go:97.16,99.3 1 0 -github.com/tribeshq/tribes/configs/sqlite.go:100.2,100.16 1 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:29.27,37.2 1 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:39.158,41.56 2 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:41.56,43.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:44.2,46.16 3 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:46.16,48.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:49.2,50.16 2 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:50.16,52.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:53.2,54.12 2 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:57.158,60.16 3 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:60.16,62.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:64.2,65.16 2 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:65.16,67.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:69.2,71.16 3 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:71.16,73.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:75.2,77.16 3 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:77.16,79.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:81.2,82.16 2 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:82.16,84.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:86.2,91.16 3 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:91.16,93.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:94.2,94.35 1 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:94.35,95.143 1 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:95.143,97.4 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:100.2,104.16 2 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:104.16,106.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:107.2,107.42 1 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:107.42,108.143 1 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:108.143,110.4 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:113.2,117.16 2 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:117.16,119.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:120.2,120.35 1 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:120.35,121.130 1 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:121.130,123.4 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:126.2,127.119 2 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:127.119,129.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:131.2,132.12 2 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:21.212,28.2 1 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:30.150,31.35 1 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:32.33,34.57 2 1 +github.com/tribeshq/tribes/configs/sqlite.go:33.2,52.16 4 0 +github.com/tribeshq/tribes/configs/sqlite.go:52.16,54.3 1 0 +github.com/tribeshq/tribes/configs/sqlite.go:55.2,55.16 1 0 +github.com/tribeshq/tribes/configs/sqlite.go:58.44,71.16 3 0 +github.com/tribeshq/tribes/configs/sqlite.go:71.16,73.3 1 0 +github.com/tribeshq/tribes/configs/sqlite.go:74.2,95.16 4 0 +github.com/tribeshq/tribes/configs/sqlite.go:95.16,97.3 1 0 +github.com/tribeshq/tribes/configs/sqlite.go:98.2,98.16 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/middleware/rbac.go:19.78,23.2 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/middleware/rbac.go:25.115,26.117 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/middleware/rbac.go:26.117,31.17 3 0 +github.com/tribeshq/tribes/internal/infra/cartesi/middleware/rbac.go:31.17,32.37 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/middleware/rbac.go:32.37,34.5 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/middleware/rbac.go:35.4,35.14 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/middleware/rbac.go:37.3,37.48 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/middleware/rbac.go:37.48,39.4 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/middleware/rbac.go:40.3,40.54 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/middleware/tlsn.go:15.78,19.2 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/middleware/tlsn.go:21.102,22.117 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/middleware/tlsn.go:22.117,27.17 3 0 +github.com/tribeshq/tribes/internal/infra/cartesi/middleware/tlsn.go:27.17,32.4 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/middleware/tlsn.go:37.3,37.54 1 0 +github.com/tribeshq/tribes/internal/domain/entity/auction.go:45.166,54.43 2 1 +github.com/tribeshq/tribes/internal/domain/entity/auction.go:54.43,56.3 1 1 +github.com/tribeshq/tribes/internal/domain/entity/auction.go:57.2,57.21 1 1 +github.com/tribeshq/tribes/internal/domain/entity/auction.go:60.36,61.184 1 1 +github.com/tribeshq/tribes/internal/domain/entity/auction.go:61.184,63.3 1 1 +github.com/tribeshq/tribes/internal/domain/entity/auction.go:64.2,64.12 1 1 +github.com/tribeshq/tribes/internal/domain/entity/bid.go:46.148,55.39 2 1 +github.com/tribeshq/tribes/internal/domain/entity/bid.go:55.39,57.3 1 1 +github.com/tribeshq/tribes/internal/domain/entity/bid.go:58.2,58.17 1 1 +github.com/tribeshq/tribes/internal/domain/entity/bid.go:61.32,62.126 1 1 +github.com/tribeshq/tribes/internal/domain/entity/bid.go:62.126,64.3 1 1 +github.com/tribeshq/tribes/internal/domain/entity/bid.go:65.2,65.12 1 1 +github.com/tribeshq/tribes/internal/domain/entity/contracts.go:31.98,37.44 2 1 +github.com/tribeshq/tribes/internal/domain/entity/contracts.go:37.44,39.3 1 0 +github.com/tribeshq/tribes/internal/domain/entity/contracts.go:40.2,40.22 1 1 +github.com/tribeshq/tribes/internal/domain/entity/contracts.go:43.37,44.63 1 1 +github.com/tribeshq/tribes/internal/domain/entity/contracts.go:44.63,46.3 1 1 +github.com/tribeshq/tribes/internal/domain/entity/contracts.go:47.2,47.12 1 1 +github.com/tribeshq/tribes/internal/domain/entity/user.go:32.106,39.40 2 1 +github.com/tribeshq/tribes/internal/domain/entity/user.go:39.40,41.3 1 1 +github.com/tribeshq/tribes/internal/domain/entity/user.go:42.2,42.18 1 1 +github.com/tribeshq/tribes/internal/domain/entity/user.go:45.33,46.81 1 1 +github.com/tribeshq/tribes/internal/domain/entity/user.go:46.81,48.3 1 1 +github.com/tribeshq/tribes/internal/domain/entity/user.go:49.2,49.12 1 1 +github.com/tribeshq/tribes/pkg/custom_type/address.go:14.47,16.2 1 1 +github.com/tribeshq/tribes/pkg/custom_type/address.go:18.49,19.18 1 0 +github.com/tribeshq/tribes/pkg/custom_type/address.go:19.18,22.3 2 0 +github.com/tribeshq/tribes/pkg/custom_type/address.go:24.2,24.27 1 0 +github.com/tribeshq/tribes/pkg/custom_type/address.go:25.14,26.37 1 0 +github.com/tribeshq/tribes/pkg/custom_type/address.go:27.14,28.39 1 0 +github.com/tribeshq/tribes/pkg/custom_type/address.go:29.10,30.47 1 0 +github.com/tribeshq/tribes/pkg/custom_type/address.go:32.2,32.12 1 0 +github.com/tribeshq/tribes/pkg/custom_type/address.go:35.48,37.2 1 0 +github.com/tribeshq/tribes/pkg/custom_type/address.go:39.48,41.2 1 0 +github.com/tribeshq/tribes/pkg/custom_type/address.go:43.52,45.58 2 0 +github.com/tribeshq/tribes/pkg/custom_type/address.go:45.58,47.3 1 0 +github.com/tribeshq/tribes/pkg/custom_type/address.go:48.2,49.12 2 0 +github.com/tribeshq/tribes/pkg/custom_type/bigint.go:14.39,16.2 1 0 +github.com/tribeshq/tribes/pkg/custom_type/bigint.go:18.48,19.18 1 0 +github.com/tribeshq/tribes/pkg/custom_type/bigint.go:19.18,22.3 2 0 +github.com/tribeshq/tribes/pkg/custom_type/bigint.go:23.2,23.27 1 0 +github.com/tribeshq/tribes/pkg/custom_type/bigint.go:24.13,25.24 1 0 +github.com/tribeshq/tribes/pkg/custom_type/bigint.go:26.14,29.10 3 0 +github.com/tribeshq/tribes/pkg/custom_type/bigint.go:29.10,31.4 1 0 +github.com/tribeshq/tribes/pkg/custom_type/bigint.go:32.10,33.47 1 0 +github.com/tribeshq/tribes/pkg/custom_type/bigint.go:35.2,35.12 1 0 +github.com/tribeshq/tribes/pkg/custom_type/bigint.go:38.47,40.2 1 0 +github.com/tribeshq/tribes/pkg/custom_type/bigint.go:42.47,44.2 1 0 +github.com/tribeshq/tribes/pkg/custom_type/bigint.go:46.51,49.54 3 0 +github.com/tribeshq/tribes/pkg/custom_type/bigint.go:49.54,51.3 1 0 +github.com/tribeshq/tribes/pkg/custom_type/bigint.go:51.8,52.57 1 0 +github.com/tribeshq/tribes/pkg/custom_type/bigint.go:52.57,54.4 1 0 +github.com/tribeshq/tribes/pkg/custom_type/bigint.go:57.2,59.9 3 0 +github.com/tribeshq/tribes/pkg/custom_type/bigint.go:59.9,61.3 1 0 +github.com/tribeshq/tribes/pkg/custom_type/bigint.go:62.2,62.12 1 0 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:12.71,16.2 1 0 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:18.97,20.16 2 0 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:20.16,22.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:23.2,23.19 1 0 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:26.80,29.16 3 0 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:29.16,30.36 1 0 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:30.36,32.4 1 0 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:33.3,33.18 1 0 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:35.2,35.22 1 0 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:38.85,41.16 3 0 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:41.16,43.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:44.2,44.22 1 0 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:47.80,50.16 3 0 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:50.16,52.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:53.2,53.22 1 0 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:56.97,59.16 3 0 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:59.16,60.36 1 0 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:60.36,62.4 1 0 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:63.3,63.18 1 0 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:66.2,72.22 6 0 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:72.22,74.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:75.2,75.22 1 0 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:78.64,80.16 2 0 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:80.16,82.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:83.2,83.12 1 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:14.63,18.2 1 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:20.81,22.16 2 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:22.16,24.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:25.2,25.19 1 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:28.100,31.16 3 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:31.16,33.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:34.2,34.18 1 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:37.73,40.16 3 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:40.16,42.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:43.2,43.18 1 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:46.83,49.16 3 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:49.16,51.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:52.2,52.18 1 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:55.68,58.16 3 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:58.16,60.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:61.2,61.18 1 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:64.81,67.16 3 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:67.16,68.36 1 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:68.36,70.4 1 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:71.3,71.18 1 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:74.2,82.22 8 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:82.22,84.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:85.2,85.19 1 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:88.56,90.22 2 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:90.22,92.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:93.2,93.27 1 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:93.27,95.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:96.2,96.12 1 0 +github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:14.73,18.2 1 0 +github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:20.104,22.16 2 0 +github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:22.16,24.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:25.2,25.22 1 0 +github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:28.83,31.16 3 0 +github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:31.16,33.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:34.2,34.23 1 0 +github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:37.98,40.16 3 0 +github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:40.16,42.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:43.2,43.23 1 0 +github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:46.101,49.16 3 0 +github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:49.16,50.36 1 0 +github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:50.36,52.4 1 0 +github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:53.3,53.18 1 0 +github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:56.2,60.22 4 0 +github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:60.22,62.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:63.2,63.23 1 0 +github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:66.72,68.22 2 0 +github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:68.22,70.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:71.2,71.27 1 0 +github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:71.27,73.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:74.2,74.12 1 0 +github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:15.65,19.2 1 0 +github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:21.85,23.16 2 0 +github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:23.16,25.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:26.2,26.19 1 0 +github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:29.82,32.16 3 0 +github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:32.16,34.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:35.2,35.19 1 0 +github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:38.101,41.16 3 0 +github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:41.16,43.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:44.2,44.19 1 0 +github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:47.71,50.16 3 0 +github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:50.16,52.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:53.2,53.19 1 0 +github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:56.87,58.22 2 0 +github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:58.22,60.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:61.2,61.27 1 0 +github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:61.27,63.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:64.2,64.12 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:27.27,34.2 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:36.158,38.56 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:38.56,40.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:41.2,43.16 3 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:43.16,45.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:46.2,47.16 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:47.16,49.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:50.2,51.12 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:54.158,57.16 3 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:57.16,59.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:61.2,62.16 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:62.16,64.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:66.2,68.16 3 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:68.16,70.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:72.2,74.16 3 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:74.16,76.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:78.2,83.16 3 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:83.16,85.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:86.2,86.35 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:86.35,87.154 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:87.154,89.4 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:92.2,96.16 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:96.16,98.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:99.2,99.42 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:99.42,100.154 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:100.154,102.4 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:105.2,109.16 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:109.16,111.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:112.2,112.35 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:112.35,113.135 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:113.135,115.4 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:118.2,119.119 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:119.119,121.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:123.2,124.12 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:21.212,28.2 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:30.150,31.35 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:32.33,34.57 2 0 github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:34.57,36.4 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:37.3,39.17 3 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:37.3,39.17 3 0 github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:39.17,41.4 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:43.3,45.17 3 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:43.3,45.17 3 0 github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:45.17,47.4 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:49.3,51.17 3 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:51.17,53.4 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:55.3,55.130 1 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:55.130,57.4 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:58.3,59.17 2 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:59.17,61.4 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:62.3,63.13 2 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:64.10,65.48 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:14.104,18.2 1 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:20.160,22.56 2 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:22.56,24.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:25.2,27.16 3 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:27.16,29.3 1 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:30.2,31.16 2 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:31.16,33.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:34.2,35.12 2 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:38.160,40.56 2 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:40.56,42.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:43.2,45.16 3 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:45.16,47.3 1 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:48.2,49.16 2 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:49.16,51.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:52.2,53.12 2 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:56.160,58.56 2 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:58.56,60.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:61.2,63.16 3 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:63.16,65.3 1 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:66.2,67.16 2 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:67.16,69.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:70.2,71.12 2 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/order_advance_handlers.go:27.25,34.2 1 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/order_advance_handlers.go:36.154,37.35 1 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/order_advance_handlers.go:38.33,40.57 2 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/order_advance_handlers.go:40.57,42.4 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/order_advance_handlers.go:43.3,45.17 3 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/order_advance_handlers.go:45.17,47.4 1 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/order_advance_handlers.go:49.3,51.17 3 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/order_advance_handlers.go:51.17,53.4 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/order_advance_handlers.go:55.3,57.17 3 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/order_advance_handlers.go:57.17,59.4 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/order_advance_handlers.go:62.3,63.128 2 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/order_advance_handlers.go:63.128,65.4 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/order_advance_handlers.go:68.3,69.131 2 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/order_advance_handlers.go:69.131,71.4 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/order_advance_handlers.go:73.3,74.17 2 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/order_advance_handlers.go:74.17,76.4 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/order_advance_handlers.go:77.3,78.13 2 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/order_advance_handlers.go:79.10,80.61 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:27.27,33.2 1 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:35.158,37.56 2 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:37.56,39.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:41.2,43.16 3 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:43.16,45.3 1 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:46.2,47.16 2 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:47.16,49.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:50.2,51.12 2 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:54.158,56.56 2 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:56.56,58.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:59.2,61.16 3 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:61.16,63.3 1 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:64.2,65.16 2 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:65.16,67.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:68.2,69.12 2 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:72.158,74.56 2 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:74.56,76.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:77.2,79.16 3 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:79.16,81.3 1 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:82.2,83.16 2 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:83.16,85.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:86.2,87.12 2 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:90.169,92.56 2 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:92.56,94.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:95.2,97.16 3 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:97.16,99.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:101.2,103.16 3 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:103.16,105.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:107.2,109.16 3 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:109.16,111.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:113.2,113.149 1 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:113.149,115.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:117.2,129.16 3 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:129.16,131.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:132.2,133.16 2 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:133.16,135.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:137.2,139.12 3 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:18.134,23.2 1 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:25.152,27.56 2 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:48.3,50.17 3 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:50.17,52.4 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:54.3,54.135 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:54.135,56.4 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:57.3,58.17 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:58.17,60.4 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:61.3,62.13 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:63.10,64.48 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:15.104,19.2 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:21.160,23.56 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:23.56,25.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:26.2,28.16 3 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:28.16,30.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:31.2,32.16 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:32.16,34.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:35.2,36.12 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:39.160,41.56 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:41.56,43.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:44.2,46.16 3 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:46.16,48.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:49.2,50.16 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:50.16,52.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:53.2,54.12 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:57.160,59.56 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:59.56,61.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:62.2,64.16 3 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:64.16,66.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:67.2,68.16 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:68.16,70.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:71.2,72.12 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:18.134,23.2 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:25.152,27.56 2 0 github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:27.56,29.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:30.2,32.16 3 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:32.16,34.3 1 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:35.2,36.16 2 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:30.2,32.16 3 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:32.16,34.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:35.2,36.16 2 0 github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:36.16,38.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:39.2,40.12 2 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:43.161,45.56 2 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:39.2,40.12 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:43.161,45.56 2 0 github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:45.56,47.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:48.2,50.16 3 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:50.16,52.3 1 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:53.2,54.16 2 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:48.2,50.16 3 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:50.16,52.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:53.2,54.16 2 0 github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:54.16,56.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:57.2,58.12 2 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:61.160,64.16 3 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:57.2,58.12 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:61.150,64.16 3 0 github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:64.16,66.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:67.2,68.35 2 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:68.35,70.3 1 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:71.2,72.16 2 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:67.2,68.35 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:68.35,70.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:71.2,72.16 2 0 github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:72.16,74.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:75.2,76.12 2 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:79.154,82.16 3 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:75.2,76.12 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:79.146,82.16 3 0 github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:82.16,84.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:85.2,86.29 2 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:86.29,88.3 1 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:89.2,90.16 2 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:90.16,92.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:93.2,94.12 2 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:18.100,22.2 1 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:24.116,27.16 3 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:85.2,86.16 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:86.16,88.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:89.2,90.35 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:90.35,92.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:94.2,94.122 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:94.122,96.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:98.2,99.16 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:99.16,101.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:102.2,103.12 2 0 +github.com/tribeshq/tribes/internal/usecase/contract_usecase/create_contract.go:25.100,29.2 1 0 +github.com/tribeshq/tribes/internal/usecase/contract_usecase/create_contract.go:31.137,33.16 2 0 +github.com/tribeshq/tribes/internal/usecase/contract_usecase/create_contract.go:33.16,35.3 1 0 +github.com/tribeshq/tribes/internal/usecase/contract_usecase/create_contract.go:36.2,37.16 2 0 +github.com/tribeshq/tribes/internal/usecase/contract_usecase/create_contract.go:37.16,39.3 1 0 +github.com/tribeshq/tribes/internal/usecase/contract_usecase/create_contract.go:40.2,46.20 2 0 +github.com/tribeshq/tribes/internal/usecase/contract_usecase/delete_contract.go:13.100,17.2 1 0 +github.com/tribeshq/tribes/internal/usecase/contract_usecase/delete_contract.go:19.78,21.2 1 0 +github.com/tribeshq/tribes/internal/usecase/contract_usecase/find_all_contracts.go:11.104,15.2 1 0 +github.com/tribeshq/tribes/internal/usecase/contract_usecase/find_all_contracts.go:17.80,19.16 2 0 +github.com/tribeshq/tribes/internal/usecase/contract_usecase/find_all_contracts.go:19.16,21.3 1 0 +github.com/tribeshq/tribes/internal/usecase/contract_usecase/find_all_contracts.go:22.2,23.31 2 0 +github.com/tribeshq/tribes/internal/usecase/contract_usecase/find_all_contracts.go:23.31,32.3 2 0 +github.com/tribeshq/tribes/internal/usecase/contract_usecase/find_all_contracts.go:33.2,33.20 1 0 +github.com/tribeshq/tribes/internal/usecase/contract_usecase/find_contract_by_symbol.go:15.112,19.2 1 0 +github.com/tribeshq/tribes/internal/usecase/contract_usecase/find_contract_by_symbol.go:21.116,23.16 2 0 +github.com/tribeshq/tribes/internal/usecase/contract_usecase/find_contract_by_symbol.go:23.16,25.3 1 0 +github.com/tribeshq/tribes/internal/usecase/contract_usecase/find_contract_by_symbol.go:26.2,32.8 1 0 +github.com/tribeshq/tribes/internal/usecase/contract_usecase/update_contract.go:28.100,32.2 1 0 +github.com/tribeshq/tribes/internal/usecase/contract_usecase/update_contract.go:34.137,41.16 2 0 +github.com/tribeshq/tribes/internal/usecase/contract_usecase/update_contract.go:41.16,43.3 1 0 +github.com/tribeshq/tribes/internal/usecase/contract_usecase/update_contract.go:44.2,50.8 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:19.100,23.2 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:25.114,27.16 2 0 github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:27.16,29.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:30.2,31.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:31.16,33.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:34.2,35.12 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:38.114,40.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:40.16,42.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:43.2,47.16 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:47.16,49.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:50.2,51.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:51.16,53.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:54.2,55.12 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:58.114,61.16 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:61.16,63.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:64.2,65.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:65.16,67.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:68.2,69.12 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:19.84,23.2 1 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:30.2,34.16 3 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:34.16,36.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:37.2,38.16 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:38.16,40.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:41.2,42.12 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:45.114,48.16 3 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:48.16,50.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:51.2,52.16 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:52.16,54.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:55.2,56.12 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:19.84,23.2 1 0 github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:25.106,27.16 2 0 github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:27.16,29.3 1 0 github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:30.2,34.16 3 0 @@ -239,7 +331,7 @@ github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_in github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:71.2,72.16 2 0 github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:72.16,74.3 1 0 github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:75.2,76.12 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/contract_inspect_handler.go:19.104,23.2 1 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/contract_inspect_handler.go:19.104,23.2 1 0 github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/contract_inspect_handler.go:25.116,28.16 3 0 github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/contract_inspect_handler.go:28.16,30.3 1 0 github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/contract_inspect_handler.go:31.2,32.16 2 0 @@ -250,38 +342,7 @@ github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/contra github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/contract_inspect_handler.go:48.2,49.16 2 0 github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/contract_inspect_handler.go:49.16,51.3 1 0 github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/contract_inspect_handler.go:52.2,53.12 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/order_inspect_handlers.go:20.92,24.2 1 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/order_inspect_handlers.go:26.110,29.16 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/order_inspect_handlers.go:29.16,31.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/order_inspect_handlers.go:32.2,33.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/order_inspect_handlers.go:33.16,35.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/order_inspect_handlers.go:36.2,37.12 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/order_inspect_handlers.go:40.110,42.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/order_inspect_handlers.go:42.16,44.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/order_inspect_handlers.go:45.2,49.16 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/order_inspect_handlers.go:49.16,51.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/order_inspect_handlers.go:52.2,53.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/order_inspect_handlers.go:53.16,55.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/order_inspect_handlers.go:56.2,57.12 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/order_inspect_handlers.go:60.113,66.16 4 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/order_inspect_handlers.go:66.16,68.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/order_inspect_handlers.go:69.2,70.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/order_inspect_handlers.go:70.16,72.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/order_inspect_handlers.go:73.2,74.12 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/station_inspect_handlers.go:18.100,22.2 1 1 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/station_inspect_handlers.go:24.114,26.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/station_inspect_handlers.go:26.16,28.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/station_inspect_handlers.go:29.2,33.16 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/station_inspect_handlers.go:33.16,35.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/station_inspect_handlers.go:36.2,37.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/station_inspect_handlers.go:37.16,39.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/station_inspect_handlers.go:40.2,41.12 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/station_inspect_handlers.go:44.114,47.16 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/station_inspect_handlers.go:47.16,49.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/station_inspect_handlers.go:50.2,51.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/station_inspect_handlers.go:51.16,53.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/station_inspect_handlers.go:54.2,55.12 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/user_inspect_handlers.go:23.134,28.2 1 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/user_inspect_handlers.go:23.134,28.2 1 0 github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/user_inspect_handlers.go:30.113,36.16 4 0 github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/user_inspect_handlers.go:36.16,38.3 1 0 github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/user_inspect_handlers.go:39.2,40.16 2 0 @@ -297,453 +358,49 @@ github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/user_i github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/user_inspect_handlers.go:69.2,70.16 2 0 github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/user_inspect_handlers.go:70.16,72.3 1 0 github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/user_inspect_handlers.go:73.2,74.12 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/middleware/rbac.go:19.78,23.2 1 1 -github.com/tribeshq/tribes/internal/infra/cartesi/middleware/rbac.go:25.115,26.117 1 1 -github.com/tribeshq/tribes/internal/infra/cartesi/middleware/rbac.go:26.117,31.17 3 1 -github.com/tribeshq/tribes/internal/infra/cartesi/middleware/rbac.go:31.17,32.37 1 1 -github.com/tribeshq/tribes/internal/infra/cartesi/middleware/rbac.go:32.37,34.5 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/middleware/rbac.go:35.4,35.14 1 1 -github.com/tribeshq/tribes/internal/infra/cartesi/middleware/rbac.go:37.3,37.24 1 1 -github.com/tribeshq/tribes/internal/infra/cartesi/middleware/rbac.go:37.24,39.4 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/middleware/rbac.go:40.3,40.54 1 1 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:12.71,16.2 1 1 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:18.97,20.16 2 1 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:20.16,22.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:23.2,23.19 1 1 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:26.80,29.16 3 1 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:29.16,30.36 1 0 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:30.36,32.4 1 0 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:33.3,33.18 1 0 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:35.2,35.22 1 1 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:38.85,41.16 3 0 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:41.16,43.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:44.2,44.22 1 0 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:47.80,50.16 3 0 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:50.16,52.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:53.2,53.22 1 0 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:56.97,59.16 3 1 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:59.16,60.36 1 0 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:60.36,62.4 1 0 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:63.3,63.18 1 0 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:66.2,72.22 6 1 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:72.22,74.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:75.2,75.22 1 1 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:78.64,80.16 2 0 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:80.16,82.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:83.2,83.12 1 0 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:14.63,18.2 1 1 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:20.81,22.16 2 1 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:22.16,24.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:25.2,25.19 1 1 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:28.100,31.16 3 1 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:31.16,33.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:34.2,34.18 1 1 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:37.73,40.16 3 0 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:40.16,42.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:43.2,43.18 1 0 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:46.83,49.16 3 1 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:49.16,51.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:52.2,52.18 1 1 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:55.68,58.16 3 0 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:58.16,60.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:61.2,61.18 1 0 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:64.81,67.16 3 1 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:67.16,68.36 1 0 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:68.36,70.4 1 0 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:71.3,71.18 1 0 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:74.2,82.22 8 1 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:82.22,84.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:85.2,85.19 1 1 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:88.56,90.22 2 1 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:90.22,92.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:93.2,93.27 1 1 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:93.27,95.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:96.2,96.12 1 1 -github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:14.73,18.2 1 1 -github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:20.104,22.16 2 1 -github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:22.16,24.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:25.2,25.22 1 1 -github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:28.83,31.16 3 0 -github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:31.16,33.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:34.2,34.23 1 0 -github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:37.98,40.16 3 1 -github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:40.16,42.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:43.2,43.23 1 1 -github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:46.101,49.16 3 1 -github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:49.16,50.36 1 1 -github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:50.36,52.4 1 1 -github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:53.3,53.18 1 0 -github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:56.2,60.22 4 1 -github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:60.22,62.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:63.2,63.23 1 1 -github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:66.72,68.22 2 1 -github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:68.22,70.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:71.2,71.27 1 1 -github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:71.27,73.3 1 1 -github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:74.2,74.12 1 1 -github.com/tribeshq/tribes/internal/infra/repository/order_repository_sqlite.go:15.67,19.2 1 1 -github.com/tribeshq/tribes/internal/infra/repository/order_repository_sqlite.go:21.89,23.16 2 1 -github.com/tribeshq/tribes/internal/infra/repository/order_repository_sqlite.go:23.16,25.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/order_repository_sqlite.go:26.2,26.19 1 1 -github.com/tribeshq/tribes/internal/infra/repository/order_repository_sqlite.go:29.102,32.16 3 1 -github.com/tribeshq/tribes/internal/infra/repository/order_repository_sqlite.go:32.16,34.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/order_repository_sqlite.go:35.2,35.20 1 1 -github.com/tribeshq/tribes/internal/infra/repository/order_repository_sqlite.go:38.74,41.16 3 0 -github.com/tribeshq/tribes/internal/infra/repository/order_repository_sqlite.go:41.16,43.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/order_repository_sqlite.go:44.2,44.20 1 0 -github.com/tribeshq/tribes/internal/infra/repository/order_repository_sqlite.go:47.79,50.16 3 0 -github.com/tribeshq/tribes/internal/infra/repository/order_repository_sqlite.go:50.16,52.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/order_repository_sqlite.go:53.2,53.20 1 0 -github.com/tribeshq/tribes/internal/infra/repository/order_repository_sqlite.go:56.102,59.16 3 0 -github.com/tribeshq/tribes/internal/infra/repository/order_repository_sqlite.go:59.16,61.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/order_repository_sqlite.go:62.2,62.20 1 0 -github.com/tribeshq/tribes/internal/infra/repository/order_repository_sqlite.go:65.60,67.22 2 0 -github.com/tribeshq/tribes/internal/infra/repository/order_repository_sqlite.go:67.22,69.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/order_repository_sqlite.go:70.2,70.27 1 0 -github.com/tribeshq/tribes/internal/infra/repository/order_repository_sqlite.go:70.27,72.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/order_repository_sqlite.go:73.2,73.12 1 0 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:14.71,18.2 1 1 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:20.97,22.16 2 1 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:22.16,24.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:25.2,25.19 1 1 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:28.85,30.83 2 1 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:30.83,31.36 1 0 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:31.36,33.4 1 0 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:34.3,34.18 1 0 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:36.2,36.22 1 1 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:39.80,42.16 3 0 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:42.16,44.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:45.2,45.22 1 0 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:48.97,51.16 3 1 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:51.16,52.36 1 1 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:52.36,54.4 1 1 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:55.3,55.66 1 0 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:58.2,67.22 9 1 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:67.22,69.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:70.2,70.22 1 1 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:73.64,75.22 2 1 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:75.22,77.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:78.2,78.27 1 1 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:78.27,80.3 1 1 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:81.2,81.12 1 1 -github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:14.65,18.2 1 1 -github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:20.85,22.16 2 1 -github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:22.16,24.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:25.2,25.19 1 1 -github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:28.82,31.16 3 1 -github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:31.16,33.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:34.2,34.19 1 1 -github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:37.101,40.16 3 1 -github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:40.16,42.3 1 1 -github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:43.2,43.19 1 1 -github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:46.71,49.16 3 0 -github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:49.16,51.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:52.2,52.19 1 0 -github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:55.87,57.22 2 1 -github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:57.22,59.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:60.2,60.27 1 1 -github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:60.27,62.3 1 1 -github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:63.2,63.12 1 1 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/create_auction.go:33.135,38.2 1 1 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/create_auction.go:40.134,42.16 2 1 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/create_auction.go:42.16,44.3 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/create_auction.go:45.2,45.22 1 1 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/create_auction.go:45.22,47.3 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/create_auction.go:49.2,50.31 2 1 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/create_auction.go:50.31,52.3 1 1 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/create_auction.go:54.2,54.37 1 1 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/create_auction.go:54.37,56.3 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/create_auction.go:58.2,59.16 2 1 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/create_auction.go:59.16,61.3 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/create_auction.go:62.2,63.16 2 1 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/create_auction.go:63.16,65.3 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/create_auction.go:66.2,73.8 1 1 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/delete_auction.go:15.96,17.2 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/delete_auction.go:19.76,21.2 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_active_auction.go:11.104,15.2 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_active_auction.go:17.77,19.16 2 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_active_auction.go:19.16,21.3 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_active_auction.go:22.2,23.31 2 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_active_auction.go:23.31,34.3 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_active_auction.go:35.2,44.8 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_all_auctions.go:13.100,15.2 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_all_auctions.go:17.79,19.16 2 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_all_auctions.go:19.16,21.3 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_all_auctions.go:22.2,23.30 2 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_all_auctions.go:23.30,25.36 2 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_all_auctions.go:25.36,36.4 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_all_auctions.go:37.3,46.4 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_all_auctions.go:48.2,48.21 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_auction_by_id.go:15.100,17.2 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_auction_by_id.go:19.105,21.16 2 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_auction_by_id.go:21.16,23.3 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_auction_by_id.go:24.2,25.31 2 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_auction_by_id.go:25.31,36.3 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_auction_by_id.go:37.2,46.8 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:28.132,33.2 1 1 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:35.104,37.16 2 1 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:37.16,39.3 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:41.2,41.55 1 1 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:41.55,43.3 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:45.2,46.16 2 1 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:46.16,48.3 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:50.2,50.20 1 1 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:50.20,52.3 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:54.2,54.39 1 1 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:54.39,56.3 1 1 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:58.2,60.27 2 1 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:60.27,61.43 1 1 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:61.43,65.18 4 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:65.18,67.5 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:68.4,68.12 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:71.3,71.57 1 1 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:71.57,75.18 4 1 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:75.18,77.5 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:78.4,78.75 1 1 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:79.9,90.18 3 1 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:90.18,92.5 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:95.4,104.18 3 1 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:104.18,106.5 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:109.4,110.18 2 1 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:110.18,112.5 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:114.4,114.40 1 1 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:118.2,121.16 4 1 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:121.16,123.3 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:125.2,134.8 1 1 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:30.170,36.2 1 1 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:38.151,40.16 2 1 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:40.16,42.3 1 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:43.2,43.26 1 1 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:43.26,45.3 1 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:47.2,47.55 1 1 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:47.55,49.3 1 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:50.2,51.16 2 1 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:51.16,53.3 1 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:54.2,54.71 1 1 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:54.71,56.3 1 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:58.2,58.65 1 1 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:58.65,60.3 1 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:62.2,63.16 2 1 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:63.16,65.3 1 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:66.2,67.16 2 1 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:67.16,69.3 1 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:71.2,79.8 1 1 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/delete_bid.go:15.80,19.2 1 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/delete_bid.go:21.68,23.2 1 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_all_bids.go:13.84,17.2 1 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_all_bids.go:19.71,21.16 2 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_all_bids.go:21.16,23.3 1 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_all_bids.go:24.2,25.26 2 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_all_bids.go:25.26,36.3 1 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_all_bids.go:37.2,37.21 1 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_bid_by_id.go:15.84,19.2 1 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_bid_by_id.go:21.93,23.16 2 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_bid_by_id.go:23.16,25.3 1 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_bid_by_id.go:26.2,35.8 1 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_bids_by_auction_id.go:17.100,21.2 1 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_bids_by_auction_id.go:23.121,25.16 2 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_bids_by_auction_id.go:25.16,27.3 1 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_bids_by_auction_id.go:28.2,29.26 2 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_bids_by_auction_id.go:29.26,40.3 1 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_bids_by_auction_id.go:41.2,41.21 1 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_bids_by_state.go:18.92,22.2 1 1 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_bids_by_state.go:24.108,26.16 2 1 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_bids_by_state.go:26.16,28.3 1 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_bids_by_state.go:29.2,30.26 2 1 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_bids_by_state.go:30.26,41.3 1 1 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_bids_by_state.go:42.2,42.20 1 1 -github.com/tribeshq/tribes/internal/usecase/contract_usecase/create_contract.go:25.100,29.2 1 1 -github.com/tribeshq/tribes/internal/usecase/contract_usecase/create_contract.go:31.137,33.16 2 1 -github.com/tribeshq/tribes/internal/usecase/contract_usecase/create_contract.go:33.16,35.3 1 1 -github.com/tribeshq/tribes/internal/usecase/contract_usecase/create_contract.go:36.2,37.16 2 1 -github.com/tribeshq/tribes/internal/usecase/contract_usecase/create_contract.go:37.16,39.3 1 0 -github.com/tribeshq/tribes/internal/usecase/contract_usecase/create_contract.go:40.2,46.20 2 1 -github.com/tribeshq/tribes/internal/usecase/contract_usecase/delete_contract.go:13.100,17.2 1 1 -github.com/tribeshq/tribes/internal/usecase/contract_usecase/delete_contract.go:19.78,21.2 1 1 -github.com/tribeshq/tribes/internal/usecase/contract_usecase/find_all_contracts.go:11.104,15.2 1 0 -github.com/tribeshq/tribes/internal/usecase/contract_usecase/find_all_contracts.go:17.80,19.16 2 0 -github.com/tribeshq/tribes/internal/usecase/contract_usecase/find_all_contracts.go:19.16,21.3 1 0 -github.com/tribeshq/tribes/internal/usecase/contract_usecase/find_all_contracts.go:22.2,23.31 2 0 -github.com/tribeshq/tribes/internal/usecase/contract_usecase/find_all_contracts.go:23.31,32.3 2 0 -github.com/tribeshq/tribes/internal/usecase/contract_usecase/find_all_contracts.go:33.2,33.20 1 0 -github.com/tribeshq/tribes/internal/usecase/contract_usecase/find_contract_by_symbol.go:15.112,19.2 1 1 -github.com/tribeshq/tribes/internal/usecase/contract_usecase/find_contract_by_symbol.go:21.116,23.16 2 1 -github.com/tribeshq/tribes/internal/usecase/contract_usecase/find_contract_by_symbol.go:23.16,25.3 1 0 -github.com/tribeshq/tribes/internal/usecase/contract_usecase/find_contract_by_symbol.go:26.2,32.8 1 1 -github.com/tribeshq/tribes/internal/usecase/contract_usecase/update_contract.go:28.100,32.2 1 1 -github.com/tribeshq/tribes/internal/usecase/contract_usecase/update_contract.go:34.137,41.16 2 1 -github.com/tribeshq/tribes/internal/usecase/contract_usecase/update_contract.go:41.16,43.3 1 1 -github.com/tribeshq/tribes/internal/usecase/contract_usecase/update_contract.go:44.2,50.8 1 1 -github.com/tribeshq/tribes/internal/usecase/order_usecase/create_order.go:31.178,37.2 1 1 -github.com/tribeshq/tribes/internal/usecase/order_usecase/create_order.go:39.157,41.16 2 1 -github.com/tribeshq/tribes/internal/usecase/order_usecase/create_order.go:41.16,43.3 1 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/create_order.go:44.2,44.77 1 1 -github.com/tribeshq/tribes/internal/usecase/order_usecase/create_order.go:44.77,46.3 1 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/create_order.go:48.2,49.16 2 1 -github.com/tribeshq/tribes/internal/usecase/order_usecase/create_order.go:49.16,51.3 1 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/create_order.go:53.2,56.16 3 1 -github.com/tribeshq/tribes/internal/usecase/order_usecase/create_order.go:56.16,58.3 1 1 -github.com/tribeshq/tribes/internal/usecase/order_usecase/create_order.go:59.2,60.16 2 1 -github.com/tribeshq/tribes/internal/usecase/order_usecase/create_order.go:60.16,62.3 1 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/create_order.go:64.2,65.16 2 1 -github.com/tribeshq/tribes/internal/usecase/order_usecase/create_order.go:65.16,67.3 1 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/create_order.go:69.2,82.16 3 1 -github.com/tribeshq/tribes/internal/usecase/order_usecase/create_order.go:82.16,84.3 1 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/create_order.go:86.2,94.8 1 1 -github.com/tribeshq/tribes/internal/usecase/order_usecase/delete_order.go:15.88,19.2 1 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/delete_order.go:21.72,23.2 1 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/find_all_orders.go:13.90,17.2 1 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/find_all_orders.go:19.73,21.16 2 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/find_all_orders.go:21.16,23.3 1 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/find_all_orders.go:24.2,25.28 2 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/find_all_orders.go:25.28,35.3 1 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/find_all_orders.go:36.2,36.20 1 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/find_order_by_id.go:15.92,19.2 1 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/find_order_by_id.go:21.99,23.16 2 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/find_order_by_id.go:23.16,25.3 1 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/find_order_by_id.go:26.2,34.8 1 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/find_orders_by_user.go:19.98,23.2 1 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/find_orders_by_user.go:25.109,27.16 2 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/find_orders_by_user.go:27.16,29.3 1 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/find_orders_by_user.go:30.2,31.28 2 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/find_orders_by_user.go:31.28,41.3 1 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/find_orders_by_user.go:42.2,42.20 1 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/create_station.go:32.96,36.2 1 1 -github.com/tribeshq/tribes/internal/usecase/station_usecase/create_station.go:38.134,40.16 2 1 -github.com/tribeshq/tribes/internal/usecase/station_usecase/create_station.go:40.16,42.3 1 1 -github.com/tribeshq/tribes/internal/usecase/station_usecase/create_station.go:43.2,44.16 2 1 -github.com/tribeshq/tribes/internal/usecase/station_usecase/create_station.go:44.16,46.3 1 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/create_station.go:47.2,56.8 1 1 -github.com/tribeshq/tribes/internal/usecase/station_usecase/delete_station.go:15.96,19.2 1 1 -github.com/tribeshq/tribes/internal/usecase/station_usecase/delete_station.go:21.76,23.2 1 1 -github.com/tribeshq/tribes/internal/usecase/station_usecase/find_all_stations.go:13.100,17.2 1 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/find_all_stations.go:19.77,21.16 2 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/find_all_stations.go:21.16,23.3 1 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/find_all_stations.go:24.2,25.30 2 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/find_all_stations.go:25.30,27.40 2 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/find_all_stations.go:27.40,37.4 1 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/find_all_stations.go:38.3,49.4 1 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/find_all_stations.go:51.2,51.20 1 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/find_station_by_id.go:15.100,19.2 1 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/find_station_by_id.go:21.105,23.16 2 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/find_station_by_id.go:23.16,25.3 1 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/find_station_by_id.go:26.2,27.35 2 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/find_station_by_id.go:27.35,37.3 1 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/find_station_by_id.go:38.2,49.8 1 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/offset_station_consumption.go:32.118,36.2 1 1 -github.com/tribeshq/tribes/internal/usecase/station_usecase/offset_station_consumption.go:38.167,40.16 2 1 -github.com/tribeshq/tribes/internal/usecase/station_usecase/offset_station_consumption.go:40.16,42.3 1 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/offset_station_consumption.go:43.2,43.49 1 1 -github.com/tribeshq/tribes/internal/usecase/station_usecase/offset_station_consumption.go:43.49,45.3 1 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/offset_station_consumption.go:47.2,48.44 2 1 -github.com/tribeshq/tribes/internal/usecase/station_usecase/offset_station_consumption.go:48.44,50.3 1 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/offset_station_consumption.go:52.2,64.16 2 1 -github.com/tribeshq/tribes/internal/usecase/station_usecase/offset_station_consumption.go:64.16,66.3 1 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/offset_station_consumption.go:67.2,76.8 1 1 -github.com/tribeshq/tribes/internal/usecase/station_usecase/update_station.go:38.96,42.2 1 1 -github.com/tribeshq/tribes/internal/usecase/station_usecase/update_station.go:44.134,55.16 2 1 -github.com/tribeshq/tribes/internal/usecase/station_usecase/update_station.go:55.16,57.3 1 1 -github.com/tribeshq/tribes/internal/usecase/station_usecase/update_station.go:58.2,68.8 1 1 -github.com/tribeshq/tribes/internal/usecase/user_usecase/create_user.go:25.84,29.2 1 1 -github.com/tribeshq/tribes/internal/usecase/user_usecase/create_user.go:31.125,33.16 2 1 -github.com/tribeshq/tribes/internal/usecase/user_usecase/create_user.go:33.16,35.3 1 1 -github.com/tribeshq/tribes/internal/usecase/user_usecase/create_user.go:36.2,37.16 2 1 -github.com/tribeshq/tribes/internal/usecase/user_usecase/create_user.go:37.16,39.3 1 0 -github.com/tribeshq/tribes/internal/usecase/user_usecase/create_user.go:40.2,45.8 1 1 -github.com/tribeshq/tribes/internal/usecase/user_usecase/delete_user_by_address.go:17.102,21.2 1 1 -github.com/tribeshq/tribes/internal/usecase/user_usecase/delete_user_by_address.go:23.88,25.2 1 1 +github.com/tribeshq/tribes/internal/usecase/user_usecase/create_user.go:27.84,31.2 1 0 +github.com/tribeshq/tribes/internal/usecase/user_usecase/create_user.go:33.125,35.16 2 0 +github.com/tribeshq/tribes/internal/usecase/user_usecase/create_user.go:35.16,37.3 1 0 +github.com/tribeshq/tribes/internal/usecase/user_usecase/create_user.go:38.2,39.16 2 0 +github.com/tribeshq/tribes/internal/usecase/user_usecase/create_user.go:39.16,41.3 1 0 +github.com/tribeshq/tribes/internal/usecase/user_usecase/create_user.go:42.2,48.8 1 0 +github.com/tribeshq/tribes/internal/usecase/user_usecase/delete_user_by_address.go:17.102,21.2 1 0 +github.com/tribeshq/tribes/internal/usecase/user_usecase/delete_user_by_address.go:23.88,25.2 1 0 github.com/tribeshq/tribes/internal/usecase/user_usecase/find_all_users.go:13.88,17.2 1 0 github.com/tribeshq/tribes/internal/usecase/user_usecase/find_all_users.go:19.73,21.16 2 0 github.com/tribeshq/tribes/internal/usecase/user_usecase/find_all_users.go:21.16,23.3 1 0 github.com/tribeshq/tribes/internal/usecase/user_usecase/find_all_users.go:24.2,25.27 2 0 -github.com/tribeshq/tribes/internal/usecase/user_usecase/find_all_users.go:25.27,33.3 1 0 -github.com/tribeshq/tribes/internal/usecase/user_usecase/find_all_users.go:34.2,34.21 1 0 -github.com/tribeshq/tribes/internal/usecase/user_usecase/find_user_by_address.go:16.98,20.2 1 1 -github.com/tribeshq/tribes/internal/usecase/user_usecase/find_user_by_address.go:22.106,24.16 2 1 -github.com/tribeshq/tribes/internal/usecase/user_usecase/find_user_by_address.go:24.16,26.3 1 1 -github.com/tribeshq/tribes/internal/usecase/user_usecase/find_user_by_address.go:27.2,33.8 1 1 -github.com/tribeshq/tribes/internal/usecase/user_usecase/find_user_by_role.go:15.92,19.2 1 1 -github.com/tribeshq/tribes/internal/usecase/user_usecase/find_user_by_role.go:21.100,23.16 2 1 +github.com/tribeshq/tribes/internal/usecase/user_usecase/find_all_users.go:25.27,34.3 1 0 +github.com/tribeshq/tribes/internal/usecase/user_usecase/find_all_users.go:35.2,35.21 1 0 +github.com/tribeshq/tribes/internal/usecase/user_usecase/find_user_by_address.go:16.98,20.2 1 0 +github.com/tribeshq/tribes/internal/usecase/user_usecase/find_user_by_address.go:22.106,24.16 2 0 +github.com/tribeshq/tribes/internal/usecase/user_usecase/find_user_by_address.go:24.16,26.3 1 0 +github.com/tribeshq/tribes/internal/usecase/user_usecase/find_user_by_address.go:27.2,34.8 1 0 +github.com/tribeshq/tribes/internal/usecase/user_usecase/find_user_by_role.go:15.92,19.2 1 0 +github.com/tribeshq/tribes/internal/usecase/user_usecase/find_user_by_role.go:21.100,23.16 2 0 github.com/tribeshq/tribes/internal/usecase/user_usecase/find_user_by_role.go:23.16,25.3 1 0 -github.com/tribeshq/tribes/internal/usecase/user_usecase/find_user_by_role.go:26.2,32.8 1 1 -github.com/tribeshq/tribes/pkg/custom_type/address.go:14.47,16.2 1 1 -github.com/tribeshq/tribes/pkg/custom_type/address.go:18.49,19.18 1 1 -github.com/tribeshq/tribes/pkg/custom_type/address.go:19.18,22.3 2 0 -github.com/tribeshq/tribes/pkg/custom_type/address.go:24.2,24.27 1 1 -github.com/tribeshq/tribes/pkg/custom_type/address.go:25.14,26.37 1 1 -github.com/tribeshq/tribes/pkg/custom_type/address.go:27.14,28.39 1 0 -github.com/tribeshq/tribes/pkg/custom_type/address.go:29.10,30.47 1 0 -github.com/tribeshq/tribes/pkg/custom_type/address.go:32.2,32.12 1 1 -github.com/tribeshq/tribes/pkg/custom_type/address.go:35.48,37.2 1 1 -github.com/tribeshq/tribes/pkg/custom_type/address.go:39.48,41.2 1 1 -github.com/tribeshq/tribes/pkg/custom_type/address.go:43.52,45.58 2 1 -github.com/tribeshq/tribes/pkg/custom_type/address.go:45.58,47.3 1 0 -github.com/tribeshq/tribes/pkg/custom_type/address.go:48.2,49.12 2 1 -github.com/tribeshq/tribes/pkg/custom_type/bigint.go:14.39,16.2 1 1 -github.com/tribeshq/tribes/pkg/custom_type/bigint.go:18.48,19.18 1 1 -github.com/tribeshq/tribes/pkg/custom_type/bigint.go:19.18,22.3 2 0 -github.com/tribeshq/tribes/pkg/custom_type/bigint.go:23.2,23.27 1 1 -github.com/tribeshq/tribes/pkg/custom_type/bigint.go:24.13,25.24 1 1 -github.com/tribeshq/tribes/pkg/custom_type/bigint.go:26.14,29.10 3 0 -github.com/tribeshq/tribes/pkg/custom_type/bigint.go:29.10,31.4 1 0 -github.com/tribeshq/tribes/pkg/custom_type/bigint.go:32.10,33.47 1 0 -github.com/tribeshq/tribes/pkg/custom_type/bigint.go:35.2,35.12 1 1 -github.com/tribeshq/tribes/pkg/custom_type/bigint.go:38.47,40.2 1 1 -github.com/tribeshq/tribes/pkg/custom_type/bigint.go:42.47,44.2 1 1 -github.com/tribeshq/tribes/pkg/custom_type/bigint.go:46.51,49.54 3 1 -github.com/tribeshq/tribes/pkg/custom_type/bigint.go:49.54,51.3 1 1 -github.com/tribeshq/tribes/pkg/custom_type/bigint.go:51.8,52.57 1 0 -github.com/tribeshq/tribes/pkg/custom_type/bigint.go:52.57,54.4 1 0 -github.com/tribeshq/tribes/pkg/custom_type/bigint.go:57.2,59.9 3 1 -github.com/tribeshq/tribes/pkg/custom_type/bigint.go:59.9,61.3 1 0 -github.com/tribeshq/tribes/pkg/custom_type/bigint.go:62.2,62.12 1 1 -github.com/tribeshq/tribes/configs/sqlite.go:17.38,30.16 3 0 -github.com/tribeshq/tribes/configs/sqlite.go:30.16,32.3 1 0 -github.com/tribeshq/tribes/configs/sqlite.go:33.2,54.16 4 0 -github.com/tribeshq/tribes/configs/sqlite.go:54.16,56.3 1 0 -github.com/tribeshq/tribes/configs/sqlite.go:57.2,57.16 1 0 -github.com/tribeshq/tribes/configs/sqlite.go:60.44,73.16 3 0 -github.com/tribeshq/tribes/configs/sqlite.go:73.16,75.3 1 0 -github.com/tribeshq/tribes/configs/sqlite.go:76.2,97.16 4 0 -github.com/tribeshq/tribes/configs/sqlite.go:97.16,99.3 1 0 -github.com/tribeshq/tribes/configs/sqlite.go:100.2,100.16 1 0 -github.com/tribeshq/tribes/internal/domain/entity/auction.go:43.145,51.43 2 1 -github.com/tribeshq/tribes/internal/domain/entity/auction.go:51.43,53.3 1 1 -github.com/tribeshq/tribes/internal/domain/entity/auction.go:54.2,54.21 1 1 -github.com/tribeshq/tribes/internal/domain/entity/auction.go:57.36,58.150 1 1 -github.com/tribeshq/tribes/internal/domain/entity/auction.go:58.150,60.3 1 1 -github.com/tribeshq/tribes/internal/domain/entity/auction.go:61.2,61.12 1 1 -github.com/tribeshq/tribes/internal/domain/entity/bid.go:45.151,54.39 2 1 -github.com/tribeshq/tribes/internal/domain/entity/bid.go:54.39,56.3 1 1 -github.com/tribeshq/tribes/internal/domain/entity/bid.go:57.2,57.17 1 1 -github.com/tribeshq/tribes/internal/domain/entity/bid.go:60.32,61.129 1 1 -github.com/tribeshq/tribes/internal/domain/entity/bid.go:61.129,63.3 1 1 -github.com/tribeshq/tribes/internal/domain/entity/bid.go:64.2,64.12 1 1 -github.com/tribeshq/tribes/internal/domain/entity/contracts.go:31.98,37.44 2 1 -github.com/tribeshq/tribes/internal/domain/entity/contracts.go:37.44,39.3 1 0 -github.com/tribeshq/tribes/internal/domain/entity/contracts.go:40.2,40.22 1 1 -github.com/tribeshq/tribes/internal/domain/entity/contracts.go:43.37,44.63 1 1 -github.com/tribeshq/tribes/internal/domain/entity/contracts.go:44.63,46.3 1 1 -github.com/tribeshq/tribes/internal/domain/entity/contracts.go:47.2,47.12 1 1 -github.com/tribeshq/tribes/internal/domain/entity/order.go:35.144,43.41 2 1 -github.com/tribeshq/tribes/internal/domain/entity/order.go:43.41,45.3 1 1 -github.com/tribeshq/tribes/internal/domain/entity/order.go:46.2,46.19 1 1 -github.com/tribeshq/tribes/internal/domain/entity/order.go:49.34,50.128 1 1 -github.com/tribeshq/tribes/internal/domain/entity/order.go:50.128,52.3 1 1 -github.com/tribeshq/tribes/internal/domain/entity/order.go:53.2,53.12 1 1 -github.com/tribeshq/tribes/internal/domain/entity/station.go:43.183,53.43 2 1 -github.com/tribeshq/tribes/internal/domain/entity/station.go:53.43,55.3 1 1 -github.com/tribeshq/tribes/internal/domain/entity/station.go:56.2,56.21 1 1 -github.com/tribeshq/tribes/internal/domain/entity/station.go:59.36,60.171 1 1 -github.com/tribeshq/tribes/internal/domain/entity/station.go:60.171,62.3 1 1 -github.com/tribeshq/tribes/internal/domain/entity/station.go:63.2,63.12 1 1 -github.com/tribeshq/tribes/internal/domain/entity/user.go:31.89,37.40 2 1 -github.com/tribeshq/tribes/internal/domain/entity/user.go:37.40,39.3 1 1 -github.com/tribeshq/tribes/internal/domain/entity/user.go:40.2,40.18 1 1 -github.com/tribeshq/tribes/internal/domain/entity/user.go:43.33,44.61 1 1 -github.com/tribeshq/tribes/internal/domain/entity/user.go:44.61,46.3 1 1 -github.com/tribeshq/tribes/internal/domain/entity/user.go:47.2,47.12 1 1 -github.com/tribeshq/tribes/pkg/custom_type/address.go:14.47,16.2 1 1 +github.com/tribeshq/tribes/internal/usecase/user_usecase/find_user_by_role.go:26.2,33.8 1 0 +github.com/tribeshq/tribes/pkg/rollups_contracts/generate/main.go:49.13,56.29 6 0 +github.com/tribeshq/tribes/pkg/rollups_contracts/generate/main.go:56.29,58.3 1 0 +github.com/tribeshq/tribes/pkg/rollups_contracts/generate/main.go:59.2,61.29 2 0 +github.com/tribeshq/tribes/pkg/rollups_contracts/generate/main.go:61.29,63.21 2 0 +github.com/tribeshq/tribes/pkg/rollups_contracts/generate/main.go:63.21,65.4 1 0 +github.com/tribeshq/tribes/pkg/rollups_contracts/generate/main.go:66.3,66.30 1 0 +github.com/tribeshq/tribes/pkg/rollups_contracts/generate/main.go:71.40,72.16 1 0 +github.com/tribeshq/tribes/pkg/rollups_contracts/generate/main.go:72.16,74.3 1 0 +github.com/tribeshq/tribes/pkg/rollups_contracts/generate/main.go:79.50,83.42 4 0 +github.com/tribeshq/tribes/pkg/rollups_contracts/generate/main.go:83.42,86.3 2 0 +github.com/tribeshq/tribes/pkg/rollups_contracts/generate/main.go:87.2,87.22 1 0 +github.com/tribeshq/tribes/pkg/rollups_contracts/generate/main.go:91.39,96.2 4 0 +github.com/tribeshq/tribes/pkg/rollups_contracts/generate/main.go:100.77,103.6 3 0 +github.com/tribeshq/tribes/pkg/rollups_contracts/generate/main.go:103.6,105.20 2 0 +github.com/tribeshq/tribes/pkg/rollups_contracts/generate/main.go:105.20,106.9 1 0 +github.com/tribeshq/tribes/pkg/rollups_contracts/generate/main.go:108.3,109.25 2 0 +github.com/tribeshq/tribes/pkg/rollups_contracts/generate/main.go:109.25,112.4 2 0 +github.com/tribeshq/tribes/pkg/rollups_contracts/generate/main.go:114.2,114.17 1 0 +github.com/tribeshq/tribes/pkg/rollups_contracts/generate/main.go:118.36,125.2 4 0 +github.com/tribeshq/tribes/pkg/rollups_contracts/generate/main.go:128.57,143.2 7 0 +github.com/tribeshq/tribes/pkg/custom_type/address.go:14.47,16.2 1 0 github.com/tribeshq/tribes/pkg/custom_type/address.go:18.49,19.18 1 0 github.com/tribeshq/tribes/pkg/custom_type/address.go:19.18,22.3 2 0 github.com/tribeshq/tribes/pkg/custom_type/address.go:24.2,24.27 1 0 @@ -756,7 +413,7 @@ github.com/tribeshq/tribes/pkg/custom_type/address.go:39.48,41.2 1 0 github.com/tribeshq/tribes/pkg/custom_type/address.go:43.52,45.58 2 0 github.com/tribeshq/tribes/pkg/custom_type/address.go:45.58,47.3 1 0 github.com/tribeshq/tribes/pkg/custom_type/address.go:48.2,49.12 2 0 -github.com/tribeshq/tribes/pkg/custom_type/bigint.go:14.39,16.2 1 1 +github.com/tribeshq/tribes/pkg/custom_type/bigint.go:14.39,16.2 1 0 github.com/tribeshq/tribes/pkg/custom_type/bigint.go:18.48,19.18 1 0 github.com/tribeshq/tribes/pkg/custom_type/bigint.go:19.18,22.3 2 0 github.com/tribeshq/tribes/pkg/custom_type/bigint.go:23.2,23.27 1 0 @@ -774,429 +431,14 @@ github.com/tribeshq/tribes/pkg/custom_type/bigint.go:52.57,54.4 1 0 github.com/tribeshq/tribes/pkg/custom_type/bigint.go:57.2,59.9 3 0 github.com/tribeshq/tribes/pkg/custom_type/bigint.go:59.9,61.3 1 0 github.com/tribeshq/tribes/pkg/custom_type/bigint.go:62.2,62.12 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:29.27,37.2 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:39.158,41.56 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:41.56,43.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:44.2,46.16 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:46.16,48.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:49.2,50.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:50.16,52.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:53.2,54.12 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:57.158,60.16 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:60.16,62.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:64.2,65.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:65.16,67.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:69.2,71.16 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:71.16,73.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:75.2,77.16 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:77.16,79.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:81.2,82.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:82.16,84.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:86.2,91.16 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:91.16,93.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:94.2,94.35 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:94.35,95.143 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:95.143,97.4 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:100.2,104.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:104.16,106.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:107.2,107.42 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:107.42,108.143 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:108.143,110.4 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:113.2,117.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:117.16,119.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:120.2,120.35 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:120.35,121.130 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:121.130,123.4 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:126.2,127.119 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:127.119,129.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:131.2,132.12 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:21.212,28.2 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:30.150,31.35 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:32.33,34.57 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:34.57,36.4 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:37.3,39.17 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:39.17,41.4 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:43.3,45.17 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:45.17,47.4 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:49.3,51.17 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:51.17,53.4 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:55.3,55.130 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:55.130,57.4 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:58.3,59.17 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:59.17,61.4 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:62.3,63.13 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:64.10,65.48 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:14.104,18.2 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:20.160,22.56 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:22.56,24.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:25.2,27.16 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:27.16,29.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:30.2,31.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:31.16,33.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:34.2,35.12 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:38.160,40.56 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:40.56,42.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:43.2,45.16 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:45.16,47.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:48.2,49.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:49.16,51.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:52.2,53.12 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:56.160,58.56 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:58.56,60.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:61.2,63.16 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:63.16,65.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:66.2,67.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:67.16,69.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:70.2,71.12 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/order_advance_handlers.go:27.25,34.2 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/order_advance_handlers.go:36.154,37.35 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/order_advance_handlers.go:38.33,40.57 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/order_advance_handlers.go:40.57,42.4 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/order_advance_handlers.go:43.3,45.17 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/order_advance_handlers.go:45.17,47.4 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/order_advance_handlers.go:49.3,51.17 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/order_advance_handlers.go:51.17,53.4 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/order_advance_handlers.go:55.3,57.17 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/order_advance_handlers.go:57.17,59.4 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/order_advance_handlers.go:62.3,63.128 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/order_advance_handlers.go:63.128,65.4 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/order_advance_handlers.go:68.3,69.131 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/order_advance_handlers.go:69.131,71.4 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/order_advance_handlers.go:73.3,74.17 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/order_advance_handlers.go:74.17,76.4 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/order_advance_handlers.go:77.3,78.13 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/order_advance_handlers.go:79.10,80.61 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:27.27,33.2 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:35.158,37.56 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:37.56,39.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:41.2,43.16 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:43.16,45.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:46.2,47.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:47.16,49.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:50.2,51.12 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:54.158,56.56 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:56.56,58.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:59.2,61.16 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:61.16,63.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:64.2,65.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:65.16,67.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:68.2,69.12 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:72.158,74.56 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:74.56,76.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:77.2,79.16 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:79.16,81.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:82.2,83.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:83.16,85.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:86.2,87.12 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:90.169,92.56 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:92.56,94.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:95.2,97.16 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:97.16,99.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:101.2,103.16 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:103.16,105.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:107.2,109.16 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:109.16,111.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:113.2,113.149 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:113.149,115.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:117.2,129.16 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:129.16,131.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:132.2,133.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:133.16,135.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/station_advance_handlers.go:137.2,139.12 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:18.134,23.2 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:25.152,27.56 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:27.56,29.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:30.2,32.16 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:32.16,34.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:35.2,36.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:36.16,38.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:39.2,40.12 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:43.161,45.56 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:45.56,47.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:48.2,50.16 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:50.16,52.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:53.2,54.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:54.16,56.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:57.2,58.12 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:61.160,64.16 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:64.16,66.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:67.2,68.35 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:68.35,70.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:71.2,72.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:72.16,74.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:75.2,76.12 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:79.154,82.16 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:82.16,84.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:85.2,86.29 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:86.29,88.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:89.2,90.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:90.16,92.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:93.2,94.12 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:18.100,22.2 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:24.116,27.16 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:27.16,29.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:30.2,31.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:31.16,33.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:34.2,35.12 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:38.114,40.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:40.16,42.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:43.2,47.16 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:47.16,49.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:50.2,51.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:51.16,53.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:54.2,55.12 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:58.114,61.16 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:61.16,63.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:64.2,65.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:65.16,67.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:68.2,69.12 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:19.84,23.2 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:25.106,27.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:27.16,29.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:30.2,34.16 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:34.16,36.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:37.2,38.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:38.16,40.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:41.2,42.12 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:45.114,47.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:47.16,49.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:50.2,54.16 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:54.16,56.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:57.2,58.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:58.16,60.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:61.2,62.12 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:65.106,68.16 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:68.16,70.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:71.2,72.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:72.16,74.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:75.2,76.12 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/contract_inspect_handler.go:19.104,23.2 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/contract_inspect_handler.go:25.116,28.16 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/contract_inspect_handler.go:28.16,30.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/contract_inspect_handler.go:31.2,32.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/contract_inspect_handler.go:32.16,34.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/contract_inspect_handler.go:35.2,36.12 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/contract_inspect_handler.go:39.120,45.16 4 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/contract_inspect_handler.go:45.16,47.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/contract_inspect_handler.go:48.2,49.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/contract_inspect_handler.go:49.16,51.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/contract_inspect_handler.go:52.2,53.12 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/order_inspect_handlers.go:20.92,24.2 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/order_inspect_handlers.go:26.110,29.16 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/order_inspect_handlers.go:29.16,31.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/order_inspect_handlers.go:32.2,33.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/order_inspect_handlers.go:33.16,35.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/order_inspect_handlers.go:36.2,37.12 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/order_inspect_handlers.go:40.110,42.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/order_inspect_handlers.go:42.16,44.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/order_inspect_handlers.go:45.2,49.16 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/order_inspect_handlers.go:49.16,51.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/order_inspect_handlers.go:52.2,53.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/order_inspect_handlers.go:53.16,55.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/order_inspect_handlers.go:56.2,57.12 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/order_inspect_handlers.go:60.113,66.16 4 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/order_inspect_handlers.go:66.16,68.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/order_inspect_handlers.go:69.2,70.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/order_inspect_handlers.go:70.16,72.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/order_inspect_handlers.go:73.2,74.12 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/station_inspect_handlers.go:18.100,22.2 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/station_inspect_handlers.go:24.114,26.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/station_inspect_handlers.go:26.16,28.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/station_inspect_handlers.go:29.2,33.16 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/station_inspect_handlers.go:33.16,35.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/station_inspect_handlers.go:36.2,37.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/station_inspect_handlers.go:37.16,39.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/station_inspect_handlers.go:40.2,41.12 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/station_inspect_handlers.go:44.114,47.16 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/station_inspect_handlers.go:47.16,49.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/station_inspect_handlers.go:50.2,51.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/station_inspect_handlers.go:51.16,53.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/station_inspect_handlers.go:54.2,55.12 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/user_inspect_handlers.go:23.134,28.2 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/user_inspect_handlers.go:30.113,36.16 4 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/user_inspect_handlers.go:36.16,38.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/user_inspect_handlers.go:39.2,40.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/user_inspect_handlers.go:40.16,42.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/user_inspect_handlers.go:43.2,44.12 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/user_inspect_handlers.go:47.108,50.16 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/user_inspect_handlers.go:50.16,52.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/user_inspect_handlers.go:53.2,54.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/user_inspect_handlers.go:54.16,56.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/user_inspect_handlers.go:57.2,58.12 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/user_inspect_handlers.go:61.103,66.16 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/user_inspect_handlers.go:66.16,68.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/user_inspect_handlers.go:69.2,70.16 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/user_inspect_handlers.go:70.16,72.3 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/user_inspect_handlers.go:73.2,74.12 2 0 -github.com/tribeshq/tribes/internal/infra/cartesi/middleware/rbac.go:19.78,23.2 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/middleware/rbac.go:25.115,26.117 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/middleware/rbac.go:26.117,31.17 3 0 -github.com/tribeshq/tribes/internal/infra/cartesi/middleware/rbac.go:31.17,32.37 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/middleware/rbac.go:32.37,34.5 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/middleware/rbac.go:35.4,35.14 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/middleware/rbac.go:37.3,37.24 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/middleware/rbac.go:37.24,39.4 1 0 -github.com/tribeshq/tribes/internal/infra/cartesi/middleware/rbac.go:40.3,40.54 1 0 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:12.71,16.2 1 0 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:18.97,20.16 2 0 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:20.16,22.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:23.2,23.19 1 0 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:26.80,29.16 3 0 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:29.16,30.36 1 0 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:30.36,32.4 1 0 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:33.3,33.18 1 0 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:35.2,35.22 1 0 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:38.85,41.16 3 0 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:41.16,43.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:44.2,44.22 1 0 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:47.80,50.16 3 0 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:50.16,52.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:53.2,53.22 1 0 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:56.97,59.16 3 0 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:59.16,60.36 1 0 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:60.36,62.4 1 0 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:63.3,63.18 1 0 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:66.2,72.22 6 0 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:72.22,74.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:75.2,75.22 1 0 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:78.64,80.16 2 0 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:80.16,82.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:83.2,83.12 1 0 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:14.63,18.2 1 0 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:20.81,22.16 2 0 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:22.16,24.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:25.2,25.19 1 0 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:28.100,31.16 3 0 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:31.16,33.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:34.2,34.18 1 0 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:37.73,40.16 3 0 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:40.16,42.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:43.2,43.18 1 0 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:46.83,49.16 3 0 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:49.16,51.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:52.2,52.18 1 0 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:55.68,58.16 3 0 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:58.16,60.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:61.2,61.18 1 0 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:64.81,67.16 3 0 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:67.16,68.36 1 0 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:68.36,70.4 1 0 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:71.3,71.18 1 0 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:74.2,82.22 8 0 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:82.22,84.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:85.2,85.19 1 0 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:88.56,90.22 2 0 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:90.22,92.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:93.2,93.27 1 0 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:93.27,95.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:96.2,96.12 1 0 -github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:14.73,18.2 1 0 -github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:20.104,22.16 2 0 -github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:22.16,24.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:25.2,25.22 1 0 -github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:28.83,31.16 3 0 -github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:31.16,33.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:34.2,34.23 1 0 -github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:37.98,40.16 3 0 -github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:40.16,42.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:43.2,43.23 1 0 -github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:46.101,49.16 3 0 -github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:49.16,50.36 1 0 -github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:50.36,52.4 1 0 -github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:53.3,53.18 1 0 -github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:56.2,60.22 4 0 -github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:60.22,62.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:63.2,63.23 1 0 -github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:66.72,68.22 2 0 -github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:68.22,70.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:71.2,71.27 1 0 -github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:71.27,73.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:74.2,74.12 1 0 -github.com/tribeshq/tribes/internal/infra/repository/order_repository_sqlite.go:15.67,19.2 1 0 -github.com/tribeshq/tribes/internal/infra/repository/order_repository_sqlite.go:21.89,23.16 2 0 -github.com/tribeshq/tribes/internal/infra/repository/order_repository_sqlite.go:23.16,25.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/order_repository_sqlite.go:26.2,26.19 1 0 -github.com/tribeshq/tribes/internal/infra/repository/order_repository_sqlite.go:29.102,32.16 3 0 -github.com/tribeshq/tribes/internal/infra/repository/order_repository_sqlite.go:32.16,34.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/order_repository_sqlite.go:35.2,35.20 1 0 -github.com/tribeshq/tribes/internal/infra/repository/order_repository_sqlite.go:38.74,41.16 3 0 -github.com/tribeshq/tribes/internal/infra/repository/order_repository_sqlite.go:41.16,43.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/order_repository_sqlite.go:44.2,44.20 1 0 -github.com/tribeshq/tribes/internal/infra/repository/order_repository_sqlite.go:47.79,50.16 3 0 -github.com/tribeshq/tribes/internal/infra/repository/order_repository_sqlite.go:50.16,52.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/order_repository_sqlite.go:53.2,53.20 1 0 -github.com/tribeshq/tribes/internal/infra/repository/order_repository_sqlite.go:56.102,59.16 3 0 -github.com/tribeshq/tribes/internal/infra/repository/order_repository_sqlite.go:59.16,61.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/order_repository_sqlite.go:62.2,62.20 1 0 -github.com/tribeshq/tribes/internal/infra/repository/order_repository_sqlite.go:65.60,67.22 2 0 -github.com/tribeshq/tribes/internal/infra/repository/order_repository_sqlite.go:67.22,69.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/order_repository_sqlite.go:70.2,70.27 1 0 -github.com/tribeshq/tribes/internal/infra/repository/order_repository_sqlite.go:70.27,72.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/order_repository_sqlite.go:73.2,73.12 1 0 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:14.71,18.2 1 0 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:20.97,22.16 2 0 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:22.16,24.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:25.2,25.19 1 0 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:28.85,30.83 2 0 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:30.83,31.36 1 0 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:31.36,33.4 1 0 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:34.3,34.18 1 0 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:36.2,36.22 1 0 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:39.80,42.16 3 0 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:42.16,44.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:45.2,45.22 1 0 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:48.97,51.16 3 0 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:51.16,52.36 1 0 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:52.36,54.4 1 0 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:55.3,55.66 1 0 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:58.2,67.22 9 0 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:67.22,69.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:70.2,70.22 1 0 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:73.64,75.22 2 0 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:75.22,77.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:78.2,78.27 1 0 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:78.27,80.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/station_repository_sqlite.go:81.2,81.12 1 0 -github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:14.65,18.2 1 0 -github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:20.85,22.16 2 0 -github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:22.16,24.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:25.2,25.19 1 0 -github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:28.82,31.16 3 0 -github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:31.16,33.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:34.2,34.19 1 0 -github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:37.101,40.16 3 0 -github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:40.16,42.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:43.2,43.19 1 0 -github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:46.71,49.16 3 0 -github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:49.16,51.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:52.2,52.19 1 0 -github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:55.87,57.22 2 0 -github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:57.22,59.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:60.2,60.27 1 0 -github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:60.27,62.3 1 0 -github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:63.2,63.12 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/create_auction.go:33.135,38.2 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/create_auction.go:40.134,42.16 2 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/create_auction.go:30.95,34.2 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/create_auction.go:36.134,38.16 2 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/create_auction.go:38.16,40.3 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/create_auction.go:41.2,42.16 2 0 github.com/tribeshq/tribes/internal/usecase/auction_usecase/create_auction.go:42.16,44.3 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/create_auction.go:45.2,45.22 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/create_auction.go:45.22,47.3 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/create_auction.go:49.2,50.31 2 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/create_auction.go:50.31,52.3 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/create_auction.go:54.2,54.37 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/create_auction.go:54.37,56.3 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/create_auction.go:58.2,59.16 2 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/create_auction.go:59.16,61.3 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/create_auction.go:62.2,63.16 2 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/create_auction.go:63.16,65.3 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/create_auction.go:66.2,73.8 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/create_auction.go:45.2,53.8 1 0 github.com/tribeshq/tribes/internal/usecase/auction_usecase/delete_auction.go:15.96,17.2 1 0 github.com/tribeshq/tribes/internal/usecase/auction_usecase/delete_auction.go:19.76,21.2 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_active_auction.go:11.104,15.2 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_active_auction.go:17.77,19.16 2 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_active_auction.go:19.16,21.3 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_active_auction.go:22.2,23.31 2 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_active_auction.go:23.31,34.3 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_active_auction.go:35.2,44.8 1 0 github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_all_auctions.go:13.100,15.2 1 0 github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_all_auctions.go:17.79,19.16 2 0 github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_all_auctions.go:19.16,21.3 1 0 @@ -1211,54 +453,56 @@ github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_auction_by_id.g github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_auction_by_id.go:24.2,25.31 2 0 github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_auction_by_id.go:25.31,36.3 1 0 github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_auction_by_id.go:37.2,46.8 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:28.132,33.2 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:35.104,37.16 2 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:37.16,39.3 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:41.2,41.55 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:41.55,43.3 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:45.2,46.16 2 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:46.16,48.3 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:50.2,50.20 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:50.20,52.3 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:54.2,54.39 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:54.39,56.3 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:58.2,60.27 2 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:60.27,61.43 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:61.43,65.18 4 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:65.18,67.5 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:68.4,68.12 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:71.3,71.57 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:71.57,75.18 4 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:75.18,77.5 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:78.4,78.75 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:79.9,90.18 3 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:90.18,92.5 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:95.4,104.18 3 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:104.18,106.5 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:109.4,110.18 2 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:110.18,112.5 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:114.4,114.40 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:118.2,121.16 4 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:121.16,123.3 1 0 -github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:125.2,134.8 1 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:30.170,36.2 1 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:38.151,40.16 2 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:40.16,42.3 1 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:43.2,43.26 1 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:43.26,45.3 1 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:47.2,47.55 1 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:47.55,49.3 1 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:50.2,51.16 2 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:51.16,53.3 1 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:54.2,54.71 1 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:54.71,56.3 1 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:58.2,58.65 1 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:58.65,60.3 1 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:62.2,63.16 2 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:63.16,65.3 1 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:66.2,67.16 2 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:67.16,69.3 1 0 -github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:71.2,79.8 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:30.132,35.2 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:37.104,39.16 2 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:39.16,41.3 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:43.2,43.55 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:43.55,45.3 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:47.2,48.16 2 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:48.16,50.3 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:52.2,52.20 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:52.20,56.17 4 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:56.17,58.4 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:59.3,69.9 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:72.2,72.39 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:72.39,74.3 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:76.2,78.27 2 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:78.27,79.38 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:79.38,83.18 4 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:83.18,85.5 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:86.4,86.12 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:89.3,89.51 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:89.51,93.18 4 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:93.18,95.5 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:96.4,96.64 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:97.9,108.18 3 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:108.18,110.5 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:113.4,122.18 3 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:122.18,124.5 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:127.4,128.18 2 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:128.18,130.5 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:132.4,132.35 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:136.2,139.16 4 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:139.16,141.3 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:143.2,153.8 1 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:31.170,37.2 1 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:39.151,41.16 2 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:41.16,43.3 1 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:44.2,44.26 1 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:44.26,46.3 1 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:48.2,48.55 1 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:48.55,50.3 1 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:51.2,52.16 2 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:52.16,54.3 1 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:55.2,55.77 1 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:55.77,57.3 1 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:59.2,59.61 1 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:59.61,61.3 1 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:63.2,64.16 2 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:64.16,66.3 1 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:67.2,68.16 2 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:68.16,70.3 1 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:72.2,80.8 1 0 github.com/tribeshq/tribes/internal/usecase/bid_usecase/delete_bid.go:15.80,19.2 1 0 github.com/tribeshq/tribes/internal/usecase/bid_usecase/delete_bid.go:21.68,23.2 1 0 github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_all_bids.go:13.84,17.2 1 0 @@ -1283,173 +527,6 @@ github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_bids_by_state.go:26 github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_bids_by_state.go:29.2,30.26 2 0 github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_bids_by_state.go:30.26,41.3 1 0 github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_bids_by_state.go:42.2,42.20 1 0 -github.com/tribeshq/tribes/internal/usecase/contract_usecase/create_contract.go:25.100,29.2 1 0 -github.com/tribeshq/tribes/internal/usecase/contract_usecase/create_contract.go:31.137,33.16 2 0 -github.com/tribeshq/tribes/internal/usecase/contract_usecase/create_contract.go:33.16,35.3 1 0 -github.com/tribeshq/tribes/internal/usecase/contract_usecase/create_contract.go:36.2,37.16 2 0 -github.com/tribeshq/tribes/internal/usecase/contract_usecase/create_contract.go:37.16,39.3 1 0 -github.com/tribeshq/tribes/internal/usecase/contract_usecase/create_contract.go:40.2,46.20 2 0 -github.com/tribeshq/tribes/internal/usecase/contract_usecase/delete_contract.go:13.100,17.2 1 0 -github.com/tribeshq/tribes/internal/usecase/contract_usecase/delete_contract.go:19.78,21.2 1 0 -github.com/tribeshq/tribes/internal/usecase/contract_usecase/find_all_contracts.go:11.104,15.2 1 0 -github.com/tribeshq/tribes/internal/usecase/contract_usecase/find_all_contracts.go:17.80,19.16 2 0 -github.com/tribeshq/tribes/internal/usecase/contract_usecase/find_all_contracts.go:19.16,21.3 1 0 -github.com/tribeshq/tribes/internal/usecase/contract_usecase/find_all_contracts.go:22.2,23.31 2 0 -github.com/tribeshq/tribes/internal/usecase/contract_usecase/find_all_contracts.go:23.31,32.3 2 0 -github.com/tribeshq/tribes/internal/usecase/contract_usecase/find_all_contracts.go:33.2,33.20 1 0 -github.com/tribeshq/tribes/internal/usecase/contract_usecase/find_contract_by_symbol.go:15.112,19.2 1 0 -github.com/tribeshq/tribes/internal/usecase/contract_usecase/find_contract_by_symbol.go:21.116,23.16 2 0 -github.com/tribeshq/tribes/internal/usecase/contract_usecase/find_contract_by_symbol.go:23.16,25.3 1 0 -github.com/tribeshq/tribes/internal/usecase/contract_usecase/find_contract_by_symbol.go:26.2,32.8 1 0 -github.com/tribeshq/tribes/internal/usecase/contract_usecase/update_contract.go:28.100,32.2 1 0 -github.com/tribeshq/tribes/internal/usecase/contract_usecase/update_contract.go:34.137,41.16 2 0 -github.com/tribeshq/tribes/internal/usecase/contract_usecase/update_contract.go:41.16,43.3 1 0 -github.com/tribeshq/tribes/internal/usecase/contract_usecase/update_contract.go:44.2,50.8 1 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/create_order.go:31.178,37.2 1 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/create_order.go:39.157,41.16 2 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/create_order.go:41.16,43.3 1 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/create_order.go:44.2,44.77 1 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/create_order.go:44.77,46.3 1 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/create_order.go:48.2,49.16 2 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/create_order.go:49.16,51.3 1 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/create_order.go:53.2,56.16 3 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/create_order.go:56.16,58.3 1 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/create_order.go:59.2,60.16 2 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/create_order.go:60.16,62.3 1 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/create_order.go:64.2,65.16 2 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/create_order.go:65.16,67.3 1 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/create_order.go:69.2,82.16 3 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/create_order.go:82.16,84.3 1 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/create_order.go:86.2,94.8 1 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/delete_order.go:15.88,19.2 1 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/delete_order.go:21.72,23.2 1 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/find_all_orders.go:13.90,17.2 1 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/find_all_orders.go:19.73,21.16 2 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/find_all_orders.go:21.16,23.3 1 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/find_all_orders.go:24.2,25.28 2 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/find_all_orders.go:25.28,35.3 1 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/find_all_orders.go:36.2,36.20 1 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/find_order_by_id.go:15.92,19.2 1 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/find_order_by_id.go:21.99,23.16 2 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/find_order_by_id.go:23.16,25.3 1 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/find_order_by_id.go:26.2,34.8 1 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/find_orders_by_user.go:19.98,23.2 1 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/find_orders_by_user.go:25.109,27.16 2 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/find_orders_by_user.go:27.16,29.3 1 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/find_orders_by_user.go:30.2,31.28 2 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/find_orders_by_user.go:31.28,41.3 1 0 -github.com/tribeshq/tribes/internal/usecase/order_usecase/find_orders_by_user.go:42.2,42.20 1 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/create_station.go:32.96,36.2 1 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/create_station.go:38.134,40.16 2 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/create_station.go:40.16,42.3 1 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/create_station.go:43.2,44.16 2 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/create_station.go:44.16,46.3 1 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/create_station.go:47.2,56.8 1 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/delete_station.go:15.96,19.2 1 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/delete_station.go:21.76,23.2 1 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/find_all_stations.go:13.100,17.2 1 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/find_all_stations.go:19.77,21.16 2 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/find_all_stations.go:21.16,23.3 1 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/find_all_stations.go:24.2,25.30 2 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/find_all_stations.go:25.30,27.40 2 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/find_all_stations.go:27.40,37.4 1 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/find_all_stations.go:38.3,49.4 1 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/find_all_stations.go:51.2,51.20 1 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/find_station_by_id.go:15.100,19.2 1 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/find_station_by_id.go:21.105,23.16 2 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/find_station_by_id.go:23.16,25.3 1 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/find_station_by_id.go:26.2,27.35 2 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/find_station_by_id.go:27.35,37.3 1 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/find_station_by_id.go:38.2,49.8 1 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/offset_station_consumption.go:32.118,36.2 1 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/offset_station_consumption.go:38.167,40.16 2 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/offset_station_consumption.go:40.16,42.3 1 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/offset_station_consumption.go:43.2,43.49 1 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/offset_station_consumption.go:43.49,45.3 1 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/offset_station_consumption.go:47.2,48.44 2 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/offset_station_consumption.go:48.44,50.3 1 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/offset_station_consumption.go:52.2,64.16 2 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/offset_station_consumption.go:64.16,66.3 1 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/offset_station_consumption.go:67.2,76.8 1 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/update_station.go:38.96,42.2 1 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/update_station.go:44.134,55.16 2 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/update_station.go:55.16,57.3 1 0 -github.com/tribeshq/tribes/internal/usecase/station_usecase/update_station.go:58.2,68.8 1 0 -github.com/tribeshq/tribes/internal/usecase/user_usecase/create_user.go:25.84,29.2 1 0 -github.com/tribeshq/tribes/internal/usecase/user_usecase/create_user.go:31.125,33.16 2 0 -github.com/tribeshq/tribes/internal/usecase/user_usecase/create_user.go:33.16,35.3 1 0 -github.com/tribeshq/tribes/internal/usecase/user_usecase/create_user.go:36.2,37.16 2 0 -github.com/tribeshq/tribes/internal/usecase/user_usecase/create_user.go:37.16,39.3 1 0 -github.com/tribeshq/tribes/internal/usecase/user_usecase/create_user.go:40.2,45.8 1 0 -github.com/tribeshq/tribes/internal/usecase/user_usecase/delete_user_by_address.go:17.102,21.2 1 0 -github.com/tribeshq/tribes/internal/usecase/user_usecase/delete_user_by_address.go:23.88,25.2 1 0 -github.com/tribeshq/tribes/internal/usecase/user_usecase/find_all_users.go:13.88,17.2 1 0 -github.com/tribeshq/tribes/internal/usecase/user_usecase/find_all_users.go:19.73,21.16 2 0 -github.com/tribeshq/tribes/internal/usecase/user_usecase/find_all_users.go:21.16,23.3 1 0 -github.com/tribeshq/tribes/internal/usecase/user_usecase/find_all_users.go:24.2,25.27 2 0 -github.com/tribeshq/tribes/internal/usecase/user_usecase/find_all_users.go:25.27,33.3 1 0 -github.com/tribeshq/tribes/internal/usecase/user_usecase/find_all_users.go:34.2,34.21 1 0 -github.com/tribeshq/tribes/internal/usecase/user_usecase/find_user_by_address.go:16.98,20.2 1 0 -github.com/tribeshq/tribes/internal/usecase/user_usecase/find_user_by_address.go:22.106,24.16 2 0 -github.com/tribeshq/tribes/internal/usecase/user_usecase/find_user_by_address.go:24.16,26.3 1 0 -github.com/tribeshq/tribes/internal/usecase/user_usecase/find_user_by_address.go:27.2,33.8 1 0 -github.com/tribeshq/tribes/internal/usecase/user_usecase/find_user_by_role.go:15.92,19.2 1 0 -github.com/tribeshq/tribes/internal/usecase/user_usecase/find_user_by_role.go:21.100,23.16 2 0 -github.com/tribeshq/tribes/internal/usecase/user_usecase/find_user_by_role.go:23.16,25.3 1 0 -github.com/tribeshq/tribes/internal/usecase/user_usecase/find_user_by_role.go:26.2,32.8 1 0 -github.com/tribeshq/tribes/pkg/custom_type/address.go:14.47,16.2 1 0 -github.com/tribeshq/tribes/pkg/custom_type/address.go:18.49,19.18 1 0 -github.com/tribeshq/tribes/pkg/custom_type/address.go:19.18,22.3 2 0 -github.com/tribeshq/tribes/pkg/custom_type/address.go:24.2,24.27 1 0 -github.com/tribeshq/tribes/pkg/custom_type/address.go:25.14,26.37 1 0 -github.com/tribeshq/tribes/pkg/custom_type/address.go:27.14,28.39 1 0 -github.com/tribeshq/tribes/pkg/custom_type/address.go:29.10,30.47 1 0 -github.com/tribeshq/tribes/pkg/custom_type/address.go:32.2,32.12 1 0 -github.com/tribeshq/tribes/pkg/custom_type/address.go:35.48,37.2 1 0 -github.com/tribeshq/tribes/pkg/custom_type/address.go:39.48,41.2 1 0 -github.com/tribeshq/tribes/pkg/custom_type/address.go:43.52,45.58 2 0 -github.com/tribeshq/tribes/pkg/custom_type/address.go:45.58,47.3 1 0 -github.com/tribeshq/tribes/pkg/custom_type/address.go:48.2,49.12 2 0 -github.com/tribeshq/tribes/pkg/custom_type/bigint.go:14.39,16.2 1 0 -github.com/tribeshq/tribes/pkg/custom_type/bigint.go:18.48,19.18 1 0 -github.com/tribeshq/tribes/pkg/custom_type/bigint.go:19.18,22.3 2 0 -github.com/tribeshq/tribes/pkg/custom_type/bigint.go:23.2,23.27 1 0 -github.com/tribeshq/tribes/pkg/custom_type/bigint.go:24.13,25.24 1 0 -github.com/tribeshq/tribes/pkg/custom_type/bigint.go:26.14,29.10 3 0 -github.com/tribeshq/tribes/pkg/custom_type/bigint.go:29.10,31.4 1 0 -github.com/tribeshq/tribes/pkg/custom_type/bigint.go:32.10,33.47 1 0 -github.com/tribeshq/tribes/pkg/custom_type/bigint.go:35.2,35.12 1 0 -github.com/tribeshq/tribes/pkg/custom_type/bigint.go:38.47,40.2 1 0 -github.com/tribeshq/tribes/pkg/custom_type/bigint.go:42.47,44.2 1 0 -github.com/tribeshq/tribes/pkg/custom_type/bigint.go:46.51,49.54 3 0 -github.com/tribeshq/tribes/pkg/custom_type/bigint.go:49.54,51.3 1 0 -github.com/tribeshq/tribes/pkg/custom_type/bigint.go:51.8,52.57 1 0 -github.com/tribeshq/tribes/pkg/custom_type/bigint.go:52.57,54.4 1 0 -github.com/tribeshq/tribes/pkg/custom_type/bigint.go:57.2,59.9 3 0 -github.com/tribeshq/tribes/pkg/custom_type/bigint.go:59.9,61.3 1 0 -github.com/tribeshq/tribes/pkg/custom_type/bigint.go:62.2,62.12 1 0 -github.com/tribeshq/tribes/pkg/events/event_dispatcher.go:14.44,18.2 1 1 -github.com/tribeshq/tribes/pkg/events/event_dispatcher.go:20.65,21.54 1 1 -github.com/tribeshq/tribes/pkg/events/event_dispatcher.go:21.54,23.36 2 1 -github.com/tribeshq/tribes/pkg/events/event_dispatcher.go:23.36,26.4 2 1 -github.com/tribeshq/tribes/pkg/events/event_dispatcher.go:27.3,27.12 1 1 -github.com/tribeshq/tribes/pkg/events/event_dispatcher.go:29.2,29.12 1 1 -github.com/tribeshq/tribes/pkg/events/event_dispatcher.go:32.92,33.41 1 1 -github.com/tribeshq/tribes/pkg/events/event_dispatcher.go:33.41,34.44 1 1 -github.com/tribeshq/tribes/pkg/events/event_dispatcher.go:34.44,35.20 1 1 -github.com/tribeshq/tribes/pkg/events/event_dispatcher.go:35.20,37.5 1 1 -github.com/tribeshq/tribes/pkg/events/event_dispatcher.go:40.2,41.12 2 1 -github.com/tribeshq/tribes/pkg/events/event_dispatcher.go:44.86,45.41 1 1 -github.com/tribeshq/tribes/pkg/events/event_dispatcher.go:45.41,46.44 1 1 -github.com/tribeshq/tribes/pkg/events/event_dispatcher.go:46.44,47.20 1 1 -github.com/tribeshq/tribes/pkg/events/event_dispatcher.go:47.20,49.5 1 1 -github.com/tribeshq/tribes/pkg/events/event_dispatcher.go:52.2,52.14 1 1 -github.com/tribeshq/tribes/pkg/events/event_dispatcher.go:55.90,56.41 1 1 -github.com/tribeshq/tribes/pkg/events/event_dispatcher.go:56.41,57.44 1 1 -github.com/tribeshq/tribes/pkg/events/event_dispatcher.go:57.44,58.20 1 1 -github.com/tribeshq/tribes/pkg/events/event_dispatcher.go:58.20,61.5 2 1 -github.com/tribeshq/tribes/pkg/events/event_dispatcher.go:64.2,64.12 1 0 -github.com/tribeshq/tribes/pkg/events/event_dispatcher.go:67.36,69.2 1 1 github.com/tribeshq/tribes/pkg/rollups_contracts/cartesi_dapp.go:119.97,121.16 2 0 github.com/tribeshq/tribes/pkg/rollups_contracts/cartesi_dapp.go:121.16,123.3 1 0 github.com/tribeshq/tribes/pkg/rollups_contracts/cartesi_dapp.go:124.2,124.212 1 0 @@ -1743,26 +820,6 @@ github.com/tribeshq/tribes/pkg/rollups_contracts/input_box.go:402.16,403.15 1 0 github.com/tribeshq/tribes/pkg/rollups_contracts/input_box.go:412.96,414.79 2 0 github.com/tribeshq/tribes/pkg/rollups_contracts/input_box.go:414.79,416.3 1 0 github.com/tribeshq/tribes/pkg/rollups_contracts/input_box.go:417.2,418.19 2 0 -github.com/tribeshq/tribes/pkg/rollups_contracts/generate/main.go:49.13,56.29 6 0 -github.com/tribeshq/tribes/pkg/rollups_contracts/generate/main.go:56.29,58.3 1 0 -github.com/tribeshq/tribes/pkg/rollups_contracts/generate/main.go:59.2,61.29 2 0 -github.com/tribeshq/tribes/pkg/rollups_contracts/generate/main.go:61.29,63.21 2 0 -github.com/tribeshq/tribes/pkg/rollups_contracts/generate/main.go:63.21,65.4 1 0 -github.com/tribeshq/tribes/pkg/rollups_contracts/generate/main.go:66.3,66.30 1 0 -github.com/tribeshq/tribes/pkg/rollups_contracts/generate/main.go:71.40,72.16 1 0 -github.com/tribeshq/tribes/pkg/rollups_contracts/generate/main.go:72.16,74.3 1 0 -github.com/tribeshq/tribes/pkg/rollups_contracts/generate/main.go:79.50,83.42 4 0 -github.com/tribeshq/tribes/pkg/rollups_contracts/generate/main.go:83.42,86.3 2 0 -github.com/tribeshq/tribes/pkg/rollups_contracts/generate/main.go:87.2,87.22 1 0 -github.com/tribeshq/tribes/pkg/rollups_contracts/generate/main.go:91.39,96.2 4 0 -github.com/tribeshq/tribes/pkg/rollups_contracts/generate/main.go:100.77,103.6 3 0 -github.com/tribeshq/tribes/pkg/rollups_contracts/generate/main.go:103.6,105.20 2 0 -github.com/tribeshq/tribes/pkg/rollups_contracts/generate/main.go:105.20,106.9 1 0 -github.com/tribeshq/tribes/pkg/rollups_contracts/generate/main.go:108.3,109.25 2 0 -github.com/tribeshq/tribes/pkg/rollups_contracts/generate/main.go:109.25,112.4 2 0 -github.com/tribeshq/tribes/pkg/rollups_contracts/generate/main.go:114.2,114.17 1 0 -github.com/tribeshq/tribes/pkg/rollups_contracts/generate/main.go:118.36,125.2 4 0 -github.com/tribeshq/tribes/pkg/rollups_contracts/generate/main.go:128.57,143.2 7 0 github.com/tribeshq/tribes/pkg/router/helper.go:8.57,10.18 2 1 github.com/tribeshq/tribes/pkg/router/helper.go:10.18,12.3 1 0 github.com/tribeshq/tribes/pkg/router/helper.go:13.2,13.23 1 1 @@ -1786,3 +843,484 @@ github.com/tribeshq/tribes/pkg/router/router.go:86.53,87.48 1 1 github.com/tribeshq/tribes/pkg/router/router.go:87.48,89.6 1 1 github.com/tribeshq/tribes/pkg/router/router.go:91.4,91.36 1 1 github.com/tribeshq/tribes/pkg/router/router.go:94.2,94.64 1 0 +github.com/tribeshq/tribes/cmd/dapp/dapp.go:9.31,12.16 2 0 +github.com/tribeshq/tribes/cmd/dapp/dapp.go:12.16,14.3 1 0 +github.com/tribeshq/tribes/cmd/dapp/dapp.go:17.2,18.16 2 0 +github.com/tribeshq/tribes/cmd/dapp/dapp.go:18.16,20.3 1 0 +github.com/tribeshq/tribes/cmd/dapp/dapp.go:22.2,23.16 2 0 +github.com/tribeshq/tribes/cmd/dapp/dapp.go:23.16,25.3 1 0 +github.com/tribeshq/tribes/cmd/dapp/dapp.go:27.2,28.16 2 0 +github.com/tribeshq/tribes/cmd/dapp/dapp.go:28.16,30.3 1 0 +github.com/tribeshq/tribes/cmd/dapp/dapp.go:33.2,67.12 21 0 +github.com/tribeshq/tribes/cmd/dapp/dapp.go:70.37,73.16 2 1 +github.com/tribeshq/tribes/cmd/dapp/dapp.go:73.16,75.3 1 0 +github.com/tribeshq/tribes/cmd/dapp/dapp.go:78.2,79.16 2 1 +github.com/tribeshq/tribes/cmd/dapp/dapp.go:79.16,81.3 1 0 +github.com/tribeshq/tribes/cmd/dapp/dapp.go:83.2,84.16 2 1 +github.com/tribeshq/tribes/cmd/dapp/dapp.go:84.16,86.3 1 0 +github.com/tribeshq/tribes/cmd/dapp/dapp.go:88.2,89.16 2 1 +github.com/tribeshq/tribes/cmd/dapp/dapp.go:89.16,91.3 1 0 +github.com/tribeshq/tribes/cmd/dapp/dapp.go:94.2,128.12 21 1 +github.com/tribeshq/tribes/cmd/dapp/main.go:11.13,17.71 4 0 +github.com/tribeshq/tribes/cmd/dapp/main.go:17.71,19.3 1 0 +github.com/tribeshq/tribes/cmd/dapp/main.go:20.2,20.56 1 0 +github.com/tribeshq/tribes/cmd/dapp/main.go:20.56,22.3 1 0 +github.com/tribeshq/tribes/cmd/dapp/wire_gen.go:21.60,30.2 5 0 +github.com/tribeshq/tribes/cmd/dapp/wire_gen.go:32.66,41.2 5 1 +github.com/tribeshq/tribes/cmd/dapp/wire_gen.go:43.68,59.2 10 0 +github.com/tribeshq/tribes/cmd/dapp/wire_gen.go:61.74,77.2 10 1 +github.com/tribeshq/tribes/cmd/dapp/wire_gen.go:79.68,95.2 10 0 +github.com/tribeshq/tribes/cmd/dapp/wire_gen.go:97.74,113.2 10 1 +github.com/tribeshq/tribes/configs/sqlite.go:17.38,30.16 3 0 +github.com/tribeshq/tribes/configs/sqlite.go:30.16,32.3 1 0 +github.com/tribeshq/tribes/configs/sqlite.go:33.2,52.16 4 0 +github.com/tribeshq/tribes/configs/sqlite.go:52.16,54.3 1 0 +github.com/tribeshq/tribes/configs/sqlite.go:55.2,55.16 1 0 +github.com/tribeshq/tribes/configs/sqlite.go:58.44,71.16 3 1 +github.com/tribeshq/tribes/configs/sqlite.go:71.16,73.3 1 0 +github.com/tribeshq/tribes/configs/sqlite.go:74.2,95.16 4 1 +github.com/tribeshq/tribes/configs/sqlite.go:95.16,97.3 1 0 +github.com/tribeshq/tribes/configs/sqlite.go:98.2,98.16 1 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:27.27,34.2 1 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:36.158,38.56 2 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:38.56,40.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:41.2,43.16 3 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:43.16,45.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:46.2,47.16 2 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:47.16,49.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:50.2,51.12 2 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:54.158,57.16 3 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:57.16,59.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:61.2,62.16 2 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:62.16,64.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:66.2,68.16 3 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:68.16,70.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:72.2,74.16 3 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:74.16,76.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:78.2,83.16 3 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:83.16,85.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:86.2,86.35 1 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:86.35,87.154 1 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:87.154,89.4 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:92.2,96.16 2 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:96.16,98.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:99.2,99.42 1 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:99.42,100.154 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:100.154,102.4 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:105.2,109.16 2 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:109.16,111.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:112.2,112.35 1 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:112.35,113.135 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:113.135,115.4 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:118.2,119.119 2 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:119.119,121.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go:123.2,124.12 2 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:21.212,28.2 1 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:30.150,31.35 1 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:32.33,34.57 2 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:34.57,36.4 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:37.3,39.17 3 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:39.17,41.4 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:43.3,45.17 3 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:45.17,47.4 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:48.3,50.17 3 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:50.17,52.4 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:54.3,54.135 1 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:54.135,56.4 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:57.3,58.17 2 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:58.17,60.4 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:61.3,62.13 2 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go:63.10,64.48 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:15.104,19.2 1 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:21.160,23.56 2 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:23.56,25.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:26.2,28.16 3 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:28.16,30.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:31.2,32.16 2 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:32.16,34.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:35.2,36.12 2 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:39.160,41.56 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:41.56,43.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:44.2,46.16 3 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:46.16,48.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:49.2,50.16 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:50.16,52.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:53.2,54.12 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:57.160,59.56 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:59.56,61.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:62.2,64.16 3 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:64.16,66.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:67.2,68.16 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:68.16,70.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go:71.2,72.12 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:18.134,23.2 1 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:25.152,27.56 2 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:27.56,29.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:30.2,32.16 3 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:32.16,34.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:35.2,36.16 2 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:36.16,38.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:39.2,40.12 2 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:43.161,45.56 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:45.56,47.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:48.2,50.16 3 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:50.16,52.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:53.2,54.16 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:54.16,56.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:57.2,58.12 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:61.150,64.16 3 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:64.16,66.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:67.2,68.35 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:68.35,70.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:71.2,72.16 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:72.16,74.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:75.2,76.12 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:79.146,82.16 3 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:82.16,84.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:85.2,86.16 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:86.16,88.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:89.2,90.35 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:90.35,92.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:94.2,94.122 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:94.122,96.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:98.2,99.16 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:99.16,101.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go:102.2,103.12 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:19.100,23.2 1 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:25.114,27.16 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:27.16,29.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:30.2,34.16 3 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:34.16,36.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:37.2,38.16 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:38.16,40.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:41.2,42.12 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:45.114,48.16 3 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:48.16,50.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:51.2,52.16 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:52.16,54.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/auction_inspect_handlers.go:55.2,56.12 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:19.84,23.2 1 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:25.106,27.16 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:27.16,29.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:30.2,34.16 3 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:34.16,36.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:37.2,38.16 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:38.16,40.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:41.2,42.12 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:45.114,47.16 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:47.16,49.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:50.2,54.16 3 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:54.16,56.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:57.2,58.16 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:58.16,60.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:61.2,62.12 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:65.106,68.16 3 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:68.16,70.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:71.2,72.16 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:72.16,74.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/bid_inspect_handlers.go:75.2,76.12 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/contract_inspect_handler.go:19.104,23.2 1 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/contract_inspect_handler.go:25.116,28.16 3 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/contract_inspect_handler.go:28.16,30.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/contract_inspect_handler.go:31.2,32.16 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/contract_inspect_handler.go:32.16,34.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/contract_inspect_handler.go:35.2,36.12 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/contract_inspect_handler.go:39.120,45.16 4 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/contract_inspect_handler.go:45.16,47.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/contract_inspect_handler.go:48.2,49.16 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/contract_inspect_handler.go:49.16,51.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/contract_inspect_handler.go:52.2,53.12 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/user_inspect_handlers.go:23.134,28.2 1 1 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/user_inspect_handlers.go:30.113,36.16 4 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/user_inspect_handlers.go:36.16,38.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/user_inspect_handlers.go:39.2,40.16 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/user_inspect_handlers.go:40.16,42.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/user_inspect_handlers.go:43.2,44.12 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/user_inspect_handlers.go:47.108,50.16 3 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/user_inspect_handlers.go:50.16,52.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/user_inspect_handlers.go:53.2,54.16 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/user_inspect_handlers.go:54.16,56.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/user_inspect_handlers.go:57.2,58.12 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/user_inspect_handlers.go:61.103,66.16 3 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/user_inspect_handlers.go:66.16,68.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/user_inspect_handlers.go:69.2,70.16 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/user_inspect_handlers.go:70.16,72.3 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/handler/inspect_handler/user_inspect_handlers.go:73.2,74.12 2 0 +github.com/tribeshq/tribes/internal/infra/cartesi/middleware/rbac.go:19.78,23.2 1 1 +github.com/tribeshq/tribes/internal/infra/cartesi/middleware/rbac.go:25.115,26.117 1 1 +github.com/tribeshq/tribes/internal/infra/cartesi/middleware/rbac.go:26.117,31.17 3 1 +github.com/tribeshq/tribes/internal/infra/cartesi/middleware/rbac.go:31.17,32.37 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/middleware/rbac.go:32.37,34.5 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/middleware/rbac.go:35.4,35.14 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/middleware/rbac.go:37.3,37.48 1 1 +github.com/tribeshq/tribes/internal/infra/cartesi/middleware/rbac.go:37.48,39.4 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/middleware/rbac.go:40.3,40.54 1 1 +github.com/tribeshq/tribes/internal/infra/cartesi/middleware/tlsn.go:15.78,19.2 1 1 +github.com/tribeshq/tribes/internal/infra/cartesi/middleware/tlsn.go:21.102,22.117 1 1 +github.com/tribeshq/tribes/internal/infra/cartesi/middleware/tlsn.go:22.117,27.17 3 1 +github.com/tribeshq/tribes/internal/infra/cartesi/middleware/tlsn.go:27.17,32.4 1 0 +github.com/tribeshq/tribes/internal/infra/cartesi/middleware/tlsn.go:37.3,37.54 1 1 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:12.71,16.2 1 1 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:18.97,20.16 2 1 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:20.16,22.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:23.2,23.19 1 1 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:26.80,29.16 3 1 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:29.16,30.36 1 0 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:30.36,32.4 1 0 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:33.3,33.18 1 0 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:35.2,35.22 1 1 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:38.85,41.16 3 0 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:41.16,43.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:44.2,44.22 1 0 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:47.80,50.16 3 0 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:50.16,52.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:53.2,53.22 1 0 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:56.97,59.16 3 1 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:59.16,60.36 1 0 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:60.36,62.4 1 0 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:63.3,63.18 1 0 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:66.2,72.22 6 1 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:72.22,74.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:75.2,75.22 1 1 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:78.64,80.16 2 0 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:80.16,82.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/auction_repository_sqlite.go:83.2,83.12 1 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:14.63,18.2 1 1 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:20.81,22.16 2 1 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:22.16,24.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:25.2,25.19 1 1 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:28.100,31.16 3 1 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:31.16,33.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:34.2,34.18 1 1 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:37.73,40.16 3 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:40.16,42.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:43.2,43.18 1 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:46.83,49.16 3 1 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:49.16,51.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:52.2,52.18 1 1 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:55.68,58.16 3 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:58.16,60.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:61.2,61.18 1 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:64.81,67.16 3 1 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:67.16,68.36 1 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:68.36,70.4 1 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:71.3,71.18 1 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:74.2,82.22 8 1 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:82.22,84.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:85.2,85.19 1 1 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:88.56,90.22 2 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:90.22,92.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:93.2,93.27 1 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:93.27,95.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/bid_repository_sqlite.go:96.2,96.12 1 0 +github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:14.73,18.2 1 1 +github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:20.104,22.16 2 1 +github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:22.16,24.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:25.2,25.22 1 1 +github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:28.83,31.16 3 0 +github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:31.16,33.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:34.2,34.23 1 0 +github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:37.98,40.16 3 1 +github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:40.16,42.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:43.2,43.23 1 1 +github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:46.101,49.16 3 0 +github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:49.16,50.36 1 0 +github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:50.36,52.4 1 0 +github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:53.3,53.18 1 0 +github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:56.2,60.22 4 0 +github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:60.22,62.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:63.2,63.23 1 0 +github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:66.72,68.22 2 0 +github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:68.22,70.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:71.2,71.27 1 0 +github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:71.27,73.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/contract_repository_sqlite.go:74.2,74.12 1 0 +github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:15.65,19.2 1 1 +github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:21.85,23.16 2 1 +github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:23.16,25.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:26.2,26.19 1 1 +github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:29.82,32.16 3 1 +github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:32.16,34.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:35.2,35.19 1 1 +github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:38.101,41.16 3 1 +github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:41.16,43.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:44.2,44.19 1 1 +github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:47.71,50.16 3 0 +github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:50.16,52.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:53.2,53.19 1 0 +github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:56.87,58.22 2 0 +github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:58.22,60.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:61.2,61.27 1 0 +github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:61.27,63.3 1 0 +github.com/tribeshq/tribes/internal/infra/repository/user_respository_sqlite.go:64.2,64.12 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/create_auction.go:30.95,34.2 1 1 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/create_auction.go:36.134,38.16 2 1 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/create_auction.go:38.16,40.3 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/create_auction.go:41.2,42.16 2 1 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/create_auction.go:42.16,44.3 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/create_auction.go:45.2,53.8 1 1 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/delete_auction.go:15.96,17.2 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/delete_auction.go:19.76,21.2 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_all_auctions.go:13.100,15.2 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_all_auctions.go:17.79,19.16 2 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_all_auctions.go:19.16,21.3 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_all_auctions.go:22.2,23.30 2 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_all_auctions.go:23.30,25.36 2 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_all_auctions.go:25.36,36.4 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_all_auctions.go:37.3,46.4 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_all_auctions.go:48.2,48.21 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_auction_by_id.go:15.100,17.2 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_auction_by_id.go:19.105,21.16 2 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_auction_by_id.go:21.16,23.3 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_auction_by_id.go:24.2,25.31 2 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_auction_by_id.go:25.31,36.3 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/find_auction_by_id.go:37.2,46.8 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:30.132,35.2 1 1 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:37.104,39.16 2 1 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:39.16,41.3 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:43.2,43.55 1 1 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:43.55,45.3 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:47.2,48.16 2 1 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:48.16,50.3 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:52.2,52.20 1 1 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:52.20,56.17 4 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:56.17,58.4 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:59.3,69.9 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:72.2,72.39 1 1 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:72.39,74.3 1 1 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:76.2,78.27 2 1 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:78.27,79.38 1 1 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:79.38,83.18 4 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:83.18,85.5 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:86.4,86.12 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:89.3,89.51 1 1 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:89.51,93.18 4 1 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:93.18,95.5 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:96.4,96.64 1 1 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:97.9,108.18 3 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:108.18,110.5 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:113.4,122.18 3 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:122.18,124.5 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:127.4,128.18 2 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:128.18,130.5 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:132.4,132.35 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:136.2,139.16 4 1 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:139.16,141.3 1 0 +github.com/tribeshq/tribes/internal/usecase/auction_usecase/finish_auction.go:143.2,153.8 1 1 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:31.170,37.2 1 1 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:39.151,41.16 2 1 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:41.16,43.3 1 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:44.2,44.26 1 1 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:44.26,46.3 1 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:48.2,48.55 1 1 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:48.55,50.3 1 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:51.2,52.16 2 1 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:52.16,54.3 1 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:55.2,55.77 1 1 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:55.77,57.3 1 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:59.2,59.61 1 1 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:59.61,61.3 1 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:63.2,64.16 2 1 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:64.16,66.3 1 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:67.2,68.16 2 1 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:68.16,70.3 1 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/create_bid.go:72.2,80.8 1 1 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/delete_bid.go:15.80,19.2 1 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/delete_bid.go:21.68,23.2 1 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_all_bids.go:13.84,17.2 1 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_all_bids.go:19.71,21.16 2 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_all_bids.go:21.16,23.3 1 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_all_bids.go:24.2,25.26 2 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_all_bids.go:25.26,36.3 1 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_all_bids.go:37.2,37.21 1 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_bid_by_id.go:15.84,19.2 1 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_bid_by_id.go:21.93,23.16 2 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_bid_by_id.go:23.16,25.3 1 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_bid_by_id.go:26.2,35.8 1 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_bids_by_auction_id.go:17.100,21.2 1 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_bids_by_auction_id.go:23.121,25.16 2 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_bids_by_auction_id.go:25.16,27.3 1 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_bids_by_auction_id.go:28.2,29.26 2 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_bids_by_auction_id.go:29.26,40.3 1 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_bids_by_auction_id.go:41.2,41.21 1 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_bids_by_state.go:18.92,22.2 1 1 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_bids_by_state.go:24.108,26.16 2 1 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_bids_by_state.go:26.16,28.3 1 0 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_bids_by_state.go:29.2,30.26 2 1 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_bids_by_state.go:30.26,41.3 1 1 +github.com/tribeshq/tribes/internal/usecase/bid_usecase/find_bids_by_state.go:42.2,42.20 1 1 +github.com/tribeshq/tribes/internal/usecase/contract_usecase/create_contract.go:25.100,29.2 1 1 +github.com/tribeshq/tribes/internal/usecase/contract_usecase/create_contract.go:31.137,33.16 2 1 +github.com/tribeshq/tribes/internal/usecase/contract_usecase/create_contract.go:33.16,35.3 1 0 +github.com/tribeshq/tribes/internal/usecase/contract_usecase/create_contract.go:36.2,37.16 2 1 +github.com/tribeshq/tribes/internal/usecase/contract_usecase/create_contract.go:37.16,39.3 1 0 +github.com/tribeshq/tribes/internal/usecase/contract_usecase/create_contract.go:40.2,46.20 2 1 +github.com/tribeshq/tribes/internal/usecase/contract_usecase/delete_contract.go:13.100,17.2 1 0 +github.com/tribeshq/tribes/internal/usecase/contract_usecase/delete_contract.go:19.78,21.2 1 0 +github.com/tribeshq/tribes/internal/usecase/contract_usecase/find_all_contracts.go:11.104,15.2 1 0 +github.com/tribeshq/tribes/internal/usecase/contract_usecase/find_all_contracts.go:17.80,19.16 2 0 +github.com/tribeshq/tribes/internal/usecase/contract_usecase/find_all_contracts.go:19.16,21.3 1 0 +github.com/tribeshq/tribes/internal/usecase/contract_usecase/find_all_contracts.go:22.2,23.31 2 0 +github.com/tribeshq/tribes/internal/usecase/contract_usecase/find_all_contracts.go:23.31,32.3 2 0 +github.com/tribeshq/tribes/internal/usecase/contract_usecase/find_all_contracts.go:33.2,33.20 1 0 +github.com/tribeshq/tribes/internal/usecase/contract_usecase/find_contract_by_symbol.go:15.112,19.2 1 1 +github.com/tribeshq/tribes/internal/usecase/contract_usecase/find_contract_by_symbol.go:21.116,23.16 2 1 +github.com/tribeshq/tribes/internal/usecase/contract_usecase/find_contract_by_symbol.go:23.16,25.3 1 0 +github.com/tribeshq/tribes/internal/usecase/contract_usecase/find_contract_by_symbol.go:26.2,32.8 1 1 +github.com/tribeshq/tribes/internal/usecase/contract_usecase/update_contract.go:28.100,32.2 1 0 +github.com/tribeshq/tribes/internal/usecase/contract_usecase/update_contract.go:34.137,41.16 2 0 +github.com/tribeshq/tribes/internal/usecase/contract_usecase/update_contract.go:41.16,43.3 1 0 +github.com/tribeshq/tribes/internal/usecase/contract_usecase/update_contract.go:44.2,50.8 1 0 +github.com/tribeshq/tribes/internal/usecase/user_usecase/create_user.go:27.84,31.2 1 1 +github.com/tribeshq/tribes/internal/usecase/user_usecase/create_user.go:33.125,35.16 2 1 +github.com/tribeshq/tribes/internal/usecase/user_usecase/create_user.go:35.16,37.3 1 0 +github.com/tribeshq/tribes/internal/usecase/user_usecase/create_user.go:38.2,39.16 2 1 +github.com/tribeshq/tribes/internal/usecase/user_usecase/create_user.go:39.16,41.3 1 0 +github.com/tribeshq/tribes/internal/usecase/user_usecase/create_user.go:42.2,48.8 1 1 +github.com/tribeshq/tribes/internal/usecase/user_usecase/delete_user_by_address.go:17.102,21.2 1 0 +github.com/tribeshq/tribes/internal/usecase/user_usecase/delete_user_by_address.go:23.88,25.2 1 0 +github.com/tribeshq/tribes/internal/usecase/user_usecase/find_all_users.go:13.88,17.2 1 0 +github.com/tribeshq/tribes/internal/usecase/user_usecase/find_all_users.go:19.73,21.16 2 0 +github.com/tribeshq/tribes/internal/usecase/user_usecase/find_all_users.go:21.16,23.3 1 0 +github.com/tribeshq/tribes/internal/usecase/user_usecase/find_all_users.go:24.2,25.27 2 0 +github.com/tribeshq/tribes/internal/usecase/user_usecase/find_all_users.go:25.27,34.3 1 0 +github.com/tribeshq/tribes/internal/usecase/user_usecase/find_all_users.go:35.2,35.21 1 0 +github.com/tribeshq/tribes/internal/usecase/user_usecase/find_user_by_address.go:16.98,20.2 1 1 +github.com/tribeshq/tribes/internal/usecase/user_usecase/find_user_by_address.go:22.106,24.16 2 1 +github.com/tribeshq/tribes/internal/usecase/user_usecase/find_user_by_address.go:24.16,26.3 1 0 +github.com/tribeshq/tribes/internal/usecase/user_usecase/find_user_by_address.go:27.2,34.8 1 1 +github.com/tribeshq/tribes/internal/usecase/user_usecase/find_user_by_role.go:15.92,19.2 1 1 +github.com/tribeshq/tribes/internal/usecase/user_usecase/find_user_by_role.go:21.100,23.16 2 1 +github.com/tribeshq/tribes/internal/usecase/user_usecase/find_user_by_role.go:23.16,25.3 1 0 +github.com/tribeshq/tribes/internal/usecase/user_usecase/find_user_by_role.go:26.2,33.8 1 1 +github.com/tribeshq/tribes/pkg/custom_type/address.go:14.47,16.2 1 1 +github.com/tribeshq/tribes/pkg/custom_type/address.go:18.49,19.18 1 1 +github.com/tribeshq/tribes/pkg/custom_type/address.go:19.18,22.3 2 0 +github.com/tribeshq/tribes/pkg/custom_type/address.go:24.2,24.27 1 1 +github.com/tribeshq/tribes/pkg/custom_type/address.go:25.14,26.37 1 1 +github.com/tribeshq/tribes/pkg/custom_type/address.go:27.14,28.39 1 0 +github.com/tribeshq/tribes/pkg/custom_type/address.go:29.10,30.47 1 0 +github.com/tribeshq/tribes/pkg/custom_type/address.go:32.2,32.12 1 1 +github.com/tribeshq/tribes/pkg/custom_type/address.go:35.48,37.2 1 1 +github.com/tribeshq/tribes/pkg/custom_type/address.go:39.48,41.2 1 1 +github.com/tribeshq/tribes/pkg/custom_type/address.go:43.52,45.58 2 1 +github.com/tribeshq/tribes/pkg/custom_type/address.go:45.58,47.3 1 0 +github.com/tribeshq/tribes/pkg/custom_type/address.go:48.2,49.12 2 1 +github.com/tribeshq/tribes/pkg/custom_type/bigint.go:14.39,16.2 1 1 +github.com/tribeshq/tribes/pkg/custom_type/bigint.go:18.48,19.18 1 1 +github.com/tribeshq/tribes/pkg/custom_type/bigint.go:19.18,22.3 2 0 +github.com/tribeshq/tribes/pkg/custom_type/bigint.go:23.2,23.27 1 1 +github.com/tribeshq/tribes/pkg/custom_type/bigint.go:24.13,25.24 1 1 +github.com/tribeshq/tribes/pkg/custom_type/bigint.go:26.14,29.10 3 0 +github.com/tribeshq/tribes/pkg/custom_type/bigint.go:29.10,31.4 1 0 +github.com/tribeshq/tribes/pkg/custom_type/bigint.go:32.10,33.47 1 0 +github.com/tribeshq/tribes/pkg/custom_type/bigint.go:35.2,35.12 1 1 +github.com/tribeshq/tribes/pkg/custom_type/bigint.go:38.47,40.2 1 1 +github.com/tribeshq/tribes/pkg/custom_type/bigint.go:42.47,44.2 1 1 +github.com/tribeshq/tribes/pkg/custom_type/bigint.go:46.51,49.54 3 1 +github.com/tribeshq/tribes/pkg/custom_type/bigint.go:49.54,51.3 1 1 +github.com/tribeshq/tribes/pkg/custom_type/bigint.go:51.8,52.57 1 0 +github.com/tribeshq/tribes/pkg/custom_type/bigint.go:52.57,54.4 1 0 +github.com/tribeshq/tribes/pkg/custom_type/bigint.go:57.2,59.9 3 1 +github.com/tribeshq/tribes/pkg/custom_type/bigint.go:59.9,61.3 1 0 +github.com/tribeshq/tribes/pkg/custom_type/bigint.go:62.2,62.12 1 1 diff --git a/go.mod b/go.mod index fee7467..efcf637 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/tribeshq/tribes -go 1.22.1 +go 1.22.5 require ( github.com/ethereum/go-ethereum v1.13.14 diff --git a/internal/domain/entity/auction.go b/internal/domain/entity/auction.go index 2404b95..8498970 100644 --- a/internal/domain/entity/auction.go +++ b/internal/domain/entity/auction.go @@ -3,6 +3,7 @@ package entity import ( "errors" + "github.com/ethereum/go-ethereum/common" "github.com/tribeshq/tribes/pkg/custom_type" ) @@ -30,25 +31,25 @@ const ( ) type Auction struct { - Id uint `json:"id" gorm:"primaryKey"` - Creator custom_type.Address `json:"creator,omitempty" gorm:"type:text;not null"` - DebtIssued custom_type.BigInt `json:"debt_issued,omitempty" gorm:"type:bigint;not null"` - InterestRate custom_type.BigInt `json:"interest_rate,omitempty" gorm:"type:bigint;not null"` - State AuctionState `json:"state,omitempty" gorm:"type:text;not null"` - Bids []*Bid `json:"bids,omitempty" gorm:"foreignKey:AuctionId;constraint:OnDelete:CASCADE"` - ExpiresAt int64 `json:"expires_at,omitempty" gorm:"not null"` - CreatedAt int64 `json:"created_at,omitempty" gorm:"not null"` - UpdatedAt int64 `json:"updated_at,omitempty" gorm:"default:0"` + Id uint `json:"id" gorm:"primaryKey"` + Creator custom_type.Address `json:"creator,omitempty" gorm:"type:text;not null"` + DebtIssued custom_type.BigInt `json:"debt_issued,omitempty" gorm:"type:bigint;not null"` + MaxInterestRate custom_type.BigInt `json:"max_interest_rate,omitempty" gorm:"type:bigint;not null"` + State AuctionState `json:"state,omitempty" gorm:"type:text;not null"` + Bids []*Bid `json:"bids,omitempty" gorm:"foreignKey:AuctionId;constraint:OnDelete:CASCADE"` + ExpiresAt int64 `json:"expires_at,omitempty" gorm:"not null"` + CreatedAt int64 `json:"created_at,omitempty" gorm:"not null"` + UpdatedAt int64 `json:"updated_at,omitempty" gorm:"default:0"` } -func NewAuction(creator custom_type.Address, debt_issued custom_type.BigInt, interestRate custom_type.BigInt, expiresAt int64, createdAt int64) (*Auction, error) { +func NewAuction(creator custom_type.Address, debt_issued custom_type.BigInt, maxInterestRate custom_type.BigInt, expiresAt int64, createdAt int64) (*Auction, error) { auction := &Auction{ - Creator: creator, - DebtIssued: debt_issued, - InterestRate: interestRate, - State: AuctionOngoing, - ExpiresAt: expiresAt, - CreatedAt: createdAt, + Creator: creator, + DebtIssued: debt_issued, + MaxInterestRate: maxInterestRate, + State: AuctionOngoing, + ExpiresAt: expiresAt, + CreatedAt: createdAt, } if err := auction.Validate(); err != nil { return nil, err @@ -57,7 +58,7 @@ func NewAuction(creator custom_type.Address, debt_issued custom_type.BigInt, int } func (a *Auction) Validate() error { - if a.DebtIssued.Int.Sign() == 0 || a.InterestRate.Int.Sign() == 0 || a.ExpiresAt == 0 || a.CreatedAt == 0 || a.CreatedAt >= a.ExpiresAt { + if a.Creator.Address == (common.Address{}) || a.DebtIssued.Int.Sign() == 0 || a.MaxInterestRate.Int.Sign() == 0 || a.ExpiresAt == 0 || a.CreatedAt == 0 || a.CreatedAt >= a.ExpiresAt { return ErrInvalidAuction } return nil diff --git a/internal/domain/entity/auction_test.go b/internal/domain/entity/auction_test.go index 6754f25..d1fe7c4 100644 --- a/internal/domain/entity/auction_test.go +++ b/internal/domain/entity/auction_test.go @@ -21,7 +21,7 @@ func TestNewAuction(t *testing.T) { assert.NoError(t, err) assert.NotNil(t, auction) assert.Equal(t, debt_issued, auction.DebtIssued) - assert.Equal(t, interestRate, auction.InterestRate) + assert.Equal(t, interestRate, auction.MaxInterestRate) assert.Equal(t, AuctionOngoing, auction.State) assert.Equal(t, expiresAt, auction.ExpiresAt) assert.Equal(t, createdAt, auction.CreatedAt) diff --git a/internal/domain/entity/bid.go b/internal/domain/entity/bid.go index 7995fc6..efaed53 100644 --- a/internal/domain/entity/bid.go +++ b/internal/domain/entity/bid.go @@ -29,6 +29,7 @@ const ( BidStateAccepted BidState = "accepted" BidStateExpired BidState = "partially_accepted" BidStateRejected BidState = "rejected" + BidStatePaid BidState = "paid" ) type Bid struct { diff --git a/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go b/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go index d4ffe9a..fedbeee 100644 --- a/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go +++ b/internal/infra/cartesi/handler/advance_handler/auction_advance_handlers.go @@ -120,6 +120,6 @@ func (h *AuctionAdvanceHandlers) FinishAuctionHandler(env rollmelette.Env, metad env.Report([]byte(err.Error())) } - env.Notice([]byte(fmt.Sprintf("finished auction with - id: %v, required amount: %v and price limit per credit: %v", finishedAuction.Id, finishedAuction.DebtIssued.Int, finishedAuction.InterestRate.Int))) + env.Notice([]byte(fmt.Sprintf("finished auction with - id: %v, required amount: %v and max interest rate: %v", finishedAuction.Id, finishedAuction.DebtIssued.Int, finishedAuction.MaxInterestRate.Int))) return nil } diff --git a/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go b/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go index 2aff655..d2c5b60 100644 --- a/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go +++ b/internal/infra/cartesi/handler/advance_handler/bid_advance_handlers.go @@ -58,9 +58,9 @@ func (h *BidAdvanceHandlers) CreateBidHandler(env rollmelette.Env, metadata roll if err != nil { return err } - env.Notice(append([]byte("created bid - "), bid...)) + env.Notice(append([]byte("bid created - "), bid...)) return nil default: return fmt.Errorf("unsupported deposit type") } -} \ No newline at end of file +} diff --git a/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go b/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go index 11d918d..6215834 100644 --- a/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go +++ b/internal/infra/cartesi/handler/advance_handler/contract_advance_handler.go @@ -32,7 +32,7 @@ func (h *ContractAdvanceHandlers) CreateContractHandler(env rollmelette.Env, met if err != nil { return err } - env.Notice(append([]byte("created contract - "), contract...)) + env.Notice(append([]byte("contract created - "), contract...)) return nil } diff --git a/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go b/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go index 4f27538..0a0e647 100644 --- a/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go +++ b/internal/infra/cartesi/handler/advance_handler/user_advance_handler.go @@ -36,7 +36,7 @@ func (h *UserAdvanceHandlers) CreateUserHandler(env rollmelette.Env, metadata ro if err != nil { return err } - env.Notice(append([]byte("created user - "), user...)) + env.Notice(append([]byte("user created - "), user...)) return nil } @@ -54,7 +54,7 @@ func (h *UserAdvanceHandlers) DeleteUserByAddressHandler(env rollmelette.Env, me if err != nil { return err } - env.Notice(append([]byte("deleted user with - "), user...)) + env.Notice(append([]byte("user deleted - "), user...)) return nil } diff --git a/internal/infra/cartesi/middleware/rbac.go b/internal/infra/cartesi/middleware/rbac.go index 89ea8f1..8e794b5 100644 --- a/internal/infra/cartesi/middleware/rbac.go +++ b/internal/infra/cartesi/middleware/rbac.go @@ -34,7 +34,7 @@ func (m *RBACMiddleware) Middleware(handlerFunc router.AdvanceHandlerFunc, role } return err } - if user.Role != role { + if user.Role != role && user.Role != "admin" { return fmt.Errorf("user with address: %v don't have necessary permission: %v", user.Address, role) } return handlerFunc(env, metadata, deposit, payload) diff --git a/internal/infra/cartesi/middleware/tlsn.go b/internal/infra/cartesi/middleware/tlsn.go index fb58823..6b583cc 100644 --- a/internal/infra/cartesi/middleware/tlsn.go +++ b/internal/infra/cartesi/middleware/tlsn.go @@ -1,10 +1,6 @@ package middleware import ( - "database/sql" - "errors" - "fmt" - "github.com/rollmelette/rollmelette" "github.com/tribeshq/tribes/internal/domain/entity" "github.com/tribeshq/tribes/internal/usecase/user_usecase" @@ -25,18 +21,18 @@ func NewTLSNMiddleware(userRepository entity.UserRepository) *TLSNMiddleware { func (m *TLSNMiddleware) Middleware(handlerFunc router.AdvanceHandlerFunc) router.AdvanceHandlerFunc { return func(env rollmelette.Env, metadata rollmelette.Metadata, deposit rollmelette.Deposit, payload []byte) error { findUserByAddress := user_usecase.NewFindUserByAddressUseCase(m.UserRepository) - user, err := findUserByAddress.Execute(&user_usecase.FindUserByAddressInputDTO{ + _, err := findUserByAddress.Execute(&user_usecase.FindUserByAddressInputDTO{ Address: custom_type.NewAddress(metadata.MsgSender), }) if err != nil { - if errors.Is(err, sql.ErrNoRows) { - return fmt.Errorf("user not found during RBAC middleware check") - } + // if errors.Is(err, sql.ErrNoRows) { + // return fmt.Errorf("user not found during RBAC middleware check") + // } return err } - if user.Role != "creator" { - return fmt.Errorf("user with address: %v don't have necessary permission", user.Address) - } + // if user.Role != "creator" { + // return fmt.Errorf("user with address: %v don't have necessary permission", user.Address) + // } // TODO: call tlsn verifier here return handlerFunc(env, metadata, deposit, payload) } diff --git a/internal/infra/repository/auction_repository_sqlite.go b/internal/infra/repository/auction_repository_sqlite.go index e07ad6c..c22d1ec 100644 --- a/internal/infra/repository/auction_repository_sqlite.go +++ b/internal/infra/repository/auction_repository_sqlite.go @@ -63,7 +63,7 @@ func (r *AuctionRepositorySqlite) UpdateAuction(input *entity.Auction) (*entity. return nil, err } - auction.InterestRate = input.InterestRate + auction.MaxInterestRate = input.MaxInterestRate auction.State = input.State auction.ExpiresAt = input.ExpiresAt auction.UpdatedAt = input.UpdatedAt diff --git a/internal/usecase/auction_usecase/create_auction.go b/internal/usecase/auction_usecase/create_auction.go index 3391d34..23552b2 100644 --- a/internal/usecase/auction_usecase/create_auction.go +++ b/internal/usecase/auction_usecase/create_auction.go @@ -7,21 +7,20 @@ import ( ) type CreateAuctionInputDTO struct { - Creator custom_type.Address `json:"creator,omitempty"` - DebtIssued custom_type.BigInt `json:"debt_issued"` - InterestRate custom_type.BigInt `json:"interest_rate"` - ExpiresAt int64 `json:"expires_at"` - CreatedAt int64 `json:"created_at"` + DebtIssued custom_type.BigInt `json:"debt_issued"` + MaxInterestRate custom_type.BigInt `json:"max_interest_rate"` + ExpiresAt int64 `json:"expires_at"` + CreatedAt int64 `json:"created_at"` } type CreateAuctionOutputDTO struct { - Id uint `json:"id"` - Creator custom_type.Address `json:"creator,omitempty"` - DebtIssued custom_type.BigInt `json:"debt_issued"` - InterestRate custom_type.BigInt `json:"interest_rate"` - State string `json:"state"` - ExpiresAt int64 `json:"expires_at"` - CreatedAt int64 `json:"created_at"` + Id uint `json:"id"` + Creator custom_type.Address `json:"creator,omitempty"` + DebtIssued custom_type.BigInt `json:"debt_issued"` + MaxInterestRate custom_type.BigInt `json:"max_interest_rate"` + State string `json:"state"` + ExpiresAt int64 `json:"expires_at"` + CreatedAt int64 `json:"created_at"` } type CreateAuctionUseCase struct { @@ -35,7 +34,7 @@ func NewCreateAuctionUseCase(deviceRepository entity.AuctionRepository) *CreateA } func (c *CreateAuctionUseCase) Execute(input *CreateAuctionInputDTO, metadata rollmelette.Metadata) (*CreateAuctionOutputDTO, error) { - auction, err := entity.NewAuction(input.Creator, input.DebtIssued, input.InterestRate, input.ExpiresAt, metadata.BlockTimestamp) + auction, err := entity.NewAuction(custom_type.NewAddress(metadata.MsgSender), input.DebtIssued, input.MaxInterestRate, input.ExpiresAt, metadata.BlockTimestamp) if err != nil { return nil, err } @@ -44,12 +43,12 @@ func (c *CreateAuctionUseCase) Execute(input *CreateAuctionInputDTO, metadata ro return nil, err } return &CreateAuctionOutputDTO{ - Id: res.Id, - Creator: res.Creator, - DebtIssued: res.DebtIssued, - InterestRate: res.InterestRate, - State: string(res.State), - ExpiresAt: res.ExpiresAt, - CreatedAt: res.CreatedAt, + Id: res.Id, + Creator: res.Creator, + DebtIssued: res.DebtIssued, + MaxInterestRate: res.MaxInterestRate, + State: string(res.State), + ExpiresAt: res.ExpiresAt, + CreatedAt: res.CreatedAt, }, nil } diff --git a/internal/usecase/auction_usecase/find_all_auctions.go b/internal/usecase/auction_usecase/find_all_auctions.go index 581cfed..186c7c0 100644 --- a/internal/usecase/auction_usecase/find_all_auctions.go +++ b/internal/usecase/auction_usecase/find_all_auctions.go @@ -35,14 +35,14 @@ func (f *FindAllAuctionsUseCase) Execute() (*FindAllAuctionsOutputDTO, error) { } } output[i] = &FindAuctionOutputDTO{ - Id: auction.Id, - DebtIssued: auction.DebtIssued, - InterestRate: auction.InterestRate, - State: string(auction.State), - Bids: bids, - ExpiresAt: auction.ExpiresAt, - CreatedAt: auction.CreatedAt, - UpdatedAt: auction.UpdatedAt, + Id: auction.Id, + DebtIssued: auction.DebtIssued, + MaxInterestRate: auction.MaxInterestRate, + State: string(auction.State), + Bids: bids, + ExpiresAt: auction.ExpiresAt, + CreatedAt: auction.CreatedAt, + UpdatedAt: auction.UpdatedAt, } } return &output, nil diff --git a/internal/usecase/auction_usecase/find_auction_by_id.go b/internal/usecase/auction_usecase/find_auction_by_id.go index 9c94a4d..813702d 100644 --- a/internal/usecase/auction_usecase/find_auction_by_id.go +++ b/internal/usecase/auction_usecase/find_auction_by_id.go @@ -37,7 +37,7 @@ func (f *FindAuctionByIdUseCase) Execute(input *FindAuctionByIdInputDTO) (*FindA return &FindAuctionOutputDTO{ Id: res.Id, DebtIssued: res.DebtIssued, - InterestRate: res.InterestRate, + MaxInterestRate: res.MaxInterestRate, State: string(res.State), Bids: bids, ExpiresAt: res.ExpiresAt, diff --git a/internal/usecase/auction_usecase/finish_auction.go b/internal/usecase/auction_usecase/finish_auction.go index 79aba3a..ddd5ae4 100644 --- a/internal/usecase/auction_usecase/finish_auction.go +++ b/internal/usecase/auction_usecase/finish_auction.go @@ -11,15 +11,15 @@ import ( ) type FinishAuctionOutputDTO struct { - Id uint `json:"id"` - Creator custom_type.Address `json:"creator,omitempty"` - DebtIssued custom_type.BigInt `json:"debt_issued,omitempty"` - InterestRate custom_type.BigInt `json:"interest_rate,omitempty"` - State string `json:"state,omitempty"` - Bids []*entity.Bid `json:"bids,omitempty"` - ExpiresAt int64 `json:"expires_at,omitempty"` - CreatedAt int64 `json:"created_at,omitempty"` - UpdatedAt int64 `json:"updated_at,omitempty"` + Id uint `json:"id"` + Creator custom_type.Address `json:"creator,omitempty"` + DebtIssued custom_type.BigInt `json:"debt_issued,omitempty"` + MaxInterestRate custom_type.BigInt `json:"max_interest_rate,omitempty"` + State string `json:"state,omitempty"` + Bids []*entity.Bid `json:"bids,omitempty"` + ExpiresAt int64 `json:"expires_at,omitempty"` + CreatedAt int64 `json:"created_at,omitempty"` + UpdatedAt int64 `json:"updated_at,omitempty"` } type FinishAuctionUseCase struct { @@ -57,15 +57,15 @@ func (u *FinishAuctionUseCase) Execute(metadata rollmelette.Metadata) (*FinishAu return nil, err } return &FinishAuctionOutputDTO{ - Id: res.Id, - Creator: res.Creator, - DebtIssued: res.DebtIssued, - InterestRate: res.InterestRate, - State: string(res.State), - Bids: bids, - ExpiresAt: res.ExpiresAt, - CreatedAt: res.CreatedAt, - UpdatedAt: res.UpdatedAt, + Id: res.Id, + Creator: res.Creator, + DebtIssued: res.DebtIssued, + MaxInterestRate: res.MaxInterestRate, + State: string(res.State), + Bids: bids, + ExpiresAt: res.ExpiresAt, + CreatedAt: res.CreatedAt, + UpdatedAt: res.UpdatedAt, }, nil } @@ -141,14 +141,14 @@ func (u *FinishAuctionUseCase) Execute(metadata rollmelette.Metadata) (*FinishAu } return &FinishAuctionOutputDTO{ - Id: res.Id, - Creator: res.Creator, - DebtIssued: res.DebtIssued, - InterestRate: res.InterestRate, - State: string(res.State), - Bids: bids, - ExpiresAt: res.ExpiresAt, - CreatedAt: res.CreatedAt, - UpdatedAt: res.UpdatedAt, + Id: res.Id, + Creator: res.Creator, + DebtIssued: res.DebtIssued, + MaxInterestRate: res.MaxInterestRate, + State: string(res.State), + Bids: bids, + ExpiresAt: res.ExpiresAt, + CreatedAt: res.CreatedAt, + UpdatedAt: res.UpdatedAt, }, nil } diff --git a/internal/usecase/auction_usecase/general_dto.go b/internal/usecase/auction_usecase/general_dto.go index 2ae2070..e4da982 100644 --- a/internal/usecase/auction_usecase/general_dto.go +++ b/internal/usecase/auction_usecase/general_dto.go @@ -5,15 +5,15 @@ import ( ) type FindAuctionOutputDTO struct { - Id uint `json:"id"` - Creator custom_type.Address `json:"creator"` - DebtIssued custom_type.BigInt `json:"debt_issued"` - InterestRate custom_type.BigInt `json:"interest_rate"` - State string `json:"state"` - Bids []*FindAuctionOutputSubDTO `json:"bids"` - ExpiresAt int64 `json:"expires_at"` - CreatedAt int64 `json:"created_at"` - UpdatedAt int64 `json:"updated_at"` + Id uint `json:"id"` + Creator custom_type.Address `json:"creator"` + DebtIssued custom_type.BigInt `json:"debt_issued"` + MaxInterestRate custom_type.BigInt `json:"max_interest_rate"` + State string `json:"state"` + Bids []*FindAuctionOutputSubDTO `json:"bids"` + ExpiresAt int64 `json:"expires_at"` + CreatedAt int64 `json:"created_at"` + UpdatedAt int64 `json:"updated_at"` } type FindAuctionOutputSubDTO struct { diff --git a/internal/usecase/bid_usecase/create_bid.go b/internal/usecase/bid_usecase/create_bid.go index 34d10ba..d741cfc 100644 --- a/internal/usecase/bid_usecase/create_bid.go +++ b/internal/usecase/bid_usecase/create_bid.go @@ -48,16 +48,16 @@ func (c *CreateBidUseCase) Execute(input *CreateBidInputDTO, deposit rollmelette if metadata.BlockTimestamp > activeAuction.ExpiresAt { return nil, fmt.Errorf("active auction expired, cannot create bid") } - volt, err := c.ContractRepository.FindContractBySymbol("VOLT") + stablecoin, err := c.ContractRepository.FindContractBySymbol("STABLECOIN") if err != nil { return nil, err } - if deposit.(*rollmelette.ERC20Deposit).Token != volt.Address.Address { + if deposit.(*rollmelette.ERC20Deposit).Token != stablecoin.Address.Address { return nil, fmt.Errorf("invalid contract address provided for bid creation: %v", deposit.(*rollmelette.ERC20Deposit).Token) } - if input.Price.Cmp(activeAuction.InterestRate.Int) == 1 { - return nil, fmt.Errorf("bid price exceeds active auction price limit") + if input.Price.Cmp(activeAuction.MaxInterestRate.Int) == 1 { + return nil, fmt.Errorf("bid price exceeds active auction max interest rate") } bid, err := entity.NewBid(activeAuction.Id, custom_type.NewAddress(deposit.(*rollmelette.ERC20Deposit).Sender), custom_type.NewBigInt(deposit.(*rollmelette.ERC20Deposit).Amount), input.Price, metadata.BlockTimestamp)