Skip to content

Commit

Permalink
chore: org renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
yihau committed Jul 7, 2023
1 parent 746b694 commit 2bc7efe
Show file tree
Hide file tree
Showing 226 changed files with 508 additions and 508 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 portto
Copyright (c) 2023 blocto

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

<h1 align="center">Solana Go SDK</h1>
<div align="center">
<img src="https://github.com/portto/solana-go-sdk/actions/workflows/go.yml/badge.svg?branch=main"></img>
<img src="https://goreportcard.com/badge/github.com/portto/solana-go-sdk"></img>
<img alt="GitHub go.mod Go version" src="https://img.shields.io/github/go-mod/go-version/portto/solana-go-sdk">
<img alt="GitHub release (latest SemVer)" src="https://img.shields.io/github/v/release/portto/solana-go-sdk?display_name=tag">
<img src="https://github.com/blocto/solana-go-sdk/actions/workflows/go.yml/badge.svg?branch=main"></img>
<img src="https://goreportcard.com/badge/github.com/blocto/solana-go-sdk"></img>
<img alt="GitHub go.mod Go version" src="https://img.shields.io/github/go-mod/go-version/blocto/solana-go-sdk">
<img alt="GitHub release (latest SemVer)" src="https://img.shields.io/github/v/release/blocto/solana-go-sdk?display_name=tag">
</div>

# Guide
Expand All @@ -14,7 +14,7 @@
### Installing

```sh
go get -v github.com/portto/solana-go-sdk
go get -v github.com/blocto/solana-go-sdk
```

### Example
Expand All @@ -29,8 +29,8 @@ import (
"fmt"
"log"

"github.com/portto/solana-go-sdk/client"
"github.com/portto/solana-go-sdk/rpc"
"github.com/blocto/solana-go-sdk/client"
"github.com/blocto/solana-go-sdk/rpc"
)

func main() {
Expand Down Expand Up @@ -64,8 +64,8 @@ import (
"fmt"
"log"

"github.com/portto/solana-go-sdk/client"
"github.com/portto/solana-go-sdk/rpc"
"github.com/blocto/solana-go-sdk/client"
"github.com/blocto/solana-go-sdk/rpc"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"encoding/base64"
"fmt"

"github.com/portto/solana-go-sdk/common"
"github.com/portto/solana-go-sdk/rpc"
"github.com/portto/solana-go-sdk/types"
"github.com/blocto/solana-go-sdk/common"
"github.com/blocto/solana-go-sdk/rpc"
"github.com/blocto/solana-go-sdk/types"
)

type Client struct {
Expand Down
2 changes: 1 addition & 1 deletion client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"errors"
"testing"

"github.com/portto/solana-go-sdk/rpc"
"github.com/blocto/solana-go-sdk/rpc"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions client/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"fmt"
"strconv"

"github.com/portto/solana-go-sdk/common"
"github.com/portto/solana-go-sdk/rpc"
"github.com/blocto/solana-go-sdk/common"
"github.com/blocto/solana-go-sdk/rpc"
)

func process[A any, B any](fetch func() (rpc.JsonRpcResponse[A], error), convert func(A) (B, error)) (B, error) {
Expand Down
4 changes: 2 additions & 2 deletions client/rpc_get_account_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"encoding/base64"
"fmt"

"github.com/portto/solana-go-sdk/common"
"github.com/portto/solana-go-sdk/rpc"
"github.com/blocto/solana-go-sdk/common"
"github.com/blocto/solana-go-sdk/rpc"
)

type AccountInfo struct {
Expand Down
6 changes: 3 additions & 3 deletions client/rpc_get_account_info_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"
"testing"

"github.com/portto/solana-go-sdk/common"
"github.com/portto/solana-go-sdk/internal/client_test"
"github.com/portto/solana-go-sdk/rpc"
"github.com/blocto/solana-go-sdk/common"
"github.com/blocto/solana-go-sdk/internal/client_test"
"github.com/blocto/solana-go-sdk/rpc"
)

func TestClient_GetAccountInfo(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion client/rpc_get_balance.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package client
import (
"context"

"github.com/portto/solana-go-sdk/rpc"
"github.com/blocto/solana-go-sdk/rpc"
)

type GetBalanceConfig struct {
Expand Down
4 changes: 2 additions & 2 deletions client/rpc_get_balance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"testing"

"github.com/portto/solana-go-sdk/internal/client_test"
"github.com/portto/solana-go-sdk/rpc"
"github.com/blocto/solana-go-sdk/internal/client_test"
"github.com/blocto/solana-go-sdk/rpc"
)

func TestClient_GetBalance(t *testing.T) {
Expand Down
8 changes: 4 additions & 4 deletions client/rpc_get_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"fmt"
"time"

"github.com/portto/solana-go-sdk/common"
"github.com/portto/solana-go-sdk/pkg/pointer"
"github.com/portto/solana-go-sdk/rpc"
"github.com/portto/solana-go-sdk/types"
"github.com/blocto/solana-go-sdk/common"
"github.com/blocto/solana-go-sdk/pkg/pointer"
"github.com/blocto/solana-go-sdk/rpc"
"github.com/blocto/solana-go-sdk/types"
)

type GetBlockConfig struct {
Expand Down
10 changes: 5 additions & 5 deletions client/rpc_get_block_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import (
"testing"
"time"

"github.com/portto/solana-go-sdk/common"
"github.com/portto/solana-go-sdk/internal/client_test"
"github.com/portto/solana-go-sdk/pkg/pointer"
"github.com/portto/solana-go-sdk/rpc"
"github.com/portto/solana-go-sdk/types"
"github.com/blocto/solana-go-sdk/common"
"github.com/blocto/solana-go-sdk/internal/client_test"
"github.com/blocto/solana-go-sdk/pkg/pointer"
"github.com/blocto/solana-go-sdk/rpc"
"github.com/blocto/solana-go-sdk/types"
)

func TestClient_BlockWithConfig(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion client/rpc_get_block_time.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package client
import (
"context"

"github.com/portto/solana-go-sdk/rpc"
"github.com/blocto/solana-go-sdk/rpc"
)

// GetBlockTime returns the estimated production time of a block.
Expand Down
4 changes: 2 additions & 2 deletions client/rpc_get_block_time_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"testing"

"github.com/portto/solana-go-sdk/internal/client_test"
"github.com/portto/solana-go-sdk/pkg/pointer"
"github.com/blocto/solana-go-sdk/internal/client_test"
"github.com/blocto/solana-go-sdk/pkg/pointer"
)

func TestClient_GetBlockTime(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions client/rpc_get_cluster_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package client
import (
"context"

"github.com/portto/solana-go-sdk/common"
"github.com/portto/solana-go-sdk/rpc"
"github.com/blocto/solana-go-sdk/common"
"github.com/blocto/solana-go-sdk/rpc"
)

type ClusterNode struct {
Expand Down
6 changes: 3 additions & 3 deletions client/rpc_get_cluster_node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"
"testing"

"github.com/portto/solana-go-sdk/common"
"github.com/portto/solana-go-sdk/internal/client_test"
"github.com/portto/solana-go-sdk/pkg/pointer"
"github.com/blocto/solana-go-sdk/common"
"github.com/blocto/solana-go-sdk/internal/client_test"
"github.com/blocto/solana-go-sdk/pkg/pointer"
)

func TestClient_GetClusterNodes(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions client/rpc_get_fee_for_message.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"encoding/base64"
"fmt"

"github.com/portto/solana-go-sdk/rpc"
"github.com/portto/solana-go-sdk/types"
"github.com/blocto/solana-go-sdk/rpc"
"github.com/blocto/solana-go-sdk/types"
)

type GetFeeForMessageConfig struct {
Expand Down
8 changes: 4 additions & 4 deletions client/rpc_get_fee_for_message_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"encoding/base64"
"testing"

"github.com/portto/solana-go-sdk/internal/client_test"
"github.com/portto/solana-go-sdk/pkg/pointer"
"github.com/portto/solana-go-sdk/rpc"
"github.com/portto/solana-go-sdk/types"
"github.com/blocto/solana-go-sdk/internal/client_test"
"github.com/blocto/solana-go-sdk/pkg/pointer"
"github.com/blocto/solana-go-sdk/rpc"
"github.com/blocto/solana-go-sdk/types"
)

func TestClient_GetFeeForMessage(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion client/rpc_get_first_available_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package client
import (
"context"

"github.com/portto/solana-go-sdk/rpc"
"github.com/blocto/solana-go-sdk/rpc"
)

// GetFirstAvailableBlock returns the slot of the lowest confirmed block that has not been purged from the ledger
Expand Down
2 changes: 1 addition & 1 deletion client/rpc_get_first_available_block_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"testing"

"github.com/portto/solana-go-sdk/internal/client_test"
"github.com/blocto/solana-go-sdk/internal/client_test"
)

func TestClient_GetFirstAvailableBlock(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion client/rpc_get_genesis_hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package client
import (
"context"

"github.com/portto/solana-go-sdk/rpc"
"github.com/blocto/solana-go-sdk/rpc"
)

// GetGenesisHash returns the genesis hash
Expand Down
2 changes: 1 addition & 1 deletion client/rpc_get_genesis_hash_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"testing"

"github.com/portto/solana-go-sdk/internal/client_test"
"github.com/blocto/solana-go-sdk/internal/client_test"
)

func TestClient_GetGenesisHash(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion client/rpc_get_identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package client
import (
"context"

"github.com/portto/solana-go-sdk/rpc"
"github.com/blocto/solana-go-sdk/rpc"
)

// GetIdentity returns the identity pubkey for the current node
Expand Down
4 changes: 2 additions & 2 deletions client/rpc_get_identity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"testing"

"github.com/portto/solana-go-sdk/internal/client_test"
"github.com/portto/solana-go-sdk/rpc"
"github.com/blocto/solana-go-sdk/internal/client_test"
"github.com/blocto/solana-go-sdk/rpc"
)

func TestClient_GetIdentity(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion client/rpc_get_latest_blockhash.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package client
import (
"context"

"github.com/portto/solana-go-sdk/rpc"
"github.com/blocto/solana-go-sdk/rpc"
)

type GetLatestBlockhashValue struct {
Expand Down
4 changes: 2 additions & 2 deletions client/rpc_get_latest_blockhash_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"testing"

"github.com/portto/solana-go-sdk/internal/client_test"
"github.com/portto/solana-go-sdk/rpc"
"github.com/blocto/solana-go-sdk/internal/client_test"
"github.com/blocto/solana-go-sdk/rpc"
)

func TestClient_GetLatestBlockhash(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion client/rpc_get_minimum_balance_for_rent_exemption.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package client
import (
"context"

"github.com/portto/solana-go-sdk/rpc"
"github.com/blocto/solana-go-sdk/rpc"
)

type GetMinimumBalanceForRentExemptionConfig struct {
Expand Down
4 changes: 2 additions & 2 deletions client/rpc_get_minimum_balance_for_rent_exemption_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"testing"

"github.com/portto/solana-go-sdk/internal/client_test"
"github.com/portto/solana-go-sdk/rpc"
"github.com/blocto/solana-go-sdk/internal/client_test"
"github.com/blocto/solana-go-sdk/rpc"
)

func TestClient_GetMinimumBalanceForRentExemption(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion client/rpc_get_multiple_accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package client
import (
"context"

"github.com/portto/solana-go-sdk/rpc"
"github.com/blocto/solana-go-sdk/rpc"
)

type GetMultipleAccountsConfig struct {
Expand Down
6 changes: 3 additions & 3 deletions client/rpc_get_multiple_accounts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"
"testing"

"github.com/portto/solana-go-sdk/common"
"github.com/portto/solana-go-sdk/internal/client_test"
"github.com/portto/solana-go-sdk/rpc"
"github.com/blocto/solana-go-sdk/common"
"github.com/blocto/solana-go-sdk/internal/client_test"
"github.com/blocto/solana-go-sdk/rpc"
)

func TestClient_GetMultipleAccounts(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion client/rpc_get_signature_statuses.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package client
import (
"context"

"github.com/portto/solana-go-sdk/rpc"
"github.com/blocto/solana-go-sdk/rpc"
)

type GetSignatureStatusesConfig struct {
Expand Down
6 changes: 3 additions & 3 deletions client/rpc_get_signature_statuses_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"
"testing"

"github.com/portto/solana-go-sdk/internal/client_test"
"github.com/portto/solana-go-sdk/pkg/pointer"
"github.com/portto/solana-go-sdk/rpc"
"github.com/blocto/solana-go-sdk/internal/client_test"
"github.com/blocto/solana-go-sdk/pkg/pointer"
"github.com/blocto/solana-go-sdk/rpc"
)

func TestClient_GetSignatureStatus(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion client/rpc_get_signatures_for_address.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package client
import (
"context"

"github.com/portto/solana-go-sdk/rpc"
"github.com/blocto/solana-go-sdk/rpc"
)

type GetSignaturesForAddressConfig struct {
Expand Down
6 changes: 3 additions & 3 deletions client/rpc_get_signatures_for_address_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"
"testing"

"github.com/portto/solana-go-sdk/internal/client_test"
"github.com/portto/solana-go-sdk/pkg/pointer"
"github.com/portto/solana-go-sdk/rpc"
"github.com/blocto/solana-go-sdk/internal/client_test"
"github.com/blocto/solana-go-sdk/pkg/pointer"
"github.com/blocto/solana-go-sdk/rpc"
)

func TestClient_GetSignaturesForAddress(t *testing.T) {
Expand Down
Loading

0 comments on commit 2bc7efe

Please sign in to comment.