Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/Add signature method #73

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
246 changes: 123 additions & 123 deletions README.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions cmd/slnc/cmd/common.go
Expand Up @@ -19,9 +19,9 @@ import (
"os"
"strings"

"github.com/gagliardetto/solana-go/rpc"
"github.com/olegfomenko/solana-go/rpc"

"github.com/gagliardetto/solana-go/vault"
"github.com/olegfomenko/solana-go/vault"
"github.com/spf13/viper"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/slnc/cmd/decoding.go
Expand Up @@ -19,8 +19,8 @@ import (
"log"

bin "github.com/gagliardetto/binary"
"github.com/gagliardetto/solana-go"
"github.com/gagliardetto/solana-go/programs/token"
"github.com/olegfomenko/solana-go"
"github.com/olegfomenko/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_account.go
Expand Up @@ -22,7 +22,7 @@ import (
"encoding/json"
"fmt"

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

"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/slnc/cmd/get_balance.go
Expand Up @@ -20,7 +20,7 @@ package cmd
import (
"fmt"

"github.com/gagliardetto/solana-go"
"github.com/olegfomenko/solana-go"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/slnc/cmd/get_program_accounts.go
Expand Up @@ -22,9 +22,9 @@ import (
"fmt"
"os"

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

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

"github.com/spf13/cobra"
)
Expand Down
8 changes: 4 additions & 4 deletions cmd/slnc/cmd/get_spl_token.go
Expand Up @@ -23,10 +23,10 @@ import (
"os"

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

Expand Down
14 changes: 7 additions & 7 deletions cmd/slnc/cmd/get_transactions.go
Expand Up @@ -22,13 +22,13 @@ import (
"fmt"
"os"

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

Expand Down
2 changes: 1 addition & 1 deletion cmd/slnc/cmd/is_blockhash_valid.go
Expand Up @@ -17,7 +17,7 @@ package cmd
import (
"fmt"

"github.com/gagliardetto/solana-go"
"github.com/olegfomenko/solana-go"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/slnc/cmd/logging.go
Expand Up @@ -21,7 +21,7 @@ import (
"os"
"strings"

zapbox "github.com/gagliardetto/solana-go/zap-box"
zapbox "github.com/olegfomenko/solana-go/zap-box"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"

Expand All @@ -31,7 +31,7 @@ import (
var zlog *zap.Logger

func init() {
logging.Register("github.com/gagliardetto/solana-go/cmd/slnc/cmd", &zlog)
logging.Register("github.com/olegfomenko/solana-go/cmd/slnc/cmd", &zlog)
}

func SetupLogger() {
Expand Down
4 changes: 2 additions & 2 deletions cmd/slnc/cmd/request_airdrop.go
Expand Up @@ -22,8 +22,8 @@ import (
"fmt"
"strconv"

"github.com/gagliardetto/solana-go"
"github.com/gagliardetto/solana-go/rpc"
"github.com/olegfomenko/solana-go"
"github.com/olegfomenko/solana-go/rpc"
"github.com/spf13/cobra"
)

Expand Down
6 changes: 3 additions & 3 deletions cmd/slnc/cmd/serum_get_market.go
Expand Up @@ -23,9 +23,9 @@ import (
"math/big"
"strings"

"github.com/gagliardetto/solana-go"
"github.com/gagliardetto/solana-go/programs/serum"
"github.com/gagliardetto/solana-go/rpc"
"github.com/olegfomenko/solana-go"
"github.com/olegfomenko/solana-go/programs/serum"
"github.com/olegfomenko/solana-go/rpc"
"github.com/ryanuber/columnize"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/slnc/cmd/serum_list_markets.go
Expand Up @@ -20,7 +20,7 @@ package cmd
import (
"fmt"

"github.com/gagliardetto/solana-go/programs/serum"
"github.com/olegfomenko/solana-go/programs/serum"
"github.com/ryanuber/columnize"
"github.com/spf13/cobra"
)
Expand Down
4 changes: 2 additions & 2 deletions cmd/slnc/cmd/token_get_mint.go
Expand Up @@ -20,8 +20,8 @@ package cmd
import (
"fmt"

"github.com/gagliardetto/solana-go"
"github.com/gagliardetto/solana-go/programs/token"
"github.com/olegfomenko/solana-go"
"github.com/olegfomenko/solana-go/programs/token"
"github.com/ryanuber/columnize"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/slnc/cmd/token_list_mints.go
Expand Up @@ -21,7 +21,7 @@ import (
"fmt"
"strings"

"github.com/gagliardetto/solana-go/programs/token"
"github.com/olegfomenko/solana-go/programs/token"
"github.com/ryanuber/columnize"
"github.com/spf13/cobra"
)
Expand Down
8 changes: 4 additions & 4 deletions cmd/slnc/cmd/token_registry_get.go
Expand Up @@ -21,11 +21,11 @@ import (
"fmt"
"os"

"github.com/gagliardetto/solana-go/rpc"
"github.com/olegfomenko/solana-go/rpc"

"github.com/gagliardetto/solana-go"
"github.com/gagliardetto/solana-go/programs/tokenregistry"
"github.com/gagliardetto/solana-go/text"
"github.com/olegfomenko/solana-go"
"github.com/olegfomenko/solana-go/programs/tokenregistry"
"github.com/olegfomenko/solana-go/text"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/slnc/cmd/token_registry_list.go
Expand Up @@ -23,8 +23,8 @@ import (

"github.com/ryanuber/columnize"

"github.com/gagliardetto/solana-go/programs/tokenregistry"
_ "github.com/gagliardetto/solana-go/programs/tokenregistry"
"github.com/olegfomenko/solana-go/programs/tokenregistry"
_ "github.com/olegfomenko/solana-go/programs/tokenregistry"
"github.com/spf13/cobra"
)

Expand Down
8 changes: 4 additions & 4 deletions cmd/slnc/cmd/token_registry_register.go
Expand Up @@ -21,13 +21,13 @@ import (
"context"
"fmt"

"github.com/gagliardetto/solana-go/rpc"
"github.com/olegfomenko/solana-go/rpc"

"github.com/spf13/viper"

"github.com/gagliardetto/solana-go"
"github.com/gagliardetto/solana-go/programs/system"
"github.com/gagliardetto/solana-go/programs/tokenregistry"
"github.com/olegfomenko/solana-go"
"github.com/olegfomenko/solana-go/programs/system"
"github.com/olegfomenko/solana-go/programs/tokenregistry"
"github.com/spf13/cobra"
)

Expand Down
6 changes: 3 additions & 3 deletions cmd/slnc/cmd/vault_add.go
Expand Up @@ -20,10 +20,10 @@ package cmd
import (
"fmt"

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

"github.com/gagliardetto/solana-go/cli"
"github.com/gagliardetto/solana-go/vault"
"github.com/olegfomenko/solana-go/cli"
"github.com/olegfomenko/solana-go/vault"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
Expand Down
6 changes: 3 additions & 3 deletions cmd/slnc/cmd/vault_create.go
Expand Up @@ -21,10 +21,10 @@ import (
"fmt"
"os"

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

"github.com/gagliardetto/solana-go/cli"
"github.com/gagliardetto/solana-go/vault"
"github.com/olegfomenko/solana-go/cli"
"github.com/olegfomenko/solana-go/vault"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/slnc/main.go
Expand Up @@ -15,7 +15,7 @@
package main

import (
"github.com/gagliardetto/solana-go/cmd/slnc/cmd"
"github.com/olegfomenko/solana-go/cmd/slnc/cmd"
)

var version = "dev"
Expand Down
4 changes: 2 additions & 2 deletions diff/logging.go
Expand Up @@ -22,11 +22,11 @@ import (
"go.uber.org/zap"
)

var traceEnabled = logging.IsTraceEnabled("solana-go", "github.com/gagliardetto/solana-go/diff")
var traceEnabled = logging.IsTraceEnabled("solana-go", "github.com/olegfomenko/solana-go/diff")
var zlog = zap.NewNop()

func init() {
logging.Register("github.com/gagliardetto/solana-go/diff", &zlog)
logging.Register("github.com/olegfomenko/solana-go/diff", &zlog)
}

type reflectType struct {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
@@ -1,4 +1,4 @@
module github.com/gagliardetto/solana-go
module github.com/olegfomenko/solana-go

go 1.16

Expand Down
4 changes: 2 additions & 2 deletions logging.go
Expand Up @@ -22,10 +22,10 @@ import (
"go.uber.org/zap"
)

var traceEnabled = logging.IsTraceEnabled("solana-go", "github.com/gagliardetto/solana-go")
var traceEnabled = logging.IsTraceEnabled("solana-go", "github.com/olegfomenko/solana-go")

var zlog = zap.NewNop()

func init() {
logging.Register("github.com/gagliardetto/solana-go", &zlog)
logging.Register("github.com/olegfomenko/solana-go", &zlog)
}
2 changes: 1 addition & 1 deletion message.go
Expand Up @@ -22,8 +22,8 @@ import (
"fmt"

bin "github.com/gagliardetto/binary"
"github.com/gagliardetto/solana-go/text"
"github.com/gagliardetto/treeout"
"github.com/olegfomenko/solana-go/text"
)

type Message struct {
Expand Down
4 changes: 2 additions & 2 deletions programs/associated-token-account/Create.go
Expand Up @@ -19,9 +19,9 @@ import (
"fmt"

bin "github.com/gagliardetto/binary"
solana "github.com/gagliardetto/solana-go"
format "github.com/gagliardetto/solana-go/text/format"
treeout "github.com/gagliardetto/treeout"
solana "github.com/olegfomenko/solana-go"
format "github.com/olegfomenko/solana-go/text/format"
)

type Create struct {
Expand Down
4 changes: 2 additions & 2 deletions programs/associated-token-account/instructions.go
Expand Up @@ -19,9 +19,9 @@ import (

spew "github.com/davecgh/go-spew/spew"
bin "github.com/gagliardetto/binary"
solana "github.com/gagliardetto/solana-go"
text "github.com/gagliardetto/solana-go/text"
treeout "github.com/gagliardetto/treeout"
solana "github.com/olegfomenko/solana-go"
text "github.com/olegfomenko/solana-go/text"
)

var ProgramID solana.PublicKey = solana.SPLAssociatedTokenAccountProgramID
Expand Down
6 changes: 3 additions & 3 deletions programs/bpf-loader/loader.go
Expand Up @@ -4,9 +4,9 @@ import (
"encoding/binary"
"fmt"

"github.com/gagliardetto/solana-go"
"github.com/gagliardetto/solana-go/programs/system"
"github.com/gagliardetto/solana-go/rpc"
"github.com/olegfomenko/solana-go"
"github.com/olegfomenko/solana-go/programs/system"
"github.com/olegfomenko/solana-go/rpc"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions programs/serum/instruction.go
Expand Up @@ -22,8 +22,8 @@ import (
"fmt"

bin "github.com/gagliardetto/binary"
"github.com/gagliardetto/solana-go"
"github.com/gagliardetto/solana-go/text"
"github.com/olegfomenko/solana-go"
"github.com/olegfomenko/solana-go/text"
)

func init() {
Expand Down
4 changes: 2 additions & 2 deletions programs/serum/logging.go
Expand Up @@ -23,8 +23,8 @@ import (
)

var zlog = zap.NewNop()
var traceEnabled = logging.IsTraceEnabled("solana-go", "github.com/gagliardetto/solana-go/program/serum")
var traceEnabled = logging.IsTraceEnabled("solana-go", "github.com/olegfomenko/solana-go/program/serum")

func init() {
logging.Register("github.com/gagliardetto/solana-go/program/serum", &zlog)
logging.Register("github.com/olegfomenko/solana-go/program/serum", &zlog)
}
4 changes: 2 additions & 2 deletions programs/serum/market.go
Expand Up @@ -20,8 +20,8 @@ package serum
import (
"math/big"

"github.com/gagliardetto/solana-go"
"github.com/gagliardetto/solana-go/programs/token"
"github.com/olegfomenko/solana-go"
"github.com/olegfomenko/solana-go/programs/token"
)

type MarketMeta struct {
Expand Down
2 changes: 1 addition & 1 deletion programs/serum/program.go
Expand Up @@ -17,7 +17,7 @@

package serum

import "github.com/gagliardetto/solana-go"
import "github.com/olegfomenko/solana-go"

// DEXProgramIDV2 represents the fixed address on which the Serum DEX v2 smart contract is deployed
var DEXProgramIDV2 = solana.MustPublicKeyFromBase58("EUqojwWA2rd19FZrzeBncJsm38Jm1hEhE3zsmX3bRc2o")
2 changes: 1 addition & 1 deletion programs/serum/queue.go
Expand Up @@ -21,7 +21,7 @@ import (
"strings"

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

type RequestQueue struct {
Expand Down
6 changes: 3 additions & 3 deletions programs/serum/queue_test.go
Expand Up @@ -26,9 +26,9 @@ import (
"time"

bin "github.com/gagliardetto/binary"
"github.com/gagliardetto/solana-go"
"github.com/gagliardetto/solana-go/diff"
"github.com/gagliardetto/solana-go/rpc"
"github.com/olegfomenko/solana-go"
"github.com/olegfomenko/solana-go/diff"
"github.com/olegfomenko/solana-go/rpc"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down