Skip to content

Commit

Permalink
Merge pull request #1 from olegfomenko/feature/partial-signature
Browse files Browse the repository at this point in the history
Feature/partial signature
  • Loading branch information
olegfomenko authored Aug 16, 2022
2 parents 7886c8c + 7206519 commit 8d89d32
Show file tree
Hide file tree
Showing 209 changed files with 489 additions and 463 deletions.
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Loading

0 comments on commit 8d89d32

Please sign in to comment.