Skip to content

Commit

Permalink
fix package import after moving program related stuff to folder programs
Browse files Browse the repository at this point in the history
  • Loading branch information
billettc committed Nov 24, 2020
1 parent 7a8d266 commit 8e6e3c2
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion cmd/slnc/cmd/decoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (

bin "github.com/dfuse-io/binary"
"github.com/dfuse-io/solana-go"
"github.com/dfuse-io/solana-go/token"
"github.com/dfuse-io/solana-go/programs/token"
)

func decode(owner solana.PublicKey, data []byte) (interface{}, error) {
Expand Down
2 changes: 1 addition & 1 deletion cmd/slnc/cmd/get_spl_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ import (

bin "github.com/dfuse-io/binary"
"github.com/dfuse-io/solana-go"
"github.com/dfuse-io/solana-go/programs/token"
"github.com/dfuse-io/solana-go/rpc"
"github.com/dfuse-io/solana-go/text"
"github.com/dfuse-io/solana-go/token"
"github.com/spf13/cobra"
)

Expand Down
10 changes: 5 additions & 5 deletions cmd/slnc/cmd/get_transactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ import (
"fmt"
"os"

"github.com/dfuse-io/solana-go/text"

"github.com/dfuse-io/solana-go"
_ "github.com/dfuse-io/solana-go/programs/serum"
_ "github.com/dfuse-io/solana-go/programs/system"
_ "github.com/dfuse-io/solana-go/programs/token"
_ "github.com/dfuse-io/solana-go/programs/tokenregistry"
"github.com/dfuse-io/solana-go/rpc"
_ "github.com/dfuse-io/solana-go/serum"
_ "github.com/dfuse-io/solana-go/system"
_ "github.com/dfuse-io/solana-go/token"
"github.com/dfuse-io/solana-go/text"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/slnc/cmd/serum_get_market.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
"strings"

"github.com/dfuse-io/solana-go"
"github.com/dfuse-io/solana-go/programs/serum"
"github.com/dfuse-io/solana-go/rpc"
"github.com/dfuse-io/solana-go/serum"
"github.com/ryanuber/columnize"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/slnc/cmd/serum_list_markets.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package cmd
import (
"fmt"

"github.com/dfuse-io/solana-go/serum"
"github.com/dfuse-io/solana-go/programs/serum"
"github.com/ryanuber/columnize"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/slnc/cmd/spl_get_mint.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"fmt"

"github.com/dfuse-io/solana-go"
"github.com/dfuse-io/solana-go/token"
"github.com/dfuse-io/solana-go/programs/token"
"github.com/ryanuber/columnize"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/slnc/cmd/spl_list_mints.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package cmd
import (
"fmt"

"github.com/dfuse-io/solana-go/token"
"github.com/dfuse-io/solana-go/programs/token"
"github.com/ryanuber/columnize"
"github.com/spf13/cobra"
)
Expand Down
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,3 @@ require (
golang.org/x/tools v0.0.0-20200601175630-2caf76543d99 // indirect
google.golang.org/api v0.15.0
)

3 changes: 1 addition & 2 deletions programs/serum/market.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"math/big"

"github.com/dfuse-io/solana-go"
"github.com/dfuse-io/solana-go/token"
"github.com/dfuse-io/solana-go/programs/token"
)

type MarketMeta struct {
Expand Down Expand Up @@ -64,7 +64,6 @@ type OpenOrdersMeta struct {
OpenOrdersV2 OpenOrdersV2
}


type Order struct {
Limit *big.Int `json:"limit"`
Side SideLayout `json:"side"`
Expand Down

0 comments on commit 8e6e3c2

Please sign in to comment.