Skip to content

Commit

Permalink
dep replace with go mod
Browse files Browse the repository at this point in the history
  • Loading branch information
daniildulin committed Feb 17, 2020
1 parent db7c677 commit c6e4715
Show file tree
Hide file tree
Showing 46 changed files with 103 additions and 577 deletions.
432 changes: 0 additions & 432 deletions Gopkg.lock

This file was deleted.

70 changes: 0 additions & 70 deletions Gopkg.toml

This file was deleted.

2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.0
1.4.0
2 changes: 1 addition & 1 deletion address/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package address

import (
"github.com/MinterTeam/minter-explorer-api/helpers"
"github.com/MinterTeam/minter-explorer-tools/models"
"github.com/MinterTeam/minter-explorer-tools/v4/models"
"github.com/go-pg/pg"
)

Expand Down
2 changes: 1 addition & 1 deletion address/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"github.com/MinterTeam/minter-explorer-api/balance"
"github.com/MinterTeam/minter-explorer-api/helpers"
"github.com/MinterTeam/minter-explorer-api/resource"
"github.com/MinterTeam/minter-explorer-tools/models"
"github.com/MinterTeam/minter-explorer-tools/v4/models"
"math/big"
)

Expand Down
2 changes: 1 addition & 1 deletion aggregated_reward/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"github.com/MinterTeam/minter-explorer-api/helpers"
"github.com/MinterTeam/minter-explorer-api/resource"
validatorMeta "github.com/MinterTeam/minter-explorer-api/validator/meta"
"github.com/MinterTeam/minter-explorer-tools/models"
"github.com/MinterTeam/minter-explorer-tools/v4/models"
"time"
)

Expand Down
12 changes: 6 additions & 6 deletions api/v1/addresses/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/MinterTeam/minter-explorer-api/slash"
"github.com/MinterTeam/minter-explorer-api/tools"
"github.com/MinterTeam/minter-explorer-api/transaction"
"github.com/MinterTeam/minter-explorer-tools/models"
"github.com/MinterTeam/minter-explorer-tools/v4/models"
"github.com/gin-gonic/gin"
"net/http"
)
Expand Down Expand Up @@ -87,7 +87,7 @@ func GetAddresses(c *gin.Context) {
}

type NodeAddressBalanceResponse struct {
Result struct{
Result struct {
Balance map[string]string `json:"balance"`
} `json:"result"`
}
Expand Down Expand Up @@ -125,14 +125,14 @@ func GetAddress(c *gin.Context) {
var md []*models.Balance
for coin, value := range resp.Result.Balance {
md = append(md, &models.Balance{
Value: value,
Coin: &models.Coin{Symbol:coin},
Value: value,
Coin: &models.Coin{Symbol: coin},
})
}

model = &models.Address{
Address: *minterAddress,
Balances: md,
Address: *minterAddress,
Balances: md,
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion api/v1/blocks/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/MinterTeam/minter-explorer-api/resource"
"github.com/MinterTeam/minter-explorer-api/tools"
"github.com/MinterTeam/minter-explorer-api/transaction"
"github.com/MinterTeam/minter-explorer-tools/models"
"github.com/MinterTeam/minter-explorer-tools/v4/models"
"github.com/gin-gonic/gin"
"net/http"
"strconv"
Expand Down
2 changes: 1 addition & 1 deletion api/v1/coins/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"github.com/MinterTeam/minter-explorer-api/coins"
"github.com/MinterTeam/minter-explorer-api/core"
"github.com/MinterTeam/minter-explorer-api/resource"
"github.com/MinterTeam/minter-explorer-tools/models"
"github.com/MinterTeam/minter-explorer-tools/v4/models"
"github.com/gin-gonic/gin"
"net/http"
)
Expand Down
2 changes: 1 addition & 1 deletion api/v1/status/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/MinterTeam/minter-explorer-api/core/config"
"github.com/MinterTeam/minter-explorer-api/helpers"
"github.com/MinterTeam/minter-explorer-api/transaction"
"github.com/MinterTeam/minter-explorer-tools/models"
"github.com/MinterTeam/minter-explorer-tools/v4/models"
"github.com/gin-gonic/gin"
"math"
"net/http"
Expand Down
2 changes: 1 addition & 1 deletion api/v1/transactions/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/MinterTeam/minter-explorer-api/resource"
"github.com/MinterTeam/minter-explorer-api/tools"
"github.com/MinterTeam/minter-explorer-api/transaction"
"github.com/MinterTeam/minter-explorer-tools/models"
"github.com/MinterTeam/minter-explorer-tools/v4/models"
"github.com/gin-gonic/gin"
"net/http"
)
Expand Down
2 changes: 1 addition & 1 deletion api/v1/validators/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/MinterTeam/minter-explorer-api/tools"
"github.com/MinterTeam/minter-explorer-api/transaction"
"github.com/MinterTeam/minter-explorer-api/validator"
"github.com/MinterTeam/minter-explorer-tools/models"
"github.com/MinterTeam/minter-explorer-tools/v4/models"
"github.com/gin-gonic/gin"
"net/http"
)
Expand Down
2 changes: 1 addition & 1 deletion balance/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package balance
import (
"github.com/MinterTeam/minter-explorer-api/helpers"
"github.com/MinterTeam/minter-explorer-api/resource"
"github.com/MinterTeam/minter-explorer-tools/models"
"github.com/MinterTeam/minter-explorer-tools/v4/models"
)

type Resource struct {
Expand Down
2 changes: 1 addition & 1 deletion balance/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package balance
import (
"github.com/MinterTeam/minter-explorer-api/helpers"
"github.com/MinterTeam/minter-explorer-api/tools/market"
"github.com/MinterTeam/minter-explorer-tools/models"
"github.com/MinterTeam/minter-explorer-tools/v4/models"
"github.com/MinterTeam/minter-go-node/formula"
"math/big"
)
Expand Down
2 changes: 1 addition & 1 deletion blocks/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"github.com/MinterTeam/minter-explorer-api/core/config"
"github.com/MinterTeam/minter-explorer-api/helpers"
"github.com/MinterTeam/minter-explorer-api/tools"
"github.com/MinterTeam/minter-explorer-tools/models"
"github.com/MinterTeam/minter-explorer-tools/v4/models"
"github.com/go-pg/pg"
"time"
)
Expand Down
2 changes: 1 addition & 1 deletion blocks/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"github.com/MinterTeam/minter-explorer-api/helpers"
"github.com/MinterTeam/minter-explorer-api/resource"
validatorMeta "github.com/MinterTeam/minter-explorer-api/validator/meta"
"github.com/MinterTeam/minter-explorer-tools/models"
"github.com/MinterTeam/minter-explorer-tools/v4/models"
"time"
)

Expand Down
2 changes: 1 addition & 1 deletion coins/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package coins
import (
"fmt"
"github.com/MinterTeam/minter-explorer-api/helpers"
"github.com/MinterTeam/minter-explorer-tools/models"
"github.com/MinterTeam/minter-explorer-tools/v4/models"
"github.com/go-pg/pg"
)

Expand Down
2 changes: 1 addition & 1 deletion coins/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package coins
import (
"github.com/MinterTeam/minter-explorer-api/helpers"
"github.com/MinterTeam/minter-explorer-api/resource"
"github.com/MinterTeam/minter-explorer-tools/models"
"github.com/MinterTeam/minter-explorer-tools/v4/models"
)

type Resource struct {
Expand Down
2 changes: 1 addition & 1 deletion delegation/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"github.com/MinterTeam/minter-explorer-api/helpers"
"github.com/MinterTeam/minter-explorer-api/resource"
validatorMeta "github.com/MinterTeam/minter-explorer-api/validator/meta"
"github.com/MinterTeam/minter-explorer-tools/models"
"github.com/MinterTeam/minter-explorer-tools/v4/models"
)

type Resource struct {
Expand Down
23 changes: 23 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
module github.com/MinterTeam/minter-explorer-api

go 1.13

require (
github.com/Depado/ginprom v1.2.0
github.com/MinterTeam/go-amino v0.14.1 // indirect
github.com/MinterTeam/minter-explorer-tools/v4 v4.1.0
github.com/MinterTeam/minter-go-node v1.0.5
github.com/MinterTeam/minter-go-sdk v0.2.13
github.com/btcsuite/btcd v0.20.1-beta // indirect
github.com/centrifugal/centrifuge-go v0.3.0
github.com/gin-contrib/cors v1.3.0
github.com/gin-gonic/gin v1.5.0
github.com/go-pg/pg v8.0.6+incompatible
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/prometheus/client_golang v1.4.1
github.com/spf13/viper v1.6.2
github.com/tendermint/go-amino v0.15.1 // indirect
golang.org/x/time v0.0.0-20191024005414-555d28b269f0
gopkg.in/go-playground/validator.v8 v8.18.2
mellium.im/sasl v0.2.1 // indirect
)
2 changes: 1 addition & 1 deletion invalid_transaction/repository.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package invalid_transaction

import (
"github.com/MinterTeam/minter-explorer-tools/models"
"github.com/MinterTeam/minter-explorer-tools/v4/models"
"github.com/go-pg/pg"
)

Expand Down
2 changes: 1 addition & 1 deletion invalid_transaction/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package invalid_transaction

import (
"github.com/MinterTeam/minter-explorer-api/resource"
"github.com/MinterTeam/minter-explorer-tools/models"
"github.com/MinterTeam/minter-explorer-tools/v4/models"
"time"
)

Expand Down
2 changes: 1 addition & 1 deletion reward/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"github.com/MinterTeam/minter-explorer-api/events"
"github.com/MinterTeam/minter-explorer-api/helpers"
"github.com/MinterTeam/minter-explorer-api/tools"
"github.com/MinterTeam/minter-explorer-tools/models"
"github.com/MinterTeam/minter-explorer-tools/v4/models"
"github.com/go-pg/pg"
"time"
)
Expand Down
2 changes: 1 addition & 1 deletion reward/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"github.com/MinterTeam/minter-explorer-api/helpers"
"github.com/MinterTeam/minter-explorer-api/resource"
validatorMeta "github.com/MinterTeam/minter-explorer-api/validator/meta"
"github.com/MinterTeam/minter-explorer-tools/models"
"github.com/MinterTeam/minter-explorer-tools/v4/models"
"time"
)

Expand Down
2 changes: 1 addition & 1 deletion slash/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"github.com/MinterTeam/minter-explorer-api/events"
"github.com/MinterTeam/minter-explorer-api/helpers"
"github.com/MinterTeam/minter-explorer-api/tools"
"github.com/MinterTeam/minter-explorer-tools/models"
"github.com/MinterTeam/minter-explorer-tools/v4/models"
"github.com/go-pg/pg"
)

Expand Down
2 changes: 1 addition & 1 deletion slash/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"github.com/MinterTeam/minter-explorer-api/helpers"
"github.com/MinterTeam/minter-explorer-api/resource"
validatorMeta "github.com/MinterTeam/minter-explorer-api/validator/meta"
"github.com/MinterTeam/minter-explorer-tools/models"
"github.com/MinterTeam/minter-explorer-tools/v4/models"
"time"
)

Expand Down
2 changes: 1 addition & 1 deletion stake/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package stake
import (
"github.com/MinterTeam/minter-explorer-api/helpers"
"github.com/MinterTeam/minter-explorer-api/tools"
"github.com/MinterTeam/minter-explorer-tools/models"
"github.com/MinterTeam/minter-explorer-tools/v4/models"
"github.com/go-pg/pg"
)

Expand Down
2 changes: 1 addition & 1 deletion stake/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package stake
import (
"github.com/MinterTeam/minter-explorer-api/helpers"
"github.com/MinterTeam/minter-explorer-api/resource"
"github.com/MinterTeam/minter-explorer-tools/models"
"github.com/MinterTeam/minter-explorer-tools/v4/models"
)

type Resource struct {
Expand Down
2 changes: 1 addition & 1 deletion transaction/data_resources/buy_coin.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package data_resources
import (
"github.com/MinterTeam/minter-explorer-api/helpers"
"github.com/MinterTeam/minter-explorer-api/resource"
"github.com/MinterTeam/minter-explorer-tools/models"
"github.com/MinterTeam/minter-explorer-tools/v4/models"
)

type BuyCoin struct {
Expand Down
2 changes: 1 addition & 1 deletion transaction/data_resources/create_coin.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package data_resources
import (
"github.com/MinterTeam/minter-explorer-api/helpers"
"github.com/MinterTeam/minter-explorer-api/resource"
"github.com/MinterTeam/minter-explorer-tools/models"
"github.com/MinterTeam/minter-explorer-tools/v4/models"
)

type CreateCoin struct {
Expand Down
2 changes: 1 addition & 1 deletion transaction/data_resources/create_multisig.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package data_resources

import (
"github.com/MinterTeam/minter-explorer-api/resource"
"github.com/MinterTeam/minter-explorer-tools/models"
"github.com/MinterTeam/minter-explorer-tools/v4/models"
)

type CreateMultisig struct {
Expand Down
2 changes: 1 addition & 1 deletion transaction/data_resources/declare_candidacy.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package data_resources
import (
"github.com/MinterTeam/minter-explorer-api/helpers"
"github.com/MinterTeam/minter-explorer-api/resource"
"github.com/MinterTeam/minter-explorer-tools/models"
"github.com/MinterTeam/minter-explorer-tools/v4/models"
)

type DeclareCandidacy struct {
Expand Down
2 changes: 1 addition & 1 deletion transaction/data_resources/delegate.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package data_resources
import (
"github.com/MinterTeam/minter-explorer-api/helpers"
"github.com/MinterTeam/minter-explorer-api/resource"
"github.com/MinterTeam/minter-explorer-tools/models"
"github.com/MinterTeam/minter-explorer-tools/v4/models"
)

type Delegate struct {
Expand Down
2 changes: 1 addition & 1 deletion transaction/data_resources/edit_candidate.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package data_resources

import (
"github.com/MinterTeam/minter-explorer-api/resource"
"github.com/MinterTeam/minter-explorer-tools/models"
"github.com/MinterTeam/minter-explorer-tools/v4/models"
)

type EditCandidate struct {
Expand Down
Loading

0 comments on commit c6e4715

Please sign in to comment.