Skip to content

Commit

Permalink
Use github.com/gagliardetto/binary
Browse files Browse the repository at this point in the history
  • Loading branch information
gagliardetto committed Sep 4, 2021
1 parent 172364e commit 28104b6
Show file tree
Hide file tree
Showing 37 changed files with 50 additions and 40 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ import (
"context"

"github.com/davecgh/go-spew/spew"
bin "github.com/dfuse-io/binary"
bin "github.com/gagliardetto/binary"
solana "github.com/gagliardetto/solana-go"
"github.com/gagliardetto/solana-go/programs/token"
"github.com/gagliardetto/solana-go/rpc"
Expand Down
2 changes: 1 addition & 1 deletion cmd/slnc/cmd/decoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"fmt"
"log"

bin "github.com/dfuse-io/binary"
bin "github.com/gagliardetto/binary"
"github.com/gagliardetto/solana-go"
"github.com/gagliardetto/solana-go/programs/token"
)
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 @@ -19,7 +19,7 @@ import (
"log"
"os"

bin "github.com/dfuse-io/binary"
bin "github.com/gagliardetto/binary"
"github.com/gagliardetto/solana-go"
"github.com/gagliardetto/solana-go/programs/token"
"github.com/gagliardetto/solana-go/rpc"
Expand Down
4 changes: 1 addition & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ require (
github.com/aybabtme/rgbterm v0.0.0-20170906152045-cc83f3b3ce59
github.com/buger/jsonparser v1.1.1
github.com/davecgh/go-spew v1.1.1
github.com/dfuse-io/binary v0.0.0-20210216024852-4ae6830a495d
github.com/dfuse-io/logging v0.0.0-20210109005628-b97a57253f70
github.com/fatih/color v1.7.0
github.com/gagliardetto/binary v0.4.1
github.com/gagliardetto/gofuzz v1.2.2
github.com/gagliardetto/treeout v0.1.2
github.com/google/go-cmp v0.5.1
Expand Down Expand Up @@ -49,5 +49,3 @@ require (
golang.org/x/tools v0.0.0-20200601175630-2caf76543d99 // indirect
google.golang.org/api v0.29.0
)

replace github.com/dfuse-io/binary => github.com/gagliardetto/binary v0.4.0
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ github.com/fatih/color v1.7.0 h1:DkWD4oS2D8LGGgTQ6IvwJJXSL5Vp2ffcQg58nFV38Ys=
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
github.com/fsnotify/fsnotify v1.4.7 h1:IXs+QLmnXW2CcXuY+8Mzv/fWEsPGWxqefPtCP5CnV9I=
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
github.com/gagliardetto/binary v0.4.0 h1:dxLndYArHtdZYbLYwnpLY86mlAa9gWgxG2zSDPFINjM=
github.com/gagliardetto/binary v0.4.0/go.mod h1:55fxN6CKhVnsBhSr3Hmyn7i2igseIzN9/NC+gHvv42k=
github.com/gagliardetto/binary v0.4.1 h1:3HXeBOfmR2HHIrF1YBnoqgFKQBtN8+rWA770KyXmU0U=
github.com/gagliardetto/binary v0.4.1/go.mod h1:peJR9PvwamL4YOh1nHWCPLry2VEfeeD1ADvewka7HnQ=
github.com/gagliardetto/gofuzz v1.2.2 h1:XL/8qDMzcgvR4+CyRQW9UGdwPRPMHVJfqQ/uMvSUuQw=
github.com/gagliardetto/gofuzz v1.2.2/go.mod h1:bkH/3hYLZrMLbfYWA0pWzXmi5TTRZnu4pMGZBkqMKvY=
github.com/gagliardetto/treeout v0.1.2 h1:WXO7LDJTwINO37OQfNlf7s095Z1bAiwN2ACaZQic33Q=
Expand Down
2 changes: 1 addition & 1 deletion programs/serum/instruction.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/binary"
"fmt"

bin "github.com/dfuse-io/binary"
bin "github.com/gagliardetto/binary"
"github.com/gagliardetto/solana-go"
"github.com/gagliardetto/solana-go/text"
)
Expand Down
2 changes: 1 addition & 1 deletion programs/serum/instruction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"encoding/hex"
"testing"

bin "github.com/dfuse-io/binary"
bin "github.com/gagliardetto/binary"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion programs/serum/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package serum
import (
"strings"

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

Expand Down
2 changes: 1 addition & 1 deletion programs/serum/queue_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"testing"
"time"

bin "github.com/dfuse-io/binary"
bin "github.com/gagliardetto/binary"
"github.com/gagliardetto/solana-go"
"github.com/gagliardetto/solana-go/diff"
"github.com/gagliardetto/solana-go/rpc"
Expand Down
2 changes: 1 addition & 1 deletion programs/serum/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"fmt"

rice "github.com/GeertJohan/go.rice"
bin "github.com/dfuse-io/binary"
bin "github.com/gagliardetto/binary"
"github.com/gagliardetto/solana-go"
"github.com/gagliardetto/solana-go/rpc"
"github.com/gagliardetto/solana-go/rpc/ws"
Expand Down
2 changes: 1 addition & 1 deletion programs/serum/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"fmt"
"math/big"

bin "github.com/dfuse-io/binary"
bin "github.com/gagliardetto/binary"
"github.com/gagliardetto/solana-go"
"go.uber.org/zap"
)
Expand Down
2 changes: 1 addition & 1 deletion programs/serum/types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

"github.com/gagliardetto/solana-go/diff"

bin "github.com/dfuse-io/binary"
bin "github.com/gagliardetto/binary"
"github.com/gagliardetto/solana-go"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down
3 changes: 2 additions & 1 deletion programs/system/AdvanceNonceAccount.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ package system
import (
"encoding/binary"
"fmt"
ag_binary "github.com/dfuse-io/binary"

ag_binary "github.com/gagliardetto/binary"
ag_solanago "github.com/gagliardetto/solana-go"
ag_format "github.com/gagliardetto/solana-go/text/format"
ag_treeout "github.com/gagliardetto/treeout"
Expand Down
3 changes: 2 additions & 1 deletion programs/system/Allocate.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import (
"encoding/binary"
"errors"
"fmt"
ag_binary "github.com/dfuse-io/binary"

ag_binary "github.com/gagliardetto/binary"
ag_solanago "github.com/gagliardetto/solana-go"
ag_format "github.com/gagliardetto/solana-go/text/format"
ag_treeout "github.com/gagliardetto/treeout"
Expand Down
3 changes: 2 additions & 1 deletion programs/system/AllocateWithSeed.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import (
"encoding/binary"
"errors"
"fmt"
ag_binary "github.com/dfuse-io/binary"

ag_binary "github.com/gagliardetto/binary"
ag_solanago "github.com/gagliardetto/solana-go"
ag_format "github.com/gagliardetto/solana-go/text/format"
ag_treeout "github.com/gagliardetto/treeout"
Expand Down
3 changes: 2 additions & 1 deletion programs/system/Assign.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import (
"encoding/binary"
"errors"
"fmt"
ag_binary "github.com/dfuse-io/binary"

ag_binary "github.com/gagliardetto/binary"
ag_solanago "github.com/gagliardetto/solana-go"
ag_format "github.com/gagliardetto/solana-go/text/format"
ag_treeout "github.com/gagliardetto/treeout"
Expand Down
3 changes: 2 additions & 1 deletion programs/system/AssignWithSeed.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import (
"encoding/binary"
"errors"
"fmt"
ag_binary "github.com/dfuse-io/binary"

ag_binary "github.com/gagliardetto/binary"
ag_solanago "github.com/gagliardetto/solana-go"
ag_format "github.com/gagliardetto/solana-go/text/format"
ag_treeout "github.com/gagliardetto/treeout"
Expand Down
3 changes: 2 additions & 1 deletion programs/system/AuthorizeNonceAccount.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import (
"encoding/binary"
"errors"
"fmt"
ag_binary "github.com/dfuse-io/binary"

ag_binary "github.com/gagliardetto/binary"
ag_solanago "github.com/gagliardetto/solana-go"
ag_format "github.com/gagliardetto/solana-go/text/format"
ag_treeout "github.com/gagliardetto/treeout"
Expand Down
3 changes: 2 additions & 1 deletion programs/system/CreateAccount.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import (
"encoding/binary"
"errors"
"fmt"
ag_binary "github.com/dfuse-io/binary"

ag_binary "github.com/gagliardetto/binary"
ag_solanago "github.com/gagliardetto/solana-go"
ag_format "github.com/gagliardetto/solana-go/text/format"
ag_treeout "github.com/gagliardetto/treeout"
Expand Down
2 changes: 1 addition & 1 deletion programs/system/CreateAccountWithSeed.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"errors"
"fmt"

ag_binary "github.com/dfuse-io/binary"
ag_binary "github.com/gagliardetto/binary"
ag_solanago "github.com/gagliardetto/solana-go"
ag_format "github.com/gagliardetto/solana-go/text/format"
ag_treeout "github.com/gagliardetto/treeout"
Expand Down
3 changes: 2 additions & 1 deletion programs/system/InitializeNonceAccount.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import (
"encoding/binary"
"errors"
"fmt"
ag_binary "github.com/dfuse-io/binary"

ag_binary "github.com/gagliardetto/binary"
ag_solanago "github.com/gagliardetto/solana-go"
ag_format "github.com/gagliardetto/solana-go/text/format"
ag_treeout "github.com/gagliardetto/treeout"
Expand Down
3 changes: 2 additions & 1 deletion programs/system/Transfer.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import (
"encoding/binary"
"errors"
"fmt"
ag_binary "github.com/dfuse-io/binary"

ag_binary "github.com/gagliardetto/binary"
ag_solanago "github.com/gagliardetto/solana-go"
ag_format "github.com/gagliardetto/solana-go/text/format"
ag_treeout "github.com/gagliardetto/treeout"
Expand Down
3 changes: 2 additions & 1 deletion programs/system/TransferWithSeed.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import (
"encoding/binary"
"errors"
"fmt"
ag_binary "github.com/dfuse-io/binary"

ag_binary "github.com/gagliardetto/binary"
ag_solanago "github.com/gagliardetto/solana-go"
ag_format "github.com/gagliardetto/solana-go/text/format"
ag_treeout "github.com/gagliardetto/treeout"
Expand Down
3 changes: 2 additions & 1 deletion programs/system/WithdrawNonceAccount.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import (
"encoding/binary"
"errors"
"fmt"
ag_binary "github.com/dfuse-io/binary"

ag_binary "github.com/gagliardetto/binary"
ag_solanago "github.com/gagliardetto/solana-go"
ag_format "github.com/gagliardetto/solana-go/text/format"
ag_treeout "github.com/gagliardetto/treeout"
Expand Down
2 changes: 1 addition & 1 deletion programs/system/instructions.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"fmt"

ag_spew "github.com/davecgh/go-spew/spew"
ag_binary "github.com/dfuse-io/binary"
ag_binary "github.com/gagliardetto/binary"
ag_solanago "github.com/gagliardetto/solana-go"
ag_text "github.com/gagliardetto/solana-go/text"
ag_treeout "github.com/gagliardetto/treeout"
Expand Down
3 changes: 2 additions & 1 deletion programs/system/testing_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ package system
import (
"bytes"
"fmt"
ag_binary "github.com/dfuse-io/binary"

ag_binary "github.com/gagliardetto/binary"
)

func encodeT(data interface{}, buf *bytes.Buffer) error {
Expand Down
2 changes: 1 addition & 1 deletion programs/token/instructions.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (

"github.com/gagliardetto/solana-go/text"

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

Expand Down
2 changes: 1 addition & 1 deletion programs/token/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package token
import (
"fmt"

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

Expand Down
2 changes: 1 addition & 1 deletion programs/token/types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"os"
"testing"

bin "github.com/dfuse-io/binary"
bin "github.com/gagliardetto/binary"
"github.com/gagliardetto/solana-go"
"github.com/gagliardetto/solana-go/rpc"
"github.com/mr-tron/base58"
Expand Down
2 changes: 1 addition & 1 deletion programs/tokenregistry/instruction.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/gagliardetto/solana-go/text"

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

Expand Down
2 changes: 1 addition & 1 deletion programs/tokenregistry/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ package tokenregistry
import (
"fmt"

bin "github.com/dfuse-io/binary"
bin "github.com/gagliardetto/binary"

"github.com/gagliardetto/solana-go"
)
Expand Down
2 changes: 1 addition & 1 deletion rpc/examples/getAccountInfo/getAccountInfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"

"github.com/davecgh/go-spew/spew"
bin "github.com/dfuse-io/binary"
bin "github.com/gagliardetto/binary"
solana "github.com/gagliardetto/solana-go"
"github.com/gagliardetto/solana-go/programs/token"
"github.com/gagliardetto/solana-go/rpc"
Expand Down
2 changes: 1 addition & 1 deletion rpc/getAccountInfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"context"
"errors"

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

Expand Down
2 changes: 1 addition & 1 deletion transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"sort"

"github.com/davecgh/go-spew/spew"
bin "github.com/dfuse-io/binary"
bin "github.com/gagliardetto/binary"
"github.com/gagliardetto/solana-go/text"
"github.com/gagliardetto/treeout"
"go.uber.org/zap"
Expand Down
2 changes: 1 addition & 1 deletion transaction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/base64"
"testing"

bin "github.com/dfuse-io/binary"
bin "github.com/gagliardetto/binary"
"github.com/magiconair/properties/assert"
"github.com/mr-tron/base58"
"github.com/stretchr/testify/require"
Expand Down
2 changes: 1 addition & 1 deletion types.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package solana
import (
"fmt"

bin "github.com/dfuse-io/binary"
bin "github.com/gagliardetto/binary"
"github.com/gagliardetto/solana-go/text"
"github.com/gagliardetto/treeout"
)
Expand Down
2 changes: 1 addition & 1 deletion types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"bytes"
"testing"

bin "github.com/dfuse-io/binary"
bin "github.com/gagliardetto/binary"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down

0 comments on commit 28104b6

Please sign in to comment.